diff --git a/.github/workflows/gen-client.yml b/.github/workflows/gen-client.yml index 5fce9ec..d64ec72 100644 --- a/.github/workflows/gen-client.yml +++ b/.github/workflows/gen-client.yml @@ -14,7 +14,7 @@ jobs: - name: Get Specs File run: | - curl -H "Authorization: token ${{ secrets.GH_CQ_BOT }}" https://raw.githubusercontent.com/cloudquery/cloud/main/platform/internal/servergen/spec.json -o spec.json + curl -H "Authorization: token ${{ secrets.GH_CQ_BOT }}" https://raw.githubusercontent.com/cloudquery/platform/main/platform/api/servergen/spec.json -o spec.json - name: Set up Go 1.x uses: actions/setup-go@v6 diff --git a/client.gen.go b/client.gen.go index e1c2e1f..be73662 100644 --- a/client.gen.go +++ b/client.gen.go @@ -21,26 +21,16 @@ import ( ) const ( - BasicAuthScopes = "basicAuth.Scopes" BearerAuthScopes = "bearerAuth.Scopes" CookieAuthScopes = "cookieAuth.Scopes" ) -// Defines values for APIKeyRole. -const ( - APIKeyRoleAdminRead APIKeyRole = "admin:read" - APIKeyRoleAdminWrite APIKeyRole = "admin:write" - APIKeyRoleCi APIKeyRole = "ci" - APIKeyRoleGeneralRead APIKeyRole = "general:read" - APIKeyRoleGeneralWrite APIKeyRole = "general:write" - APIKeyRoleSchemaOnly APIKeyRole = "schema-only" -) - // Defines values for AlertSeverity. const ( - AlertSeverityHigh AlertSeverity = "high" - AlertSeverityLow AlertSeverity = "low" - AlertSeverityMedium AlertSeverity = "medium" + AlertSeverityCritical AlertSeverity = "critical" + AlertSeverityHigh AlertSeverity = "high" + AlertSeverityLow AlertSeverity = "low" + AlertSeverityMedium AlertSeverity = "medium" ) // Defines values for AlertState. @@ -51,27 +41,6 @@ const ( AlertStateUnknown AlertState = "unknown" ) -// Defines values for AssetViewRunType. -const ( - AssetViewRunTypeClientTable AssetViewRunType = "client_table" - AssetViewRunTypeS3Source AssetViewRunType = "s3_source" -) - -// Defines values for ConnectorStatus. -const ( - ConnectorStatusAuthenticated ConnectorStatus = "authenticated" - ConnectorStatusCreated ConnectorStatus = "created" - ConnectorStatusFailed ConnectorStatus = "failed" - ConnectorStatusRevoked ConnectorStatus = "revoked" -) - -// Defines values for ContentType. -const ( - ContentTypeImagejpeg ContentType = "image/jpeg" - ContentTypeImagepng ContentType = "image/png" - ContentTypeImagewebp ContentType = "image/webp" -) - // Defines values for ConversationCreateMode. const ( ConversationCreateModeAsk ConversationCreateMode = "ask" @@ -105,29 +74,16 @@ const ( ConversationSendMessageModeSql ConversationSendMessageMode = "sql" ) -// Defines values for CustomColumnColumnType. -const ( - CustomColumnColumnTypeBoolean CustomColumnColumnType = "Boolean" - CustomColumnColumnTypeDateTime CustomColumnColumnType = "DateTime" - CustomColumnColumnTypeFloat CustomColumnColumnType = "Float" - CustomColumnColumnTypeInteger CustomColumnColumnType = "Integer" - CustomColumnColumnTypeString CustomColumnColumnType = "String" -) - // Defines values for CustomColumnSortBy. const ( CustomColumnSortByColumnName CustomColumnSortBy = "column_name" - CustomColumnSortByColumnType CustomColumnSortBy = "column_type" CustomColumnSortByCreatedAt CustomColumnSortBy = "created_at" CustomColumnSortByCreatedBy CustomColumnSortBy = "created_by" CustomColumnSortByDescription CustomColumnSortBy = "description" CustomColumnSortById CustomColumnSortBy = "id" CustomColumnSortByLabel CustomColumnSortBy = "label" - CustomColumnSortByTableName CustomColumnSortBy = "table_name" - CustomColumnSortByTeamName CustomColumnSortBy = "team_name" CustomColumnSortByUpdatedAt CustomColumnSortBy = "updated_at" CustomColumnSortByValueExpr CustomColumnSortBy = "value_expr" - CustomColumnSortByValueType CustomColumnSortBy = "value_type" ) // Defines values for CustomColumnSortDirection. @@ -136,91 +92,43 @@ const ( CustomColumnSortDirectionDesc CustomColumnSortDirection = "desc" ) -// Defines values for CustomColumnValueType. +// Defines values for InsightSeverity. const ( - CustomColumnValueTypeExpression CustomColumnValueType = "expression" - CustomColumnValueTypeExternal CustomColumnValueType = "external" + InsightSeverityCritical InsightSeverity = "Critical" + InsightSeverityHigh InsightSeverity = "High" + InsightSeverityLow InsightSeverity = "Low" + InsightSeverityMedium InsightSeverity = "Medium" ) -// Defines values for LocalUserProvider. +// Defines values for NotificationDestinationType. const ( - LocalUserProviderLocal LocalUserProvider = "local" - LocalUserProviderSaml LocalUserProvider = "saml" + NotificationDestinationTypeSlack NotificationDestinationType = "slack" + NotificationDestinationTypeWebhook NotificationDestinationType = "webhook" ) -// Defines values for OnboardingAWSAccountsType. +// Defines values for NotificationDestinationCreateType. const ( - OnboardingAWSAccountsTypeAccount OnboardingAWSAccountsType = "account" - OnboardingAWSAccountsTypeOU OnboardingAWSAccountsType = "OU" - OnboardingAWSAccountsTypeRoot OnboardingAWSAccountsType = "root" + NotificationDestinationCreateTypeSlack NotificationDestinationCreateType = "slack" + NotificationDestinationCreateTypeWebhook NotificationDestinationCreateType = "webhook" ) -// Defines values for PlatformCreateOrUpdatePolicyStatus. +// Defines values for NotificationDestinationDataType. const ( - PlatformCreateOrUpdatePolicyStatusActive PlatformCreateOrUpdatePolicyStatus = "active" - PlatformCreateOrUpdatePolicyStatusPaused PlatformCreateOrUpdatePolicyStatus = "paused" + NotificationDestinationDataTypeSlack NotificationDestinationDataType = "slack" + NotificationDestinationDataTypeWebhook NotificationDestinationDataType = "webhook" ) -// Defines values for PlatformPolicyStatus. +// Defines values for NotificationDestinationListItemType. const ( - PlatformPolicyStatusActive PlatformPolicyStatus = "active" - PlatformPolicyStatusPaused PlatformPolicyStatus = "paused" + NotificationDestinationListItemTypeSlack NotificationDestinationListItemType = "slack" + NotificationDestinationListItemTypeWebhook NotificationDestinationListItemType = "webhook" ) -// Defines values for PlatformPolicyFrameworkSortBy. -const ( - PlatformPolicyFrameworkSortByDescription PlatformPolicyFrameworkSortBy = "description" - PlatformPolicyFrameworkSortById PlatformPolicyFrameworkSortBy = "id" - PlatformPolicyFrameworkSortByLabel PlatformPolicyFrameworkSortBy = "label" -) - -// Defines values for PlatformPolicyRuleRisk. -const ( - PlatformPolicyRuleRiskCritical PlatformPolicyRuleRisk = "critical" - PlatformPolicyRuleRiskHigh PlatformPolicyRuleRisk = "high" - PlatformPolicyRuleRiskLow PlatformPolicyRuleRisk = "low" - PlatformPolicyRuleRiskMedium PlatformPolicyRuleRisk = "medium" -) - -// Defines values for PlatformPolicyRuleDetailSortBy. -const ( - PlatformPolicyRuleDetailSortByAccount PlatformPolicyRuleDetailSortBy = "account" - PlatformPolicyRuleDetailSortByCloud PlatformPolicyRuleDetailSortBy = "cloud" - PlatformPolicyRuleDetailSortByName PlatformPolicyRuleDetailSortBy = "name" - PlatformPolicyRuleDetailSortByRegion PlatformPolicyRuleDetailSortBy = "region" - PlatformPolicyRuleDetailSortByTags PlatformPolicyRuleDetailSortBy = "tags" -) - -// Defines values for PlatformPolicyRuleSortBy. -const ( - PlatformPolicyRuleSortByCategory PlatformPolicyRuleSortBy = "category" - PlatformPolicyRuleSortByDescription PlatformPolicyRuleSortBy = "description" - PlatformPolicyRuleSortByFrameworkId PlatformPolicyRuleSortBy = "framework_id" - PlatformPolicyRuleSortById PlatformPolicyRuleSortBy = "id" - PlatformPolicyRuleSortByName PlatformPolicyRuleSortBy = "name" - PlatformPolicyRuleSortByRisk PlatformPolicyRuleSortBy = "risk" - PlatformPolicyRuleSortByVersion PlatformPolicyRuleSortBy = "version" - PlatformPolicyRuleSortByViolations PlatformPolicyRuleSortBy = "violations" -) - -// Defines values for PlatformPolicySortBy. -const ( - PlatformPolicySortByCreatedAt PlatformPolicySortBy = "created_at" - PlatformPolicySortByCreatedBy PlatformPolicySortBy = "created_by" - PlatformPolicySortByDescription PlatformPolicySortBy = "description" - PlatformPolicySortByEvaluatedResources PlatformPolicySortBy = "evaluated_resources" - PlatformPolicySortByFilterId PlatformPolicySortBy = "filter_id" - PlatformPolicySortById PlatformPolicySortBy = "id" - PlatformPolicySortByName PlatformPolicySortBy = "name" - PlatformPolicySortByRuleViolations PlatformPolicySortBy = "rule_violations" - PlatformPolicySortByStatus PlatformPolicySortBy = "status" - PlatformPolicySortByUpdatedAt PlatformPolicySortBy = "updated_at" -) - -// Defines values for PlatformPolicySortDirection. +// Defines values for OnboardingAWSAccountsType. const ( - PlatformPolicySortDirectionAsc PlatformPolicySortDirection = "asc" - PlatformPolicySortDirectionDesc PlatformPolicySortDirection = "desc" + OnboardingAWSAccountsTypeAccount OnboardingAWSAccountsType = "account" + OnboardingAWSAccountsTypeOU OnboardingAWSAccountsType = "OU" + OnboardingAWSAccountsTypeRoot OnboardingAWSAccountsType = "root" ) // Defines values for PluginCategory. @@ -271,34 +179,34 @@ const ( PluginReleaseStagePreview PluginReleaseStage = "preview" ) -// Defines values for PluginReleaseStageCreate. +// Defines values for PluginTier. const ( - PluginReleaseStageCreateComingSoon PluginReleaseStageCreate = "coming-soon" - PluginReleaseStageCreateGa PluginReleaseStageCreate = "ga" - PluginReleaseStageCreatePreview PluginReleaseStageCreate = "preview" + PluginTierFree PluginTier = "free" + PluginTierOpenCore PluginTier = "open-core" + PluginTierPaid PluginTier = "paid" ) -// Defines values for PluginReleaseStageUpdate. +// Defines values for PolicyDomain. const ( - PluginReleaseStageUpdateComingSoon PluginReleaseStageUpdate = "coming-soon" - PluginReleaseStageUpdateDeprecated PluginReleaseStageUpdate = "deprecated" - PluginReleaseStageUpdateGa PluginReleaseStageUpdate = "ga" - PluginReleaseStageUpdatePreview PluginReleaseStageUpdate = "preview" + PolicyDomainCompliance PolicyDomain = "compliance" + PolicyDomainFinops PolicyDomain = "finops" + PolicyDomainGovernance PolicyDomain = "governance" + PolicyDomainOperations PolicyDomain = "operations" + PolicyDomainSecurity PolicyDomain = "security" ) -// Defines values for PluginTier. +// Defines values for PolicySeverity. const ( - PluginTierFree PluginTier = "free" - PluginTierOpenCore PluginTier = "open-core" - PluginTierPaid PluginTier = "paid" + PolicySeverityCritical PolicySeverity = "critical" + PolicySeverityHigh PolicySeverity = "high" + PolicySeverityLow PolicySeverity = "low" + PolicySeverityMedium PolicySeverity = "medium" ) -// Defines values for RBACDefaultRole. +// Defines values for PolicyStatus. const ( - RBACDefaultRoleAdminRead RBACDefaultRole = "admin:read" - RBACDefaultRoleAdminWrite RBACDefaultRole = "admin:write" - RBACDefaultRoleGeneralRead RBACDefaultRole = "general:read" - RBACDefaultRoleGeneralWrite RBACDefaultRole = "general:write" + PolicyStatusActive PolicyStatus = "active" + PolicyStatusPaused PolicyStatus = "paused" ) // Defines values for RBACPermissionSortBy. @@ -365,6 +273,17 @@ const ( ReportTemplateSortDirectionDesc ReportTemplateSortDirection = "desc" ) +// Defines values for RoleType. +const ( + RoleTypeAdminRead RoleType = "admin:read" + RoleTypeAdminWrite RoleType = "admin:write" + RoleTypeCI RoleType = "ci" + RoleTypeCustom RoleType = "custom" + RoleTypeGeneralRead RoleType = "general:read" + RoleTypeGeneralWrite RoleType = "general:write" + RoleTypeSchemaOnly RoleType = "schema-only" +) + // Defines values for SyncDestinationMigrateMode. const ( SyncDestinationMigrateModeForced SyncDestinationMigrateMode = "forced" @@ -420,9 +339,20 @@ const ( // Defines values for SyncRunStatusReason. const ( - SyncRunStatusReasonError SyncRunStatusReason = "error" - SyncRunStatusReasonOomKilled SyncRunStatusReason = "oom_killed" - SyncRunStatusReasonPartialSuccess SyncRunStatusReason = "partial_success" + SyncRunStatusReasonError SyncRunStatusReason = "error" + SyncRunStatusReasonIngestionFailed SyncRunStatusReason = "ingestion_failed" + SyncRunStatusReasonOomKilled SyncRunStatusReason = "oom_killed" + SyncRunStatusReasonPartialSuccess SyncRunStatusReason = "partial_success" +) + +// Defines values for SyncRunTableSortBy. +const ( + SyncRunTableSortByCompletedAt SyncRunTableSortBy = "completed_at" + SyncRunTableSortByErrors SyncRunTableSortBy = "errors" + SyncRunTableSortByName SyncRunTableSortBy = "name" + SyncRunTableSortByResources SyncRunTableSortBy = "resources" + SyncRunTableSortByRuntimeSeconds SyncRunTableSortBy = "runtime_seconds" + SyncRunTableSortByStartedAt SyncRunTableSortBy = "started_at" ) // Defines values for SyncRunWorkerPhase. @@ -471,6 +401,11 @@ const ( SyncTestConnectionStatusStarted SyncTestConnectionStatus = "started" ) +// Defines values for TableDataActionAction. +const ( + TableDataActionActionDelete TableDataActionAction = "delete" +) + // Defines values for TableSchemaColumnKind. const ( TableSchemaColumnKindAny TableSchemaColumnKind = "any" @@ -493,14 +428,6 @@ const ( TableSortDirectionDesc TableSortDirection = "desc" ) -// Defines values for TeamPlan. -const ( - TeamPlanEnterprise TeamPlan = "enterprise" - TeamPlanFree TeamPlan = "free" - TeamPlanPaid TeamPlan = "paid" - TeamPlanTrial TeamPlan = "trial" -) - // Defines values for UsageSummaryMetadataAggregationPeriod. const ( UsageSummaryMetadataAggregationPeriodDay UsageSummaryMetadataAggregationPeriod = "day" @@ -515,6 +442,12 @@ const ( UsageSummaryMetadataMetricsPaidRows UsageSummaryMetadataMetrics = "paid_rows" ) +// Defines values for UserProvider. +const ( + UserProviderLocal UserProvider = "local" + UserProviderSaml UserProvider = "saml" +) + // Defines values for PluginSortBy. const ( PluginSortByCreatedAt PluginSortBy = "created_at" @@ -535,16 +468,46 @@ const ( VersionSortByCreatedAt VersionSortBy = "created_at" ) -// Defines values for AddLocalUserJSONBodyRoles. +// Defines values for ListPlatformInsightsParamsSortBy. +const ( + ListPlatformInsightsParamsSortByAccount ListPlatformInsightsParamsSortBy = "account" + ListPlatformInsightsParamsSortByAccountsCount ListPlatformInsightsParamsSortBy = "accounts_count" + ListPlatformInsightsParamsSortByCreatedAt ListPlatformInsightsParamsSortBy = "created_at" + ListPlatformInsightsParamsSortByDetectedAt ListPlatformInsightsParamsSortBy = "detected_at" + ListPlatformInsightsParamsSortByInsightCategory ListPlatformInsightsParamsSortBy = "insight_category" + ListPlatformInsightsParamsSortByResourceTypes ListPlatformInsightsParamsSortBy = "resource_types" + ListPlatformInsightsParamsSortByResourcesCount ListPlatformInsightsParamsSortBy = "resources_count" + ListPlatformInsightsParamsSortBySeverity ListPlatformInsightsParamsSortBy = "severity" + ListPlatformInsightsParamsSortBySource ListPlatformInsightsParamsSortBy = "source" + ListPlatformInsightsParamsSortBySourceCategory ListPlatformInsightsParamsSortBy = "source_category" + ListPlatformInsightsParamsSortByTitle ListPlatformInsightsParamsSortBy = "title" +) + +// Defines values for ListPlatformInsightsParamsSortDir. const ( - AddLocalUserJSONBodyRolesAdminRead AddLocalUserJSONBodyRoles = "admin:read" - AddLocalUserJSONBodyRolesAdminWrite AddLocalUserJSONBodyRoles = "admin:write" + ListPlatformInsightsParamsSortDirAsc ListPlatformInsightsParamsSortDir = "asc" + ListPlatformInsightsParamsSortDirDesc ListPlatformInsightsParamsSortDir = "desc" ) -// Defines values for UpdateLocalUserJSONBodyRoles. +// Defines values for GetPlatformAssetInsightsParamsSortBy. const ( - UpdateLocalUserJSONBodyRolesAdminRead UpdateLocalUserJSONBodyRoles = "admin:read" - UpdateLocalUserJSONBodyRolesAdminWrite UpdateLocalUserJSONBodyRoles = "admin:write" + GetPlatformAssetInsightsParamsSortByAccount GetPlatformAssetInsightsParamsSortBy = "account" + GetPlatformAssetInsightsParamsSortByAccountsCount GetPlatformAssetInsightsParamsSortBy = "accounts_count" + GetPlatformAssetInsightsParamsSortByCreatedAt GetPlatformAssetInsightsParamsSortBy = "created_at" + GetPlatformAssetInsightsParamsSortByDetectedAt GetPlatformAssetInsightsParamsSortBy = "detected_at" + GetPlatformAssetInsightsParamsSortByInsightCategory GetPlatformAssetInsightsParamsSortBy = "insight_category" + GetPlatformAssetInsightsParamsSortByResourceTypes GetPlatformAssetInsightsParamsSortBy = "resource_types" + GetPlatformAssetInsightsParamsSortByResourcesCount GetPlatformAssetInsightsParamsSortBy = "resources_count" + GetPlatformAssetInsightsParamsSortBySeverity GetPlatformAssetInsightsParamsSortBy = "severity" + GetPlatformAssetInsightsParamsSortBySource GetPlatformAssetInsightsParamsSortBy = "source" + GetPlatformAssetInsightsParamsSortBySourceCategory GetPlatformAssetInsightsParamsSortBy = "source_category" + GetPlatformAssetInsightsParamsSortByTitle GetPlatformAssetInsightsParamsSortBy = "title" +) + +// Defines values for GetPlatformAssetInsightsParamsSortDir. +const ( + GetPlatformAssetInsightsParamsSortDirAsc GetPlatformAssetInsightsParamsSortDir = "asc" + GetPlatformAssetInsightsParamsSortDirDesc GetPlatformAssetInsightsParamsSortDir = "desc" ) // Defines values for ListPluginsParamsSortBy. @@ -560,24 +523,46 @@ const ( ListPluginVersionsParamsSortByCreatedAt ListPluginVersionsParamsSortBy = "created_at" ) -// Defines values for TogglePolicyParamsStatus. +// Defines values for ListPoliciesParamsSortBy. +const ( + ListPoliciesParamsSortByCreatedAt ListPoliciesParamsSortBy = "created_at" + ListPoliciesParamsSortByDomain ListPoliciesParamsSortBy = "domain" + ListPoliciesParamsSortByLastRunAt ListPoliciesParamsSortBy = "last_run_at" + ListPoliciesParamsSortByName ListPoliciesParamsSortBy = "name" + ListPoliciesParamsSortBySeverity ListPoliciesParamsSortBy = "severity" + ListPoliciesParamsSortByViolationCount ListPoliciesParamsSortBy = "violation_count" +) + +// Defines values for ListPoliciesParamsSortDir. +const ( + ListPoliciesParamsSortDirAsc ListPoliciesParamsSortDir = "asc" + ListPoliciesParamsSortDirDesc ListPoliciesParamsSortDir = "desc" +) + +// Defines values for ListPoliciesInGroupParamsSortBy. const ( - TogglePolicyParamsStatusActive TogglePolicyParamsStatus = "active" - TogglePolicyParamsStatusPaused TogglePolicyParamsStatus = "paused" + ListPoliciesInGroupParamsSortByName ListPoliciesInGroupParamsSortBy = "name" + ListPoliciesInGroupParamsSortByPolicyCount ListPoliciesInGroupParamsSortBy = "policy_count" ) -// Defines values for ExecuteAdHocQueryTeamParamsFilterMode. +// Defines values for ListPoliciesInGroupParamsSortDir. const ( - ExecuteAdHocQueryTeamParamsFilterModeColumn ExecuteAdHocQueryTeamParamsFilterMode = "column" - ExecuteAdHocQueryTeamParamsFilterModeSearch ExecuteAdHocQueryTeamParamsFilterMode = "search" - ExecuteAdHocQueryTeamParamsFilterModeSmart ExecuteAdHocQueryTeamParamsFilterMode = "smart" + ListPoliciesInGroupParamsSortDirAsc ListPoliciesInGroupParamsSortDir = "asc" + ListPoliciesInGroupParamsSortDirDesc ListPoliciesInGroupParamsSortDir = "desc" ) -// Defines values for ExecuteSavedQueryTeamParamsFilterMode. +// Defines values for ExecuteAdHocQueryParamsFilterMode. const ( - ExecuteSavedQueryTeamParamsFilterModeColumn ExecuteSavedQueryTeamParamsFilterMode = "column" - ExecuteSavedQueryTeamParamsFilterModeSearch ExecuteSavedQueryTeamParamsFilterMode = "search" - ExecuteSavedQueryTeamParamsFilterModeSmart ExecuteSavedQueryTeamParamsFilterMode = "smart" + ExecuteAdHocQueryParamsFilterModeColumn ExecuteAdHocQueryParamsFilterMode = "column" + ExecuteAdHocQueryParamsFilterModeSearch ExecuteAdHocQueryParamsFilterMode = "search" + ExecuteAdHocQueryParamsFilterModeSmart ExecuteAdHocQueryParamsFilterMode = "smart" +) + +// Defines values for ExecuteSavedQueryParamsFilterMode. +const ( + ExecuteSavedQueryParamsFilterModeColumn ExecuteSavedQueryParamsFilterMode = "column" + ExecuteSavedQueryParamsFilterModeSearch ExecuteSavedQueryParamsFilterMode = "search" + ExecuteSavedQueryParamsFilterModeSmart ExecuteSavedQueryParamsFilterMode = "smart" ) // Defines values for ListReportsParamsVisibility. @@ -595,32 +580,32 @@ const ( ListSyncUpgradesParamsSortByPrevVersion ListSyncUpgradesParamsSortBy = "prev_version" ) -// Defines values for TableListColumnsTeamParamsFilterMode. +// Defines values for TableListColumnsParamsFilterMode. const ( - TableListColumnsTeamParamsFilterModeColumn TableListColumnsTeamParamsFilterMode = "column" - TableListColumnsTeamParamsFilterModeSearch TableListColumnsTeamParamsFilterMode = "search" - TableListColumnsTeamParamsFilterModeSmart TableListColumnsTeamParamsFilterMode = "smart" + TableListColumnsParamsFilterModeColumn TableListColumnsParamsFilterMode = "column" + TableListColumnsParamsFilterModeSearch TableListColumnsParamsFilterMode = "search" + TableListColumnsParamsFilterModeSmart TableListColumnsParamsFilterMode = "smart" ) -// Defines values for TableColumnListValuesTeamParamsFilterMode. +// Defines values for TableColumnListValuesParamsFilterMode. const ( - TableColumnListValuesTeamParamsFilterModeColumn TableColumnListValuesTeamParamsFilterMode = "column" - TableColumnListValuesTeamParamsFilterModeSearch TableColumnListValuesTeamParamsFilterMode = "search" - TableColumnListValuesTeamParamsFilterModeSmart TableColumnListValuesTeamParamsFilterMode = "smart" + TableColumnListValuesParamsFilterModeColumn TableColumnListValuesParamsFilterMode = "column" + TableColumnListValuesParamsFilterModeSearch TableColumnListValuesParamsFilterMode = "search" + TableColumnListValuesParamsFilterModeSmart TableColumnListValuesParamsFilterMode = "smart" ) -// Defines values for TableListRowsTeamParamsFilterMode. +// Defines values for TableListRowsParamsFilterMode. const ( - TableListRowsTeamParamsFilterModeColumn TableListRowsTeamParamsFilterMode = "column" - TableListRowsTeamParamsFilterModeSearch TableListRowsTeamParamsFilterMode = "search" - TableListRowsTeamParamsFilterModeSmart TableListRowsTeamParamsFilterMode = "smart" + TableListRowsParamsFilterModeColumn TableListRowsParamsFilterMode = "column" + TableListRowsParamsFilterModeSearch TableListRowsParamsFilterMode = "search" + TableListRowsParamsFilterModeSmart TableListRowsParamsFilterMode = "smart" ) -// Defines values for TableRowByIdTeamParamsFilterMode. +// Defines values for TableRowByIdParamsFilterMode. const ( - TableRowByIdTeamParamsFilterModeColumn TableRowByIdTeamParamsFilterMode = "column" - TableRowByIdTeamParamsFilterModeSearch TableRowByIdTeamParamsFilterMode = "search" - TableRowByIdTeamParamsFilterModeSmart TableRowByIdTeamParamsFilterMode = "smart" + TableRowByIdParamsFilterModeColumn TableRowByIdParamsFilterMode = "column" + TableRowByIdParamsFilterModeSearch TableRowByIdParamsFilterMode = "search" + TableRowByIdParamsFilterModeSmart TableRowByIdParamsFilterMode = "smart" ) // Defines values for GetTeamUsageSummaryParamsMetrics. @@ -658,7 +643,7 @@ const ( GetGroupedTeamUsageSummaryParamsGroupBySyncId GetGroupedTeamUsageSummaryParamsGroupBy = "sync_id" ) -// APIKey API Key to interact with CloudQuery Cloud under specific team +// APIKey API Key to interact with CloudQuery Platform type APIKey struct { CreatedAt *time.Time `json:"created_at,omitempty"` @@ -681,8 +666,8 @@ type APIKey struct { LastAccessAt *time.Time `json:"last_access_at,omitempty"` // Name Name of the API key - Name APIKeyName `json:"name"` - Roles []APIKeyTeamRole `json:"roles"` + Name APIKeyName `json:"name"` + Roles []Role `json:"roles"` } // APIKeyID ID of the API key @@ -691,17 +676,6 @@ type APIKeyID = openapi_types.UUID // APIKeyName Name of the API key type APIKeyName = string -// APIKeyRole defines model for APIKeyRole. -type APIKeyRole string - -// APIKeyTeamRole defines model for APIKeyTeamRole. -type APIKeyTeamRole struct { - Role APIKeyRole `json:"role"` - - // Team The unique name for the team. - Team *TeamName `json:"team,omitempty"` -} - // Alert An alert instance that can be triggered by a query type Alert struct { // CreatedAt Timestamp when the alert was created @@ -812,30 +786,6 @@ type AlertUpdate struct { Severity *AlertSeverity `json:"severity,omitempty"` } -// AssetViewRun defines model for AssetViewRun. -type AssetViewRun struct { - // CreatedAt The time the run was created - CreatedAt time.Time `json:"created_at"` - - // ErrorMessage The error message if the run failed - ErrorMessage *string `json:"error_message,omitempty"` - - // FinishedAt The time the run was finished - FinishedAt *time.Time `json:"finished_at,omitempty"` - - // ID ID of the run - ID openapi_types.UUID `json:"id"` - - // TriggeredBy The user who triggered the run - TriggeredBy *string `json:"triggered_by,omitempty"` - - // Type Type of assetview run - Type AssetViewRunType `json:"type"` -} - -// AssetViewRunType Type of assetview run -type AssetViewRunType string - // AuditLogEvent defines model for AuditLogEvent. type AuditLogEvent struct { // CreatedAt The timestamp when the event was created @@ -856,10 +806,7 @@ type AuditLogEvent struct { // IsSuccess Whether the event was successful IsSuccess *bool `json:"is_success,omitempty"` - // TeamName The name of the team associated with the event - TeamName *string `json:"team_name"` - - // User CloudQuery User + // User User User User `json:"user"` // UserIpAddress The IP address of the user who performed the action @@ -904,193 +851,6 @@ type CompletedSingleAccountNotification struct { SyncRoleArn string `json:"sync_role_arn"` } -// Connector Connector definition -type Connector struct { - // CreatedAt Time the connector was created - CreatedAt time.Time `json:"created_at"` - - // ID unique ID of the connector - ID openapi_types.UUID `json:"id"` - - // Name Name of the connector - Name string `json:"name"` - - // Status The status of the connector - Status ConnectorStatus `json:"status"` - - // Type Type of the connector - Type string `json:"type"` -} - -// ConnectorAuthFinishRequestAWS AWS connector authentication request, filled in after the user has authenticated through AWS -type ConnectorAuthFinishRequestAWS struct { - // ExternalID External ID in the role definition. Optional. If not provided the previously suggested external ID will be used. Empty string will remove the external ID. - ExternalID *string `json:"external_id,omitempty"` - - // RoleARN ARN of role created by the user - RoleARN string `json:"role_arn"` -} - -// ConnectorAuthFinishRequestOAuth OAuth connector authentication request, filled in after the user has authenticated through OAuth -type ConnectorAuthFinishRequestOAuth struct { - // BaseURL Base of the URL the callback url was constructed from - BaseURL string `json:"base_url"` - - // Env Environment variables used in the spec. - Env *[]SyncEnvCreate `json:"env,omitempty"` - - // ReturnURL URL the user was redirected to (including new parameter values) after the OAuth flow is complete - ReturnURL string `json:"return_url"` - Spec *map[string]interface{} `json:"spec,omitempty"` -} - -// ConnectorAuthRequestAWS AWS connector authentication request to start the authentication process -type ConnectorAuthRequestAWS struct { - // Env Environment variables used in the spec. - Env *[]SyncEnvCreate `json:"env,omitempty"` - - // PluginKind Kind of the plugin - PluginKind string `json:"plugin_kind"` - - // PluginName Name of the plugin - PluginName string `json:"plugin_name"` - - // PluginTeam Team that owns the plugin we are authenticating the connector for - PluginTeam string `json:"plugin_team"` - - // PluginVersion Version of the plugin - PluginVersion *string `json:"plugin_version,omitempty"` - - // SkipDependentTables Whether to skip dependent tables, setting from the outer spec - SkipDependentTables *bool `json:"skip_dependent_tables,omitempty"` - - // SkipTables Tables to skip authentication, setting from the outer spec - SkipTables *[]string `json:"skip_tables,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Tables Tables to authenticate, setting from the outer spec - Tables *[]string `json:"tables,omitempty"` -} - -// ConnectorAuthRequestGCP GCP connector authentication request to start the authentication process -type ConnectorAuthRequestGCP struct { - // PluginKind Kind of the plugin - PluginKind string `json:"plugin_kind"` - - // PluginName Name of the plugin - PluginName string `json:"plugin_name"` - - // PluginTeam Team that owns the plugin we are authenticating the connector for - PluginTeam string `json:"plugin_team"` -} - -// ConnectorAuthRequestOAuth OAuth connector authentication request to start the authentication process -type ConnectorAuthRequestOAuth struct { - // BaseURL Base of the URL the callback url will be constructed from - BaseURL string `json:"base_url"` - - // Env Environment variables used in the spec. - Env *[]SyncEnvCreate `json:"env,omitempty"` - - // Flavor Override default flavor - Flavor *string `json:"flavor,omitempty"` - - // PluginKind Kind of the plugin - PluginKind string `json:"plugin_kind"` - - // PluginName Name of the plugin - PluginName string `json:"plugin_name"` - - // PluginTeam Team that owns the plugin we are authenticating the connector for - PluginTeam string `json:"plugin_team"` - - // PluginVersion Version of the plugin - PluginVersion *string `json:"plugin_version,omitempty"` - - // SkipDependentTables Whether to skip dependent tables, setting from the outer spec - SkipDependentTables *bool `json:"skip_dependent_tables,omitempty"` - - // SkipTables Tables to skip authentication, setting from the outer spec - SkipTables *[]string `json:"skip_tables,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Tables Tables to authenticate, setting from the outer spec - Tables *[]string `json:"tables,omitempty"` -} - -// ConnectorAuthResponseAWS AWS connector authentication response to start the authentication process -type ConnectorAuthResponseAWS struct { - // RedirectURL URL to redirect the user to, to authenticate - RedirectURL string `json:"redirect_url"` - - // RoleTemplateURL URL to the role template, to present to the user - RoleTemplateURL string `json:"role_template_url"` - - // SuggestedExternalID External ID suggested to enter into the role definition - SuggestedExternalID string `json:"suggested_external_id"` - - // SuggestedPolicyARNs List of AWS policy ARNs suggested to grant inside the role definition - SuggestedPolicyARNs []string `json:"suggested_policy_arns"` -} - -// ConnectorAuthResponseGCP GCP connector authentication response to start the authentication process -type ConnectorAuthResponseGCP struct { - // ServiceAccount CloudQuery GCP Service Account to grant access to - ServiceAccount string `json:"service_account"` -} - -// ConnectorAuthResponseOAuth OAuth connector authentication response to start the authentication process -type ConnectorAuthResponseOAuth struct { - // RedirectURL URL to redirect the user to, to authenticate - RedirectURL string `json:"redirect_url"` -} - -// ConnectorCreate Connector creation request -type ConnectorCreate struct { - // Name Name of the connector - Name string `json:"name"` - - // Type Type of the connector - Type string `json:"type"` -} - -// ConnectorCredentialsResponseAWS AWS connector credentials response -type ConnectorCredentialsResponseAWS struct { - AccessKeyId string `json:"access_key_id"` - CanExpire bool `json:"can_expire"` - Expires time.Time `json:"expires"` - SecretAccessKey string `json:"secret_access_key"` - SessionToken string `json:"session_token"` - Source string `json:"source"` -} - -// ConnectorCredentialsResponseOAuth OAuth connector credentials response -type ConnectorCredentialsResponseOAuth struct { - AccessToken string `json:"access_token"` - Expires *time.Time `json:"expires,omitempty"` -} - -// ConnectorID ID of the Connector -type ConnectorID = openapi_types.UUID - -// ConnectorIdentityResponseAWS AWS connector identity response -type ConnectorIdentityResponseAWS struct { - // RoleARN Role ARN to assume - RoleARN string `json:"role_arn"` -} - -// ConnectorStatus The status of the connector -type ConnectorStatus string - -// ConnectorUpdate defines model for ConnectorUpdate. -type ConnectorUpdate struct { - // Name Name of the connector - Name *string `json:"name,omitempty"` -} - -// ContentType The HTTP Content-Type of the image or asset -type ContentType string - // Conversation defines model for Conversation. type Conversation struct { CreatedAt time.Time `json:"created_at"` @@ -1170,9 +930,6 @@ type ConversationSendMessageMode string // CreateSyncDestinationTestConnectionV2 defines model for CreateSyncDestinationTestConnectionV2. type CreateSyncDestinationTestConnectionV2 struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // DestinationName Name of an existing destination DestinationName *string `json:"destination_name,omitempty"` @@ -1188,7 +945,7 @@ type CreateSyncDestinationTestConnectionV2 struct { SyncGroupID *string `json:"sync_group_id,omitempty"` // Version Version of the plugin - Version string `json:"version"` + Version *string `json:"version,omitempty"` // WriteMode Write mode for the destination WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` @@ -1232,63 +989,32 @@ type CreatedBy struct { // CustomColumn A custom column that is configured manually by the user. type CustomColumn struct { - ColumnName string `json:"column_name"` - ColumnType *CustomColumnColumnType `json:"column_type,omitempty"` - CreatedAt time.Time `json:"created_at"` - CreatedBy CreatedBy `json:"created_by"` - Description *string `json:"description,omitempty"` + // ColumnName The name for the custom column. + ColumnName CustomColumnColumnName `json:"column_name"` + CreatedAt time.Time `json:"created_at"` + CreatedBy CreatedBy `json:"created_by"` + Description *string `json:"description,omitempty"` // CustomColumnID The unique ID for the custom column. CustomColumnID CustomColumnID `json:"id"` Label string `json:"label"` - // TableName Table this column applies to. - TableName string `json:"table_name"` - - // TeamName The unique name for the team. - TeamName TeamName `json:"team_name"` - - // ValueExpr Value expression. - // For value_type=expression, this is the actual SQL query. - // For value_type=external this is the default value. - ValueExpr *string `json:"value_expr,omitempty"` - ValueType CustomColumnValueType `json:"value_type"` + // ValueExpr The SQL expression for the custom column. + ValueExpr CustomColumnValueExpr `json:"value_expr"` } -// CustomColumnColumnType defines model for CustomColumnColumnType. -type CustomColumnColumnType string +// CustomColumnColumnName The name for the custom column. +type CustomColumnColumnName = string // CustomColumnCreateOrUpdate Create or update a custom column type CustomColumnCreateOrUpdate struct { - ColumnName string `json:"column_name"` - ColumnType *CustomColumnColumnType `json:"column_type,omitempty"` - Description *string `json:"description,omitempty"` - Label string `json:"label"` - - // TableName Table this column applies to. - TableName string `json:"table_name"` - - // ValueExpr Value expression. - // For value_type=expression, this is the actual SQL query. - // For value_type=external this is the default value. - ValueExpr *string `json:"value_expr,omitempty"` - ValueType CustomColumnValueType `json:"value_type"` -} - -// CustomColumnDataImport Import data into the specified custom column -type CustomColumnDataImport struct { - Data []map[string]interface{} `json:"data"` -} - -// CustomColumnDataImportAccepted defines model for CustomColumnDataImportAccepted. -type CustomColumnDataImportAccepted struct { - // CreatedAt The time the data import was created - CreatedAt time.Time `json:"created_at"` -} + // ColumnName The name for the custom column. + ColumnName CustomColumnColumnName `json:"column_name"` + Description *string `json:"description,omitempty"` + Label string `json:"label"` -// CustomColumnDataValues Edit one or more values within the specified custom column -type CustomColumnDataValues struct { - Data []map[string]interface{} `json:"data"` + // ValueExpr The SQL expression for the custom column. + ValueExpr CustomColumnValueExpr `json:"value_expr"` } // CustomColumnID The unique ID for the custom column. @@ -1300,8 +1026,19 @@ type CustomColumnSortBy string // CustomColumnSortDirection defines model for CustomColumnSortDirection. type CustomColumnSortDirection string -// CustomColumnValueType defines model for CustomColumnValueType. -type CustomColumnValueType string +// CustomColumnValueExpr The SQL expression for the custom column. +type CustomColumnValueExpr = string + +// DeployedCURNotification defines model for DeployedCURNotification. +type DeployedCURNotification struct { + CurReportName string `json:"cur_report_name"` + MainRoleArn string `json:"main_role_arn"` + S3BucketName string `json:"s3_bucket_name"` + S3ReportPrefix string `json:"s3_report_prefix"` + StackId string `json:"stack_id"` + Status interface{} `json:"status"` + SyncRoleArn string `json:"sync_role_arn"` +} // DeployedNotification defines model for DeployedNotification. type DeployedNotification struct { @@ -1314,14 +1051,6 @@ type DeployedNotification struct { // DisplayName A human-readable display name type DisplayName = string -// DockerError Error Returned from the Docker Authorization Handler to the Docker Registry -type DockerError struct { - Details string `json:"details"` -} - -// Email defines model for Email. -type Email = openapi_types.Email - // FailedNotification defines model for FailedNotification. type FailedNotification struct { Reason string `json:"reason"` @@ -1367,7 +1096,7 @@ type FilterCreate struct { Expression FilterExpression `json:"expression"` Name string `json:"name"` - // Public Whether the filter is visible to all users in the team, or only to the user who created it + // Public Whether the filter is visible to all users, or only to the user who created it Public bool `json:"public"` Tags []FilterTag `json:"tags,omitempty"` } @@ -1391,36 +1120,69 @@ type FilterUpdate struct { Tags *[]FilterTag `json:"tags,omitempty"` } -// ImageURL defines model for ImageURL. -type ImageURL struct { - DownloadUrl string `json:"download_url"` - - // RequiredHeaders Required HTTP headers to include for the upload - RequiredHeaders map[string][]string `json:"required_headers"` - UploadUrl string `json:"upload_url"` -} +// Insight Security or compliance insight summary +type Insight struct { + // AccountsCount Number of accounts affected + AccountsCount int64 `json:"accounts_count"` -// Invitation defines model for Invitation. -type Invitation struct { + // CreatedAt When the insight record was created CreatedAt time.Time `json:"created_at"` - Email Email `json:"email"` - Role string `json:"role"` - // TeamName The unique name for the team. - TeamName TeamName `json:"team_name"` + // DetectedAt When the insight was first detected + DetectedAt time.Time `json:"detected_at"` + + // Evidence Detailed evidence (description) of the insight (Markdown) + Evidence *string `json:"evidence,omitempty"` + + // InsightID Unique identifier for the insight + InsightID InsightID `json:"id"` + + // InsightCategory Category (e.g. Security, Cost Optimization) + InsightCategory string `json:"insight_category"` + + // LastSyncedAt When the insight was last synced + LastSyncedAt time.Time `json:"last_synced_at"` + + // Mitigation Mitigation steps for the insight (Markdown) + Mitigation *string `json:"mitigation,omitempty"` + + // ResourceTypes Resource types affected + ResourceTypes string `json:"resource_types"` + + // ResourcesCount Number of resources affected + ResourcesCount int64 `json:"resources_count"` + + // InsightSeverity Insight severity level + InsightSeverity InsightSeverity `json:"severity"` + + // Source Source (e.g. Platform, Wiz, Lacework) + Source string `json:"source"` + + // SourceCategory Source category (e.g. Platform, Third Party, Custom) + SourceCategory string `json:"source_category"` + Subcategory *string `json:"subcategory"` + + // Tags Tags associated with the insight + Tags *[]string `json:"tags,omitempty"` + + // Title Title of the insight + Title string `json:"title"` } -// InvitationWithToken defines model for InvitationWithToken. -type InvitationWithToken struct { - CreatedAt time.Time `json:"created_at"` - Email Email `json:"email"` - Role string `json:"role"` +// InsightID Unique identifier for the insight +type InsightID = string - // TeamName The unique name for the team. - TeamName TeamName `json:"team_name"` +// InsightSeverity Insight severity level +type InsightSeverity string - // Token The token used to accept the invitation - Token openapi_types.UUID `json:"token"` +// InsightsListMetadata defines model for InsightsListMetadata. +type InsightsListMetadata struct { + LastPage *int `json:"last_page,omitempty"` + PageSize int `json:"page_size"` + ResourceCount *int `json:"resource_count,omitempty"` + ResourceTypes *int `json:"resource_types,omitempty"` + TimeMs *int `json:"time_ms,omitempty"` + TotalCount *int `json:"total_count,omitempty"` } // ListMetadata defines model for ListMetadata. @@ -1458,9 +1220,6 @@ type ListPlugin struct { // Official True if the plugin is maintained by CloudQuery, false otherwise Official bool `json:"official"` - // PinnedVersion CloudQuery Pinned Plugin Version Info - PinnedVersion *ListPluginPinnedVersion `json:"pinned_version,omitempty"` - // PriceCategory Supported price categories for billing PriceCategory *PluginPriceCategory `json:"price_category,omitempty"` @@ -1493,23 +1252,6 @@ type ListPlugin struct { USDPerRow string `json:"usd_per_row"` } -// ListPluginPinnedVersion CloudQuery Pinned Plugin Version Info -type ListPluginPinnedVersion struct { - // Initialized Deprecated. Assume `true`. - // Deprecated: - Initialized bool `json:"initialized"` - - // Mirroring Deprecated. Assume `false`. - // Deprecated: - Mirroring bool `json:"mirroring"` - - // Name The version in semantic version format. - Name VersionName `json:"name"` - - // Range A version range in semantic version format. - Range VersionRange `json:"range"` -} - // ListPlugins defines model for ListPlugins. type ListPlugins = []ListPlugin @@ -1583,123 +1325,102 @@ type ListSyncLastRun struct { Warnings int64 `json:"warnings"` } -// LocalUser defines model for LocalUser. -type LocalUser struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Email string `json:"email"` - Enabled bool `json:"enabled"` - - // ID ID of the User - ID openapi_types.UUID `json:"id"` - LastLoginAt *time.Time `json:"last_login_at,omitempty"` +// NotificationDestination Notification Destination +type NotificationDestination struct { + CreatedAt time.Time `json:"created_at"` - // MFAConfigured Whether the user has MFA configured - MFAConfigured *bool `json:"mfa_configured,omitempty"` + // CustomMessage Optional custom message prepended to the alert when sending to Slack (only for slack type) + CustomMessage *string `json:"custom_message"` + Enabled bool `json:"enabled"` - // Name The unique name for the user. - Name *UserName `json:"name,omitempty"` + // HTTPBody HTTP body template (required for webhook type, must not be set for slack type). Supports simple variable interpolation using {{variable}} syntax. Available variables: {{query_name}}, {{query_url}}, {{alert_status}}, {{alert_message}}, {{alert_severity}}, {{alert_violations}}. + HTTPBody *string `json:"http_body,omitempty"` + HTTPHeaders map[string]string `json:"http_headers,omitempty"` - // ProfileImageURL Profile image URL of user - ProfileImageURL *string `json:"profile_image_url,omitempty"` - Provider LocalUserProvider `json:"provider"` + // NotificationDestinationID The unique ID for the notification destination. + NotificationDestinationID NotificationDestinationID `json:"id"` - // Roles Global roles for the user - Roles []string `json:"roles"` + // LastNotificationErrorCode Error code of the last notification error + LastNotificationErrorCode *string `json:"last_notification_error_code"` - // TrackingOptedIn Whether anonymous user tracking was opted into - TrackingOptedIn *bool `json:"tracking_opted_in,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} + // LastNotificationErrorMessage Error message of the last notification error + LastNotificationErrorMessage *string `json:"last_notification_error_message"` -// LocalUserProvider defines model for LocalUserProvider. -type LocalUserProvider string + // LastNotificationErrorTimestamp Timestamp of the last notification error + LastNotificationErrorTimestamp *time.Time `json:"last_notification_error_timestamp"` + Name string `json:"name"` -// LocalUserWithTeams defines model for LocalUserWithTeams. -type LocalUserWithTeams struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Email string `json:"email"` - Enabled bool `json:"enabled"` + // SlackChannels List of Slack channel IDs (only for slack type) + SlackChannels *[]string `json:"slack_channels,omitempty"` - // ID ID of the User - ID openapi_types.UUID `json:"id"` - LastLoginAt *time.Time `json:"last_login_at,omitempty"` + // SlackConnectionID Slack connection ID (only for slack type) + SlackConnectionID *openapi_types.UUID `json:"slack_connection_id"` - // MFAConfigured Whether the user has MFA configured - MFAConfigured *bool `json:"mfa_configured,omitempty"` + // Type Type of notification destination + Type NotificationDestinationType `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + URL string `json:"url"` +} - // Name The unique name for the user. - Name *UserName `json:"name,omitempty"` +// NotificationDestinationType Type of notification destination +type NotificationDestinationType string - // ProfileImageURL Profile image URL of user - ProfileImageURL *string `json:"profile_image_url,omitempty"` - Provider LocalUserProvider `json:"provider"` +// NotificationDestinationCreate defines model for NotificationDestinationCreate. +type NotificationDestinationCreate struct { + // CustomMessage Optional custom message prepended to the alert when sending to Slack (only for slack type, must not be set for webhook) + CustomMessage *string `json:"custom_message,omitempty"` + Enabled bool `json:"enabled"` - // Roles Global roles for the user - Roles []string `json:"roles"` - Teams []MembershipWithTeamName `json:"teams"` + // HTTPBody HTTP body template (required for webhook type, must not be set for slack type). Supports simple variable interpolation using {{variable}} syntax. Available variables: {{query_name}}, {{query_url}}, {{alert_status}}, {{alert_message}}, {{alert_severity}}, {{alert_violations}}. + HTTPBody *string `json:"http_body,omitempty"` - // TrackingOptedIn Whether anonymous user tracking was opted into - TrackingOptedIn *bool `json:"tracking_opted_in,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} + // HTTPHeaders HTTP headers (required for webhook type, must not be set for slack type) + HTTPHeaders map[string]string `json:"http_headers,omitempty"` + Name string `json:"name"` -// MembershipWithTeam defines model for MembershipWithTeam. -type MembershipWithTeam struct { - Roles []string `json:"roles"` + // SlackChannels List of Slack channel IDs to send notifications to (required for slack type) + SlackChannels *[]string `json:"slack_channels,omitempty"` - // Team CloudQuery Team - Team Team `json:"team"` -} + // SlackConnectionID Slack connection ID (required for slack type) + SlackConnectionID *openapi_types.UUID `json:"slack_connection_id,omitempty"` -// MembershipWithTeamName defines model for MembershipWithTeamName. -type MembershipWithTeamName struct { - CreatedAt time.Time `json:"created_at"` - Roles []string `json:"roles"` + // Type Type of notification destination + Type *NotificationDestinationCreateType `json:"type,omitempty"` - // TeamName The unique name for the team. - TeamName TeamName `json:"team_name"` - UpdatedAt time.Time `json:"updated_at"` + // URL Webhook URL (required for webhook type, must not be set for slack type) + URL *string `json:"url,omitempty"` } -// MembershipWithUser defines model for MembershipWithUser. -type MembershipWithUser struct { - CustomRoles *[]RBACRole `json:"customRoles,omitempty"` - Roles []RBACDefaultRole `json:"roles"` +// NotificationDestinationCreateType Type of notification destination +type NotificationDestinationCreateType string - // User CloudQuery User - User User `json:"user"` -} +// NotificationDestinationData Notification Destination Data +type NotificationDestinationData struct { + // CustomMessage Optional custom message prepended to the alert when sending to Slack (only for slack type, must not be set for webhook) + CustomMessage *string `json:"custom_message,omitempty"` -// NotificationDestination Notification Destination -type NotificationDestination struct { - CreatedAt time.Time `json:"created_at"` - Enabled bool `json:"enabled"` - HTTPBody *string `json:"http_body,omitempty"` + // HTTPBody HTTP body template (required for webhook type, must not be set for slack type). Supports simple variable interpolation using {{variable}} syntax. Available variables: {{query_name}}, {{query_url}}, {{alert_status}}, {{alert_message}}, {{alert_severity}}, {{alert_violations}}. + HTTPBody *string `json:"http_body,omitempty"` + + // HTTPHeaders HTTP headers (required for webhook type, must not be set for slack type) HTTPHeaders map[string]string `json:"http_headers,omitempty"` - // NotificationDestinationID The unique ID for the notification destination. - NotificationDestinationID NotificationDestinationID `json:"id"` - Name string `json:"name"` - UpdatedAt time.Time `json:"updated_at"` - URL string `json:"url"` -} + // SlackChannels List of Slack channel IDs to send notifications to (required for slack type) + SlackChannels *[]string `json:"slack_channels,omitempty"` -// NotificationDestinationCreate defines model for NotificationDestinationCreate. -type NotificationDestinationCreate struct { - Enabled bool `json:"enabled"` - HTTPBody *string `json:"http_body,omitempty"` - HTTPHeaders map[string]string `json:"http_headers,omitempty"` - Name string `json:"name"` - URL string `json:"url"` -} + // SlackConnectionID Slack connection ID (required for slack type) + SlackConnectionID *openapi_types.UUID `json:"slack_connection_id,omitempty"` -// NotificationDestinationData Notification Destination Data -type NotificationDestinationData struct { - HTTPBody *string `json:"http_body,omitempty"` - HTTPHeaders map[string]string `json:"http_headers,omitempty"` - URL string `json:"url"` + // Type Type of notification destination + Type *NotificationDestinationDataType `json:"type,omitempty"` + + // URL Webhook URL (required for webhook type, must not be set for slack type) + URL *string `json:"url,omitempty"` } +// NotificationDestinationDataType Type of notification destination +type NotificationDestinationDataType string + // NotificationDestinationID The unique ID for the notification destination. type NotificationDestinationID = openapi_types.UUID @@ -1711,10 +1432,19 @@ type NotificationDestinationListItem struct { // NotificationDestinationID The unique ID for the notification destination. NotificationDestinationID NotificationDestinationID `json:"id"` Name string `json:"name"` - UpdatedAt time.Time `json:"updated_at"` - URL string `json:"url"` + + // SlackChannels List of Slack channel names (only for slack type) + SlackChannels *[]string `json:"slack_channels,omitempty"` + + // Type Type of notification destination + Type NotificationDestinationListItemType `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + URL string `json:"url"` } +// NotificationDestinationListItemType Type of notification destination +type NotificationDestinationListItemType string + // NotificationDestinationTestResponse Notification Destination Test Response type NotificationDestinationTestResponse struct { // HTTPBody Body of the HTTP response from the notification destination @@ -1735,11 +1465,56 @@ type NotificationDestinationTestResponse struct { // NotificationDestinationUpdate Update Notification Destination type NotificationDestinationUpdate struct { - Enabled *bool `json:"enabled,omitempty"` + // CustomMessage Optional custom message prepended to the alert when sending to Slack (only for slack type, must not be set for webhook) + CustomMessage *string `json:"custom_message,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + + // HTTPBody HTTP body template (required for webhook type, must not be set for slack type). Supports simple variable interpolation using {{variable}} syntax. Available variables: {{query_name}}, {{query_url}}, {{alert_status}}, {{alert_message}}, {{alert_severity}}, {{alert_violations}}. HTTPBody *string `json:"http_body,omitempty"` HTTPHeaders *map[string]string `json:"http_headers,omitempty"` Name *string `json:"name,omitempty"` - URL *string `json:"url,omitempty"` + + // SlackChannels List of Slack channel IDs to send notifications to (only for slack type, must not be set for webhook) + SlackChannels *[]string `json:"slack_channels,omitempty"` + + // SlackConnectionID Slack connection ID (only for slack type, must not be set for webhook) + SlackConnectionID *openapi_types.UUID `json:"slack_connection_id,omitempty"` + URL *string `json:"url,omitempty"` +} + +// NotificationDetail A notification instance for a triggered alert, including one notification destination. Each notification destination for an alert will result in a separate notification item. +type NotificationDetail struct { + // CreatedAt Timestamp when the alert was created + CreatedAt time.Time `json:"created_at"` + + // ID Unique identifier for the alert + ID openapi_types.UUID `json:"id"` + + // LastEvaluatedAt Timestamp when the alert was last evaluated + LastEvaluatedAt *time.Time `json:"last_evaluated_at,omitempty"` + + // Message Alert message content + Message string `json:"message"` + + // NotificationDestination Notification Destination List Item + NotificationDestination *NotificationDestinationListItem `json:"notification_destination,omitempty"` + + // PolicyID Reference to the associated policy + PolicyID openapi_types.UUID `json:"policy_id"` + + // QueryID Reference to the associated query + QueryID openapi_types.UUID `json:"query_id"` + Severity AlertSeverity `json:"severity"` + State AlertState `json:"state"` + + // TotalViolations Number of violations that triggered the alert + TotalViolations int64 `json:"total_violations"` + + // TriggeredAt Timestamp when the alert was triggered + TriggeredAt *time.Time `json:"triggered_at,omitempty"` + + // UpdatedAt Timestamp when the alert was last updated + UpdatedAt time.Time `json:"updated_at"` } // OnboardingAWS AWS OpenID onboarding @@ -1796,6 +1571,76 @@ type OnboardingAWSAccounts struct { // OnboardingAWSAccountsType Type of the account type OnboardingAWSAccountsType string +// OnboardingAWSCUR AWS CUR onboarding +type OnboardingAWSCUR struct { + // Audience OpenID audience claim for the trust relationship + Audience string `json:"audience"` + CreatedAt time.Time `json:"created_at"` + + // CURReportName Name of the CUR report + CURReportName *string `json:"cur_report_name,omitempty"` + + // FailureReason Error details if the onboarding failed + FailureReason *string `json:"failure_reason,omitempty"` + + // OnboardingID ID of the cloud provider onboarding session + OnboardingID OnboardingID `json:"id"` + + // IssuerURL URL of the OpenID server to use when setting up a trust relationship + IssuerURL string `json:"issuer_url"` + + // S3BucketName Name of the S3 bucket containing CUR reports + S3BucketName *string `json:"s3_bucket_name,omitempty"` + + // S3ReportPrefix Prefix path for CUR reports in the S3 bucket + S3ReportPrefix *string `json:"s3_report_prefix,omitempty"` + + // OnboardingStage Stage of the onboarding process + OnboardingStage string `json:"stage"` + + // Subject OpenID subject claim for the trust relationship + Subject string `json:"subject"` + + // SyncRoleARN Role used to access the S3 bucket with CUR reports + SyncRoleARN *string `json:"sync_role_arn,omitempty"` + UpdatedAt time.Time `json:"updated_at"` +} + +// OnboardingAWSCURCreateResponse AWS CUR onboarding create response +type OnboardingAWSCURCreateResponse struct { + // Audience OpenID audience claim for the trust relationship + Audience string `json:"audience"` + + // OnboardingID ID of the cloud provider onboarding session + OnboardingID OnboardingID `json:"id"` + + // IssuerURL URL of the OpenID server to use when setting up a trust relationship + IssuerURL string `json:"issuer_url"` + + // NotifyPath Path of the notify endpoint to use for status updates + NotifyPath string `json:"notify_path"` + + // NotifyToken An authentication token that should be used for notifications + NotifyToken string `json:"notify_token"` + + // Region AWS region where the CUR stack must be deployed. Always 'us-east-1' because AWS Cost and Usage Reports are only available in that region. + Region string `json:"region"` + + // StackName Stack name that should be used + StackName *string `json:"stack_name,omitempty"` + + // Subject OpenID subject claim for the trust relationship + Subject string `json:"subject"` + + // TemplateURL URL of the CloudFormation template to use for the CUR setup + TemplateURL string `json:"template_url"` +} + +// OnboardingAWSCURNotification defines model for OnboardingAWSCURNotification. +type OnboardingAWSCURNotification struct { + union json.RawMessage +} + // OnboardingAWSCreateResponse AWS OpenID onboarding type OnboardingAWSCreateResponse struct { // Audience OpenID audience claim for the trust realshionship @@ -1849,96 +1694,85 @@ type OnboardingID = openapi_types.UUID // OrganizationalUnitID ID of an organizational unit in AWS type OrganizationalUnitID = string -// PlatformCreateOrUpdatePolicy defines model for PlatformCreateOrUpdatePolicy. -type PlatformCreateOrUpdatePolicy struct { - Description string `json:"description"` - FilterID *string `json:"filter_id,omitempty"` - FrameworkIDs []openapi_types.UUID `json:"framework_ids"` - Name string `json:"name"` - Status PlatformCreateOrUpdatePolicyStatus `json:"status"` -} - -// PlatformCreateOrUpdatePolicyStatus defines model for PlatformCreateOrUpdatePolicy.Status. -type PlatformCreateOrUpdatePolicyStatus string - -// PlatformPolicy defines model for PlatformPolicy. -type PlatformPolicy struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - - // CreatedBy Deprecated: Use created_by2 instead - CreatedBy *string `json:"created_by,omitempty"` - CreatedBy2 *CreatedBy `json:"created_by2,omitempty"` - Description string `json:"description"` - EvaluatedResources *int `json:"evaluated_resources,omitempty"` - FilterID *string `json:"filter_id,omitempty"` - FrameworkIDs []openapi_types.UUID `json:"framework_ids"` - ID openapi_types.UUID `json:"id"` - Name string `json:"name"` - RuleViolations *int `json:"rule_violations,omitempty"` - Status PlatformPolicyStatus `json:"status"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - UpdatedBy *CreatedBy `json:"updated_by,omitempty"` -} - -// PlatformPolicyStatus defines model for PlatformPolicy.Status. -type PlatformPolicyStatus string - -// PlatformPolicyFramework defines model for PlatformPolicyFramework. -type PlatformPolicyFramework struct { - Description *string `json:"description,omitempty"` - ID openapi_types.UUID `json:"id"` - Label string `json:"label"` -} +// PlatformDataSettings Platform data settings definition +type PlatformDataSettings struct { + // OwnershipTags List of tag names for asset ownership + OwnershipTags []string `json:"ownership_tags"` +} + +// PlatformDataSettingsUpdate Platform data settings partial update +type PlatformDataSettingsUpdate struct { + // OwnershipTags List of tag names for asset ownership + OwnershipTags *[]string `json:"ownership_tags,omitempty"` +} + +// PlatformInsightFilter Saved insight filter details +type PlatformInsightFilter struct { + Accounts *[]string `json:"accounts,omitempty"` + Clouds *[]string `json:"clouds,omitempty"` + CreatedAt time.Time `json:"created_at"` + Description *string `json:"description,omitempty"` + GroupBy *[]string `json:"group_by,omitempty"` + Id openapi_types.UUID `json:"id"` + InsightCategory *[]string `json:"insight_category,omitempty"` + Name string `json:"name"` + + // OwnershipTags Ownership tag filters keyed by tag name + OwnershipTags *map[string][]string `json:"ownership_tags,omitempty"` + Regions *[]string `json:"regions,omitempty"` + ResourceTypes *[]string `json:"resource_types,omitempty"` + Search *string `json:"search,omitempty"` + Severities *[]InsightSeverity `json:"severities,omitempty"` + Source *[]string `json:"source,omitempty"` + SourceCategory *[]string `json:"source_category,omitempty"` + Tags *[]string `json:"tags,omitempty"` + UpdatedAt time.Time `json:"updated_at"` -// PlatformPolicyFrameworkSortBy defines model for PlatformPolicyFrameworkSortBy. -type PlatformPolicyFrameworkSortBy string - -// PlatformPolicyRule defines model for PlatformPolicyRule. -type PlatformPolicyRule struct { - Category *string `json:"category,omitempty"` - Description *string `json:"description,omitempty"` - FrameworkID *openapi_types.UUID `json:"framework_id,omitempty"` - FrameworkName *string `json:"framework_name,omitempty"` - ID *openapi_types.UUID `json:"id,omitempty"` - LearnMoreLink *string `json:"learn_more_link,omitempty"` - Name *string `json:"name,omitempty"` - Remediation *string `json:"remediation,omitempty"` - Risk *PlatformPolicyRuleRisk `json:"risk,omitempty"` - Violations *int `json:"violations,omitempty"` -} - -// PlatformPolicyRuleRisk defines model for PlatformPolicyRule.Risk. -type PlatformPolicyRuleRisk string - -// PlatformPolicyRuleDetail defines model for PlatformPolicyRuleDetail. -type PlatformPolicyRuleDetail struct { - Account *string `json:"account,omitempty"` - Cloud *string `json:"cloud,omitempty"` - Name *string `json:"name,omitempty"` - Region *string `json:"region,omitempty"` - Tags *[]string `json:"tags,omitempty"` + // UserID ID of the User + UserID *UserID `json:"user_id,omitempty"` } -// PlatformPolicyRuleDetailSortBy defines model for PlatformPolicyRuleDetailSortBy. -type PlatformPolicyRuleDetailSortBy string - -// PlatformPolicyRuleSortBy defines model for PlatformPolicyRuleSortBy. -type PlatformPolicyRuleSortBy string - -// PlatformPolicySortBy defines model for PlatformPolicySortBy. -type PlatformPolicySortBy string - -// PlatformPolicySortDirection defines model for PlatformPolicySortDirection. -type PlatformPolicySortDirection string - -// PlatformPolicyViolationHistory defines model for PlatformPolicyViolationHistory. -type PlatformPolicyViolationHistory struct { - // CreatedAt Time the rule violations were logged. - CreatedAt time.Time `json:"created_at"` - ID openapi_types.UUID `json:"id"` +// PlatformInsightFilterCreate Definition for creating a new saved insight filter +type PlatformInsightFilterCreate struct { + Accounts *[]string `json:"accounts,omitempty"` + Clouds *[]string `json:"clouds,omitempty"` + Description *string `json:"description,omitempty"` + GroupBy *[]string `json:"group_by,omitempty"` + InsightCategory *[]string `json:"insight_category,omitempty"` + Name string `json:"name"` + + // OwnershipTags Ownership tag filters keyed by tag name + OwnershipTags *map[string][]string `json:"ownership_tags,omitempty"` + Regions *[]string `json:"regions,omitempty"` + ResourceTypes *[]string `json:"resource_types,omitempty"` + Search *string `json:"search,omitempty"` + Severities *[]InsightSeverity `json:"severities,omitempty"` + Source *[]string `json:"source,omitempty"` + SourceCategory *[]string `json:"source_category,omitempty"` + Tags *[]string `json:"tags,omitempty"` +} + +// InsightFilterID The unique ID for the insight filter +type InsightFilterID = openapi_types.UUID + +// PlatformInsightFilterUpdate Definition for updating an existing saved insight filter +type PlatformInsightFilterUpdate struct { + Accounts *[]string `json:"accounts,omitempty"` + Clouds *[]string `json:"clouds,omitempty"` + Description *string `json:"description,omitempty"` + GroupBy *[]string `json:"group_by,omitempty"` + InsightCategory *[]string `json:"insight_category,omitempty"` + Name *string `json:"name,omitempty"` - // RuleViolations Number of rule violations logged. - RuleViolations int `json:"rule_violations"` + // OwnershipTags Ownership tag filters keyed by tag name + OwnershipTags *map[string][]string `json:"ownership_tags,omitempty"` + Regions *[]string `json:"regions,omitempty"` + ResourceTypes *[]string `json:"resource_types,omitempty"` + Search *string `json:"search,omitempty"` + Severities *[]InsightSeverity `json:"severities,omitempty"` + Source *[]string `json:"source,omitempty"` + SourceCategory *[]string `json:"source_category,omitempty"` + Tags *[]string `json:"tags,omitempty"` } // PlatformSettings Platform settings definition @@ -2030,82 +1864,6 @@ type PluginAsset struct { // PluginCategory Supported categories for plugins type PluginCategory string -// PluginCreate defines model for PluginCreate. -type PluginCreate struct { - // Category Supported categories for plugins - Category PluginCategory `json:"category"` - - // DisplayName The plugin's display name, as shown in the CloudQuery Hub. - DisplayName string `json:"display_name"` - - // FreeRowsPerMonth Deprecated. Use `price_category` instead. - // Deprecated: - FreeRowsPerMonth *int64 `json:"free_rows_per_month,omitempty"` - Homepage *string `json:"homepage,omitempty"` - - // Kind The kind of plugin, ie. source or destination. - Kind PluginKind `json:"kind"` - - // Logo URL to the plugin's logo. This will be shown in the CloudQuery Hub. - Logo *string `json:"logo,omitempty"` - - // Name The unique name for the plugin. - Name PluginName `json:"name"` - - // PriceCategory Supported price categories for billing - PriceCategory *PluginPriceCategory `json:"price_category,omitempty"` - - // Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the team. - Public bool `json:"public"` - - // ReleaseStage Official plugins can go through three release stages: Coming Soon, Preview, and GA. - // The Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready. - // Both Preview and GA plugins follow semantic versioning. The main differences between the two stages are: - // Preview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage. - ReleaseStage *PluginReleaseStageCreate `json:"release_stage,omitempty"` - Repository *string `json:"repository,omitempty"` - - // ShortDescription Short description of the plugin. This will be shown in the CloudQuery Hub. - ShortDescription string `json:"short_description"` - - // TeamName The unique name for the team. - TeamName TeamName `json:"team_name"` - - // Tier This field is deprecated, refer to `price_category` instead. - // This field is only kept for backward compatibility and may be removed in a future release. - // Supported tiers for plugins. - // - free: Free tier, with no paid tables. - // - paid: Paid tier. These plugins may have paid tables, but can also have free tables. They require login to access. - // - open-core: This option is deprecated, values will either be free or paid. - // Deprecated: - Tier *PluginTier `json:"tier,omitempty"` - - // USDPerRow Deprecated. Use `price_category` instead. - // Deprecated: - USDPerRow *string `json:"usd_per_row,omitempty"` -} - -// PluginDocsPage CloudQuery Plugin Documentation Page -type PluginDocsPage struct { - // Content The content of the documentation page. Supports markdown. - Content string `json:"content"` - - // Name The unique name for the plugin documentation page. - Name PluginDocsPageName `json:"name"` -} - -// PluginDocsPageCreate CloudQuery Plugin Documentation Page -type PluginDocsPageCreate struct { - // Content The content of the documentation page. Supports markdown. - Content string `json:"content"` - - // Name The unique name for the plugin documentation page. - Name PluginDocsPageName `json:"name"` -} - -// PluginDocsPageName The unique name for the plugin documentation page. -type PluginDocsPageName = string - // PluginKind The kind of plugin, ie. source or destination. type PluginKind string @@ -2127,18 +1885,6 @@ type PluginProtocols = []int // Preview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage. type PluginReleaseStage string -// PluginReleaseStageCreate Official plugins can go through three release stages: Coming Soon, Preview, and GA. -// The Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready. -// Both Preview and GA plugins follow semantic versioning. The main differences between the two stages are: -// Preview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage. -type PluginReleaseStageCreate string - -// PluginReleaseStageUpdate Official plugins can go through three release stages: Coming Soon, Preview, and GA. -// The Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready. -// Both Preview and GA plugins follow semantic versioning. The main differences between the two stages are: -// Preview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage. -type PluginReleaseStageUpdate string - // PluginSpecJSONSchema The specification of the plugin. This is a JSON schema that describes the configuration of the plugin. type PluginSpecJSONSchema = string @@ -2193,35 +1939,6 @@ type PluginTableColumn struct { Unique bool `json:"unique"` } -// PluginTableCreate CloudQuery Plugin Table -type PluginTableCreate struct { - Columns *[]PluginTableColumn `json:"columns,omitempty"` - - // Description Description of the table - Description *string `json:"description,omitempty"` - - // IsIncremental Whether the table is incremental - IsIncremental *bool `json:"is_incremental,omitempty"` - - // IsPaid Whether the table is paid - IsPaid *bool `json:"is_paid,omitempty"` - - // Name Name of the table - Name PluginTableName `json:"name"` - - // Parent Name of the parent table, if any - Parent *string `json:"parent,omitempty"` - - // PermissionsNeeded List of permissions needed to access this table, if any - PermissionsNeeded *[]string `json:"permissions_needed,omitempty"` - - // Relations Names of the tables that depend on this table - Relations *[]string `json:"relations,omitempty"` - - // Title Title of the table - Title *string `json:"title,omitempty"` -} - // PluginTableDetails defines model for PluginTableDetails. type PluginTableDetails struct { // Columns List of columns @@ -2263,81 +1980,11 @@ type PluginTableName = string // - open-core: This option is deprecated, values will either be free or paid. type PluginTier string -// PluginUIAsset CloudQuery Plugin UI Asset -type PluginUIAsset struct { - // Name The path and name of the asset - Name string `json:"name"` - - // UploadURL URL to upload the asset to - UploadURL string `json:"upload_url"` -} - -// PluginUIAssetUploadRequest CloudQuery Plugin UI Asset Upload Request -type PluginUIAssetUploadRequest struct { - // ContentType Content-type of the asset - ContentType *string `json:"content_type,omitempty"` - - // Name The path and name of the asset - Name string `json:"name"` -} - -// PluginUpdate defines model for PluginUpdate. -type PluginUpdate struct { - // Category Supported categories for plugins - Category *PluginCategory `json:"category,omitempty"` - - // DisplayName The plugin's display name, as shown in the CloudQuery Hub. - DisplayName *string `json:"display_name,omitempty"` - - // FreeRowsPerMonth Deprecated. Update `price_category` instead. - // Deprecated: - FreeRowsPerMonth *int64 `json:"free_rows_per_month,omitempty"` - Homepage *string `json:"homepage,omitempty"` - - // Logo URL to the plugin's logo. This will be shown in the CloudQuery Hub. - Logo *string `json:"logo,omitempty"` - - // PriceCategory Supported price categories for billing - PriceCategory *PluginPriceCategory `json:"price_category,omitempty"` - - // Public If plugin is not public, it won't be visible to other teams in the CloudQuery Hub. - Public *bool `json:"public,omitempty"` - - // ReleaseStage Official plugins can go through three release stages: Coming Soon, Preview, and GA. - // The Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready. - // Both Preview and GA plugins follow semantic versioning. The main differences between the two stages are: - // Preview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage. - ReleaseStage *PluginReleaseStageUpdate `json:"release_stage,omitempty"` - Repository *string `json:"repository,omitempty"` - - // ShortDescription Short description of the plugin. This will be shown in the CloudQuery Hub. - ShortDescription *string `json:"short_description,omitempty"` - - // Tier This field is deprecated, refer to `price_category` instead. - // This field is only kept for backward compatibility and may be removed in a future release. - // Supported tiers for plugins. - // - free: Free tier, with no paid tables. - // - paid: Paid tier. These plugins may have paid tables, but can also have free tables. They require login to access. - // - open-core: This option is deprecated, values will either be free or paid. - // Deprecated: - Tier *PluginTier `json:"tier,omitempty"` - - // USDPerRow Deprecated. Update `price_category` instead. - // Deprecated: - USDPerRow *string `json:"usd_per_row,omitempty"` -} - // PluginVersion defines model for PluginVersion. type PluginVersion struct { // Checksums The checksums of the plugin assets Checksums []string `json:"checksums"` - // ConnectorRequired Whether a connector is required for this plugin version - ConnectorRequired *bool `json:"connector_required,omitempty"` - - // ConnectorTypes List of connector types available for this plugin version - ConnectorTypes *[]string `json:"connector_types,omitempty"` - // CreatedAt The date and time the plugin version was created. CreatedAt time.Time `json:"created_at"` @@ -2407,12 +2054,6 @@ type PluginVersionDetails struct { // Checksums The checksums of the plugin assets Checksums []string `json:"checksums"` - // ConnectorRequired Whether a connector is required for this plugin version - ConnectorRequired *bool `json:"connector_required,omitempty"` - - // ConnectorTypes List of connector types available for this plugin version - ConnectorTypes *[]string `json:"connector_types,omitempty"` - // CreatedAt The date and time the plugin version was created. CreatedAt time.Time `json:"created_at"` @@ -2456,29 +2097,184 @@ type PluginVersionDetails struct { // PluginVersionList CloudQuery Plugin Version type PluginVersionList = PluginVersionBase -// PluginVersionUpdate defines model for PluginVersionUpdate. -type PluginVersionUpdate struct { - // Checksums The SHA-256 checksums of the plugin binaries, one per supported target. - Checksums *[]string `json:"checksums,omitempty"` +// Policy Policy +type Policy struct { + CreatedAt time.Time `json:"created_at"` + CreatedByUserID openapi_types.UUID `json:"created_by"` + Description string `json:"description"` - // Draft If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version. Once draft is set to false, only certain fields can be updated. - Draft *bool `json:"draft,omitempty"` + // PolicyDomain Policy domain + PolicyDomain PolicyDomain `json:"domain"` - // Message Description of what's new or changed in this version (supports markdown) - Message *string `json:"message,omitempty"` + // PolicyID The unique ID for the policy. + PolicyID PolicyID `json:"id"` + Name string `json:"name"` - // PackageType The package type of the plugin binaries - PackageType *string `json:"package_type,omitempty"` + // NotificationDestinations List of notification destinations configured for the policy's alert + NotificationDestinations *[]NotificationDestinationListItem `json:"notification_destinations,omitempty"` - // Protocols The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins). - Protocols *PluginProtocols `json:"protocols,omitempty"` + // PolicyGroups List of policy groups this policy belongs to + PolicyGroups *[]PolicyGroup `json:"policy_groups,omitempty"` - // Retracted If a plugin version is retracted, assets will still be available for download, but the version will be marked as retracted to discourage use. - Retracted *bool `json:"retracted,omitempty"` + // Query The SQL query string for the policy + Query string `json:"query"` - // SpecJsonSchema The specification of the plugin. This is a JSON schema that describes the configuration of the plugin. - SpecJsonSchema *PluginSpecJSONSchema `json:"spec_json_schema,omitempty"` - SupportedTargets *[]string `json:"supported_targets,omitempty"` + // QueryID The unique ID for the query. + QueryID QueryID `json:"query_id"` + + // RunAt Timestamp of the last evaluation run + RunAt *time.Time `json:"run_at"` + + // PolicySeverity Policy severity + PolicySeverity PolicySeverity `json:"severity"` + + // PolicyStatus Policy status + PolicyStatus PolicyStatus `json:"status"` + TeamName string `json:"team_name"` + UpdatedAt time.Time `json:"updated_at"` + UpdatedByUserID *openapi_types.UUID `json:"updated_by"` + + // ViolationCount Number of violations from the last evaluation + ViolationCount *int `json:"violation_count"` +} + +// PolicyCreate Create a policy (implicitly creates a query and an enabled alert) +type PolicyCreate struct { + Description *string `json:"description,omitempty"` + + // PolicyDomain Policy domain + PolicyDomain PolicyDomain `json:"domain"` + Name string `json:"name"` + + // NotificationDestinationIds Notification destination IDs to send alerts to + NotificationDestinationIds *[]openapi_types.UUID `json:"notification_destination_ids"` + + // PolicyGroupIds Policy group IDs to add this policy to + PolicyGroupIds *[]openapi_types.UUID `json:"policy_group_ids"` + Query string `json:"query"` + + // PolicySeverity Policy severity + PolicySeverity PolicySeverity `json:"severity"` +} + +// PolicyDomain Policy domain +type PolicyDomain string + +// PolicyEvaluationLog Policy evaluation log entry +type PolicyEvaluationLog struct { + Id openapi_types.UUID `json:"id"` + + // PolicyID The unique ID for the policy. + PolicyID PolicyID `json:"policy_id"` + RunAt time.Time `json:"run_at"` + ViolationCount int `json:"violation_count"` +} + +// PolicyGroup Policy Group +type PolicyGroup struct { + CreatedAt time.Time `json:"created_at"` + Description string `json:"description"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + UpdatedAt time.Time `json:"updated_at"` +} + +// PolicyGroupCreate Create a policy group +type PolicyGroupCreate struct { + Description *string `json:"description,omitempty"` + Name string `json:"name"` + + // PolicyIds Optional array of policy IDs to add to this group + PolicyIds *[]openapi_types.UUID `json:"policy_ids"` +} + +// PolicyGroupID defines model for PolicyGroupID. +type PolicyGroupID = openapi_types.UUID + +// PolicyGroupUpdate Update a policy group +type PolicyGroupUpdate struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + + // PolicyIds Policy IDs to set for this group + PolicyIds *[]openapi_types.UUID `json:"policy_ids"` +} + +// PolicyGroupWithCounts defines model for PolicyGroupWithCounts. +type PolicyGroupWithCounts struct { + CreatedAt time.Time `json:"created_at"` + Description string `json:"description"` + Id openapi_types.UUID `json:"id"` + Name string `json:"name"` + + // PolicyCount Number of policies in this group + PolicyCount *int `json:"policy_count,omitempty"` + UpdatedAt time.Time `json:"updated_at"` + + // ViolationCountCritical Total violations from critical severity policies in this group + ViolationCountCritical *int `json:"violation_count_critical,omitempty"` + + // ViolationCountHigh Total violations from high severity policies in this group + ViolationCountHigh *int `json:"violation_count_high,omitempty"` + + // ViolationCountLow Total violations from low severity policies in this group + ViolationCountLow *int `json:"violation_count_low,omitempty"` + + // ViolationCountMedium Total violations from medium severity policies in this group + ViolationCountMedium *int `json:"violation_count_medium,omitempty"` +} + +// PolicyID The unique ID for the policy. +type PolicyID = openapi_types.UUID + +// PolicyMetrics Policy metrics summary +type PolicyMetrics struct { + // HighSeverityViolations Total violations from high or critical severity policies + HighSeverityViolations int `json:"high_severity_violations"` + + // TotalActiveViolations Total violations from active policies + TotalActiveViolations int `json:"total_active_violations"` + + // ViolationsThisWeek Total violations from evaluations in the last 7 days + ViolationsThisWeek int `json:"violations_this_week"` +} + +// PolicySeverity Policy severity +type PolicySeverity string + +// PolicyStatus Policy status +type PolicyStatus string + +// PolicyUpdate Update a policy +type PolicyUpdate struct { + Description *string `json:"description,omitempty"` + + // PolicyDomain Policy domain + PolicyDomain *PolicyDomain `json:"domain,omitempty"` + Name *string `json:"name,omitempty"` + + // NotificationDestinationIds Notification destination IDs to send alerts to + NotificationDestinationIds *[]openapi_types.UUID `json:"notification_destination_ids"` + + // PolicyGroupIds Policy group IDs to set for this policy + PolicyGroupIds *[]openapi_types.UUID `json:"policy_group_ids"` + Query *string `json:"query,omitempty"` + + // PolicySeverity Policy severity + PolicySeverity *PolicySeverity `json:"severity,omitempty"` +} + +// PolicyViolation Policy violation resource information +type PolicyViolation struct { + CqAccountName string `json:"_cq_account_name"` + CqPlatformId string `json:"_cq_platform_id"` + Cloud string `json:"cloud"` + Name string `json:"name"` + Region string `json:"region"` + ResourceTypeLabel string `json:"resource_type_label"` + + // Tags Tags associated with the resource (e.g. for insights) + Tags *[]string `json:"tags,omitempty"` } // PromoteSyncDestinationTestConnection Sync Destination Definition @@ -2502,6 +2298,9 @@ type PromoteSyncDestinationTestConnection struct { // PromoteSyncSourceTestConnection Sync Source Definition type PromoteSyncSourceTestConnection struct { + // DestinationNames List of sync destination names associated with this source + DestinationNames *[]SyncDestinationNameField `json:"destination_names,omitempty"` + // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` @@ -2524,9 +2323,12 @@ type Query struct { Alert *Alert `json:"alert,omitempty"` // AlertConfigured Indicates if the query has an alert configured - AlertConfigured bool `json:"alert_configured"` - CreatedAt time.Time `json:"created_at"` - Description *string `json:"description,omitempty"` + AlertConfigured bool `json:"alert_configured"` + + // Columns Columns returned by this query + Columns []string `json:"columns,omitempty"` + CreatedAt time.Time `json:"created_at"` + Description *string `json:"description,omitempty"` // QueryID The unique ID for the query. QueryID QueryID `json:"id"` @@ -2563,9 +2365,12 @@ type QueryDetail struct { Alert *AlertDetail `json:"alert,omitempty"` // AlertConfigured Indicates if the query has an alert configured. When this is set, the alert field will be populated with the alert details. - AlertConfigured bool `json:"alert_configured"` - CreatedAt time.Time `json:"created_at"` - Description *string `json:"description,omitempty"` + AlertConfigured bool `json:"alert_configured"` + + // Columns Columns returned by this query + Columns []string `json:"columns,omitempty"` + CreatedAt time.Time `json:"created_at"` + Description *string `json:"description,omitempty"` // QueryID The unique ID for the query. QueryID QueryID `json:"id"` @@ -2608,12 +2413,6 @@ type QueryUpdate struct { // QueryViewName The name of the view the query is saved to in the warehouse type QueryViewName = string -// RBACCustomRoleID The unique ID for the custom role. -type RBACCustomRoleID = openapi_types.UUID - -// RBACDefaultRole Default RBAC roles -type RBACDefaultRole string - // RBACPermission defines model for RBACPermission. type RBACPermission struct { CreatedAt time.Time `json:"created_at"` @@ -2653,19 +2452,6 @@ type RBACPermissionUpdate struct { Query *string `json:"query,omitempty"` } -// RBACRole Custom RBAC role -type RBACRole struct { - CreatedAt time.Time `json:"created_at"` - CreatedBy CreatedBy `json:"created_by"` - Description string `json:"description"` - - // RBACCustomRoleID The unique ID for the custom role. - RBACCustomRoleID RBACCustomRoleID `json:"id"` - Name string `json:"name"` - Permissions []RBACPermission `json:"permissions"` - UpdatedAt time.Time `json:"updated_at"` -} - // RBACRoleCreate defines model for RBACRoleCreate. type RBACRoleCreate struct { Description *string `json:"description,omitempty"` @@ -2686,15 +2472,34 @@ type RBACRoleUpdate struct { Permissions *[]RBACPermissionID `json:"permissions,omitempty"` } -// RegistryAuthToken JWT token for the image registry -type RegistryAuthToken struct { - AccessToken string `json:"access_token"` - Token string `json:"token"` +// RelationColumnDef defines model for RelationColumnDef. +type RelationColumnDef struct { + // Field Column field name in the query result. + Field string `json:"field"` + + // Hidden Whether the column is present for navigation but not displayed. + Hidden *bool `json:"hidden,omitempty"` + + // Label Display label for the column. + Label string `json:"label"` + + // Type Column render type (e.g. text, tags, boolean, json, code). + Type *string `json:"type,omitempty"` } -// ReleaseURL defines model for ReleaseURL. -type ReleaseURL struct { - Url string `json:"url"` +// RelationDef defines model for RelationDef. +type RelationDef struct { + // Columns Column definitions for the relation view. + Columns []RelationColumnDef `json:"columns"` + + // ResourceType Target CloudQuery table name. + ResourceType string `json:"resource_type"` + + // SqlQuery ClickHouse SQL template with {{field_name}} placeholders. + SqlQuery string `json:"sql_query"` + + // Title Display title for the relation tab/section. + Title string `json:"title"` } // Report defines model for Report. @@ -2773,13 +2578,39 @@ type RevokedNotification struct { Status interface{} `json:"status"` } +// Role Role +type Role struct { + CreatedAt time.Time `json:"created_at"` + CreatedBy CreatedBy `json:"created_by"` + Description string `json:"description"` + + // ID The unique ID for the role. + ID openapi_types.UUID `json:"id"` + Name string `json:"name"` + Permissions []RBACPermission `json:"permissions"` + Type RoleType `json:"type"` + UpdatedAt time.Time `json:"updated_at"` +} + +// RoleID The unique ID for the role. +type RoleID = openapi_types.UUID + +// RoleType defines model for RoleType. +type RoleType string + // SAMLConfig defines model for SAMLConfig. type SAMLConfig struct { // CanEnable Whether SAML can be enabled CanEnable bool `json:"can_enable"` + // CertificateExpiresAt Expiration time of the current SAML certificate + CertificateExpiresAt *time.Time `json:"certificate_expires_at,omitempty"` + + // CertificateFingerprint Fingerprint of the current SAML certificate + CertificateFingerprint *string `json:"certificate_fingerprint,omitempty"` + // DefaultRoles Default roles for new users who are not in any group - DefaultRoles []string `json:"default_roles"` + DefaultRoles []Role `json:"default_roles"` // DisableAccessIfNoRoleGroup Whether to disable access if no role group is found in the SAML assertion. If true, users without a role group will not be able to log in. DisableAccessIfNoRoleGroup *bool `json:"disable_access_if_no_role_group,omitempty"` @@ -2796,32 +2627,35 @@ type SAMLConfig struct { // MetadataXML Metadata file contents from identity provider. Mutually exclusive with `metadata_url` MetadataXML *string `json:"metadata_xml,omitempty"` - // PlatformBaseURL Base URL to the platform. - PlatformBaseURL *string `json:"platform_base_url,omitempty"` - // PlatformCertificateDownloadURL Platform Certificate download URL PlatformCertificateDownloadURL string `json:"platform_certificate_download_url"` - // PlatformEntityID SAML Entity ID. Only available after `platform_base_url` is set. - PlatformEntityID *string `json:"platform_entity_id,omitempty"` + // PlatformEntityID SAML Entity ID. + PlatformEntityID string `json:"platform_entity_id"` - // PlatformMetadataDownloadURL URL to download platform metadata. Only available after `platform_base_url` is set. - PlatformMetadataDownloadURL *string `json:"platform_metadata_download_url,omitempty"` + // PlatformMetadataDownloadURL URL to download platform metadata. + PlatformMetadataDownloadURL string `json:"platform_metadata_download_url"` - // PlatformSSOURL SAML service URL. Only available after `platform_base_url` is set. - PlatformSSOURL *string `json:"platform_sso_url,omitempty"` + // PlatformSSOURL SAML service URL. + PlatformSSOURL string `json:"platform_sso_url"` // RoleGroupKey Role group key name RoleGroupKey *string `json:"role_group_key,omitempty"` // RoleMappings Mapping from IdP group names to roles. Each key is a potential IdP group value for the specified role_group_key, and each value is an array of roles to assign to users in that group. - RoleMappings map[string][]string `json:"role_mappings,omitempty"` + RoleMappings map[string][]Role `json:"role_mappings,omitempty"` + + // RolloverCertificateExpiresAt Expiration time of the SAML certificate that will be used after rollover + RolloverCertificateExpiresAt *time.Time `json:"rollover_certificate_expires_at,omitempty"` + + // RolloverCertificateFingerprint Fingerprint of the SAML certificate that will be used after rollover + RolloverCertificateFingerprint *string `json:"rollover_certificate_fingerprint,omitempty"` } // SAMLConfigUpdate defines model for SAMLConfigUpdate. type SAMLConfigUpdate struct { // DefaultRoles Default roles for new users who are not in any group - DefaultRoles *[]string `json:"default_roles,omitempty"` + DefaultRoles *[]RoleID `json:"default_roles,omitempty"` // DisableAccessIfNoRoleGroup Whether to disable access if no role group is found in the SAML assertion. If true, users without a role group will not be able to log in. DisableAccessIfNoRoleGroup *bool `json:"disable_access_if_no_role_group,omitempty"` @@ -2838,14 +2672,50 @@ type SAMLConfigUpdate struct { // MetadataXML Metadata file contents from identity provider. Mutually exclusive with `metadata_url` MetadataXML *string `json:"metadata_xml,omitempty"` - // PlatformBaseURL Base URL to the platform. This should be set first. https recommended. - PlatformBaseURL *string `json:"platform_base_url,omitempty"` - // RoleGroupKey Role group key name RoleGroupKey *string `json:"role_group_key,omitempty"` // RoleMappings Mapping from IdP group names to roles. Each key is a potential IdP group value for the specified role_group_key, and each value is an array of roles to assign to users in that group. - RoleMappings *map[string][]string `json:"role_mappings,omitempty"` + RoleMappings *map[string][]RoleID `json:"role_mappings,omitempty"` +} + +// SlackChannel Slack Channel +type SlackChannel struct { + // Id Channel ID + Id string `json:"id"` + + // IsArchived Whether the channel is archived + IsArchived *bool `json:"is_archived,omitempty"` + + // IsPrivate Whether the channel is private + IsPrivate *bool `json:"is_private,omitempty"` + + // Name Channel name + Name string `json:"name"` +} + +// SlackConnection Slack Connection +type SlackConnection struct { + CreatedAt time.Time `json:"created_at"` + + // Id Slack connection ID + Id openapi_types.UUID `json:"id"` + + // SlackWorkspaceID Slack workspace (team) ID + SlackWorkspaceID string `json:"slack_workspace_id"` + + // TeamName Slack workspace (team) name + TeamName string `json:"team_name"` + UpdatedAt time.Time `json:"updated_at"` +} + +// SlackConnectionCreate Create Slack Connection +type SlackConnectionCreate struct { + // Code OAuth code from Slack authorization + Code string `json:"code"` + + // RedirectUri Redirect URI that was used when obtaining the OAuth code (required by Slack when exchanging the code) + RedirectUri *string `json:"redirect_uri,omitempty"` } // StartedNotification defines model for StartedNotification. @@ -2914,9 +2784,6 @@ type SyncCreate struct { // SyncDestination defines model for SyncDestination. type SyncDestination struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // CreatedAt Time when the source was created CreatedAt time.Time `json:"created_at"` @@ -2960,9 +2827,6 @@ type SyncDestination struct { // SyncDestinationCreate Sync Destination Definition type SyncDestinationCreate struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` @@ -2998,6 +2862,9 @@ type SyncDestinationMigrateMode string // SyncDestinationMigrateModeUpdate Migrate mode for the destination, for updating type SyncDestinationMigrateModeUpdate string +// SyncDestinationNameField Descriptive, unique name for the destination +type SyncDestinationNameField = string + // SyncDestinationTestConnection defines model for SyncDestinationTestConnection. type SyncDestinationTestConnection struct { // CompletedAt Time the test connection was completed @@ -3028,9 +2895,6 @@ type SyncDestinationTestConnection struct { // SyncDestinationTestConnectionCreate defines model for SyncDestinationTestConnectionCreate. type SyncDestinationTestConnectionCreate struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // DestinationName Name of an existing destination DestinationName *string `json:"destination_name,omitempty"` @@ -3122,9 +2986,6 @@ type SyncDestinationUpdateV2 struct { // SyncDestinationV2 defines model for SyncDestinationV2. type SyncDestinationV2 struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // CreatedAt Time when the source was created CreatedAt time.Time `json:"created_at"` @@ -3201,8 +3062,8 @@ type SyncGenericSortBy string // SyncIntegrationCreateV2 Create a new sync integration type SyncIntegrationCreateV2 struct { - // CPU CPU quota for the integration - CPU *string `json:"cpu,omitempty"` + // DestinationNames List of sync destination names associated with this integration + DestinationNames []SyncDestinationNameField `json:"destination_names"` // Disabled Whether the integration is disabled Disabled *bool `json:"disabled,omitempty"` @@ -3210,9 +3071,6 @@ type SyncIntegrationCreateV2 struct { // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` - // Memory Memory quota for the integration - Memory *string `json:"memory,omitempty"` - // Name Descriptive, unique name for the integration Name string `json:"name"` @@ -3225,13 +3083,13 @@ type SyncIntegrationCreateV2 struct { // SyncIntegrationExpandedV2 defines model for SyncIntegrationExpandedV2. type SyncIntegrationExpandedV2 struct { - // CPU CPU quota for the integration - CPU *string `json:"cpu,omitempty"` - // CreatedAt Time when the sync was created CreatedAt *time.Time `json:"created_at,omitempty"` CreatedBy *string `json:"created_by,omitempty"` + // Destinations List of sync destinations associated with this integration + Destinations *[]SyncDestinationV2 `json:"destinations,omitempty"` + // Disabled Whether the integration is disabled Disabled *bool `json:"disabled,omitempty"` @@ -3241,9 +3099,6 @@ type SyncIntegrationExpandedV2 struct { // LastRun Managed Sync List Entry Last Run Info LastRun *ListSyncLastRun `json:"last_run,omitempty"` - // Memory Memory quota for the integration - Memory *string `json:"memory,omitempty"` - // Name Descriptive, unique name for the integration Name string `json:"name"` @@ -3292,9 +3147,6 @@ type SyncIntegrationSourceUpdateV2 struct { // SyncIntegrationSourceV2 Integration Source Definition type SyncIntegrationSourceV2 struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // Env Environment variables for the plugin. All environment variables will be stored as secrets. Env []SyncEnv `json:"env"` @@ -3323,9 +3175,6 @@ type SyncIntegrationSourceV2 struct { // SyncIntegrationTestConnectionCreateV2 defines model for SyncIntegrationTestConnectionCreateV2. type SyncIntegrationTestConnectionCreateV2 struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // Env Environment variables for the plugin. All environment variables will be stored as secrets. Env *[]SyncEnvCreate `json:"env,omitempty"` @@ -3340,7 +3189,7 @@ type SyncIntegrationTestConnectionCreateV2 struct { Spec *map[string]interface{} `json:"spec,omitempty"` // Version Version of the plugin - Version string `json:"version"` + Version *string `json:"version,omitempty"` } // SyncIntegrationTestConnectionV2 defines model for SyncIntegrationTestConnectionV2. @@ -3372,8 +3221,8 @@ type SyncIntegrationTestConnectionV2 struct { // SyncIntegrationUpdateV2 Update an existing integration type SyncIntegrationUpdateV2 struct { - // CPU CPU quota for the integration - CPU *string `json:"cpu,omitempty"` + // DestinationNames List of sync destinations associated with this integration + DestinationNames *[]SyncDestinationNameField `json:"destination_names,omitempty"` // Disabled Whether the integration is disabled Disabled *bool `json:"disabled,omitempty"` @@ -3381,12 +3230,6 @@ type SyncIntegrationUpdateV2 struct { // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` - // LastUpdateSource How was the source or destination been created or updated last - LastUpdateSource *SyncLastUpdateSource `json:"last_update_source,omitempty"` - - // Memory Memory quota for the integration - Memory *string `json:"memory,omitempty"` - // Schedule Cron schedule for the integration Schedule *string `json:"schedule,omitempty"` @@ -3396,22 +3239,19 @@ type SyncIntegrationUpdateV2 struct { // SyncIntegrationV2 An integration definition type SyncIntegrationV2 struct { - // CPU CPU quota for the integration - CPU *string `json:"cpu,omitempty"` - // CreatedAt Time when the sync was created CreatedAt *time.Time `json:"created_at,omitempty"` CreatedBy *string `json:"created_by,omitempty"` + // Destinations List of sync destinations associated with this integration + Destinations *[]SyncDestinationV2 `json:"destinations,omitempty"` + // Disabled Whether the integration is disabled Disabled *bool `json:"disabled,omitempty"` // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` - // Memory Memory quota for the integration - Memory *string `json:"memory,omitempty"` - // Name Descriptive, unique name for the integration Name string `json:"name"` @@ -3560,6 +3400,9 @@ type SyncRunTableProgress map[string]struct { Rows int64 `json:"rows"` } +// SyncRunTableSortBy defines model for SyncRunTableSortBy. +type SyncRunTableSortBy string + // SyncRunTableStat defines model for SyncRunTableStat. type SyncRunTableStat struct { // CompletedAt Time the table sync was completed @@ -3607,9 +3450,6 @@ type SyncSortDirection string // SyncSource defines model for SyncSource. type SyncSource struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // CreatedAt Time when the source was created CreatedAt time.Time `json:"created_at"` @@ -3653,9 +3493,6 @@ type SyncSource struct { // SyncSourceCreate Sync Source Definition type SyncSourceCreate struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` @@ -3714,9 +3551,6 @@ type SyncSourceTestConnection struct { // SyncSourceTestConnectionCreate defines model for SyncSourceTestConnectionCreate. type SyncSourceTestConnectionCreate struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // Env Environment variables for the plugin. All environment variables will be stored as secrets. Env *[]SyncEnvCreate `json:"env,omitempty"` @@ -3739,6 +3573,9 @@ type SyncSourceTestConnectionID = openapi_types.UUID // SyncSourceUpdate Sync Source Update Definition type SyncSourceUpdate struct { + // DestinationNames List of sync destination names associated with this source + DestinationNames *[]SyncDestinationNameField `json:"destination_names,omitempty"` + // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` @@ -3790,9 +3627,6 @@ type SyncTestConnectionStatus string // SyncTransformer defines model for SyncTransformer. type SyncTransformer struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // CreatedAt Time when the transformer was created CreatedAt time.Time `json:"created_at"` @@ -3824,9 +3658,6 @@ type SyncTransformer struct { // SyncTransformerCreate Sync Transformer Definition type SyncTransformerCreate struct { - // ConnectorID ID of the Connector - ConnectorID *ConnectorID `json:"connector_id,omitempty"` - // DisplayName A human-readable display name DisplayName *DisplayName `json:"display_name,omitempty"` @@ -3942,26 +3773,51 @@ type TableData struct { Rows [][]interface{} `json:"rows"` } +// TableDataAction Request body for performing actions on table data +type TableDataAction struct { + // Action The action to perform on the table data + Action TableDataActionAction `json:"action"` + + // Sources Map of source names to arrays of table names + Sources map[string][]string `json:"sources"` +} + +// TableDataActionAction The action to perform on the table data +type TableDataActionAction string + +// TableDataListItem Sync with its associated tables +type TableDataListItem struct { + // DisplayName Human-readable display name of the source + DisplayName *string `json:"display_name,omitempty"` + + // Plugin Plugin path in CloudQuery registry + Plugin *SyncPluginPath `json:"plugin,omitempty"` + + // SourceName The unique name of the source (source_name from synced_tables) + SourceName string `json:"source_name"` + + // Tables List of tables synced by this integration with their deletion status + Tables []struct { + // DeletionPending Whether this table's data is marked for deletion + DeletionPending bool `json:"deletion_pending"` + + // Name The table name + Name string `json:"name"` + } `json:"tables"` +} + // TableGroupBy defines model for TableGroupBy. type TableGroupBy = string // TableListItem defines model for TableListItem. type TableListItem struct { // Name The name of the table. - Name TableName `json:"name"` - TotalRows *uint64 `json:"total_rows,omitempty"` + Name TableName `json:"name"` } // TableName The name of the table. type TableName = string -// TableRelation defines model for TableRelation. -type TableRelation struct { - Label string `json:"label"` - Query string `json:"query"` - Table string `json:"table_name"` -} - // TableRow defines model for TableRow. type TableRow map[string]interface{} @@ -4017,58 +3873,13 @@ type TableSortDirection string // Team CloudQuery Team type Team struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - - // DisplayName The team's display name - DisplayName string `json:"display_name"` - Internal bool `json:"internal"` - IsTrialActive bool `json:"is_trial_active"` - // Name The unique name for the team. Name TeamName `json:"name"` - - // Plan The plan the team is on (trial is deprecated) - Plan TeamPlan `json:"plan"` - PlanEndTime *time.Time `json:"plan_end_time,omitempty"` - TrialEndTime *time.Time `json:"trial_end_time,omitempty"` -} - -// TeamImage defines model for TeamImage. -type TeamImage struct { - // Checksum SHA1 checksum of image - Checksum string `json:"checksum"` - - // Name Name of image - Name string `json:"name"` - - // RequiredHeaders Required HTTP headers to include for the upload - RequiredHeaders map[string][]string `json:"required_headers"` - - // UploadURL URL to upload image - UploadURL *string `json:"upload_url,omitempty"` - - // URL URL to download image - URL string `json:"url"` -} - -// TeamImageCreate defines model for TeamImageCreate. -type TeamImageCreate struct { - // Checksum SHA1 checksum of image - Checksum string `json:"checksum"` - - // ContentType The HTTP Content-Type of the image or asset - ContentType ContentType `json:"content_type"` - - // Name Name of image - Name string `json:"name"` } // TeamName The unique name for the team. type TeamName = string -// TeamPlan The plan the team is on (trial is deprecated) -type TeamPlan string - // UsageSummary A usage summary for a team, summarizing the paid rows synced and/or cloud resource usage over a given time range. // Note that empty or all-zero values are not included in the response. type UsageSummary struct { @@ -4125,20 +3936,31 @@ type UsageSummaryValue struct { Timestamp time.Time `json:"timestamp"` } -// User CloudQuery User +// User User type User struct { CreatedAt *time.Time `json:"created_at,omitempty"` Email string `json:"email"` + // Enabled Whether the user is enabled + Enabled bool `json:"enabled"` + // ID ID of the User ID openapi_types.UUID `json:"id"` LastLoginAt *time.Time `json:"last_login_at,omitempty"` + // MFAConfigured Whether the user has MFA configured + MFAConfigured bool `json:"mfa_configured"` + // Name The unique name for the user. Name *UserName `json:"name,omitempty"` // ProfileImageURL Profile image URL of user - ProfileImageURL *string `json:"profile_image_url,omitempty"` + ProfileImageURL *string `json:"profile_image_url,omitempty"` + Provider UserProvider `json:"provider"` + Roles []Role `json:"roles"` + + // TrackingOptedIn Whether anonymous user tracking was opted into + TrackingOptedIn *bool `json:"tracking_opted_in,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` } @@ -4148,14 +3970,60 @@ type UserID = openapi_types.UUID // UserName The unique name for the user. type UserName = string +// UserProvider defines model for UserProvider. +type UserProvider string + // VersionFilter A version filter in semantic version format with prefix ranges. type VersionFilter = string // VersionName The version in semantic version format. type VersionName = string -// VersionRange A version range in semantic version format. -type VersionRange = string +// ViolationsByDomain Violations grouped by domain +type ViolationsByDomain struct { + Items []ViolationsByDomainItem `json:"items"` + + // TotalViolations Total violations across all domains + TotalViolations int `json:"total_violations"` +} + +// ViolationsByDomainItem Violation count for a specific domain +type ViolationsByDomainItem struct { + // PolicyDomain Policy domain + PolicyDomain PolicyDomain `json:"domain"` + + // ViolationCount Number of violations for this domain + ViolationCount int `json:"violation_count"` +} + +// ViolationsHistory Violations history over time +type ViolationsHistory struct { + Items []ViolationsHistoryItem `json:"items"` + + // Metadata Metadata for violations history query + Metadata ViolationsHistoryMetadata `json:"metadata"` +} + +// ViolationsHistoryItem Violation count for a specific date +type ViolationsHistoryItem struct { + // Date Date of the violations + Date openapi_types.Date `json:"date"` + + // ViolationCount Number of violations on this date + ViolationCount int `json:"violation_count"` +} + +// ViolationsHistoryMetadata Metadata for violations history query +type ViolationsHistoryMetadata struct { + // EndDate End date of the query range + EndDate openapi_types.Date `json:"end_date"` + + // Interval Interval in days used for grouping + Interval string `json:"interval"` + + // StartDate Start date of the query range + StartDate openapi_types.Date `json:"start_date"` +} // AlertConfigured defines model for alert_configured. type AlertConfigured = bool @@ -4169,8 +4037,8 @@ type AlertMessageFilter = string // AlertStates defines model for alert_states. type AlertStates = []AlertState -// AssetViewRunTypes defines model for assetview_run_type. -type AssetViewRunTypes = []AssetViewRunType +// AssetID ID of the Resource +type AssetID = TableRowID // ColumnName The name of a table column. type ColumnName = string @@ -4187,9 +4055,6 @@ type CustomColumnSortDirections = []CustomColumnSortDirection // DownloadFile defines model for download_file. type DownloadFile = bool -// EmailBasic defines model for email_basic. -type EmailBasic = string - // Enabled defines model for enabled. type Enabled = bool @@ -4211,33 +4076,21 @@ type IncludeFips = bool // IncludePrereleases defines model for include_prereleases. type IncludePrereleases = bool -// IncludePrivate defines model for include_private. -type IncludePrivate = bool +// InsightColumnName defines model for insight_column_name. +type InsightColumnName = string // MigrationFilter Filter by migration type MigrationFilter = bool +// NotificationDestinationId The unique ID for the notification destination. +type NotificationDestinationId = NotificationDestinationID + // Page defines model for page. type Page = int64 // PerPage defines model for per_page. type PerPage = int64 -// PlatformPolicySortBys defines model for platform_policies_sort_bys. -type PlatformPolicySortBys = []PlatformPolicySortBy - -// PlatformPolicySortDirections defines model for platform_policies_sort_dirs. -type PlatformPolicySortDirections = []PlatformPolicySortDirection - -// PlatformPolicyFrameworkSortBys defines model for platform_policy_frameworks_sort_bys. -type PlatformPolicyFrameworkSortBys = []PlatformPolicyFrameworkSortBy - -// PlatformPolicyRuleDetailSortBys defines model for platform_policy_rule_details_sort_bys. -type PlatformPolicyRuleDetailSortBys = []PlatformPolicyRuleDetailSortBy - -// PlatformPolicyRuleSortBys defines model for platform_policy_rules_sort_bys. -type PlatformPolicyRuleSortBys = []PlatformPolicyRuleSortBy - // PluginExcludeReleaseStages defines model for plugin_exclude_release_stages. type PluginExcludeReleaseStages = []PluginReleaseStage @@ -4250,6 +4103,9 @@ type PluginSortBy string // PluginTeam The unique name for the team. type PluginTeam = TeamName +// QueryColumnFilter defines model for query_column_filter. +type QueryColumnFilter = []string + // QueryFilter Filter by query type QueryFilter = string @@ -4298,6 +4154,9 @@ type SyncNameFilter = string // SyncRunId ID of the SyncRun type SyncRunId = SyncRunID +// SyncRunTableSortBys defines model for sync_run_table_sort_bys. +type SyncRunTableSortBys = []SyncRunTableSortBy + // SyncSortBys defines model for sync_sort_bys. type SyncSortBys = []SyncSortBy @@ -4364,8 +4223,8 @@ type VersionSortBy string // BadRequest defines model for BadRequest. type BadRequest = FieldError -// Conflict Basic Error -type Conflict = BasicError +// Conflict defines model for Conflict. +type Conflict = FieldError // Forbidden defines model for Forbidden. type Forbidden = FieldError @@ -4391,6 +4250,48 @@ type TooManyRequests = BasicError // UnprocessableEntity defines model for UnprocessableEntity. type UnprocessableEntity = FieldError +// ListAllAlertsParams defines parameters for ListAllAlerts. +type ListAllAlertsParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // AlertStates Alert states + AlertStates AlertStates `form:"state,omitempty" json:"state,omitempty"` + + // Enabled Enabled + Enabled *Enabled `form:"enabled,omitempty" json:"enabled,omitempty"` + + // QueryTags Query tags + QueryTags QueryTags `form:"tag,omitempty" json:"tag,omitempty"` +} + +// TestUnsavedAlertParams defines parameters for TestUnsavedAlert. +type TestUnsavedAlertParams struct { + // QueryID ID of the query to fill in the alert + QueryID *QueryID `form:"query_id,omitempty" json:"query_id,omitempty"` +} + +// ListAPIKeysParams defines parameters for ListAPIKeys. +type ListAPIKeysParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` +} + +// CreateAPIKeyJSONBody defines parameters for CreateAPIKey. +type CreateAPIKeyJSONBody struct { + ExpiresAt time.Time `json:"expires_at"` + + // Name Name of the API key + Name APIKeyName `json:"name"` + Roles *[]RoleID `json:"roles,omitempty"` +} + // ListAuditLogsParams defines parameters for ListAuditLogs. type ListAuditLogsParams struct { // PerPage The number of results per page (max 1000). @@ -4402,9 +4303,6 @@ type ListAuditLogsParams struct { // UserId Filter by user ID UserId *openapi_types.UUID `form:"user_id,omitempty" json:"user_id,omitempty"` - // TeamName Filter by team name - TeamName *string `form:"team_name,omitempty" json:"team_name,omitempty"` - // EventType Filter by event type EventType *string `form:"event_type,omitempty" json:"event_type,omitempty"` @@ -4420,36 +4318,56 @@ type ListAuditLogsParams struct { // EndTime Filter by end time (inclusive) EndTime *time.Time `form:"end_time,omitempty" json:"end_time,omitempty"` - // Search Search across user name, team name, event type, entity display name, and user IP address + // Search Search across user name, event type, entity display name, and user IP address Search *string `form:"search,omitempty" json:"search,omitempty"` } -// AssetViewListLogsParams defines parameters for AssetViewListLogs. -type AssetViewListLogsParams struct { +// DeleteSAMLRolloverCertificateJSONBody defines parameters for DeleteSAMLRolloverCertificate. +type DeleteSAMLRolloverCertificateJSONBody struct { + // Fingerprint The fingerprint of the rollover certificate to delete + Fingerprint string `json:"fingerprint"` +} + +// PromoteSAMLRolloverCertificateJSONBody defines parameters for PromoteSAMLRolloverCertificate. +type PromoteSAMLRolloverCertificateJSONBody struct { + // Fingerprint The fingerprint of the rollover certificate to promote + Fingerprint string `json:"fingerprint"` +} + +// ListAllCustomColumnsParams defines parameters for ListAllCustomColumns. +type ListAllCustomColumnsParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` - // AssetViewRunTypes AssetView run type filters - AssetViewRunTypes *AssetViewRunTypes `form:"type,omitempty" json:"type,omitempty"` -} + // CustomColumnSortBys Sort by options + CustomColumnSortBys CustomColumnSortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` + + // CustomColumnSortDirections Custom column sort direction options + CustomColumnSortDirections CustomColumnSortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` -// ManageRegisterPlatformJSONBody defines parameters for ManageRegisterPlatform. -type ManageRegisterPlatformJSONBody struct { - // APIKey Team API key to activate platform with - APIKey string `json:"api_key"` + // SearchTerm Filter columns by name, label, or description. + SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` } -// ManageRegisterPlatformWithOfflineLicenseJSONBody defines parameters for ManageRegisterPlatformWithOfflineLicense. -type ManageRegisterPlatformWithOfflineLicenseJSONBody struct { - // License Offline license - License []byte `json:"license"` +// ListFiltersParams defines parameters for ListFilters. +type ListFiltersParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // FilterTags Filter tags + FilterTags *FilterTags `form:"tag,omitempty" json:"tag,omitempty"` + NameFilter *FilterNameFilter `form:"name_filter,omitempty" json:"name_filter,omitempty"` + ExpressionFilter *FilterExpressionFilter `form:"expression_filter,omitempty" json:"expression_filter,omitempty"` } -// ManageListAllTeamsParams defines parameters for ManageListAllTeams. -type ManageListAllTeamsParams struct { +// ListFilterTagsParams defines parameters for ListFilterTags. +type ListFilterTagsParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -4457,74 +4375,218 @@ type ManageListAllTeamsParams struct { Page *Page `form:"page,omitempty" json:"page,omitempty"` } -// ManageRemoveTeamMemberJSONBody defines parameters for ManageRemoveTeamMember. -type ManageRemoveTeamMemberJSONBody struct { - // UserID ID of the User - UserID openapi_types.UUID `json:"user_id"` +// ListPlatformInsightsParams defines parameters for ListPlatformInsights. +type ListPlatformInsightsParams struct { + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Search Search in title, evidence (description), mitigation, or related fields + Search *string `form:"search,omitempty" json:"search,omitempty"` + + // Severities Filter by severities (any match) + Severities *[]InsightSeverity `form:"severities,omitempty" json:"severities,omitempty"` + + // Cloud Filter by cloud + Cloud *string `form:"cloud,omitempty" json:"cloud,omitempty"` + + // Account Filter by account + Account *string `form:"account,omitempty" json:"account,omitempty"` + + // Region Filter by region + Region *string `form:"region,omitempty" json:"region,omitempty"` + + // InsightCategory Filter by insight category + InsightCategory *string `form:"insight_category,omitempty" json:"insight_category,omitempty"` + + // SourceCategory Filter by source category + SourceCategory *string `form:"source_category,omitempty" json:"source_category,omitempty"` + + // Source Filter by source + Source *string `form:"source,omitempty" json:"source,omitempty"` + + // ResourceTypes Filter by resource types + ResourceTypes *[]string `form:"resource_types,omitempty" json:"resource_types,omitempty"` + + // Tags Filter by tags (any match) + Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"` + + // SortBy Field to sort by + SortBy *ListPlatformInsightsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` + + // SortDir Sort direction + SortDir *ListPlatformInsightsParamsSortDir `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` } -// ManageListTeamMembersParams defines parameters for ManageListTeamMembers. -type ManageListTeamMembersParams struct { +// ListPlatformInsightsParamsSortBy defines parameters for ListPlatformInsights. +type ListPlatformInsightsParamsSortBy string + +// ListPlatformInsightsParamsSortDir defines parameters for ListPlatformInsights. +type ListPlatformInsightsParamsSortDir string + +// GetPlatformAssetInsightsParams defines parameters for GetPlatformAssetInsights. +type GetPlatformAssetInsightsParams struct { // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - // UserSearch Search by user name or email - UserSearch *string `form:"user_search,omitempty" json:"user_search,omitempty"` + // Search Search in asset name, account, region, etc. + Search *string `form:"search,omitempty" json:"search,omitempty"` - // Role Search by user role. Only for default roles. - Role *RBACDefaultRole `form:"role,omitempty" json:"role,omitempty"` + // SortBy Field to sort by + SortBy *GetPlatformAssetInsightsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` - // CustomRoleId Search by custom role. - CustomRoleId *RBACCustomRoleID `form:"custom_role_id,omitempty" json:"custom_role_id,omitempty"` + // SortDir Sort direction + SortDir *GetPlatformAssetInsightsParamsSortDir `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` } -// ManageAddTeamMemberJSONBody defines parameters for ManageAddTeamMember. -type ManageAddTeamMemberJSONBody struct { - CustomRoles *[]RBACCustomRoleID `json:"custom_roles,omitempty"` - Roles *[]RBACDefaultRole `json:"roles,omitempty"` +// GetPlatformAssetInsightsParamsSortBy defines parameters for GetPlatformAssetInsights. +type GetPlatformAssetInsightsParamsSortBy string - // UserID ID of the User - UserID openapi_types.UUID `json:"user_id"` +// GetPlatformAssetInsightsParamsSortDir defines parameters for GetPlatformAssetInsights. +type GetPlatformAssetInsightsParamsSortDir string + +// GetPlatformInsightColumnDistinctValuesParams defines parameters for GetPlatformInsightColumnDistinctValues. +type GetPlatformInsightColumnDistinctValuesParams struct { + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // OwnerTag When specified, returns distinct values for this ownership tag key (e.g., "team", "department"). The column_name parameter is ignored when owner_tag is provided. + OwnerTag *string `form:"owner_tag,omitempty" json:"owner_tag,omitempty"` + + // Search Search in title, evidence (description), mitigation, or related fields + Search *string `form:"search,omitempty" json:"search,omitempty"` + + // Severities Filter by severities (any match) + Severities *[]InsightSeverity `form:"severities,omitempty" json:"severities,omitempty"` + + // Cloud Filter by cloud + Cloud *string `form:"cloud,omitempty" json:"cloud,omitempty"` + + // Account Filter by account + Account *string `form:"account,omitempty" json:"account,omitempty"` + + // Region Filter by region + Region *string `form:"region,omitempty" json:"region,omitempty"` + + // InsightCategory Filter by insight category + InsightCategory *string `form:"insight_category,omitempty" json:"insight_category,omitempty"` + + // SourceCategory Filter by source category + SourceCategory *string `form:"source_category,omitempty" json:"source_category,omitempty"` + + // Source Filter by source + Source *string `form:"source,omitempty" json:"source,omitempty"` + + // ResourceTypes Filter by resource types + ResourceTypes *[]string `form:"resource_types,omitempty" json:"resource_types,omitempty"` + + // Tags Filter by tags (any match) + Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"` } -// ListLocalUsersParams defines parameters for ListLocalUsers. -type ListLocalUsersParams struct { +// PlatformListInsightFiltersParams defines parameters for PlatformListInsightFilters. +type PlatformListInsightFiltersParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // SearchTerm Search in filter name or description + SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` + + // InsightCategory Filter by insight category + InsightCategory *[]string `form:"insight_category,omitempty" json:"insight_category,omitempty"` + + // Severities Filter by severities (any match) + Severities *[]InsightSeverity `form:"severities,omitempty" json:"severities,omitempty"` + + // ResourceTypes Filter by resource types + ResourceTypes *[]string `form:"resource_types,omitempty" json:"resource_types,omitempty"` + + // Source Filter by source + Source *[]string `form:"source,omitempty" json:"source,omitempty"` + + // SourceCategory Filter by source category + SourceCategory *[]string `form:"source_category,omitempty" json:"source_category,omitempty"` + + // Tags Filter by tags (any match) + Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"` + + // GroupBy Filter by group by fields + GroupBy *[]string `form:"group_by,omitempty" json:"group_by,omitempty"` } -// AddLocalUserJSONBody defines parameters for AddLocalUser. -type AddLocalUserJSONBody struct { - Email string `json:"email"` - Name string `json:"name"` - Password *string `json:"password,omitempty"` +// GetPlatformInsightAssetsParams defines parameters for GetPlatformInsightAssets. +type GetPlatformInsightAssetsParams struct { + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Search Search in asset name, account, region, etc. + Search *string `form:"search,omitempty" json:"search,omitempty"` + + // Accounts Filter by account IDs + Accounts *[]string `form:"accounts,omitempty" json:"accounts,omitempty"` - // Roles Global roles for the user - Roles []AddLocalUserJSONBodyRoles `json:"roles"` + // Clouds Filter by cloud providers (e.g. aws, azure, gcp, github, backstage, digitalocean, wiz) + Clouds *[]string `form:"clouds,omitempty" json:"clouds,omitempty"` + + // Regions Filter by regions + Regions *[]string `form:"regions,omitempty" json:"regions,omitempty"` + + // ResourceType Filter by resource type + ResourceType *[]string `form:"resource_type,omitempty" json:"resource_type,omitempty"` } -// AddLocalUserJSONBodyRoles defines parameters for AddLocalUser. -type AddLocalUserJSONBodyRoles string +// ListNotificationsParams defines parameters for ListNotifications. +type ListNotificationsParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` -// UpdateLocalUserJSONBody defines parameters for UpdateLocalUser. -type UpdateLocalUserJSONBody struct { - Email *string `json:"email,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Name *string `json:"name,omitempty"` - Password *string `json:"password,omitempty"` + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` - // Roles Global roles for the user - Roles *[]UpdateLocalUserJSONBodyRoles `json:"roles,omitempty"` + // Severities Filter by policy severities (policy matches any) + Severities *[]PolicySeverity `form:"severities,omitempty" json:"severities,omitempty"` + + // PolicyGroupIds Filter by policy groups (policy matches any) + PolicyGroupIds *[]PolicyGroupID `form:"policy_group_ids,omitempty" json:"policy_group_ids,omitempty"` } -// UpdateLocalUserJSONBodyRoles defines parameters for UpdateLocalUser. -type UpdateLocalUserJSONBodyRoles string +// GetNotificationDestinationAlertsParams defines parameters for GetNotificationDestinationAlerts. +type GetNotificationDestinationAlertsParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` +} + +// ListAllNotificationDestinationsParams defines parameters for ListAllNotificationDestinations. +type ListAllNotificationDestinationsParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` +} + +// CreateAWSOnboardingJSONBody defines parameters for CreateAWSOnboarding. +type CreateAWSOnboardingJSONBody struct { + // SingleAccount Specifies the type of onboarding to create: either a single account onboarding or an organization onboarding + SingleAccount bool `json:"single_account"` +} // ListPlatformVersionsParams defines parameters for ListPlatformVersions. type ListPlatformVersionsParams struct { @@ -4581,64 +4643,11 @@ type ListPluginVersionsParams struct { // ListPluginVersionsParamsSortBy defines parameters for ListPluginVersions. type ListPluginVersionsParamsSortBy string -// CreatePluginVersionJSONBody defines parameters for CreatePluginVersion. -type CreatePluginVersionJSONBody struct { - // Checksums List of SHA-256 checksums for this plugin version, one for each supported target. - Checksums []string `json:"checksums"` - - // Message A message describing what's new or changed in this version. - // This message will be displayed to users in the plugin's changelog. - // Supports limited markdown syntax. - Message string `json:"message"` - - // PackageType The package type of the plugin assets - PackageType PluginPackageType `json:"package_type"` - - // Protocols The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins). - Protocols PluginProtocols `json:"protocols"` - - // SpecJsonSchema The specification of the plugin. This is a JSON schema that describes the configuration of the plugin. - SpecJsonSchema *PluginSpecJSONSchema `json:"spec_json_schema,omitempty"` - - // SupportedTargets The targets supported by this plugin version, formatted as _ - SupportedTargets []string `json:"supported_targets"` - UIID *openapi_types.UUID `json:"ui_id,omitempty"` -} - // DownloadPluginAssetParams defines parameters for DownloadPluginAsset. type DownloadPluginAssetParams struct { Accept *string `json:"Accept,omitempty"` } -// DeletePluginVersionDocsJSONBody defines parameters for DeletePluginVersionDocs. -type DeletePluginVersionDocsJSONBody struct { - Names []PluginDocsPageName `json:"names"` -} - -// ListPluginVersionDocsParams defines parameters for ListPluginVersionDocs. -type ListPluginVersionDocsParams struct { - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` -} - -// ReplacePluginVersionDocsJSONBody defines parameters for ReplacePluginVersionDocs. -type ReplacePluginVersionDocsJSONBody struct { - Pages []PluginDocsPageCreate `json:"pages"` -} - -// CreatePluginVersionDocsJSONBody defines parameters for CreatePluginVersionDocs. -type CreatePluginVersionDocsJSONBody struct { - Pages []PluginDocsPageCreate `json:"pages"` -} - -// DeletePluginVersionTablesJSONBody defines parameters for DeletePluginVersionTables. -type DeletePluginVersionTablesJSONBody struct { - Names []PluginTableName `json:"names"` -} - // ListPluginVersionTablesParams defines parameters for ListPluginVersionTables. type ListPluginVersionTablesParams struct { // Page Page number of the results to fetch @@ -4648,354 +4657,137 @@ type ListPluginVersionTablesParams struct { PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` } -// CreatePluginVersionTablesJSONBody defines parameters for CreatePluginVersionTables. -type CreatePluginVersionTablesJSONBody struct { - Tables []PluginTableCreate `json:"tables"` -} - -// UploadPluginUIAssetsJSONBody defines parameters for UploadPluginUIAssets. -type UploadPluginUIAssetsJSONBody struct { - Assets []PluginUIAssetUploadRequest `json:"assets"` - UIID *openapi_types.UUID `json:"ui_id,omitempty"` -} - -// FinalizePluginUIAssetUploadJSONBody defines parameters for FinalizePluginUIAssetUpload. -type FinalizePluginUIAssetUploadJSONBody struct { - // UIID ID representing the finished upload - UIID string `json:"ui_id"` -} - -// AuthRegistryRequestParams defines parameters for AuthRegistryRequest. -type AuthRegistryRequestParams struct { - // Account Username used for `docker login` - Account *string `form:"account,omitempty" json:"account,omitempty"` - - // Service Service requesting the JWT token - Service *string `form:"service,omitempty" json:"service,omitempty"` - - // Scope Multi-value string containing the repository being access and the operation type (push/pull) - Scope *string `form:"scope,omitempty" json:"scope,omitempty"` - - // XMetaPluginVersion Plugin version name - XMetaPluginVersion *string `json:"X-Meta-Plugin-Version,omitempty"` - - // XMetaUserTeamName User's team name - XMetaUserTeamName *string `json:"X-Meta-User-Team-Name,omitempty"` -} - -// ListTeamsParams defines parameters for ListTeams. -type ListTeamsParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` -} - -// CreateTeamJSONBody defines parameters for CreateTeam. -type CreateTeamJSONBody struct { - // DisplayName The team's display name - DisplayName string `json:"display_name"` - - // Name The unique name for the team. - Name TeamName `json:"name"` -} - -// UpdateTeamJSONBody defines parameters for UpdateTeam. -type UpdateTeamJSONBody struct { - // DisplayName The team's display name - DisplayName *string `json:"display_name,omitempty"` -} - -// ListAllAlertsParams defines parameters for ListAllAlerts. -type ListAllAlertsParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // AlertStates Alert states - AlertStates AlertStates `form:"state,omitempty" json:"state,omitempty"` - - // Enabled Enabled - Enabled *Enabled `form:"enabled,omitempty" json:"enabled,omitempty"` -} - -// TestUnsavedAlertParams defines parameters for TestUnsavedAlert. -type TestUnsavedAlertParams struct { - // QueryID ID of the query to fill in the alert - QueryID *QueryID `form:"query_id,omitempty" json:"query_id,omitempty"` -} - -// ListTeamAPIKeysParams defines parameters for ListTeamAPIKeys. -type ListTeamAPIKeysParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` -} - -// CreateTeamAPIKeyJSONBody defines parameters for CreateTeamAPIKey. -type CreateTeamAPIKeyJSONBody struct { - ExpiresAt time.Time `json:"expires_at"` - - // Name Name of the API key - Name APIKeyName `json:"name"` - Roles *[]APIKeyTeamRole `json:"roles,omitempty"` -} - -// ListConnectorsParams defines parameters for ListConnectors. -type ListConnectorsParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // FilterType Filter connectors by a given type. - FilterType *string `form:"filter_type,omitempty" json:"filter_type,omitempty"` - - // FilterPlugin Filter connectors by a given plugin reference. Mutually exclusive with `type`. - FilterPlugin *string `form:"filter_plugin,omitempty" json:"filter_plugin,omitempty"` -} - -// ListAllCustomColumnsParams defines parameters for ListAllCustomColumns. -type ListAllCustomColumnsParams struct { +// ListPoliciesParams defines parameters for ListPolicies. +type ListPoliciesParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // CustomColumnSortBys Sort by options - CustomColumnSortBys CustomColumnSortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` + Page *Page `form:"page,omitempty" json:"page,omitempty"` + PolicyStatus *PolicyStatus `form:"status,omitempty" json:"status,omitempty"` - // CustomColumnSortDirections Custom column sort direction options - CustomColumnSortDirections CustomColumnSortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` + // Severities Filter by severities (policy matches any) + Severities *[]PolicySeverity `form:"severities,omitempty" json:"severities,omitempty"` - // Table Filter columns by table name. - Table *string `form:"table,omitempty" json:"table,omitempty"` - - // SearchTerm Filter columns by name, label, or description. - SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` -} + // Domain Filter by domain + Domain *PolicyDomain `form:"domain,omitempty" json:"domain,omitempty"` -// ListFiltersTeamParams defines parameters for ListFiltersTeam. -type ListFiltersTeamParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + // PolicyGroupIds Filter by policy groups (policy matches any) + PolicyGroupIds *[]PolicyGroupID `form:"policy_group_ids,omitempty" json:"policy_group_ids,omitempty"` - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // FilterTags Filter tags - FilterTags *FilterTags `form:"tag,omitempty" json:"tag,omitempty"` - NameFilter *FilterNameFilter `form:"name_filter,omitempty" json:"name_filter,omitempty"` - ExpressionFilter *FilterExpressionFilter `form:"expression_filter,omitempty" json:"expression_filter,omitempty"` -} - -// ListFilterTagsTeamParams defines parameters for ListFilterTagsTeam. -type ListFilterTagsTeamParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` -} + // Search Search in policy name and description + Search *string `form:"search,omitempty" json:"search,omitempty"` -// CreateTeamImagesJSONBody defines parameters for CreateTeamImages. -type CreateTeamImagesJSONBody struct { - Images []TeamImageCreate `json:"images"` -} + // SortBy Field to sort by + SortBy *ListPoliciesParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` -// DeleteTeamInvitationJSONBody defines parameters for DeleteTeamInvitation. -type DeleteTeamInvitationJSONBody struct { - Email openapi_types.Email `json:"email"` + // SortDir Sort direction + SortDir *ListPoliciesParamsSortDir `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` } -// ListTeamInvitationsParams defines parameters for ListTeamInvitations. -type ListTeamInvitationsParams struct { - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` -} +// ListPoliciesParamsSortBy defines parameters for ListPolicies. +type ListPoliciesParamsSortBy string -// AcceptTeamInvitationJSONBody defines parameters for AcceptTeamInvitation. -type AcceptTeamInvitationJSONBody struct { - Token openapi_types.UUID `json:"token"` -} +// ListPoliciesParamsSortDir defines parameters for ListPolicies. +type ListPoliciesParamsSortDir string -// RemoveTeamMembershipJSONBody defines parameters for RemoveTeamMembership. -type RemoveTeamMembershipJSONBody struct { - Email string `json:"email"` -} +// GetPolicyMetricsParams defines parameters for GetPolicyMetrics. +type GetPolicyMetricsParams struct { + // Severities Filter by severities (policy matches any) + Severities *[]PolicySeverity `form:"severities,omitempty" json:"severities,omitempty"` -// GetTeamMembershipsParams defines parameters for GetTeamMemberships. -type GetTeamMembershipsParams struct { - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` + // Domain Filter by domain + Domain *PolicyDomain `form:"domain,omitempty" json:"domain,omitempty"` - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + // PolicyGroupIds Filter by policy groups (policy matches any) + PolicyGroupIds *[]PolicyGroupID `form:"policy_group_ids,omitempty" json:"policy_group_ids,omitempty"` } -// GetNotificationDestinationAlertsParams defines parameters for GetNotificationDestinationAlerts. -type GetNotificationDestinationAlertsParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` +// GetViolationsByDomainParams defines parameters for GetViolationsByDomain. +type GetViolationsByDomainParams struct { + // Severities Filter by severities (policy matches any) + Severities *[]PolicySeverity `form:"severities,omitempty" json:"severities,omitempty"` - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` -} + // Domain Filter by domain + Domain *PolicyDomain `form:"domain,omitempty" json:"domain,omitempty"` -// ListAllNotificationDestinationsParams defines parameters for ListAllNotificationDestinations. -type ListAllNotificationDestinationsParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` + // PolicyGroupIds Filter by policy groups (policy matches any) + PolicyGroupIds *[]PolicyGroupID `form:"policy_group_ids,omitempty" json:"policy_group_ids,omitempty"` } -// CreateAWSOnboardingJSONBody defines parameters for CreateAWSOnboarding. -type CreateAWSOnboardingJSONBody struct { - // SingleAccount Specifies the type of onboarding to create: either a single account onboarding or an organization onboarding - SingleAccount bool `json:"single_account"` -} +// GetViolationsHistoryParams defines parameters for GetViolationsHistory. +type GetViolationsHistoryParams struct { + // StartDate Start date for the query range (YYYY-MM-DD) + StartDate *openapi_types.Date `form:"start_date,omitempty" json:"start_date,omitempty"` -// ListPluginsByTeamParams defines parameters for ListPluginsByTeam. -type ListPluginsByTeamParams struct { - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` + // EndDate End date for the query range (YYYY-MM-DD) + EndDate *openapi_types.Date `form:"end_date,omitempty" json:"end_date,omitempty"` - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + // Severities Filter by severities (policy matches any) + Severities *[]PolicySeverity `form:"severities,omitempty" json:"severities,omitempty"` - // IncludePrivate Whether to include private plugins - IncludePrivate *IncludePrivate `form:"include_private,omitempty" json:"include_private,omitempty"` -} + // Domain Filter by domain + Domain *PolicyDomain `form:"domain,omitempty" json:"domain,omitempty"` -// DownloadPluginAssetByTeamParams defines parameters for DownloadPluginAssetByTeam. -type DownloadPluginAssetByTeamParams struct { - Accept *string `json:"Accept,omitempty"` + // PolicyGroupIds Filter by policy groups (policy matches any) + PolicyGroupIds *[]PolicyGroupID `form:"policy_group_ids,omitempty" json:"policy_group_ids,omitempty"` } -// ListPoliciesParams defines parameters for ListPolicies. -type ListPoliciesParams struct { - // SearchTerm Filter policies by name. - SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` - - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - +// GetPolicyViolationsParams defines parameters for GetPolicyViolations. +type GetPolicyViolationsParams struct { // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` - // PlatformPolicySortBys Sort by options - PlatformPolicySortBys PlatformPolicySortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` - - // PlatformPolicySortDirections Platform policies sort direction options - PlatformPolicySortDirections PlatformPolicySortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` - - // Sort DEPRECATED! Sorting order. - Sort *string `form:"sort,omitempty" json:"sort,omitempty"` -} - -// ListAllFrameworksParams defines parameters for ListAllFrameworks. -type ListAllFrameworksParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` + // Search Text search term to filter violations by resource_type_label, name, account_name, cloud, or region + Search *string `form:"search,omitempty" json:"search,omitempty"` } -// ListPolicyFrameworksParams defines parameters for ListPolicyFrameworks. -type ListPolicyFrameworksParams struct { +// GetPolicyViolationsHistoryParams defines parameters for GetPolicyViolationsHistory. +type GetPolicyViolationsHistoryParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // PlatformPolicyFrameworkSortBys Sort by options - PlatformPolicyFrameworkSortBys PlatformPolicyFrameworkSortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` - - // PlatformPolicySortDirections Platform policies sort direction options - PlatformPolicySortDirections PlatformPolicySortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` - - // SearchTerm Filter rules by name. - SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` - - // Sort DEPRECATED! Sorting order. - Sort *string `form:"sort,omitempty" json:"sort,omitempty"` + Page *Page `form:"page,omitempty" json:"page,omitempty"` + StartTime *time.Time `form:"start_time,omitempty" json:"start_time,omitempty"` + EndTime *time.Time `form:"end_time,omitempty" json:"end_time,omitempty"` } -// ListPolicyRulesParams defines parameters for ListPolicyRules. -type ListPolicyRulesParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // PlatformPolicyRuleSortBys Sort by options - PlatformPolicyRuleSortBys PlatformPolicyRuleSortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` - - // PlatformPolicySortDirections Platform policies sort direction options - PlatformPolicySortDirections PlatformPolicySortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` - - // SearchTerm Filter rules by name. - SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` +// ListPolicyGroupsParams defines parameters for ListPolicyGroups. +type ListPolicyGroupsParams struct { + // Search Search in policy group name and description + Search *string `form:"search,omitempty" json:"search,omitempty"` - // Sort Sorting order. - Sort *string `form:"sort,omitempty" json:"sort,omitempty"` + // Severities Filter to policy groups that contain at least one policy with any of these severities + Severities *[]PolicySeverity `form:"severities,omitempty" json:"severities,omitempty"` } -// ListPolicyRuleDetailsParams defines parameters for ListPolicyRuleDetails. -type ListPolicyRuleDetailsParams struct { +// ListPoliciesInGroupParams defines parameters for ListPoliciesInGroup. +type ListPoliciesInGroupParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` - // PlatformPolicyRuleDetailSortBys Sort by options - PlatformPolicyRuleDetailSortBys PlatformPolicyRuleDetailSortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` - - // PlatformPolicySortDirections Platform policies sort direction options - PlatformPolicySortDirections PlatformPolicySortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` - - // SearchTerm Filter rules by name. - SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` - - // Sort DEPRECATED! Sorting order. - Sort *string `form:"sort,omitempty" json:"sort,omitempty"` -} + // SortBy Field to sort by + SortBy *ListPoliciesInGroupParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` -// TogglePolicyParams defines parameters for TogglePolicy. -type TogglePolicyParams struct { - Status TogglePolicyParamsStatus `form:"status" json:"status"` + // SortDir Sort direction + SortDir *ListPoliciesInGroupParamsSortDir `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` } -// TogglePolicyParamsStatus defines parameters for TogglePolicy. -type TogglePolicyParamsStatus string +// ListPoliciesInGroupParamsSortBy defines parameters for ListPoliciesInGroup. +type ListPoliciesInGroupParamsSortBy string -// GetPolicyViolationsHistoryParams defines parameters for GetPolicyViolationsHistory. -type GetPolicyViolationsHistoryParams struct { - // Start A valid ISO 8601 date string representing the inclusive start of the period within which to return history entities. Defaults to start of current month if not specified. - Start *time.Time `form:"start,omitempty" json:"start,omitempty"` +// ListPoliciesInGroupParamsSortDir defines parameters for ListPoliciesInGroup. +type ListPoliciesInGroupParamsSortDir string - // End A valid ISO 8601 date string representing the exclusive end of the period within which to return history entities. Defaults to end of current month if not specified. - End *time.Time `form:"end,omitempty" json:"end,omitempty"` -} - -// ListAllQueriesTeamParams defines parameters for ListAllQueriesTeam. -type ListAllQueriesTeamParams struct { +// ListAllQueriesParams defines parameters for ListAllQueries. +type ListAllQueriesParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -5013,16 +4805,19 @@ type ListAllQueriesTeamParams struct { // AlertEnabled Alert enabled AlertEnabled *AlertEnabled `form:"alert_enabled,omitempty" json:"alert_enabled,omitempty"` + + // ColumnFilter Filter queries that return all specified columns + ColumnFilter *QueryColumnFilter `form:"column_filter,omitempty" json:"column_filter,omitempty"` } -// ExecuteAdHocQueryTeamJSONBody defines parameters for ExecuteAdHocQueryTeam. -type ExecuteAdHocQueryTeamJSONBody struct { +// ExecuteAdHocQueryJSONBody defines parameters for ExecuteAdHocQuery. +type ExecuteAdHocQueryJSONBody struct { Query string `json:"query"` } -// ExecuteAdHocQueryTeamParams defines parameters for ExecuteAdHocQueryTeam. -type ExecuteAdHocQueryTeamParams struct { - // Selects Table selects. This filters the columns that are returned in the result set. +// ExecuteAdHocQueryParams defines parameters for ExecuteAdHocQuery. +type ExecuteAdHocQueryParams struct { + // Selects Table selects. This filters the columns that are returned in the result set. If empty, all default columns + internal _cq_* columns are returned. To select all columns, use the `*` wildcard. Selects Selects `form:"select,omitempty" json:"select,omitempty"` // FilterMode Table filter mode. @@ -5035,7 +4830,7 @@ type ExecuteAdHocQueryTeamParams struct { // // Column mode searches purely using the columns in the table. // It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. - FilterMode *ExecuteAdHocQueryTeamParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` + FilterMode *ExecuteAdHocQueryParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` // Filters Table filters. This filters the rows that are returned in the result set. Filters Filters `form:"filter,omitempty" json:"filter,omitempty"` @@ -5060,11 +4855,11 @@ type ExecuteAdHocQueryTeamParams struct { Page *Page `form:"page,omitempty" json:"page,omitempty"` } -// ExecuteAdHocQueryTeamParamsFilterMode defines parameters for ExecuteAdHocQueryTeam. -type ExecuteAdHocQueryTeamParamsFilterMode string +// ExecuteAdHocQueryParamsFilterMode defines parameters for ExecuteAdHocQuery. +type ExecuteAdHocQueryParamsFilterMode string -// ListQueryTagsTeamParams defines parameters for ListQueryTagsTeam. -type ListQueryTagsTeamParams struct { +// ListQueryTagsParams defines parameters for ListQueryTags. +type ListQueryTagsParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -5072,9 +4867,9 @@ type ListQueryTagsTeamParams struct { Page *Page `form:"page,omitempty" json:"page,omitempty"` } -// ExecuteSavedQueryTeamParams defines parameters for ExecuteSavedQueryTeam. -type ExecuteSavedQueryTeamParams struct { - // Selects Table selects. This filters the columns that are returned in the result set. +// ExecuteSavedQueryParams defines parameters for ExecuteSavedQuery. +type ExecuteSavedQueryParams struct { + // Selects Table selects. This filters the columns that are returned in the result set. If empty, all default columns + internal _cq_* columns are returned. To select all columns, use the `*` wildcard. Selects Selects `form:"select,omitempty" json:"select,omitempty"` // FilterMode Table filter mode. @@ -5087,7 +4882,7 @@ type ExecuteSavedQueryTeamParams struct { // // Column mode searches purely using the columns in the table. // It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. - FilterMode *ExecuteSavedQueryTeamParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` + FilterMode *ExecuteSavedQueryParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` // Filters Table filters. This filters the rows that are returned in the result set. Filters Filters `form:"filter,omitempty" json:"filter,omitempty"` @@ -5112,11 +4907,11 @@ type ExecuteSavedQueryTeamParams struct { Page *Page `form:"page,omitempty" json:"page,omitempty"` } -// ExecuteSavedQueryTeamParamsFilterMode defines parameters for ExecuteSavedQueryTeam. -type ExecuteSavedQueryTeamParamsFilterMode string +// ExecuteSavedQueryParamsFilterMode defines parameters for ExecuteSavedQuery. +type ExecuteSavedQueryParamsFilterMode string -// QueryListFiltersTeamParams defines parameters for QueryListFiltersTeam. -type QueryListFiltersTeamParams struct { +// QueryListFiltersParams defines parameters for QueryListFilters. +type QueryListFiltersParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -5127,8 +4922,8 @@ type QueryListFiltersTeamParams struct { FilterTags *FilterTags `form:"tag,omitempty" json:"tag,omitempty"` } -// QueryListFilterTagsTeamParams defines parameters for QueryListFilterTagsTeam. -type QueryListFilterTagsTeamParams struct { +// QueryListFilterTagsParams defines parameters for QueryListFilterTags. +type QueryListFilterTagsParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -5170,6 +4965,9 @@ type ListAllRBACRolesParams struct { // SearchTerm Filter roles by name or description. SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"` + + // Type Filter roles by type. + Type *string `form:"type,omitempty" json:"type,omitempty"` } // ListReportsParams defines parameters for ListReports. @@ -5212,6 +5010,12 @@ type ListReportTemplatesParams struct { ReportTemplateSortDirections ReportTemplateSortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` } +// ListSlackChannelsParams defines parameters for ListSlackChannels. +type ListSlackChannelsParams struct { + // Name Filter channels by name (case-insensitive partial match) + Name *string `form:"name,omitempty" json:"name,omitempty"` +} + // UpdateSyncTestConnectionForSyncDestinationJSONBody defines parameters for UpdateSyncTestConnectionForSyncDestination. type UpdateSyncTestConnectionForSyncDestinationJSONBody struct { // FailureCode Code for failure @@ -5224,11 +5028,6 @@ type UpdateSyncTestConnectionForSyncDestinationJSONBody struct { Status SyncTestConnectionStatus `json:"status"` } -// GetSyncDestinationTestConnectionLogsParams defines parameters for GetSyncDestinationTestConnectionLogs. -type GetSyncDestinationTestConnectionLogsParams struct { - Accept *string `json:"Accept,omitempty"` -} - // GetSyncDestinationTestConnectionLogsLiveParams defines parameters for GetSyncDestinationTestConnectionLogsLive. type GetSyncDestinationTestConnectionLogsLiveParams struct { Accept *string `json:"Accept,omitempty"` @@ -5295,11 +5094,6 @@ type UpdateSyncTestConnectionForSyncSourceJSONBody struct { Status SyncTestConnectionStatus `json:"status"` } -// GetSyncSourceTestConnectionLogsParams defines parameters for GetSyncSourceTestConnectionLogs. -type GetSyncSourceTestConnectionLogsParams struct { - Accept *string `json:"Accept,omitempty"` -} - // GetSyncSourceTestConnectionLogsLiveParams defines parameters for GetSyncSourceTestConnectionLogsLive. type GetSyncSourceTestConnectionLogsLiveParams struct { Accept *string `json:"Accept,omitempty"` @@ -5446,12 +5240,6 @@ type UpdateSyncRunJSONBody struct { StatusReason *SyncRunStatusReason `json:"status_reason,omitempty"` } -// GetSyncRunLogsParams defines parameters for GetSyncRunLogs. -type GetSyncRunLogsParams struct { - Table *string `form:"table,omitempty" json:"table,omitempty"` - Accept *string `json:"Accept,omitempty"` -} - // GetSyncRunLogsLiveParams defines parameters for GetSyncRunLogsLive. type GetSyncRunLogsLiveParams struct { Table *string `form:"table,omitempty" json:"table,omitempty"` @@ -5506,15 +5294,15 @@ type GetSyncRunTablesParams struct { // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` - // SortBys Table sort by options. This sorts the rows that are returned in the result set. - SortBys SortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` + // SyncRunTableSortBys Sync run table sort by options. This sorts the rows that are returned in the result set. + SyncRunTableSortBys SyncRunTableSortBys `form:"sort_by,omitempty" json:"sort_by,omitempty"` // SortDirections Table sort direction options. This sorts the rows that are returned in the result set. SortDirections SortDirections `form:"sort_dir,omitempty" json:"sort_dir,omitempty"` } -// ListTablesTeamParams defines parameters for ListTablesTeam. -type ListTablesTeamParams struct { +// ListTablesParams defines parameters for ListTables. +type ListTablesParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -5522,14 +5310,23 @@ type ListTablesTeamParams struct { Page *Page `form:"page,omitempty" json:"page,omitempty"` } -// BatchTableSchemasTeamParams defines parameters for BatchTableSchemasTeam. -type BatchTableSchemasTeamParams struct { +// GetTablesDataParams defines parameters for GetTablesData. +type GetTablesDataParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` +} + +// BatchTableSchemasParams defines parameters for BatchTableSchemas. +type BatchTableSchemasParams struct { // Tables A list of table names to retrieve schemas for Tables []string `form:"tables" json:"tables"` } -// TableListColumnsTeamParams defines parameters for TableListColumnsTeam. -type TableListColumnsTeamParams struct { +// TableListColumnsParams defines parameters for TableListColumns. +type TableListColumnsParams struct { // FilterMode Table filter mode. // // Smart mode switches between column and search mode based on the filtered table and @@ -5540,8 +5337,8 @@ type TableListColumnsTeamParams struct { // // Column mode searches purely using the columns in the table. // It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. - FilterMode *TableListColumnsTeamParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` - Filter *TableColumnNameFilter `form:"filter,omitempty" json:"filter,omitempty"` + FilterMode *TableListColumnsParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` + Filter *TableColumnNameFilter `form:"filter,omitempty" json:"filter,omitempty"` // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` @@ -5550,11 +5347,11 @@ type TableListColumnsTeamParams struct { PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` } -// TableListColumnsTeamParamsFilterMode defines parameters for TableListColumnsTeam. -type TableListColumnsTeamParamsFilterMode string +// TableListColumnsParamsFilterMode defines parameters for TableListColumns. +type TableListColumnsParamsFilterMode string -// TableColumnListValuesTeamParams defines parameters for TableColumnListValuesTeam. -type TableColumnListValuesTeamParams struct { +// TableColumnListValuesParams defines parameters for TableColumnListValues. +type TableColumnListValuesParams struct { // FilterMode Table filter mode. // // Smart mode switches between column and search mode based on the filtered table and @@ -5565,8 +5362,8 @@ type TableColumnListValuesTeamParams struct { // // Column mode searches purely using the columns in the table. // It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. - FilterMode *TableColumnListValuesTeamParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` - Filter *TableColumnValueFilter `form:"filter,omitempty" json:"filter,omitempty"` + FilterMode *TableColumnListValuesParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` + Filter *TableColumnValueFilter `form:"filter,omitempty" json:"filter,omitempty"` // Page Page number of the results to fetch Page *Page `form:"page,omitempty" json:"page,omitempty"` @@ -5575,12 +5372,12 @@ type TableColumnListValuesTeamParams struct { PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` } -// TableColumnListValuesTeamParamsFilterMode defines parameters for TableColumnListValuesTeam. -type TableColumnListValuesTeamParamsFilterMode string +// TableColumnListValuesParamsFilterMode defines parameters for TableColumnListValues. +type TableColumnListValuesParamsFilterMode string -// TableListRowsTeamParams defines parameters for TableListRowsTeam. -type TableListRowsTeamParams struct { - // Selects Table selects. This filters the columns that are returned in the result set. +// TableListRowsParams defines parameters for TableListRows. +type TableListRowsParams struct { + // Selects Table selects. This filters the columns that are returned in the result set. If empty, all default columns + internal _cq_* columns are returned. To select all columns, use the `*` wildcard. Selects Selects `form:"select,omitempty" json:"select,omitempty"` // FilterMode Table filter mode. @@ -5593,7 +5390,7 @@ type TableListRowsTeamParams struct { // // Column mode searches purely using the columns in the table. // It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. - FilterMode *TableListRowsTeamParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` + FilterMode *TableListRowsParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` // Filters Table filters. This filters the rows that are returned in the result set. Filters Filters `form:"filter,omitempty" json:"filter,omitempty"` @@ -5618,11 +5415,11 @@ type TableListRowsTeamParams struct { Page *Page `form:"page,omitempty" json:"page,omitempty"` } -// TableListRowsTeamParamsFilterMode defines parameters for TableListRowsTeam. -type TableListRowsTeamParamsFilterMode string +// TableListRowsParamsFilterMode defines parameters for TableListRows. +type TableListRowsParamsFilterMode string -// TableRowByIdTeamParams defines parameters for TableRowByIdTeam. -type TableRowByIdTeamParams struct { +// TableRowByIdParams defines parameters for TableRowById. +type TableRowByIdParams struct { // FilterMode Table filter mode. // // Smart mode switches between column and search mode based on the filtered table and @@ -5633,7 +5430,7 @@ type TableRowByIdTeamParams struct { // // Column mode searches purely using the columns in the table. // It will work on all table results but it is not optimized for arbitrary substring searches and so may be slow on larger tables. - FilterMode *TableRowByIdTeamParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` + FilterMode *TableRowByIdParamsFilterMode `form:"filter_mode,omitempty" json:"filter_mode,omitempty"` // Filters Table filters. This filters the rows that are returned in the result set. Filters Filters `form:"filter,omitempty" json:"filter,omitempty"` @@ -5643,11 +5440,11 @@ type TableRowByIdTeamParams struct { FilterIDs FilterIDs `form:"filter_id,omitempty" json:"filter_id,omitempty"` } -// TableRowByIdTeamParamsFilterMode defines parameters for TableRowByIdTeam. -type TableRowByIdTeamParamsFilterMode string +// TableRowByIdParamsFilterMode defines parameters for TableRowById. +type TableRowByIdParamsFilterMode string -// TableListFiltersTeamParams defines parameters for TableListFiltersTeam. -type TableListFiltersTeamParams struct { +// TableListFiltersParams defines parameters for TableListFilters. +type TableListFiltersParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -5658,8 +5455,17 @@ type TableListFiltersTeamParams struct { FilterTags *FilterTags `form:"tag,omitempty" json:"tag,omitempty"` } -// TableListFilterTagsTeamParams defines parameters for TableListFilterTagsTeam. -type TableListFilterTagsTeamParams struct { +// TableListFilterTagsParams defines parameters for TableListFilterTags. +type TableListFilterTagsParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` +} + +// ListTeamsParams defines parameters for ListTeams. +type ListTeamsParams struct { // PerPage The number of results per page (max 1000). PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` @@ -5667,10 +5473,57 @@ type TableListFilterTagsTeamParams struct { Page *Page `form:"page,omitempty" json:"page,omitempty"` } -// TableListRelationsTeamParams defines parameters for TableListRelationsTeam. -type TableListRelationsTeamParams struct { - // RelationName Filter by related table name - RelationName *string `form:"relation_name,omitempty" json:"relation_name,omitempty"` +// DownloadPluginAssetByTeamParams defines parameters for DownloadPluginAssetByTeam. +type DownloadPluginAssetByTeamParams struct { + Accept *string `json:"Accept,omitempty"` +} + +// UpdateSyncTestConnectionForSyncDestinationTeamJSONBody defines parameters for UpdateSyncTestConnectionForSyncDestinationTeam. +type UpdateSyncTestConnectionForSyncDestinationTeamJSONBody struct { + // FailureCode Code for failure + FailureCode *string `json:"failure_code,omitempty"` + + // FailureReason Reason for failure + FailureReason *string `json:"failure_reason,omitempty"` + + // Status The status of the sync run + Status SyncTestConnectionStatus `json:"status"` +} + +// UpdateSyncTestConnectionForSyncSourceTeamJSONBody defines parameters for UpdateSyncTestConnectionForSyncSourceTeam. +type UpdateSyncTestConnectionForSyncSourceTeamJSONBody struct { + // FailureCode Code for failure + FailureCode *string `json:"failure_code,omitempty"` + + // FailureReason Reason for failure + FailureReason *string `json:"failure_reason,omitempty"` + + // Status The status of the sync run + Status SyncTestConnectionStatus `json:"status"` +} + +// CreateSyncRunProgressTeamJSONBody defines parameters for CreateSyncRunProgressTeam. +type CreateSyncRunProgressTeamJSONBody struct { + // Errors Number of errors encountered so far + Errors int64 `json:"errors"` + + // Rows Number of rows synced so far + Rows int64 `json:"rows"` + + // ShardNum The shard number that this progress update is for + ShardNum *int32 `json:"shard_num,omitempty"` + + // ShardTotal The total number of shards for this sync run + ShardTotal *int32 `json:"shard_total,omitempty"` + + // Status The status of the sync run + Status *SyncRunStatus `json:"status,omitempty"` + + // TableProgress Table-specific progress information for a sync run + TableProgress *SyncRunTableProgress `json:"table_progress,omitempty"` + + // Warnings Number of warnings encountered so far + Warnings int64 `json:"warnings"` } // GetTeamUsageSummaryParams defines parameters for GetTeamUsageSummary. @@ -5708,21 +5561,6 @@ type GetGroupedTeamUsageSummaryParamsAggregationPeriod string // GetGroupedTeamUsageSummaryParamsGroupBy defines parameters for GetGroupedTeamUsageSummary. type GetGroupedTeamUsageSummaryParamsGroupBy string -// ListUsersByTeamParams defines parameters for ListUsersByTeam. -type ListUsersByTeamParams struct { - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` - - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` -} - -// UploadImageJSONBody defines parameters for UploadImage. -type UploadImageJSONBody struct { - // ContentType The HTTP Content-Type of the image or asset - ContentType ContentType `json:"content_type"` -} - // UpdateCurrentUserJSONBody defines parameters for UpdateCurrentUser. type UpdateCurrentUserJSONBody struct { // Name The unique name for the user. @@ -5744,14 +5582,14 @@ type SendAnonymousEventJSONBody struct { Properties *map[string]interface{} `json:"properties,omitempty"` } -// AuthenticateLocalUserJSONBody defines parameters for AuthenticateLocalUser. -type AuthenticateLocalUserJSONBody struct { +// AuthenticateUserJSONBody defines parameters for AuthenticateUser. +type AuthenticateUserJSONBody struct { Email string `json:"email"` Password string `json:"password"` } -// ChangeLocalUserPasswordJSONBody defines parameters for ChangeLocalUserPassword. -type ChangeLocalUserPasswordJSONBody struct { +// ChangeUserPasswordJSONBody defines parameters for ChangeUserPassword. +type ChangeUserPasswordJSONBody struct { Email string `json:"email"` NewPassword string `json:"new_password"` OldPassword string `json:"old_password"` @@ -5776,36 +5614,11 @@ type SendUserEventJSONBody struct { Properties *map[string]interface{} `json:"properties,omitempty"` } -// ListCurrentUserInvitationsParams defines parameters for ListCurrentUserInvitations. -type ListCurrentUserInvitationsParams struct { - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` -} - // LoginUserJSONBody defines parameters for LoginUser. type LoginUserJSONBody struct { IDToken string `json:"id_token"` } -// GetCurrentUserMembershipsParams defines parameters for GetCurrentUserMemberships. -type GetCurrentUserMembershipsParams struct { - // Page Page number of the results to fetch - Page *Page `form:"page,omitempty" json:"page,omitempty"` - - // PerPage The number of results per page (max 1000). - PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` -} - -// ResetLocalUserPasswordJSONBody defines parameters for ResetLocalUserPassword. -type ResetLocalUserPasswordJSONBody struct { - Email string `json:"email"` - NewPassword string `json:"new_password"` - ResetToken string `json:"reset_token"` -} - // UserTOTPVerifyJSONBody defines parameters for UserTOTPVerify. type UserTOTPVerifyJSONBody struct { OTP string `json:"otp"` @@ -5816,6 +5629,42 @@ type UserTOTPVerifyParams struct { CqpSess *string `form:"__cqp_sess,omitempty" json:"__cqp_sess,omitempty"` } +// ListUsersParams defines parameters for ListUsers. +type ListUsersParams struct { + // PerPage The number of results per page (max 1000). + PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page Page number of the results to fetch + Page *Page `form:"page,omitempty" json:"page,omitempty"` + + // UserSearch Search by user name or email + UserSearch *string `form:"user_search,omitempty" json:"user_search,omitempty"` + + // RoleId Search by user role ID + RoleId *RoleID `form:"role_id,omitempty" json:"role_id,omitempty"` +} + +// AddUserJSONBody defines parameters for AddUser. +type AddUserJSONBody struct { + Email string `json:"email"` + Name string `json:"name"` + Password *string `json:"password,omitempty"` + + // Roles Roles for the user + Roles []RoleID `json:"roles"` +} + +// UpdateUserJSONBody defines parameters for UpdateUser. +type UpdateUserJSONBody struct { + Email *string `json:"email,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Name *string `json:"name,omitempty"` + Password *string `json:"password,omitempty"` + + // Roles Roles for the user + Roles *[]RoleID `json:"roles,omitempty"` +} + // GetV2SyncDestinationsParams defines parameters for GetV2SyncDestinations. type GetV2SyncDestinationsParams struct { // PerPage The number of results per page (max 1000). @@ -5848,95 +5697,26 @@ type ListV2SyncIntegrationsParams struct { Filter *SyncNameFilter `form:"filter,omitempty" json:"filter,omitempty"` } -// ManageUpdateSAMLJSONRequestBody defines body for ManageUpdateSAML for application/json ContentType. -type ManageUpdateSAMLJSONRequestBody = SAMLConfigUpdate - -// ManageRegisterPlatformJSONRequestBody defines body for ManageRegisterPlatform for application/json ContentType. -type ManageRegisterPlatformJSONRequestBody ManageRegisterPlatformJSONBody - -// ManageRegisterPlatformWithOfflineLicenseJSONRequestBody defines body for ManageRegisterPlatformWithOfflineLicense for application/json ContentType. -type ManageRegisterPlatformWithOfflineLicenseJSONRequestBody ManageRegisterPlatformWithOfflineLicenseJSONBody - -// UpdateSettingsJSONRequestBody defines body for UpdateSettings for application/json ContentType. -type UpdateSettingsJSONRequestBody = PlatformSettingsUpdate - -// ManageRemoveTeamMemberJSONRequestBody defines body for ManageRemoveTeamMember for application/json ContentType. -type ManageRemoveTeamMemberJSONRequestBody ManageRemoveTeamMemberJSONBody - -// ManageAddTeamMemberJSONRequestBody defines body for ManageAddTeamMember for application/json ContentType. -type ManageAddTeamMemberJSONRequestBody ManageAddTeamMemberJSONBody - -// AddLocalUserJSONRequestBody defines body for AddLocalUser for application/json ContentType. -type AddLocalUserJSONRequestBody AddLocalUserJSONBody - -// UpdateLocalUserJSONRequestBody defines body for UpdateLocalUser for application/json ContentType. -type UpdateLocalUserJSONRequestBody UpdateLocalUserJSONBody - -// CreatePluginJSONRequestBody defines body for CreatePlugin for application/json ContentType. -type CreatePluginJSONRequestBody = PluginCreate - -// UpdatePluginJSONRequestBody defines body for UpdatePlugin for application/json ContentType. -type UpdatePluginJSONRequestBody = PluginUpdate - -// UpdatePluginVersionJSONRequestBody defines body for UpdatePluginVersion for application/json ContentType. -type UpdatePluginVersionJSONRequestBody = PluginVersionUpdate - -// CreatePluginVersionJSONRequestBody defines body for CreatePluginVersion for application/json ContentType. -type CreatePluginVersionJSONRequestBody CreatePluginVersionJSONBody - -// DeletePluginVersionDocsJSONRequestBody defines body for DeletePluginVersionDocs for application/json ContentType. -type DeletePluginVersionDocsJSONRequestBody DeletePluginVersionDocsJSONBody - -// ReplacePluginVersionDocsJSONRequestBody defines body for ReplacePluginVersionDocs for application/json ContentType. -type ReplacePluginVersionDocsJSONRequestBody ReplacePluginVersionDocsJSONBody - -// CreatePluginVersionDocsJSONRequestBody defines body for CreatePluginVersionDocs for application/json ContentType. -type CreatePluginVersionDocsJSONRequestBody CreatePluginVersionDocsJSONBody - -// DeletePluginVersionTablesJSONRequestBody defines body for DeletePluginVersionTables for application/json ContentType. -type DeletePluginVersionTablesJSONRequestBody DeletePluginVersionTablesJSONBody - -// CreatePluginVersionTablesJSONRequestBody defines body for CreatePluginVersionTables for application/json ContentType. -type CreatePluginVersionTablesJSONRequestBody CreatePluginVersionTablesJSONBody - -// UploadPluginUIAssetsJSONRequestBody defines body for UploadPluginUIAssets for application/json ContentType. -type UploadPluginUIAssetsJSONRequestBody UploadPluginUIAssetsJSONBody - -// FinalizePluginUIAssetUploadJSONRequestBody defines body for FinalizePluginUIAssetUpload for application/json ContentType. -type FinalizePluginUIAssetUploadJSONRequestBody FinalizePluginUIAssetUploadJSONBody - -// CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType. -type CreateTeamJSONRequestBody CreateTeamJSONBody - -// UpdateTeamJSONRequestBody defines body for UpdateTeam for application/json ContentType. -type UpdateTeamJSONRequestBody UpdateTeamJSONBody +// DeleteV2SyncIntegrationParams defines parameters for DeleteV2SyncIntegration. +type DeleteV2SyncIntegrationParams struct { + // DeleteData If true, also delete data associated with this integration from the relevant destinations. + DeleteData *bool `form:"delete_data,omitempty" json:"delete_data,omitempty"` +} // TestUnsavedAlertJSONRequestBody defines body for TestUnsavedAlert for application/json ContentType. type TestUnsavedAlertJSONRequestBody = AlertCreate -// CreateTeamAPIKeyJSONRequestBody defines body for CreateTeamAPIKey for application/json ContentType. -type CreateTeamAPIKeyJSONRequestBody CreateTeamAPIKeyJSONBody - -// CreateConnectorJSONRequestBody defines body for CreateConnector for application/json ContentType. -type CreateConnectorJSONRequestBody = ConnectorCreate +// CreateAPIKeyJSONRequestBody defines body for CreateAPIKey for application/json ContentType. +type CreateAPIKeyJSONRequestBody CreateAPIKeyJSONBody -// UpdateConnectorJSONRequestBody defines body for UpdateConnector for application/json ContentType. -type UpdateConnectorJSONRequestBody = ConnectorUpdate +// UpdateSAMLJSONRequestBody defines body for UpdateSAML for application/json ContentType. +type UpdateSAMLJSONRequestBody = SAMLConfigUpdate -// AuthenticateConnectorFinishAWSJSONRequestBody defines body for AuthenticateConnectorFinishAWS for application/json ContentType. -type AuthenticateConnectorFinishAWSJSONRequestBody = ConnectorAuthFinishRequestAWS +// DeleteSAMLRolloverCertificateJSONRequestBody defines body for DeleteSAMLRolloverCertificate for application/json ContentType. +type DeleteSAMLRolloverCertificateJSONRequestBody DeleteSAMLRolloverCertificateJSONBody -// AuthenticateConnectorAWSJSONRequestBody defines body for AuthenticateConnectorAWS for application/json ContentType. -type AuthenticateConnectorAWSJSONRequestBody = ConnectorAuthRequestAWS - -// AuthenticateConnectorGCPJSONRequestBody defines body for AuthenticateConnectorGCP for application/json ContentType. -type AuthenticateConnectorGCPJSONRequestBody = ConnectorAuthRequestGCP - -// AuthenticateConnectorFinishOAuthJSONRequestBody defines body for AuthenticateConnectorFinishOAuth for application/json ContentType. -type AuthenticateConnectorFinishOAuthJSONRequestBody = ConnectorAuthFinishRequestOAuth - -// AuthenticateConnectorOAuthJSONRequestBody defines body for AuthenticateConnectorOAuth for application/json ContentType. -type AuthenticateConnectorOAuthJSONRequestBody = ConnectorAuthRequestOAuth +// PromoteSAMLRolloverCertificateJSONRequestBody defines body for PromoteSAMLRolloverCertificate for application/json ContentType. +type PromoteSAMLRolloverCertificateJSONRequestBody PromoteSAMLRolloverCertificateJSONBody // CreateConversationJSONRequestBody defines body for CreateConversation for application/json ContentType. type CreateConversationJSONRequestBody = ConversationCreate @@ -5950,26 +5730,14 @@ type SaveCustomColumnJSONRequestBody = CustomColumnCreateOrUpdate // UpdateCustomColumnJSONRequestBody defines body for UpdateCustomColumn for application/json ContentType. type UpdateCustomColumnJSONRequestBody = CustomColumnCreateOrUpdate -// PutCustomColumnDataJSONRequestBody defines body for PutCustomColumnData for application/json ContentType. -type PutCustomColumnDataJSONRequestBody = CustomColumnDataImport - -// PutCustomColumnValuesJSONRequestBody defines body for PutCustomColumnValues for application/json ContentType. -type PutCustomColumnValuesJSONRequestBody = CustomColumnDataValues - -// UpdateFilterTeamJSONRequestBody defines body for UpdateFilterTeam for application/json ContentType. -type UpdateFilterTeamJSONRequestBody = FilterUpdate +// UpdateFilterJSONRequestBody defines body for UpdateFilter for application/json ContentType. +type UpdateFilterJSONRequestBody = FilterUpdate -// CreateTeamImagesJSONRequestBody defines body for CreateTeamImages for application/json ContentType. -type CreateTeamImagesJSONRequestBody CreateTeamImagesJSONBody +// PlatformCreateInsightFilterJSONRequestBody defines body for PlatformCreateInsightFilter for application/json ContentType. +type PlatformCreateInsightFilterJSONRequestBody = PlatformInsightFilterCreate -// DeleteTeamInvitationJSONRequestBody defines body for DeleteTeamInvitation for application/json ContentType. -type DeleteTeamInvitationJSONRequestBody DeleteTeamInvitationJSONBody - -// AcceptTeamInvitationJSONRequestBody defines body for AcceptTeamInvitation for application/json ContentType. -type AcceptTeamInvitationJSONRequestBody AcceptTeamInvitationJSONBody - -// RemoveTeamMembershipJSONRequestBody defines body for RemoveTeamMembership for application/json ContentType. -type RemoveTeamMembershipJSONRequestBody RemoveTeamMembershipJSONBody +// PlatformUpdateInsightFilterJSONRequestBody defines body for PlatformUpdateInsightFilter for application/json ContentType. +type PlatformUpdateInsightFilterJSONRequestBody = PlatformInsightFilterUpdate // UpdateNotificationDestinationJSONRequestBody defines body for UpdateNotificationDestination for application/json ContentType. type UpdateNotificationDestinationJSONRequestBody = NotificationDestinationUpdate @@ -5980,6 +5748,9 @@ type CreateNotificationDestinationJSONRequestBody = NotificationDestinationCreat // TestUnsavedNotificationDestinationJSONRequestBody defines body for TestUnsavedNotificationDestination for application/json ContentType. type TestUnsavedNotificationDestinationJSONRequestBody = NotificationDestinationData +// NotifyAWSCUROnboardingJSONRequestBody defines body for NotifyAWSCUROnboarding for application/json ContentType. +type NotifyAWSCUROnboardingJSONRequestBody = OnboardingAWSCURNotification + // CreateAWSOnboardingJSONRequestBody defines body for CreateAWSOnboarding for application/json ContentType. type CreateAWSOnboardingJSONRequestBody CreateAWSOnboardingJSONBody @@ -5990,22 +5761,28 @@ type ProvisionOnboardingConfigurationJSONRequestBody = OnboardingAWSProvision type NotifyOnboardingJSONRequestBody = OnboardingAWSNotification // CreatePolicyJSONRequestBody defines body for CreatePolicy for application/json ContentType. -type CreatePolicyJSONRequestBody = PlatformCreateOrUpdatePolicy +type CreatePolicyJSONRequestBody = PolicyCreate // UpdatePolicyJSONRequestBody defines body for UpdatePolicy for application/json ContentType. -type UpdatePolicyJSONRequestBody = PlatformCreateOrUpdatePolicy +type UpdatePolicyJSONRequestBody = PolicyUpdate + +// CreatePolicyGroupJSONRequestBody defines body for CreatePolicyGroup for application/json ContentType. +type CreatePolicyGroupJSONRequestBody = PolicyGroupCreate + +// UpdatePolicyGroupJSONRequestBody defines body for UpdatePolicyGroup for application/json ContentType. +type UpdatePolicyGroupJSONRequestBody = PolicyGroupUpdate -// ExecuteAdHocQueryTeamJSONRequestBody defines body for ExecuteAdHocQueryTeam for application/json ContentType. -type ExecuteAdHocQueryTeamJSONRequestBody ExecuteAdHocQueryTeamJSONBody +// ExecuteAdHocQueryJSONRequestBody defines body for ExecuteAdHocQuery for application/json ContentType. +type ExecuteAdHocQueryJSONRequestBody ExecuteAdHocQueryJSONBody -// SaveQueryTeamJSONRequestBody defines body for SaveQueryTeam for application/json ContentType. -type SaveQueryTeamJSONRequestBody = QueryCreate +// SaveQueryJSONRequestBody defines body for SaveQuery for application/json ContentType. +type SaveQueryJSONRequestBody = QueryCreate -// UpdateQueryTeamJSONRequestBody defines body for UpdateQueryTeam for application/json ContentType. -type UpdateQueryTeamJSONRequestBody = QueryUpdate +// UpdateQueryJSONRequestBody defines body for UpdateQuery for application/json ContentType. +type UpdateQueryJSONRequestBody = QueryUpdate -// QuerySaveFilterTeamJSONRequestBody defines body for QuerySaveFilterTeam for application/json ContentType. -type QuerySaveFilterTeamJSONRequestBody = FilterCreate +// QuerySaveFilterJSONRequestBody defines body for QuerySaveFilter for application/json ContentType. +type QuerySaveFilterJSONRequestBody = FilterCreate // CreateRBACPermissionJSONRequestBody defines body for CreateRBACPermission for application/json ContentType. type CreateRBACPermissionJSONRequestBody = RBACPermissionCreate @@ -6031,6 +5808,15 @@ type UpdateReportTemplateJSONRequestBody = ReportTemplateCreateOrUpdate // UpdateReportJSONRequestBody defines body for UpdateReport for application/json ContentType. type UpdateReportJSONRequestBody = ReportUpdate +// UpdateSettingsJSONRequestBody defines body for UpdateSettings for application/json ContentType. +type UpdateSettingsJSONRequestBody = PlatformSettingsUpdate + +// UpdateDataSettingsJSONRequestBody defines body for UpdateDataSettings for application/json ContentType. +type UpdateDataSettingsJSONRequestBody = PlatformDataSettingsUpdate + +// CreateSlackConnectionJSONRequestBody defines body for CreateSlackConnection for application/json ContentType. +type CreateSlackConnectionJSONRequestBody = SlackConnectionCreate + // CreateSyncDestinationTestConnectionJSONRequestBody defines body for CreateSyncDestinationTestConnection for application/json ContentType. type CreateSyncDestinationTestConnectionJSONRequestBody = SyncDestinationTestConnectionCreate @@ -6070,11 +5856,20 @@ type UpdateSyncRunJSONRequestBody UpdateSyncRunJSONBody // CreateSyncRunProgressJSONRequestBody defines body for CreateSyncRunProgress for application/json ContentType. type CreateSyncRunProgressJSONRequestBody CreateSyncRunProgressJSONBody -// TableSaveFilterTeamJSONRequestBody defines body for TableSaveFilterTeam for application/json ContentType. -type TableSaveFilterTeamJSONRequestBody = FilterCreate +// TablesDataActionJSONRequestBody defines body for TablesDataAction for application/json ContentType. +type TablesDataActionJSONRequestBody = TableDataAction + +// TableSaveFilterJSONRequestBody defines body for TableSaveFilter for application/json ContentType. +type TableSaveFilterJSONRequestBody = FilterCreate -// UploadImageJSONRequestBody defines body for UploadImage for application/json ContentType. -type UploadImageJSONRequestBody UploadImageJSONBody +// UpdateSyncTestConnectionForSyncDestinationTeamJSONRequestBody defines body for UpdateSyncTestConnectionForSyncDestinationTeam for application/json ContentType. +type UpdateSyncTestConnectionForSyncDestinationTeamJSONRequestBody UpdateSyncTestConnectionForSyncDestinationTeamJSONBody + +// UpdateSyncTestConnectionForSyncSourceTeamJSONRequestBody defines body for UpdateSyncTestConnectionForSyncSourceTeam for application/json ContentType. +type UpdateSyncTestConnectionForSyncSourceTeamJSONRequestBody UpdateSyncTestConnectionForSyncSourceTeamJSONBody + +// CreateSyncRunProgressTeamJSONRequestBody defines body for CreateSyncRunProgressTeam for application/json ContentType. +type CreateSyncRunProgressTeamJSONRequestBody CreateSyncRunProgressTeamJSONBody // UpdateCurrentUserJSONRequestBody defines body for UpdateCurrentUser for application/json ContentType. type UpdateCurrentUserJSONRequestBody UpdateCurrentUserJSONBody @@ -6082,11 +5877,11 @@ type UpdateCurrentUserJSONRequestBody UpdateCurrentUserJSONBody // SendAnonymousEventJSONRequestBody defines body for SendAnonymousEvent for application/json ContentType. type SendAnonymousEventJSONRequestBody SendAnonymousEventJSONBody -// AuthenticateLocalUserJSONRequestBody defines body for AuthenticateLocalUser for application/json ContentType. -type AuthenticateLocalUserJSONRequestBody AuthenticateLocalUserJSONBody +// AuthenticateUserJSONRequestBody defines body for AuthenticateUser for application/json ContentType. +type AuthenticateUserJSONRequestBody AuthenticateUserJSONBody -// ChangeLocalUserPasswordJSONRequestBody defines body for ChangeLocalUserPassword for application/json ContentType. -type ChangeLocalUserPasswordJSONRequestBody ChangeLocalUserPasswordJSONBody +// ChangeUserPasswordJSONRequestBody defines body for ChangeUserPassword for application/json ContentType. +type ChangeUserPasswordJSONRequestBody ChangeUserPasswordJSONBody // UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType. type UpdateCustomerJSONRequestBody UpdateCustomerJSONBody @@ -6097,12 +5892,15 @@ type SendUserEventJSONRequestBody SendUserEventJSONBody // LoginUserJSONRequestBody defines body for LoginUser for application/json ContentType. type LoginUserJSONRequestBody LoginUserJSONBody -// ResetLocalUserPasswordJSONRequestBody defines body for ResetLocalUserPassword for application/json ContentType. -type ResetLocalUserPasswordJSONRequestBody ResetLocalUserPasswordJSONBody - // UserTOTPVerifyJSONRequestBody defines body for UserTOTPVerify for application/json ContentType. type UserTOTPVerifyJSONRequestBody UserTOTPVerifyJSONBody +// AddUserJSONRequestBody defines body for AddUser for application/json ContentType. +type AddUserJSONRequestBody AddUserJSONBody + +// UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType. +type UpdateUserJSONRequestBody UpdateUserJSONBody + // CreateV2SyncDestinationTestConnectionJSONRequestBody defines body for CreateV2SyncDestinationTestConnection for application/json ContentType. type CreateV2SyncDestinationTestConnectionJSONRequestBody = CreateSyncDestinationTestConnectionV2 @@ -6121,6 +5919,155 @@ type CreateV2SyncIntegrationJSONRequestBody = SyncIntegrationCreateV2 // UpdateV2SyncIntegrationJSONRequestBody defines body for UpdateV2SyncIntegration for application/json ContentType. type UpdateV2SyncIntegrationJSONRequestBody = SyncIntegrationUpdateV2 +// AsStartedNotification returns the union data inside the OnboardingAWSCURNotification as a StartedNotification +func (t OnboardingAWSCURNotification) AsStartedNotification() (StartedNotification, error) { + var body StartedNotification + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromStartedNotification overwrites any union data inside the OnboardingAWSCURNotification as the provided StartedNotification +func (t *OnboardingAWSCURNotification) FromStartedNotification(v StartedNotification) error { + v.Status = "started" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeStartedNotification performs a merge with any union data inside the OnboardingAWSCURNotification, using the provided StartedNotification +func (t *OnboardingAWSCURNotification) MergeStartedNotification(v StartedNotification) error { + v.Status = "started" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsRevokedNotification returns the union data inside the OnboardingAWSCURNotification as a RevokedNotification +func (t OnboardingAWSCURNotification) AsRevokedNotification() (RevokedNotification, error) { + var body RevokedNotification + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromRevokedNotification overwrites any union data inside the OnboardingAWSCURNotification as the provided RevokedNotification +func (t *OnboardingAWSCURNotification) FromRevokedNotification(v RevokedNotification) error { + v.Status = "revoked" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeRevokedNotification performs a merge with any union data inside the OnboardingAWSCURNotification, using the provided RevokedNotification +func (t *OnboardingAWSCURNotification) MergeRevokedNotification(v RevokedNotification) error { + v.Status = "revoked" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsFailedNotification returns the union data inside the OnboardingAWSCURNotification as a FailedNotification +func (t OnboardingAWSCURNotification) AsFailedNotification() (FailedNotification, error) { + var body FailedNotification + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromFailedNotification overwrites any union data inside the OnboardingAWSCURNotification as the provided FailedNotification +func (t *OnboardingAWSCURNotification) FromFailedNotification(v FailedNotification) error { + v.Status = "failed" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeFailedNotification performs a merge with any union data inside the OnboardingAWSCURNotification, using the provided FailedNotification +func (t *OnboardingAWSCURNotification) MergeFailedNotification(v FailedNotification) error { + v.Status = "failed" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsDeployedCURNotification returns the union data inside the OnboardingAWSCURNotification as a DeployedCURNotification +func (t OnboardingAWSCURNotification) AsDeployedCURNotification() (DeployedCURNotification, error) { + var body DeployedCURNotification + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromDeployedCURNotification overwrites any union data inside the OnboardingAWSCURNotification as the provided DeployedCURNotification +func (t *OnboardingAWSCURNotification) FromDeployedCURNotification(v DeployedCURNotification) error { + v.Status = "deployed_cur" + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeDeployedCURNotification performs a merge with any union data inside the OnboardingAWSCURNotification, using the provided DeployedCURNotification +func (t *OnboardingAWSCURNotification) MergeDeployedCURNotification(v DeployedCURNotification) error { + v.Status = "deployed_cur" + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t OnboardingAWSCURNotification) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"status"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t OnboardingAWSCURNotification) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "deployed_cur": + return t.AsDeployedCURNotification() + case "failed": + return t.AsFailedNotification() + case "revoked": + return t.AsRevokedNotification() + case "started": + return t.AsStartedNotification() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t OnboardingAWSCURNotification) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *OnboardingAWSCURNotification) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsStartedNotification returns the union data inside the OnboardingAWSNotification as a StartedNotification func (t OnboardingAWSNotification) AsStartedNotification() (StartedNotification, error) { var body StartedNotification @@ -6409,838 +6356,672 @@ type ClientInterface interface { // Index request Index(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListAuditLogs request - ListAuditLogs(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAuditLog request - GetAuditLog(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // HealthCheck request - HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // HealthCheckHead request - HealthCheckHead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AssetViewGetStatus request - AssetViewGetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AssetViewTrigger request - AssetViewTrigger(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AssetViewListLogs request - AssetViewListLogs(ctx context.Context, params *AssetViewListLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageGetSAML request - ManageGetSAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageUpdateSAMLWithBody request with any body - ManageUpdateSAMLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ManageUpdateSAML(ctx context.Context, body ManageUpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageGetPlatformRegistry request - ManageGetPlatformRegistry(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageRegisterPlatformWithBody request with any body - ManageRegisterPlatformWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ManageRegisterPlatform(ctx context.Context, body ManageRegisterPlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageRegisterPlatformWithOfflineLicenseWithBody request with any body - ManageRegisterPlatformWithOfflineLicenseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ManageRegisterPlatformWithOfflineLicense(ctx context.Context, body ManageRegisterPlatformWithOfflineLicenseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSettings request - GetSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdateSettingsWithBody request with any body - UpdateSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateSettings(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageListAllTeams request - ManageListAllTeams(ctx context.Context, params *ManageListAllTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageDeleteTeam request - ManageDeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageGetTeam request - ManageGetTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageRemoveTeamMemberWithBody request with any body - ManageRemoveTeamMemberWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ManageRemoveTeamMember(ctx context.Context, teamName TeamName, body ManageRemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageListTeamMembers request - ManageListTeamMembers(ctx context.Context, teamName TeamName, params *ManageListTeamMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageAddTeamMemberWithBody request with any body - ManageAddTeamMemberWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ManageAddTeamMember(ctx context.Context, teamName TeamName, body ManageAddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListLocalUsers request - ListLocalUsers(ctx context.Context, params *ListLocalUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddLocalUserWithBody request with any body - AddLocalUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - AddLocalUser(ctx context.Context, body AddLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteLocalUser request - DeleteLocalUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetLocalUser request - GetLocalUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdateLocalUserWithBody request with any body - UpdateLocalUserWithBody(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateLocalUser(ctx context.Context, userID UserID, body UpdateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateLocalUserResetToken request - CreateLocalUserResetToken(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManageUserTOTPDelete request - ManageUserTOTPDelete(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetOpenAPIJSON request - GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPlatformInfo request - GetPlatformInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListPlatformVersions request - ListPlatformVersions(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListPlugins request - ListPlugins(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreatePluginWithBody request with any body - CreatePluginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreatePlugin(ctx context.Context, body CreatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeletePluginByTeamAndPluginName request - DeletePluginByTeamAndPluginName(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPlugin request - GetPlugin(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdatePluginWithBody request with any body - UpdatePluginWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdatePlugin(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body UpdatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListPluginVersions request - ListPluginVersions(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPluginVersion request - GetPluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdatePluginVersionWithBody request with any body - UpdatePluginVersionWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdatePluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UpdatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreatePluginVersionWithBody request with any body - CreatePluginVersionWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreatePluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DownloadPluginAsset request - DownloadPluginAsset(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UploadPluginAsset request - UploadPluginAsset(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeletePluginVersionDocsWithBody request with any body - DeletePluginVersionDocsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DeletePluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListPluginVersionDocs request - ListPluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionDocsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ReplacePluginVersionDocsWithBody request with any body - ReplacePluginVersionDocsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ReplacePluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body ReplacePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreatePluginVersionDocsWithBody request with any body - CreatePluginVersionDocsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreatePluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeletePluginVersionTablesWithBody request with any body - DeletePluginVersionTablesWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - DeletePluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListPluginVersionTables request - ListPluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreatePluginVersionTablesWithBody request with any body - CreatePluginVersionTablesWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreatePluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPluginVersionTable request - GetPluginVersionTable(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RemovePluginUIAssets request - RemovePluginUIAssets(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UploadPluginUIAssetsWithBody request with any body - UploadPluginUIAssetsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UploadPluginUIAssets(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FinalizePluginUIAssetUploadWithBody request with any body - FinalizePluginUIAssetUploadWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - FinalizePluginUIAssetUpload(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AuthRegistryRequest request - AuthRegistryRequest(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListTeams request - ListTeams(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateTeamWithBody request with any body - CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteTeam request - DeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetTeamByName request - GetTeamByName(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UpdateTeamWithBody request with any body - UpdateTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateTeam(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListAllAlerts request - ListAllAlerts(ctx context.Context, teamName TeamName, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListAllAlerts(ctx context.Context, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // TestUnsavedAlertWithBody request with any body - TestUnsavedAlertWithBody(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - TestUnsavedAlert(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListTeamAPIKeys request - ListTeamAPIKeys(ctx context.Context, teamName TeamName, params *ListTeamAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateTeamAPIKeyWithBody request with any body - CreateTeamAPIKeyWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreateTeamAPIKey(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + TestUnsavedAlertWithBody(ctx context.Context, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteTeamAPIKey request - DeleteTeamAPIKey(ctx context.Context, teamName TeamName, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) + TestUnsavedAlert(ctx context.Context, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListConnectors request - ListConnectors(ctx context.Context, teamName TeamName, params *ListConnectorsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListAPIKeys request + ListAPIKeys(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateConnectorWithBody request with any body - CreateConnectorWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateAPIKeyWithBody request with any body + CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateConnector(ctx context.Context, teamName TeamName, body CreateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetConnector request - GetConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteAPIKey request + DeleteAPIKey(ctx context.Context, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateConnectorWithBody request with any body - UpdateConnectorWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, body UpdateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RevokeConnector request - RevokeConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetConnectorAuthStatusAWS request - GetConnectorAuthStatusAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AuthenticateConnectorFinishAWSWithBody request with any body - AuthenticateConnectorFinishAWSWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - AuthenticateConnectorFinishAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AuthenticateConnectorAWSWithBody request with any body - AuthenticateConnectorAWSWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListAuditLogs request + ListAuditLogs(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - AuthenticateConnectorAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetAuditLog request + GetAuditLog(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetConnectorAuthStatusGCP request - GetConnectorAuthStatusGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetSAML request + GetSAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // AuthenticateConnectorGCPWithBody request with any body - AuthenticateConnectorGCPWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateSAMLWithBody request with any body + UpdateSAMLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - AuthenticateConnectorGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorGCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSAML(ctx context.Context, body UpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // AuthenticateConnectorFinishGCP request - AuthenticateConnectorFinishGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteSAMLRolloverCertificateWithBody request with any body + DeleteSAMLRolloverCertificateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // AuthenticateConnectorFinishOAuthWithBody request with any body - AuthenticateConnectorFinishOAuthWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteSAMLRolloverCertificate(ctx context.Context, body DeleteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - AuthenticateConnectorFinishOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateSAMLRolloverCertificate request + CreateSAMLRolloverCertificate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // AuthenticateConnectorOAuthWithBody request with any body - AuthenticateConnectorOAuthWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PromoteSAMLRolloverCertificateWithBody request with any body + PromoteSAMLRolloverCertificateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - AuthenticateConnectorOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PromoteSAMLRolloverCertificate(ctx context.Context, body PromoteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateConversationWithBody request with any body - CreateConversationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateConversationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateConversation(ctx context.Context, teamName TeamName, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateConversation(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetConversation request - GetConversation(ctx context.Context, teamName TeamName, conversationID ConversationID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetConversation(ctx context.Context, conversationID ConversationID, reqEditors ...RequestEditorFn) (*http.Response, error) // SendMessageWithBody request with any body - SendMessageWithBody(ctx context.Context, teamName TeamName, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + SendMessageWithBody(ctx context.Context, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - SendMessage(ctx context.Context, teamName TeamName, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + SendMessage(ctx context.Context, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAllCustomColumns request - ListAllCustomColumns(ctx context.Context, teamName TeamName, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListAllCustomColumns(ctx context.Context, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // SaveCustomColumnWithBody request with any body - SaveCustomColumnWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + SaveCustomColumnWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - SaveCustomColumn(ctx context.Context, teamName TeamName, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + SaveCustomColumn(ctx context.Context, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteCustomColumn request - DeleteCustomColumn(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteCustomColumn(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomColumn request - GetCustomColumn(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetCustomColumn(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCustomColumnWithBody request with any body - UpdateCustomColumnWithBody(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateCustomColumnWithBody(ctx context.Context, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateCustomColumn(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateCustomColumn(ctx context.Context, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // PutCustomColumnDataWithBody request with any body - PutCustomColumnDataWithBody(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListFilters request + ListFilters(ctx context.Context, params *ListFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - PutCustomColumnData(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListFilterTags request + ListFilterTags(ctx context.Context, params *ListFilterTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // PutCustomColumnValuesWithBody request with any body - PutCustomColumnValuesWithBody(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteFilter request + DeleteFilter(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) - PutCustomColumnValues(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetFilterByID request + GetFilterByID(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListFiltersTeam request - ListFiltersTeam(ctx context.Context, teamName TeamName, params *ListFiltersTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdateFilterWithBody request with any body + UpdateFilterWithBody(ctx context.Context, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListFilterTagsTeam request - ListFilterTagsTeam(ctx context.Context, teamName TeamName, params *ListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateFilter(ctx context.Context, filterID FilterID, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteFilterTeam request - DeleteFilterTeam(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) + // HealthCheck request + HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetFilterByIDTeam request - GetFilterByIDTeam(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) + // HealthCheckHead request + HealthCheckHead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateFilterTeamWithBody request with any body - UpdateFilterTeamWithBody(ctx context.Context, teamName TeamName, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListPlatformInsights request + ListPlatformInsights(ctx context.Context, params *ListPlatformInsightsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateFilterTeam(ctx context.Context, teamName TeamName, filterID FilterID, body UpdateFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPlatformAssetInsights request + GetPlatformAssetInsights(ctx context.Context, assetID AssetID, params *GetPlatformAssetInsightsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // CreateTeamImagesWithBody request with any body - CreateTeamImagesWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPlatformInsightColumnDistinctValues request + GetPlatformInsightColumnDistinctValues(ctx context.Context, insightColumnName InsightColumnName, params *GetPlatformInsightColumnDistinctValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateTeamImages(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PlatformListInsightFilters request + PlatformListInsightFilters(ctx context.Context, params *PlatformListInsightFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteTeamInvitationWithBody request with any body - DeleteTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PlatformCreateInsightFilterWithBody request with any body + PlatformCreateInsightFilterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - DeleteTeamInvitation(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PlatformCreateInsightFilter(ctx context.Context, body PlatformCreateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListTeamInvitations request - ListTeamInvitations(ctx context.Context, teamName TeamName, params *ListTeamInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // PlatformDeleteInsightFilter request + PlatformDeleteInsightFilter(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*http.Response, error) - // AcceptTeamInvitationWithBody request with any body - AcceptTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // PlatformGetInsightFilterByID request + PlatformGetInsightFilterByID(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*http.Response, error) - AcceptTeamInvitation(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // PlatformUpdateInsightFilterWithBody request with any body + PlatformUpdateInsightFilterWithBody(ctx context.Context, insightFilterID InsightFilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // RemoveTeamMembershipWithBody request with any body - RemoveTeamMembershipWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + PlatformUpdateInsightFilter(ctx context.Context, insightFilterID InsightFilterID, body PlatformUpdateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - RemoveTeamMembership(ctx context.Context, teamName TeamName, body RemoveTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPlatformInsight request + GetPlatformInsight(ctx context.Context, insightID InsightID, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetTeamMemberships request - GetTeamMemberships(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPlatformInsightAssets request + GetPlatformInsightAssets(ctx context.Context, insightID InsightID, params *GetPlatformInsightAssetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteTeamMembership request - DeleteTeamMembership(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListNotifications request + ListNotifications(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteNotificationDestination request - DeleteNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNotificationDestination request - GetNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateNotificationDestinationWithBody request with any body - UpdateNotificationDestinationWithBody(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateNotificationDestinationWithBody(ctx context.Context, notificationDestinationId NotificationDestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNotificationDestinationAlerts request - GetNotificationDestinationAlerts(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetNotificationDestinationAlerts(ctx context.Context, notificationDestinationId NotificationDestinationId, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // TestNotificationDestination request - TestNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*http.Response, error) + TestNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAllNotificationDestinations request - ListAllNotificationDestinations(ctx context.Context, teamName TeamName, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListAllNotificationDestinations(ctx context.Context, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateNotificationDestinationWithBody request with any body - CreateNotificationDestinationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateNotificationDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateNotificationDestination(ctx context.Context, teamName TeamName, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateNotificationDestination(ctx context.Context, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // TestUnsavedNotificationDestinationWithBody request with any body - TestUnsavedNotificationDestinationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + TestUnsavedNotificationDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TestUnsavedNotificationDestination(ctx context.Context, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAWSCUROnboarding request + CreateAWSCUROnboarding(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAWSCUROnboarding request + GetAWSCUROnboarding(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NotifyAWSCUROnboardingWithBody request with any body + NotifyAWSCUROnboardingWithBody(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + NotifyAWSCUROnboarding(ctx context.Context, onboardingID OnboardingID, body NotifyAWSCUROnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - TestUnsavedNotificationDestination(ctx context.Context, teamName TeamName, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // VerifyAWSCUROnboarding request + VerifyAWSCUROnboarding(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateAWSOnboardingWithBody request with any body - CreateAWSOnboardingWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateAWSOnboardingWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateAWSOnboarding(ctx context.Context, teamName TeamName, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateAWSOnboarding(ctx context.Context, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAWSOnboarding request - GetAWSOnboarding(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetAWSOnboarding(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAWSAccountsInRoot request - GetAWSAccountsInRoot(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetAWSAccountsInRoot(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) // ProvisionOnboardingConfigurationWithBody request with any body - ProvisionOnboardingConfigurationWithBody(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + ProvisionOnboardingConfigurationWithBody(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - ProvisionOnboardingConfiguration(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + ProvisionOnboardingConfiguration(ctx context.Context, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAWSAccountsInParent request - GetAWSAccountsInParent(ctx context.Context, teamName TeamName, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetAWSAccountsInParent(ctx context.Context, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*http.Response, error) // NotifyOnboardingWithBody request with any body - NotifyOnboardingWithBody(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + NotifyOnboardingWithBody(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - NotifyOnboarding(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + NotifyOnboarding(ctx context.Context, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeletePluginsByTeam request - DeletePluginsByTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOpenAPIJSON request + GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListPluginsByTeam request - ListPluginsByTeam(ctx context.Context, teamName TeamName, params *ListPluginsByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPlatformInfo request + GetPlatformInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // DownloadPluginAssetByTeam request - DownloadPluginAssetByTeam(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListPlatformVersions request + ListPlatformVersions(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListPlugins request + ListPlugins(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPlugin request + GetPlugin(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListPluginVersions request + ListPluginVersions(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPluginVersion request + GetPluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DownloadPluginAsset request + DownloadPluginAsset(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListPluginVersionTables request + ListPluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPluginVersionTable request + GetPluginVersionTable(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListPolicies request - ListPolicies(ctx context.Context, teamName TeamName, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListPolicies(ctx context.Context, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreatePolicyWithBody request with any body - CreatePolicyWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreatePolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreatePolicy(ctx context.Context, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - CreatePolicy(ctx context.Context, teamName TeamName, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPolicyMetrics request + GetPolicyMetrics(ctx context.Context, params *GetPolicyMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListAllFrameworks request - ListAllFrameworks(ctx context.Context, teamName TeamName, params *ListAllFrameworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetViolationsByDomain request + GetViolationsByDomain(ctx context.Context, params *GetViolationsByDomainParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetViolationsHistory request + GetViolationsHistory(ctx context.Context, params *GetViolationsHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeletePolicy request - DeletePolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeletePolicy(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPolicy request - GetPolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetPolicy(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdatePolicyWithBody request with any body - UpdatePolicyWithBody(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdatePolicyWithBody(ctx context.Context, policyID PolicyID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdatePolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdatePolicy(ctx context.Context, policyID PolicyID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListPolicyFrameworks request - ListPolicyFrameworks(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyFrameworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // TogglePolicy request + TogglePolicy(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListPolicyRules request - ListPolicyRules(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPolicyViolations request + GetPolicyViolations(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListPolicyRuleDetails request - ListPolicyRuleDetails(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, ruleId openapi_types.UUID, params *ListPolicyRuleDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetPolicyViolationsHistory request + GetPolicyViolationsHistory(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TogglePolicy request - TogglePolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *TogglePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListPolicyGroups request + ListPolicyGroups(ctx context.Context, params *ListPolicyGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetPolicyViolationsHistory request - GetPolicyViolationsHistory(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreatePolicyGroupWithBody request with any body + CreatePolicyGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreatePolicyGroup(ctx context.Context, body CreatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeletePolicyGroup request + DeletePolicyGroup(ctx context.Context, policyGroupID PolicyGroupID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListPoliciesInGroup request + ListPoliciesInGroup(ctx context.Context, policyGroupID PolicyGroupID, params *ListPoliciesInGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListAllQueriesTeam request - ListAllQueriesTeam(ctx context.Context, teamName TeamName, params *ListAllQueriesTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // UpdatePolicyGroupWithBody request with any body + UpdatePolicyGroupWithBody(ctx context.Context, policyGroupID PolicyGroupID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // ExecuteAdHocQueryTeamWithBody request with any body - ExecuteAdHocQueryTeamWithBody(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdatePolicyGroup(ctx context.Context, policyGroupID PolicyGroupID, body UpdatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - ExecuteAdHocQueryTeam(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, body ExecuteAdHocQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListAllQueries request + ListAllQueries(ctx context.Context, params *ListAllQueriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // SaveQueryTeamWithBody request with any body - SaveQueryTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ExecuteAdHocQueryWithBody request with any body + ExecuteAdHocQueryWithBody(ctx context.Context, params *ExecuteAdHocQueryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - SaveQueryTeam(ctx context.Context, teamName TeamName, body SaveQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + ExecuteAdHocQuery(ctx context.Context, params *ExecuteAdHocQueryParams, body ExecuteAdHocQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListQueryTagsTeam request - ListQueryTagsTeam(ctx context.Context, teamName TeamName, params *ListQueryTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // SaveQueryWithBody request with any body + SaveQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // DeleteSavedQueryTeam request - DeleteSavedQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) + SaveQuery(ctx context.Context, body SaveQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetSavedQueryTeam request - GetSavedQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListQueryTags request + ListQueryTags(ctx context.Context, params *ListQueryTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UpdateQueryTeamWithBody request with any body - UpdateQueryTeamWithBody(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteSavedQuery request + DeleteSavedQuery(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, body UpdateQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetSavedQuery request + GetSavedQuery(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateQueryWithBody request with any body + UpdateQueryWithBody(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateQuery(ctx context.Context, queryID QueryID, body UpdateQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteAlert request - DeleteAlert(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteAlert(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ExecuteSavedQueryTeam request - ExecuteSavedQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, params *ExecuteSavedQueryTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ExecuteSavedQuery request + ExecuteSavedQuery(ctx context.Context, queryID QueryID, params *ExecuteSavedQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // QueryListFiltersTeam request - QueryListFiltersTeam(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFiltersTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // QueryListFilters request + QueryListFilters(ctx context.Context, queryID QueryID, params *QueryListFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // QuerySaveFilterTeamWithBody request with any body - QuerySaveFilterTeamWithBody(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // QuerySaveFilterWithBody request with any body + QuerySaveFilterWithBody(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - QuerySaveFilterTeam(ctx context.Context, teamName TeamName, queryID QueryID, body QuerySaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + QuerySaveFilter(ctx context.Context, queryID QueryID, body QuerySaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // QueryListFilterTagsTeam request - QueryListFilterTagsTeam(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // QueryListFilterTags request + QueryListFilterTags(ctx context.Context, queryID QueryID, params *QueryListFilterTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAllRBACPermissions request - ListAllRBACPermissions(ctx context.Context, teamName TeamName, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListAllRBACPermissions(ctx context.Context, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateRBACPermissionWithBody request with any body - CreateRBACPermissionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateRBACPermissionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateRBACPermission(ctx context.Context, teamName TeamName, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateRBACPermission(ctx context.Context, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteRBACPermission request - DeleteRBACPermission(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteRBACPermission(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRBACPermission request - GetRBACPermission(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetRBACPermission(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRBACPermissionWithBody request with any body - UpdateRBACPermissionWithBody(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateRBACPermissionWithBody(ctx context.Context, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateRBACPermission(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateRBACPermission(ctx context.Context, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAllRBACRoles request - ListAllRBACRoles(ctx context.Context, teamName TeamName, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListAllRBACRoles(ctx context.Context, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateRBACRoleWithBody request with any body - CreateRBACRoleWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateRBACRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateRBACRole(ctx context.Context, teamName TeamName, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateRBACRole(ctx context.Context, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteRBACRole request - DeleteRBACRole(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteRBACRole(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRBACRole request - GetRBACRole(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetRBACRole(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRBACRoleWithBody request with any body - UpdateRBACRoleWithBody(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateRBACRoleWithBody(ctx context.Context, roleID RoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateRBACRole(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateRBACRole(ctx context.Context, roleID RoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListReports request - ListReports(ctx context.Context, teamName TeamName, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListReports(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateReportWithBody request with any body - CreateReportWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateReport(ctx context.Context, teamName TeamName, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateReport(ctx context.Context, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListReportTemplates request - ListReportTemplates(ctx context.Context, teamName TeamName, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListReportTemplates(ctx context.Context, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateReportTemplateWithBody request with any body - CreateReportTemplateWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateReportTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateReportTemplate(ctx context.Context, teamName TeamName, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateReportTemplate(ctx context.Context, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteReportTemplate request - DeleteReportTemplate(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteReportTemplate(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetReportTemplate request - GetReportTemplate(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetReportTemplate(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateReportTemplateWithBody request with any body - UpdateReportTemplateWithBody(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateReportTemplateWithBody(ctx context.Context, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateReportTemplate(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateReportTemplate(ctx context.Context, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteReport request - DeleteReport(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteReport(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetReport request - GetReport(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetReport(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateReportWithBody request with any body - UpdateReportWithBody(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateReportWithBody(ctx context.Context, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateReport(ctx context.Context, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSettings request + GetSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSettingsWithBody request with any body + UpdateSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSettings(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDataSettings request + GetDataSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateDataSettingsWithBody request with any body + UpdateDataSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateReport(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateDataSettings(ctx context.Context, body UpdateDataSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSlackConnectionWithBody request with any body + CreateSlackConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSlackConnection(ctx context.Context, body CreateSlackConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListSlackChannels request + ListSlackChannels(ctx context.Context, id openapi_types.UUID, params *ListSlackChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSyncDestinationTestConnectionWithBody request with any body - CreateSyncDestinationTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncDestinationTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateSyncDestinationTestConnection(ctx context.Context, teamName TeamName, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncDestinationTestConnection(ctx context.Context, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncDestinationTestConnection request - GetSyncDestinationTestConnection(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncDestinationTestConnection(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSyncTestConnectionForSyncDestinationWithBody request with any body - UpdateSyncTestConnectionForSyncDestinationWithBody(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateSyncTestConnectionForSyncDestination(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncTestConnectionForSyncDestinationWithBody(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetSyncDestinationTestConnectionLogs request - GetSyncDestinationTestConnectionLogs(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncTestConnectionForSyncDestination(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncDestinationTestConnectionLogsLive request - GetSyncDestinationTestConnectionLogsLive(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncDestinationTestConnectionLogsLive(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncDestinationTestConnectionLogsQuery request - GetSyncDestinationTestConnectionLogsQuery(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncDestinationTestConnectionLogsQuery(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PromoteSyncDestinationTestConnectionWithBody request with any body - PromoteSyncDestinationTestConnectionWithBody(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + PromoteSyncDestinationTestConnectionWithBody(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - PromoteSyncDestinationTestConnection(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PromoteSyncDestinationTestConnection(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncDestinations request - ListSyncDestinations(ctx context.Context, teamName TeamName, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncDestinations(ctx context.Context, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSyncDestination request - DeleteSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncDestination request - GetSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSyncDestinationWithBody request with any body - UpdateSyncDestinationWithBody(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncDestinationWithBody(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MigrateSyncDestination request - MigrateSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncDestinationSyncs request - ListSyncDestinationSyncs(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncDestinationSyncs(ctx context.Context, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTestConnectionForSyncDestination request - GetTestConnectionForSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetTestConnectionForSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSyncSourceTestConnectionWithBody request with any body - CreateSyncSourceTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncSourceTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateSyncSourceTestConnection(ctx context.Context, teamName TeamName, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncSourceTestConnection(ctx context.Context, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncSourceTestConnection request - GetSyncSourceTestConnection(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncSourceTestConnection(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSyncTestConnectionForSyncSourceWithBody request with any body - UpdateSyncTestConnectionForSyncSourceWithBody(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateSyncTestConnectionForSyncSource(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncTestConnectionForSyncSourceWithBody(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetSyncSourceTestConnectionLogs request - GetSyncSourceTestConnectionLogs(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncTestConnectionForSyncSource(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncSourceTestConnectionLogsLive request - GetSyncSourceTestConnectionLogsLive(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncSourceTestConnectionLogsLive(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncSourceTestConnectionLogsQuery request - GetSyncSourceTestConnectionLogsQuery(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncSourceTestConnectionLogsQuery(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PromoteSyncSourceTestConnectionWithBody request with any body - PromoteSyncSourceTestConnectionWithBody(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + PromoteSyncSourceTestConnectionWithBody(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - PromoteSyncSourceTestConnection(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PromoteSyncSourceTestConnection(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncSources request - ListSyncSources(ctx context.Context, teamName TeamName, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncSources(ctx context.Context, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSyncSource request - DeleteSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteSyncSource(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncSource request - GetSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncSource(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSyncSourceWithBody request with any body - UpdateSyncSourceWithBody(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncSourceWithBody(ctx context.Context, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MigrateSyncSource request - MigrateSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncSource(ctx context.Context, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncSourceSyncs request - ListSyncSourceSyncs(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncSourceSyncs(ctx context.Context, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTestConnectionForSyncSource request - GetTestConnectionForSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetTestConnectionForSyncSource(ctx context.Context, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncTransformers request - ListSyncTransformers(ctx context.Context, teamName TeamName, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncTransformers(ctx context.Context, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSyncTransformer request - DeleteSyncTransformer(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteSyncTransformer(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncTransformer request - GetSyncTransformer(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncTransformer(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSyncTransformerWithBody request with any body - UpdateSyncTransformerWithBody(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncTransformerWithBody(ctx context.Context, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateSyncTransformer(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncTransformer(ctx context.Context, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncTransformerSyncDestinations request - ListSyncTransformerSyncDestinations(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncTransformerSyncDestinations(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncTransformerSyncs request - ListSyncTransformerSyncs(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncTransformerSyncs(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncUpgrades request - ListSyncUpgrades(ctx context.Context, teamName TeamName, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncUpgrades(ctx context.Context, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncs request - ListSyncs(ctx context.Context, teamName TeamName, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncs(ctx context.Context, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSyncWithBody request with any body - CreateSyncWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - CreateSync(ctx context.Context, teamName TeamName, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetTestConnectionConnectorCredentials request - GetTestConnectionConnectorCredentials(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetTestConnectionConnectorIdentity request - GetTestConnectionConnectorIdentity(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSync(ctx context.Context, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSync request - DeleteSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteSync(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSync request - GetSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSync(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSyncWithBody request with any body - UpdateSyncWithBody(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncWithBody(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateSync(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSync(ctx context.Context, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSyncRuns request - ListSyncRuns(ctx context.Context, teamName TeamName, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSyncRuns(ctx context.Context, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSyncRun request - CreateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncRun(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncRun request - GetSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncRun(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSyncRunWithBody request with any body - UpdateSyncRunWithBody(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - UpdateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSyncRunConnectorCredentials request - GetSyncRunConnectorCredentials(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncRunWithBody(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetSyncRunConnectorIdentity request - GetSyncRunConnectorIdentity(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSyncRunLogs request - GetSyncRunLogs(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateSyncRun(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncRunLogsLive request - GetSyncRunLogsLive(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncRunLogsLive(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncRunLogsQuery request - GetSyncRunLogsQuery(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncRunLogsQuery(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSyncRunProgressWithBody request with any body - CreateSyncRunProgressWithBody(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncRunProgressWithBody(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateSyncRunProgress(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncRunProgress(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncRunStats request - GetSyncRunStats(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncRunStats(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSyncRunTables request - GetSyncRunTables(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSyncRunTables(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListTablesTeam request - ListTablesTeam(ctx context.Context, teamName TeamName, params *ListTablesTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListTables request + ListTables(ctx context.Context, params *ListTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // BatchTableSchemasTeam request - BatchTableSchemasTeam(ctx context.Context, teamName TeamName, params *BatchTableSchemasTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetTablesData request + GetTablesData(ctx context.Context, params *GetTablesDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableListColumnsTeam request - TableListColumnsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListColumnsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // TablesDataActionWithBody request with any body + TablesDataActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableColumnListValuesTeam request - TableColumnListValuesTeam(ctx context.Context, teamName TeamName, tableName TableName, columnName ColumnName, params *TableColumnListValuesTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + TablesDataAction(ctx context.Context, body TablesDataActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableListRowsTeam request - TableListRowsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRowsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetTablesRelations request + GetTablesRelations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableRowByIdTeam request - TableRowByIdTeam(ctx context.Context, teamName TeamName, tableName TableName, tableRowId TableRowId, params *TableRowByIdTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // BatchTableSchemas request + BatchTableSchemas(ctx context.Context, params *BatchTableSchemasParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableListFiltersTeam request - TableListFiltersTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFiltersTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // TableListColumns request + TableListColumns(ctx context.Context, tableName TableName, params *TableListColumnsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableSaveFilterTeamWithBody request with any body - TableSaveFilterTeamWithBody(ctx context.Context, teamName TeamName, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // TableColumnListValues request + TableColumnListValues(ctx context.Context, tableName TableName, columnName ColumnName, params *TableColumnListValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - TableSaveFilterTeam(ctx context.Context, teamName TeamName, tableName TableName, body TableSaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // TableListRows request + TableListRows(ctx context.Context, tableName TableName, params *TableListRowsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableListFilterTagsTeam request - TableListFilterTagsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // TableRowById request + TableRowById(ctx context.Context, tableName TableName, tableRowId TableRowId, params *TableRowByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableListRelationsTeam request - TableListRelationsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRelationsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // TableListFilters request + TableListFilters(ctx context.Context, tableName TableName, params *TableListFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // TableSchemaTeam request - TableSchemaTeam(ctx context.Context, teamName TeamName, tableName TableName, reqEditors ...RequestEditorFn) (*http.Response, error) + // TableSaveFilterWithBody request with any body + TableSaveFilterWithBody(ctx context.Context, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetTeamUsageSummary request - GetTeamUsageSummary(ctx context.Context, teamName TeamName, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + TableSaveFilter(ctx context.Context, tableName TableName, body TableSaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetGroupedTeamUsageSummary request - GetGroupedTeamUsageSummary(ctx context.Context, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // TableListFilterTags request + TableListFilterTags(ctx context.Context, tableName TableName, params *TableListFilterTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TableSchema request + TableSchema(ctx context.Context, tableName TableName, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListTeams request + ListTeams(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DownloadPluginAssetByTeam request + DownloadPluginAssetByTeam(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSyncTestConnectionForSyncDestinationTeamWithBody request with any body + UpdateSyncTestConnectionForSyncDestinationTeamWithBody(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSyncTestConnectionForSyncDestinationTeam(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSyncTestConnectionForSyncSourceTeamWithBody request with any body + UpdateSyncTestConnectionForSyncSourceTeamWithBody(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSyncTestConnectionForSyncSourceTeam(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListUsersByTeam request - ListUsersByTeam(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateSyncRunProgressTeamWithBody request with any body + CreateSyncRunProgressTeamWithBody(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UploadImageWithBody request with any body - UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateSyncRunProgressTeam(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - UploadImage(ctx context.Context, body UploadImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetTeamUsageSummary request + GetTeamUsageSummary(ctx context.Context, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetGroupedTeamUsageSummary request + GetGroupedTeamUsageSummary(ctx context.Context, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCurrentUser request GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -7255,15 +7036,15 @@ type ClientInterface interface { SendAnonymousEvent(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // AuthenticateLocalUserWithBody request with any body - AuthenticateLocalUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // AuthenticateUserWithBody request with any body + AuthenticateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - AuthenticateLocalUser(ctx context.Context, body AuthenticateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + AuthenticateUser(ctx context.Context, body AuthenticateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ChangeLocalUserPasswordWithBody request with any body - ChangeLocalUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ChangeUserPasswordWithBody request with any body + ChangeUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - ChangeLocalUserPassword(ctx context.Context, body ChangeLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + ChangeUserPassword(ctx context.Context, body ChangeUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCustomerWithBody request with any body UpdateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -7275,12 +7056,6 @@ type ClientInterface interface { SendUserEvent(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListCurrentUserInvitations request - ListCurrentUserInvitations(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetCurrentLocalUser request - GetCurrentLocalUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // LogoutUser request LogoutUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -7289,17 +7064,6 @@ type ClientInterface interface { LoginUser(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // GetCurrentUserMemberships request - GetCurrentUserMemberships(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ResetLocalUserPasswordWithBody request with any body - ResetLocalUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - ResetLocalUserPassword(ctx context.Context, body ResetLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreateUserToken request - CreateUserToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserTOTPDelete request UserTOTPDelete(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -7311,56 +7075,75 @@ type ClientInterface interface { UserTOTPVerify(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListUsers request + ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddUserWithBody request with any body + AddUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddUser(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteUser request DeleteUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetUser request + GetUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateUserWithBody request with any body + UpdateUserWithBody(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateUser(ctx context.Context, userID UserID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteUserTOTP request + DeleteUserTOTP(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreateV2SyncDestinationTestConnectionWithBody request with any body - CreateV2SyncDestinationTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncDestinationTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateV2SyncDestinationTestConnection(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncDestinationTestConnection(ctx context.Context, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetV2SyncDestinations request - GetV2SyncDestinations(ctx context.Context, teamName TeamName, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetV2SyncDestinations(ctx context.Context, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateV2SyncDestinationWithBody request with any body - CreateV2SyncDestinationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateV2SyncDestination(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncDestination(ctx context.Context, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteV2SyncDestination request - DeleteV2SyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteV2SyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetV2SyncDestination request - GetV2SyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) + GetV2SyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) // PatchV2SyncDestinationWithBody request with any body - PatchV2SyncDestinationWithBody(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + PatchV2SyncDestinationWithBody(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - PatchV2SyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + PatchV2SyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateV2SyncIntegrationTestConnectionWithBody request with any body - CreateV2SyncIntegrationTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncIntegrationTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateV2SyncIntegrationTestConnection(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncIntegrationTestConnection(ctx context.Context, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListV2SyncIntegrations request - ListV2SyncIntegrations(ctx context.Context, teamName TeamName, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListV2SyncIntegrations(ctx context.Context, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateV2SyncIntegrationWithBody request with any body - CreateV2SyncIntegrationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateV2SyncIntegration(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateV2SyncIntegration(ctx context.Context, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteV2SyncIntegration request - DeleteV2SyncIntegration(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteV2SyncIntegration(ctx context.Context, syncName SyncName, params *DeleteV2SyncIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetV2SyncIntegration request - GetV2SyncIntegration(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) + GetV2SyncIntegration(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateV2SyncIntegrationWithBody request with any body - UpdateV2SyncIntegrationWithBody(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateV2SyncIntegrationWithBody(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateV2SyncIntegration(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateV2SyncIntegration(ctx context.Context, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) } func (c *Client) Index(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { @@ -7375,32 +7158,8 @@ func (c *Client) Index(ctx context.Context, reqEditors ...RequestEditorFn) (*htt return c.Client.Do(req) } -func (c *Client) ListAuditLogs(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAuditLogsRequest(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) GetAuditLog(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAuditLogRequest(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) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewHealthCheckRequest(c.Server) +func (c *Client) ListAllAlerts(ctx context.Context, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAllAlertsRequest(c.Server, params) if err != nil { return nil, err } @@ -7411,8 +7170,8 @@ func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) return c.Client.Do(req) } -func (c *Client) HealthCheckHead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewHealthCheckHeadRequest(c.Server) +func (c *Client) TestUnsavedAlertWithBody(ctx context.Context, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestUnsavedAlertRequestWithBody(c.Server, params, contentType, body) if err != nil { return nil, err } @@ -7423,8 +7182,8 @@ func (c *Client) HealthCheckHead(ctx context.Context, reqEditors ...RequestEdito return c.Client.Do(req) } -func (c *Client) AssetViewGetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAssetViewGetStatusRequest(c.Server) +func (c *Client) TestUnsavedAlert(ctx context.Context, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestUnsavedAlertRequest(c.Server, params, body) if err != nil { return nil, err } @@ -7435,8 +7194,8 @@ func (c *Client) AssetViewGetStatus(ctx context.Context, reqEditors ...RequestEd return c.Client.Do(req) } -func (c *Client) AssetViewTrigger(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAssetViewTriggerRequest(c.Server) +func (c *Client) ListAPIKeys(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAPIKeysRequest(c.Server, params) if err != nil { return nil, err } @@ -7447,8 +7206,8 @@ func (c *Client) AssetViewTrigger(ctx context.Context, reqEditors ...RequestEdit return c.Client.Do(req) } -func (c *Client) AssetViewListLogs(ctx context.Context, params *AssetViewListLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAssetViewListLogsRequest(c.Server, params) +func (c *Client) CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAPIKeyRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -7459,8 +7218,8 @@ func (c *Client) AssetViewListLogs(ctx context.Context, params *AssetViewListLog return c.Client.Do(req) } -func (c *Client) ManageGetSAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageGetSAMLRequest(c.Server) +func (c *Client) CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAPIKeyRequest(c.Server, body) if err != nil { return nil, err } @@ -7471,8 +7230,8 @@ func (c *Client) ManageGetSAML(ctx context.Context, reqEditors ...RequestEditorF return c.Client.Do(req) } -func (c *Client) ManageUpdateSAMLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageUpdateSAMLRequestWithBody(c.Server, contentType, body) +func (c *Client) DeleteAPIKey(ctx context.Context, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAPIKeyRequest(c.Server, apiKeyID) if err != nil { return nil, err } @@ -7483,44 +7242,8 @@ func (c *Client) ManageUpdateSAMLWithBody(ctx context.Context, contentType strin return c.Client.Do(req) } -func (c *Client) ManageUpdateSAML(ctx context.Context, body ManageUpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageUpdateSAMLRequest(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) ManageGetPlatformRegistry(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageGetPlatformRegistryRequest(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) ManageRegisterPlatformWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageRegisterPlatformRequestWithBody(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) ManageRegisterPlatform(ctx context.Context, body ManageRegisterPlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageRegisterPlatformRequest(c.Server, body) +func (c *Client) ListAuditLogs(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAuditLogsRequest(c.Server, params) if err != nil { return nil, err } @@ -7531,8 +7254,8 @@ func (c *Client) ManageRegisterPlatform(ctx context.Context, body ManageRegister return c.Client.Do(req) } -func (c *Client) ManageRegisterPlatformWithOfflineLicenseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageRegisterPlatformWithOfflineLicenseRequestWithBody(c.Server, contentType, body) +func (c *Client) GetAuditLog(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAuditLogRequest(c.Server, id) if err != nil { return nil, err } @@ -7543,8 +7266,8 @@ func (c *Client) ManageRegisterPlatformWithOfflineLicenseWithBody(ctx context.Co return c.Client.Do(req) } -func (c *Client) ManageRegisterPlatformWithOfflineLicense(ctx context.Context, body ManageRegisterPlatformWithOfflineLicenseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageRegisterPlatformWithOfflineLicenseRequest(c.Server, body) +func (c *Client) GetSAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSAMLRequest(c.Server) if err != nil { return nil, err } @@ -7555,8 +7278,8 @@ func (c *Client) ManageRegisterPlatformWithOfflineLicense(ctx context.Context, b return c.Client.Do(req) } -func (c *Client) GetSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSettingsRequest(c.Server) +func (c *Client) UpdateSAMLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSAMLRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -7567,8 +7290,8 @@ func (c *Client) GetSettings(ctx context.Context, reqEditors ...RequestEditorFn) return c.Client.Do(req) } -func (c *Client) UpdateSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSettingsRequestWithBody(c.Server, contentType, body) +func (c *Client) UpdateSAML(ctx context.Context, body UpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSAMLRequest(c.Server, body) if err != nil { return nil, err } @@ -7579,8 +7302,8 @@ func (c *Client) UpdateSettingsWithBody(ctx context.Context, contentType string, return c.Client.Do(req) } -func (c *Client) UpdateSettings(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSettingsRequest(c.Server, body) +func (c *Client) DeleteSAMLRolloverCertificateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSAMLRolloverCertificateRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -7591,8 +7314,8 @@ func (c *Client) UpdateSettings(ctx context.Context, body UpdateSettingsJSONRequ return c.Client.Do(req) } -func (c *Client) ManageListAllTeams(ctx context.Context, params *ManageListAllTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageListAllTeamsRequest(c.Server, params) +func (c *Client) DeleteSAMLRolloverCertificate(ctx context.Context, body DeleteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSAMLRolloverCertificateRequest(c.Server, body) if err != nil { return nil, err } @@ -7603,8 +7326,8 @@ func (c *Client) ManageListAllTeams(ctx context.Context, params *ManageListAllTe return c.Client.Do(req) } -func (c *Client) ManageDeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageDeleteTeamRequest(c.Server, teamName) +func (c *Client) CreateSAMLRolloverCertificate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSAMLRolloverCertificateRequest(c.Server) if err != nil { return nil, err } @@ -7615,8 +7338,8 @@ func (c *Client) ManageDeleteTeam(ctx context.Context, teamName TeamName, reqEdi return c.Client.Do(req) } -func (c *Client) ManageGetTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageGetTeamRequest(c.Server, teamName) +func (c *Client) PromoteSAMLRolloverCertificateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPromoteSAMLRolloverCertificateRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -7627,8 +7350,8 @@ func (c *Client) ManageGetTeam(ctx context.Context, teamName TeamName, reqEditor return c.Client.Do(req) } -func (c *Client) ManageRemoveTeamMemberWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageRemoveTeamMemberRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) PromoteSAMLRolloverCertificate(ctx context.Context, body PromoteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPromoteSAMLRolloverCertificateRequest(c.Server, body) if err != nil { return nil, err } @@ -7639,8 +7362,8 @@ func (c *Client) ManageRemoveTeamMemberWithBody(ctx context.Context, teamName Te return c.Client.Do(req) } -func (c *Client) ManageRemoveTeamMember(ctx context.Context, teamName TeamName, body ManageRemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageRemoveTeamMemberRequest(c.Server, teamName, body) +func (c *Client) CreateConversationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateConversationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -7651,8 +7374,8 @@ func (c *Client) ManageRemoveTeamMember(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) ManageListTeamMembers(ctx context.Context, teamName TeamName, params *ManageListTeamMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageListTeamMembersRequest(c.Server, teamName, params) +func (c *Client) CreateConversation(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateConversationRequest(c.Server, body) if err != nil { return nil, err } @@ -7663,8 +7386,8 @@ func (c *Client) ManageListTeamMembers(ctx context.Context, teamName TeamName, p return c.Client.Do(req) } -func (c *Client) ManageAddTeamMemberWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageAddTeamMemberRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) GetConversation(ctx context.Context, conversationID ConversationID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetConversationRequest(c.Server, conversationID) if err != nil { return nil, err } @@ -7675,8 +7398,8 @@ func (c *Client) ManageAddTeamMemberWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) ManageAddTeamMember(ctx context.Context, teamName TeamName, body ManageAddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageAddTeamMemberRequest(c.Server, teamName, body) +func (c *Client) SendMessageWithBody(ctx context.Context, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendMessageRequestWithBody(c.Server, conversationID, contentType, body) if err != nil { return nil, err } @@ -7687,8 +7410,8 @@ func (c *Client) ManageAddTeamMember(ctx context.Context, teamName TeamName, bod return c.Client.Do(req) } -func (c *Client) ListLocalUsers(ctx context.Context, params *ListLocalUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListLocalUsersRequest(c.Server, params) +func (c *Client) SendMessage(ctx context.Context, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendMessageRequest(c.Server, conversationID, body) if err != nil { return nil, err } @@ -7699,8 +7422,8 @@ func (c *Client) ListLocalUsers(ctx context.Context, params *ListLocalUsersParam return c.Client.Do(req) } -func (c *Client) AddLocalUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddLocalUserRequestWithBody(c.Server, contentType, body) +func (c *Client) ListAllCustomColumns(ctx context.Context, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAllCustomColumnsRequest(c.Server, params) if err != nil { return nil, err } @@ -7711,8 +7434,8 @@ func (c *Client) AddLocalUserWithBody(ctx context.Context, contentType string, b return c.Client.Do(req) } -func (c *Client) AddLocalUser(ctx context.Context, body AddLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddLocalUserRequest(c.Server, body) +func (c *Client) SaveCustomColumnWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveCustomColumnRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -7723,8 +7446,8 @@ func (c *Client) AddLocalUser(ctx context.Context, body AddLocalUserJSONRequestB return c.Client.Do(req) } -func (c *Client) DeleteLocalUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteLocalUserRequest(c.Server, userID) +func (c *Client) SaveCustomColumn(ctx context.Context, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveCustomColumnRequest(c.Server, body) if err != nil { return nil, err } @@ -7735,8 +7458,8 @@ func (c *Client) DeleteLocalUser(ctx context.Context, userID UserID, reqEditors return c.Client.Do(req) } -func (c *Client) GetLocalUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetLocalUserRequest(c.Server, userID) +func (c *Client) DeleteCustomColumn(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteCustomColumnRequest(c.Server, customColumnID) if err != nil { return nil, err } @@ -7747,8 +7470,8 @@ func (c *Client) GetLocalUser(ctx context.Context, userID UserID, reqEditors ... return c.Client.Do(req) } -func (c *Client) UpdateLocalUserWithBody(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateLocalUserRequestWithBody(c.Server, userID, contentType, body) +func (c *Client) GetCustomColumn(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCustomColumnRequest(c.Server, customColumnID) if err != nil { return nil, err } @@ -7759,8 +7482,8 @@ func (c *Client) UpdateLocalUserWithBody(ctx context.Context, userID UserID, con return c.Client.Do(req) } -func (c *Client) UpdateLocalUser(ctx context.Context, userID UserID, body UpdateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateLocalUserRequest(c.Server, userID, body) +func (c *Client) UpdateCustomColumnWithBody(ctx context.Context, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomColumnRequestWithBody(c.Server, customColumnID, contentType, body) if err != nil { return nil, err } @@ -7771,8 +7494,8 @@ func (c *Client) UpdateLocalUser(ctx context.Context, userID UserID, body Update return c.Client.Do(req) } -func (c *Client) CreateLocalUserResetToken(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateLocalUserResetTokenRequest(c.Server, userID) +func (c *Client) UpdateCustomColumn(ctx context.Context, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomColumnRequest(c.Server, customColumnID, body) if err != nil { return nil, err } @@ -7783,8 +7506,8 @@ func (c *Client) CreateLocalUserResetToken(ctx context.Context, userID UserID, r return c.Client.Do(req) } -func (c *Client) ManageUserTOTPDelete(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManageUserTOTPDeleteRequest(c.Server, userID) +func (c *Client) ListFilters(ctx context.Context, params *ListFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListFiltersRequest(c.Server, params) if err != nil { return nil, err } @@ -7795,8 +7518,8 @@ func (c *Client) ManageUserTOTPDelete(ctx context.Context, userID UserID, reqEdi return c.Client.Do(req) } -func (c *Client) GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOpenAPIJSONRequest(c.Server) +func (c *Client) ListFilterTags(ctx context.Context, params *ListFilterTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListFilterTagsRequest(c.Server, params) if err != nil { return nil, err } @@ -7807,8 +7530,8 @@ func (c *Client) GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditor return c.Client.Do(req) } -func (c *Client) GetPlatformInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPlatformInfoRequest(c.Server) +func (c *Client) DeleteFilter(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteFilterRequest(c.Server, filterID) if err != nil { return nil, err } @@ -7819,8 +7542,8 @@ func (c *Client) GetPlatformInfo(ctx context.Context, reqEditors ...RequestEdito return c.Client.Do(req) } -func (c *Client) ListPlatformVersions(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPlatformVersionsRequest(c.Server, params) +func (c *Client) GetFilterByID(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilterByIDRequest(c.Server, filterID) if err != nil { return nil, err } @@ -7831,8 +7554,8 @@ func (c *Client) ListPlatformVersions(ctx context.Context, params *ListPlatformV return c.Client.Do(req) } -func (c *Client) ListPlugins(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPluginsRequest(c.Server, params) +func (c *Client) UpdateFilterWithBody(ctx context.Context, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateFilterRequestWithBody(c.Server, filterID, contentType, body) if err != nil { return nil, err } @@ -7843,8 +7566,8 @@ func (c *Client) ListPlugins(ctx context.Context, params *ListPluginsParams, req return c.Client.Do(req) } -func (c *Client) CreatePluginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginRequestWithBody(c.Server, contentType, body) +func (c *Client) UpdateFilter(ctx context.Context, filterID FilterID, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateFilterRequest(c.Server, filterID, body) if err != nil { return nil, err } @@ -7855,8 +7578,8 @@ func (c *Client) CreatePluginWithBody(ctx context.Context, contentType string, b return c.Client.Do(req) } -func (c *Client) CreatePlugin(ctx context.Context, body CreatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginRequest(c.Server, body) +func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHealthCheckRequest(c.Server) if err != nil { return nil, err } @@ -7867,8 +7590,8 @@ func (c *Client) CreatePlugin(ctx context.Context, body CreatePluginJSONRequestB return c.Client.Do(req) } -func (c *Client) DeletePluginByTeamAndPluginName(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePluginByTeamAndPluginNameRequest(c.Server, teamName, pluginKind, pluginName) +func (c *Client) HealthCheckHead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHealthCheckHeadRequest(c.Server) if err != nil { return nil, err } @@ -7879,8 +7602,8 @@ func (c *Client) DeletePluginByTeamAndPluginName(ctx context.Context, teamName T return c.Client.Do(req) } -func (c *Client) GetPlugin(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPluginRequest(c.Server, teamName, pluginKind, pluginName) +func (c *Client) ListPlatformInsights(ctx context.Context, params *ListPlatformInsightsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPlatformInsightsRequest(c.Server, params) if err != nil { return nil, err } @@ -7891,8 +7614,8 @@ func (c *Client) GetPlugin(ctx context.Context, teamName TeamName, pluginKind Pl return c.Client.Do(req) } -func (c *Client) UpdatePluginWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdatePluginRequestWithBody(c.Server, teamName, pluginKind, pluginName, contentType, body) +func (c *Client) GetPlatformAssetInsights(ctx context.Context, assetID AssetID, params *GetPlatformAssetInsightsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPlatformAssetInsightsRequest(c.Server, assetID, params) if err != nil { return nil, err } @@ -7903,8 +7626,8 @@ func (c *Client) UpdatePluginWithBody(ctx context.Context, teamName TeamName, pl return c.Client.Do(req) } -func (c *Client) UpdatePlugin(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body UpdatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdatePluginRequest(c.Server, teamName, pluginKind, pluginName, body) +func (c *Client) GetPlatformInsightColumnDistinctValues(ctx context.Context, insightColumnName InsightColumnName, params *GetPlatformInsightColumnDistinctValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPlatformInsightColumnDistinctValuesRequest(c.Server, insightColumnName, params) if err != nil { return nil, err } @@ -7915,8 +7638,8 @@ func (c *Client) UpdatePlugin(ctx context.Context, teamName TeamName, pluginKind return c.Client.Do(req) } -func (c *Client) ListPluginVersions(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPluginVersionsRequest(c.Server, teamName, pluginKind, pluginName, params) +func (c *Client) PlatformListInsightFilters(ctx context.Context, params *PlatformListInsightFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPlatformListInsightFiltersRequest(c.Server, params) if err != nil { return nil, err } @@ -7927,8 +7650,8 @@ func (c *Client) ListPluginVersions(ctx context.Context, teamName TeamName, plug return c.Client.Do(req) } -func (c *Client) GetPluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPluginVersionRequest(c.Server, teamName, pluginKind, pluginName, versionName) +func (c *Client) PlatformCreateInsightFilterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPlatformCreateInsightFilterRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -7939,8 +7662,8 @@ func (c *Client) GetPluginVersion(ctx context.Context, teamName TeamName, plugin return c.Client.Do(req) } -func (c *Client) UpdatePluginVersionWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdatePluginVersionRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) PlatformCreateInsightFilter(ctx context.Context, body PlatformCreateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPlatformCreateInsightFilterRequest(c.Server, body) if err != nil { return nil, err } @@ -7951,8 +7674,8 @@ func (c *Client) UpdatePluginVersionWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) UpdatePluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UpdatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdatePluginVersionRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) PlatformDeleteInsightFilter(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPlatformDeleteInsightFilterRequest(c.Server, insightFilterID) if err != nil { return nil, err } @@ -7963,8 +7686,8 @@ func (c *Client) UpdatePluginVersion(ctx context.Context, teamName TeamName, plu return c.Client.Do(req) } -func (c *Client) CreatePluginVersionWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginVersionRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) PlatformGetInsightFilterByID(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPlatformGetInsightFilterByIDRequest(c.Server, insightFilterID) if err != nil { return nil, err } @@ -7975,8 +7698,8 @@ func (c *Client) CreatePluginVersionWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) CreatePluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginVersionRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) PlatformUpdateInsightFilterWithBody(ctx context.Context, insightFilterID InsightFilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPlatformUpdateInsightFilterRequestWithBody(c.Server, insightFilterID, contentType, body) if err != nil { return nil, err } @@ -7987,8 +7710,8 @@ func (c *Client) CreatePluginVersion(ctx context.Context, teamName TeamName, plu return c.Client.Do(req) } -func (c *Client) DownloadPluginAsset(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDownloadPluginAssetRequest(c.Server, teamName, pluginKind, pluginName, versionName, targetName, params) +func (c *Client) PlatformUpdateInsightFilter(ctx context.Context, insightFilterID InsightFilterID, body PlatformUpdateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPlatformUpdateInsightFilterRequest(c.Server, insightFilterID, body) if err != nil { return nil, err } @@ -7999,8 +7722,8 @@ func (c *Client) DownloadPluginAsset(ctx context.Context, teamName TeamName, plu return c.Client.Do(req) } -func (c *Client) UploadPluginAsset(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUploadPluginAssetRequest(c.Server, teamName, pluginKind, pluginName, versionName, targetName) +func (c *Client) GetPlatformInsight(ctx context.Context, insightID InsightID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPlatformInsightRequest(c.Server, insightID) if err != nil { return nil, err } @@ -8011,8 +7734,8 @@ func (c *Client) UploadPluginAsset(ctx context.Context, teamName TeamName, plugi return c.Client.Do(req) } -func (c *Client) DeletePluginVersionDocsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePluginVersionDocsRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) GetPlatformInsightAssets(ctx context.Context, insightID InsightID, params *GetPlatformInsightAssetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPlatformInsightAssetsRequest(c.Server, insightID, params) if err != nil { return nil, err } @@ -8023,8 +7746,8 @@ func (c *Client) DeletePluginVersionDocsWithBody(ctx context.Context, teamName T return c.Client.Do(req) } -func (c *Client) DeletePluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePluginVersionDocsRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) ListNotifications(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListNotificationsRequest(c.Server, params) if err != nil { return nil, err } @@ -8035,8 +7758,8 @@ func (c *Client) DeletePluginVersionDocs(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) ListPluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionDocsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPluginVersionDocsRequest(c.Server, teamName, pluginKind, pluginName, versionName, params) +func (c *Client) DeleteNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteNotificationDestinationRequest(c.Server, notificationDestinationId) if err != nil { return nil, err } @@ -8047,8 +7770,8 @@ func (c *Client) ListPluginVersionDocs(ctx context.Context, teamName TeamName, p return c.Client.Do(req) } -func (c *Client) ReplacePluginVersionDocsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewReplacePluginVersionDocsRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) GetNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNotificationDestinationRequest(c.Server, notificationDestinationId) if err != nil { return nil, err } @@ -8059,8 +7782,8 @@ func (c *Client) ReplacePluginVersionDocsWithBody(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) ReplacePluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body ReplacePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewReplacePluginVersionDocsRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) UpdateNotificationDestinationWithBody(ctx context.Context, notificationDestinationId NotificationDestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateNotificationDestinationRequestWithBody(c.Server, notificationDestinationId, contentType, body) if err != nil { return nil, err } @@ -8071,8 +7794,8 @@ func (c *Client) ReplacePluginVersionDocs(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) CreatePluginVersionDocsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginVersionDocsRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) UpdateNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateNotificationDestinationRequest(c.Server, notificationDestinationId, body) if err != nil { return nil, err } @@ -8083,8 +7806,8 @@ func (c *Client) CreatePluginVersionDocsWithBody(ctx context.Context, teamName T return c.Client.Do(req) } -func (c *Client) CreatePluginVersionDocs(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginVersionDocsRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) GetNotificationDestinationAlerts(ctx context.Context, notificationDestinationId NotificationDestinationId, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNotificationDestinationAlertsRequest(c.Server, notificationDestinationId, params) if err != nil { return nil, err } @@ -8095,8 +7818,8 @@ func (c *Client) CreatePluginVersionDocs(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) DeletePluginVersionTablesWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePluginVersionTablesRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) TestNotificationDestination(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestNotificationDestinationRequest(c.Server, notificationDestinationId) if err != nil { return nil, err } @@ -8107,8 +7830,8 @@ func (c *Client) DeletePluginVersionTablesWithBody(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) DeletePluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePluginVersionTablesRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) ListAllNotificationDestinations(ctx context.Context, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAllNotificationDestinationsRequest(c.Server, params) if err != nil { return nil, err } @@ -8119,8 +7842,8 @@ func (c *Client) DeletePluginVersionTables(ctx context.Context, teamName TeamNam return c.Client.Do(req) } -func (c *Client) ListPluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPluginVersionTablesRequest(c.Server, teamName, pluginKind, pluginName, versionName, params) +func (c *Client) CreateNotificationDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateNotificationDestinationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -8131,8 +7854,8 @@ func (c *Client) ListPluginVersionTables(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) CreatePluginVersionTablesWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginVersionTablesRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) CreateNotificationDestination(ctx context.Context, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateNotificationDestinationRequest(c.Server, body) if err != nil { return nil, err } @@ -8143,8 +7866,8 @@ func (c *Client) CreatePluginVersionTablesWithBody(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) CreatePluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePluginVersionTablesRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) TestUnsavedNotificationDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestUnsavedNotificationDestinationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -8155,8 +7878,8 @@ func (c *Client) CreatePluginVersionTables(ctx context.Context, teamName TeamNam return c.Client.Do(req) } -func (c *Client) GetPluginVersionTable(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPluginVersionTableRequest(c.Server, teamName, pluginKind, pluginName, versionName, tableName) +func (c *Client) TestUnsavedNotificationDestination(ctx context.Context, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestUnsavedNotificationDestinationRequest(c.Server, body) if err != nil { return nil, err } @@ -8167,8 +7890,8 @@ func (c *Client) GetPluginVersionTable(ctx context.Context, teamName TeamName, p return c.Client.Do(req) } -func (c *Client) RemovePluginUIAssets(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRemovePluginUIAssetsRequest(c.Server, teamName, pluginKind, pluginName, versionName) +func (c *Client) CreateAWSCUROnboarding(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAWSCUROnboardingRequest(c.Server) if err != nil { return nil, err } @@ -8179,8 +7902,8 @@ func (c *Client) RemovePluginUIAssets(ctx context.Context, teamName TeamName, pl return c.Client.Do(req) } -func (c *Client) UploadPluginUIAssetsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUploadPluginUIAssetsRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) GetAWSCUROnboarding(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAWSCUROnboardingRequest(c.Server, onboardingID) if err != nil { return nil, err } @@ -8191,8 +7914,8 @@ func (c *Client) UploadPluginUIAssetsWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) UploadPluginUIAssets(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUploadPluginUIAssetsRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) NotifyAWSCUROnboardingWithBody(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotifyAWSCUROnboardingRequestWithBody(c.Server, onboardingID, contentType, body) if err != nil { return nil, err } @@ -8203,8 +7926,8 @@ func (c *Client) UploadPluginUIAssets(ctx context.Context, teamName TeamName, pl return c.Client.Do(req) } -func (c *Client) FinalizePluginUIAssetUploadWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFinalizePluginUIAssetUploadRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) +func (c *Client) NotifyAWSCUROnboarding(ctx context.Context, onboardingID OnboardingID, body NotifyAWSCUROnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotifyAWSCUROnboardingRequest(c.Server, onboardingID, body) if err != nil { return nil, err } @@ -8215,8 +7938,8 @@ func (c *Client) FinalizePluginUIAssetUploadWithBody(ctx context.Context, teamNa return c.Client.Do(req) } -func (c *Client) FinalizePluginUIAssetUpload(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFinalizePluginUIAssetUploadRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) +func (c *Client) VerifyAWSCUROnboarding(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewVerifyAWSCUROnboardingRequest(c.Server, onboardingID) if err != nil { return nil, err } @@ -8227,8 +7950,8 @@ func (c *Client) FinalizePluginUIAssetUpload(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) AuthRegistryRequest(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthRegistryRequestRequest(c.Server, params) +func (c *Client) CreateAWSOnboardingWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAWSOnboardingRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -8239,8 +7962,8 @@ func (c *Client) AuthRegistryRequest(ctx context.Context, params *AuthRegistryRe return c.Client.Do(req) } -func (c *Client) ListTeams(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTeamsRequest(c.Server, params) +func (c *Client) CreateAWSOnboarding(ctx context.Context, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAWSOnboardingRequest(c.Server, body) if err != nil { return nil, err } @@ -8251,8 +7974,8 @@ func (c *Client) ListTeams(ctx context.Context, params *ListTeamsParams, reqEdit return c.Client.Do(req) } -func (c *Client) CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTeamRequestWithBody(c.Server, contentType, body) +func (c *Client) GetAWSOnboarding(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAWSOnboardingRequest(c.Server, onboardingID) if err != nil { return nil, err } @@ -8263,8 +7986,8 @@ func (c *Client) CreateTeamWithBody(ctx context.Context, contentType string, bod return c.Client.Do(req) } -func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTeamRequest(c.Server, body) +func (c *Client) GetAWSAccountsInRoot(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAWSAccountsInRootRequest(c.Server, onboardingID) if err != nil { return nil, err } @@ -8275,8 +7998,8 @@ func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, return c.Client.Do(req) } -func (c *Client) DeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTeamRequest(c.Server, teamName) +func (c *Client) ProvisionOnboardingConfigurationWithBody(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewProvisionOnboardingConfigurationRequestWithBody(c.Server, onboardingID, contentType, body) if err != nil { return nil, err } @@ -8287,8 +8010,8 @@ func (c *Client) DeleteTeam(ctx context.Context, teamName TeamName, reqEditors . return c.Client.Do(req) } -func (c *Client) GetTeamByName(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTeamByNameRequest(c.Server, teamName) +func (c *Client) ProvisionOnboardingConfiguration(ctx context.Context, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewProvisionOnboardingConfigurationRequest(c.Server, onboardingID, body) if err != nil { return nil, err } @@ -8299,8 +8022,8 @@ func (c *Client) GetTeamByName(ctx context.Context, teamName TeamName, reqEditor return c.Client.Do(req) } -func (c *Client) UpdateTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTeamRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) GetAWSAccountsInParent(ctx context.Context, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAWSAccountsInParentRequest(c.Server, onboardingID, organizationalUnitID) if err != nil { return nil, err } @@ -8311,8 +8034,8 @@ func (c *Client) UpdateTeamWithBody(ctx context.Context, teamName TeamName, cont return c.Client.Do(req) } -func (c *Client) UpdateTeam(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTeamRequest(c.Server, teamName, body) +func (c *Client) NotifyOnboardingWithBody(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotifyOnboardingRequestWithBody(c.Server, onboardingID, contentType, body) if err != nil { return nil, err } @@ -8323,8 +8046,8 @@ func (c *Client) UpdateTeam(ctx context.Context, teamName TeamName, body UpdateT return c.Client.Do(req) } -func (c *Client) ListAllAlerts(ctx context.Context, teamName TeamName, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAllAlertsRequest(c.Server, teamName, params) +func (c *Client) NotifyOnboarding(ctx context.Context, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNotifyOnboardingRequest(c.Server, onboardingID, body) if err != nil { return nil, err } @@ -8335,20 +8058,8 @@ func (c *Client) ListAllAlerts(ctx context.Context, teamName TeamName, params *L return c.Client.Do(req) } -func (c *Client) TestUnsavedAlertWithBody(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestUnsavedAlertRequestWithBody(c.Server, teamName, 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) TestUnsavedAlert(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestUnsavedAlertRequest(c.Server, teamName, params, body) +func (c *Client) GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOpenAPIJSONRequest(c.Server) if err != nil { return nil, err } @@ -8359,8 +8070,8 @@ func (c *Client) TestUnsavedAlert(ctx context.Context, teamName TeamName, params return c.Client.Do(req) } -func (c *Client) ListTeamAPIKeys(ctx context.Context, teamName TeamName, params *ListTeamAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTeamAPIKeysRequest(c.Server, teamName, params) +func (c *Client) GetPlatformInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPlatformInfoRequest(c.Server) if err != nil { return nil, err } @@ -8371,8 +8082,8 @@ func (c *Client) ListTeamAPIKeys(ctx context.Context, teamName TeamName, params return c.Client.Do(req) } -func (c *Client) CreateTeamAPIKeyWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTeamAPIKeyRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) ListPlatformVersions(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPlatformVersionsRequest(c.Server, params) if err != nil { return nil, err } @@ -8383,8 +8094,8 @@ func (c *Client) CreateTeamAPIKeyWithBody(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) CreateTeamAPIKey(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTeamAPIKeyRequest(c.Server, teamName, body) +func (c *Client) ListPlugins(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPluginsRequest(c.Server, params) if err != nil { return nil, err } @@ -8395,8 +8106,8 @@ func (c *Client) CreateTeamAPIKey(ctx context.Context, teamName TeamName, body C return c.Client.Do(req) } -func (c *Client) DeleteTeamAPIKey(ctx context.Context, teamName TeamName, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTeamAPIKeyRequest(c.Server, teamName, apiKeyID) +func (c *Client) GetPlugin(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPluginRequest(c.Server, teamName, pluginKind, pluginName) if err != nil { return nil, err } @@ -8407,8 +8118,8 @@ func (c *Client) DeleteTeamAPIKey(ctx context.Context, teamName TeamName, apiKey return c.Client.Do(req) } -func (c *Client) ListConnectors(ctx context.Context, teamName TeamName, params *ListConnectorsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListConnectorsRequest(c.Server, teamName, params) +func (c *Client) ListPluginVersions(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPluginVersionsRequest(c.Server, teamName, pluginKind, pluginName, params) if err != nil { return nil, err } @@ -8419,8 +8130,8 @@ func (c *Client) ListConnectors(ctx context.Context, teamName TeamName, params * return c.Client.Do(req) } -func (c *Client) CreateConnectorWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateConnectorRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) GetPluginVersion(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPluginVersionRequest(c.Server, teamName, pluginKind, pluginName, versionName) if err != nil { return nil, err } @@ -8431,8 +8142,8 @@ func (c *Client) CreateConnectorWithBody(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) CreateConnector(ctx context.Context, teamName TeamName, body CreateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateConnectorRequest(c.Server, teamName, body) +func (c *Client) DownloadPluginAsset(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadPluginAssetRequest(c.Server, teamName, pluginKind, pluginName, versionName, targetName, params) if err != nil { return nil, err } @@ -8443,8 +8154,8 @@ func (c *Client) CreateConnector(ctx context.Context, teamName TeamName, body Cr return c.Client.Do(req) } -func (c *Client) GetConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetConnectorRequest(c.Server, teamName, connectorID) +func (c *Client) ListPluginVersionTables(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPluginVersionTablesRequest(c.Server, teamName, pluginKind, pluginName, versionName, params) if err != nil { return nil, err } @@ -8455,8 +8166,8 @@ func (c *Client) GetConnector(ctx context.Context, teamName TeamName, connectorI return c.Client.Do(req) } -func (c *Client) UpdateConnectorWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateConnectorRequestWithBody(c.Server, teamName, connectorID, contentType, body) +func (c *Client) GetPluginVersionTable(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPluginVersionTableRequest(c.Server, teamName, pluginKind, pluginName, versionName, tableName) if err != nil { return nil, err } @@ -8467,8 +8178,8 @@ func (c *Client) UpdateConnectorWithBody(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) UpdateConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, body UpdateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateConnectorRequest(c.Server, teamName, connectorID, body) +func (c *Client) ListPolicies(ctx context.Context, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPoliciesRequest(c.Server, params) if err != nil { return nil, err } @@ -8479,8 +8190,8 @@ func (c *Client) UpdateConnector(ctx context.Context, teamName TeamName, connect return c.Client.Do(req) } -func (c *Client) RevokeConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRevokeConnectorRequest(c.Server, teamName, connectorID) +func (c *Client) CreatePolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePolicyRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -8491,8 +8202,8 @@ func (c *Client) RevokeConnector(ctx context.Context, teamName TeamName, connect return c.Client.Do(req) } -func (c *Client) GetConnectorAuthStatusAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetConnectorAuthStatusAWSRequest(c.Server, teamName, connectorID) +func (c *Client) CreatePolicy(ctx context.Context, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePolicyRequest(c.Server, body) if err != nil { return nil, err } @@ -8503,8 +8214,8 @@ func (c *Client) GetConnectorAuthStatusAWS(ctx context.Context, teamName TeamNam return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorFinishAWSWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorFinishAWSRequestWithBody(c.Server, teamName, connectorID, contentType, body) +func (c *Client) GetPolicyMetrics(ctx context.Context, params *GetPolicyMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyMetricsRequest(c.Server, params) if err != nil { return nil, err } @@ -8515,8 +8226,8 @@ func (c *Client) AuthenticateConnectorFinishAWSWithBody(ctx context.Context, tea return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorFinishAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorFinishAWSRequest(c.Server, teamName, connectorID, body) +func (c *Client) GetViolationsByDomain(ctx context.Context, params *GetViolationsByDomainParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetViolationsByDomainRequest(c.Server, params) if err != nil { return nil, err } @@ -8527,8 +8238,8 @@ func (c *Client) AuthenticateConnectorFinishAWS(ctx context.Context, teamName Te return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorAWSWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorAWSRequestWithBody(c.Server, teamName, connectorID, contentType, body) +func (c *Client) GetViolationsHistory(ctx context.Context, params *GetViolationsHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetViolationsHistoryRequest(c.Server, params) if err != nil { return nil, err } @@ -8539,8 +8250,8 @@ func (c *Client) AuthenticateConnectorAWSWithBody(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorAWSRequest(c.Server, teamName, connectorID, body) +func (c *Client) DeletePolicy(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeletePolicyRequest(c.Server, policyID) if err != nil { return nil, err } @@ -8551,8 +8262,8 @@ func (c *Client) AuthenticateConnectorAWS(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) GetConnectorAuthStatusGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetConnectorAuthStatusGCPRequest(c.Server, teamName, connectorID) +func (c *Client) GetPolicy(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyRequest(c.Server, policyID) if err != nil { return nil, err } @@ -8563,8 +8274,8 @@ func (c *Client) GetConnectorAuthStatusGCP(ctx context.Context, teamName TeamNam return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorGCPWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorGCPRequestWithBody(c.Server, teamName, connectorID, contentType, body) +func (c *Client) UpdatePolicyWithBody(ctx context.Context, policyID PolicyID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePolicyRequestWithBody(c.Server, policyID, contentType, body) if err != nil { return nil, err } @@ -8575,8 +8286,8 @@ func (c *Client) AuthenticateConnectorGCPWithBody(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorGCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorGCPRequest(c.Server, teamName, connectorID, body) +func (c *Client) UpdatePolicy(ctx context.Context, policyID PolicyID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePolicyRequest(c.Server, policyID, body) if err != nil { return nil, err } @@ -8587,8 +8298,8 @@ func (c *Client) AuthenticateConnectorGCP(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorFinishGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorFinishGCPRequest(c.Server, teamName, connectorID) +func (c *Client) TogglePolicy(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTogglePolicyRequest(c.Server, policyID) if err != nil { return nil, err } @@ -8599,8 +8310,8 @@ func (c *Client) AuthenticateConnectorFinishGCP(ctx context.Context, teamName Te return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorFinishOAuthWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorFinishOAuthRequestWithBody(c.Server, teamName, connectorID, contentType, body) +func (c *Client) GetPolicyViolations(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyViolationsRequest(c.Server, policyID, params) if err != nil { return nil, err } @@ -8611,8 +8322,8 @@ func (c *Client) AuthenticateConnectorFinishOAuthWithBody(ctx context.Context, t return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorFinishOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorFinishOAuthRequest(c.Server, teamName, connectorID, body) +func (c *Client) GetPolicyViolationsHistory(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyViolationsHistoryRequest(c.Server, policyID, params) if err != nil { return nil, err } @@ -8623,8 +8334,8 @@ func (c *Client) AuthenticateConnectorFinishOAuth(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorOAuthWithBody(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorOAuthRequestWithBody(c.Server, teamName, connectorID, contentType, body) +func (c *Client) ListPolicyGroups(ctx context.Context, params *ListPolicyGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPolicyGroupsRequest(c.Server, params) if err != nil { return nil, err } @@ -8635,8 +8346,8 @@ func (c *Client) AuthenticateConnectorOAuthWithBody(ctx context.Context, teamNam return c.Client.Do(req) } -func (c *Client) AuthenticateConnectorOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateConnectorOAuthRequest(c.Server, teamName, connectorID, body) +func (c *Client) CreatePolicyGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePolicyGroupRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -8647,8 +8358,8 @@ func (c *Client) AuthenticateConnectorOAuth(ctx context.Context, teamName TeamNa return c.Client.Do(req) } -func (c *Client) CreateConversationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateConversationRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) CreatePolicyGroup(ctx context.Context, body CreatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePolicyGroupRequest(c.Server, body) if err != nil { return nil, err } @@ -8659,8 +8370,8 @@ func (c *Client) CreateConversationWithBody(ctx context.Context, teamName TeamNa return c.Client.Do(req) } -func (c *Client) CreateConversation(ctx context.Context, teamName TeamName, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateConversationRequest(c.Server, teamName, body) +func (c *Client) DeletePolicyGroup(ctx context.Context, policyGroupID PolicyGroupID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeletePolicyGroupRequest(c.Server, policyGroupID) if err != nil { return nil, err } @@ -8671,8 +8382,8 @@ func (c *Client) CreateConversation(ctx context.Context, teamName TeamName, body return c.Client.Do(req) } -func (c *Client) GetConversation(ctx context.Context, teamName TeamName, conversationID ConversationID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetConversationRequest(c.Server, teamName, conversationID) +func (c *Client) ListPoliciesInGroup(ctx context.Context, policyGroupID PolicyGroupID, params *ListPoliciesInGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPoliciesInGroupRequest(c.Server, policyGroupID, params) if err != nil { return nil, err } @@ -8683,8 +8394,8 @@ func (c *Client) GetConversation(ctx context.Context, teamName TeamName, convers return c.Client.Do(req) } -func (c *Client) SendMessageWithBody(ctx context.Context, teamName TeamName, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendMessageRequestWithBody(c.Server, teamName, conversationID, contentType, body) +func (c *Client) UpdatePolicyGroupWithBody(ctx context.Context, policyGroupID PolicyGroupID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePolicyGroupRequestWithBody(c.Server, policyGroupID, contentType, body) if err != nil { return nil, err } @@ -8695,8 +8406,8 @@ func (c *Client) SendMessageWithBody(ctx context.Context, teamName TeamName, con return c.Client.Do(req) } -func (c *Client) SendMessage(ctx context.Context, teamName TeamName, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendMessageRequest(c.Server, teamName, conversationID, body) +func (c *Client) UpdatePolicyGroup(ctx context.Context, policyGroupID PolicyGroupID, body UpdatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePolicyGroupRequest(c.Server, policyGroupID, body) if err != nil { return nil, err } @@ -8707,8 +8418,8 @@ func (c *Client) SendMessage(ctx context.Context, teamName TeamName, conversatio return c.Client.Do(req) } -func (c *Client) ListAllCustomColumns(ctx context.Context, teamName TeamName, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAllCustomColumnsRequest(c.Server, teamName, params) +func (c *Client) ListAllQueries(ctx context.Context, params *ListAllQueriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAllQueriesRequest(c.Server, params) if err != nil { return nil, err } @@ -8719,8 +8430,8 @@ func (c *Client) ListAllCustomColumns(ctx context.Context, teamName TeamName, pa return c.Client.Do(req) } -func (c *Client) SaveCustomColumnWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveCustomColumnRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) ExecuteAdHocQueryWithBody(ctx context.Context, params *ExecuteAdHocQueryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExecuteAdHocQueryRequestWithBody(c.Server, params, contentType, body) if err != nil { return nil, err } @@ -8731,8 +8442,8 @@ func (c *Client) SaveCustomColumnWithBody(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) SaveCustomColumn(ctx context.Context, teamName TeamName, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveCustomColumnRequest(c.Server, teamName, body) +func (c *Client) ExecuteAdHocQuery(ctx context.Context, params *ExecuteAdHocQueryParams, body ExecuteAdHocQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExecuteAdHocQueryRequest(c.Server, params, body) if err != nil { return nil, err } @@ -8743,8 +8454,8 @@ func (c *Client) SaveCustomColumn(ctx context.Context, teamName TeamName, body S return c.Client.Do(req) } -func (c *Client) DeleteCustomColumn(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteCustomColumnRequest(c.Server, teamName, customColumnID) +func (c *Client) SaveQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveQueryRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -8755,8 +8466,8 @@ func (c *Client) DeleteCustomColumn(ctx context.Context, teamName TeamName, cust return c.Client.Do(req) } -func (c *Client) GetCustomColumn(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCustomColumnRequest(c.Server, teamName, customColumnID) +func (c *Client) SaveQuery(ctx context.Context, body SaveQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveQueryRequest(c.Server, body) if err != nil { return nil, err } @@ -8767,8 +8478,8 @@ func (c *Client) GetCustomColumn(ctx context.Context, teamName TeamName, customC return c.Client.Do(req) } -func (c *Client) UpdateCustomColumnWithBody(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCustomColumnRequestWithBody(c.Server, teamName, customColumnID, contentType, body) +func (c *Client) ListQueryTags(ctx context.Context, params *ListQueryTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListQueryTagsRequest(c.Server, params) if err != nil { return nil, err } @@ -8779,8 +8490,8 @@ func (c *Client) UpdateCustomColumnWithBody(ctx context.Context, teamName TeamNa return c.Client.Do(req) } -func (c *Client) UpdateCustomColumn(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCustomColumnRequest(c.Server, teamName, customColumnID, body) +func (c *Client) DeleteSavedQuery(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSavedQueryRequest(c.Server, queryID) if err != nil { return nil, err } @@ -8791,8 +8502,8 @@ func (c *Client) UpdateCustomColumn(ctx context.Context, teamName TeamName, cust return c.Client.Do(req) } -func (c *Client) PutCustomColumnDataWithBody(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutCustomColumnDataRequestWithBody(c.Server, teamName, customColumnID, contentType, body) +func (c *Client) GetSavedQuery(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSavedQueryRequest(c.Server, queryID) if err != nil { return nil, err } @@ -8803,8 +8514,8 @@ func (c *Client) PutCustomColumnDataWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) PutCustomColumnData(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutCustomColumnDataRequest(c.Server, teamName, customColumnID, body) +func (c *Client) UpdateQueryWithBody(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateQueryRequestWithBody(c.Server, queryID, contentType, body) if err != nil { return nil, err } @@ -8815,8 +8526,8 @@ func (c *Client) PutCustomColumnData(ctx context.Context, teamName TeamName, cus return c.Client.Do(req) } -func (c *Client) PutCustomColumnValuesWithBody(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutCustomColumnValuesRequestWithBody(c.Server, teamName, customColumnID, contentType, body) +func (c *Client) UpdateQuery(ctx context.Context, queryID QueryID, body UpdateQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateQueryRequest(c.Server, queryID, body) if err != nil { return nil, err } @@ -8827,8 +8538,8 @@ func (c *Client) PutCustomColumnValuesWithBody(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) PutCustomColumnValues(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutCustomColumnValuesRequest(c.Server, teamName, customColumnID, body) +func (c *Client) DeleteAlert(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAlertRequest(c.Server, queryID) if err != nil { return nil, err } @@ -8839,8 +8550,8 @@ func (c *Client) PutCustomColumnValues(ctx context.Context, teamName TeamName, c return c.Client.Do(req) } -func (c *Client) ListFiltersTeam(ctx context.Context, teamName TeamName, params *ListFiltersTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListFiltersTeamRequest(c.Server, teamName, params) +func (c *Client) ExecuteSavedQuery(ctx context.Context, queryID QueryID, params *ExecuteSavedQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExecuteSavedQueryRequest(c.Server, queryID, params) if err != nil { return nil, err } @@ -8851,8 +8562,8 @@ func (c *Client) ListFiltersTeam(ctx context.Context, teamName TeamName, params return c.Client.Do(req) } -func (c *Client) ListFilterTagsTeam(ctx context.Context, teamName TeamName, params *ListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListFilterTagsTeamRequest(c.Server, teamName, params) +func (c *Client) QueryListFilters(ctx context.Context, queryID QueryID, params *QueryListFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewQueryListFiltersRequest(c.Server, queryID, params) if err != nil { return nil, err } @@ -8863,8 +8574,8 @@ func (c *Client) ListFilterTagsTeam(ctx context.Context, teamName TeamName, para return c.Client.Do(req) } -func (c *Client) DeleteFilterTeam(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteFilterTeamRequest(c.Server, teamName, filterID) +func (c *Client) QuerySaveFilterWithBody(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewQuerySaveFilterRequestWithBody(c.Server, queryID, contentType, body) if err != nil { return nil, err } @@ -8875,8 +8586,8 @@ func (c *Client) DeleteFilterTeam(ctx context.Context, teamName TeamName, filter return c.Client.Do(req) } -func (c *Client) GetFilterByIDTeam(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetFilterByIDTeamRequest(c.Server, teamName, filterID) +func (c *Client) QuerySaveFilter(ctx context.Context, queryID QueryID, body QuerySaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewQuerySaveFilterRequest(c.Server, queryID, body) if err != nil { return nil, err } @@ -8887,8 +8598,8 @@ func (c *Client) GetFilterByIDTeam(ctx context.Context, teamName TeamName, filte return c.Client.Do(req) } -func (c *Client) UpdateFilterTeamWithBody(ctx context.Context, teamName TeamName, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateFilterTeamRequestWithBody(c.Server, teamName, filterID, contentType, body) +func (c *Client) QueryListFilterTags(ctx context.Context, queryID QueryID, params *QueryListFilterTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewQueryListFilterTagsRequest(c.Server, queryID, params) if err != nil { return nil, err } @@ -8899,8 +8610,8 @@ func (c *Client) UpdateFilterTeamWithBody(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) UpdateFilterTeam(ctx context.Context, teamName TeamName, filterID FilterID, body UpdateFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateFilterTeamRequest(c.Server, teamName, filterID, body) +func (c *Client) ListAllRBACPermissions(ctx context.Context, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAllRBACPermissionsRequest(c.Server, params) if err != nil { return nil, err } @@ -8911,8 +8622,8 @@ func (c *Client) UpdateFilterTeam(ctx context.Context, teamName TeamName, filter return c.Client.Do(req) } -func (c *Client) CreateTeamImagesWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTeamImagesRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) CreateRBACPermissionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRBACPermissionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -8923,8 +8634,8 @@ func (c *Client) CreateTeamImagesWithBody(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) CreateTeamImages(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTeamImagesRequest(c.Server, teamName, body) +func (c *Client) CreateRBACPermission(ctx context.Context, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRBACPermissionRequest(c.Server, body) if err != nil { return nil, err } @@ -8935,8 +8646,8 @@ func (c *Client) CreateTeamImages(ctx context.Context, teamName TeamName, body C return c.Client.Do(req) } -func (c *Client) DeleteTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTeamInvitationRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) DeleteRBACPermission(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteRBACPermissionRequest(c.Server, rbacPermissionID) if err != nil { return nil, err } @@ -8947,8 +8658,8 @@ func (c *Client) DeleteTeamInvitationWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) DeleteTeamInvitation(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTeamInvitationRequest(c.Server, teamName, body) +func (c *Client) GetRBACPermission(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRBACPermissionRequest(c.Server, rbacPermissionID) if err != nil { return nil, err } @@ -8959,8 +8670,8 @@ func (c *Client) DeleteTeamInvitation(ctx context.Context, teamName TeamName, bo return c.Client.Do(req) } -func (c *Client) ListTeamInvitations(ctx context.Context, teamName TeamName, params *ListTeamInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTeamInvitationsRequest(c.Server, teamName, params) +func (c *Client) UpdateRBACPermissionWithBody(ctx context.Context, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateRBACPermissionRequestWithBody(c.Server, rbacPermissionID, contentType, body) if err != nil { return nil, err } @@ -8971,8 +8682,8 @@ func (c *Client) ListTeamInvitations(ctx context.Context, teamName TeamName, par return c.Client.Do(req) } -func (c *Client) AcceptTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAcceptTeamInvitationRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UpdateRBACPermission(ctx context.Context, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateRBACPermissionRequest(c.Server, rbacPermissionID, body) if err != nil { return nil, err } @@ -8983,8 +8694,8 @@ func (c *Client) AcceptTeamInvitationWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) AcceptTeamInvitation(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAcceptTeamInvitationRequest(c.Server, teamName, body) +func (c *Client) ListAllRBACRoles(ctx context.Context, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAllRBACRolesRequest(c.Server, params) if err != nil { return nil, err } @@ -8995,8 +8706,8 @@ func (c *Client) AcceptTeamInvitation(ctx context.Context, teamName TeamName, bo return c.Client.Do(req) } -func (c *Client) RemoveTeamMembershipWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRemoveTeamMembershipRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) CreateRBACRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRBACRoleRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9007,8 +8718,8 @@ func (c *Client) RemoveTeamMembershipWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) RemoveTeamMembership(ctx context.Context, teamName TeamName, body RemoveTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRemoveTeamMembershipRequest(c.Server, teamName, body) +func (c *Client) CreateRBACRole(ctx context.Context, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRBACRoleRequest(c.Server, body) if err != nil { return nil, err } @@ -9019,8 +8730,8 @@ func (c *Client) RemoveTeamMembership(ctx context.Context, teamName TeamName, bo return c.Client.Do(req) } -func (c *Client) GetTeamMemberships(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTeamMembershipsRequest(c.Server, teamName, params) +func (c *Client) DeleteRBACRole(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteRBACRoleRequest(c.Server, roleID) if err != nil { return nil, err } @@ -9031,8 +8742,8 @@ func (c *Client) GetTeamMemberships(ctx context.Context, teamName TeamName, para return c.Client.Do(req) } -func (c *Client) DeleteTeamMembership(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTeamMembershipRequest(c.Server, teamName, email) +func (c *Client) GetRBACRole(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRBACRoleRequest(c.Server, roleID) if err != nil { return nil, err } @@ -9043,8 +8754,8 @@ func (c *Client) DeleteTeamMembership(ctx context.Context, teamName TeamName, em return c.Client.Do(req) } -func (c *Client) DeleteNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteNotificationDestinationRequest(c.Server, teamName, notificationDestinationID) +func (c *Client) UpdateRBACRoleWithBody(ctx context.Context, roleID RoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateRBACRoleRequestWithBody(c.Server, roleID, contentType, body) if err != nil { return nil, err } @@ -9055,8 +8766,8 @@ func (c *Client) DeleteNotificationDestination(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) GetNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNotificationDestinationRequest(c.Server, teamName, notificationDestinationID) +func (c *Client) UpdateRBACRole(ctx context.Context, roleID RoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateRBACRoleRequest(c.Server, roleID, body) if err != nil { return nil, err } @@ -9067,8 +8778,8 @@ func (c *Client) GetNotificationDestination(ctx context.Context, teamName TeamNa return c.Client.Do(req) } -func (c *Client) UpdateNotificationDestinationWithBody(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateNotificationDestinationRequestWithBody(c.Server, teamName, notificationDestinationID, contentType, body) +func (c *Client) ListReports(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListReportsRequest(c.Server, params) if err != nil { return nil, err } @@ -9079,8 +8790,8 @@ func (c *Client) UpdateNotificationDestinationWithBody(ctx context.Context, team return c.Client.Do(req) } -func (c *Client) UpdateNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateNotificationDestinationRequest(c.Server, teamName, notificationDestinationID, body) +func (c *Client) CreateReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateReportRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9091,8 +8802,8 @@ func (c *Client) UpdateNotificationDestination(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) GetNotificationDestinationAlerts(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetNotificationDestinationAlertsRequest(c.Server, teamName, notificationDestinationID, params) +func (c *Client) CreateReport(ctx context.Context, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateReportRequest(c.Server, body) if err != nil { return nil, err } @@ -9103,8 +8814,8 @@ func (c *Client) GetNotificationDestinationAlerts(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) TestNotificationDestination(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestNotificationDestinationRequest(c.Server, teamName, notificationDestinationID) +func (c *Client) ListReportTemplates(ctx context.Context, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListReportTemplatesRequest(c.Server, params) if err != nil { return nil, err } @@ -9115,8 +8826,8 @@ func (c *Client) TestNotificationDestination(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) ListAllNotificationDestinations(ctx context.Context, teamName TeamName, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAllNotificationDestinationsRequest(c.Server, teamName, params) +func (c *Client) CreateReportTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateReportTemplateRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9127,8 +8838,8 @@ func (c *Client) ListAllNotificationDestinations(ctx context.Context, teamName T return c.Client.Do(req) } -func (c *Client) CreateNotificationDestinationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateNotificationDestinationRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) CreateReportTemplate(ctx context.Context, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateReportTemplateRequest(c.Server, body) if err != nil { return nil, err } @@ -9139,8 +8850,8 @@ func (c *Client) CreateNotificationDestinationWithBody(ctx context.Context, team return c.Client.Do(req) } -func (c *Client) CreateNotificationDestination(ctx context.Context, teamName TeamName, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateNotificationDestinationRequest(c.Server, teamName, body) +func (c *Client) DeleteReportTemplate(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReportTemplateRequest(c.Server, templateId) if err != nil { return nil, err } @@ -9151,8 +8862,8 @@ func (c *Client) CreateNotificationDestination(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) TestUnsavedNotificationDestinationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestUnsavedNotificationDestinationRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) GetReportTemplate(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReportTemplateRequest(c.Server, templateId) if err != nil { return nil, err } @@ -9163,8 +8874,8 @@ func (c *Client) TestUnsavedNotificationDestinationWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) TestUnsavedNotificationDestination(ctx context.Context, teamName TeamName, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTestUnsavedNotificationDestinationRequest(c.Server, teamName, body) +func (c *Client) UpdateReportTemplateWithBody(ctx context.Context, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateReportTemplateRequestWithBody(c.Server, templateId, contentType, body) if err != nil { return nil, err } @@ -9175,8 +8886,8 @@ func (c *Client) TestUnsavedNotificationDestination(ctx context.Context, teamNam return c.Client.Do(req) } -func (c *Client) CreateAWSOnboardingWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAWSOnboardingRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UpdateReportTemplate(ctx context.Context, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateReportTemplateRequest(c.Server, templateId, body) if err != nil { return nil, err } @@ -9187,8 +8898,8 @@ func (c *Client) CreateAWSOnboardingWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) CreateAWSOnboarding(ctx context.Context, teamName TeamName, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAWSOnboardingRequest(c.Server, teamName, body) +func (c *Client) DeleteReport(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReportRequest(c.Server, reportId) if err != nil { return nil, err } @@ -9199,8 +8910,8 @@ func (c *Client) CreateAWSOnboarding(ctx context.Context, teamName TeamName, bod return c.Client.Do(req) } -func (c *Client) GetAWSOnboarding(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAWSOnboardingRequest(c.Server, teamName, onboardingID) +func (c *Client) GetReport(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReportRequest(c.Server, reportId) if err != nil { return nil, err } @@ -9211,8 +8922,8 @@ func (c *Client) GetAWSOnboarding(ctx context.Context, teamName TeamName, onboar return c.Client.Do(req) } -func (c *Client) GetAWSAccountsInRoot(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAWSAccountsInRootRequest(c.Server, teamName, onboardingID) +func (c *Client) UpdateReportWithBody(ctx context.Context, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateReportRequestWithBody(c.Server, reportId, contentType, body) if err != nil { return nil, err } @@ -9223,8 +8934,8 @@ func (c *Client) GetAWSAccountsInRoot(ctx context.Context, teamName TeamName, on return c.Client.Do(req) } -func (c *Client) ProvisionOnboardingConfigurationWithBody(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProvisionOnboardingConfigurationRequestWithBody(c.Server, teamName, onboardingID, contentType, body) +func (c *Client) UpdateReport(ctx context.Context, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateReportRequest(c.Server, reportId, body) if err != nil { return nil, err } @@ -9235,8 +8946,8 @@ func (c *Client) ProvisionOnboardingConfigurationWithBody(ctx context.Context, t return c.Client.Do(req) } -func (c *Client) ProvisionOnboardingConfiguration(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProvisionOnboardingConfigurationRequest(c.Server, teamName, onboardingID, body) +func (c *Client) GetSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSettingsRequest(c.Server) if err != nil { return nil, err } @@ -9247,8 +8958,8 @@ func (c *Client) ProvisionOnboardingConfiguration(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) GetAWSAccountsInParent(ctx context.Context, teamName TeamName, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAWSAccountsInParentRequest(c.Server, teamName, onboardingID, organizationalUnitID) +func (c *Client) UpdateSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettingsRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9259,8 +8970,8 @@ func (c *Client) GetAWSAccountsInParent(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) NotifyOnboardingWithBody(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNotifyOnboardingRequestWithBody(c.Server, teamName, onboardingID, contentType, body) +func (c *Client) UpdateSettings(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettingsRequest(c.Server, body) if err != nil { return nil, err } @@ -9271,8 +8982,8 @@ func (c *Client) NotifyOnboardingWithBody(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) NotifyOnboarding(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNotifyOnboardingRequest(c.Server, teamName, onboardingID, body) +func (c *Client) GetDataSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDataSettingsRequest(c.Server) if err != nil { return nil, err } @@ -9283,8 +8994,8 @@ func (c *Client) NotifyOnboarding(ctx context.Context, teamName TeamName, onboar return c.Client.Do(req) } -func (c *Client) DeletePluginsByTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePluginsByTeamRequest(c.Server, teamName) +func (c *Client) UpdateDataSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDataSettingsRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9295,8 +9006,8 @@ func (c *Client) DeletePluginsByTeam(ctx context.Context, teamName TeamName, req return c.Client.Do(req) } -func (c *Client) ListPluginsByTeam(ctx context.Context, teamName TeamName, params *ListPluginsByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPluginsByTeamRequest(c.Server, teamName, params) +func (c *Client) UpdateDataSettings(ctx context.Context, body UpdateDataSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDataSettingsRequest(c.Server, body) if err != nil { return nil, err } @@ -9307,8 +9018,8 @@ func (c *Client) ListPluginsByTeam(ctx context.Context, teamName TeamName, param return c.Client.Do(req) } -func (c *Client) DownloadPluginAssetByTeam(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDownloadPluginAssetByTeamRequest(c.Server, teamName, pluginTeam, pluginKind, pluginName, versionName, targetName, params) +func (c *Client) CreateSlackConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSlackConnectionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9319,8 +9030,8 @@ func (c *Client) DownloadPluginAssetByTeam(ctx context.Context, teamName TeamNam return c.Client.Do(req) } -func (c *Client) ListPolicies(ctx context.Context, teamName TeamName, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPoliciesRequest(c.Server, teamName, params) +func (c *Client) CreateSlackConnection(ctx context.Context, body CreateSlackConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSlackConnectionRequest(c.Server, body) if err != nil { return nil, err } @@ -9331,8 +9042,8 @@ func (c *Client) ListPolicies(ctx context.Context, teamName TeamName, params *Li return c.Client.Do(req) } -func (c *Client) CreatePolicyWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePolicyRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) ListSlackChannels(ctx context.Context, id openapi_types.UUID, params *ListSlackChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSlackChannelsRequest(c.Server, id, params) if err != nil { return nil, err } @@ -9343,8 +9054,8 @@ func (c *Client) CreatePolicyWithBody(ctx context.Context, teamName TeamName, co return c.Client.Do(req) } -func (c *Client) CreatePolicy(ctx context.Context, teamName TeamName, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreatePolicyRequest(c.Server, teamName, body) +func (c *Client) CreateSyncDestinationTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncDestinationTestConnectionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9355,8 +9066,8 @@ func (c *Client) CreatePolicy(ctx context.Context, teamName TeamName, body Creat return c.Client.Do(req) } -func (c *Client) ListAllFrameworks(ctx context.Context, teamName TeamName, params *ListAllFrameworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAllFrameworksRequest(c.Server, teamName, params) +func (c *Client) CreateSyncDestinationTestConnection(ctx context.Context, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncDestinationTestConnectionRequest(c.Server, body) if err != nil { return nil, err } @@ -9367,8 +9078,8 @@ func (c *Client) ListAllFrameworks(ctx context.Context, teamName TeamName, param return c.Client.Do(req) } -func (c *Client) DeletePolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePolicyRequest(c.Server, teamName, policyId) +func (c *Client) GetSyncDestinationTestConnection(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncDestinationTestConnectionRequest(c.Server, syncDestinationTestConnectionID) if err != nil { return nil, err } @@ -9379,8 +9090,8 @@ func (c *Client) DeletePolicy(ctx context.Context, teamName TeamName, policyId o return c.Client.Do(req) } -func (c *Client) GetPolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPolicyRequest(c.Server, teamName, policyId) +func (c *Client) UpdateSyncTestConnectionForSyncDestinationWithBody(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(c.Server, syncDestinationTestConnectionID, contentType, body) if err != nil { return nil, err } @@ -9391,8 +9102,8 @@ func (c *Client) GetPolicy(ctx context.Context, teamName TeamName, policyId open return c.Client.Do(req) } -func (c *Client) UpdatePolicyWithBody(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdatePolicyRequestWithBody(c.Server, teamName, policyId, contentType, body) +func (c *Client) UpdateSyncTestConnectionForSyncDestination(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncDestinationRequest(c.Server, syncDestinationTestConnectionID, body) if err != nil { return nil, err } @@ -9403,8 +9114,8 @@ func (c *Client) UpdatePolicyWithBody(ctx context.Context, teamName TeamName, po return c.Client.Do(req) } -func (c *Client) UpdatePolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdatePolicyRequest(c.Server, teamName, policyId, body) +func (c *Client) GetSyncDestinationTestConnectionLogsLive(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncDestinationTestConnectionLogsLiveRequest(c.Server, syncDestinationTestConnectionID, params) if err != nil { return nil, err } @@ -9415,8 +9126,8 @@ func (c *Client) UpdatePolicy(ctx context.Context, teamName TeamName, policyId o return c.Client.Do(req) } -func (c *Client) ListPolicyFrameworks(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyFrameworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPolicyFrameworksRequest(c.Server, teamName, policyId, params) +func (c *Client) GetSyncDestinationTestConnectionLogsQuery(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncDestinationTestConnectionLogsQueryRequest(c.Server, syncDestinationTestConnectionID, params) if err != nil { return nil, err } @@ -9427,8 +9138,8 @@ func (c *Client) ListPolicyFrameworks(ctx context.Context, teamName TeamName, po return c.Client.Do(req) } -func (c *Client) ListPolicyRules(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPolicyRulesRequest(c.Server, teamName, policyId, params) +func (c *Client) PromoteSyncDestinationTestConnectionWithBody(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPromoteSyncDestinationTestConnectionRequestWithBody(c.Server, syncDestinationTestConnectionID, contentType, body) if err != nil { return nil, err } @@ -9439,8 +9150,8 @@ func (c *Client) ListPolicyRules(ctx context.Context, teamName TeamName, policyI return c.Client.Do(req) } -func (c *Client) ListPolicyRuleDetails(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, ruleId openapi_types.UUID, params *ListPolicyRuleDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListPolicyRuleDetailsRequest(c.Server, teamName, policyId, ruleId, params) +func (c *Client) PromoteSyncDestinationTestConnection(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPromoteSyncDestinationTestConnectionRequest(c.Server, syncDestinationTestConnectionID, body) if err != nil { return nil, err } @@ -9451,8 +9162,8 @@ func (c *Client) ListPolicyRuleDetails(ctx context.Context, teamName TeamName, p return c.Client.Do(req) } -func (c *Client) TogglePolicy(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *TogglePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTogglePolicyRequest(c.Server, teamName, policyId, params) +func (c *Client) ListSyncDestinations(ctx context.Context, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncDestinationsRequest(c.Server, params) if err != nil { return nil, err } @@ -9463,8 +9174,8 @@ func (c *Client) TogglePolicy(ctx context.Context, teamName TeamName, policyId o return c.Client.Do(req) } -func (c *Client) GetPolicyViolationsHistory(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPolicyViolationsHistoryRequest(c.Server, teamName, policyId, params) +func (c *Client) DeleteSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSyncDestinationRequest(c.Server, syncDestinationName) if err != nil { return nil, err } @@ -9475,8 +9186,8 @@ func (c *Client) GetPolicyViolationsHistory(ctx context.Context, teamName TeamNa return c.Client.Do(req) } -func (c *Client) ListAllQueriesTeam(ctx context.Context, teamName TeamName, params *ListAllQueriesTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAllQueriesTeamRequest(c.Server, teamName, params) +func (c *Client) GetSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncDestinationRequest(c.Server, syncDestinationName) if err != nil { return nil, err } @@ -9487,8 +9198,8 @@ func (c *Client) ListAllQueriesTeam(ctx context.Context, teamName TeamName, para return c.Client.Do(req) } -func (c *Client) ExecuteAdHocQueryTeamWithBody(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExecuteAdHocQueryTeamRequestWithBody(c.Server, teamName, params, contentType, body) +func (c *Client) UpdateSyncDestinationWithBody(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncDestinationRequestWithBody(c.Server, syncDestinationName, contentType, body) if err != nil { return nil, err } @@ -9499,8 +9210,8 @@ func (c *Client) ExecuteAdHocQueryTeamWithBody(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) ExecuteAdHocQueryTeam(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, body ExecuteAdHocQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExecuteAdHocQueryTeamRequest(c.Server, teamName, params, body) +func (c *Client) UpdateSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncDestinationRequest(c.Server, syncDestinationName, body) if err != nil { return nil, err } @@ -9511,8 +9222,8 @@ func (c *Client) ExecuteAdHocQueryTeam(ctx context.Context, teamName TeamName, p return c.Client.Do(req) } -func (c *Client) SaveQueryTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveQueryTeamRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) ListSyncDestinationSyncs(ctx context.Context, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncDestinationSyncsRequest(c.Server, syncDestinationName, params) if err != nil { return nil, err } @@ -9523,8 +9234,8 @@ func (c *Client) SaveQueryTeamWithBody(ctx context.Context, teamName TeamName, c return c.Client.Do(req) } -func (c *Client) SaveQueryTeam(ctx context.Context, teamName TeamName, body SaveQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveQueryTeamRequest(c.Server, teamName, body) +func (c *Client) GetTestConnectionForSyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTestConnectionForSyncDestinationRequest(c.Server, syncDestinationName, syncTestConnectionId) if err != nil { return nil, err } @@ -9535,8 +9246,8 @@ func (c *Client) SaveQueryTeam(ctx context.Context, teamName TeamName, body Save return c.Client.Do(req) } -func (c *Client) ListQueryTagsTeam(ctx context.Context, teamName TeamName, params *ListQueryTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListQueryTagsTeamRequest(c.Server, teamName, params) +func (c *Client) CreateSyncSourceTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncSourceTestConnectionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9547,8 +9258,8 @@ func (c *Client) ListQueryTagsTeam(ctx context.Context, teamName TeamName, param return c.Client.Do(req) } -func (c *Client) DeleteSavedQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSavedQueryTeamRequest(c.Server, teamName, queryID) +func (c *Client) CreateSyncSourceTestConnection(ctx context.Context, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncSourceTestConnectionRequest(c.Server, body) if err != nil { return nil, err } @@ -9559,8 +9270,8 @@ func (c *Client) DeleteSavedQueryTeam(ctx context.Context, teamName TeamName, qu return c.Client.Do(req) } -func (c *Client) GetSavedQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSavedQueryTeamRequest(c.Server, teamName, queryID) +func (c *Client) GetSyncSourceTestConnection(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncSourceTestConnectionRequest(c.Server, syncSourceTestConnectionID) if err != nil { return nil, err } @@ -9571,8 +9282,8 @@ func (c *Client) GetSavedQueryTeam(ctx context.Context, teamName TeamName, query return c.Client.Do(req) } -func (c *Client) UpdateQueryTeamWithBody(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateQueryTeamRequestWithBody(c.Server, teamName, queryID, contentType, body) +func (c *Client) UpdateSyncTestConnectionForSyncSourceWithBody(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(c.Server, syncSourceTestConnectionID, contentType, body) if err != nil { return nil, err } @@ -9583,8 +9294,8 @@ func (c *Client) UpdateQueryTeamWithBody(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) UpdateQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, body UpdateQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateQueryTeamRequest(c.Server, teamName, queryID, body) +func (c *Client) UpdateSyncTestConnectionForSyncSource(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncSourceRequest(c.Server, syncSourceTestConnectionID, body) if err != nil { return nil, err } @@ -9595,8 +9306,8 @@ func (c *Client) UpdateQueryTeam(ctx context.Context, teamName TeamName, queryID return c.Client.Do(req) } -func (c *Client) DeleteAlert(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAlertRequest(c.Server, teamName, queryID) +func (c *Client) GetSyncSourceTestConnectionLogsLive(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncSourceTestConnectionLogsLiveRequest(c.Server, syncSourceTestConnectionID, params) if err != nil { return nil, err } @@ -9607,8 +9318,8 @@ func (c *Client) DeleteAlert(ctx context.Context, teamName TeamName, queryID Que return c.Client.Do(req) } -func (c *Client) ExecuteSavedQueryTeam(ctx context.Context, teamName TeamName, queryID QueryID, params *ExecuteSavedQueryTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExecuteSavedQueryTeamRequest(c.Server, teamName, queryID, params) +func (c *Client) GetSyncSourceTestConnectionLogsQuery(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncSourceTestConnectionLogsQueryRequest(c.Server, syncSourceTestConnectionID, params) if err != nil { return nil, err } @@ -9619,8 +9330,8 @@ func (c *Client) ExecuteSavedQueryTeam(ctx context.Context, teamName TeamName, q return c.Client.Do(req) } -func (c *Client) QueryListFiltersTeam(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFiltersTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewQueryListFiltersTeamRequest(c.Server, teamName, queryID, params) +func (c *Client) PromoteSyncSourceTestConnectionWithBody(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPromoteSyncSourceTestConnectionRequestWithBody(c.Server, syncSourceTestConnectionID, contentType, body) if err != nil { return nil, err } @@ -9631,8 +9342,8 @@ func (c *Client) QueryListFiltersTeam(ctx context.Context, teamName TeamName, qu return c.Client.Do(req) } -func (c *Client) QuerySaveFilterTeamWithBody(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewQuerySaveFilterTeamRequestWithBody(c.Server, teamName, queryID, contentType, body) +func (c *Client) PromoteSyncSourceTestConnection(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPromoteSyncSourceTestConnectionRequest(c.Server, syncSourceTestConnectionID, body) if err != nil { return nil, err } @@ -9643,8 +9354,8 @@ func (c *Client) QuerySaveFilterTeamWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) QuerySaveFilterTeam(ctx context.Context, teamName TeamName, queryID QueryID, body QuerySaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewQuerySaveFilterTeamRequest(c.Server, teamName, queryID, body) +func (c *Client) ListSyncSources(ctx context.Context, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncSourcesRequest(c.Server, params) if err != nil { return nil, err } @@ -9655,8 +9366,8 @@ func (c *Client) QuerySaveFilterTeam(ctx context.Context, teamName TeamName, que return c.Client.Do(req) } -func (c *Client) QueryListFilterTagsTeam(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewQueryListFilterTagsTeamRequest(c.Server, teamName, queryID, params) +func (c *Client) DeleteSyncSource(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSyncSourceRequest(c.Server, syncSourceName) if err != nil { return nil, err } @@ -9667,8 +9378,8 @@ func (c *Client) QueryListFilterTagsTeam(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) ListAllRBACPermissions(ctx context.Context, teamName TeamName, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAllRBACPermissionsRequest(c.Server, teamName, params) +func (c *Client) GetSyncSource(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncSourceRequest(c.Server, syncSourceName) if err != nil { return nil, err } @@ -9679,8 +9390,8 @@ func (c *Client) ListAllRBACPermissions(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) CreateRBACPermissionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateRBACPermissionRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UpdateSyncSourceWithBody(ctx context.Context, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncSourceRequestWithBody(c.Server, syncSourceName, contentType, body) if err != nil { return nil, err } @@ -9691,8 +9402,8 @@ func (c *Client) CreateRBACPermissionWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) CreateRBACPermission(ctx context.Context, teamName TeamName, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateRBACPermissionRequest(c.Server, teamName, body) +func (c *Client) UpdateSyncSource(ctx context.Context, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncSourceRequest(c.Server, syncSourceName, body) if err != nil { return nil, err } @@ -9703,8 +9414,8 @@ func (c *Client) CreateRBACPermission(ctx context.Context, teamName TeamName, bo return c.Client.Do(req) } -func (c *Client) DeleteRBACPermission(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteRBACPermissionRequest(c.Server, teamName, rbacPermissionID) +func (c *Client) ListSyncSourceSyncs(ctx context.Context, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncSourceSyncsRequest(c.Server, syncSourceName, params) if err != nil { return nil, err } @@ -9715,8 +9426,8 @@ func (c *Client) DeleteRBACPermission(ctx context.Context, teamName TeamName, rb return c.Client.Do(req) } -func (c *Client) GetRBACPermission(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRBACPermissionRequest(c.Server, teamName, rbacPermissionID) +func (c *Client) GetTestConnectionForSyncSource(ctx context.Context, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTestConnectionForSyncSourceRequest(c.Server, syncSourceName, syncTestConnectionId) if err != nil { return nil, err } @@ -9727,8 +9438,8 @@ func (c *Client) GetRBACPermission(ctx context.Context, teamName TeamName, rbacP return c.Client.Do(req) } -func (c *Client) UpdateRBACPermissionWithBody(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateRBACPermissionRequestWithBody(c.Server, teamName, rbacPermissionID, contentType, body) +func (c *Client) ListSyncTransformers(ctx context.Context, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncTransformersRequest(c.Server, params) if err != nil { return nil, err } @@ -9739,8 +9450,8 @@ func (c *Client) UpdateRBACPermissionWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) UpdateRBACPermission(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateRBACPermissionRequest(c.Server, teamName, rbacPermissionID, body) +func (c *Client) DeleteSyncTransformer(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSyncTransformerRequest(c.Server, syncTransformerName) if err != nil { return nil, err } @@ -9751,8 +9462,8 @@ func (c *Client) UpdateRBACPermission(ctx context.Context, teamName TeamName, rb return c.Client.Do(req) } -func (c *Client) ListAllRBACRoles(ctx context.Context, teamName TeamName, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListAllRBACRolesRequest(c.Server, teamName, params) +func (c *Client) GetSyncTransformer(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncTransformerRequest(c.Server, syncTransformerName) if err != nil { return nil, err } @@ -9763,8 +9474,8 @@ func (c *Client) ListAllRBACRoles(ctx context.Context, teamName TeamName, params return c.Client.Do(req) } -func (c *Client) CreateRBACRoleWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateRBACRoleRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UpdateSyncTransformerWithBody(ctx context.Context, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTransformerRequestWithBody(c.Server, syncTransformerName, contentType, body) if err != nil { return nil, err } @@ -9775,8 +9486,8 @@ func (c *Client) CreateRBACRoleWithBody(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) CreateRBACRole(ctx context.Context, teamName TeamName, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateRBACRoleRequest(c.Server, teamName, body) +func (c *Client) UpdateSyncTransformer(ctx context.Context, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTransformerRequest(c.Server, syncTransformerName, body) if err != nil { return nil, err } @@ -9787,8 +9498,8 @@ func (c *Client) CreateRBACRole(ctx context.Context, teamName TeamName, body Cre return c.Client.Do(req) } -func (c *Client) DeleteRBACRole(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteRBACRoleRequest(c.Server, teamName, rbacCustomRoleID) +func (c *Client) ListSyncTransformerSyncDestinations(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncTransformerSyncDestinationsRequest(c.Server, syncTransformerName, params) if err != nil { return nil, err } @@ -9799,8 +9510,8 @@ func (c *Client) DeleteRBACRole(ctx context.Context, teamName TeamName, rbacCust return c.Client.Do(req) } -func (c *Client) GetRBACRole(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRBACRoleRequest(c.Server, teamName, rbacCustomRoleID) +func (c *Client) ListSyncTransformerSyncs(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncTransformerSyncsRequest(c.Server, syncTransformerName, params) if err != nil { return nil, err } @@ -9811,8 +9522,8 @@ func (c *Client) GetRBACRole(ctx context.Context, teamName TeamName, rbacCustomR return c.Client.Do(req) } -func (c *Client) UpdateRBACRoleWithBody(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateRBACRoleRequestWithBody(c.Server, teamName, rbacCustomRoleID, contentType, body) +func (c *Client) ListSyncUpgrades(ctx context.Context, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncUpgradesRequest(c.Server, params) if err != nil { return nil, err } @@ -9823,8 +9534,8 @@ func (c *Client) UpdateRBACRoleWithBody(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) UpdateRBACRole(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateRBACRoleRequest(c.Server, teamName, rbacCustomRoleID, body) +func (c *Client) ListSyncs(ctx context.Context, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncsRequest(c.Server, params) if err != nil { return nil, err } @@ -9835,8 +9546,8 @@ func (c *Client) UpdateRBACRole(ctx context.Context, teamName TeamName, rbacCust return c.Client.Do(req) } -func (c *Client) ListReports(ctx context.Context, teamName TeamName, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListReportsRequest(c.Server, teamName, params) +func (c *Client) CreateSyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -9847,8 +9558,8 @@ func (c *Client) ListReports(ctx context.Context, teamName TeamName, params *Lis return c.Client.Do(req) } -func (c *Client) CreateReportWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateReportRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) CreateSync(ctx context.Context, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRequest(c.Server, body) if err != nil { return nil, err } @@ -9859,8 +9570,8 @@ func (c *Client) CreateReportWithBody(ctx context.Context, teamName TeamName, co return c.Client.Do(req) } -func (c *Client) CreateReport(ctx context.Context, teamName TeamName, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateReportRequest(c.Server, teamName, body) +func (c *Client) DeleteSync(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSyncRequest(c.Server, syncName) if err != nil { return nil, err } @@ -9871,8 +9582,8 @@ func (c *Client) CreateReport(ctx context.Context, teamName TeamName, body Creat return c.Client.Do(req) } -func (c *Client) ListReportTemplates(ctx context.Context, teamName TeamName, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListReportTemplatesRequest(c.Server, teamName, params) +func (c *Client) GetSync(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRequest(c.Server, syncName) if err != nil { return nil, err } @@ -9883,8 +9594,8 @@ func (c *Client) ListReportTemplates(ctx context.Context, teamName TeamName, par return c.Client.Do(req) } -func (c *Client) CreateReportTemplateWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateReportTemplateRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UpdateSyncWithBody(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncRequestWithBody(c.Server, syncName, contentType, body) if err != nil { return nil, err } @@ -9895,8 +9606,8 @@ func (c *Client) CreateReportTemplateWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) CreateReportTemplate(ctx context.Context, teamName TeamName, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateReportTemplateRequest(c.Server, teamName, body) +func (c *Client) UpdateSync(ctx context.Context, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncRequest(c.Server, syncName, body) if err != nil { return nil, err } @@ -9907,8 +9618,8 @@ func (c *Client) CreateReportTemplate(ctx context.Context, teamName TeamName, bo return c.Client.Do(req) } -func (c *Client) DeleteReportTemplate(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteReportTemplateRequest(c.Server, teamName, templateId) +func (c *Client) ListSyncRuns(ctx context.Context, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSyncRunsRequest(c.Server, syncName, params) if err != nil { return nil, err } @@ -9919,8 +9630,8 @@ func (c *Client) DeleteReportTemplate(ctx context.Context, teamName TeamName, te return c.Client.Do(req) } -func (c *Client) GetReportTemplate(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetReportTemplateRequest(c.Server, teamName, templateId) +func (c *Client) CreateSyncRun(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRunRequest(c.Server, syncName) if err != nil { return nil, err } @@ -9931,8 +9642,8 @@ func (c *Client) GetReportTemplate(ctx context.Context, teamName TeamName, templ return c.Client.Do(req) } -func (c *Client) UpdateReportTemplateWithBody(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateReportTemplateRequestWithBody(c.Server, teamName, templateId, contentType, body) +func (c *Client) GetSyncRun(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRunRequest(c.Server, syncName, syncRunId) if err != nil { return nil, err } @@ -9943,8 +9654,8 @@ func (c *Client) UpdateReportTemplateWithBody(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) UpdateReportTemplate(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateReportTemplateRequest(c.Server, teamName, templateId, body) +func (c *Client) UpdateSyncRunWithBody(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncRunRequestWithBody(c.Server, syncName, syncRunId, contentType, body) if err != nil { return nil, err } @@ -9955,8 +9666,8 @@ func (c *Client) UpdateReportTemplate(ctx context.Context, teamName TeamName, te return c.Client.Do(req) } -func (c *Client) DeleteReport(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteReportRequest(c.Server, teamName, reportId) +func (c *Client) UpdateSyncRun(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncRunRequest(c.Server, syncName, syncRunId, body) if err != nil { return nil, err } @@ -9967,8 +9678,8 @@ func (c *Client) DeleteReport(ctx context.Context, teamName TeamName, reportId o return c.Client.Do(req) } -func (c *Client) GetReport(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetReportRequest(c.Server, teamName, reportId) +func (c *Client) GetSyncRunLogsLive(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRunLogsLiveRequest(c.Server, syncName, syncRunId, params) if err != nil { return nil, err } @@ -9979,8 +9690,8 @@ func (c *Client) GetReport(ctx context.Context, teamName TeamName, reportId open return c.Client.Do(req) } -func (c *Client) UpdateReportWithBody(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateReportRequestWithBody(c.Server, teamName, reportId, contentType, body) +func (c *Client) GetSyncRunLogsQuery(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRunLogsQueryRequest(c.Server, syncName, syncRunId, params) if err != nil { return nil, err } @@ -9991,8 +9702,8 @@ func (c *Client) UpdateReportWithBody(ctx context.Context, teamName TeamName, re return c.Client.Do(req) } -func (c *Client) UpdateReport(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateReportRequest(c.Server, teamName, reportId, body) +func (c *Client) CreateSyncRunProgressWithBody(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRunProgressRequestWithBody(c.Server, syncName, syncRunId, contentType, body) if err != nil { return nil, err } @@ -10003,8 +9714,8 @@ func (c *Client) UpdateReport(ctx context.Context, teamName TeamName, reportId o return c.Client.Do(req) } -func (c *Client) CreateSyncDestinationTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncDestinationTestConnectionRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) CreateSyncRunProgress(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRunProgressRequest(c.Server, syncName, syncRunId, body) if err != nil { return nil, err } @@ -10015,8 +9726,8 @@ func (c *Client) CreateSyncDestinationTestConnectionWithBody(ctx context.Context return c.Client.Do(req) } -func (c *Client) CreateSyncDestinationTestConnection(ctx context.Context, teamName TeamName, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncDestinationTestConnectionRequest(c.Server, teamName, body) +func (c *Client) GetSyncRunStats(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRunStatsRequest(c.Server, syncName, syncRunId) if err != nil { return nil, err } @@ -10027,8 +9738,8 @@ func (c *Client) CreateSyncDestinationTestConnection(ctx context.Context, teamNa return c.Client.Do(req) } -func (c *Client) GetSyncDestinationTestConnection(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncDestinationTestConnectionRequest(c.Server, teamName, syncDestinationTestConnectionID) +func (c *Client) GetSyncRunTables(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRunTablesRequest(c.Server, syncName, syncRunId, params) if err != nil { return nil, err } @@ -10039,8 +9750,8 @@ func (c *Client) GetSyncDestinationTestConnection(ctx context.Context, teamName return c.Client.Do(req) } -func (c *Client) UpdateSyncTestConnectionForSyncDestinationWithBody(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(c.Server, teamName, syncDestinationTestConnectionID, contentType, body) +func (c *Client) ListTables(ctx context.Context, params *ListTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListTablesRequest(c.Server, params) if err != nil { return nil, err } @@ -10051,8 +9762,8 @@ func (c *Client) UpdateSyncTestConnectionForSyncDestinationWithBody(ctx context. return c.Client.Do(req) } -func (c *Client) UpdateSyncTestConnectionForSyncDestination(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncTestConnectionForSyncDestinationRequest(c.Server, teamName, syncDestinationTestConnectionID, body) +func (c *Client) GetTablesData(ctx context.Context, params *GetTablesDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTablesDataRequest(c.Server, params) if err != nil { return nil, err } @@ -10063,8 +9774,8 @@ func (c *Client) UpdateSyncTestConnectionForSyncDestination(ctx context.Context, return c.Client.Do(req) } -func (c *Client) GetSyncDestinationTestConnectionLogs(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncDestinationTestConnectionLogsRequest(c.Server, teamName, syncDestinationTestConnectionID, params) +func (c *Client) TablesDataActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTablesDataActionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10075,8 +9786,8 @@ func (c *Client) GetSyncDestinationTestConnectionLogs(ctx context.Context, teamN return c.Client.Do(req) } -func (c *Client) GetSyncDestinationTestConnectionLogsLive(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncDestinationTestConnectionLogsLiveRequest(c.Server, teamName, syncDestinationTestConnectionID, params) +func (c *Client) TablesDataAction(ctx context.Context, body TablesDataActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTablesDataActionRequest(c.Server, body) if err != nil { return nil, err } @@ -10087,8 +9798,8 @@ func (c *Client) GetSyncDestinationTestConnectionLogsLive(ctx context.Context, t return c.Client.Do(req) } -func (c *Client) GetSyncDestinationTestConnectionLogsQuery(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncDestinationTestConnectionLogsQueryRequest(c.Server, teamName, syncDestinationTestConnectionID, params) +func (c *Client) GetTablesRelations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTablesRelationsRequest(c.Server) if err != nil { return nil, err } @@ -10099,8 +9810,8 @@ func (c *Client) GetSyncDestinationTestConnectionLogsQuery(ctx context.Context, return c.Client.Do(req) } -func (c *Client) PromoteSyncDestinationTestConnectionWithBody(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPromoteSyncDestinationTestConnectionRequestWithBody(c.Server, teamName, syncDestinationTestConnectionID, contentType, body) +func (c *Client) BatchTableSchemas(ctx context.Context, params *BatchTableSchemasParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewBatchTableSchemasRequest(c.Server, params) if err != nil { return nil, err } @@ -10111,8 +9822,8 @@ func (c *Client) PromoteSyncDestinationTestConnectionWithBody(ctx context.Contex return c.Client.Do(req) } -func (c *Client) PromoteSyncDestinationTestConnection(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPromoteSyncDestinationTestConnectionRequest(c.Server, teamName, syncDestinationTestConnectionID, body) +func (c *Client) TableListColumns(ctx context.Context, tableName TableName, params *TableListColumnsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableListColumnsRequest(c.Server, tableName, params) if err != nil { return nil, err } @@ -10123,8 +9834,8 @@ func (c *Client) PromoteSyncDestinationTestConnection(ctx context.Context, teamN return c.Client.Do(req) } -func (c *Client) ListSyncDestinations(ctx context.Context, teamName TeamName, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncDestinationsRequest(c.Server, teamName, params) +func (c *Client) TableColumnListValues(ctx context.Context, tableName TableName, columnName ColumnName, params *TableColumnListValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableColumnListValuesRequest(c.Server, tableName, columnName, params) if err != nil { return nil, err } @@ -10135,8 +9846,8 @@ func (c *Client) ListSyncDestinations(ctx context.Context, teamName TeamName, pa return c.Client.Do(req) } -func (c *Client) DeleteSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSyncDestinationRequest(c.Server, teamName, syncDestinationName) +func (c *Client) TableListRows(ctx context.Context, tableName TableName, params *TableListRowsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableListRowsRequest(c.Server, tableName, params) if err != nil { return nil, err } @@ -10147,8 +9858,8 @@ func (c *Client) DeleteSyncDestination(ctx context.Context, teamName TeamName, s return c.Client.Do(req) } -func (c *Client) GetSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncDestinationRequest(c.Server, teamName, syncDestinationName) +func (c *Client) TableRowById(ctx context.Context, tableName TableName, tableRowId TableRowId, params *TableRowByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableRowByIdRequest(c.Server, tableName, tableRowId, params) if err != nil { return nil, err } @@ -10159,8 +9870,8 @@ func (c *Client) GetSyncDestination(ctx context.Context, teamName TeamName, sync return c.Client.Do(req) } -func (c *Client) UpdateSyncDestinationWithBody(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncDestinationRequestWithBody(c.Server, teamName, syncDestinationName, contentType, body) +func (c *Client) TableListFilters(ctx context.Context, tableName TableName, params *TableListFiltersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableListFiltersRequest(c.Server, tableName, params) if err != nil { return nil, err } @@ -10171,8 +9882,8 @@ func (c *Client) UpdateSyncDestinationWithBody(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) UpdateSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncDestinationRequest(c.Server, teamName, syncDestinationName, body) +func (c *Client) TableSaveFilterWithBody(ctx context.Context, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableSaveFilterRequestWithBody(c.Server, tableName, contentType, body) if err != nil { return nil, err } @@ -10183,8 +9894,8 @@ func (c *Client) UpdateSyncDestination(ctx context.Context, teamName TeamName, s return c.Client.Do(req) } -func (c *Client) MigrateSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMigrateSyncDestinationRequest(c.Server, teamName, syncDestinationName) +func (c *Client) TableSaveFilter(ctx context.Context, tableName TableName, body TableSaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableSaveFilterRequest(c.Server, tableName, body) if err != nil { return nil, err } @@ -10195,8 +9906,8 @@ func (c *Client) MigrateSyncDestination(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) ListSyncDestinationSyncs(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncDestinationSyncsRequest(c.Server, teamName, syncDestinationName, params) +func (c *Client) TableListFilterTags(ctx context.Context, tableName TableName, params *TableListFilterTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableListFilterTagsRequest(c.Server, tableName, params) if err != nil { return nil, err } @@ -10207,8 +9918,8 @@ func (c *Client) ListSyncDestinationSyncs(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) GetTestConnectionForSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTestConnectionForSyncDestinationRequest(c.Server, teamName, syncDestinationName, syncTestConnectionId) +func (c *Client) TableSchema(ctx context.Context, tableName TableName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTableSchemaRequest(c.Server, tableName) if err != nil { return nil, err } @@ -10219,8 +9930,8 @@ func (c *Client) GetTestConnectionForSyncDestination(ctx context.Context, teamNa return c.Client.Do(req) } -func (c *Client) CreateSyncSourceTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncSourceTestConnectionRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) ListTeams(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListTeamsRequest(c.Server, params) if err != nil { return nil, err } @@ -10231,8 +9942,8 @@ func (c *Client) CreateSyncSourceTestConnectionWithBody(ctx context.Context, tea return c.Client.Do(req) } -func (c *Client) CreateSyncSourceTestConnection(ctx context.Context, teamName TeamName, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncSourceTestConnectionRequest(c.Server, teamName, body) +func (c *Client) DownloadPluginAssetByTeam(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadPluginAssetByTeamRequest(c.Server, teamName, pluginTeam, pluginKind, pluginName, versionName, targetName, params) if err != nil { return nil, err } @@ -10243,8 +9954,8 @@ func (c *Client) CreateSyncSourceTestConnection(ctx context.Context, teamName Te return c.Client.Do(req) } -func (c *Client) GetSyncSourceTestConnection(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncSourceTestConnectionRequest(c.Server, teamName, syncSourceTestConnectionID) +func (c *Client) UpdateSyncTestConnectionForSyncDestinationTeamWithBody(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncDestinationTeamRequestWithBody(c.Server, teamName, syncDestinationTestConnectionID, contentType, body) if err != nil { return nil, err } @@ -10255,8 +9966,8 @@ func (c *Client) GetSyncSourceTestConnection(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) UpdateSyncTestConnectionForSyncSourceWithBody(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(c.Server, teamName, syncSourceTestConnectionID, contentType, body) +func (c *Client) UpdateSyncTestConnectionForSyncDestinationTeam(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncDestinationTeamRequest(c.Server, teamName, syncDestinationTestConnectionID, body) if err != nil { return nil, err } @@ -10267,8 +9978,8 @@ func (c *Client) UpdateSyncTestConnectionForSyncSourceWithBody(ctx context.Conte return c.Client.Do(req) } -func (c *Client) UpdateSyncTestConnectionForSyncSource(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncTestConnectionForSyncSourceRequest(c.Server, teamName, syncSourceTestConnectionID, body) +func (c *Client) UpdateSyncTestConnectionForSyncSourceTeamWithBody(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncSourceTeamRequestWithBody(c.Server, teamName, syncSourceTestConnectionID, contentType, body) if err != nil { return nil, err } @@ -10279,8 +9990,8 @@ func (c *Client) UpdateSyncTestConnectionForSyncSource(ctx context.Context, team return c.Client.Do(req) } -func (c *Client) GetSyncSourceTestConnectionLogs(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncSourceTestConnectionLogsRequest(c.Server, teamName, syncSourceTestConnectionID, params) +func (c *Client) UpdateSyncTestConnectionForSyncSourceTeam(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncTestConnectionForSyncSourceTeamRequest(c.Server, teamName, syncSourceTestConnectionID, body) if err != nil { return nil, err } @@ -10291,8 +10002,8 @@ func (c *Client) GetSyncSourceTestConnectionLogs(ctx context.Context, teamName T return c.Client.Do(req) } -func (c *Client) GetSyncSourceTestConnectionLogsLive(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncSourceTestConnectionLogsLiveRequest(c.Server, teamName, syncSourceTestConnectionID, params) +func (c *Client) CreateSyncRunProgressTeamWithBody(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRunProgressTeamRequestWithBody(c.Server, teamName, syncName, syncRunId, contentType, body) if err != nil { return nil, err } @@ -10303,8 +10014,8 @@ func (c *Client) GetSyncSourceTestConnectionLogsLive(ctx context.Context, teamNa return c.Client.Do(req) } -func (c *Client) GetSyncSourceTestConnectionLogsQuery(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncSourceTestConnectionLogsQueryRequest(c.Server, teamName, syncSourceTestConnectionID, params) +func (c *Client) CreateSyncRunProgressTeam(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRunProgressTeamRequest(c.Server, teamName, syncName, syncRunId, body) if err != nil { return nil, err } @@ -10315,8 +10026,8 @@ func (c *Client) GetSyncSourceTestConnectionLogsQuery(ctx context.Context, teamN return c.Client.Do(req) } -func (c *Client) PromoteSyncSourceTestConnectionWithBody(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPromoteSyncSourceTestConnectionRequestWithBody(c.Server, teamName, syncSourceTestConnectionID, contentType, body) +func (c *Client) GetTeamUsageSummary(ctx context.Context, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamUsageSummaryRequest(c.Server, params) if err != nil { return nil, err } @@ -10327,8 +10038,8 @@ func (c *Client) PromoteSyncSourceTestConnectionWithBody(ctx context.Context, te return c.Client.Do(req) } -func (c *Client) PromoteSyncSourceTestConnection(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPromoteSyncSourceTestConnectionRequest(c.Server, teamName, syncSourceTestConnectionID, body) +func (c *Client) GetGroupedTeamUsageSummary(ctx context.Context, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetGroupedTeamUsageSummaryRequest(c.Server, groupBy, params) if err != nil { return nil, err } @@ -10339,8 +10050,8 @@ func (c *Client) PromoteSyncSourceTestConnection(ctx context.Context, teamName T return c.Client.Do(req) } -func (c *Client) ListSyncSources(ctx context.Context, teamName TeamName, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncSourcesRequest(c.Server, teamName, params) +func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCurrentUserRequest(c.Server) if err != nil { return nil, err } @@ -10351,8 +10062,8 @@ func (c *Client) ListSyncSources(ctx context.Context, teamName TeamName, params return c.Client.Do(req) } -func (c *Client) DeleteSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSyncSourceRequest(c.Server, teamName, syncSourceName) +func (c *Client) UpdateCurrentUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCurrentUserRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10363,8 +10074,8 @@ func (c *Client) DeleteSyncSource(ctx context.Context, teamName TeamName, syncSo return c.Client.Do(req) } -func (c *Client) GetSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncSourceRequest(c.Server, teamName, syncSourceName) +func (c *Client) UpdateCurrentUser(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCurrentUserRequest(c.Server, body) if err != nil { return nil, err } @@ -10375,8 +10086,8 @@ func (c *Client) GetSyncSource(ctx context.Context, teamName TeamName, syncSourc return c.Client.Do(req) } -func (c *Client) UpdateSyncSourceWithBody(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncSourceRequestWithBody(c.Server, teamName, syncSourceName, contentType, body) +func (c *Client) SendAnonymousEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendAnonymousEventRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10387,8 +10098,8 @@ func (c *Client) UpdateSyncSourceWithBody(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) UpdateSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncSourceRequest(c.Server, teamName, syncSourceName, body) +func (c *Client) SendAnonymousEvent(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendAnonymousEventRequest(c.Server, body) if err != nil { return nil, err } @@ -10399,8 +10110,8 @@ func (c *Client) UpdateSyncSource(ctx context.Context, teamName TeamName, syncSo return c.Client.Do(req) } -func (c *Client) MigrateSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMigrateSyncSourceRequest(c.Server, teamName, syncSourceName) +func (c *Client) AuthenticateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthenticateUserRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10411,8 +10122,8 @@ func (c *Client) MigrateSyncSource(ctx context.Context, teamName TeamName, syncS return c.Client.Do(req) } -func (c *Client) ListSyncSourceSyncs(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncSourceSyncsRequest(c.Server, teamName, syncSourceName, params) +func (c *Client) AuthenticateUser(ctx context.Context, body AuthenticateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthenticateUserRequest(c.Server, body) if err != nil { return nil, err } @@ -10423,8 +10134,8 @@ func (c *Client) ListSyncSourceSyncs(ctx context.Context, teamName TeamName, syn return c.Client.Do(req) } -func (c *Client) GetTestConnectionForSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTestConnectionForSyncSourceRequest(c.Server, teamName, syncSourceName, syncTestConnectionId) +func (c *Client) ChangeUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeUserPasswordRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10435,8 +10146,8 @@ func (c *Client) GetTestConnectionForSyncSource(ctx context.Context, teamName Te return c.Client.Do(req) } -func (c *Client) ListSyncTransformers(ctx context.Context, teamName TeamName, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncTransformersRequest(c.Server, teamName, params) +func (c *Client) ChangeUserPassword(ctx context.Context, body ChangeUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeUserPasswordRequest(c.Server, body) if err != nil { return nil, err } @@ -10447,8 +10158,8 @@ func (c *Client) ListSyncTransformers(ctx context.Context, teamName TeamName, pa return c.Client.Do(req) } -func (c *Client) DeleteSyncTransformer(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSyncTransformerRequest(c.Server, teamName, syncTransformerName) +func (c *Client) UpdateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomerRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10459,8 +10170,8 @@ func (c *Client) DeleteSyncTransformer(ctx context.Context, teamName TeamName, s return c.Client.Do(req) } -func (c *Client) GetSyncTransformer(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncTransformerRequest(c.Server, teamName, syncTransformerName) +func (c *Client) UpdateCustomer(ctx context.Context, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomerRequest(c.Server, body) if err != nil { return nil, err } @@ -10471,8 +10182,8 @@ func (c *Client) GetSyncTransformer(ctx context.Context, teamName TeamName, sync return c.Client.Do(req) } -func (c *Client) UpdateSyncTransformerWithBody(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncTransformerRequestWithBody(c.Server, teamName, syncTransformerName, contentType, body) +func (c *Client) SendUserEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendUserEventRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10483,8 +10194,8 @@ func (c *Client) UpdateSyncTransformerWithBody(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) UpdateSyncTransformer(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncTransformerRequest(c.Server, teamName, syncTransformerName, body) +func (c *Client) SendUserEvent(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendUserEventRequest(c.Server, body) if err != nil { return nil, err } @@ -10495,8 +10206,8 @@ func (c *Client) UpdateSyncTransformer(ctx context.Context, teamName TeamName, s return c.Client.Do(req) } -func (c *Client) ListSyncTransformerSyncDestinations(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncTransformerSyncDestinationsRequest(c.Server, teamName, syncTransformerName, params) +func (c *Client) LogoutUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLogoutUserRequest(c.Server) if err != nil { return nil, err } @@ -10507,8 +10218,8 @@ func (c *Client) ListSyncTransformerSyncDestinations(ctx context.Context, teamNa return c.Client.Do(req) } -func (c *Client) ListSyncTransformerSyncs(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncTransformerSyncsRequest(c.Server, teamName, syncTransformerName, params) +func (c *Client) LoginUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLoginUserRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10519,8 +10230,8 @@ func (c *Client) ListSyncTransformerSyncs(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) ListSyncUpgrades(ctx context.Context, teamName TeamName, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncUpgradesRequest(c.Server, teamName, params) +func (c *Client) LoginUser(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLoginUserRequest(c.Server, body) if err != nil { return nil, err } @@ -10531,8 +10242,8 @@ func (c *Client) ListSyncUpgrades(ctx context.Context, teamName TeamName, params return c.Client.Do(req) } -func (c *Client) ListSyncs(ctx context.Context, teamName TeamName, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncsRequest(c.Server, teamName, params) +func (c *Client) UserTOTPDelete(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUserTOTPDeleteRequest(c.Server) if err != nil { return nil, err } @@ -10543,8 +10254,8 @@ func (c *Client) ListSyncs(ctx context.Context, teamName TeamName, params *ListS return c.Client.Do(req) } -func (c *Client) CreateSyncWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UserTOTPSetup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUserTOTPSetupRequest(c.Server) if err != nil { return nil, err } @@ -10555,8 +10266,8 @@ func (c *Client) CreateSyncWithBody(ctx context.Context, teamName TeamName, cont return c.Client.Do(req) } -func (c *Client) CreateSync(ctx context.Context, teamName TeamName, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncRequest(c.Server, teamName, body) +func (c *Client) UserTOTPVerifyWithBody(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUserTOTPVerifyRequestWithBody(c.Server, params, contentType, body) if err != nil { return nil, err } @@ -10567,8 +10278,8 @@ func (c *Client) CreateSync(ctx context.Context, teamName TeamName, body CreateS return c.Client.Do(req) } -func (c *Client) GetTestConnectionConnectorCredentials(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTestConnectionConnectorCredentialsRequest(c.Server, teamName, syncTestConnectionId, connectorID) +func (c *Client) UserTOTPVerify(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUserTOTPVerifyRequest(c.Server, params, body) if err != nil { return nil, err } @@ -10579,8 +10290,8 @@ func (c *Client) GetTestConnectionConnectorCredentials(ctx context.Context, team return c.Client.Do(req) } -func (c *Client) GetTestConnectionConnectorIdentity(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTestConnectionConnectorIdentityRequest(c.Server, teamName, syncTestConnectionId, connectorID) +func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListUsersRequest(c.Server, params) if err != nil { return nil, err } @@ -10591,8 +10302,8 @@ func (c *Client) GetTestConnectionConnectorIdentity(ctx context.Context, teamNam return c.Client.Do(req) } -func (c *Client) DeleteSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSyncRequest(c.Server, teamName, syncName) +func (c *Client) AddUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUserRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10603,8 +10314,8 @@ func (c *Client) DeleteSync(ctx context.Context, teamName TeamName, syncName Syn return c.Client.Do(req) } -func (c *Client) GetSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRequest(c.Server, teamName, syncName) +func (c *Client) AddUser(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUserRequest(c.Server, body) if err != nil { return nil, err } @@ -10615,8 +10326,8 @@ func (c *Client) GetSync(ctx context.Context, teamName TeamName, syncName SyncNa return c.Client.Do(req) } -func (c *Client) UpdateSyncWithBody(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncRequestWithBody(c.Server, teamName, syncName, contentType, body) +func (c *Client) DeleteUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserRequest(c.Server, userID) if err != nil { return nil, err } @@ -10627,8 +10338,8 @@ func (c *Client) UpdateSyncWithBody(ctx context.Context, teamName TeamName, sync return c.Client.Do(req) } -func (c *Client) UpdateSync(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncRequest(c.Server, teamName, syncName, body) +func (c *Client) GetUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserRequest(c.Server, userID) if err != nil { return nil, err } @@ -10639,8 +10350,8 @@ func (c *Client) UpdateSync(ctx context.Context, teamName TeamName, syncName Syn return c.Client.Do(req) } -func (c *Client) ListSyncRuns(ctx context.Context, teamName TeamName, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncRunsRequest(c.Server, teamName, syncName, params) +func (c *Client) UpdateUserWithBody(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserRequestWithBody(c.Server, userID, contentType, body) if err != nil { return nil, err } @@ -10651,8 +10362,8 @@ func (c *Client) ListSyncRuns(ctx context.Context, teamName TeamName, syncName S return c.Client.Do(req) } -func (c *Client) CreateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncRunRequest(c.Server, teamName, syncName) +func (c *Client) UpdateUser(ctx context.Context, userID UserID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserRequest(c.Server, userID, body) if err != nil { return nil, err } @@ -10663,8 +10374,8 @@ func (c *Client) CreateSyncRun(ctx context.Context, teamName TeamName, syncName return c.Client.Do(req) } -func (c *Client) GetSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunRequest(c.Server, teamName, syncName, syncRunId) +func (c *Client) DeleteUserTOTP(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserTOTPRequest(c.Server, userID) if err != nil { return nil, err } @@ -10675,8 +10386,8 @@ func (c *Client) GetSyncRun(ctx context.Context, teamName TeamName, syncName Syn return c.Client.Do(req) } -func (c *Client) UpdateSyncRunWithBody(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncRunRequestWithBody(c.Server, teamName, syncName, syncRunId, contentType, body) +func (c *Client) CreateV2SyncDestinationTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncDestinationTestConnectionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10687,8 +10398,8 @@ func (c *Client) UpdateSyncRunWithBody(ctx context.Context, teamName TeamName, s return c.Client.Do(req) } -func (c *Client) UpdateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncRunRequest(c.Server, teamName, syncName, syncRunId, body) +func (c *Client) CreateV2SyncDestinationTestConnection(ctx context.Context, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncDestinationTestConnectionRequest(c.Server, body) if err != nil { return nil, err } @@ -10699,8 +10410,8 @@ func (c *Client) UpdateSyncRun(ctx context.Context, teamName TeamName, syncName return c.Client.Do(req) } -func (c *Client) GetSyncRunConnectorCredentials(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunConnectorCredentialsRequest(c.Server, teamName, syncName, syncRunId, connectorID) +func (c *Client) GetV2SyncDestinations(ctx context.Context, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetV2SyncDestinationsRequest(c.Server, params) if err != nil { return nil, err } @@ -10711,8 +10422,8 @@ func (c *Client) GetSyncRunConnectorCredentials(ctx context.Context, teamName Te return c.Client.Do(req) } -func (c *Client) GetSyncRunConnectorIdentity(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunConnectorIdentityRequest(c.Server, teamName, syncName, syncRunId, connectorID) +func (c *Client) CreateV2SyncDestinationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncDestinationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10723,8 +10434,8 @@ func (c *Client) GetSyncRunConnectorIdentity(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) GetSyncRunLogs(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunLogsRequest(c.Server, teamName, syncName, syncRunId, params) +func (c *Client) CreateV2SyncDestination(ctx context.Context, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncDestinationRequest(c.Server, body) if err != nil { return nil, err } @@ -10735,8 +10446,8 @@ func (c *Client) GetSyncRunLogs(ctx context.Context, teamName TeamName, syncName return c.Client.Do(req) } -func (c *Client) GetSyncRunLogsLive(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunLogsLiveRequest(c.Server, teamName, syncName, syncRunId, params) +func (c *Client) DeleteV2SyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteV2SyncDestinationRequest(c.Server, syncDestinationName) if err != nil { return nil, err } @@ -10747,8 +10458,8 @@ func (c *Client) GetSyncRunLogsLive(ctx context.Context, teamName TeamName, sync return c.Client.Do(req) } -func (c *Client) GetSyncRunLogsQuery(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunLogsQueryRequest(c.Server, teamName, syncName, syncRunId, params) +func (c *Client) GetV2SyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetV2SyncDestinationRequest(c.Server, syncDestinationName) if err != nil { return nil, err } @@ -10759,8 +10470,8 @@ func (c *Client) GetSyncRunLogsQuery(ctx context.Context, teamName TeamName, syn return c.Client.Do(req) } -func (c *Client) CreateSyncRunProgressWithBody(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncRunProgressRequestWithBody(c.Server, teamName, syncName, syncRunId, contentType, body) +func (c *Client) PatchV2SyncDestinationWithBody(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchV2SyncDestinationRequestWithBody(c.Server, syncDestinationName, contentType, body) if err != nil { return nil, err } @@ -10771,8 +10482,8 @@ func (c *Client) CreateSyncRunProgressWithBody(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) CreateSyncRunProgress(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncRunProgressRequest(c.Server, teamName, syncName, syncRunId, body) +func (c *Client) PatchV2SyncDestination(ctx context.Context, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchV2SyncDestinationRequest(c.Server, syncDestinationName, body) if err != nil { return nil, err } @@ -10783,8 +10494,8 @@ func (c *Client) CreateSyncRunProgress(ctx context.Context, teamName TeamName, s return c.Client.Do(req) } -func (c *Client) GetSyncRunStats(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunStatsRequest(c.Server, teamName, syncName, syncRunId) +func (c *Client) CreateV2SyncIntegrationTestConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncIntegrationTestConnectionRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10795,8 +10506,8 @@ func (c *Client) GetSyncRunStats(ctx context.Context, teamName TeamName, syncNam return c.Client.Do(req) } -func (c *Client) GetSyncRunTables(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRunTablesRequest(c.Server, teamName, syncName, syncRunId, params) +func (c *Client) CreateV2SyncIntegrationTestConnection(ctx context.Context, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncIntegrationTestConnectionRequest(c.Server, body) if err != nil { return nil, err } @@ -10807,8 +10518,8 @@ func (c *Client) GetSyncRunTables(ctx context.Context, teamName TeamName, syncNa return c.Client.Do(req) } -func (c *Client) ListTablesTeam(ctx context.Context, teamName TeamName, params *ListTablesTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTablesTeamRequest(c.Server, teamName, params) +func (c *Client) ListV2SyncIntegrations(ctx context.Context, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListV2SyncIntegrationsRequest(c.Server, params) if err != nil { return nil, err } @@ -10819,8 +10530,8 @@ func (c *Client) ListTablesTeam(ctx context.Context, teamName TeamName, params * return c.Client.Do(req) } -func (c *Client) BatchTableSchemasTeam(ctx context.Context, teamName TeamName, params *BatchTableSchemasTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewBatchTableSchemasTeamRequest(c.Server, teamName, params) +func (c *Client) CreateV2SyncIntegrationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncIntegrationRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -10831,8 +10542,8 @@ func (c *Client) BatchTableSchemasTeam(ctx context.Context, teamName TeamName, p return c.Client.Do(req) } -func (c *Client) TableListColumnsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListColumnsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableListColumnsTeamRequest(c.Server, teamName, tableName, params) +func (c *Client) CreateV2SyncIntegration(ctx context.Context, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateV2SyncIntegrationRequest(c.Server, body) if err != nil { return nil, err } @@ -10843,8 +10554,8 @@ func (c *Client) TableListColumnsTeam(ctx context.Context, teamName TeamName, ta return c.Client.Do(req) } -func (c *Client) TableColumnListValuesTeam(ctx context.Context, teamName TeamName, tableName TableName, columnName ColumnName, params *TableColumnListValuesTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableColumnListValuesTeamRequest(c.Server, teamName, tableName, columnName, params) +func (c *Client) DeleteV2SyncIntegration(ctx context.Context, syncName SyncName, params *DeleteV2SyncIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteV2SyncIntegrationRequest(c.Server, syncName, params) if err != nil { return nil, err } @@ -10855,8 +10566,8 @@ func (c *Client) TableColumnListValuesTeam(ctx context.Context, teamName TeamNam return c.Client.Do(req) } -func (c *Client) TableListRowsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRowsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableListRowsTeamRequest(c.Server, teamName, tableName, params) +func (c *Client) GetV2SyncIntegration(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetV2SyncIntegrationRequest(c.Server, syncName) if err != nil { return nil, err } @@ -10867,8 +10578,8 @@ func (c *Client) TableListRowsTeam(ctx context.Context, teamName TeamName, table return c.Client.Do(req) } -func (c *Client) TableRowByIdTeam(ctx context.Context, teamName TeamName, tableName TableName, tableRowId TableRowId, params *TableRowByIdTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableRowByIdTeamRequest(c.Server, teamName, tableName, tableRowId, params) +func (c *Client) UpdateV2SyncIntegrationWithBody(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateV2SyncIntegrationRequestWithBody(c.Server, syncName, contentType, body) if err != nil { return nil, err } @@ -10879,8 +10590,8 @@ func (c *Client) TableRowByIdTeam(ctx context.Context, teamName TeamName, tableN return c.Client.Do(req) } -func (c *Client) TableListFiltersTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFiltersTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableListFiltersTeamRequest(c.Server, teamName, tableName, params) +func (c *Client) UpdateV2SyncIntegration(ctx context.Context, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateV2SyncIntegrationRequest(c.Server, syncName, body) if err != nil { return nil, err } @@ -10891,708 +10602,362 @@ func (c *Client) TableListFiltersTeam(ctx context.Context, teamName TeamName, ta return c.Client.Do(req) } -func (c *Client) TableSaveFilterTeamWithBody(ctx context.Context, teamName TeamName, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableSaveFilterTeamRequestWithBody(c.Server, teamName, tableName, 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) -} +// NewIndexRequest generates requests for Index +func NewIndexRequest(server string) (*http.Request, error) { + var err error -func (c *Client) TableSaveFilterTeam(ctx context.Context, teamName TeamName, tableName TableName, body TableSaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableSaveFilterTeamRequest(c.Server, teamName, tableName, body) + serverURL, err := url.Parse(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) TableListFilterTagsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableListFilterTagsTeamRequest(c.Server, teamName, tableName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + operationPath := fmt.Sprintf("/") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) TableListRelationsTeam(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRelationsTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableListRelationsTeamRequest(c.Server, teamName, tableName, params) + queryURL, err := serverURL.Parse(operationPath) 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) TableSchemaTeam(ctx context.Context, teamName TeamName, tableName TableName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTableSchemaTeamRequest(c.Server, teamName, tableName) + req, err := http.NewRequest("GET", queryURL.String(), nil) 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) GetTeamUsageSummary(ctx context.Context, teamName TeamName, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTeamUsageSummaryRequest(c.Server, teamName, 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) + return req, nil } -func (c *Client) GetGroupedTeamUsageSummary(ctx context.Context, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetGroupedTeamUsageSummaryRequest(c.Server, teamName, groupBy, 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) -} +// NewListAllAlertsRequest generates requests for ListAllAlerts +func NewListAllAlertsRequest(server string, params *ListAllAlertsParams) (*http.Request, error) { + var err error -func (c *Client) ListUsersByTeam(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListUsersByTeamRequest(c.Server, teamName, params) + serverURL, err := url.Parse(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) UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUploadImageRequestWithBody(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 + operationPath := fmt.Sprintf("/alerts") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) UploadImage(ctx context.Context, body UploadImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUploadImageRequest(c.Server, body) + queryURL, err := serverURL.Parse(operationPath) 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) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCurrentUserRequest(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) -} + if params != nil { + queryValues := queryURL.Query() -func (c *Client) UpdateCurrentUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCurrentUserRequestWithBody(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) -} + if params.PerPage != nil { -func (c *Client) UpdateCurrentUser(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCurrentUserRequest(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) -} + 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) + } + } + } -func (c *Client) SendAnonymousEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendAnonymousEventRequestWithBody(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) SendAnonymousEvent(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendAnonymousEventRequest(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) -} + if params.Page != nil { -func (c *Client) AuthenticateLocalUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateLocalUserRequestWithBody(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) -} + 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) + } + } + } -func (c *Client) AuthenticateLocalUser(ctx context.Context, body AuthenticateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAuthenticateLocalUserRequest(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) ChangeLocalUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChangeLocalUserPasswordRequestWithBody(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) -} + if params.AlertStates != nil { -func (c *Client) ChangeLocalUserPassword(ctx context.Context, body ChangeLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChangeLocalUserPasswordRequest(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) -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state", runtime.ParamLocationQuery, params.AlertStates); 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) + } + } + } -func (c *Client) UpdateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCustomerRequestWithBody(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) UpdateCustomer(ctx context.Context, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCustomerRequest(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 + if params.Enabled != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); 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.QueryTags != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.QueryTags); 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() } - return c.Client.Do(req) -} -func (c *Client) SendUserEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendUserEventRequestWithBody(c.Server, contentType, body) + req, err := http.NewRequest("GET", queryURL.String(), nil) 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) + + return req, nil } -func (c *Client) SendUserEvent(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendUserEventRequest(c.Server, body) +// NewTestUnsavedAlertRequest calls the generic TestUnsavedAlert builder with application/json body +func NewTestUnsavedAlertRequest(server string, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(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) + bodyReader = bytes.NewReader(buf) + return NewTestUnsavedAlertRequestWithBody(server, params, "application/json", bodyReader) } -func (c *Client) ListCurrentUserInvitations(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListCurrentUserInvitationsRequest(c.Server, params) +// NewTestUnsavedAlertRequestWithBody generates requests for TestUnsavedAlert with any type of body +func NewTestUnsavedAlertRequestWithBody(server string, params *TestUnsavedAlertParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/alerts/test") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) GetCurrentLocalUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCurrentLocalUserRequest(c.Server) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + if params != nil { + queryValues := queryURL.Query() + + if params.QueryID != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "query_id", runtime.ParamLocationQuery, *params.QueryID); 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() } - return c.Client.Do(req) -} -func (c *Client) LogoutUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLogoutUserRequest(c.Server) + req, err := http.NewRequest("POST", queryURL.String(), 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) + + req.Header.Add("Content-Type", contentType) + + return req, nil } -func (c *Client) LoginUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLoginUserRequestWithBody(c.Server, contentType, body) +// NewListAPIKeysRequest generates requests for ListAPIKeys +func NewListAPIKeysRequest(server string, params *ListAPIKeysParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/apikeys") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) LoginUser(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLoginUserRequest(c.Server, body) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + if params != nil { + queryValues := queryURL.Query() + + 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.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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() } - return c.Client.Do(req) -} -func (c *Client) GetCurrentUserMemberships(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCurrentUserMembershipsRequest(c.Server, params) + req, err := http.NewRequest("GET", queryURL.String(), nil) 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) + + return req, nil } -func (c *Client) ResetLocalUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewResetLocalUserPasswordRequestWithBody(c.Server, contentType, body) +// NewCreateAPIKeyRequest calls the generic CreateAPIKey builder with application/json body +func NewCreateAPIKeyRequest(server string, body CreateAPIKeyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(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) + bodyReader = bytes.NewReader(buf) + return NewCreateAPIKeyRequestWithBody(server, "application/json", bodyReader) } -func (c *Client) ResetLocalUserPassword(ctx context.Context, body ResetLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewResetLocalUserPasswordRequest(c.Server, body) +// NewCreateAPIKeyRequestWithBody generates requests for CreateAPIKey with any type of body +func NewCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/apikeys") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) CreateUserToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateUserTokenRequest(c.Server) + queryURL, err := serverURL.Parse(operationPath) 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) UserTOTPDelete(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPDeleteRequest(c.Server) + req, err := http.NewRequest("POST", queryURL.String(), 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) + + req.Header.Add("Content-Type", contentType) + + return req, nil } -func (c *Client) UserTOTPSetup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPSetupRequest(c.Server) +// NewDeleteAPIKeyRequest generates requests for DeleteAPIKey +func NewDeleteAPIKeyRequest(server string, apiKeyID APIKeyID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "apikey_id", runtime.ParamLocationPath, apiKeyID) 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) UserTOTPVerifyWithBody(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPVerifyRequestWithBody(c.Server, params, contentType, body) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/apikeys/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) UserTOTPVerify(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPVerifyRequest(c.Server, params, body) + queryURL, err := serverURL.Parse(operationPath) 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) DeleteUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteUserRequest(c.Server, userID) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) 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) + + return req, nil } -func (c *Client) CreateV2SyncDestinationTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncDestinationTestConnectionRequestWithBody(c.Server, teamName, contentType, body) +// NewListAuditLogsRequest generates requests for ListAuditLogs +func NewListAuditLogsRequest(server string, params *ListAuditLogsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err + + operationPath := fmt.Sprintf("/audit-logs") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) CreateV2SyncDestinationTestConnection(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncDestinationTestConnectionRequest(c.Server, teamName, 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) GetV2SyncDestinations(ctx context.Context, teamName TeamName, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetV2SyncDestinationsRequest(c.Server, teamName, 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) CreateV2SyncDestinationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncDestinationRequestWithBody(c.Server, teamName, 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) CreateV2SyncDestination(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncDestinationRequest(c.Server, teamName, 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) DeleteV2SyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteV2SyncDestinationRequest(c.Server, teamName, syncDestinationName) - 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) GetV2SyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetV2SyncDestinationRequest(c.Server, teamName, syncDestinationName) - 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) PatchV2SyncDestinationWithBody(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchV2SyncDestinationRequestWithBody(c.Server, teamName, syncDestinationName, 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) PatchV2SyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchV2SyncDestinationRequest(c.Server, teamName, syncDestinationName, 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) CreateV2SyncIntegrationTestConnectionWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncIntegrationTestConnectionRequestWithBody(c.Server, teamName, 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) CreateV2SyncIntegrationTestConnection(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncIntegrationTestConnectionRequest(c.Server, teamName, 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) ListV2SyncIntegrations(ctx context.Context, teamName TeamName, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListV2SyncIntegrationsRequest(c.Server, teamName, 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) CreateV2SyncIntegrationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncIntegrationRequestWithBody(c.Server, teamName, 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) CreateV2SyncIntegration(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateV2SyncIntegrationRequest(c.Server, teamName, 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) DeleteV2SyncIntegration(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteV2SyncIntegrationRequest(c.Server, teamName, syncName) - 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) GetV2SyncIntegration(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetV2SyncIntegrationRequest(c.Server, teamName, syncName) - 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) UpdateV2SyncIntegrationWithBody(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateV2SyncIntegrationRequestWithBody(c.Server, teamName, syncName, 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) UpdateV2SyncIntegration(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateV2SyncIntegrationRequest(c.Server, teamName, syncName, 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) -} - -// NewIndexRequest generates requests for Index -func NewIndexRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/") - 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 -} - -// NewListAuditLogsRequest generates requests for ListAuditLogs -func NewListAuditLogsRequest(server string, params *ListAuditLogsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/audit-logs") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } @@ -11648,22 +11013,6 @@ func NewListAuditLogsRequest(server string, params *ListAuditLogsParams) (*http. } - if params.TeamName != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "team_name", runtime.ParamLocationQuery, *params.TeamName); 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.EventType != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "event_type", runtime.ParamLocationQuery, *params.EventType); err != nil { @@ -11805,62 +11154,8 @@ func NewGetAuditLogRequest(server string, id openapi_types.UUID) (*http.Request, return req, nil } -// NewHealthCheckRequest generates requests for HealthCheck -func NewHealthCheckRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/healthcheck") - 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 -} - -// NewHealthCheckHeadRequest generates requests for HealthCheckHead -func NewHealthCheckHeadRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/healthcheck") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("HEAD", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAssetViewGetStatusRequest generates requests for AssetViewGetStatus -func NewAssetViewGetStatusRequest(server string) (*http.Request, error) { +// NewGetSAMLRequest generates requests for GetSAML +func NewGetSAMLRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -11868,7 +11163,7 @@ func NewAssetViewGetStatusRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/manage/assetview") + operationPath := fmt.Sprintf("/auth/saml") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11886,35 +11181,19 @@ func NewAssetViewGetStatusRequest(server string) (*http.Request, error) { return req, nil } -// NewAssetViewTriggerRequest generates requests for AssetViewTrigger -func NewAssetViewTriggerRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/manage/assetview") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) +// NewUpdateSAMLRequest calls the generic UpdateSAML builder with application/json body +func NewUpdateSAMLRequest(server string, body UpdateSAMLJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewUpdateSAMLRequestWithBody(server, "application/json", bodyReader) } -// NewAssetViewListLogsRequest generates requests for AssetViewListLogs -func NewAssetViewListLogsRequest(server string, params *AssetViewListLogsParams) (*http.Request, error) { +// NewUpdateSAMLRequestWithBody generates requests for UpdateSAML with any type of body +func NewUpdateSAMLRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -11922,7 +11201,7 @@ func NewAssetViewListLogsRequest(server string, params *AssetViewListLogsParams) return nil, err } - operationPath := fmt.Sprintf("/manage/assetview/logs") + operationPath := fmt.Sprintf("/auth/saml") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11932,108 +11211,29 @@ func NewAssetViewListLogsRequest(server string, params *AssetViewListLogsParams) return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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.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.AssetViewRunTypes != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.AssetViewRunTypes); 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 -} - -// NewManageGetSAMLRequest generates requests for ManageGetSAML -func NewManageGetSAMLRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/manage/auth/saml") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewManageUpdateSAMLRequest calls the generic ManageUpdateSAML builder with application/json body -func NewManageUpdateSAMLRequest(server string, body ManageUpdateSAMLJSONRequestBody) (*http.Request, error) { +// NewDeleteSAMLRolloverCertificateRequest calls the generic DeleteSAMLRolloverCertificate builder with application/json body +func NewDeleteSAMLRolloverCertificateRequest(server string, body DeleteSAMLRolloverCertificateJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewManageUpdateSAMLRequestWithBody(server, "application/json", bodyReader) + return NewDeleteSAMLRolloverCertificateRequestWithBody(server, "application/json", bodyReader) } -// NewManageUpdateSAMLRequestWithBody generates requests for ManageUpdateSAML with any type of body -func NewManageUpdateSAMLRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteSAMLRolloverCertificateRequestWithBody generates requests for DeleteSAMLRolloverCertificate with any type of body +func NewDeleteSAMLRolloverCertificateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12041,7 +11241,7 @@ func NewManageUpdateSAMLRequestWithBody(server string, contentType string, body return nil, err } - operationPath := fmt.Sprintf("/manage/auth/saml") + operationPath := fmt.Sprintf("/auth/saml/rollover") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12051,7 +11251,7 @@ func NewManageUpdateSAMLRequestWithBody(server string, contentType string, body return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -12061,8 +11261,8 @@ func NewManageUpdateSAMLRequestWithBody(server string, contentType string, body return req, nil } -// NewManageGetPlatformRegistryRequest generates requests for ManageGetPlatformRegistry -func NewManageGetPlatformRegistryRequest(server string) (*http.Request, error) { +// NewCreateSAMLRolloverCertificateRequest generates requests for CreateSAMLRolloverCertificate +func NewCreateSAMLRolloverCertificateRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12070,7 +11270,7 @@ func NewManageGetPlatformRegistryRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/manage/register-platform") + operationPath := fmt.Sprintf("/auth/saml/rollover") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12080,7 +11280,7 @@ func NewManageGetPlatformRegistryRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), nil) if err != nil { return nil, err } @@ -12088,19 +11288,19 @@ func NewManageGetPlatformRegistryRequest(server string) (*http.Request, error) { return req, nil } -// NewManageRegisterPlatformRequest calls the generic ManageRegisterPlatform builder with application/json body -func NewManageRegisterPlatformRequest(server string, body ManageRegisterPlatformJSONRequestBody) (*http.Request, error) { +// NewPromoteSAMLRolloverCertificateRequest calls the generic PromoteSAMLRolloverCertificate builder with application/json body +func NewPromoteSAMLRolloverCertificateRequest(server string, body PromoteSAMLRolloverCertificateJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewManageRegisterPlatformRequestWithBody(server, "application/json", bodyReader) + return NewPromoteSAMLRolloverCertificateRequestWithBody(server, "application/json", bodyReader) } -// NewManageRegisterPlatformRequestWithBody generates requests for ManageRegisterPlatform with any type of body -func NewManageRegisterPlatformRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPromoteSAMLRolloverCertificateRequestWithBody generates requests for PromoteSAMLRolloverCertificate with any type of body +func NewPromoteSAMLRolloverCertificateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12108,7 +11308,7 @@ func NewManageRegisterPlatformRequestWithBody(server string, contentType string, return nil, err } - operationPath := fmt.Sprintf("/manage/register-platform") + operationPath := fmt.Sprintf("/auth/saml/rollover/promote") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12118,7 +11318,7 @@ func NewManageRegisterPlatformRequestWithBody(server string, contentType string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -12128,19 +11328,19 @@ func NewManageRegisterPlatformRequestWithBody(server string, contentType string, return req, nil } -// NewManageRegisterPlatformWithOfflineLicenseRequest calls the generic ManageRegisterPlatformWithOfflineLicense builder with application/json body -func NewManageRegisterPlatformWithOfflineLicenseRequest(server string, body ManageRegisterPlatformWithOfflineLicenseJSONRequestBody) (*http.Request, error) { +// NewCreateConversationRequest calls the generic CreateConversation builder with application/json body +func NewCreateConversationRequest(server string, body CreateConversationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewManageRegisterPlatformWithOfflineLicenseRequestWithBody(server, "application/json", bodyReader) + return NewCreateConversationRequestWithBody(server, "application/json", bodyReader) } -// NewManageRegisterPlatformWithOfflineLicenseRequestWithBody generates requests for ManageRegisterPlatformWithOfflineLicense with any type of body -func NewManageRegisterPlatformWithOfflineLicenseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateConversationRequestWithBody generates requests for CreateConversation with any type of body +func NewCreateConversationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12148,7 +11348,7 @@ func NewManageRegisterPlatformWithOfflineLicenseRequestWithBody(server string, c return nil, err } - operationPath := fmt.Sprintf("/manage/register-platform/offline") + operationPath := fmt.Sprintf("/conversations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12168,16 +11368,23 @@ func NewManageRegisterPlatformWithOfflineLicenseRequestWithBody(server string, c return req, nil } -// NewGetSettingsRequest generates requests for GetSettings -func NewGetSettingsRequest(server string) (*http.Request, error) { +// NewGetConversationRequest generates requests for GetConversation +func NewGetConversationRequest(server string, conversationID ConversationID) (*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("/manage/settings") + operationPath := fmt.Sprintf("/conversations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12195,27 +11402,34 @@ func NewGetSettingsRequest(server string) (*http.Request, error) { return req, nil } -// NewUpdateSettingsRequest calls the generic UpdateSettings builder with application/json body -func NewUpdateSettingsRequest(server string, body UpdateSettingsJSONRequestBody) (*http.Request, error) { +// NewSendMessageRequest calls the generic SendMessage builder with application/json body +func NewSendMessageRequest(server string, conversationID ConversationID, body SendMessageJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSettingsRequestWithBody(server, "application/json", bodyReader) + return NewSendMessageRequestWithBody(server, conversationID, "application/json", bodyReader) } -// NewUpdateSettingsRequestWithBody generates requests for UpdateSettings with any type of body -func NewUpdateSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewSendMessageRequestWithBody generates requests for SendMessage with any type of body +func NewSendMessageRequestWithBody(server string, conversationID ConversationID, contentType string, body io.Reader) (*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("/manage/settings") + operationPath := fmt.Sprintf("/conversations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12225,7 +11439,7 @@ func NewUpdateSettingsRequestWithBody(server string, contentType string, body io return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12235,8 +11449,8 @@ func NewUpdateSettingsRequestWithBody(server string, contentType string, body io return req, nil } -// NewManageListAllTeamsRequest generates requests for ManageListAllTeams -func NewManageListAllTeamsRequest(server string, params *ManageListAllTeamsParams) (*http.Request, error) { +// NewListAllCustomColumnsRequest generates requests for ListAllCustomColumns +func NewListAllCustomColumnsRequest(server string, params *ListAllCustomColumnsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12244,7 +11458,7 @@ func NewManageListAllTeamsRequest(server string, params *ManageListAllTeamsParam return nil, err } - operationPath := fmt.Sprintf("/manage/teams") + operationPath := fmt.Sprintf("/custom-columns") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12289,6 +11503,54 @@ func NewManageListAllTeamsRequest(server string, params *ManageListAllTeamsParam } + if params.CustomColumnSortBys != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.CustomColumnSortBys); 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.CustomColumnSortDirections != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.CustomColumnSortDirections); 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.SearchTerm != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); 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() } @@ -12300,13 +11562,53 @@ func NewManageListAllTeamsRequest(server string, params *ManageListAllTeamsParam return req, nil } -// NewManageDeleteTeamRequest generates requests for ManageDeleteTeam -func NewManageDeleteTeamRequest(server string, teamName TeamName) (*http.Request, error) { +// NewSaveCustomColumnRequest calls the generic SaveCustomColumn builder with application/json body +func NewSaveCustomColumnRequest(server string, body SaveCustomColumnJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSaveCustomColumnRequestWithBody(server, "application/json", bodyReader) +} + +// NewSaveCustomColumnRequestWithBody generates requests for SaveCustomColumn with any type of body +func NewSaveCustomColumnRequestWithBody(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("/custom-columns") + 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 +} + +// NewDeleteCustomColumnRequest generates requests for DeleteCustomColumn +func NewDeleteCustomColumnRequest(server string, customColumnID CustomColumnID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) if err != nil { return nil, err } @@ -12316,7 +11618,7 @@ func NewManageDeleteTeamRequest(server string, teamName TeamName) (*http.Request return nil, err } - operationPath := fmt.Sprintf("/manage/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/custom-columns/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12334,13 +11636,13 @@ func NewManageDeleteTeamRequest(server string, teamName TeamName) (*http.Request return req, nil } -// NewManageGetTeamRequest generates requests for ManageGetTeam -func NewManageGetTeamRequest(server string, teamName TeamName) (*http.Request, error) { +// NewGetCustomColumnRequest generates requests for GetCustomColumn +func NewGetCustomColumnRequest(server string, customColumnID CustomColumnID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) if err != nil { return nil, err } @@ -12350,7 +11652,7 @@ func NewManageGetTeamRequest(server string, teamName TeamName) (*http.Request, e return nil, err } - operationPath := fmt.Sprintf("/manage/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/custom-columns/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12368,24 +11670,24 @@ func NewManageGetTeamRequest(server string, teamName TeamName) (*http.Request, e return req, nil } -// NewManageRemoveTeamMemberRequest calls the generic ManageRemoveTeamMember builder with application/json body -func NewManageRemoveTeamMemberRequest(server string, teamName TeamName, body ManageRemoveTeamMemberJSONRequestBody) (*http.Request, error) { +// NewUpdateCustomColumnRequest calls the generic UpdateCustomColumn builder with application/json body +func NewUpdateCustomColumnRequest(server string, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewManageRemoveTeamMemberRequestWithBody(server, teamName, "application/json", bodyReader) + return NewUpdateCustomColumnRequestWithBody(server, customColumnID, "application/json", bodyReader) } -// NewManageRemoveTeamMemberRequestWithBody generates requests for ManageRemoveTeamMember with any type of body -func NewManageRemoveTeamMemberRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateCustomColumnRequestWithBody generates requests for UpdateCustomColumn with any type of body +func NewUpdateCustomColumnRequestWithBody(server string, customColumnID CustomColumnID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) if err != nil { return nil, err } @@ -12395,7 +11697,7 @@ func NewManageRemoveTeamMemberRequestWithBody(server string, teamName TeamName, return nil, err } - operationPath := fmt.Sprintf("/manage/teams/%s/members", pathParam0) + operationPath := fmt.Sprintf("/custom-columns/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12405,7 +11707,7 @@ func NewManageRemoveTeamMemberRequestWithBody(server string, teamName TeamName, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -12415,23 +11717,16 @@ func NewManageRemoveTeamMemberRequestWithBody(server string, teamName TeamName, return req, nil } -// NewManageListTeamMembersRequest generates requests for ManageListTeamMembers -func NewManageListTeamMembersRequest(server string, teamName TeamName, params *ManageListTeamMembersParams) (*http.Request, error) { +// NewListFiltersRequest generates requests for ListFilters +func NewListFiltersRequest(server string, params *ListFiltersParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/manage/teams/%s/members", pathParam0) + operationPath := fmt.Sprintf("/filters") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12444,9 +11739,9 @@ func NewManageListTeamMembersRequest(server string, teamName TeamName, params *M if params != nil { queryValues := queryURL.Query() - if params.Page != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != 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 @@ -12460,9 +11755,9 @@ func NewManageListTeamMembersRequest(server string, teamName TeamName, params *M } - if params.PerPage != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != 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 @@ -12476,9 +11771,9 @@ func NewManageListTeamMembersRequest(server string, teamName TeamName, params *M } - if params.UserSearch != nil { + if params.FilterTags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_search", runtime.ParamLocationQuery, *params.UserSearch); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.FilterTags); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12492,9 +11787,9 @@ func NewManageListTeamMembersRequest(server string, teamName TeamName, params *M } - if params.Role != nil { + if params.NameFilter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name_filter", runtime.ParamLocationQuery, *params.NameFilter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12508,9 +11803,9 @@ func NewManageListTeamMembersRequest(server string, teamName TeamName, params *M } - if params.CustomRoleId != nil { + if params.ExpressionFilter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "custom_role_id", runtime.ParamLocationQuery, *params.CustomRoleId); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expression_filter", runtime.ParamLocationQuery, *params.ExpressionFilter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12535,55 +11830,8 @@ func NewManageListTeamMembersRequest(server string, teamName TeamName, params *M return req, nil } -// NewManageAddTeamMemberRequest calls the generic ManageAddTeamMember builder with application/json body -func NewManageAddTeamMemberRequest(server string, teamName TeamName, body ManageAddTeamMemberJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewManageAddTeamMemberRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewManageAddTeamMemberRequestWithBody generates requests for ManageAddTeamMember with any type of body -func NewManageAddTeamMemberRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/manage/teams/%s/members", 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 -} - -// NewListLocalUsersRequest generates requests for ListLocalUsers -func NewListLocalUsersRequest(server string, params *ListLocalUsersParams) (*http.Request, error) { +// NewListFilterTagsRequest generates requests for ListFilterTags +func NewListFilterTagsRequest(server string, params *ListFilterTagsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12591,7 +11839,7 @@ func NewListLocalUsersRequest(server string, params *ListLocalUsersParams) (*htt return nil, err } - operationPath := fmt.Sprintf("/manage/users") + operationPath := fmt.Sprintf("/filters/tags") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12647,53 +11895,13 @@ func NewListLocalUsersRequest(server string, params *ListLocalUsersParams) (*htt return req, nil } -// NewAddLocalUserRequest calls the generic AddLocalUser builder with application/json body -func NewAddLocalUserRequest(server string, body AddLocalUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAddLocalUserRequestWithBody(server, "application/json", bodyReader) -} - -// NewAddLocalUserRequestWithBody generates requests for AddLocalUser with any type of body -func NewAddLocalUserRequestWithBody(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("/manage/users/add") - 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 -} - -// NewDeleteLocalUserRequest generates requests for DeleteLocalUser -func NewDeleteLocalUserRequest(server string, userID UserID) (*http.Request, error) { +// NewDeleteFilterRequest generates requests for DeleteFilter +func NewDeleteFilterRequest(server string, filterID FilterID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "filter_id", runtime.ParamLocationPath, filterID) if err != nil { return nil, err } @@ -12703,7 +11911,7 @@ func NewDeleteLocalUserRequest(server string, userID UserID) (*http.Request, err return nil, err } - operationPath := fmt.Sprintf("/manage/users/%s", pathParam0) + operationPath := fmt.Sprintf("/filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12721,13 +11929,13 @@ func NewDeleteLocalUserRequest(server string, userID UserID) (*http.Request, err return req, nil } -// NewGetLocalUserRequest generates requests for GetLocalUser -func NewGetLocalUserRequest(server string, userID UserID) (*http.Request, error) { +// NewGetFilterByIDRequest generates requests for GetFilterByID +func NewGetFilterByIDRequest(server string, filterID FilterID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "filter_id", runtime.ParamLocationPath, filterID) if err != nil { return nil, err } @@ -12737,7 +11945,7 @@ func NewGetLocalUserRequest(server string, userID UserID) (*http.Request, error) return nil, err } - operationPath := fmt.Sprintf("/manage/users/%s", pathParam0) + operationPath := fmt.Sprintf("/filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12755,24 +11963,24 @@ func NewGetLocalUserRequest(server string, userID UserID) (*http.Request, error) return req, nil } -// NewUpdateLocalUserRequest calls the generic UpdateLocalUser builder with application/json body -func NewUpdateLocalUserRequest(server string, userID UserID, body UpdateLocalUserJSONRequestBody) (*http.Request, error) { +// NewUpdateFilterRequest calls the generic UpdateFilter builder with application/json body +func NewUpdateFilterRequest(server string, filterID FilterID, body UpdateFilterJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateLocalUserRequestWithBody(server, userID, "application/json", bodyReader) + return NewUpdateFilterRequestWithBody(server, filterID, "application/json", bodyReader) } -// NewUpdateLocalUserRequestWithBody generates requests for UpdateLocalUser with any type of body -func NewUpdateLocalUserRequestWithBody(server string, userID UserID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateFilterRequestWithBody generates requests for UpdateFilter with any type of body +func NewUpdateFilterRequestWithBody(server string, filterID FilterID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "filter_id", runtime.ParamLocationPath, filterID) if err != nil { return nil, err } @@ -12782,7 +11990,7 @@ func NewUpdateLocalUserRequestWithBody(server string, userID UserID, contentType return nil, err } - operationPath := fmt.Sprintf("/manage/users/%s", pathParam0) + operationPath := fmt.Sprintf("/filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12802,76 +12010,8 @@ func NewUpdateLocalUserRequestWithBody(server string, userID UserID, contentType return req, nil } -// NewCreateLocalUserResetTokenRequest generates requests for CreateLocalUserResetToken -func NewCreateLocalUserResetTokenRequest(server string, userID UserID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/manage/users/%s/reset", 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 -} - -// NewManageUserTOTPDeleteRequest generates requests for ManageUserTOTPDelete -func NewManageUserTOTPDeleteRequest(server string, userID UserID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/manage/users/%s/totp", 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 -} - -// NewGetOpenAPIJSONRequest generates requests for GetOpenAPIJSON -func NewGetOpenAPIJSONRequest(server string) (*http.Request, error) { +// NewHealthCheckRequest generates requests for HealthCheck +func NewHealthCheckRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12879,7 +12019,7 @@ func NewGetOpenAPIJSONRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/openapi.json") + operationPath := fmt.Sprintf("/healthcheck") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12897,8 +12037,8 @@ func NewGetOpenAPIJSONRequest(server string) (*http.Request, error) { return req, nil } -// NewGetPlatformInfoRequest generates requests for GetPlatformInfo -func NewGetPlatformInfoRequest(server string) (*http.Request, error) { +// NewHealthCheckHeadRequest generates requests for HealthCheckHead +func NewHealthCheckHeadRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12906,7 +12046,7 @@ func NewGetPlatformInfoRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/platform-info") + operationPath := fmt.Sprintf("/healthcheck") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12916,7 +12056,7 @@ func NewGetPlatformInfoRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("HEAD", queryURL.String(), nil) if err != nil { return nil, err } @@ -12924,8 +12064,8 @@ func NewGetPlatformInfoRequest(server string) (*http.Request, error) { return req, nil } -// NewListPlatformVersionsRequest generates requests for ListPlatformVersions -func NewListPlatformVersionsRequest(server string, params *ListPlatformVersionsParams) (*http.Request, error) { +// NewListPlatformInsightsRequest generates requests for ListPlatformInsights +func NewListPlatformInsightsRequest(server string, params *ListPlatformInsightsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -12933,7 +12073,7 @@ func NewListPlatformVersionsRequest(server string, params *ListPlatformVersionsP return nil, err } - operationPath := fmt.Sprintf("/platform-versions") + operationPath := fmt.Sprintf("/insights") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12978,42 +12118,9 @@ func NewListPlatformVersionsRequest(server string, params *ListPlatformVersionsP } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListPluginsRequest generates requests for ListPlugins -func NewListPluginsRequest(server string, params *ListPluginsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.SortBy != nil { + if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); err != 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 @@ -13027,9 +12134,9 @@ func NewListPluginsRequest(server string, params *ListPluginsParams) (*http.Requ } - if params.Page != nil { + if params.Severities != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13043,9 +12150,9 @@ func NewListPluginsRequest(server string, params *ListPluginsParams) (*http.Requ } - if params.PerPage != nil { + if params.Cloud != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cloud", runtime.ParamLocationQuery, *params.Cloud); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13059,9 +12166,9 @@ func NewListPluginsRequest(server string, params *ListPluginsParams) (*http.Requ } - if params.IncludeReleaseStages != nil { + if params.Account != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_release_stages", runtime.ParamLocationQuery, params.IncludeReleaseStages); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account", runtime.ParamLocationQuery, *params.Account); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13075,9 +12182,9 @@ func NewListPluginsRequest(server string, params *ListPluginsParams) (*http.Requ } - if params.ExcludeReleaseStages != nil { + if params.Region != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude_release_stages", runtime.ParamLocationQuery, params.ExcludeReleaseStages); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13091,260 +12198,9 @@ func NewListPluginsRequest(server string, params *ListPluginsParams) (*http.Requ } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCreatePluginRequest calls the generic CreatePlugin builder with application/json body -func NewCreatePluginRequest(server string, body CreatePluginJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreatePluginRequestWithBody(server, "application/json", bodyReader) -} - -// NewCreatePluginRequestWithBody generates requests for CreatePlugin with any type of body -func NewCreatePluginRequestWithBody(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("/plugins") - 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 -} - -// NewDeletePluginByTeamAndPluginNameRequest generates requests for DeletePluginByTeamAndPluginName -func NewDeletePluginByTeamAndPluginNameRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) - 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 -} - -// NewGetPluginRequest generates requests for GetPlugin -func NewGetPluginRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) - 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 -} - -// NewUpdatePluginRequest calls the generic UpdatePlugin builder with application/json body -func NewUpdatePluginRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body UpdatePluginJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdatePluginRequestWithBody(server, teamName, pluginKind, pluginName, "application/json", bodyReader) -} - -// NewUpdatePluginRequestWithBody generates requests for UpdatePlugin with any type of body -func NewUpdatePluginRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewListPluginVersionsRequest generates requests for ListPluginVersions -func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.SortBy != nil { + if params.InsightCategory != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "insight_category", runtime.ParamLocationQuery, *params.InsightCategory); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13358,9 +12214,9 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P } - if params.Page != nil { + if params.SourceCategory != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_category", runtime.ParamLocationQuery, *params.SourceCategory); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13374,9 +12230,9 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P } - if params.PerPage != nil { + if params.Source != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, *params.Source); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13390,9 +12246,9 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P } - if params.IncludeDrafts != nil { + if params.ResourceTypes != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_drafts", runtime.ParamLocationQuery, *params.IncludeDrafts); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource_types", runtime.ParamLocationQuery, params.ResourceTypes); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13406,9 +12262,9 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P } - if params.IncludeFips != nil { + if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_fips", runtime.ParamLocationQuery, *params.IncludeFips); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, params.Tags); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13422,9 +12278,9 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P } - if params.IncludePrereleases != nil { + if params.SortBy != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_prereleases", runtime.ParamLocationQuery, *params.IncludePrereleases); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13438,9 +12294,9 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P } - if params.VersionFilter != nil { + if params.SortDir != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version_filter", runtime.ParamLocationQuery, *params.VersionFilter); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, *params.SortDir); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13465,34 +12321,13 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P return req, nil } -// NewGetPluginVersionRequest generates requests for GetPluginVersion -func NewGetPluginVersionRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName) (*http.Request, error) { +// NewGetPlatformAssetInsightsRequest generates requests for GetPlatformAssetInsights +func NewGetPlatformAssetInsightsRequest(server string, assetID AssetID, params *GetPlatformAssetInsightsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "asset_id", runtime.ParamLocationPath, assetID) if err != nil { return nil, err } @@ -13502,7 +12337,7 @@ func NewGetPluginVersionRequest(server string, teamName TeamName, pluginKind Plu return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/insights/assets/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13512,185 +12347,107 @@ func NewGetPluginVersionRequest(server string, teamName TeamName, pluginKind Plu return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} + if params != nil { + queryValues := queryURL.Query() -// NewUpdatePluginVersionRequest calls the generic UpdatePluginVersion builder with application/json body -func NewUpdatePluginVersionRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UpdatePluginVersionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdatePluginVersionRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) -} + if params.Page != nil { -// NewUpdatePluginVersionRequestWithBody generates requests for UpdatePluginVersion with any type of body -func NewUpdatePluginVersionRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) + 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) + } + } + } - return req, nil -} + } -// NewCreatePluginVersionRequest calls the generic CreatePluginVersion builder with application/json body -func NewCreatePluginVersionRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreatePluginVersionRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) -} + if params.PerPage != nil { -// NewCreatePluginVersionRequestWithBody generates requests for CreatePluginVersion with any type of body -func NewCreatePluginVersionRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { - var err error + 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) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if params.Search != nil { - var pathParam1 string + 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) + } + } + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } + } - var pathParam2 string + if params.SortBy != nil { - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); 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) + } + } + } - var pathParam3 string + } - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } + if params.SortDir != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, *params.SortDir); 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) + } + } + } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDownloadPluginAssetRequest generates requests for DownloadPluginAsset -func NewDownloadPluginAssetRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams) (*http.Request, error) { +// NewGetPlatformInsightColumnDistinctValuesRequest generates requests for GetPlatformInsightColumnDistinctValues +func NewGetPlatformInsightColumnDistinctValuesRequest(server string, insightColumnName InsightColumnName, params *GetPlatformInsightColumnDistinctValuesParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } - - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "column_name", runtime.ParamLocationPath, insightColumnName) if err != nil { return nil, err } @@ -13700,7 +12457,7 @@ func NewDownloadPluginAssetRequest(server string, teamName TeamName, pluginKind return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) + operationPath := fmt.Sprintf("/insights/columns/%s/distinct-values", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13710,197 +12467,238 @@ func NewDownloadPluginAssetRequest(server string, teamName TeamName, pluginKind return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - if params != nil { + queryValues := queryURL.Query() - if params.Accept != nil { - var headerParam0 string + if params.Page != nil { - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != 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) + } + } } - req.Header.Set("Accept", headerParam0) } - } - - return req, nil -} - -// NewUploadPluginAssetRequest generates requests for UploadPluginAsset -func NewUploadPluginAssetRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName) (*http.Request, error) { - var err error + if params.PerPage != nil { - var pathParam0 string + 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) + } + } + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + } - var pathParam1 string + if params.OwnerTag != nil { - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "owner_tag", runtime.ParamLocationQuery, *params.OwnerTag); 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) + } + } + } - var pathParam2 string + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } + if params.Search != nil { - var pathParam3 string + 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) + } + } + } - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } + } - var pathParam4 string + if params.Severities != nil { - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.Cloud != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cloud", runtime.ParamLocationQuery, *params.Cloud); 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) + } + } + } - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } + } - return req, nil -} + if params.Account != nil { -// NewDeletePluginVersionDocsRequest calls the generic DeletePluginVersionDocs builder with application/json body -func NewDeletePluginVersionDocsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDeletePluginVersionDocsRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account", runtime.ParamLocationQuery, *params.Account); 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) + } + } + } -// NewDeletePluginVersionDocsRequestWithBody generates requests for DeletePluginVersionDocs with any type of body -func NewDeletePluginVersionDocsRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Region != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, *params.Region); 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } + if params.InsightCategory != nil { - var pathParam2 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "insight_category", runtime.ParamLocationQuery, *params.InsightCategory); 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) + } + } + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } + } - var pathParam3 string + if params.SourceCategory != nil { - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_category", runtime.ParamLocationQuery, *params.SourceCategory); 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.Source != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, *params.Source); 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) + } + } + } - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } + } - req.Header.Add("Content-Type", contentType) + if params.ResourceTypes != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource_types", runtime.ParamLocationQuery, params.ResourceTypes); 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) + } + } + } -// NewListPluginVersionDocsRequest generates requests for ListPluginVersionDocs -func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionDocsParams) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Tags != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, params.Tags); 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - var pathParam3 string + return req, nil +} - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } +// NewPlatformListInsightFiltersRequest generates requests for PlatformListInsightFilters +func NewPlatformListInsightFiltersRequest(server string, params *PlatformListInsightFiltersParams) (*http.Request, error) { + var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/insights/saved-filters") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13913,6 +12711,22 @@ func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKin if params != nil { queryValues := queryURL.Query() + 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.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -13929,9 +12743,9 @@ func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKin } - if params.PerPage != nil { + if params.SearchTerm != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13945,66 +12759,150 @@ func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKin } - queryURL.RawQuery = queryValues.Encode() - } + if params.InsightCategory != nil { - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "insight_category", runtime.ParamLocationQuery, params.InsightCategory); 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) + } + } + } - return req, nil -} + } -// NewReplacePluginVersionDocsRequest calls the generic ReplacePluginVersionDocs builder with application/json body -func NewReplacePluginVersionDocsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body ReplacePluginVersionDocsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewReplacePluginVersionDocsRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) -} + if params.Severities != nil { -// NewReplacePluginVersionDocsRequestWithBody generates requests for ReplacePluginVersionDocs with any type of body -func NewReplacePluginVersionDocsRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); 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) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if params.ResourceTypes != nil { - var pathParam1 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource_types", runtime.ParamLocationQuery, params.ResourceTypes); 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) + } + } + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } + } - var pathParam2 string + if params.Source != nil { - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); 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.SourceCategory != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source_category", runtime.ParamLocationQuery, params.SourceCategory); 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.Tags != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, params.Tags); 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.GroupBy != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_by", runtime.ParamLocationQuery, params.GroupBy); 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 } - var pathParam3 string + return req, nil +} - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) +// NewPlatformCreateInsightFilterRequest calls the generic PlatformCreateInsightFilter builder with application/json body +func NewPlatformCreateInsightFilterRequest(server string, body PlatformCreateInsightFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPlatformCreateInsightFilterRequestWithBody(server, "application/json", bodyReader) +} + +// NewPlatformCreateInsightFilterRequestWithBody generates requests for PlatformCreateInsightFilter with any type of body +func NewPlatformCreateInsightFilterRequestWithBody(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("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/insights/saved-filters") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14024,45 +12922,47 @@ func NewReplacePluginVersionDocsRequestWithBody(server string, teamName TeamName return req, nil } -// NewCreatePluginVersionDocsRequest calls the generic CreatePluginVersionDocs builder with application/json body -func NewCreatePluginVersionDocsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionDocsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreatePluginVersionDocsRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) -} - -// NewCreatePluginVersionDocsRequestWithBody generates requests for CreatePluginVersionDocs with any type of body -func NewCreatePluginVersionDocsRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { +// NewPlatformDeleteInsightFilterRequest generates requests for PlatformDeleteInsightFilter +func NewPlatformDeleteInsightFilterRequest(server string, insightFilterID InsightFilterID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "insight_filter_id", runtime.ParamLocationPath, insightFilterID) if err != nil { return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam2 string + operationPath := fmt.Sprintf("/insights/saved-filters/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam3 string + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + return req, nil +} + +// NewPlatformGetInsightFilterByIDRequest generates requests for PlatformGetInsightFilterByID +func NewPlatformGetInsightFilterByIDRequest(server string, insightFilterID InsightFilterID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "insight_filter_id", runtime.ParamLocationPath, insightFilterID) if err != nil { return nil, err } @@ -14072,7 +12972,7 @@ func NewCreatePluginVersionDocsRequestWithBody(server string, teamName TeamName, return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/insights/saved-filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14082,55 +12982,32 @@ func NewCreatePluginVersionDocsRequestWithBody(server string, teamName TeamName, return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeletePluginVersionTablesRequest calls the generic DeletePluginVersionTables builder with application/json body -func NewDeletePluginVersionTablesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionTablesJSONRequestBody) (*http.Request, error) { +// NewPlatformUpdateInsightFilterRequest calls the generic PlatformUpdateInsightFilter builder with application/json body +func NewPlatformUpdateInsightFilterRequest(server string, insightFilterID InsightFilterID, body PlatformUpdateInsightFilterJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewDeletePluginVersionTablesRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) + return NewPlatformUpdateInsightFilterRequestWithBody(server, insightFilterID, "application/json", bodyReader) } -// NewDeletePluginVersionTablesRequestWithBody generates requests for DeletePluginVersionTables with any type of body -func NewDeletePluginVersionTablesRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { +// NewPlatformUpdateInsightFilterRequestWithBody generates requests for PlatformUpdateInsightFilter with any type of body +func NewPlatformUpdateInsightFilterRequestWithBody(server string, insightFilterID InsightFilterID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "insight_filter_id", runtime.ParamLocationPath, insightFilterID) if err != nil { return nil, err } @@ -14140,7 +13017,7 @@ func NewDeletePluginVersionTablesRequestWithBody(server string, teamName TeamNam return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/insights/saved-filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14150,7 +13027,7 @@ func NewDeletePluginVersionTablesRequestWithBody(server string, teamName TeamNam return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -14160,34 +13037,47 @@ func NewDeletePluginVersionTablesRequestWithBody(server string, teamName TeamNam return req, nil } -// NewListPluginVersionTablesRequest generates requests for ListPluginVersionTables -func NewListPluginVersionTablesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams) (*http.Request, error) { +// NewGetPlatformInsightRequest generates requests for GetPlatformInsight +func NewGetPlatformInsightRequest(server string, insightID InsightID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "insight_id", runtime.ParamLocationPath, insightID) if err != nil { return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam2 string + operationPath := fmt.Sprintf("/insights/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam3 string + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + return req, nil +} + +// NewGetPlatformInsightAssetsRequest generates requests for GetPlatformInsightAssets +func NewGetPlatformInsightAssetsRequest(server string, insightID InsightID, params *GetPlatformInsightAssetsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "insight_id", runtime.ParamLocationPath, insightID) if err != nil { return nil, err } @@ -14197,7 +13087,7 @@ func NewListPluginVersionTablesRequest(server string, teamName TeamName, pluginK return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/insights/%s/assets", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14242,175 +13132,201 @@ func NewListPluginVersionTablesRequest(server string, teamName TeamName, pluginK } - queryURL.RawQuery = queryValues.Encode() - } + if params.Search != nil { - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + 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) + } + } + } - return req, nil -} + } -// NewCreatePluginVersionTablesRequest calls the generic CreatePluginVersionTables builder with application/json body -func NewCreatePluginVersionTablesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionTablesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreatePluginVersionTablesRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) -} + if params.Accounts != nil { -// NewCreatePluginVersionTablesRequestWithBody generates requests for CreatePluginVersionTables with any type of body -func NewCreatePluginVersionTablesRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "accounts", runtime.ParamLocationQuery, params.Accounts); 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) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if params.Clouds != nil { - var pathParam1 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clouds", runtime.ParamLocationQuery, params.Clouds); 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) + } + } + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } + } - var pathParam2 string + if params.Regions != nil { - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "regions", runtime.ParamLocationQuery, params.Regions); 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) + } + } + } - var pathParam3 string + } - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } + if params.ResourceType != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource_type", runtime.ParamLocationQuery, params.ResourceType); 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) + } + } + } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetPluginVersionTableRequest generates requests for GetPluginVersionTable -func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string) (*http.Request, error) { +// NewListNotificationsRequest generates requests for ListNotifications +func NewListNotificationsRequest(server string, params *ListNotificationsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/notifications") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string + if params != nil { + queryValues := queryURL.Query() - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } + if params.PerPage != nil { - var pathParam3 string + 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) + } + } + } - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } + } - var pathParam4 string + if params.Page != nil { - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) - if err != nil { - return nil, err - } + 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.Severities != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); 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) + } + } + } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + } - return req, nil -} + if params.PolicyGroupIds != nil { -// NewRemovePluginUIAssetsRequest generates requests for RemovePluginUIAssets -func NewRemovePluginUIAssetsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "policy_group_ids", runtime.ParamLocationQuery, params.PolicyGroupIds); 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) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - var pathParam2 string + return req, nil +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } +// NewDeleteNotificationDestinationRequest generates requests for DeleteNotificationDestination +func NewDeleteNotificationDestinationRequest(server string, notificationDestinationId NotificationDestinationId) (*http.Request, error) { + var err error - var pathParam3 string + var pathParam0 string - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationId) if err != nil { return nil, err } @@ -14420,7 +13336,7 @@ func NewRemovePluginUIAssetsRequest(server string, teamName TeamName, pluginKind return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/notifications/destination/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14438,45 +13354,13 @@ func NewRemovePluginUIAssetsRequest(server string, teamName TeamName, pluginKind return req, nil } -// NewUploadPluginUIAssetsRequest calls the generic UploadPluginUIAssets builder with application/json body -func NewUploadPluginUIAssetsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUploadPluginUIAssetsRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) -} - -// NewUploadPluginUIAssetsRequestWithBody generates requests for UploadPluginUIAssets with any type of body -func NewUploadPluginUIAssetsRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { +// NewGetNotificationDestinationRequest generates requests for GetNotificationDestination +func NewGetNotificationDestinationRequest(server string, notificationDestinationId NotificationDestinationId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationId) if err != nil { return nil, err } @@ -14486,7 +13370,7 @@ func NewUploadPluginUIAssetsRequestWithBody(server string, teamName TeamName, pl return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/notifications/destination/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14496,55 +13380,32 @@ func NewUploadPluginUIAssetsRequestWithBody(server string, teamName TeamName, pl return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewFinalizePluginUIAssetUploadRequest calls the generic FinalizePluginUIAssetUpload builder with application/json body -func NewFinalizePluginUIAssetUploadRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody) (*http.Request, error) { +// NewUpdateNotificationDestinationRequest calls the generic UpdateNotificationDestination builder with application/json body +func NewUpdateNotificationDestinationRequest(server string, notificationDestinationId NotificationDestinationId, body UpdateNotificationDestinationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewFinalizePluginUIAssetUploadRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) + return NewUpdateNotificationDestinationRequestWithBody(server, notificationDestinationId, "application/json", bodyReader) } -// NewFinalizePluginUIAssetUploadRequestWithBody generates requests for FinalizePluginUIAssetUpload with any type of body -func NewFinalizePluginUIAssetUploadRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateNotificationDestinationRequestWithBody generates requests for UpdateNotificationDestination with any type of body +func NewUpdateNotificationDestinationRequestWithBody(server string, notificationDestinationId NotificationDestinationId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationId) if err != nil { return nil, err } @@ -14554,7 +13415,7 @@ func NewFinalizePluginUIAssetUploadRequestWithBody(server string, teamName TeamN return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/notifications/destination/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14564,7 +13425,7 @@ func NewFinalizePluginUIAssetUploadRequestWithBody(server string, teamName TeamN return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -14574,16 +13435,23 @@ func NewFinalizePluginUIAssetUploadRequestWithBody(server string, teamName TeamN return req, nil } -// NewAuthRegistryRequestRequest generates requests for AuthRegistryRequest -func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestParams) (*http.Request, error) { +// NewGetNotificationDestinationAlertsRequest generates requests for GetNotificationDestinationAlerts +func NewGetNotificationDestinationAlertsRequest(server string, notificationDestinationId NotificationDestinationId, params *GetNotificationDestinationAlertsParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/registry/auth") + operationPath := fmt.Sprintf("/notifications/destination/%s/alerts", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14596,25 +13464,9 @@ func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestPar if params != nil { queryValues := queryURL.Query() - if params.Account != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account", runtime.ParamLocationQuery, *params.Account); 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.Service != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "service", runtime.ParamLocationQuery, *params.Service); err != 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 @@ -14628,9 +13480,9 @@ func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestPar } - if params.Scope != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != 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 @@ -14652,37 +13504,45 @@ func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestPar return nil, err } - if params != nil { + return req, nil +} - if params.XMetaPluginVersion != nil { - var headerParam0 string +// NewTestNotificationDestinationRequest generates requests for TestNotificationDestination +func NewTestNotificationDestinationRequest(server string, notificationDestinationId NotificationDestinationId) (*http.Request, error) { + var err error - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Meta-Plugin-Version", runtime.ParamLocationHeader, *params.XMetaPluginVersion) - if err != nil { - return nil, err - } + var pathParam0 string - req.Header.Set("X-Meta-Plugin-Version", headerParam0) - } + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationId) + if err != nil { + return nil, err + } - if params.XMetaUserTeamName != nil { - var headerParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Meta-User-Team-Name", runtime.ParamLocationHeader, *params.XMetaUserTeamName) - if err != nil { - return nil, err - } + operationPath := fmt.Sprintf("/notifications/destination/%s/test", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - req.Header.Set("X-Meta-User-Team-Name", headerParam1) - } + 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 } -// NewListTeamsRequest generates requests for ListTeams -func NewListTeamsRequest(server string, params *ListTeamsParams) (*http.Request, error) { +// NewListAllNotificationDestinationsRequest generates requests for ListAllNotificationDestinations +func NewListAllNotificationDestinationsRequest(server string, params *ListAllNotificationDestinationsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -14690,7 +13550,7 @@ func NewListTeamsRequest(server string, params *ListTeamsParams) (*http.Request, return nil, err } - operationPath := fmt.Sprintf("/teams") + operationPath := fmt.Sprintf("/notifications/destinations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14746,19 +13606,19 @@ func NewListTeamsRequest(server string, params *ListTeamsParams) (*http.Request, return req, nil } -// NewCreateTeamRequest calls the generic CreateTeam builder with application/json body -func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*http.Request, error) { +// NewCreateNotificationDestinationRequest calls the generic CreateNotificationDestination builder with application/json body +func NewCreateNotificationDestinationRequest(server string, body CreateNotificationDestinationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateTeamRequestWithBody(server, "application/json", bodyReader) + return NewCreateNotificationDestinationRequestWithBody(server, "application/json", bodyReader) } -// NewCreateTeamRequestWithBody generates requests for CreateTeam with any type of body -func NewCreateTeamRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateNotificationDestinationRequestWithBody generates requests for CreateNotificationDestination with any type of body +func NewCreateNotificationDestinationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -14766,7 +13626,7 @@ func NewCreateTeamRequestWithBody(server string, contentType string, body io.Rea return nil, err } - operationPath := fmt.Sprintf("/teams") + operationPath := fmt.Sprintf("/notifications/destinations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14786,57 +13646,27 @@ func NewCreateTeamRequestWithBody(server string, contentType string, body io.Rea return req, nil } -// NewDeleteTeamRequest generates requests for DeleteTeam -func NewDeleteTeamRequest(server string, teamName TeamName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%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) +// NewTestUnsavedNotificationDestinationRequest calls the generic TestUnsavedNotificationDestination builder with application/json body +func NewTestUnsavedNotificationDestinationRequest(server string, body TestUnsavedNotificationDestinationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewTestUnsavedNotificationDestinationRequestWithBody(server, "application/json", bodyReader) } -// NewGetTeamByNameRequest generates requests for GetTeamByName -func NewGetTeamByNameRequest(server string, teamName TeamName) (*http.Request, error) { +// NewTestUnsavedNotificationDestinationRequestWithBody generates requests for TestUnsavedNotificationDestination with any type of body +func NewTestUnsavedNotificationDestinationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/notifications/destinations/test") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14846,42 +13676,26 @@ func NewGetTeamByNameRequest(server string, teamName TeamName) (*http.Request, e return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewUpdateTeamRequest calls the generic UpdateTeam builder with application/json body -func NewUpdateTeamRequest(server string, teamName TeamName, body UpdateTeamJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateTeamRequestWithBody(server, teamName, "application/json", bodyReader) + return req, nil } -// NewUpdateTeamRequestWithBody generates requests for UpdateTeam with any type of body -func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateAWSCUROnboardingRequest generates requests for CreateAWSCUROnboarding +func NewCreateAWSCUROnboardingRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/onboardings/aws/cur") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14891,23 +13705,21 @@ func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListAllAlertsRequest generates requests for ListAllAlerts -func NewListAllAlertsRequest(server string, teamName TeamName, params *ListAllAlertsParams) (*http.Request, error) { +// NewGetAWSCUROnboardingRequest generates requests for GetAWSCUROnboarding +func NewGetAWSCUROnboardingRequest(server string, onboardingID OnboardingID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } @@ -14917,7 +13729,7 @@ func NewListAllAlertsRequest(server string, teamName TeamName, params *ListAllAl return nil, err } - operationPath := fmt.Sprintf("/teams/%s/alerts", pathParam0) + operationPath := fmt.Sprintf("/onboardings/aws/cur/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -14927,76 +13739,6 @@ func NewListAllAlertsRequest(server string, teamName TeamName, params *ListAllAl return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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.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.AlertStates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state", runtime.ParamLocationQuery, params.AlertStates); 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.Enabled != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, *params.Enabled); 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 @@ -15005,24 +13747,24 @@ func NewListAllAlertsRequest(server string, teamName TeamName, params *ListAllAl return req, nil } -// NewTestUnsavedAlertRequest calls the generic TestUnsavedAlert builder with application/json body -func NewTestUnsavedAlertRequest(server string, teamName TeamName, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody) (*http.Request, error) { +// NewNotifyAWSCUROnboardingRequest calls the generic NotifyAWSCUROnboarding builder with application/json body +func NewNotifyAWSCUROnboardingRequest(server string, onboardingID OnboardingID, body NotifyAWSCUROnboardingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewTestUnsavedAlertRequestWithBody(server, teamName, params, "application/json", bodyReader) + return NewNotifyAWSCUROnboardingRequestWithBody(server, onboardingID, "application/json", bodyReader) } -// NewTestUnsavedAlertRequestWithBody generates requests for TestUnsavedAlert with any type of body -func NewTestUnsavedAlertRequestWithBody(server string, teamName TeamName, params *TestUnsavedAlertParams, contentType string, body io.Reader) (*http.Request, error) { +// NewNotifyAWSCUROnboardingRequestWithBody generates requests for NotifyAWSCUROnboarding with any type of body +func NewNotifyAWSCUROnboardingRequestWithBody(server string, onboardingID OnboardingID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } @@ -15032,7 +13774,7 @@ func NewTestUnsavedAlertRequestWithBody(server string, teamName TeamName, params return nil, err } - operationPath := fmt.Sprintf("/teams/%s/alerts/test", pathParam0) + operationPath := fmt.Sprintf("/onboardings/aws/cur/%s/notify", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15042,28 +13784,6 @@ func NewTestUnsavedAlertRequestWithBody(server string, teamName TeamName, params return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.QueryID != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "query_id", runtime.ParamLocationQuery, *params.QueryID); 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("POST", queryURL.String(), body) if err != nil { return nil, err @@ -15074,13 +13794,13 @@ func NewTestUnsavedAlertRequestWithBody(server string, teamName TeamName, params return req, nil } -// NewListTeamAPIKeysRequest generates requests for ListTeamAPIKeys -func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTeamAPIKeysParams) (*http.Request, error) { +// NewVerifyAWSCUROnboardingRequest generates requests for VerifyAWSCUROnboarding +func NewVerifyAWSCUROnboardingRequest(server string, onboardingID OnboardingID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } @@ -15090,7 +13810,7 @@ func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTea return nil, err } - operationPath := fmt.Sprintf("/teams/%s/apikeys", pathParam0) + operationPath := fmt.Sprintf("/onboardings/aws/cur/%s/verify", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15100,45 +13820,7 @@ func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTea return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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.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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -15146,34 +13828,27 @@ func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTea return req, nil } -// NewCreateTeamAPIKeyRequest calls the generic CreateTeamAPIKey builder with application/json body -func NewCreateTeamAPIKeyRequest(server string, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody) (*http.Request, error) { +// NewCreateAWSOnboardingRequest calls the generic CreateAWSOnboarding builder with application/json body +func NewCreateAWSOnboardingRequest(server string, body CreateAWSOnboardingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateTeamAPIKeyRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreateAWSOnboardingRequestWithBody(server, "application/json", bodyReader) } -// NewCreateTeamAPIKeyRequestWithBody generates requests for CreateTeamAPIKey with any type of body -func NewCreateTeamAPIKeyRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateAWSOnboardingRequestWithBody generates requests for CreateAWSOnboarding with any type of body +func NewCreateAWSOnboardingRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/apikeys", pathParam0) + operationPath := fmt.Sprintf("/onboardings/aws/oidc") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15193,20 +13868,13 @@ func NewCreateTeamAPIKeyRequestWithBody(server string, teamName TeamName, conten return req, nil } -// NewDeleteTeamAPIKeyRequest generates requests for DeleteTeamAPIKey -func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKeyID) (*http.Request, error) { +// NewGetAWSOnboardingRequest generates requests for GetAWSOnboarding +func NewGetAWSOnboardingRequest(server string, onboardingID OnboardingID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "apikey_id", runtime.ParamLocationPath, apiKeyID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } @@ -15216,7 +13884,7 @@ func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKe return nil, err } - operationPath := fmt.Sprintf("/teams/%s/apikeys/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/onboardings/aws/oidc/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15226,7 +13894,7 @@ func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKe return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15234,13 +13902,13 @@ func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKe return req, nil } -// NewListConnectorsRequest generates requests for ListConnectors -func NewListConnectorsRequest(server string, teamName TeamName, params *ListConnectorsParams) (*http.Request, error) { +// NewGetAWSAccountsInRootRequest generates requests for GetAWSAccountsInRoot +func NewGetAWSAccountsInRootRequest(server string, onboardingID OnboardingID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } @@ -15250,7 +13918,7 @@ func NewListConnectorsRequest(server string, teamName TeamName, params *ListConn return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors", pathParam0) + operationPath := fmt.Sprintf("/onboardings/aws/oidc/%s/accounts", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15260,76 +13928,6 @@ func NewListConnectorsRequest(server string, teamName TeamName, params *ListConn return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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.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.FilterType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_type", runtime.ParamLocationQuery, *params.FilterType); 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.FilterPlugin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_plugin", runtime.ParamLocationQuery, *params.FilterPlugin); 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 @@ -15338,24 +13936,24 @@ func NewListConnectorsRequest(server string, teamName TeamName, params *ListConn return req, nil } -// NewCreateConnectorRequest calls the generic CreateConnector builder with application/json body -func NewCreateConnectorRequest(server string, teamName TeamName, body CreateConnectorJSONRequestBody) (*http.Request, error) { +// NewProvisionOnboardingConfigurationRequest calls the generic ProvisionOnboardingConfiguration builder with application/json body +func NewProvisionOnboardingConfigurationRequest(server string, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateConnectorRequestWithBody(server, teamName, "application/json", bodyReader) + return NewProvisionOnboardingConfigurationRequestWithBody(server, onboardingID, "application/json", bodyReader) } -// NewCreateConnectorRequestWithBody generates requests for CreateConnector with any type of body -func NewCreateConnectorRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewProvisionOnboardingConfigurationRequestWithBody generates requests for ProvisionOnboardingConfiguration with any type of body +func NewProvisionOnboardingConfigurationRequestWithBody(server string, onboardingID OnboardingID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } @@ -15365,7 +13963,7 @@ func NewCreateConnectorRequestWithBody(server string, teamName TeamName, content return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors", pathParam0) + operationPath := fmt.Sprintf("/onboardings/aws/oidc/%s/accounts/provision", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15385,20 +13983,20 @@ func NewCreateConnectorRequestWithBody(server string, teamName TeamName, content return req, nil } -// NewGetConnectorRequest generates requests for GetConnector -func NewGetConnectorRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { +// NewGetAWSAccountsInParentRequest generates requests for GetAWSAccountsInParent +func NewGetAWSAccountsInParentRequest(server string, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "aws_orgunit_id", runtime.ParamLocationPath, organizationalUnitID) if err != nil { return nil, err } @@ -15408,7 +14006,7 @@ func NewGetConnectorRequest(server string, teamName TeamName, connectorID Connec return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/onboardings/aws/oidc/%s/accounts/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15426,31 +14024,24 @@ func NewGetConnectorRequest(server string, teamName TeamName, connectorID Connec return req, nil } -// NewUpdateConnectorRequest calls the generic UpdateConnector builder with application/json body -func NewUpdateConnectorRequest(server string, teamName TeamName, connectorID ConnectorID, body UpdateConnectorJSONRequestBody) (*http.Request, error) { +// NewNotifyOnboardingRequest calls the generic NotifyOnboarding builder with application/json body +func NewNotifyOnboardingRequest(server string, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateConnectorRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) + return NewNotifyOnboardingRequestWithBody(server, onboardingID, "application/json", bodyReader) } -// NewUpdateConnectorRequestWithBody generates requests for UpdateConnector with any type of body -func NewUpdateConnectorRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { +// NewNotifyOnboardingRequestWithBody generates requests for NotifyOnboarding with any type of body +func NewNotifyOnboardingRequestWithBody(server string, onboardingID OnboardingID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) if err != nil { return nil, err } @@ -15460,7 +14051,7 @@ func NewUpdateConnectorRequestWithBody(server string, teamName TeamName, connect return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/onboardings/aws/oidc/%s/notify", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15470,7 +14061,7 @@ func NewUpdateConnectorRequestWithBody(server string, teamName TeamName, connect return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -15480,30 +14071,16 @@ func NewUpdateConnectorRequestWithBody(server string, teamName TeamName, connect return req, nil } -// NewRevokeConnectorRequest generates requests for RevokeConnector -func NewRevokeConnectorRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { +// NewGetOpenAPIJSONRequest generates requests for GetOpenAPIJSON +func NewGetOpenAPIJSONRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/openapi.json") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15513,7 +14090,7 @@ func NewRevokeConnectorRequest(server string, teamName TeamName, connectorID Con return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15521,30 +14098,16 @@ func NewRevokeConnectorRequest(server string, teamName TeamName, connectorID Con return req, nil } -// NewGetConnectorAuthStatusAWSRequest generates requests for GetConnectorAuthStatusAWS -func NewGetConnectorAuthStatusAWSRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { +// NewGetPlatformInfoRequest generates requests for GetPlatformInfo +func NewGetPlatformInfoRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/aws", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/platform-info") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15562,41 +14125,16 @@ func NewGetConnectorAuthStatusAWSRequest(server string, teamName TeamName, conne return req, nil } -// NewAuthenticateConnectorFinishAWSRequest calls the generic AuthenticateConnectorFinishAWS builder with application/json body -func NewAuthenticateConnectorFinishAWSRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishAWSJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAuthenticateConnectorFinishAWSRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) -} - -// NewAuthenticateConnectorFinishAWSRequestWithBody generates requests for AuthenticateConnectorFinishAWS with any type of body -func NewAuthenticateConnectorFinishAWSRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { +// NewListPlatformVersionsRequest generates requests for ListPlatformVersions +func NewListPlatformVersionsRequest(server string, params *ListPlatformVersionsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/aws", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/platform-versions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15606,94 +14144,62 @@ func NewAuthenticateConnectorFinishAWSRequestWithBody(server string, teamName Te return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAuthenticateConnectorAWSRequest calls the generic AuthenticateConnectorAWS builder with application/json body -func NewAuthenticateConnectorAWSRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAuthenticateConnectorAWSRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) -} - -// NewAuthenticateConnectorAWSRequestWithBody generates requests for AuthenticateConnectorAWS with any type of body -func NewAuthenticateConnectorAWSRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { - var err error + if params != nil { + queryValues := queryURL.Query() - var pathParam0 string + if params.Page != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err - } + if params.PerPage != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + 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) + } + } + } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/aws", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetConnectorAuthStatusGCPRequest generates requests for GetConnectorAuthStatusGCP -func NewGetConnectorAuthStatusGCPRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { +// NewListPluginsRequest generates requests for ListPlugins +func NewListPluginsRequest(server string, params *ListPluginsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/gcp", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/plugins") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15703,30 +14209,105 @@ func NewGetConnectorAuthStatusGCPRequest(server string, teamName TeamName, conne return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.SortBy != nil { -// NewAuthenticateConnectorGCPRequest calls the generic AuthenticateConnectorGCP builder with application/json body -func NewAuthenticateConnectorGCPRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorGCPJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAuthenticateConnectorGCPRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); 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) + } + } + } -// NewAuthenticateConnectorGCPRequestWithBody generates requests for AuthenticateConnectorGCP with any type of body -func NewAuthenticateConnectorGCPRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { - var err error + } - var pathParam0 string + 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.IncludeReleaseStages != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_release_stages", runtime.ParamLocationQuery, params.IncludeReleaseStages); 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.ExcludeReleaseStages != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude_release_stages", runtime.ParamLocationQuery, params.ExcludeReleaseStages); 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 +} + +// NewGetPluginRequest generates requests for GetPlugin +func NewGetPluginRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { + var err error + + var pathParam0 string pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { @@ -15735,7 +14316,14 @@ func NewAuthenticateConnectorGCPRequestWithBody(server string, teamName TeamName var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -15745,7 +14333,7 @@ func NewAuthenticateConnectorGCPRequestWithBody(server string, teamName TeamName return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/gcp", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15755,18 +14343,16 @@ func NewAuthenticateConnectorGCPRequestWithBody(server string, teamName TeamName return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewAuthenticateConnectorFinishGCPRequest generates requests for AuthenticateConnectorFinishGCP -func NewAuthenticateConnectorFinishGCPRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { +// NewListPluginVersionsRequest generates requests for ListPluginVersions +func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -15778,7 +14364,14 @@ func NewAuthenticateConnectorFinishGCPRequest(server string, teamName TeamName, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -15788,7 +14381,7 @@ func NewAuthenticateConnectorFinishGCPRequest(server string, teamName TeamName, return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/gcp/finish", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15798,27 +14391,134 @@ func NewAuthenticateConnectorFinishGCPRequest(server string, teamName TeamName, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.SortBy != nil { -// NewAuthenticateConnectorFinishOAuthRequest calls the generic AuthenticateConnectorFinishOAuth builder with application/json body -func NewAuthenticateConnectorFinishOAuthRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishOAuthJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); 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.IncludeDrafts != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_drafts", runtime.ParamLocationQuery, *params.IncludeDrafts); 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.IncludeFips != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_fips", runtime.ParamLocationQuery, *params.IncludeFips); 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.IncludePrereleases != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_prereleases", runtime.ParamLocationQuery, *params.IncludePrereleases); 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.VersionFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version_filter", runtime.ParamLocationQuery, *params.VersionFilter); 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 } - bodyReader = bytes.NewReader(buf) - return NewAuthenticateConnectorFinishOAuthRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) + + return req, nil } -// NewAuthenticateConnectorFinishOAuthRequestWithBody generates requests for AuthenticateConnectorFinishOAuth with any type of body -func NewAuthenticateConnectorFinishOAuthRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPluginVersionRequest generates requests for GetPluginVersion +func NewGetPluginVersionRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName) (*http.Request, error) { var err error var pathParam0 string @@ -15830,7 +14530,21 @@ func NewAuthenticateConnectorFinishOAuthRequestWithBody(server string, teamName var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) if err != nil { return nil, err } @@ -15840,7 +14554,7 @@ func NewAuthenticateConnectorFinishOAuthRequestWithBody(server string, teamName return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/oauth", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15850,29 +14564,16 @@ func NewAuthenticateConnectorFinishOAuthRequestWithBody(server string, teamName return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewAuthenticateConnectorOAuthRequest calls the generic AuthenticateConnectorOAuth builder with application/json body -func NewAuthenticateConnectorOAuthRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAuthenticateConnectorOAuthRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) -} - -// NewAuthenticateConnectorOAuthRequestWithBody generates requests for AuthenticateConnectorOAuth with any type of body -func NewAuthenticateConnectorOAuthRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { +// NewDownloadPluginAssetRequest generates requests for DownloadPluginAsset +func NewDownloadPluginAssetRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams) (*http.Request, error) { var err error var pathParam0 string @@ -15884,54 +14585,28 @@ func NewAuthenticateConnectorOAuthRequestWithBody(server string, teamName TeamNa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/oauth", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + var pathParam2 string - req, err := http.NewRequest("POST", queryURL.String(), body) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} + var pathParam3 string -// NewCreateConversationRequest calls the generic CreateConversation builder with application/json body -func NewCreateConversationRequest(server string, teamName TeamName, body CreateConversationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateConversationRequestWithBody(server, teamName, "application/json", bodyReader) -} -// NewCreateConversationRequestWithBody generates requests for CreateConversation with any type of body -func NewCreateConversationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam4 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) if err != nil { return nil, err } @@ -15941,7 +14616,7 @@ func NewCreateConversationRequestWithBody(server string, teamName TeamName, cont return nil, err } - operationPath := fmt.Sprintf("/teams/%s/conversations", pathParam0) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15951,18 +14626,31 @@ func NewCreateConversationRequestWithBody(server string, teamName TeamName, cont return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) + if params != nil { + + if params.Accept != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { + return nil, err + } + + req.Header.Set("Accept", headerParam0) + } + + } return req, nil } -// NewGetConversationRequest generates requests for GetConversation -func NewGetConversationRequest(server string, teamName TeamName, conversationID ConversationID) (*http.Request, error) { +// NewListPluginVersionTablesRequest generates requests for ListPluginVersionTables +func NewListPluginVersionTablesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams) (*http.Request, error) { var err error var pathParam0 string @@ -15974,7 +14662,21 @@ func NewGetConversationRequest(server string, teamName TeamName, conversationID var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "conversation_id", runtime.ParamLocationPath, conversationID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) if err != nil { return nil, err } @@ -15984,7 +14686,7 @@ func NewGetConversationRequest(server string, teamName TeamName, conversationID return nil, err } - operationPath := fmt.Sprintf("/teams/%s/conversations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15994,6 +14696,44 @@ func NewGetConversationRequest(server string, teamName TeamName, conversationID 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -16002,19 +14742,8 @@ func NewGetConversationRequest(server string, teamName TeamName, conversationID return req, nil } -// NewSendMessageRequest calls the generic SendMessage builder with application/json body -func NewSendMessageRequest(server string, teamName TeamName, conversationID ConversationID, body SendMessageJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSendMessageRequestWithBody(server, teamName, conversationID, "application/json", bodyReader) -} - -// NewSendMessageRequestWithBody generates requests for SendMessage with any type of body -func NewSendMessageRequestWithBody(server string, teamName TeamName, conversationID ConversationID, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPluginVersionTableRequest generates requests for GetPluginVersionTable +func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string) (*http.Request, error) { var err error var pathParam0 string @@ -16026,7 +14755,28 @@ func NewSendMessageRequestWithBody(server string, teamName TeamName, conversatio var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "conversation_id", runtime.ParamLocationPath, conversationID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if err != nil { + return nil, err + } + + var pathParam4 string + + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } @@ -16036,7 +14786,7 @@ func NewSendMessageRequestWithBody(server string, teamName TeamName, conversatio return nil, err } - operationPath := fmt.Sprintf("/teams/%s/conversations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16046,33 +14796,24 @@ func NewSendMessageRequestWithBody(server string, teamName TeamName, conversatio return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListAllCustomColumnsRequest generates requests for ListAllCustomColumns -func NewListAllCustomColumnsRequest(server string, teamName TeamName, params *ListAllCustomColumnsParams) (*http.Request, error) { +// NewListPoliciesRequest generates requests for ListPolicies +func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/custom-columns", pathParam0) + operationPath := fmt.Sprintf("/policies") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16117,9 +14858,9 @@ func NewListAllCustomColumnsRequest(server string, teamName TeamName, params *Li } - if params.CustomColumnSortBys != nil { + if params.PolicyStatus != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.CustomColumnSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.PolicyStatus); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16133,9 +14874,9 @@ func NewListAllCustomColumnsRequest(server string, teamName TeamName, params *Li } - if params.CustomColumnSortDirections != nil { + if params.Severities != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.CustomColumnSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16149,9 +14890,9 @@ func NewListAllCustomColumnsRequest(server string, teamName TeamName, params *Li } - if params.Table != nil { + if params.Domain != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "table", runtime.ParamLocationQuery, *params.Table); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain", runtime.ParamLocationQuery, *params.Domain); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16165,9 +14906,57 @@ func NewListAllCustomColumnsRequest(server string, teamName TeamName, params *Li } - if params.SearchTerm != nil { + if params.PolicyGroupIds != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "policy_group_ids", runtime.ParamLocationQuery, params.PolicyGroupIds); 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.SortBy != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); 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.SortDir != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, *params.SortDir); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16192,34 +14981,27 @@ func NewListAllCustomColumnsRequest(server string, teamName TeamName, params *Li return req, nil } -// NewSaveCustomColumnRequest calls the generic SaveCustomColumn builder with application/json body -func NewSaveCustomColumnRequest(server string, teamName TeamName, body SaveCustomColumnJSONRequestBody) (*http.Request, error) { +// NewCreatePolicyRequest calls the generic CreatePolicy builder with application/json body +func NewCreatePolicyRequest(server string, body CreatePolicyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewSaveCustomColumnRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreatePolicyRequestWithBody(server, "application/json", bodyReader) } -// NewSaveCustomColumnRequestWithBody generates requests for SaveCustomColumn with any type of body -func NewSaveCustomColumnRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreatePolicyRequestWithBody generates requests for CreatePolicy with any type of body +func NewCreatePolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/custom-columns", pathParam0) + operationPath := fmt.Sprintf("/policies") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16239,30 +15021,16 @@ func NewSaveCustomColumnRequestWithBody(server string, teamName TeamName, conten return req, nil } -// NewDeleteCustomColumnRequest generates requests for DeleteCustomColumn -func NewDeleteCustomColumnRequest(server string, teamName TeamName, customColumnID CustomColumnID) (*http.Request, error) { +// NewGetPolicyMetricsRequest generates requests for GetPolicyMetrics +func NewGetPolicyMetricsRequest(server string, params *GetPolicyMetricsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/custom-columns/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/policies/metrics") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16272,144 +15040,78 @@ func NewDeleteCustomColumnRequest(server string, teamName TeamName, customColumn return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} + if params != nil { + queryValues := queryURL.Query() -// NewGetCustomColumnRequest generates requests for GetCustomColumn -func NewGetCustomColumnRequest(server string, teamName TeamName, customColumnID CustomColumnID) (*http.Request, error) { - var err error + if params.Severities != nil { - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/custom-columns/%s", pathParam0, pathParam1) - 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 -} - -// NewUpdateCustomColumnRequest calls the generic UpdateCustomColumn builder with application/json body -func NewUpdateCustomColumnRequest(server string, teamName TeamName, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateCustomColumnRequestWithBody(server, teamName, customColumnID, "application/json", bodyReader) -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); 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) + } + } + } -// NewUpdateCustomColumnRequestWithBody generates requests for UpdateCustomColumn with any type of body -func NewUpdateCustomColumnRequestWithBody(server string, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Domain != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain", runtime.ParamLocationQuery, *params.Domain); 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) - if err != nil { - return nil, err - } + if params.PolicyGroupIds != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "policy_group_ids", runtime.ParamLocationQuery, params.PolicyGroupIds); 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) + } + } + } - operationPath := fmt.Sprintf("/teams/%s/custom-columns/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewPutCustomColumnDataRequest calls the generic PutCustomColumnData builder with application/json body -func NewPutCustomColumnDataRequest(server string, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnDataJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutCustomColumnDataRequestWithBody(server, teamName, customColumnID, "application/json", bodyReader) -} - -// NewPutCustomColumnDataRequestWithBody generates requests for PutCustomColumnData with any type of body -func NewPutCustomColumnDataRequestWithBody(server string, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader) (*http.Request, error) { +// NewGetViolationsByDomainRequest generates requests for GetViolationsByDomain +func NewGetViolationsByDomainRequest(server string, params *GetViolationsByDomainParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/custom-columns/%s/import", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/policies/violations-by-domain") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16419,87 +15121,78 @@ func NewPutCustomColumnDataRequestWithBody(server string, teamName TeamName, cus return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.Severities != nil { -// NewPutCustomColumnValuesRequest calls the generic PutCustomColumnValues builder with application/json body -func NewPutCustomColumnValuesRequest(server string, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnValuesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutCustomColumnValuesRequestWithBody(server, teamName, customColumnID, "application/json", bodyReader) -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); 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) + } + } + } -// NewPutCustomColumnValuesRequestWithBody generates requests for PutCustomColumnValues with any type of body -func NewPutCustomColumnValuesRequestWithBody(server string, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Domain != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain", runtime.ParamLocationQuery, *params.Domain); 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "custom_column_id", runtime.ParamLocationPath, customColumnID) - if err != nil { - return nil, err - } + if params.PolicyGroupIds != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "policy_group_ids", runtime.ParamLocationQuery, params.PolicyGroupIds); 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) + } + } + } - operationPath := fmt.Sprintf("/teams/%s/custom-columns/%s/values", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListFiltersTeamRequest generates requests for ListFiltersTeam -func NewListFiltersTeamRequest(server string, teamName TeamName, params *ListFiltersTeamParams) (*http.Request, error) { +// NewGetViolationsHistoryRequest generates requests for GetViolationsHistory +func NewGetViolationsHistoryRequest(server string, params *GetViolationsHistoryParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/filters", pathParam0) + operationPath := fmt.Sprintf("/policies/violations-history") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16512,9 +15205,9 @@ func NewListFiltersTeamRequest(server string, teamName TeamName, params *ListFil if params != nil { queryValues := queryURL.Query() - if params.PerPage != nil { + if params.StartDate != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_date", runtime.ParamLocationQuery, *params.StartDate); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16528,9 +15221,9 @@ func NewListFiltersTeamRequest(server string, teamName TeamName, params *ListFil } - if params.Page != nil { + if params.EndDate != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_date", runtime.ParamLocationQuery, *params.EndDate); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16544,9 +15237,9 @@ func NewListFiltersTeamRequest(server string, teamName TeamName, params *ListFil } - if params.FilterTags != nil { + if params.Severities != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.FilterTags); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16560,9 +15253,9 @@ func NewListFiltersTeamRequest(server string, teamName TeamName, params *ListFil } - if params.NameFilter != nil { + if params.Domain != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name_filter", runtime.ParamLocationQuery, *params.NameFilter); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain", runtime.ParamLocationQuery, *params.Domain); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16576,9 +15269,9 @@ func NewListFiltersTeamRequest(server string, teamName TeamName, params *ListFil } - if params.ExpressionFilter != nil { + if params.PolicyGroupIds != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expression_filter", runtime.ParamLocationQuery, *params.ExpressionFilter); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "policy_group_ids", runtime.ParamLocationQuery, params.PolicyGroupIds); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16603,13 +15296,13 @@ func NewListFiltersTeamRequest(server string, teamName TeamName, params *ListFil return req, nil } -// NewListFilterTagsTeamRequest generates requests for ListFilterTagsTeam -func NewListFilterTagsTeamRequest(server string, teamName TeamName, params *ListFilterTagsTeamParams) (*http.Request, error) { +// NewDeletePolicyRequest generates requests for DeletePolicy +func NewDeletePolicyRequest(server string, policyID PolicyID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyID) if err != nil { return nil, err } @@ -16619,7 +15312,7 @@ func NewListFilterTagsTeamRequest(server string, teamName TeamName, params *List return nil, err } - operationPath := fmt.Sprintf("/teams/%s/filters/tags", pathParam0) + operationPath := fmt.Sprintf("/policies/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16629,45 +15322,7 @@ func NewListFilterTagsTeamRequest(server string, teamName TeamName, params *List return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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.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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -16675,20 +15330,13 @@ func NewListFilterTagsTeamRequest(server string, teamName TeamName, params *List return req, nil } -// NewDeleteFilterTeamRequest generates requests for DeleteFilterTeam -func NewDeleteFilterTeamRequest(server string, teamName TeamName, filterID FilterID) (*http.Request, error) { +// NewGetPolicyRequest generates requests for GetPolicy +func NewGetPolicyRequest(server string, policyID PolicyID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "filter_id", runtime.ParamLocationPath, filterID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyID) if err != nil { return nil, err } @@ -16698,7 +15346,7 @@ func NewDeleteFilterTeamRequest(server string, teamName TeamName, filterID Filte return nil, err } - operationPath := fmt.Sprintf("/teams/%s/filters/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/policies/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16708,7 +15356,7 @@ func NewDeleteFilterTeamRequest(server string, teamName TeamName, filterID Filte return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -16716,20 +15364,24 @@ func NewDeleteFilterTeamRequest(server string, teamName TeamName, filterID Filte return req, nil } -// NewGetFilterByIDTeamRequest generates requests for GetFilterByIDTeam -func NewGetFilterByIDTeamRequest(server string, teamName TeamName, filterID FilterID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewUpdatePolicyRequest calls the generic UpdatePolicy builder with application/json body +func NewUpdatePolicyRequest(server string, policyID PolicyID, body UpdatePolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdatePolicyRequestWithBody(server, policyID, "application/json", bodyReader) +} - var pathParam1 string +// NewUpdatePolicyRequestWithBody generates requests for UpdatePolicy with any type of body +func NewUpdatePolicyRequestWithBody(server string, policyID PolicyID, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "filter_id", runtime.ParamLocationPath, filterID) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyID) if err != nil { return nil, err } @@ -16739,7 +15391,7 @@ func NewGetFilterByIDTeamRequest(server string, teamName TeamName, filterID Filt return nil, err } - operationPath := fmt.Sprintf("/teams/%s/filters/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/policies/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16749,39 +15401,23 @@ func NewGetFilterByIDTeamRequest(server string, teamName TeamName, filterID Filt return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewUpdateFilterTeamRequest calls the generic UpdateFilterTeam builder with application/json body -func NewUpdateFilterTeamRequest(server string, teamName TeamName, filterID FilterID, body UpdateFilterTeamJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateFilterTeamRequestWithBody(server, teamName, filterID, "application/json", bodyReader) + return req, nil } -// NewUpdateFilterTeamRequestWithBody generates requests for UpdateFilterTeam with any type of body -func NewUpdateFilterTeamRequestWithBody(server string, teamName TeamName, filterID FilterID, contentType string, body io.Reader) (*http.Request, error) { +// NewTogglePolicyRequest generates requests for TogglePolicy +func NewTogglePolicyRequest(server string, policyID PolicyID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "filter_id", runtime.ParamLocationPath, filterID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyID) if err != nil { return nil, err } @@ -16791,7 +15427,7 @@ func NewUpdateFilterTeamRequestWithBody(server string, teamName TeamName, filter return nil, err } - operationPath := fmt.Sprintf("/teams/%s/filters/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/policies/%s/toggle", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16801,34 +15437,21 @@ func NewUpdateFilterTeamRequestWithBody(server string, teamName TeamName, filter return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewCreateTeamImagesRequest calls the generic CreateTeamImages builder with application/json body -func NewCreateTeamImagesRequest(server string, teamName TeamName, body CreateTeamImagesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateTeamImagesRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewCreateTeamImagesRequestWithBody generates requests for CreateTeamImages with any type of body -func NewCreateTeamImagesRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPolicyViolationsRequest generates requests for GetPolicyViolations +func NewGetPolicyViolationsRequest(server string, policyID PolicyID, params *GetPolicyViolationsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyID) if err != nil { return nil, err } @@ -16838,7 +15461,7 @@ func NewCreateTeamImagesRequestWithBody(server string, teamName TeamName, conten return nil, err } - operationPath := fmt.Sprintf("/teams/%s/images", pathParam0) + operationPath := fmt.Sprintf("/policies/%s/violations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16848,34 +15471,75 @@ func NewCreateTeamImagesRequestWithBody(server string, teamName TeamName, conten return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - req.Header.Add("Content-Type", contentType) + if params.Page != nil { - return req, 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) + } + } + } -// NewDeleteTeamInvitationRequest calls the generic DeleteTeamInvitation builder with application/json body -func NewDeleteTeamInvitationRequest(server string, teamName TeamName, body DeleteTeamInvitationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + } + + 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewDeleteTeamInvitationRequestWithBody(server, teamName, "application/json", bodyReader) + + return req, nil } -// NewDeleteTeamInvitationRequestWithBody generates requests for DeleteTeamInvitation with any type of body -func NewDeleteTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPolicyViolationsHistoryRequest generates requests for GetPolicyViolationsHistory +func NewGetPolicyViolationsHistoryRequest(server string, policyID PolicyID, params *GetPolicyViolationsHistoryParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyID) if err != nil { return nil, err } @@ -16885,7 +15549,7 @@ func NewDeleteTeamInvitationRequestWithBody(server string, teamName TeamName, co return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) + operationPath := fmt.Sprintf("/policies/%s/violations-history", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16895,33 +15559,94 @@ func NewDeleteTeamInvitationRequestWithBody(server string, teamName TeamName, co return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - req.Header.Add("Content-Type", contentType) + if params.PerPage != nil { - return req, 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) + } + } + } -// NewListTeamInvitationsRequest generates requests for ListTeamInvitations -func NewListTeamInvitationsRequest(server string, teamName TeamName, params *ListTeamInvitationsParams) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Page != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + 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.StartTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_time", runtime.ParamLocationQuery, *params.StartTime); 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.EndTime != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_time", runtime.ParamLocationQuery, *params.EndTime); 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 +} + +// NewListPolicyGroupsRequest generates requests for ListPolicyGroups +func NewListPolicyGroupsRequest(server string, params *ListPolicyGroupsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) + operationPath := fmt.Sprintf("/policy-groups") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16934,9 +15659,9 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis if params != nil { queryValues := queryURL.Query() - if params.Page != nil { + if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != 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 @@ -16950,9 +15675,9 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis } - if params.PerPage != nil { + if params.Severities != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "severities", runtime.ParamLocationQuery, params.Severities); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16977,34 +15702,27 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis return req, nil } -// NewAcceptTeamInvitationRequest calls the generic AcceptTeamInvitation builder with application/json body -func NewAcceptTeamInvitationRequest(server string, teamName TeamName, body AcceptTeamInvitationJSONRequestBody) (*http.Request, error) { +// NewCreatePolicyGroupRequest calls the generic CreatePolicyGroup builder with application/json body +func NewCreatePolicyGroupRequest(server string, body CreatePolicyGroupJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewAcceptTeamInvitationRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreatePolicyGroupRequestWithBody(server, "application/json", bodyReader) } -// NewAcceptTeamInvitationRequestWithBody generates requests for AcceptTeamInvitation with any type of body -func NewAcceptTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreatePolicyGroupRequestWithBody generates requests for CreatePolicyGroup with any type of body +func NewCreatePolicyGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invitations/accept", pathParam0) + operationPath := fmt.Sprintf("/policy-groups") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17024,24 +15742,13 @@ func NewAcceptTeamInvitationRequestWithBody(server string, teamName TeamName, co return req, nil } -// NewRemoveTeamMembershipRequest calls the generic RemoveTeamMembership builder with application/json body -func NewRemoveTeamMembershipRequest(server string, teamName TeamName, body RemoveTeamMembershipJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRemoveTeamMembershipRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewRemoveTeamMembershipRequestWithBody generates requests for RemoveTeamMembership with any type of body -func NewRemoveTeamMembershipRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewDeletePolicyGroupRequest generates requests for DeletePolicyGroup +func NewDeletePolicyGroupRequest(server string, policyGroupID PolicyGroupID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_group_id", runtime.ParamLocationPath, policyGroupID) if err != nil { return nil, err } @@ -17051,7 +15758,7 @@ func NewRemoveTeamMembershipRequestWithBody(server string, teamName TeamName, co return nil, err } - operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) + operationPath := fmt.Sprintf("/policy-groups/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17061,23 +15768,21 @@ func NewRemoveTeamMembershipRequestWithBody(server string, teamName TeamName, co return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetTeamMembershipsRequest generates requests for GetTeamMemberships -func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetTeamMembershipsParams) (*http.Request, error) { +// NewListPoliciesInGroupRequest generates requests for ListPoliciesInGroup +func NewListPoliciesInGroupRequest(server string, policyGroupID PolicyGroupID, params *ListPoliciesInGroupParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_group_id", runtime.ParamLocationPath, policyGroupID) if err != nil { return nil, err } @@ -17087,7 +15792,7 @@ func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetT return nil, err } - operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) + operationPath := fmt.Sprintf("/policy-groups/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17100,6 +15805,22 @@ func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetT if params != nil { queryValues := queryURL.Query() + 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.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -17116,9 +15837,9 @@ func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetT } - if params.PerPage != nil { + if params.SortBy != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17132,10 +15853,26 @@ func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetT } - queryURL.RawQuery = queryValues.Encode() - } + if params.SortDir != nil { - req, err := http.NewRequest("GET", queryURL.String(), nil) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, *params.SortDir); 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 } @@ -17143,20 +15880,24 @@ func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetT return req, nil } -// NewDeleteTeamMembershipRequest generates requests for DeleteTeamMembership -func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email EmailBasic) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewUpdatePolicyGroupRequest calls the generic UpdatePolicyGroup builder with application/json body +func NewUpdatePolicyGroupRequest(server string, policyGroupID PolicyGroupID, body UpdatePolicyGroupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdatePolicyGroupRequestWithBody(server, policyGroupID, "application/json", bodyReader) +} - var pathParam1 string +// NewUpdatePolicyGroupRequestWithBody generates requests for UpdatePolicyGroup with any type of body +func NewUpdatePolicyGroupRequestWithBody(server string, policyGroupID PolicyGroupID, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "email", runtime.ParamLocationPath, email) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policy_group_id", runtime.ParamLocationPath, policyGroupID) if err != nil { return nil, err } @@ -17166,7 +15907,7 @@ func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email Emai return nil, err } - operationPath := fmt.Sprintf("/teams/%s/memberships/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/policy-groups/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17176,38 +15917,26 @@ func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email Emai return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewDeleteNotificationDestinationRequest generates requests for DeleteNotificationDestination -func NewDeleteNotificationDestinationRequest(server string, teamName TeamName, notificationDestinationID NotificationDestinationID) (*http.Request, error) { +// NewListAllQueriesRequest generates requests for ListAllQueries +func NewListAllQueriesRequest(server string, params *ListAllQueriesParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/notifications/destination/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/queries") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17217,45 +15946,154 @@ func NewDeleteNotificationDestinationRequest(server string, teamName TeamName, n return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.PerPage != nil { -// NewGetNotificationDestinationRequest generates requests for GetNotificationDestination -func NewGetNotificationDestinationRequest(server string, teamName TeamName, notificationDestinationID NotificationDestinationID) (*http.Request, error) { - var err error + 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) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if params.Page != nil { - var pathParam1 string + 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) + } + } + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationID) - if err != nil { - return nil, err - } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.QueryTags != nil { - operationPath := fmt.Sprintf("/teams/%s/notifications/destination/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.QueryTags); 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, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + } + + if params.NameFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name_filter", runtime.ParamLocationQuery, *params.NameFilter); 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.QueryFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "query_filter", runtime.ParamLocationQuery, *params.QueryFilter); 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.AlertConfigured != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alert_configured", runtime.ParamLocationQuery, *params.AlertConfigured); 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.AlertMessageFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alert_message_filter", runtime.ParamLocationQuery, *params.AlertMessageFilter); 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.AlertEnabled != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alert_enabled", runtime.ParamLocationQuery, *params.AlertEnabled); 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.ColumnFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "column_filter", runtime.ParamLocationQuery, params.ColumnFilter); 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) @@ -17266,41 +16104,27 @@ func NewGetNotificationDestinationRequest(server string, teamName TeamName, noti return req, nil } -// NewUpdateNotificationDestinationRequest calls the generic UpdateNotificationDestination builder with application/json body -func NewUpdateNotificationDestinationRequest(server string, teamName TeamName, notificationDestinationID NotificationDestinationID, body UpdateNotificationDestinationJSONRequestBody) (*http.Request, error) { +// NewExecuteAdHocQueryRequest calls the generic ExecuteAdHocQuery builder with application/json body +func NewExecuteAdHocQueryRequest(server string, params *ExecuteAdHocQueryParams, body ExecuteAdHocQueryJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateNotificationDestinationRequestWithBody(server, teamName, notificationDestinationID, "application/json", bodyReader) + return NewExecuteAdHocQueryRequestWithBody(server, params, "application/json", bodyReader) } -// NewUpdateNotificationDestinationRequestWithBody generates requests for UpdateNotificationDestination with any type of body -func NewUpdateNotificationDestinationRequestWithBody(server string, teamName TeamName, notificationDestinationID NotificationDestinationID, contentType string, body io.Reader) (*http.Request, error) { +// NewExecuteAdHocQueryRequestWithBody generates requests for ExecuteAdHocQuery with any type of body +func NewExecuteAdHocQueryRequestWithBody(server string, params *ExecuteAdHocQueryParams, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/notifications/destination/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/queries/execute") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17310,51 +16134,120 @@ func NewUpdateNotificationDestinationRequestWithBody(server string, teamName Tea return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - req.Header.Add("Content-Type", contentType) + if params.Selects != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "select", runtime.ParamLocationQuery, params.Selects); 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) + } + } + } -// NewGetNotificationDestinationAlertsRequest generates requests for GetNotificationDestinationAlerts -func NewGetNotificationDestinationAlertsRequest(server string, teamName TeamName, notificationDestinationID NotificationDestinationID, params *GetNotificationDestinationAlertsParams) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.FilterMode != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationID) - if err != nil { - return nil, err - } + if params.Filters != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); 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) + } + } + } - operationPath := fmt.Sprintf("/teams/%s/notifications/destination/%s/alerts", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if params.FilterIDs != nil { - if params != nil { - queryValues := queryURL.Query() + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); 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.SortBys != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SortBys); 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.SortDirections != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); 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.GroupBys != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_by", runtime.ParamLocationQuery, params.GroupBys); 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 { @@ -17391,38 +16284,37 @@ func NewGetNotificationDestinationAlertsRequest(server string, teamName TeamName queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("GET", 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 } -// NewTestNotificationDestinationRequest generates requests for TestNotificationDestination -func NewTestNotificationDestinationRequest(server string, teamName TeamName, notificationDestinationID NotificationDestinationID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewSaveQueryRequest calls the generic SaveQuery builder with application/json body +func NewSaveQueryRequest(server string, body SaveQueryJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewSaveQueryRequestWithBody(server, "application/json", bodyReader) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "notification_destination_id", runtime.ParamLocationPath, notificationDestinationID) - if err != nil { - return nil, err - } +// NewSaveQueryRequestWithBody generates requests for SaveQuery with any type of body +func NewSaveQueryRequestWithBody(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("/teams/%s/notifications/destination/%s/test", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/queries/save") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17432,31 +16324,26 @@ func NewTestNotificationDestinationRequest(server string, teamName TeamName, not return nil, err } - req, err := http.NewRequest("POST", 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 } -// NewListAllNotificationDestinationsRequest generates requests for ListAllNotificationDestinations -func NewListAllNotificationDestinationsRequest(server string, teamName TeamName, params *ListAllNotificationDestinationsParams) (*http.Request, error) { +// NewListQueryTagsRequest generates requests for ListQueryTags +func NewListQueryTagsRequest(server string, params *ListQueryTagsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/notifications/destinations", pathParam0) + operationPath := fmt.Sprintf("/queries/tags") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17512,24 +16399,13 @@ func NewListAllNotificationDestinationsRequest(server string, teamName TeamName, return req, nil } -// NewCreateNotificationDestinationRequest calls the generic CreateNotificationDestination builder with application/json body -func NewCreateNotificationDestinationRequest(server string, teamName TeamName, body CreateNotificationDestinationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateNotificationDestinationRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewCreateNotificationDestinationRequestWithBody generates requests for CreateNotificationDestination with any type of body -func NewCreateNotificationDestinationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteSavedQueryRequest generates requests for DeleteSavedQuery +func NewDeleteSavedQueryRequest(server string, queryID QueryID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } @@ -17539,7 +16415,7 @@ func NewCreateNotificationDestinationRequestWithBody(server string, teamName Tea return nil, err } - operationPath := fmt.Sprintf("/teams/%s/notifications/destinations", pathParam0) + operationPath := fmt.Sprintf("/queries/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17549,34 +16425,21 @@ func NewCreateNotificationDestinationRequestWithBody(server string, teamName Tea return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewTestUnsavedNotificationDestinationRequest calls the generic TestUnsavedNotificationDestination builder with application/json body -func NewTestUnsavedNotificationDestinationRequest(server string, teamName TeamName, body TestUnsavedNotificationDestinationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTestUnsavedNotificationDestinationRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewTestUnsavedNotificationDestinationRequestWithBody generates requests for TestUnsavedNotificationDestination with any type of body -func NewTestUnsavedNotificationDestinationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewGetSavedQueryRequest generates requests for GetSavedQuery +func NewGetSavedQueryRequest(server string, queryID QueryID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } @@ -17586,7 +16449,7 @@ func NewTestUnsavedNotificationDestinationRequestWithBody(server string, teamNam return nil, err } - operationPath := fmt.Sprintf("/teams/%s/notifications/destinations/test", pathParam0) + operationPath := fmt.Sprintf("/queries/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17596,34 +16459,32 @@ func NewTestUnsavedNotificationDestinationRequestWithBody(server string, teamNam return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewCreateAWSOnboardingRequest calls the generic CreateAWSOnboarding builder with application/json body -func NewCreateAWSOnboardingRequest(server string, teamName TeamName, body CreateAWSOnboardingJSONRequestBody) (*http.Request, error) { +// NewUpdateQueryRequest calls the generic UpdateQuery builder with application/json body +func NewUpdateQueryRequest(server string, queryID QueryID, body UpdateQueryJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateAWSOnboardingRequestWithBody(server, teamName, "application/json", bodyReader) + return NewUpdateQueryRequestWithBody(server, queryID, "application/json", bodyReader) } -// NewCreateAWSOnboardingRequestWithBody generates requests for CreateAWSOnboarding with any type of body -func NewCreateAWSOnboardingRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateQueryRequestWithBody generates requests for UpdateQuery with any type of body +func NewUpdateQueryRequestWithBody(server string, queryID QueryID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } @@ -17633,7 +16494,7 @@ func NewCreateAWSOnboardingRequestWithBody(server string, teamName TeamName, con return nil, err } - operationPath := fmt.Sprintf("/teams/%s/onboardings/aws/oidc", pathParam0) + operationPath := fmt.Sprintf("/queries/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17643,7 +16504,7 @@ func NewCreateAWSOnboardingRequestWithBody(server string, teamName TeamName, con return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -17653,20 +16514,13 @@ func NewCreateAWSOnboardingRequestWithBody(server string, teamName TeamName, con return req, nil } -// NewGetAWSOnboardingRequest generates requests for GetAWSOnboarding -func NewGetAWSOnboardingRequest(server string, teamName TeamName, onboardingID OnboardingID) (*http.Request, error) { +// NewDeleteAlertRequest generates requests for DeleteAlert +func NewDeleteAlertRequest(server string, queryID QueryID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } @@ -17676,7 +16530,7 @@ func NewGetAWSOnboardingRequest(server string, teamName TeamName, onboardingID O return nil, err } - operationPath := fmt.Sprintf("/teams/%s/onboardings/aws/oidc/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/queries/%s/alert", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17686,7 +16540,7 @@ func NewGetAWSOnboardingRequest(server string, teamName TeamName, onboardingID O return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -17694,20 +16548,13 @@ func NewGetAWSOnboardingRequest(server string, teamName TeamName, onboardingID O return req, nil } -// NewGetAWSAccountsInRootRequest generates requests for GetAWSAccountsInRoot -func NewGetAWSAccountsInRootRequest(server string, teamName TeamName, onboardingID OnboardingID) (*http.Request, error) { +// NewExecuteSavedQueryRequest generates requests for ExecuteSavedQuery +func NewExecuteSavedQueryRequest(server string, queryID QueryID, params *ExecuteSavedQueryParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } @@ -17717,7 +16564,7 @@ func NewGetAWSAccountsInRootRequest(server string, teamName TeamName, onboarding return nil, err } - operationPath := fmt.Sprintf("/teams/%s/onboardings/aws/oidc/%s/accounts", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/queries/%s/execute", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17727,197 +16574,157 @@ func NewGetAWSAccountsInRootRequest(server string, teamName TeamName, onboarding return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProvisionOnboardingConfigurationRequest calls the generic ProvisionOnboardingConfiguration builder with application/json body -func NewProvisionOnboardingConfigurationRequest(server string, teamName TeamName, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProvisionOnboardingConfigurationRequestWithBody(server, teamName, onboardingID, "application/json", bodyReader) -} + if params != nil { + queryValues := queryURL.Query() -// NewProvisionOnboardingConfigurationRequestWithBody generates requests for ProvisionOnboardingConfiguration with any type of body -func NewProvisionOnboardingConfigurationRequestWithBody(server string, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader) (*http.Request, error) { - var err error + if params.Selects != nil { - var pathParam0 string + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "select", runtime.ParamLocationQuery, params.Selects); 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) + } + } + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + } - var pathParam1 string + if params.FilterMode != nil { - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + } - operationPath := fmt.Sprintf("/teams/%s/onboardings/aws/oidc/%s/accounts/provision", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.Filters != nil { - 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 -} - -// NewGetAWSAccountsInParentRequest generates requests for GetAWSAccountsInParent -func NewGetAWSAccountsInParentRequest(server string, teamName TeamName, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "aws_orgunit_id", runtime.ParamLocationPath, organizationalUnitID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/onboardings/aws/oidc/%s/accounts/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); 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) + } + } + } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + } - return req, nil -} + if params.FilterIDs != nil { -// NewNotifyOnboardingRequest calls the generic NotifyOnboarding builder with application/json body -func NewNotifyOnboardingRequest(server string, teamName TeamName, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewNotifyOnboardingRequestWithBody(server, teamName, onboardingID, "application/json", bodyReader) -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); 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) + } + } + } -// NewNotifyOnboardingRequestWithBody generates requests for NotifyOnboarding with any type of body -func NewNotifyOnboardingRequestWithBody(server string, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.SortBys != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SortBys); 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "onboarding_id", runtime.ParamLocationPath, onboardingID) - if err != nil { - return nil, err - } + if params.SortDirections != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); 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) + } + } + } - operationPath := fmt.Sprintf("/teams/%s/onboardings/aws/oidc/%s/notify", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if params.GroupBys != nil { - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_by", runtime.ParamLocationQuery, params.GroupBys); 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) + } + } + } - req.Header.Add("Content-Type", contentType) + } - return req, nil -} + if params.PerPage != nil { -// NewDeletePluginsByTeamRequest generates requests for DeletePluginsByTeam -func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Request, error) { - var err error + 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) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if params.Page != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + 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) + } + } + } - operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -17925,13 +16732,13 @@ func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Requ return req, nil } -// NewListPluginsByTeamRequest generates requests for ListPluginsByTeam -func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListPluginsByTeamParams) (*http.Request, error) { +// NewQueryListFiltersRequest generates requests for QueryListFilters +func NewQueryListFiltersRequest(server string, queryID QueryID, params *QueryListFiltersParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } @@ -17941,7 +16748,7 @@ func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListP return nil, err } - operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) + operationPath := fmt.Sprintf("/queries/%s/filters", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17954,9 +16761,9 @@ func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListP if params != nil { queryValues := queryURL.Query() - if params.Page != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != 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 @@ -17970,9 +16777,9 @@ func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListP } - if params.PerPage != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != 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 @@ -17986,9 +16793,9 @@ func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListP } - if params.IncludePrivate != nil { + if params.FilterTags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_private", runtime.ParamLocationQuery, *params.IncludePrivate); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.FilterTags); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18013,48 +16820,60 @@ func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListP return req, nil } -// NewDownloadPluginAssetByTeamRequest generates requests for DownloadPluginAssetByTeam -func NewDownloadPluginAssetByTeamRequest(server string, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams) (*http.Request, error) { +// NewQuerySaveFilterRequest calls the generic QuerySaveFilter builder with application/json body +func NewQuerySaveFilterRequest(server string, queryID QueryID, body QuerySaveFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewQuerySaveFilterRequestWithBody(server, queryID, "application/json", bodyReader) +} + +// NewQuerySaveFilterRequestWithBody generates requests for QuerySaveFilter with any type of body +func NewQuerySaveFilterRequestWithBody(server string, queryID QueryID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam2 string + operationPath := fmt.Sprintf("/queries/%s/filters", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - var pathParam4 string + req.Header.Add("Content-Type", contentType) - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) - if err != nil { - return nil, err - } + return req, nil +} - var pathParam5 string +// NewQueryListFilterTagsRequest generates requests for QueryListFilterTags +func NewQueryListFilterTagsRequest(server string, queryID QueryID, params *QueryListFilterTagsParams) (*http.Request, error) { + var err error - pathParam5, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) if err != nil { return nil, err } @@ -18064,7 +16883,7 @@ func NewDownloadPluginAssetByTeamRequest(server string, teamName TeamName, plugi return nil, err } - operationPath := fmt.Sprintf("/teams/%s/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) + operationPath := fmt.Sprintf("/queries/%s/filters/tags", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18074,46 +16893,62 @@ func NewDownloadPluginAssetByTeamRequest(server string, teamName TeamName, plugi return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - if params != nil { + queryValues := queryURL.Query() - if params.Accept != nil { - var headerParam0 string + if params.PerPage != nil { - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != 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) + } + } } - req.Header.Set("Accept", headerParam0) } - } + if params.Page != nil { - return req, 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) + } + } + } -// NewListPoliciesRequest generates requests for ListPolicies -func NewListPoliciesRequest(server string, teamName TeamName, params *ListPoliciesParams) (*http.Request, error) { - var err error + } - var pathParam0 string + queryURL.RawQuery = queryValues.Encode() + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } + return req, nil +} + +// NewListAllRBACPermissionsRequest generates requests for ListAllRBACPermissions +func NewListAllRBACPermissionsRequest(server string, params *ListAllRBACPermissionsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies", pathParam0) + operationPath := fmt.Sprintf("/rbac/permissions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18126,22 +16961,6 @@ func NewListPoliciesRequest(server string, teamName TeamName, params *ListPolici if params != nil { queryValues := queryURL.Query() - if params.SearchTerm != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); 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 { @@ -18174,9 +16993,9 @@ func NewListPoliciesRequest(server string, teamName TeamName, params *ListPolici } - if params.PlatformPolicySortBys != nil { + if params.RBACPermissionSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.PlatformPolicySortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.RBACPermissionSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18190,9 +17009,9 @@ func NewListPoliciesRequest(server string, teamName TeamName, params *ListPolici } - if params.PlatformPolicySortDirections != nil { + if params.RBACPermissionSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.PlatformPolicySortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.RBACPermissionSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18206,9 +17025,9 @@ func NewListPoliciesRequest(server string, teamName TeamName, params *ListPolici } - if params.Sort != nil { + if params.SearchTerm != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18233,34 +17052,27 @@ func NewListPoliciesRequest(server string, teamName TeamName, params *ListPolici return req, nil } -// NewCreatePolicyRequest calls the generic CreatePolicy builder with application/json body -func NewCreatePolicyRequest(server string, teamName TeamName, body CreatePolicyJSONRequestBody) (*http.Request, error) { +// NewCreateRBACPermissionRequest calls the generic CreateRBACPermission builder with application/json body +func NewCreateRBACPermissionRequest(server string, body CreateRBACPermissionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreatePolicyRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreateRBACPermissionRequestWithBody(server, "application/json", bodyReader) } -// NewCreatePolicyRequestWithBody generates requests for CreatePolicy with any type of body -func NewCreatePolicyRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateRBACPermissionRequestWithBody generates requests for CreateRBACPermission with any type of body +func NewCreateRBACPermissionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies", pathParam0) + operationPath := fmt.Sprintf("/rbac/permissions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18280,92 +17092,13 @@ func NewCreatePolicyRequestWithBody(server string, teamName TeamName, contentTyp return req, nil } -// NewListAllFrameworksRequest generates requests for ListAllFrameworks -func NewListAllFrameworksRequest(server string, teamName TeamName, params *ListAllFrameworksParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/policies/frameworks", 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.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.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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeletePolicyRequest generates requests for DeletePolicy -func NewDeletePolicyRequest(server string, teamName TeamName, policyId openapi_types.UUID) (*http.Request, error) { +// NewDeleteRBACPermissionRequest generates requests for DeleteRBACPermission +func NewDeleteRBACPermissionRequest(server string, rbacPermissionID RBACPermissionID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "permission_id", runtime.ParamLocationPath, rbacPermissionID) if err != nil { return nil, err } @@ -18375,7 +17108,7 @@ func NewDeletePolicyRequest(server string, teamName TeamName, policyId openapi_t return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/rbac/permissions/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18393,20 +17126,13 @@ func NewDeletePolicyRequest(server string, teamName TeamName, policyId openapi_t return req, nil } -// NewGetPolicyRequest generates requests for GetPolicy -func NewGetPolicyRequest(server string, teamName TeamName, policyId openapi_types.UUID) (*http.Request, error) { +// NewGetRBACPermissionRequest generates requests for GetRBACPermission +func NewGetRBACPermissionRequest(server string, rbacPermissionID RBACPermissionID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "permission_id", runtime.ParamLocationPath, rbacPermissionID) if err != nil { return nil, err } @@ -18416,7 +17142,7 @@ func NewGetPolicyRequest(server string, teamName TeamName, policyId openapi_type return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/rbac/permissions/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18434,31 +17160,24 @@ func NewGetPolicyRequest(server string, teamName TeamName, policyId openapi_type return req, nil } -// NewUpdatePolicyRequest calls the generic UpdatePolicy builder with application/json body -func NewUpdatePolicyRequest(server string, teamName TeamName, policyId openapi_types.UUID, body UpdatePolicyJSONRequestBody) (*http.Request, error) { +// NewUpdateRBACPermissionRequest calls the generic UpdateRBACPermission builder with application/json body +func NewUpdateRBACPermissionRequest(server string, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdatePolicyRequestWithBody(server, teamName, policyId, "application/json", bodyReader) + return NewUpdateRBACPermissionRequestWithBody(server, rbacPermissionID, "application/json", bodyReader) } -// NewUpdatePolicyRequestWithBody generates requests for UpdatePolicy with any type of body -func NewUpdatePolicyRequestWithBody(server string, teamName TeamName, policyId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateRBACPermissionRequestWithBody generates requests for UpdateRBACPermission with any type of body +func NewUpdateRBACPermissionRequestWithBody(server string, rbacPermissionID RBACPermissionID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "permission_id", runtime.ParamLocationPath, rbacPermissionID) if err != nil { return nil, err } @@ -18468,7 +17187,7 @@ func NewUpdatePolicyRequestWithBody(server string, teamName TeamName, policyId o return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/rbac/permissions/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18478,7 +17197,7 @@ func NewUpdatePolicyRequestWithBody(server string, teamName TeamName, policyId o return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -18488,30 +17207,16 @@ func NewUpdatePolicyRequestWithBody(server string, teamName TeamName, policyId o return req, nil } -// NewListPolicyFrameworksRequest generates requests for ListPolicyFrameworks -func NewListPolicyFrameworksRequest(server string, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyFrameworksParams) (*http.Request, error) { +// NewListAllRBACRolesRequest generates requests for ListAllRBACRoles +func NewListAllRBACRolesRequest(server string, params *ListAllRBACRolesParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies/%s/frameworks", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/rbac/roles") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18556,9 +17261,9 @@ func NewListPolicyFrameworksRequest(server string, teamName TeamName, policyId o } - if params.PlatformPolicyFrameworkSortBys != nil { + if params.RBACRoleSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.PlatformPolicyFrameworkSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.RBACRoleSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18572,9 +17277,9 @@ func NewListPolicyFrameworksRequest(server string, teamName TeamName, policyId o } - if params.PlatformPolicySortDirections != nil { + if params.RBACRoleSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.PlatformPolicySortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.RBACRoleSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18604,9 +17309,9 @@ func NewListPolicyFrameworksRequest(server string, teamName TeamName, policyId o } - if params.Sort != nil { + if params.Type != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18631,20 +17336,53 @@ func NewListPolicyFrameworksRequest(server string, teamName TeamName, policyId o return req, nil } -// NewListPolicyRulesRequest generates requests for ListPolicyRules -func NewListPolicyRulesRequest(server string, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyRulesParams) (*http.Request, error) { +// NewCreateRBACRoleRequest calls the generic CreateRBACRole builder with application/json body +func NewCreateRBACRoleRequest(server string, body CreateRBACRoleJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateRBACRoleRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateRBACRoleRequestWithBody generates requests for CreateRBACRole with any type of body +func NewCreateRBACRoleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + operationPath := fmt.Sprintf("/rbac/roles") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam1 string + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteRBACRoleRequest generates requests for DeleteRBACRole +func NewDeleteRBACRoleRequest(server string, roleID RoleID) (*http.Request, error) { + var err error + + var pathParam0 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "role_id", runtime.ParamLocationPath, roleID) if err != nil { return nil, err } @@ -18654,7 +17392,7 @@ func NewListPolicyRulesRequest(server string, teamName TeamName, policyId openap return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies/%s/rules", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/rbac/roles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18664,106 +17402,38 @@ func NewListPolicyRulesRequest(server string, teamName TeamName, policyId openap return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.PerPage != nil { + return req, 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) - } - } - } +// NewGetRBACRoleRequest generates requests for GetRBACRole +func NewGetRBACRoleRequest(server string, roleID RoleID) (*http.Request, error) { + var err error - } + var pathParam0 string - 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.PlatformPolicyRuleSortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.PlatformPolicyRuleSortBys); 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.PlatformPolicySortDirections != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.PlatformPolicySortDirections); 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.SearchTerm != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); 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.Sort != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "role_id", runtime.ParamLocationPath, roleID) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); 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) - } - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/rbac/roles/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - queryURL.RawQuery = queryValues.Encode() + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -18774,37 +17444,63 @@ func NewListPolicyRulesRequest(server string, teamName TeamName, policyId openap return req, nil } -// NewListPolicyRuleDetailsRequest generates requests for ListPolicyRuleDetails -func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId openapi_types.UUID, ruleId openapi_types.UUID, params *ListPolicyRuleDetailsParams) (*http.Request, error) { +// NewUpdateRBACRoleRequest calls the generic UpdateRBACRole builder with application/json body +func NewUpdateRBACRoleRequest(server string, roleID RoleID, body UpdateRBACRoleJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateRBACRoleRequestWithBody(server, roleID, "application/json", bodyReader) +} + +// NewUpdateRBACRoleRequestWithBody generates requests for UpdateRBACRole with any type of body +func NewUpdateRBACRoleRequestWithBody(server string, roleID RoleID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "role_id", runtime.ParamLocationPath, roleID) if err != nil { return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam2 string + operationPath := fmt.Sprintf("/rbac/roles/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "rule_id", runtime.ParamLocationPath, ruleId) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewListReportsRequest generates requests for ListReports +func NewListReportsRequest(server string, params *ListReportsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies/%s/rules/%s/details", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/reports") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18817,9 +17513,9 @@ func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId if params != nil { queryValues := queryURL.Query() - if params.PerPage != nil { + if params.SearchTerm != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18833,9 +17529,9 @@ func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId } - if params.Page != nil { + if params.Visibility != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "visibility", runtime.ParamLocationQuery, *params.Visibility); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18849,9 +17545,9 @@ func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId } - if params.PlatformPolicyRuleDetailSortBys != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.PlatformPolicyRuleDetailSortBys); err != 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 @@ -18865,9 +17561,9 @@ func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId } - if params.PlatformPolicySortDirections != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.PlatformPolicySortDirections); err != 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 @@ -18881,9 +17577,9 @@ func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId } - if params.SearchTerm != nil { + if params.ReportSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.ReportSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18897,9 +17593,9 @@ func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId } - if params.Sort != nil { + if params.ReportSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.ReportSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18924,30 +17620,27 @@ func NewListPolicyRuleDetailsRequest(server string, teamName TeamName, policyId return req, nil } -// NewTogglePolicyRequest generates requests for TogglePolicy -func NewTogglePolicyRequest(server string, teamName TeamName, policyId openapi_types.UUID, params *TogglePolicyParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewCreateReportRequest calls the generic CreateReport builder with application/json body +func NewCreateReportRequest(server string, body CreateReportJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateReportRequestWithBody(server, "application/json", bodyReader) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) - if err != nil { - return nil, err - } +// NewCreateReportRequestWithBody generates requests for CreateReport with any type of body +func NewCreateReportRequestWithBody(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("/teams/%s/policies/%s/toggle", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/reports") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -18957,56 +17650,26 @@ func NewTogglePolicyRequest(server string, teamName TeamName, policyId openapi_t return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", 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 } -// NewGetPolicyViolationsHistoryRequest generates requests for GetPolicyViolationsHistory -func NewGetPolicyViolationsHistoryRequest(server string, teamName TeamName, policyId openapi_types.UUID, params *GetPolicyViolationsHistoryParams) (*http.Request, error) { +// NewListReportTemplatesRequest generates requests for ListReportTemplates +func NewListReportTemplatesRequest(server string, params *ListReportTemplatesParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policy_id", runtime.ParamLocationPath, policyId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/policies/%s/violations-history", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/reports/templates") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19019,25 +17682,9 @@ func NewGetPolicyViolationsHistoryRequest(server string, teamName TeamName, poli if params != nil { queryValues := queryURL.Query() - 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.End != nil { + if params.SearchTerm != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -19051,46 +17698,6 @@ func NewGetPolicyViolationsHistoryRequest(server string, teamName TeamName, poli } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListAllQueriesTeamRequest generates requests for ListAllQueriesTeam -func NewListAllQueriesTeamRequest(server string, teamName TeamName, params *ListAllQueriesTeamParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/queries", 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.PerPage != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { @@ -19123,73 +17730,9 @@ func NewListAllQueriesTeamRequest(server string, teamName TeamName, params *List } - if params.QueryTags != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.QueryTags); 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.NameFilter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name_filter", runtime.ParamLocationQuery, *params.NameFilter); 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.QueryFilter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "query_filter", runtime.ParamLocationQuery, *params.QueryFilter); 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.AlertConfigured != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alert_configured", runtime.ParamLocationQuery, *params.AlertConfigured); 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.AlertMessageFilter != nil { + if params.ReportTemplateSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alert_message_filter", runtime.ParamLocationQuery, *params.AlertMessageFilter); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.ReportTemplateSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -19203,9 +17746,9 @@ func NewListAllQueriesTeamRequest(server string, teamName TeamName, params *List } - if params.AlertEnabled != nil { + if params.ReportTemplateSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "alert_enabled", runtime.ParamLocationQuery, *params.AlertEnabled); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.ReportTemplateSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -19230,34 +17773,27 @@ func NewListAllQueriesTeamRequest(server string, teamName TeamName, params *List return req, nil } -// NewExecuteAdHocQueryTeamRequest calls the generic ExecuteAdHocQueryTeam builder with application/json body -func NewExecuteAdHocQueryTeamRequest(server string, teamName TeamName, params *ExecuteAdHocQueryTeamParams, body ExecuteAdHocQueryTeamJSONRequestBody) (*http.Request, error) { +// NewCreateReportTemplateRequest calls the generic CreateReportTemplate builder with application/json body +func NewCreateReportTemplateRequest(server string, body CreateReportTemplateJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewExecuteAdHocQueryTeamRequestWithBody(server, teamName, params, "application/json", bodyReader) + return NewCreateReportTemplateRequestWithBody(server, "application/json", bodyReader) } -// NewExecuteAdHocQueryTeamRequestWithBody generates requests for ExecuteAdHocQueryTeam with any type of body -func NewExecuteAdHocQueryTeamRequestWithBody(server string, teamName TeamName, params *ExecuteAdHocQueryTeamParams, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateReportTemplateRequestWithBody generates requests for CreateReportTemplate with any type of body +func NewCreateReportTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/execute", pathParam0) + operationPath := fmt.Sprintf("/reports/templates") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19267,156 +17803,6 @@ func NewExecuteAdHocQueryTeamRequestWithBody(server string, teamName TeamName, p return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Selects != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "select", runtime.ParamLocationQuery, params.Selects); 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.FilterMode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); 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.Filters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); 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.FilterIDs != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); 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.SortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SortBys); 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.SortDirections != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); 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.GroupBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_by", runtime.ParamLocationQuery, params.GroupBys); 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.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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err @@ -19427,24 +17813,13 @@ func NewExecuteAdHocQueryTeamRequestWithBody(server string, teamName TeamName, p return req, nil } -// NewSaveQueryTeamRequest calls the generic SaveQueryTeam builder with application/json body -func NewSaveQueryTeamRequest(server string, teamName TeamName, body SaveQueryTeamJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSaveQueryTeamRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewSaveQueryTeamRequestWithBody generates requests for SaveQueryTeam with any type of body -func NewSaveQueryTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteReportTemplateRequest generates requests for DeleteReportTemplate +func NewDeleteReportTemplateRequest(server string, templateId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "template_id", runtime.ParamLocationPath, templateId) if err != nil { return nil, err } @@ -19454,7 +17829,7 @@ func NewSaveQueryTeamRequestWithBody(server string, teamName TeamName, contentTy return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/save", pathParam0) + operationPath := fmt.Sprintf("/reports/templates/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19464,23 +17839,21 @@ func NewSaveQueryTeamRequestWithBody(server string, teamName TeamName, contentTy return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListQueryTagsTeamRequest generates requests for ListQueryTagsTeam -func NewListQueryTagsTeamRequest(server string, teamName TeamName, params *ListQueryTagsTeamParams) (*http.Request, error) { +// NewGetReportTemplateRequest generates requests for GetReportTemplate +func NewGetReportTemplateRequest(server string, templateId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "template_id", runtime.ParamLocationPath, templateId) if err != nil { return nil, err } @@ -19490,7 +17863,7 @@ func NewListQueryTagsTeamRequest(server string, teamName TeamName, params *ListQ return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/tags", pathParam0) + operationPath := fmt.Sprintf("/reports/templates/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19500,66 +17873,68 @@ func NewListQueryTagsTeamRequest(server string, teamName TeamName, params *ListQ return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.PerPage != nil { + return req, 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) - } - } - } +// NewUpdateReportTemplateRequest calls the generic UpdateReportTemplate builder with application/json body +func NewUpdateReportTemplateRequest(server string, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateReportTemplateRequestWithBody(server, templateId, "application/json", bodyReader) +} - } +// NewUpdateReportTemplateRequestWithBody generates requests for UpdateReportTemplate with any type of body +func NewUpdateReportTemplateRequestWithBody(server string, templateId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error - if params.Page != nil { + var pathParam0 string - 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) - } - } - } + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "template_id", runtime.ParamLocationPath, templateId) + if err != nil { + return nil, err + } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - queryURL.RawQuery = queryValues.Encode() + operationPath := fmt.Sprintf("/reports/templates/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - req, err := http.NewRequest("GET", queryURL.String(), nil) + 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 } -// NewDeleteSavedQueryTeamRequest generates requests for DeleteSavedQueryTeam -func NewDeleteSavedQueryTeamRequest(server string, teamName TeamName, queryID QueryID) (*http.Request, error) { +// NewDeleteReportRequest generates requests for DeleteReport +func NewDeleteReportRequest(server string, reportId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "report_id", runtime.ParamLocationPath, reportId) if err != nil { return nil, err } @@ -19569,7 +17944,7 @@ func NewDeleteSavedQueryTeamRequest(server string, teamName TeamName, queryID Qu return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/reports/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19587,20 +17962,13 @@ func NewDeleteSavedQueryTeamRequest(server string, teamName TeamName, queryID Qu return req, nil } -// NewGetSavedQueryTeamRequest generates requests for GetSavedQueryTeam -func NewGetSavedQueryTeamRequest(server string, teamName TeamName, queryID QueryID) (*http.Request, error) { +// NewGetReportRequest generates requests for GetReport +func NewGetReportRequest(server string, reportId openapi_types.UUID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "report_id", runtime.ParamLocationPath, reportId) if err != nil { return nil, err } @@ -19610,7 +17978,7 @@ func NewGetSavedQueryTeamRequest(server string, teamName TeamName, queryID Query return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/reports/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19628,31 +17996,24 @@ func NewGetSavedQueryTeamRequest(server string, teamName TeamName, queryID Query return req, nil } -// NewUpdateQueryTeamRequest calls the generic UpdateQueryTeam builder with application/json body -func NewUpdateQueryTeamRequest(server string, teamName TeamName, queryID QueryID, body UpdateQueryTeamJSONRequestBody) (*http.Request, error) { +// NewUpdateReportRequest calls the generic UpdateReport builder with application/json body +func NewUpdateReportRequest(server string, reportId openapi_types.UUID, body UpdateReportJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateQueryTeamRequestWithBody(server, teamName, queryID, "application/json", bodyReader) + return NewUpdateReportRequestWithBody(server, reportId, "application/json", bodyReader) } -// NewUpdateQueryTeamRequestWithBody generates requests for UpdateQueryTeam with any type of body -func NewUpdateQueryTeamRequestWithBody(server string, teamName TeamName, queryID QueryID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateReportRequestWithBody generates requests for UpdateReport with any type of body +func NewUpdateReportRequestWithBody(server string, reportId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "report_id", runtime.ParamLocationPath, reportId) if err != nil { return nil, err } @@ -19662,7 +18023,7 @@ func NewUpdateQueryTeamRequestWithBody(server string, teamName TeamName, queryID return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/reports/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19672,7 +18033,7 @@ func NewUpdateQueryTeamRequestWithBody(server string, teamName TeamName, queryID return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -19682,30 +18043,54 @@ func NewUpdateQueryTeamRequestWithBody(server string, teamName TeamName, queryID return req, nil } -// NewDeleteAlertRequest generates requests for DeleteAlert -func NewDeleteAlertRequest(server string, teamName TeamName, queryID QueryID) (*http.Request, error) { +// NewGetSettingsRequest generates requests for GetSettings +func NewGetSettingsRequest(server string) (*http.Request, error) { var err error - var pathParam0 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + operationPath := fmt.Sprintf("/settings") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam1 string + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) +// NewUpdateSettingsRequest calls the generic UpdateSettings builder with application/json body +func NewUpdateSettingsRequest(server string, body UpdateSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdateSettingsRequestWithBody(server, "application/json", bodyReader) +} + +// NewUpdateSettingsRequestWithBody generates requests for UpdateSettings with any type of body +func NewUpdateSettingsRequestWithBody(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("/teams/%s/queries/%s/alert", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19715,38 +18100,64 @@ func NewDeleteAlertRequest(server string, teamName TeamName, queryID QueryID) (* return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewExecuteSavedQueryTeamRequest generates requests for ExecuteSavedQueryTeam -func NewExecuteSavedQueryTeamRequest(server string, teamName TeamName, queryID QueryID, params *ExecuteSavedQueryTeamParams) (*http.Request, error) { +// NewGetDataSettingsRequest generates requests for GetDataSettings +func NewGetDataSettingsRequest(server string) (*http.Request, error) { var err error - var pathParam0 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + operationPath := fmt.Sprintf("/settings/data") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam1 string + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) + return req, nil +} + +// NewUpdateDataSettingsRequest calls the generic UpdateDataSettings builder with application/json body +func NewUpdateDataSettingsRequest(server string, body UpdateDataSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdateDataSettingsRequestWithBody(server, "application/json", bodyReader) +} + +// NewUpdateDataSettingsRequestWithBody generates requests for UpdateDataSettings with any type of body +func NewUpdateDataSettingsRequestWithBody(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("/teams/%s/queries/%s/execute", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/settings/data") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19756,140 +18167,88 @@ func NewExecuteSavedQueryTeamRequest(server string, teamName TeamName, queryID Q return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Selects != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "select", runtime.ParamLocationQuery, params.Selects); 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.FilterMode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); 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.Filters != nil { + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); 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) - } - } - } + req.Header.Add("Content-Type", contentType) - } + return req, nil +} - if params.FilterIDs != nil { +// NewCreateSlackConnectionRequest calls the generic CreateSlackConnection builder with application/json body +func NewCreateSlackConnectionRequest(server string, body CreateSlackConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSlackConnectionRequestWithBody(server, "application/json", bodyReader) +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); 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) - } - } - } +// NewCreateSlackConnectionRequestWithBody generates requests for CreateSlackConnection with any type of body +func NewCreateSlackConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - if params.SortBys != nil { + operationPath := fmt.Sprintf("/slack") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SortBys); 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, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - } + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.SortDirections != nil { + req.Header.Add("Content-Type", contentType) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); 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) - } - } - } + return req, nil +} - } +// NewListSlackChannelsRequest generates requests for ListSlackChannels +func NewListSlackChannelsRequest(server string, id openapi_types.UUID, params *ListSlackChannelsParams) (*http.Request, error) { + var err error - if params.GroupBys != nil { + var pathParam0 string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_by", runtime.ParamLocationQuery, params.GroupBys); 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) - } - } - } + 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 + } - if params.PerPage != nil { + operationPath := fmt.Sprintf("/slack/%s/channels", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - 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, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - } + if params != nil { + queryValues := queryURL.Query() - if params.Page != nil { + if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -19906,7 +18265,7 @@ func NewExecuteSavedQueryTeamRequest(server string, teamName TeamName, queryID Q queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -19914,30 +18273,27 @@ func NewExecuteSavedQueryTeamRequest(server string, teamName TeamName, queryID Q return req, nil } -// NewQueryListFiltersTeamRequest generates requests for QueryListFiltersTeam -func NewQueryListFiltersTeamRequest(server string, teamName TeamName, queryID QueryID, params *QueryListFiltersTeamParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewCreateSyncDestinationTestConnectionRequest calls the generic CreateSyncDestinationTestConnection builder with application/json body +func NewCreateSyncDestinationTestConnectionRequest(server string, body CreateSyncDestinationTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncDestinationTestConnectionRequestWithBody(server, "application/json", bodyReader) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) - if err != nil { - return nil, err - } +// NewCreateSyncDestinationTestConnectionRequestWithBody generates requests for CreateSyncDestinationTestConnection with any type of body +func NewCreateSyncDestinationTestConnectionRequestWithBody(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("/teams/%s/queries/%s/filters", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-destination-test-connections") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -19947,58 +18303,40 @@ func NewQueryListFiltersTeamRequest(server string, teamName TeamName, queryID Qu return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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) - } - } - } + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - } + req.Header.Add("Content-Type", contentType) - if params.Page != nil { + return req, 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) - } - } - } +// NewGetSyncDestinationTestConnectionRequest generates requests for GetSyncDestinationTestConnection +func NewGetSyncDestinationTestConnectionRequest(server string, syncDestinationTestConnectionID SyncDestinationTestConnectionID) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.FilterTags != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.FilterTags); 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) - } - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/sync-destination-test-connections/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - queryURL.RawQuery = queryValues.Encode() + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -20009,31 +18347,24 @@ func NewQueryListFiltersTeamRequest(server string, teamName TeamName, queryID Qu return req, nil } -// NewQuerySaveFilterTeamRequest calls the generic QuerySaveFilterTeam builder with application/json body -func NewQuerySaveFilterTeamRequest(server string, teamName TeamName, queryID QueryID, body QuerySaveFilterTeamJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncTestConnectionForSyncDestinationRequest calls the generic UpdateSyncTestConnectionForSyncDestination builder with application/json body +func NewUpdateSyncTestConnectionForSyncDestinationRequest(server string, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewQuerySaveFilterTeamRequestWithBody(server, teamName, queryID, "application/json", bodyReader) + return NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(server, syncDestinationTestConnectionID, "application/json", bodyReader) } -// NewQuerySaveFilterTeamRequestWithBody generates requests for QuerySaveFilterTeam with any type of body -func NewQuerySaveFilterTeamRequestWithBody(server string, teamName TeamName, queryID QueryID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody generates requests for UpdateSyncTestConnectionForSyncDestination with any type of body +func NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(server string, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) if err != nil { return nil, err } @@ -20043,7 +18374,7 @@ func NewQuerySaveFilterTeamRequestWithBody(server string, teamName TeamName, que return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/%s/filters", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-destination-test-connections/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20053,7 +18384,7 @@ func NewQuerySaveFilterTeamRequestWithBody(server string, teamName TeamName, que return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -20063,20 +18394,13 @@ func NewQuerySaveFilterTeamRequestWithBody(server string, teamName TeamName, que return req, nil } -// NewQueryListFilterTagsTeamRequest generates requests for QueryListFilterTagsTeam -func NewQueryListFilterTagsTeamRequest(server string, teamName TeamName, queryID QueryID, params *QueryListFilterTagsTeamParams) (*http.Request, error) { +// NewGetSyncDestinationTestConnectionLogsLiveRequest generates requests for GetSyncDestinationTestConnectionLogsLive +func NewGetSyncDestinationTestConnectionLogsLiveRequest(server string, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "query_id", runtime.ParamLocationPath, queryID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) if err != nil { return nil, err } @@ -20086,7 +18410,7 @@ func NewQueryListFilterTagsTeamRequest(server string, teamName TeamName, queryID return nil, err } - operationPath := fmt.Sprintf("/teams/%s/queries/%s/filters/tags", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-destination-test-connections/%s/logs/live", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20096,59 +18420,36 @@ func NewQueryListFilterTagsTeamRequest(server string, teamName TeamName, queryID return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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) - } - } - } + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - } + if params != nil { - if params.Page != nil { + if params.Accept != nil { + var headerParam0 string - 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 { + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } + req.Header.Set("Accept", headerParam0) } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err } return req, nil } -// NewListAllRBACPermissionsRequest generates requests for ListAllRBACPermissions -func NewListAllRBACPermissionsRequest(server string, teamName TeamName, params *ListAllRBACPermissionsParams) (*http.Request, error) { +// NewGetSyncDestinationTestConnectionLogsQueryRequest generates requests for GetSyncDestinationTestConnectionLogsQuery +func NewGetSyncDestinationTestConnectionLogsQueryRequest(server string, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) if err != nil { return nil, err } @@ -20158,7 +18459,7 @@ func NewListAllRBACPermissionsRequest(server string, teamName TeamName, params * return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/permissions", pathParam0) + operationPath := fmt.Sprintf("/sync-destination-test-connections/%s/logs/query", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20171,25 +18472,9 @@ func NewListAllRBACPermissionsRequest(server string, teamName TeamName, params * if params != nil { queryValues := queryURL.Query() - 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.Page != nil { + if params.Filters != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -20203,9 +18488,9 @@ func NewListAllRBACPermissionsRequest(server string, teamName TeamName, params * } - if params.RBACPermissionSortBys != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.RBACPermissionSortBys); err != 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 @@ -20219,9 +18504,9 @@ func NewListAllRBACPermissionsRequest(server string, teamName TeamName, params * } - if params.RBACPermissionSortDirections != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.RBACPermissionSortDirections); err != 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 @@ -20235,9 +18520,9 @@ func NewListAllRBACPermissionsRequest(server string, teamName TeamName, params * } - if params.SearchTerm != nil { + if params.Download != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download", runtime.ParamLocationQuery, *params.Download); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -20259,27 +18544,42 @@ func NewListAllRBACPermissionsRequest(server string, teamName TeamName, params * return nil, err } + if params != nil { + + if params.Accept != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { + return nil, err + } + + req.Header.Set("Accept", headerParam0) + } + + } + return req, nil } -// NewCreateRBACPermissionRequest calls the generic CreateRBACPermission builder with application/json body -func NewCreateRBACPermissionRequest(server string, teamName TeamName, body CreateRBACPermissionJSONRequestBody) (*http.Request, error) { +// NewPromoteSyncDestinationTestConnectionRequest calls the generic PromoteSyncDestinationTestConnection builder with application/json body +func NewPromoteSyncDestinationTestConnectionRequest(server string, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateRBACPermissionRequestWithBody(server, teamName, "application/json", bodyReader) + return NewPromoteSyncDestinationTestConnectionRequestWithBody(server, syncDestinationTestConnectionID, "application/json", bodyReader) } -// NewCreateRBACPermissionRequestWithBody generates requests for CreateRBACPermission with any type of body -func NewCreateRBACPermissionRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewPromoteSyncDestinationTestConnectionRequestWithBody generates requests for PromoteSyncDestinationTestConnection with any type of body +func NewPromoteSyncDestinationTestConnectionRequestWithBody(server string, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) if err != nil { return nil, err } @@ -20289,7 +18589,7 @@ func NewCreateRBACPermissionRequestWithBody(server string, teamName TeamName, co return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/permissions", pathParam0) + operationPath := fmt.Sprintf("/sync-destination-test-connections/%s/promote", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20309,21 +18609,127 @@ func NewCreateRBACPermissionRequestWithBody(server string, teamName TeamName, co return req, nil } -// NewDeleteRBACPermissionRequest generates requests for DeleteRBACPermission -func NewDeleteRBACPermissionRequest(server string, teamName TeamName, rbacPermissionID RBACPermissionID) (*http.Request, error) { +// NewListSyncDestinationsRequest generates requests for ListSyncDestinations +func NewListSyncDestinationsRequest(server string, params *ListSyncDestinationsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "permission_id", runtime.ParamLocationPath, rbacPermissionID) - if err != nil { + operationPath := fmt.Sprintf("/sync-destinations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + 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.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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.SyncGenericSortBys != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); 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.SyncSortDirections != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); 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 +} + +// NewDeleteSyncDestinationRequest generates requests for DeleteSyncDestination +func NewDeleteSyncDestinationRequest(server string, syncDestinationName SyncDestinationName) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + if err != nil { return nil, err } @@ -20332,7 +18738,7 @@ func NewDeleteRBACPermissionRequest(server string, teamName TeamName, rbacPermis return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/permissions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-destinations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20350,20 +18756,13 @@ func NewDeleteRBACPermissionRequest(server string, teamName TeamName, rbacPermis return req, nil } -// NewGetRBACPermissionRequest generates requests for GetRBACPermission -func NewGetRBACPermissionRequest(server string, teamName TeamName, rbacPermissionID RBACPermissionID) (*http.Request, error) { +// NewGetSyncDestinationRequest generates requests for GetSyncDestination +func NewGetSyncDestinationRequest(server string, syncDestinationName SyncDestinationName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "permission_id", runtime.ParamLocationPath, rbacPermissionID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -20373,7 +18772,7 @@ func NewGetRBACPermissionRequest(server string, teamName TeamName, rbacPermissio return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/permissions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-destinations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20391,31 +18790,24 @@ func NewGetRBACPermissionRequest(server string, teamName TeamName, rbacPermissio return req, nil } -// NewUpdateRBACPermissionRequest calls the generic UpdateRBACPermission builder with application/json body -func NewUpdateRBACPermissionRequest(server string, teamName TeamName, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncDestinationRequest calls the generic UpdateSyncDestination builder with application/json body +func NewUpdateSyncDestinationRequest(server string, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateRBACPermissionRequestWithBody(server, teamName, rbacPermissionID, "application/json", bodyReader) + return NewUpdateSyncDestinationRequestWithBody(server, syncDestinationName, "application/json", bodyReader) } -// NewUpdateRBACPermissionRequestWithBody generates requests for UpdateRBACPermission with any type of body -func NewUpdateRBACPermissionRequestWithBody(server string, teamName TeamName, rbacPermissionID RBACPermissionID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncDestinationRequestWithBody generates requests for UpdateSyncDestination with any type of body +func NewUpdateSyncDestinationRequestWithBody(server string, syncDestinationName SyncDestinationName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "permission_id", runtime.ParamLocationPath, rbacPermissionID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -20425,7 +18817,7 @@ func NewUpdateRBACPermissionRequestWithBody(server string, teamName TeamName, rb return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/permissions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-destinations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20445,13 +18837,13 @@ func NewUpdateRBACPermissionRequestWithBody(server string, teamName TeamName, rb return req, nil } -// NewListAllRBACRolesRequest generates requests for ListAllRBACRoles -func NewListAllRBACRolesRequest(server string, teamName TeamName, params *ListAllRBACRolesParams) (*http.Request, error) { +// NewListSyncDestinationSyncsRequest generates requests for ListSyncDestinationSyncs +func NewListSyncDestinationSyncsRequest(server string, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -20461,7 +18853,7 @@ func NewListAllRBACRolesRequest(server string, teamName TeamName, params *ListAl return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/roles", pathParam0) + operationPath := fmt.Sprintf("/sync-destinations/%s/syncs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20506,9 +18898,9 @@ func NewListAllRBACRolesRequest(server string, teamName TeamName, params *ListAl } - if params.RBACRoleSortBys != nil { + if params.SyncSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.RBACRoleSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -20522,9 +18914,9 @@ func NewListAllRBACRolesRequest(server string, teamName TeamName, params *ListAl } - if params.RBACRoleSortDirections != nil { + if params.SyncSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.RBACRoleSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -20538,9 +18930,25 @@ func NewListAllRBACRolesRequest(server string, teamName TeamName, params *ListAl } - if params.SearchTerm != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.MigrationFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -20565,24 +18973,20 @@ func NewListAllRBACRolesRequest(server string, teamName TeamName, params *ListAl return req, nil } -// NewCreateRBACRoleRequest calls the generic CreateRBACRole builder with application/json body -func NewCreateRBACRoleRequest(server string, teamName TeamName, body CreateRBACRoleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewGetTestConnectionForSyncDestinationRequest generates requests for GetTestConnectionForSyncDestination +func NewGetTestConnectionForSyncDestinationRequest(server string, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateRBACRoleRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewCreateRBACRoleRequestWithBody generates requests for CreateRBACRole with any type of body -func NewCreateRBACRoleRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error - var pathParam0 string + var pathParam1 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) if err != nil { return nil, err } @@ -20592,7 +18996,7 @@ func NewCreateRBACRoleRequestWithBody(server string, teamName TeamName, contentT return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/roles", pathParam0) + operationPath := fmt.Sprintf("/sync-destinations/%s/test-connections/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20602,40 +19006,35 @@ func NewCreateRBACRoleRequestWithBody(server string, teamName TeamName, contentT return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteRBACRoleRequest generates requests for DeleteRBACRole -func NewDeleteRBACRoleRequest(server string, teamName TeamName, rbacCustomRoleID RBACCustomRoleID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewCreateSyncSourceTestConnectionRequest calls the generic CreateSyncSourceTestConnection builder with application/json body +func NewCreateSyncSourceTestConnectionRequest(server string, body CreateSyncSourceTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncSourceTestConnectionRequestWithBody(server, "application/json", bodyReader) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "role_id", runtime.ParamLocationPath, rbacCustomRoleID) - if err != nil { - return nil, err - } +// NewCreateSyncSourceTestConnectionRequestWithBody generates requests for CreateSyncSourceTestConnection with any type of body +func NewCreateSyncSourceTestConnectionRequestWithBody(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("/teams/%s/rbac/roles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-source-test-connections") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20645,28 +19044,23 @@ func NewDeleteRBACRoleRequest(server string, teamName TeamName, rbacCustomRoleID 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 } -// NewGetRBACRoleRequest generates requests for GetRBACRole -func NewGetRBACRoleRequest(server string, teamName TeamName, rbacCustomRoleID RBACCustomRoleID) (*http.Request, error) { +// NewGetSyncSourceTestConnectionRequest generates requests for GetSyncSourceTestConnection +func NewGetSyncSourceTestConnectionRequest(server string, syncSourceTestConnectionID SyncSourceTestConnectionID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "role_id", runtime.ParamLocationPath, rbacCustomRoleID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) if err != nil { return nil, err } @@ -20676,7 +19070,7 @@ func NewGetRBACRoleRequest(server string, teamName TeamName, rbacCustomRoleID RB return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/roles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-source-test-connections/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20694,31 +19088,24 @@ func NewGetRBACRoleRequest(server string, teamName TeamName, rbacCustomRoleID RB return req, nil } -// NewUpdateRBACRoleRequest calls the generic UpdateRBACRole builder with application/json body -func NewUpdateRBACRoleRequest(server string, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, body UpdateRBACRoleJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncTestConnectionForSyncSourceRequest calls the generic UpdateSyncTestConnectionForSyncSource builder with application/json body +func NewUpdateSyncTestConnectionForSyncSourceRequest(server string, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateRBACRoleRequestWithBody(server, teamName, rbacCustomRoleID, "application/json", bodyReader) + return NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(server, syncSourceTestConnectionID, "application/json", bodyReader) } -// NewUpdateRBACRoleRequestWithBody generates requests for UpdateRBACRole with any type of body -func NewUpdateRBACRoleRequestWithBody(server string, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncTestConnectionForSyncSourceRequestWithBody generates requests for UpdateSyncTestConnectionForSyncSource with any type of body +func NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(server string, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "role_id", runtime.ParamLocationPath, rbacCustomRoleID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) if err != nil { return nil, err } @@ -20728,7 +19115,7 @@ func NewUpdateRBACRoleRequestWithBody(server string, teamName TeamName, rbacCust return nil, err } - operationPath := fmt.Sprintf("/teams/%s/rbac/roles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-source-test-connections/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20748,13 +19135,13 @@ func NewUpdateRBACRoleRequestWithBody(server string, teamName TeamName, rbacCust return req, nil } -// NewListReportsRequest generates requests for ListReports -func NewListReportsRequest(server string, teamName TeamName, params *ListReportsParams) (*http.Request, error) { +// NewGetSyncSourceTestConnectionLogsLiveRequest generates requests for GetSyncSourceTestConnectionLogsLive +func NewGetSyncSourceTestConnectionLogsLiveRequest(server string, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) if err != nil { return nil, err } @@ -20764,7 +19151,7 @@ func NewListReportsRequest(server string, teamName TeamName, params *ListReports return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports", pathParam0) + operationPath := fmt.Sprintf("/sync-source-test-connections/%s/logs/live", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20774,28 +19161,61 @@ func NewListReportsRequest(server string, teamName TeamName, params *ListReports return nil, err } + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + if params != nil { - queryValues := queryURL.Query() - if params.SearchTerm != nil { + if params.Accept != nil { + var headerParam0 string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } } + req.Header.Set("Accept", headerParam0) } - if params.Visibility != nil { + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "visibility", runtime.ParamLocationQuery, *params.Visibility); err != nil { + return req, nil +} + +// NewGetSyncSourceTestConnectionLogsQueryRequest generates requests for GetSyncSourceTestConnectionLogsQuery +func NewGetSyncSourceTestConnectionLogsQueryRequest(server string, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/sync-source-test-connections/%s/logs/query", 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.Filters != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -20841,25 +19261,9 @@ func NewListReportsRequest(server string, teamName TeamName, params *ListReports } - if params.ReportSortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.ReportSortBys); 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.ReportSortDirections != nil { + if params.Download != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.ReportSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download", runtime.ParamLocationQuery, *params.Download); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -20881,27 +19285,42 @@ func NewListReportsRequest(server string, teamName TeamName, params *ListReports return nil, err } + if params != nil { + + if params.Accept != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { + return nil, err + } + + req.Header.Set("Accept", headerParam0) + } + + } + return req, nil } -// NewCreateReportRequest calls the generic CreateReport builder with application/json body -func NewCreateReportRequest(server string, teamName TeamName, body CreateReportJSONRequestBody) (*http.Request, error) { +// NewPromoteSyncSourceTestConnectionRequest calls the generic PromoteSyncSourceTestConnection builder with application/json body +func NewPromoteSyncSourceTestConnectionRequest(server string, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateReportRequestWithBody(server, teamName, "application/json", bodyReader) + return NewPromoteSyncSourceTestConnectionRequestWithBody(server, syncSourceTestConnectionID, "application/json", bodyReader) } -// NewCreateReportRequestWithBody generates requests for CreateReport with any type of body -func NewCreateReportRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewPromoteSyncSourceTestConnectionRequestWithBody generates requests for PromoteSyncSourceTestConnection with any type of body +func NewPromoteSyncSourceTestConnectionRequestWithBody(server string, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) if err != nil { return nil, err } @@ -20911,7 +19330,7 @@ func NewCreateReportRequestWithBody(server string, teamName TeamName, contentTyp return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports", pathParam0) + operationPath := fmt.Sprintf("/sync-source-test-connections/%s/promote", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20931,23 +19350,16 @@ func NewCreateReportRequestWithBody(server string, teamName TeamName, contentTyp return req, nil } -// NewListReportTemplatesRequest generates requests for ListReportTemplates -func NewListReportTemplatesRequest(server string, teamName TeamName, params *ListReportTemplatesParams) (*http.Request, error) { +// NewListSyncSourcesRequest generates requests for ListSyncSources +func NewListSyncSourcesRequest(server string, params *ListSyncSourcesParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports/templates", pathParam0) + operationPath := fmt.Sprintf("/sync-sources") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -20960,9 +19372,9 @@ func NewListReportTemplatesRequest(server string, teamName TeamName, params *Lis if params != nil { queryValues := queryURL.Query() - if params.SearchTerm != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search_term", runtime.ParamLocationQuery, *params.SearchTerm); err != 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 @@ -20976,9 +19388,9 @@ func NewListReportTemplatesRequest(server string, teamName TeamName, params *Lis } - if params.PerPage != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != 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 @@ -20992,9 +19404,9 @@ func NewListReportTemplatesRequest(server string, teamName TeamName, params *Lis } - if params.Page != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21008,9 +19420,9 @@ func NewListReportTemplatesRequest(server string, teamName TeamName, params *Lis } - if params.ReportTemplateSortBys != nil { + if params.SyncGenericSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.ReportTemplateSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21024,9 +19436,9 @@ func NewListReportTemplatesRequest(server string, teamName TeamName, params *Lis } - if params.ReportTemplateSortDirections != nil { + if params.SyncSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.ReportTemplateSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21051,67 +19463,13 @@ func NewListReportTemplatesRequest(server string, teamName TeamName, params *Lis return req, nil } -// NewCreateReportTemplateRequest calls the generic CreateReportTemplate builder with application/json body -func NewCreateReportTemplateRequest(server string, teamName TeamName, body CreateReportTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateReportTemplateRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewCreateReportTemplateRequestWithBody generates requests for CreateReportTemplate with any type of body -func NewCreateReportTemplateRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/reports/templates", 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 -} - -// NewDeleteReportTemplateRequest generates requests for DeleteReportTemplate -func NewDeleteReportTemplateRequest(server string, teamName TeamName, templateId openapi_types.UUID) (*http.Request, error) { +// NewDeleteSyncSourceRequest generates requests for DeleteSyncSource +func NewDeleteSyncSourceRequest(server string, syncSourceName SyncSourceName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "template_id", runtime.ParamLocationPath, templateId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } @@ -21121,7 +19479,7 @@ func NewDeleteReportTemplateRequest(server string, teamName TeamName, templateId return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports/templates/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-sources/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21139,20 +19497,13 @@ func NewDeleteReportTemplateRequest(server string, teamName TeamName, templateId return req, nil } -// NewGetReportTemplateRequest generates requests for GetReportTemplate -func NewGetReportTemplateRequest(server string, teamName TeamName, templateId openapi_types.UUID) (*http.Request, error) { +// NewGetSyncSourceRequest generates requests for GetSyncSource +func NewGetSyncSourceRequest(server string, syncSourceName SyncSourceName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "template_id", runtime.ParamLocationPath, templateId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } @@ -21162,7 +19513,7 @@ func NewGetReportTemplateRequest(server string, teamName TeamName, templateId op return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports/templates/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-sources/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21180,31 +19531,24 @@ func NewGetReportTemplateRequest(server string, teamName TeamName, templateId op return req, nil } -// NewUpdateReportTemplateRequest calls the generic UpdateReportTemplate builder with application/json body -func NewUpdateReportTemplateRequest(server string, teamName TeamName, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncSourceRequest calls the generic UpdateSyncSource builder with application/json body +func NewUpdateSyncSourceRequest(server string, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateReportTemplateRequestWithBody(server, teamName, templateId, "application/json", bodyReader) + return NewUpdateSyncSourceRequestWithBody(server, syncSourceName, "application/json", bodyReader) } -// NewUpdateReportTemplateRequestWithBody generates requests for UpdateReportTemplate with any type of body -func NewUpdateReportTemplateRequestWithBody(server string, teamName TeamName, templateId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncSourceRequestWithBody generates requests for UpdateSyncSource with any type of body +func NewUpdateSyncSourceRequestWithBody(server string, syncSourceName SyncSourceName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "template_id", runtime.ParamLocationPath, templateId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } @@ -21214,7 +19558,7 @@ func NewUpdateReportTemplateRequestWithBody(server string, teamName TeamName, te return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports/templates/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-sources/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21224,7 +19568,7 @@ func NewUpdateReportTemplateRequestWithBody(server string, teamName TeamName, te return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -21234,20 +19578,13 @@ func NewUpdateReportTemplateRequestWithBody(server string, teamName TeamName, te return req, nil } -// NewDeleteReportRequest generates requests for DeleteReport -func NewDeleteReportRequest(server string, teamName TeamName, reportId openapi_types.UUID) (*http.Request, error) { +// NewListSyncSourceSyncsRequest generates requests for ListSyncSourceSyncs +func NewListSyncSourceSyncsRequest(server string, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "report_id", runtime.ParamLocationPath, reportId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } @@ -21257,7 +19594,7 @@ func NewDeleteReportRequest(server string, teamName TeamName, reportId openapi_t return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-sources/%s/syncs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21267,80 +19604,130 @@ func NewDeleteReportRequest(server string, teamName TeamName, reportId openapi_t return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} + if params != nil { + queryValues := queryURL.Query() -// NewGetReportRequest generates requests for GetReport -func NewGetReportRequest(server string, teamName TeamName, reportId openapi_types.UUID) (*http.Request, error) { - var err error + if params.PerPage != nil { - var pathParam0 string + 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) + } + } + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + } - var pathParam1 string + if params.Page != nil { - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "report_id", runtime.ParamLocationPath, reportId) - if err != nil { - return nil, err - } + 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) + } + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + } - operationPath := fmt.Sprintf("/teams/%s/reports/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.SyncSortBys != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); 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) + } + } + } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + } - return req, nil -} + if params.SyncSortDirections != nil { -// NewUpdateReportRequest calls the generic UpdateReport builder with application/json body -func NewUpdateReportRequest(server string, teamName TeamName, reportId openapi_types.UUID, body UpdateReportJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); 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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.MigrationFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); 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 } - bodyReader = bytes.NewReader(buf) - return NewUpdateReportRequestWithBody(server, teamName, reportId, "application/json", bodyReader) + + return req, nil } -// NewUpdateReportRequestWithBody generates requests for UpdateReport with any type of body -func NewUpdateReportRequestWithBody(server string, teamName TeamName, reportId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewGetTestConnectionForSyncSourceRequest generates requests for GetTestConnectionForSyncSource +func NewGetTestConnectionForSyncSourceRequest(server string, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "report_id", runtime.ParamLocationPath, reportId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) if err != nil { return nil, err } @@ -21350,7 +19737,7 @@ func NewUpdateReportRequestWithBody(server string, teamName TeamName, reportId o return nil, err } - operationPath := fmt.Sprintf("/teams/%s/reports/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-sources/%s/test-connections/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21360,34 +19747,134 @@ func NewUpdateReportRequestWithBody(server string, teamName TeamName, reportId o return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewCreateSyncDestinationTestConnectionRequest calls the generic CreateSyncDestinationTestConnection builder with application/json body -func NewCreateSyncDestinationTestConnectionRequest(server string, teamName TeamName, body CreateSyncDestinationTestConnectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewListSyncTransformersRequest generates requests for ListSyncTransformers +func NewListSyncTransformersRequest(server string, params *ListSyncTransformersParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateSyncDestinationTestConnectionRequestWithBody(server, teamName, "application/json", bodyReader) + + operationPath := fmt.Sprintf("/sync-transformers") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + 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.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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.SyncGenericSortBys != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); 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.SyncSortDirections != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); 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 } -// NewCreateSyncDestinationTestConnectionRequestWithBody generates requests for CreateSyncDestinationTestConnection with any type of body -func NewCreateSyncDestinationTestConnectionRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteSyncTransformerRequest generates requests for DeleteSyncTransformer +func NewDeleteSyncTransformerRequest(server string, syncTransformerName SyncTransformerName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) if err != nil { return nil, err } @@ -21397,7 +19884,7 @@ func NewCreateSyncDestinationTestConnectionRequestWithBody(server string, teamNa return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections", pathParam0) + operationPath := fmt.Sprintf("/sync-transformers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21407,30 +19894,21 @@ func NewCreateSyncDestinationTestConnectionRequestWithBody(server string, teamNa return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetSyncDestinationTestConnectionRequest generates requests for GetSyncDestinationTestConnection -func NewGetSyncDestinationTestConnectionRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID) (*http.Request, error) { +// NewGetSyncTransformerRequest generates requests for GetSyncTransformer +func NewGetSyncTransformerRequest(server string, syncTransformerName SyncTransformerName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) if err != nil { return nil, err } @@ -21440,7 +19918,7 @@ func NewGetSyncDestinationTestConnectionRequest(server string, teamName TeamName return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-transformers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21458,31 +19936,24 @@ func NewGetSyncDestinationTestConnectionRequest(server string, teamName TeamName return req, nil } -// NewUpdateSyncTestConnectionForSyncDestinationRequest calls the generic UpdateSyncTestConnectionForSyncDestination builder with application/json body -func NewUpdateSyncTestConnectionForSyncDestinationRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncTransformerRequest calls the generic UpdateSyncTransformer builder with application/json body +func NewUpdateSyncTransformerRequest(server string, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(server, teamName, syncDestinationTestConnectionID, "application/json", bodyReader) + return NewUpdateSyncTransformerRequestWithBody(server, syncTransformerName, "application/json", bodyReader) } -// NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody generates requests for UpdateSyncTestConnectionForSyncDestination with any type of body -func NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncTransformerRequestWithBody generates requests for UpdateSyncTransformer with any type of body +func NewUpdateSyncTransformerRequestWithBody(server string, syncTransformerName SyncTransformerName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) if err != nil { return nil, err } @@ -21492,7 +19963,7 @@ func NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(server string, return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-transformers/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21512,20 +19983,13 @@ func NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(server string, return req, nil } -// NewGetSyncDestinationTestConnectionLogsRequest generates requests for GetSyncDestinationTestConnectionLogs -func NewGetSyncDestinationTestConnectionLogsRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsParams) (*http.Request, error) { +// NewListSyncTransformerSyncDestinationsRequest generates requests for ListSyncTransformerSyncDestinations +func NewListSyncTransformerSyncDestinationsRequest(server string, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) if err != nil { return nil, err } @@ -21535,7 +19999,7 @@ func NewGetSyncDestinationTestConnectionLogsRequest(server string, teamName Team return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s/logs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-transformers/%s/sync-destinations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21545,43 +20009,59 @@ func NewGetSyncDestinationTestConnectionLogsRequest(server string, teamName Team return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - if params != nil { + queryValues := queryURL.Query() - if params.Accept != nil { - var headerParam0 string + if params.PerPage != nil { - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != 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) + } + } } - req.Header.Set("Accept", headerParam0) } - } + if params.Page != nil { - return req, 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) + } + } + } -// NewGetSyncDestinationTestConnectionLogsLiveRequest generates requests for GetSyncDestinationTestConnectionLogsLive -func NewGetSyncDestinationTestConnectionLogsLiveRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams) (*http.Request, error) { - var err error + } - var pathParam0 string + queryURL.RawQuery = queryValues.Encode() + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - var pathParam1 string + return req, nil +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) +// NewListSyncTransformerSyncsRequest generates requests for ListSyncTransformerSyncs +func NewListSyncTransformerSyncsRequest(server string, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) if err != nil { return nil, err } @@ -21591,7 +20071,7 @@ func NewGetSyncDestinationTestConnectionLogsLiveRequest(server string, teamName return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s/logs/live", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-transformers/%s/syncs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21601,53 +20081,62 @@ func NewGetSyncDestinationTestConnectionLogsLiveRequest(server string, teamName return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - if params != nil { + queryValues := queryURL.Query() - if params.Accept != nil { - var headerParam0 string + if params.PerPage != nil { - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != 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) + } + } } - req.Header.Set("Accept", headerParam0) } - } + if params.Page != nil { - return req, 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) + } + } + } -// NewGetSyncDestinationTestConnectionLogsQueryRequest generates requests for GetSyncDestinationTestConnectionLogsQuery -func NewGetSyncDestinationTestConnectionLogsQueryRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams) (*http.Request, error) { - var err error + } - var pathParam0 string + queryURL.RawQuery = queryValues.Encode() + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - var pathParam1 string + return req, nil +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) - if err != nil { - return nil, err - } +// NewListSyncUpgradesRequest generates requests for ListSyncUpgrades +func NewListSyncUpgradesRequest(server string, params *ListSyncUpgradesParams) (*http.Request, error) { + var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s/logs/query", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/sync-upgrades") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21660,9 +20149,9 @@ func NewGetSyncDestinationTestConnectionLogsQueryRequest(server string, teamName if params != nil { queryValues := queryURL.Query() - if params.Filters != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); err != 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 @@ -21676,9 +20165,9 @@ func NewGetSyncDestinationTestConnectionLogsQueryRequest(server string, teamName } - if params.PerPage != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != 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 @@ -21692,9 +20181,9 @@ func NewGetSyncDestinationTestConnectionLogsQueryRequest(server string, teamName } - if params.Page != nil { + if params.SyncUpgradesSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncUpgradesSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21708,9 +20197,9 @@ func NewGetSyncDestinationTestConnectionLogsQueryRequest(server string, teamName } - if params.Download != nil { + if params.SyncSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download", runtime.ParamLocationQuery, *params.Download); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21724,103 +20213,75 @@ func NewGetSyncDestinationTestConnectionLogsQueryRequest(server string, teamName } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - if params != nil { - - if params.Accept != nil { - var headerParam0 string + if params.Path != nil { - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, *params.Path); 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) + } + } } - req.Header.Set("Accept", headerParam0) } - } - - return req, nil -} - -// NewPromoteSyncDestinationTestConnectionRequest calls the generic PromoteSyncDestinationTestConnection builder with application/json body -func NewPromoteSyncDestinationTestConnectionRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPromoteSyncDestinationTestConnectionRequestWithBody(server, teamName, syncDestinationTestConnectionID, "application/json", bodyReader) -} - -// NewPromoteSyncDestinationTestConnectionRequestWithBody generates requests for PromoteSyncDestinationTestConnection with any type of body -func NewPromoteSyncDestinationTestConnectionRequestWithBody(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string + if params.Kind != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kind", runtime.ParamLocationQuery, *params.Kind); 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) + } + } + } - var pathParam1 string + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) - if err != nil { - return nil, err - } + if params.PlatformVersion != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_version", runtime.ParamLocationQuery, *params.PlatformVersion); 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) + } + } + } - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s/promote", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewListSyncDestinationsRequest generates requests for ListSyncDestinations -func NewListSyncDestinationsRequest(server string, teamName TeamName, params *ListSyncDestinationsParams) (*http.Request, error) { +// NewListSyncsRequest generates requests for ListSyncs +func NewListSyncsRequest(server string, params *ListSyncsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations", pathParam0) + operationPath := fmt.Sprintf("/syncs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21865,9 +20326,9 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li } - if params.Filter != nil { + if params.SyncSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21881,9 +20342,9 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li } - if params.SyncGenericSortBys != nil { + if params.SyncSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21897,9 +20358,25 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li } - if params.SyncSortDirections != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.MigrationFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -21924,20 +20401,53 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li return req, nil } -// NewDeleteSyncDestinationRequest generates requests for DeleteSyncDestination -func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { +// NewCreateSyncRequest calls the generic CreateSync builder with application/json body +func NewCreateSyncRequest(server string, body CreateSyncJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateSyncRequestWithBody generates requests for CreateSync with any type of body +func NewCreateSyncRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + operationPath := fmt.Sprintf("/syncs") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam1 string + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteSyncRequest generates requests for DeleteSync +func NewDeleteSyncRequest(server string, syncName SyncName) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -21947,7 +20457,7 @@ func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDesti return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -21965,20 +20475,13 @@ func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDesti return req, nil } -// NewGetSyncDestinationRequest generates requests for GetSyncDestination -func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { +// NewGetSyncRequest generates requests for GetSync +func NewGetSyncRequest(server string, syncName SyncName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -21988,7 +20491,7 @@ func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinat return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22006,31 +20509,24 @@ func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinat return req, nil } -// NewUpdateSyncDestinationRequest calls the generic UpdateSyncDestination builder with application/json body -func NewUpdateSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncRequest calls the generic UpdateSync builder with application/json body +func NewUpdateSyncRequest(server string, syncName SyncName, body UpdateSyncJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSyncDestinationRequestWithBody(server, teamName, syncDestinationName, "application/json", bodyReader) + return NewUpdateSyncRequestWithBody(server, syncName, "application/json", bodyReader) } -// NewUpdateSyncDestinationRequestWithBody generates requests for UpdateSyncDestination with any type of body -func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncRequestWithBody generates requests for UpdateSync with any type of body +func NewUpdateSyncRequestWithBody(server string, syncName SyncName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -22040,7 +20536,7 @@ func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, s return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22060,61 +20556,13 @@ func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, s return req, nil } -// NewMigrateSyncDestinationRequest generates requests for MigrateSyncDestination -func NewMigrateSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s/migrate", pathParam0, pathParam1) - 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 -} - -// NewListSyncDestinationSyncsRequest generates requests for ListSyncDestinationSyncs -func NewListSyncDestinationSyncsRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams) (*http.Request, error) { +// NewListSyncRunsRequest generates requests for ListSyncRuns +func NewListSyncRunsRequest(server string, syncName SyncName, params *ListSyncRunsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -22124,7 +20572,7 @@ func NewListSyncDestinationSyncsRequest(server string, teamName TeamName, syncDe return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s/syncs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s/runs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22137,57 +20585,9 @@ func NewListSyncDestinationSyncsRequest(server string, teamName TeamName, syncDe if params != nil { queryValues := queryURL.Query() - 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.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.SyncSortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); 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.SyncSortDirections != nil { + if params.MigrationFilter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -22201,9 +20601,9 @@ func NewListSyncDestinationSyncsRequest(server string, teamName TeamName, syncDe } - if params.Filter != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != 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 @@ -22217,9 +20617,9 @@ func NewListSyncDestinationSyncsRequest(server string, teamName TeamName, syncDe } - if params.MigrationFilter != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); err != 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 @@ -22244,72 +20644,13 @@ func NewListSyncDestinationSyncsRequest(server string, teamName TeamName, syncDe return req, nil } -// NewGetTestConnectionForSyncDestinationRequest generates requests for GetTestConnectionForSyncDestination -func NewGetTestConnectionForSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s/test-connections/%s", pathParam0, pathParam1, pathParam2) - 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 -} - -// NewCreateSyncSourceTestConnectionRequest calls the generic CreateSyncSourceTestConnection builder with application/json body -func NewCreateSyncSourceTestConnectionRequest(server string, teamName TeamName, body CreateSyncSourceTestConnectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateSyncSourceTestConnectionRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewCreateSyncSourceTestConnectionRequestWithBody generates requests for CreateSyncSourceTestConnection with any type of body -func NewCreateSyncSourceTestConnectionRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSyncRunRequest generates requests for CreateSyncRun +func NewCreateSyncRunRequest(server string, syncName SyncName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -22319,7 +20660,7 @@ func NewCreateSyncSourceTestConnectionRequestWithBody(server string, teamName Te return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections", pathParam0) + operationPath := fmt.Sprintf("/syncs/%s/runs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22329,30 +20670,28 @@ func NewCreateSyncSourceTestConnectionRequestWithBody(server string, teamName Te return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetSyncSourceTestConnectionRequest generates requests for GetSyncSourceTestConnection -func NewGetSyncSourceTestConnectionRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID) (*http.Request, error) { +// NewGetSyncRunRequest generates requests for GetSyncRun +func NewGetSyncRunRequest(server string, syncName SyncName, syncRunId SyncRunId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) if err != nil { return nil, err } @@ -22362,7 +20701,7 @@ func NewGetSyncSourceTestConnectionRequest(server string, teamName TeamName, syn return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s/runs/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22380,31 +20719,31 @@ func NewGetSyncSourceTestConnectionRequest(server string, teamName TeamName, syn return req, nil } -// NewUpdateSyncTestConnectionForSyncSourceRequest calls the generic UpdateSyncTestConnectionForSyncSource builder with application/json body -func NewUpdateSyncTestConnectionForSyncSourceRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncRunRequest calls the generic UpdateSyncRun builder with application/json body +func NewUpdateSyncRunRequest(server string, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(server, teamName, syncSourceTestConnectionID, "application/json", bodyReader) + return NewUpdateSyncRunRequestWithBody(server, syncName, syncRunId, "application/json", bodyReader) } -// NewUpdateSyncTestConnectionForSyncSourceRequestWithBody generates requests for UpdateSyncTestConnectionForSyncSource with any type of body -func NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncRunRequestWithBody generates requests for UpdateSyncRun with any type of body +func NewUpdateSyncRunRequestWithBody(server string, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) if err != nil { return nil, err } @@ -22414,7 +20753,7 @@ func NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(server string, team return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s/runs/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22434,20 +20773,20 @@ func NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(server string, team return req, nil } -// NewGetSyncSourceTestConnectionLogsRequest generates requests for GetSyncSourceTestConnectionLogs -func NewGetSyncSourceTestConnectionLogsRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsParams) (*http.Request, error) { +// NewGetSyncRunLogsLiveRequest generates requests for GetSyncRunLogsLive +func NewGetSyncRunLogsLiveRequest(server string, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) if err != nil { return nil, err } @@ -22457,7 +20796,7 @@ func NewGetSyncSourceTestConnectionLogsRequest(server string, teamName TeamName, return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s/logs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s/runs/%s/logs/live", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22467,60 +20806,26 @@ func NewGetSyncSourceTestConnectionLogsRequest(server string, teamName TeamName, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - if params != nil { + queryValues := queryURL.Query() - if params.Accept != nil { - var headerParam0 string + if params.Table != nil { - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "table", runtime.ParamLocationQuery, *params.Table); 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) + } + } } - req.Header.Set("Accept", headerParam0) } - } - - return req, nil -} - -// NewGetSyncSourceTestConnectionLogsLiveRequest generates requests for GetSyncSourceTestConnectionLogsLive -func NewGetSyncSourceTestConnectionLogsLiveRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s/logs/live", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -22546,20 +20851,20 @@ func NewGetSyncSourceTestConnectionLogsLiveRequest(server string, teamName TeamN return req, nil } -// NewGetSyncSourceTestConnectionLogsQueryRequest generates requests for GetSyncSourceTestConnectionLogsQuery -func NewGetSyncSourceTestConnectionLogsQueryRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams) (*http.Request, error) { +// NewGetSyncRunLogsQueryRequest generates requests for GetSyncRunLogsQuery +func NewGetSyncRunLogsQueryRequest(server string, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) if err != nil { return nil, err } @@ -22569,7 +20874,7 @@ func NewGetSyncSourceTestConnectionLogsQueryRequest(server string, teamName Team return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s/logs/query", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s/runs/%s/logs/query", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22672,31 +20977,31 @@ func NewGetSyncSourceTestConnectionLogsQueryRequest(server string, teamName Team return req, nil } -// NewPromoteSyncSourceTestConnectionRequest calls the generic PromoteSyncSourceTestConnection builder with application/json body -func NewPromoteSyncSourceTestConnectionRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody) (*http.Request, error) { +// NewCreateSyncRunProgressRequest calls the generic CreateSyncRunProgress builder with application/json body +func NewCreateSyncRunProgressRequest(server string, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPromoteSyncSourceTestConnectionRequestWithBody(server, teamName, syncSourceTestConnectionID, "application/json", bodyReader) + return NewCreateSyncRunProgressRequestWithBody(server, syncName, syncRunId, "application/json", bodyReader) } -// NewPromoteSyncSourceTestConnectionRequestWithBody generates requests for PromoteSyncSourceTestConnection with any type of body -func NewPromoteSyncSourceTestConnectionRequestWithBody(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSyncRunProgressRequestWithBody generates requests for CreateSyncRunProgress with any type of body +func NewCreateSyncRunProgressRequestWithBody(server string, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) if err != nil { return nil, err } @@ -22706,7 +21011,7 @@ func NewPromoteSyncSourceTestConnectionRequestWithBody(server string, teamName T return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s/promote", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/syncs/%s/runs/%s/progress", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22726,13 +21031,61 @@ func NewPromoteSyncSourceTestConnectionRequestWithBody(server string, teamName T return req, nil } -// NewListSyncSourcesRequest generates requests for ListSyncSources -func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyncSourcesParams) (*http.Request, error) { +// NewGetSyncRunStatsRequest generates requests for GetSyncRunStats +func NewGetSyncRunStatsRequest(server string, syncName SyncName, syncRunId SyncRunId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/syncs/%s/runs/%s/stats", pathParam0, pathParam1) + 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 +} + +// NewGetSyncRunTablesRequest generates requests for GetSyncRunTables +func NewGetSyncRunTablesRequest(server string, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) if err != nil { return nil, err } @@ -22742,7 +21095,7 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources", pathParam0) + operationPath := fmt.Sprintf("/syncs/%s/runs/%s/tables", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22787,25 +21140,9 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn } - if params.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.SyncGenericSortBys != nil { + if params.SyncRunTableSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncRunTableSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -22819,9 +21156,9 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn } - if params.SyncSortDirections != nil { + if params.SortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -22846,30 +21183,16 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn return req, nil } -// NewDeleteSyncSourceRequest generates requests for DeleteSyncSource -func NewDeleteSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { +// NewListTablesRequest generates requests for ListTables +func NewListTablesRequest(server string, params *ListTablesParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/tables") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22879,38 +21202,62 @@ func NewDeleteSyncSourceRequest(server string, teamName TeamName, syncSourceName return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.PerPage != nil { -// NewGetSyncSourceRequest generates requests for GetSyncSource -func NewGetSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { - var err error + 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) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if params.Page != nil { - var pathParam1 string + 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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } + return req, nil +} + +// NewGetTablesDataRequest generates requests for GetTablesData +func NewGetTablesDataRequest(server string, params *GetTablesDataParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/tables/data") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22920,6 +21267,44 @@ func NewGetSyncSourceRequest(server string, teamName TeamName, syncSourceName Sy return nil, err } + if params != nil { + queryValues := queryURL.Query() + + 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.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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -22928,41 +21313,27 @@ func NewGetSyncSourceRequest(server string, teamName TeamName, syncSourceName Sy return req, nil } -// NewUpdateSyncSourceRequest calls the generic UpdateSyncSource builder with application/json body -func NewUpdateSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody) (*http.Request, error) { +// NewTablesDataActionRequest calls the generic TablesDataAction builder with application/json body +func NewTablesDataActionRequest(server string, body TablesDataActionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSyncSourceRequestWithBody(server, teamName, syncSourceName, "application/json", bodyReader) + return NewTablesDataActionRequestWithBody(server, "application/json", bodyReader) } -// NewUpdateSyncSourceRequestWithBody generates requests for UpdateSyncSource with any type of body -func NewUpdateSyncSourceRequestWithBody(server string, teamName TeamName, syncSourceName SyncSourceName, contentType string, body io.Reader) (*http.Request, error) { +// NewTablesDataActionRequestWithBody generates requests for TablesDataAction with any type of body +func NewTablesDataActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/tables/data") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -22972,7 +21343,7 @@ func NewUpdateSyncSourceRequestWithBody(server string, teamName TeamName, syncSo return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -22982,30 +21353,43 @@ func NewUpdateSyncSourceRequestWithBody(server string, teamName TeamName, syncSo return req, nil } -// NewMigrateSyncSourceRequest generates requests for MigrateSyncSource -func NewMigrateSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { +// NewGetTablesRelationsRequest generates requests for GetTablesRelations +func NewGetTablesRelationsRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/tables/relations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } + return req, nil +} + +// NewBatchTableSchemasRequest generates requests for BatchTableSchemas +func NewBatchTableSchemasRequest(server string, params *BatchTableSchemasParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s/migrate", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/tables/schemas") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -23015,7 +21399,25 @@ func NewMigrateSyncSourceRequest(server string, teamName TeamName, syncSourceNam return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tables", runtime.ParamLocationQuery, params.Tables); 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 } @@ -23023,20 +21425,13 @@ func NewMigrateSyncSourceRequest(server string, teamName TeamName, syncSourceNam return req, nil } -// NewListSyncSourceSyncsRequest generates requests for ListSyncSourceSyncs -func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams) (*http.Request, error) { +// NewTableListColumnsRequest generates requests for TableListColumns +func NewTableListColumnsRequest(server string, tableName TableName, params *TableListColumnsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } @@ -23046,7 +21441,7 @@ func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceN return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s/syncs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/tables/%s/columns", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -23059,9 +21454,9 @@ func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceN if params != nil { queryValues := queryURL.Query() - if params.PerPage != nil { + if params.FilterMode != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23075,9 +21470,9 @@ func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceN } - if params.Page != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23091,9 +21486,9 @@ func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceN } - if params.SyncSortBys != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); err != 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 @@ -23107,9 +21502,9 @@ func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceN } - if params.SyncSortDirections != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != 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 @@ -23123,40 +21518,8 @@ func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceN } - if params.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.MigrationFilter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); 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() - } + queryURL.RawQuery = queryValues.Encode() + } req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { @@ -23166,61 +21529,20 @@ func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceN return req, nil } -// NewGetTestConnectionForSyncSourceRequest generates requests for GetTestConnectionForSyncSource -func NewGetTestConnectionForSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { +// NewTableColumnListValuesRequest generates requests for TableColumnListValues +func NewTableColumnListValuesRequest(server string, tableName TableName, columnName ColumnName, params *TableColumnListValuesParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s/test-connections/%s", pathParam0, pathParam1, pathParam2) - 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 -} - -// NewListSyncTransformersRequest generates requests for ListSyncTransformers -func NewListSyncTransformersRequest(server string, teamName TeamName, params *ListSyncTransformersParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "column_name", runtime.ParamLocationPath, columnName) if err != nil { return nil, err } @@ -23230,7 +21552,7 @@ func NewListSyncTransformersRequest(server string, teamName TeamName, params *Li return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-transformers", pathParam0) + operationPath := fmt.Sprintf("/tables/%s/columns/%s/values", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -23243,25 +21565,9 @@ func NewListSyncTransformersRequest(server string, teamName TeamName, params *Li if params != nil { queryValues := queryURL.Query() - 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.Page != nil { + if params.FilterMode != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23291,25 +21597,9 @@ func NewListSyncTransformersRequest(server string, teamName TeamName, params *Li } - if params.SyncGenericSortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); 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.SyncSortDirections != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != 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 @@ -23323,189 +21613,6 @@ func NewListSyncTransformersRequest(server string, teamName TeamName, params *Li } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSyncTransformerRequest generates requests for DeleteSyncTransformer -func NewDeleteSyncTransformerRequest(server string, teamName TeamName, syncTransformerName SyncTransformerName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-transformers/%s", pathParam0, pathParam1) - 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 -} - -// NewGetSyncTransformerRequest generates requests for GetSyncTransformer -func NewGetSyncTransformerRequest(server string, teamName TeamName, syncTransformerName SyncTransformerName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-transformers/%s", pathParam0, pathParam1) - 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 -} - -// NewUpdateSyncTransformerRequest calls the generic UpdateSyncTransformer builder with application/json body -func NewUpdateSyncTransformerRequest(server string, teamName TeamName, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateSyncTransformerRequestWithBody(server, teamName, syncTransformerName, "application/json", bodyReader) -} - -// NewUpdateSyncTransformerRequestWithBody generates requests for UpdateSyncTransformer with any type of body -func NewUpdateSyncTransformerRequestWithBody(server string, teamName TeamName, syncTransformerName SyncTransformerName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-transformers/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewListSyncTransformerSyncDestinationsRequest generates requests for ListSyncTransformerSyncDestinations -func NewListSyncTransformerSyncDestinationsRequest(server string, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-transformers/%s/sync-destinations", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - if params.PerPage != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { @@ -23522,22 +21629,6 @@ func NewListSyncTransformerSyncDestinationsRequest(server string, teamName TeamN } - 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) - } - } - } - - } - queryURL.RawQuery = queryValues.Encode() } @@ -23549,20 +21640,13 @@ func NewListSyncTransformerSyncDestinationsRequest(server string, teamName TeamN return req, nil } -// NewListSyncTransformerSyncsRequest generates requests for ListSyncTransformerSyncs -func NewListSyncTransformerSyncsRequest(server string, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams) (*http.Request, error) { +// NewTableListRowsRequest generates requests for TableListRows +func NewTableListRowsRequest(server string, tableName TableName, params *TableListRowsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_transformer_name", runtime.ParamLocationPath, syncTransformerName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } @@ -23572,7 +21656,7 @@ func NewListSyncTransformerSyncsRequest(server string, teamName TeamName, syncTr return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-transformers/%s/syncs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/tables/%s/data", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -23585,9 +21669,9 @@ func NewListSyncTransformerSyncsRequest(server string, teamName TeamName, syncTr if params != nil { queryValues := queryURL.Query() - if params.PerPage != nil { + if params.Selects != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "select", runtime.ParamLocationQuery, params.Selects); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23601,9 +21685,9 @@ func NewListSyncTransformerSyncsRequest(server string, teamName TeamName, syncTr } - if params.Page != nil { + if params.FilterMode != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23617,49 +21701,9 @@ func NewListSyncTransformerSyncsRequest(server string, teamName TeamName, syncTr } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListSyncUpgradesRequest generates requests for ListSyncUpgrades -func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSyncUpgradesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-upgrades", 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.PerPage != nil { + if params.Filters != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23673,9 +21717,9 @@ func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSy } - if params.Page != nil { + if params.FilterIDs != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23689,9 +21733,9 @@ func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSy } - if params.SyncUpgradesSortBys != nil { + if params.SortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncUpgradesSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23705,9 +21749,9 @@ func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSy } - if params.SyncSortDirections != nil { + if params.SortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23721,9 +21765,9 @@ func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSy } - if params.Path != nil { + if params.GroupBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "path", runtime.ParamLocationQuery, *params.Path); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_by", runtime.ParamLocationQuery, params.GroupBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23737,9 +21781,9 @@ func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSy } - if params.Kind != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kind", runtime.ParamLocationQuery, *params.Kind); err != 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 @@ -23753,9 +21797,9 @@ func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSy } - if params.PlatformVersion != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "platform_version", runtime.ParamLocationQuery, *params.PlatformVersion); err != 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 @@ -23780,13 +21824,20 @@ func NewListSyncUpgradesRequest(server string, teamName TeamName, params *ListSy return req, nil } -// NewListSyncsRequest generates requests for ListSyncs -func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsParams) (*http.Request, error) { +// NewTableRowByIdRequest generates requests for TableRowById +func NewTableRowByIdRequest(server string, tableName TableName, tableRowId TableRowId, params *TableRowByIdParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_row_id", runtime.ParamLocationPath, tableRowId) if err != nil { return nil, err } @@ -23796,7 +21847,7 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) + operationPath := fmt.Sprintf("/tables/%s/data/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -23809,9 +21860,9 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara if params != nil { queryValues := queryURL.Query() - if params.PerPage != nil { + if params.FilterMode != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23825,9 +21876,9 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara } - if params.Page != nil { + if params.Filters != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23841,9 +21892,9 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara } - if params.SyncSortBys != nil { + if params.FilterIDs != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23857,9 +21908,49 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara } - if params.SyncSortDirections != nil { + queryURL.RawQuery = queryValues.Encode() + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewTableListFiltersRequest generates requests for TableListFilters +func NewTableListFiltersRequest(server string, tableName TableName, params *TableListFiltersParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/tables/%s/filters", 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.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 @@ -23873,9 +21964,9 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara } - if params.Filter != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != 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 @@ -23889,9 +21980,9 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara } - if params.MigrationFilter != nil { + if params.FilterTags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.FilterTags); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -23916,24 +22007,24 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara return req, nil } -// NewCreateSyncRequest calls the generic CreateSync builder with application/json body -func NewCreateSyncRequest(server string, teamName TeamName, body CreateSyncJSONRequestBody) (*http.Request, error) { +// NewTableSaveFilterRequest calls the generic TableSaveFilter builder with application/json body +func NewTableSaveFilterRequest(server string, tableName TableName, body TableSaveFilterJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateSyncRequestWithBody(server, teamName, "application/json", bodyReader) + return NewTableSaveFilterRequestWithBody(server, tableName, "application/json", bodyReader) } -// NewCreateSyncRequestWithBody generates requests for CreateSync with any type of body -func NewCreateSyncRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewTableSaveFilterRequestWithBody generates requests for TableSaveFilter with any type of body +func NewTableSaveFilterRequestWithBody(server string, tableName TableName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } @@ -23943,7 +22034,7 @@ func NewCreateSyncRequestWithBody(server string, teamName TeamName, contentType return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) + operationPath := fmt.Sprintf("/tables/%s/filters", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -23963,27 +22054,13 @@ func NewCreateSyncRequestWithBody(server string, teamName TeamName, contentType return req, nil } -// NewGetTestConnectionConnectorCredentialsRequest generates requests for GetTestConnectionConnectorCredentials -func NewGetTestConnectionConnectorCredentialsRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID) (*http.Request, error) { +// NewTableListFilterTagsRequest generates requests for TableListFilterTags +func NewTableListFilterTagsRequest(server string, tableName TableName, params *TableListFilterTagsParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } @@ -23993,7 +22070,7 @@ func NewGetTestConnectionConnectorCredentialsRequest(server string, teamName Tea return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/connector/%s/credentials", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/tables/%s/filters/tags", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24003,6 +22080,44 @@ func NewGetTestConnectionConnectorCredentialsRequest(server string, teamName Tea return nil, err } + if params != nil { + queryValues := queryURL.Query() + + 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.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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -24011,37 +22126,50 @@ func NewGetTestConnectionConnectorCredentialsRequest(server string, teamName Tea return req, nil } -// NewGetTestConnectionConnectorIdentityRequest generates requests for GetTestConnectionConnectorIdentity -func NewGetTestConnectionConnectorIdentityRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID) (*http.Request, error) { +// NewTableSchemaRequest generates requests for TableSchema +func NewTableSchemaRequest(server string, tableName TableName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam2 string + operationPath := fmt.Sprintf("/tables/%s/schema", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + 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 +} + +// NewListTeamsRequest generates requests for ListTeams +func NewListTeamsRequest(server string, params *ListTeamsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/connector/%s/identity", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/teams") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24051,6 +22179,44 @@ func NewGetTestConnectionConnectorIdentityRequest(server string, teamName TeamNa return nil, err } + if params != nil { + queryValues := queryURL.Query() + + 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.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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -24059,8 +22225,8 @@ func NewGetTestConnectionConnectorIdentityRequest(server string, teamName TeamNa return req, nil } -// NewDeleteSyncRequest generates requests for DeleteSync -func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { +// NewDownloadPluginAssetByTeamRequest generates requests for DownloadPluginAssetByTeam +func NewDownloadPluginAssetByTeamRequest(server string, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -24072,7 +22238,35 @@ func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) ( var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if err != nil { + return nil, err + } + + var pathParam4 string + + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if err != nil { + return nil, err + } + + var pathParam5 string + + pathParam5, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) if err != nil { return nil, err } @@ -24082,7 +22276,7 @@ func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) ( return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24092,16 +22286,42 @@ func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) ( return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } + if params != nil { + + if params.Accept != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { + return nil, err + } + + req.Header.Set("Accept", headerParam0) + } + + } + return req, nil } -// NewGetSyncRequest generates requests for GetSync -func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { +// NewUpdateSyncTestConnectionForSyncDestinationTeamRequest calls the generic UpdateSyncTestConnectionForSyncDestinationTeam builder with application/json body +func NewUpdateSyncTestConnectionForSyncDestinationTeamRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationTeamJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSyncTestConnectionForSyncDestinationTeamRequestWithBody(server, teamName, syncDestinationTestConnectionID, "application/json", bodyReader) +} + +// NewUpdateSyncTestConnectionForSyncDestinationTeamRequestWithBody generates requests for UpdateSyncTestConnectionForSyncDestinationTeam with any type of body +func NewUpdateSyncTestConnectionForSyncDestinationTeamRequestWithBody(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -24113,7 +22333,7 @@ func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*ht var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) if err != nil { return nil, err } @@ -24123,7 +22343,7 @@ func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*ht return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24133,27 +22353,29 @@ func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*ht return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewUpdateSyncRequest calls the generic UpdateSync builder with application/json body -func NewUpdateSyncRequest(server string, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncTestConnectionForSyncSourceTeamRequest calls the generic UpdateSyncTestConnectionForSyncSourceTeam builder with application/json body +func NewUpdateSyncTestConnectionForSyncSourceTeamRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceTeamJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSyncRequestWithBody(server, teamName, syncName, "application/json", bodyReader) + return NewUpdateSyncTestConnectionForSyncSourceTeamRequestWithBody(server, teamName, syncSourceTestConnectionID, "application/json", bodyReader) } -// NewUpdateSyncRequestWithBody generates requests for UpdateSync with any type of body -func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName SyncName, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncTestConnectionForSyncSourceTeamRequestWithBody generates requests for UpdateSyncTestConnectionForSyncSourceTeam with any type of body +func NewUpdateSyncTestConnectionForSyncSourceTeamRequestWithBody(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -24165,7 +22387,7 @@ func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName Syn var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) if err != nil { return nil, err } @@ -24175,7 +22397,7 @@ func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName Syn return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24195,8 +22417,19 @@ func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName Syn return req, nil } -// NewListSyncRunsRequest generates requests for ListSyncRuns -func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, params *ListSyncRunsParams) (*http.Request, error) { +// NewCreateSyncRunProgressTeamRequest calls the generic CreateSyncRunProgressTeam builder with application/json body +func NewCreateSyncRunProgressTeamRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressTeamJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncRunProgressTeamRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) +} + +// NewCreateSyncRunProgressTeamRequestWithBody generates requests for CreateSyncRunProgressTeam with any type of body +func NewCreateSyncRunProgressTeamRequestWithBody(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -24213,12 +22446,48 @@ func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, return nil, err } + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/progress", pathParam0, pathParam1, pathParam2) + 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 +} + +// NewGetTeamUsageSummaryRequest generates requests for GetTeamUsageSummary +func NewGetTeamUsageSummaryRequest(server string, params *GetTeamUsageSummaryParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/usage-summary") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24231,9 +22500,9 @@ func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, if params != nil { queryValues := queryURL.Query() - if params.MigrationFilter != nil { + if params.Metrics != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "migration_filter", runtime.ParamLocationQuery, *params.MigrationFilter); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metrics", runtime.ParamLocationQuery, params.Metrics); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -24247,9 +22516,9 @@ func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, } - if params.PerPage != nil { + if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != 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 @@ -24263,9 +22532,25 @@ func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, } - if params.Page != nil { + if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != 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.AggregationPeriod != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aggregation_period", runtime.ParamLocationQuery, *params.AggregationPeriod); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -24290,20 +22575,13 @@ func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, return req, nil } -// NewCreateSyncRunRequest generates requests for CreateSyncRun -func NewCreateSyncRunRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { +// NewGetGroupedTeamUsageSummaryRequest generates requests for GetGroupedTeamUsageSummary +func NewGetGroupedTeamUsageSummaryRequest(server string, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "group_by", runtime.ParamLocationPath, groupBy) if err != nil { return nil, err } @@ -24313,7 +22591,7 @@ func NewCreateSyncRunRequest(server string, teamName TeamName, syncName SyncName return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/usage-summary/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24323,7 +22601,77 @@ func NewCreateSyncRunRequest(server string, teamName TeamName, syncName SyncName return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + if params != nil { + queryValues := queryURL.Query() + + if params.Metrics != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metrics", runtime.ParamLocationQuery, params.Metrics); 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.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.AggregationPeriod != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aggregation_period", runtime.ParamLocationQuery, *params.AggregationPeriod); 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 } @@ -24331,37 +22679,54 @@ func NewCreateSyncRunRequest(server string, teamName TeamName, syncName SyncName return req, nil } -// NewGetSyncRunRequest generates requests for GetSyncRun -func NewGetSyncRunRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId) (*http.Request, error) { +// NewGetCurrentUserRequest generates requests for GetCurrentUser +func NewGetCurrentUserRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/user") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + return req, nil +} + +// NewUpdateCurrentUserRequest calls the generic UpdateCurrentUser builder with application/json body +func NewUpdateCurrentUserRequest(server string, body UpdateCurrentUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdateCurrentUserRequestWithBody(server, "application/json", bodyReader) +} + +// NewUpdateCurrentUserRequestWithBody generates requests for UpdateCurrentUser with any type of body +func NewUpdateCurrentUserRequestWithBody(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("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/user") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24371,56 +22736,77 @@ func NewGetSyncRunRequest(server string, teamName TeamName, syncName SyncName, s return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewUpdateSyncRunRequest calls the generic UpdateSyncRun builder with application/json body -func NewUpdateSyncRunRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody) (*http.Request, error) { +// NewSendAnonymousEventRequest calls the generic SendAnonymousEvent builder with application/json body +func NewSendAnonymousEventRequest(server string, body SendAnonymousEventJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSyncRunRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) + return NewSendAnonymousEventRequestWithBody(server, "application/json", bodyReader) } -// NewUpdateSyncRunRequestWithBody generates requests for UpdateSyncRun with any type of body -func NewUpdateSyncRunRequestWithBody(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader) (*http.Request, error) { +// NewSendAnonymousEventRequestWithBody generates requests for SendAnonymousEvent with any type of body +func NewSendAnonymousEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/user/anon-event") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAuthenticateUserRequest calls the generic AuthenticateUser builder with application/json body +func NewAuthenticateUserRequest(server string, body AuthenticateUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewAuthenticateUserRequestWithBody(server, "application/json", bodyReader) +} + +// NewAuthenticateUserRequestWithBody generates requests for AuthenticateUser with any type of body +func NewAuthenticateUserRequestWithBody(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("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/user/authenticate") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24430,7 +22816,7 @@ func NewUpdateSyncRunRequestWithBody(server string, teamName TeamName, syncName return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -24440,44 +22826,67 @@ func NewUpdateSyncRunRequestWithBody(server string, teamName TeamName, syncName return req, nil } -// NewGetSyncRunConnectorCredentialsRequest generates requests for GetSyncRunConnectorCredentials -func NewGetSyncRunConnectorCredentialsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID) (*http.Request, error) { - var err error +// NewChangeUserPasswordRequest calls the generic ChangeUserPassword builder with application/json body +func NewChangeUserPasswordRequest(server string, body ChangeUserPasswordJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewChangeUserPasswordRequestWithBody(server, "application/json", bodyReader) +} - var pathParam0 string +// NewChangeUserPasswordRequestWithBody generates requests for ChangeUserPassword with any type of body +func NewChangeUserPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/user/change-password") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - var pathParam3 string + req.Header.Add("Content-Type", contentType) - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + return req, nil +} + +// NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body +func NewUpdateCustomerRequest(server string, body UpdateCustomerJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdateCustomerRequestWithBody(server, "application/json", bodyReader) +} + +// NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body +func NewUpdateCustomerRequestWithBody(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("/teams/%s/syncs/%s/runs/%s/connector/%s/credentials", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/user/customer") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24487,52 +22896,66 @@ func NewGetSyncRunConnectorCredentialsRequest(server string, teamName TeamName, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetSyncRunConnectorIdentityRequest generates requests for GetSyncRunConnectorIdentity -func NewGetSyncRunConnectorIdentityRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewSendUserEventRequest calls the generic SendUserEvent builder with application/json body +func NewSendUserEventRequest(server string, body SendUserEventJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewSendUserEventRequestWithBody(server, "application/json", bodyReader) +} - var pathParam1 string +// NewSendUserEventRequestWithBody generates requests for SendUserEvent with any type of body +func NewSendUserEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam2 string + operationPath := fmt.Sprintf("/user/event") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewLogoutUserRequest generates requests for LogoutUser +func NewLogoutUserRequest(server string) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/connector/%s/identity", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/user/login") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24542,7 +22965,7 @@ func NewGetSyncRunConnectorIdentityRequest(server string, teamName TeamName, syn return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -24550,37 +22973,56 @@ func NewGetSyncRunConnectorIdentityRequest(server string, teamName TeamName, syn return req, nil } -// NewGetSyncRunLogsRequest generates requests for GetSyncRunLogs -func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams) (*http.Request, error) { - var err error +// NewLoginUserRequest calls the generic LoginUser builder with application/json body +func NewLoginUserRequest(server string, body LoginUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewLoginUserRequestWithBody(server, "application/json", bodyReader) +} - var pathParam0 string +// NewLoginUserRequestWithBody generates requests for LoginUser with any type of body +func NewLoginUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/user/login") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUserTOTPDeleteRequest generates requests for UserTOTPDelete +func NewUserTOTPDeleteRequest(server string) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/logs", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/user/totp") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24590,82 +23032,62 @@ func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncNam return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Table != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "table", runtime.ParamLocationQuery, *params.Table); 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) - } - } - } +// NewUserTOTPSetupRequest generates requests for UserTOTPSetup +func NewUserTOTPSetupRequest(server string) (*http.Request, error) { + var err error - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - queryURL.RawQuery = queryValues.Encode() + operationPath := fmt.Sprintf("/user/totp") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - req, err := http.NewRequest("GET", queryURL.String(), nil) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - if params != nil { - - if params.Accept != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != nil { - return nil, err - } - - req.Header.Set("Accept", headerParam0) - } - - } - - return req, nil -} - -// NewGetSyncRunLogsLiveRequest generates requests for GetSyncRunLogsLive -func NewGetSyncRunLogsLiveRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - var pathParam1 string + return req, nil +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) +// NewUserTOTPVerifyRequest calls the generic UserTOTPVerify builder with application/json body +func NewUserTOTPVerifyRequest(server string, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUserTOTPVerifyRequestWithBody(server, params, "application/json", bodyReader) +} - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err - } +// NewUserTOTPVerifyRequestWithBody generates requests for UserTOTPVerify with any type of body +func NewUserTOTPVerifyRequestWithBody(server string, params *UserTOTPVerifyParams, 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("/teams/%s/syncs/%s/runs/%s/logs/live", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/user/totp/verify") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24675,82 +23097,43 @@ func NewGetSyncRunLogsLiveRequest(server string, teamName TeamName, syncName Syn return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Table != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "table", runtime.ParamLocationQuery, *params.Table); 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) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + if params != nil { - if params.Accept != nil { - var headerParam0 string + if params.CqpSess != nil { + var cookieParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + cookieParam0, err = runtime.StyleParamWithLocation("simple", true, "__cqp_sess", runtime.ParamLocationCookie, *params.CqpSess) if err != nil { return nil, err } - req.Header.Set("Accept", headerParam0) + cookie0 := &http.Cookie{ + Name: "__cqp_sess", + Value: cookieParam0, + } + req.AddCookie(cookie0) } - } - return req, nil } -// NewGetSyncRunLogsQueryRequest generates requests for GetSyncRunLogsQuery -func NewGetSyncRunLogsQueryRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams) (*http.Request, error) { +// NewListUsersRequest generates requests for ListUsers +func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/logs/query", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/users") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24763,9 +23146,9 @@ func NewGetSyncRunLogsQueryRequest(server string, teamName TeamName, syncName Sy if params != nil { queryValues := queryURL.Query() - if params.Filters != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); err != 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 @@ -24779,9 +23162,9 @@ func NewGetSyncRunLogsQueryRequest(server string, teamName TeamName, syncName Sy } - if params.PerPage != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != 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 @@ -24795,9 +23178,9 @@ func NewGetSyncRunLogsQueryRequest(server string, teamName TeamName, syncName Sy } - if params.Page != nil { + if params.UserSearch != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user_search", runtime.ParamLocationQuery, *params.UserSearch); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -24811,9 +23194,9 @@ func NewGetSyncRunLogsQueryRequest(server string, teamName TeamName, syncName Sy } - if params.Download != nil { + if params.RoleId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "download", runtime.ParamLocationQuery, *params.Download); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role_id", runtime.ParamLocationQuery, *params.RoleId); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -24835,56 +23218,56 @@ func NewGetSyncRunLogsQueryRequest(server string, teamName TeamName, syncName Sy return nil, err } - if params != nil { - - if params.Accept != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != nil { - return nil, err - } - - req.Header.Set("Accept", headerParam0) - } - - } - return req, nil } -// NewCreateSyncRunProgressRequest calls the generic CreateSyncRunProgress builder with application/json body -func NewCreateSyncRunProgressRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody) (*http.Request, error) { +// NewAddUserRequest calls the generic AddUser builder with application/json body +func NewAddUserRequest(server string, body AddUserJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateSyncRunProgressRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) + return NewAddUserRequestWithBody(server, "application/json", bodyReader) } -// NewCreateSyncRunProgressRequestWithBody generates requests for CreateSyncRunProgress with any type of body -func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader) (*http.Request, error) { +// NewAddUserRequestWithBody generates requests for AddUser with any type of body +func NewAddUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/users") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteUserRequest generates requests for DeleteUser +func NewDeleteUserRequest(server string, userID UserID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -24894,7 +23277,7 @@ func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, s return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/progress", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/users/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24904,37 +23287,66 @@ func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, s return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetSyncRunStatsRequest generates requests for GetSyncRunStats -func NewGetSyncRunStatsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId) (*http.Request, error) { +// NewGetUserRequest generates requests for GetUser +func NewGetUserRequest(server string, userID UserID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) if err != nil { return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + operationPath := fmt.Sprintf("/users/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + return req, nil +} + +// NewUpdateUserRequest calls the generic UpdateUser builder with application/json body +func NewUpdateUserRequest(server string, userID UserID, body UpdateUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserRequestWithBody(server, userID, "application/json", bodyReader) +} + +// NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body +func NewUpdateUserRequestWithBody(server string, userID UserID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -24944,7 +23356,7 @@ func NewGetSyncRunStatsRequest(server string, teamName TeamName, syncName SyncNa return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/stats", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/users/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -24954,45 +23366,100 @@ func NewGetSyncRunStatsRequest(server string, teamName TeamName, syncName SyncNa return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetSyncRunTablesRequest generates requests for GetSyncRunTables -func NewGetSyncRunTablesRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams) (*http.Request, error) { +// NewDeleteUserTOTPRequest generates requests for DeleteUserTOTP +func NewDeleteUserTOTPRequest(server string, userID UserID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) if err != nil { return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + operationPath := fmt.Sprintf("/users/%s/totp", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam2 string + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + return req, nil +} + +// NewCreateV2SyncDestinationTestConnectionRequest calls the generic CreateV2SyncDestinationTestConnection builder with application/json body +func NewCreateV2SyncDestinationTestConnectionRequest(server string, body CreateV2SyncDestinationTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateV2SyncDestinationTestConnectionRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateV2SyncDestinationTestConnectionRequestWithBody generates requests for CreateV2SyncDestinationTestConnection with any type of body +func NewCreateV2SyncDestinationTestConnectionRequestWithBody(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("/v2/sync-destination-test-connections") + 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 +} + +// NewGetV2SyncDestinationsRequest generates requests for GetV2SyncDestinations +func NewGetV2SyncDestinationsRequest(server string, params *GetV2SyncDestinationsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/tables", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/v2/sync-destinations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25037,9 +23504,9 @@ func NewGetSyncRunTablesRequest(server string, teamName TeamName, syncName SyncN } - if params.SortBys != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SortBys); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -25053,9 +23520,25 @@ func NewGetSyncRunTablesRequest(server string, teamName TeamName, syncName SyncN } - if params.SortDirections != nil { + if params.SyncGenericSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); 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.SyncSortDirections != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -25080,13 +23563,53 @@ func NewGetSyncRunTablesRequest(server string, teamName TeamName, syncName SyncN return req, nil } -// NewListTablesTeamRequest generates requests for ListTablesTeam -func NewListTablesTeamRequest(server string, teamName TeamName, params *ListTablesTeamParams) (*http.Request, error) { +// NewCreateV2SyncDestinationRequest calls the generic CreateV2SyncDestination builder with application/json body +func NewCreateV2SyncDestinationRequest(server string, body CreateV2SyncDestinationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateV2SyncDestinationRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateV2SyncDestinationRequestWithBody generates requests for CreateV2SyncDestination with any type of body +func NewCreateV2SyncDestinationRequestWithBody(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("/v2/sync-destinations") + 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 +} + +// NewDeleteV2SyncDestinationRequest generates requests for DeleteV2SyncDestination +func NewDeleteV2SyncDestinationRequest(server string, syncDestinationName SyncDestinationName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -25096,7 +23619,7 @@ func NewListTablesTeamRequest(server string, teamName TeamName, params *ListTabl return nil, err } - operationPath := fmt.Sprintf("/teams/%s/tables", pathParam0) + operationPath := fmt.Sprintf("/v2/sync-destinations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25106,42 +23629,38 @@ func NewListTablesTeamRequest(server string, teamName TeamName, params *ListTabl return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.PerPage != nil { + return req, 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) - } - } - } +// NewGetV2SyncDestinationRequest generates requests for GetV2SyncDestination +func NewGetV2SyncDestinationRequest(server string, syncDestinationName SyncDestinationName) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.Page != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + if err != nil { + return nil, err + } - 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) - } - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/v2/sync-destinations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - queryURL.RawQuery = queryValues.Encode() + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -25152,13 +23671,24 @@ func NewListTablesTeamRequest(server string, teamName TeamName, params *ListTabl return req, nil } -// NewBatchTableSchemasTeamRequest generates requests for BatchTableSchemasTeam -func NewBatchTableSchemasTeamRequest(server string, teamName TeamName, params *BatchTableSchemasTeamParams) (*http.Request, error) { +// NewPatchV2SyncDestinationRequest calls the generic PatchV2SyncDestination builder with application/json body +func NewPatchV2SyncDestinationRequest(server string, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchV2SyncDestinationRequestWithBody(server, syncDestinationName, "application/json", bodyReader) +} + +// NewPatchV2SyncDestinationRequestWithBody generates requests for PatchV2SyncDestination with any type of body +func NewPatchV2SyncDestinationRequestWithBody(server string, syncDestinationName SyncDestinationName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -25168,7 +23698,7 @@ func NewBatchTableSchemasTeamRequest(server string, teamName TeamName, params *B return nil, err } - operationPath := fmt.Sprintf("/teams/%s/tables/schemas", pathParam0) + operationPath := fmt.Sprintf("/v2/sync-destinations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25178,56 +23708,66 @@ func NewBatchTableSchemasTeamRequest(server string, teamName TeamName, params *B return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tables", runtime.ParamLocationQuery, params.Tables); 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) - } - } - } + req.Header.Add("Content-Type", contentType) - queryURL.RawQuery = queryValues.Encode() - } + return req, nil +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +// NewCreateV2SyncIntegrationTestConnectionRequest calls the generic CreateV2SyncIntegrationTestConnection builder with application/json body +func NewCreateV2SyncIntegrationTestConnectionRequest(server string, body CreateV2SyncIntegrationTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewCreateV2SyncIntegrationTestConnectionRequestWithBody(server, "application/json", bodyReader) } -// NewTableListColumnsTeamRequest generates requests for TableListColumnsTeam -func NewTableListColumnsTeamRequest(server string, teamName TeamName, tableName TableName, params *TableListColumnsTeamParams) (*http.Request, error) { +// NewCreateV2SyncIntegrationTestConnectionRequestWithBody generates requests for CreateV2SyncIntegrationTestConnection with any type of body +func NewCreateV2SyncIntegrationTestConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/v2/sync-integration-test-connections") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewListV2SyncIntegrationsRequest generates requests for ListV2SyncIntegrations +func NewListV2SyncIntegrationsRequest(server string, params *ListV2SyncIntegrationsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/tables/%s/columns", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/v2/sync-integrations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25240,9 +23780,9 @@ func NewTableListColumnsTeamRequest(server string, teamName TeamName, tableName if params != nil { queryValues := queryURL.Query() - if params.FilterMode != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); err != 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 @@ -25256,9 +23796,9 @@ func NewTableListColumnsTeamRequest(server string, teamName TeamName, tableName } - if params.Filter != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != 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 @@ -25272,9 +23812,9 @@ func NewTableListColumnsTeamRequest(server string, teamName TeamName, tableName } - if params.Page != nil { + if params.SyncSortBys != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -25288,9 +23828,25 @@ func NewTableListColumnsTeamRequest(server string, teamName TeamName, tableName } - if params.PerPage != nil { + if params.SyncSortDirections != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); 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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -25315,37 +23871,27 @@ func NewTableListColumnsTeamRequest(server string, teamName TeamName, tableName return req, nil } -// NewTableColumnListValuesTeamRequest generates requests for TableColumnListValuesTeam -func NewTableColumnListValuesTeamRequest(server string, teamName TeamName, tableName TableName, columnName ColumnName, params *TableColumnListValuesTeamParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) +// NewCreateV2SyncIntegrationRequest calls the generic CreateV2SyncIntegration builder with application/json body +func NewCreateV2SyncIntegrationRequest(server string, body CreateV2SyncIntegrationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateV2SyncIntegrationRequestWithBody(server, "application/json", bodyReader) +} - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "column_name", runtime.ParamLocationPath, columnName) - if err != nil { - return nil, err - } +// NewCreateV2SyncIntegrationRequestWithBody generates requests for CreateV2SyncIntegration with any type of body +func NewCreateV2SyncIntegrationRequestWithBody(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("/teams/%s/tables/%s/columns/%s/values", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/v2/sync-integrations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25355,98 +23901,23 @@ func NewTableColumnListValuesTeamRequest(server string, teamName TeamName, table return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.FilterMode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); 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.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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 - } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewTableListRowsTeamRequest generates requests for TableListRowsTeam -func NewTableListRowsTeamRequest(server string, teamName TeamName, tableName TableName, params *TableListRowsTeamParams) (*http.Request, error) { +// NewDeleteV2SyncIntegrationRequest generates requests for DeleteV2SyncIntegration +func NewDeleteV2SyncIntegrationRequest(server string, syncName SyncName, params *DeleteV2SyncIntegrationParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -25456,7 +23927,7 @@ func NewTableListRowsTeamRequest(server string, teamName TeamName, tableName Tab return nil, err } - operationPath := fmt.Sprintf("/teams/%s/tables/%s/data", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/v2/sync-integrations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25469,137 +23940,9 @@ func NewTableListRowsTeamRequest(server string, teamName TeamName, tableName Tab if params != nil { queryValues := queryURL.Query() - if params.Selects != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "select", runtime.ParamLocationQuery, params.Selects); 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.FilterMode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); 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.Filters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); 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.FilterIDs != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); 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.SortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SortBys); 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.SortDirections != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SortDirections); 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.GroupBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group_by", runtime.ParamLocationQuery, params.GroupBys); 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.Page != nil { + if params.DeleteData != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "delete_data", runtime.ParamLocationQuery, *params.DeleteData); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -25616,7 +23959,7 @@ func NewTableListRowsTeamRequest(server string, teamName TeamName, tableName Tab queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -25624,27 +23967,13 @@ func NewTableListRowsTeamRequest(server string, teamName TeamName, tableName Tab return req, nil } -// NewTableRowByIdTeamRequest generates requests for TableRowByIdTeam -func NewTableRowByIdTeamRequest(server string, teamName TeamName, tableName TableName, tableRowId TableRowId, params *TableRowByIdTeamParams) (*http.Request, error) { +// NewGetV2SyncIntegrationRequest generates requests for GetV2SyncIntegration +func NewGetV2SyncIntegrationRequest(server string, syncName SyncName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "table_row_id", runtime.ParamLocationPath, tableRowId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -25654,7 +23983,7 @@ func NewTableRowByIdTeamRequest(server string, teamName TeamName, tableName Tabl return nil, err } - operationPath := fmt.Sprintf("/teams/%s/tables/%s/data/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/v2/sync-integrations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25664,60 +23993,6 @@ func NewTableRowByIdTeamRequest(server string, teamName TeamName, tableName Tabl return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.FilterMode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_mode", runtime.ParamLocationQuery, *params.FilterMode); 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.Filters != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, params.Filters); 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.FilterIDs != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_id", runtime.ParamLocationQuery, params.FilterIDs); 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 @@ -25726,20 +24001,24 @@ func NewTableRowByIdTeamRequest(server string, teamName TeamName, tableName Tabl return req, nil } -// NewTableListFiltersTeamRequest generates requests for TableListFiltersTeam -func NewTableListFiltersTeamRequest(server string, teamName TeamName, tableName TableName, params *TableListFiltersTeamParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewUpdateV2SyncIntegrationRequest calls the generic UpdateV2SyncIntegration builder with application/json body +func NewUpdateV2SyncIntegrationRequest(server string, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUpdateV2SyncIntegrationRequestWithBody(server, syncName, "application/json", bodyReader) +} - var pathParam1 string +// NewUpdateV2SyncIntegrationRequestWithBody generates requests for UpdateV2SyncIntegration with any type of body +func NewUpdateV2SyncIntegrationRequestWithBody(server string, syncName SyncName, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -25749,7 +24028,7 @@ func NewTableListFiltersTeamRequest(server string, teamName TeamName, tableName return nil, err } - operationPath := fmt.Sprintf("/teams/%s/tables/%s/filters", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/v2/sync-integrations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -25759,7725 +24038,1600 @@ func NewTableListFiltersTeamRequest(server string, teamName TeamName, tableName return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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.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) - } - } - } - - } + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.FilterTags != nil { + req.Header.Add("Content-Type", contentType) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag", runtime.ParamLocationQuery, params.FilterTags); 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) - } - } - } + return req, nil +} +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err } - - queryURL.RawQuery = queryValues.Encode() } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } } + return nil +} - return req, nil +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface } -// NewTableSaveFilterTeamRequest calls the generic TableSaveFilterTeam builder with application/json body -func NewTableSaveFilterTeamRequest(server string, teamName TeamName, tableName TableName, body TableSaveFilterTeamJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewTableSaveFilterTeamRequestWithBody(server, teamName, tableName, "application/json", bodyReader) + return &ClientWithResponses{client}, nil } -// NewTableSaveFilterTeamRequestWithBody generates requests for TableSaveFilterTeam with any type of body -func NewTableSaveFilterTeamRequestWithBody(server string, teamName TeamName, tableName TableName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil } +} - var pathParam1 string +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // IndexWithResponse request + IndexWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IndexResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) - if err != nil { - return nil, err - } + // ListAllAlertsWithResponse request + ListAllAlertsWithResponse(ctx context.Context, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*ListAllAlertsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // TestUnsavedAlertWithBodyWithResponse request with any body + TestUnsavedAlertWithBodyWithResponse(ctx context.Context, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) - operationPath := fmt.Sprintf("/teams/%s/tables/%s/filters", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + TestUnsavedAlertWithResponse(ctx context.Context, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ListAPIKeysWithResponse request + ListAPIKeysWithResponse(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // CreateAPIKeyWithBodyWithResponse request with any body + CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error) - req.Header.Add("Content-Type", contentType) + CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error) - return req, nil -} + // DeleteAPIKeyWithResponse request + DeleteAPIKeyWithResponse(ctx context.Context, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error) -// NewTableListFilterTagsTeamRequest generates requests for TableListFilterTagsTeam -func NewTableListFilterTagsTeamRequest(server string, teamName TeamName, tableName TableName, params *TableListFilterTagsTeamParams) (*http.Request, error) { - var err error + // ListAuditLogsWithResponse request + ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error) - var pathParam0 string + // GetAuditLogWithResponse request + GetAuditLogWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // GetSAMLWithResponse request + GetSAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSAMLResponse, error) - var pathParam1 string + // UpdateSAMLWithBodyWithResponse request with any body + UpdateSAMLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSAMLResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) - if err != nil { - return nil, err - } + UpdateSAMLWithResponse(ctx context.Context, body UpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAMLResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // DeleteSAMLRolloverCertificateWithBodyWithResponse request with any body + DeleteSAMLRolloverCertificateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSAMLRolloverCertificateResponse, error) - operationPath := fmt.Sprintf("/teams/%s/tables/%s/filters/tags", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + DeleteSAMLRolloverCertificateWithResponse(ctx context.Context, body DeleteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSAMLRolloverCertificateResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // CreateSAMLRolloverCertificateWithResponse request + CreateSAMLRolloverCertificateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateSAMLRolloverCertificateResponse, error) - if params != nil { - queryValues := queryURL.Query() + // PromoteSAMLRolloverCertificateWithBodyWithResponse request with any body + PromoteSAMLRolloverCertificateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSAMLRolloverCertificateResponse, error) - if params.PerPage != nil { + PromoteSAMLRolloverCertificateWithResponse(ctx context.Context, body PromoteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSAMLRolloverCertificateResponse, error) - 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) - } - } - } + // CreateConversationWithBodyWithResponse request with any body + CreateConversationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) - } + CreateConversationWithResponse(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) - if params.Page != nil { + // GetConversationWithResponse request + GetConversationWithResponse(ctx context.Context, conversationID ConversationID, reqEditors ...RequestEditorFn) (*GetConversationResponse, error) - 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) - } - } - } + // SendMessageWithBodyWithResponse request with any body + SendMessageWithBodyWithResponse(ctx context.Context, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) - } + SendMessageWithResponse(ctx context.Context, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // ListAllCustomColumnsWithResponse request + ListAllCustomColumnsWithResponse(ctx context.Context, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*ListAllCustomColumnsResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // SaveCustomColumnWithBodyWithResponse request with any body + SaveCustomColumnWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) - return req, nil -} + SaveCustomColumnWithResponse(ctx context.Context, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) -// NewTableListRelationsTeamRequest generates requests for TableListRelationsTeam -func NewTableListRelationsTeamRequest(server string, teamName TeamName, tableName TableName, params *TableListRelationsTeamParams) (*http.Request, error) { - var err error + // DeleteCustomColumnWithResponse request + DeleteCustomColumnWithResponse(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*DeleteCustomColumnResponse, error) - var pathParam0 string + // GetCustomColumnWithResponse request + GetCustomColumnWithResponse(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*GetCustomColumnResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // UpdateCustomColumnWithBodyWithResponse request with any body + UpdateCustomColumnWithBodyWithResponse(ctx context.Context, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) - var pathParam1 string + UpdateCustomColumnWithResponse(ctx context.Context, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) - if err != nil { - return nil, err - } + // ListFiltersWithResponse request + ListFiltersWithResponse(ctx context.Context, params *ListFiltersParams, reqEditors ...RequestEditorFn) (*ListFiltersResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListFilterTagsWithResponse request + ListFilterTagsWithResponse(ctx context.Context, params *ListFilterTagsParams, reqEditors ...RequestEditorFn) (*ListFilterTagsResponse, error) - operationPath := fmt.Sprintf("/teams/%s/tables/%s/relations", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // DeleteFilterWithResponse request + DeleteFilterWithResponse(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*DeleteFilterResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetFilterByIDWithResponse request + GetFilterByIDWithResponse(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*GetFilterByIDResponse, error) - if params != nil { - queryValues := queryURL.Query() + // UpdateFilterWithBodyWithResponse request with any body + UpdateFilterWithBodyWithResponse(ctx context.Context, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error) - if params.RelationName != nil { + UpdateFilterWithResponse(ctx context.Context, filterID FilterID, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "relation_name", runtime.ParamLocationQuery, *params.RelationName); 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) - } - } - } + // HealthCheckWithResponse request + HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) - } + // HealthCheckHeadWithResponse request + HealthCheckHeadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHeadResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // ListPlatformInsightsWithResponse request + ListPlatformInsightsWithResponse(ctx context.Context, params *ListPlatformInsightsParams, reqEditors ...RequestEditorFn) (*ListPlatformInsightsResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetPlatformAssetInsightsWithResponse request + GetPlatformAssetInsightsWithResponse(ctx context.Context, assetID AssetID, params *GetPlatformAssetInsightsParams, reqEditors ...RequestEditorFn) (*GetPlatformAssetInsightsResponse, error) - return req, nil -} + // GetPlatformInsightColumnDistinctValuesWithResponse request + GetPlatformInsightColumnDistinctValuesWithResponse(ctx context.Context, insightColumnName InsightColumnName, params *GetPlatformInsightColumnDistinctValuesParams, reqEditors ...RequestEditorFn) (*GetPlatformInsightColumnDistinctValuesResponse, error) -// NewTableSchemaTeamRequest generates requests for TableSchemaTeam -func NewTableSchemaTeamRequest(server string, teamName TeamName, tableName TableName) (*http.Request, error) { - var err error + // PlatformListInsightFiltersWithResponse request + PlatformListInsightFiltersWithResponse(ctx context.Context, params *PlatformListInsightFiltersParams, reqEditors ...RequestEditorFn) (*PlatformListInsightFiltersResponse, error) - var pathParam0 string + // PlatformCreateInsightFilterWithBodyWithResponse request with any body + PlatformCreateInsightFilterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformCreateInsightFilterResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + PlatformCreateInsightFilterWithResponse(ctx context.Context, body PlatformCreateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformCreateInsightFilterResponse, error) - var pathParam1 string + // PlatformDeleteInsightFilterWithResponse request + PlatformDeleteInsightFilterWithResponse(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*PlatformDeleteInsightFilterResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) - if err != nil { - return nil, err - } + // PlatformGetInsightFilterByIDWithResponse request + PlatformGetInsightFilterByIDWithResponse(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*PlatformGetInsightFilterByIDResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // PlatformUpdateInsightFilterWithBodyWithResponse request with any body + PlatformUpdateInsightFilterWithBodyWithResponse(ctx context.Context, insightFilterID InsightFilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformUpdateInsightFilterResponse, error) - operationPath := fmt.Sprintf("/teams/%s/tables/%s/schema", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + PlatformUpdateInsightFilterWithResponse(ctx context.Context, insightFilterID InsightFilterID, body PlatformUpdateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformUpdateInsightFilterResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetPlatformInsightWithResponse request + GetPlatformInsightWithResponse(ctx context.Context, insightID InsightID, reqEditors ...RequestEditorFn) (*GetPlatformInsightResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetPlatformInsightAssetsWithResponse request + GetPlatformInsightAssetsWithResponse(ctx context.Context, insightID InsightID, params *GetPlatformInsightAssetsParams, reqEditors ...RequestEditorFn) (*GetPlatformInsightAssetsResponse, error) - return req, nil -} + // ListNotificationsWithResponse request + ListNotificationsWithResponse(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*ListNotificationsResponse, error) -// NewGetTeamUsageSummaryRequest generates requests for GetTeamUsageSummary -func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *GetTeamUsageSummaryParams) (*http.Request, error) { - var err error + // DeleteNotificationDestinationWithResponse request + DeleteNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*DeleteNotificationDestinationResponse, error) - var pathParam0 string + // GetNotificationDestinationWithResponse request + GetNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*GetNotificationDestinationResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // UpdateNotificationDestinationWithBodyWithResponse request with any body + UpdateNotificationDestinationWithBodyWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + UpdateNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) - operationPath := fmt.Sprintf("/teams/%s/usage-summary", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetNotificationDestinationAlertsWithResponse request + GetNotificationDestinationAlertsWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*GetNotificationDestinationAlertsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // TestNotificationDestinationWithResponse request + TestNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*TestNotificationDestinationResponse, error) - if params != nil { - queryValues := queryURL.Query() + // ListAllNotificationDestinationsWithResponse request + ListAllNotificationDestinationsWithResponse(ctx context.Context, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*ListAllNotificationDestinationsResponse, error) - if params.Metrics != nil { + // CreateNotificationDestinationWithBodyWithResponse request with any body + CreateNotificationDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metrics", runtime.ParamLocationQuery, params.Metrics); 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) - } - } - } + CreateNotificationDestinationWithResponse(ctx context.Context, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) - } + // TestUnsavedNotificationDestinationWithBodyWithResponse request with any body + TestUnsavedNotificationDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) - if params.Start != nil { + TestUnsavedNotificationDestinationWithResponse(ctx context.Context, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) - 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) - } - } - } + // CreateAWSCUROnboardingWithResponse request + CreateAWSCUROnboardingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateAWSCUROnboardingResponse, error) - } + // GetAWSCUROnboardingWithResponse request + GetAWSCUROnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSCUROnboardingResponse, error) - if params.End != nil { + // NotifyAWSCUROnboardingWithBodyWithResponse request with any body + NotifyAWSCUROnboardingWithBodyWithResponse(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NotifyAWSCUROnboardingResponse, error) - 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) - } - } - } + NotifyAWSCUROnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, body NotifyAWSCUROnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*NotifyAWSCUROnboardingResponse, error) - } + // VerifyAWSCUROnboardingWithResponse request + VerifyAWSCUROnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*VerifyAWSCUROnboardingResponse, error) - if params.AggregationPeriod != nil { + // CreateAWSOnboardingWithBodyWithResponse request with any body + CreateAWSOnboardingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aggregation_period", runtime.ParamLocationQuery, *params.AggregationPeriod); 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) - } - } - } + CreateAWSOnboardingWithResponse(ctx context.Context, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) - } + // GetAWSOnboardingWithResponse request + GetAWSOnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSOnboardingResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // GetAWSAccountsInRootWithResponse request + GetAWSAccountsInRootWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInRootResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // ProvisionOnboardingConfigurationWithBodyWithResponse request with any body + ProvisionOnboardingConfigurationWithBodyWithResponse(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) - return req, nil -} + ProvisionOnboardingConfigurationWithResponse(ctx context.Context, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) -// NewGetGroupedTeamUsageSummaryRequest generates requests for GetGroupedTeamUsageSummary -func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams) (*http.Request, error) { - var err error + // GetAWSAccountsInParentWithResponse request + GetAWSAccountsInParentWithResponse(ctx context.Context, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInParentResponse, error) - var pathParam0 string + // NotifyOnboardingWithBodyWithResponse request with any body + NotifyOnboardingWithBodyWithResponse(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + NotifyOnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) - var pathParam1 string + // GetOpenAPIJSONWithResponse request + GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group_by", runtime.ParamLocationPath, groupBy) - if err != nil { - return nil, err - } + // GetPlatformInfoWithResponse request + GetPlatformInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlatformInfoResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListPlatformVersionsWithResponse request + ListPlatformVersionsWithResponse(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*ListPlatformVersionsResponse, error) - operationPath := fmt.Sprintf("/teams/%s/usage-summary/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // ListPluginsWithResponse request + ListPluginsWithResponse(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*ListPluginsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetPluginWithResponse request + GetPluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginResponse, error) - if params != nil { - queryValues := queryURL.Query() + // ListPluginVersionsWithResponse request + ListPluginVersionsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionsResponse, error) - if params.Metrics != nil { + // GetPluginVersionWithResponse request + GetPluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetPluginVersionResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metrics", runtime.ParamLocationQuery, params.Metrics); 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) - } - } - } + // DownloadPluginAssetWithResponse request + DownloadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetResponse, error) - } + // ListPluginVersionTablesWithResponse request + ListPluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*ListPluginVersionTablesResponse, error) - if params.Start != nil { + // GetPluginVersionTableWithResponse request + GetPluginVersionTableWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*GetPluginVersionTableResponse, error) - 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) - } - } - } + // ListPoliciesWithResponse request + ListPoliciesWithResponse(ctx context.Context, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error) - } + // CreatePolicyWithBodyWithResponse request with any body + CreatePolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) - if params.End != nil { + CreatePolicyWithResponse(ctx context.Context, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) - 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) - } - } - } + // GetPolicyMetricsWithResponse request + GetPolicyMetricsWithResponse(ctx context.Context, params *GetPolicyMetricsParams, reqEditors ...RequestEditorFn) (*GetPolicyMetricsResponse, error) - } + // GetViolationsByDomainWithResponse request + GetViolationsByDomainWithResponse(ctx context.Context, params *GetViolationsByDomainParams, reqEditors ...RequestEditorFn) (*GetViolationsByDomainResponse, error) - if params.AggregationPeriod != nil { + // GetViolationsHistoryWithResponse request + GetViolationsHistoryWithResponse(ctx context.Context, params *GetViolationsHistoryParams, reqEditors ...RequestEditorFn) (*GetViolationsHistoryResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aggregation_period", runtime.ParamLocationQuery, *params.AggregationPeriod); 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) - } - } - } + // DeletePolicyWithResponse request + DeletePolicyWithResponse(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error) - } + // GetPolicyWithResponse request + GetPolicyWithResponse(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // UpdatePolicyWithBodyWithResponse request with any body + UpdatePolicyWithBodyWithResponse(ctx context.Context, policyID PolicyID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + UpdatePolicyWithResponse(ctx context.Context, policyID PolicyID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) - return req, nil -} + // TogglePolicyWithResponse request + TogglePolicyWithResponse(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*TogglePolicyResponse, error) -// NewListUsersByTeamRequest generates requests for ListUsersByTeam -func NewListUsersByTeamRequest(server string, teamName TeamName, params *ListUsersByTeamParams) (*http.Request, error) { - var err error + // GetPolicyViolationsWithResponse request + GetPolicyViolationsWithResponse(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsParams, reqEditors ...RequestEditorFn) (*GetPolicyViolationsResponse, error) - var pathParam0 string + // GetPolicyViolationsHistoryWithResponse request + GetPolicyViolationsHistoryWithResponse(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*GetPolicyViolationsHistoryResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // ListPolicyGroupsWithResponse request + ListPolicyGroupsWithResponse(ctx context.Context, params *ListPolicyGroupsParams, reqEditors ...RequestEditorFn) (*ListPolicyGroupsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // CreatePolicyGroupWithBodyWithResponse request with any body + CreatePolicyGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyGroupResponse, error) - operationPath := fmt.Sprintf("/teams/%s/users", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + CreatePolicyGroupWithResponse(ctx context.Context, body CreatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyGroupResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // DeletePolicyGroupWithResponse request + DeletePolicyGroupWithResponse(ctx context.Context, policyGroupID PolicyGroupID, reqEditors ...RequestEditorFn) (*DeletePolicyGroupResponse, error) - if params != nil { - queryValues := queryURL.Query() + // ListPoliciesInGroupWithResponse request + ListPoliciesInGroupWithResponse(ctx context.Context, policyGroupID PolicyGroupID, params *ListPoliciesInGroupParams, reqEditors ...RequestEditorFn) (*ListPoliciesInGroupResponse, error) - if params.PerPage != nil { + // UpdatePolicyGroupWithBodyWithResponse request with any body + UpdatePolicyGroupWithBodyWithResponse(ctx context.Context, policyGroupID PolicyGroupID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyGroupResponse, error) - 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) - } - } - } + UpdatePolicyGroupWithResponse(ctx context.Context, policyGroupID PolicyGroupID, body UpdatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyGroupResponse, error) - } + // ListAllQueriesWithResponse request + ListAllQueriesWithResponse(ctx context.Context, params *ListAllQueriesParams, reqEditors ...RequestEditorFn) (*ListAllQueriesResponse, error) - if params.Page != nil { + // ExecuteAdHocQueryWithBodyWithResponse request with any body + ExecuteAdHocQueryWithBodyWithResponse(ctx context.Context, params *ExecuteAdHocQueryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryResponse, error) - 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) - } - } - } + ExecuteAdHocQueryWithResponse(ctx context.Context, params *ExecuteAdHocQueryParams, body ExecuteAdHocQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryResponse, error) - } + // SaveQueryWithBodyWithResponse request with any body + SaveQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveQueryResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + SaveQueryWithResponse(ctx context.Context, body SaveQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveQueryResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // ListQueryTagsWithResponse request + ListQueryTagsWithResponse(ctx context.Context, params *ListQueryTagsParams, reqEditors ...RequestEditorFn) (*ListQueryTagsResponse, error) - return req, nil -} + // DeleteSavedQueryWithResponse request + DeleteSavedQueryWithResponse(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteSavedQueryResponse, error) -// NewUploadImageRequest calls the generic UploadImage builder with application/json body -func NewUploadImageRequest(server string, body UploadImageJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUploadImageRequestWithBody(server, "application/json", bodyReader) -} + // GetSavedQueryWithResponse request + GetSavedQueryWithResponse(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*GetSavedQueryResponse, error) -// NewUploadImageRequestWithBody generates requests for UploadImage with any type of body -func NewUploadImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + // UpdateQueryWithBodyWithResponse request with any body + UpdateQueryWithBodyWithResponse(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateQueryResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + UpdateQueryWithResponse(ctx context.Context, queryID QueryID, body UpdateQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateQueryResponse, error) - operationPath := fmt.Sprintf("/upload/image") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // DeleteAlertWithResponse request + DeleteAlertWithResponse(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ExecuteSavedQueryWithResponse request + ExecuteSavedQueryWithResponse(ctx context.Context, queryID QueryID, params *ExecuteSavedQueryParams, reqEditors ...RequestEditorFn) (*ExecuteSavedQueryResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // QueryListFiltersWithResponse request + QueryListFiltersWithResponse(ctx context.Context, queryID QueryID, params *QueryListFiltersParams, reqEditors ...RequestEditorFn) (*QueryListFiltersResponse, error) - req.Header.Add("Content-Type", contentType) + // QuerySaveFilterWithBodyWithResponse request with any body + QuerySaveFilterWithBodyWithResponse(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuerySaveFilterResponse, error) - return req, nil -} + QuerySaveFilterWithResponse(ctx context.Context, queryID QueryID, body QuerySaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*QuerySaveFilterResponse, error) -// NewGetCurrentUserRequest generates requests for GetCurrentUser -func NewGetCurrentUserRequest(server string) (*http.Request, error) { - var err error + // QueryListFilterTagsWithResponse request + QueryListFilterTagsWithResponse(ctx context.Context, queryID QueryID, params *QueryListFilterTagsParams, reqEditors ...RequestEditorFn) (*QueryListFilterTagsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListAllRBACPermissionsWithResponse request + ListAllRBACPermissionsWithResponse(ctx context.Context, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*ListAllRBACPermissionsResponse, error) - operationPath := fmt.Sprintf("/user") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateRBACPermissionWithBodyWithResponse request with any body + CreateRBACPermissionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + CreateRBACPermissionWithResponse(ctx context.Context, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // DeleteRBACPermissionWithResponse request + DeleteRBACPermissionWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*DeleteRBACPermissionResponse, error) - return req, nil -} + // GetRBACPermissionWithResponse request + GetRBACPermissionWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*GetRBACPermissionResponse, error) -// NewUpdateCurrentUserRequest calls the generic UpdateCurrentUser builder with application/json body -func NewUpdateCurrentUserRequest(server string, body UpdateCurrentUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateCurrentUserRequestWithBody(server, "application/json", bodyReader) -} + // UpdateRBACPermissionWithBodyWithResponse request with any body + UpdateRBACPermissionWithBodyWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) -// NewUpdateCurrentUserRequestWithBody generates requests for UpdateCurrentUser with any type of body -func NewUpdateCurrentUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + UpdateRBACPermissionWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListAllRBACRolesWithResponse request + ListAllRBACRolesWithResponse(ctx context.Context, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*ListAllRBACRolesResponse, error) - operationPath := fmt.Sprintf("/user") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateRBACRoleWithBodyWithResponse request with any body + CreateRBACRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + CreateRBACRoleWithResponse(ctx context.Context, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + // DeleteRBACRoleWithResponse request + DeleteRBACRoleWithResponse(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*DeleteRBACRoleResponse, error) - req.Header.Add("Content-Type", contentType) + // GetRBACRoleWithResponse request + GetRBACRoleWithResponse(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*GetRBACRoleResponse, error) - return req, nil -} + // UpdateRBACRoleWithBodyWithResponse request with any body + UpdateRBACRoleWithBodyWithResponse(ctx context.Context, roleID RoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) -// NewSendAnonymousEventRequest calls the generic SendAnonymousEvent builder with application/json body -func NewSendAnonymousEventRequest(server string, body SendAnonymousEventJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSendAnonymousEventRequestWithBody(server, "application/json", bodyReader) -} + UpdateRBACRoleWithResponse(ctx context.Context, roleID RoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) -// NewSendAnonymousEventRequestWithBody generates requests for SendAnonymousEvent with any type of body -func NewSendAnonymousEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + // ListReportsWithResponse request + ListReportsWithResponse(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // CreateReportWithBodyWithResponse request with any body + CreateReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) - operationPath := fmt.Sprintf("/user/anon-event") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + CreateReportWithResponse(ctx context.Context, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ListReportTemplatesWithResponse request + ListReportTemplatesWithResponse(ctx context.Context, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*ListReportTemplatesResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // CreateReportTemplateWithBodyWithResponse request with any body + CreateReportTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) - req.Header.Add("Content-Type", contentType) + CreateReportTemplateWithResponse(ctx context.Context, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) - return req, nil -} + // DeleteReportTemplateWithResponse request + DeleteReportTemplateWithResponse(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportTemplateResponse, error) -// NewAuthenticateLocalUserRequest calls the generic AuthenticateLocalUser builder with application/json body -func NewAuthenticateLocalUserRequest(server string, body AuthenticateLocalUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAuthenticateLocalUserRequestWithBody(server, "application/json", bodyReader) -} + // GetReportTemplateWithResponse request + GetReportTemplateWithResponse(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportTemplateResponse, error) -// NewAuthenticateLocalUserRequestWithBody generates requests for AuthenticateLocalUser with any type of body -func NewAuthenticateLocalUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + // UpdateReportTemplateWithBodyWithResponse request with any body + UpdateReportTemplateWithBodyWithResponse(ctx context.Context, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + UpdateReportTemplateWithResponse(ctx context.Context, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) - operationPath := fmt.Sprintf("/user/authenticate") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // DeleteReportWithResponse request + DeleteReportWithResponse(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetReportWithResponse request + GetReportWithResponse(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // UpdateReportWithBodyWithResponse request with any body + UpdateReportWithBodyWithResponse(ctx context.Context, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) - req.Header.Add("Content-Type", contentType) + UpdateReportWithResponse(ctx context.Context, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) - return req, nil -} + // GetSettingsWithResponse request + GetSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) -// NewChangeLocalUserPasswordRequest calls the generic ChangeLocalUserPassword builder with application/json body -func NewChangeLocalUserPasswordRequest(server string, body ChangeLocalUserPasswordJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewChangeLocalUserPasswordRequestWithBody(server, "application/json", bodyReader) -} + // UpdateSettingsWithBodyWithResponse request with any body + UpdateSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) -// NewChangeLocalUserPasswordRequestWithBody generates requests for ChangeLocalUserPassword with any type of body -func NewChangeLocalUserPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + UpdateSettingsWithResponse(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetDataSettingsWithResponse request + GetDataSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDataSettingsResponse, error) - operationPath := fmt.Sprintf("/user/change-password") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // UpdateDataSettingsWithBodyWithResponse request with any body + UpdateDataSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDataSettingsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + UpdateDataSettingsWithResponse(ctx context.Context, body UpdateDataSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDataSettingsResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // CreateSlackConnectionWithBodyWithResponse request with any body + CreateSlackConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSlackConnectionResponse, error) - req.Header.Add("Content-Type", contentType) + CreateSlackConnectionWithResponse(ctx context.Context, body CreateSlackConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSlackConnectionResponse, error) - return req, nil -} + // ListSlackChannelsWithResponse request + ListSlackChannelsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSlackChannelsParams, reqEditors ...RequestEditorFn) (*ListSlackChannelsResponse, error) -// NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body -func NewUpdateCustomerRequest(server string, body UpdateCustomerJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateCustomerRequestWithBody(server, "application/json", bodyReader) -} + // CreateSyncDestinationTestConnectionWithBodyWithResponse request with any body + CreateSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) -// NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body -func NewUpdateCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + CreateSyncDestinationTestConnectionWithResponse(ctx context.Context, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetSyncDestinationTestConnectionWithResponse request + GetSyncDestinationTestConnectionWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionResponse, error) - operationPath := fmt.Sprintf("/user/customer") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse request with any body + UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + UpdateSyncTestConnectionForSyncDestinationWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + // GetSyncDestinationTestConnectionLogsLiveWithResponse request + GetSyncDestinationTestConnectionLogsLiveWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsLiveResponse, error) - req.Header.Add("Content-Type", contentType) + // GetSyncDestinationTestConnectionLogsQueryWithResponse request + GetSyncDestinationTestConnectionLogsQueryWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsQueryResponse, error) - return req, nil -} + // PromoteSyncDestinationTestConnectionWithBodyWithResponse request with any body + PromoteSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) -// NewSendUserEventRequest calls the generic SendUserEvent builder with application/json body -func NewSendUserEventRequest(server string, body SendUserEventJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSendUserEventRequestWithBody(server, "application/json", bodyReader) -} + PromoteSyncDestinationTestConnectionWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) -// NewSendUserEventRequestWithBody generates requests for SendUserEvent with any type of body -func NewSendUserEventRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + // ListSyncDestinationsWithResponse request + ListSyncDestinationsWithResponse(ctx context.Context, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // DeleteSyncDestinationWithResponse request + DeleteSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteSyncDestinationResponse, error) - operationPath := fmt.Sprintf("/user/event") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetSyncDestinationWithResponse request + GetSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetSyncDestinationResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // UpdateSyncDestinationWithBodyWithResponse request with any body + UpdateSyncDestinationWithBodyWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + UpdateSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) - req.Header.Add("Content-Type", contentType) + // ListSyncDestinationSyncsWithResponse request + ListSyncDestinationSyncsWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationSyncsResponse, error) - return req, nil -} + // GetTestConnectionForSyncDestinationWithResponse request + GetTestConnectionForSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncDestinationResponse, error) -// NewListCurrentUserInvitationsRequest generates requests for ListCurrentUserInvitations -func NewListCurrentUserInvitationsRequest(server string, params *ListCurrentUserInvitationsParams) (*http.Request, error) { - var err error + // CreateSyncSourceTestConnectionWithBodyWithResponse request with any body + CreateSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + CreateSyncSourceTestConnectionWithResponse(ctx context.Context, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) - operationPath := fmt.Sprintf("/user/invitations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetSyncSourceTestConnectionWithResponse request + GetSyncSourceTestConnectionWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse request with any body + UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) - if params != nil { - queryValues := queryURL.Query() + UpdateSyncTestConnectionForSyncSourceWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) - if params.Page != nil { + // GetSyncSourceTestConnectionLogsLiveWithResponse request + GetSyncSourceTestConnectionLogsLiveWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsLiveResponse, error) - 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) - } - } - } + // GetSyncSourceTestConnectionLogsQueryWithResponse request + GetSyncSourceTestConnectionLogsQueryWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsQueryResponse, error) - } + // PromoteSyncSourceTestConnectionWithBodyWithResponse request with any body + PromoteSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) - if params.PerPage != nil { + PromoteSyncSourceTestConnectionWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) - 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) - } - } - } + // ListSyncSourcesWithResponse request + ListSyncSourcesWithResponse(ctx context.Context, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*ListSyncSourcesResponse, error) - } + // DeleteSyncSourceWithResponse request + DeleteSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*DeleteSyncSourceResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // GetSyncSourceWithResponse request + GetSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*GetSyncSourceResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // UpdateSyncSourceWithBodyWithResponse request with any body + UpdateSyncSourceWithBodyWithResponse(ctx context.Context, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) - return req, nil -} + UpdateSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) -// NewGetCurrentLocalUserRequest generates requests for GetCurrentLocalUser -func NewGetCurrentLocalUserRequest(server string) (*http.Request, error) { - var err error + // ListSyncSourceSyncsWithResponse request + ListSyncSourceSyncsWithResponse(ctx context.Context, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncSourceSyncsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetTestConnectionForSyncSourceWithResponse request + GetTestConnectionForSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncSourceResponse, error) - operationPath := fmt.Sprintf("/user/local") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // ListSyncTransformersWithResponse request + ListSyncTransformersWithResponse(ctx context.Context, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*ListSyncTransformersResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // DeleteSyncTransformerWithResponse request + DeleteSyncTransformerWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*DeleteSyncTransformerResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetSyncTransformerWithResponse request + GetSyncTransformerWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*GetSyncTransformerResponse, error) - return req, nil -} + // UpdateSyncTransformerWithBodyWithResponse request with any body + UpdateSyncTransformerWithBodyWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) -// NewLogoutUserRequest generates requests for LogoutUser -func NewLogoutUserRequest(server string) (*http.Request, error) { - var err error + UpdateSyncTransformerWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListSyncTransformerSyncDestinationsWithResponse request + ListSyncTransformerSyncDestinationsWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncDestinationsResponse, error) - operationPath := fmt.Sprintf("/user/login") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // ListSyncTransformerSyncsWithResponse request + ListSyncTransformerSyncsWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ListSyncUpgradesWithResponse request + ListSyncUpgradesWithResponse(ctx context.Context, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*ListSyncUpgradesResponse, error) - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + // ListSyncsWithResponse request + ListSyncsWithResponse(ctx context.Context, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncsResponse, error) - return req, nil -} + // CreateSyncWithBodyWithResponse request with any body + CreateSyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) -// NewLoginUserRequest calls the generic LoginUser builder with application/json body -func NewLoginUserRequest(server string, body LoginUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewLoginUserRequestWithBody(server, "application/json", bodyReader) -} + CreateSyncWithResponse(ctx context.Context, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) -// NewLoginUserRequestWithBody generates requests for LoginUser with any type of body -func NewLoginUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + // DeleteSyncWithResponse request + DeleteSyncWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*DeleteSyncResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetSyncWithResponse request + GetSyncWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*GetSyncResponse, error) - operationPath := fmt.Sprintf("/user/login") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // UpdateSyncWithBodyWithResponse request with any body + UpdateSyncWithBodyWithResponse(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + UpdateSyncWithResponse(ctx context.Context, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // ListSyncRunsWithResponse request + ListSyncRunsWithResponse(ctx context.Context, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*ListSyncRunsResponse, error) - req.Header.Add("Content-Type", contentType) + // CreateSyncRunWithResponse request + CreateSyncRunWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*CreateSyncRunResponse, error) - return req, nil -} + // GetSyncRunWithResponse request + GetSyncRunWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunResponse, error) -// NewGetCurrentUserMembershipsRequest generates requests for GetCurrentUserMemberships -func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMembershipsParams) (*http.Request, error) { - var err error + // UpdateSyncRunWithBodyWithResponse request with any body + UpdateSyncRunWithBodyWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + UpdateSyncRunWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) - operationPath := fmt.Sprintf("/user/memberships") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetSyncRunLogsLiveWithResponse request + GetSyncRunLogsLiveWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsLiveResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetSyncRunLogsQueryWithResponse request + GetSyncRunLogsQueryWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsQueryResponse, error) - if params != nil { - queryValues := queryURL.Query() + // CreateSyncRunProgressWithBodyWithResponse request with any body + CreateSyncRunProgressWithBodyWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) - if params.Page != nil { + CreateSyncRunProgressWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) - 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) - } - } - } + // GetSyncRunStatsWithResponse request + GetSyncRunStatsWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunStatsResponse, error) - } + // GetSyncRunTablesWithResponse request + GetSyncRunTablesWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*GetSyncRunTablesResponse, error) - if params.PerPage != nil { + // ListTablesWithResponse request + ListTablesWithResponse(ctx context.Context, params *ListTablesParams, reqEditors ...RequestEditorFn) (*ListTablesResponse, error) - 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) - } - } - } + // GetTablesDataWithResponse request + GetTablesDataWithResponse(ctx context.Context, params *GetTablesDataParams, reqEditors ...RequestEditorFn) (*GetTablesDataResponse, error) - } + // TablesDataActionWithBodyWithResponse request with any body + TablesDataActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TablesDataActionResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + TablesDataActionWithResponse(ctx context.Context, body TablesDataActionJSONRequestBody, reqEditors ...RequestEditorFn) (*TablesDataActionResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetTablesRelationsWithResponse request + GetTablesRelationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTablesRelationsResponse, error) - return req, nil -} + // BatchTableSchemasWithResponse request + BatchTableSchemasWithResponse(ctx context.Context, params *BatchTableSchemasParams, reqEditors ...RequestEditorFn) (*BatchTableSchemasResponse, error) -// NewResetLocalUserPasswordRequest calls the generic ResetLocalUserPassword builder with application/json body -func NewResetLocalUserPasswordRequest(server string, body ResetLocalUserPasswordJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewResetLocalUserPasswordRequestWithBody(server, "application/json", bodyReader) -} + // TableListColumnsWithResponse request + TableListColumnsWithResponse(ctx context.Context, tableName TableName, params *TableListColumnsParams, reqEditors ...RequestEditorFn) (*TableListColumnsResponse, error) -// NewResetLocalUserPasswordRequestWithBody generates requests for ResetLocalUserPassword with any type of body -func NewResetLocalUserPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + // TableColumnListValuesWithResponse request + TableColumnListValuesWithResponse(ctx context.Context, tableName TableName, columnName ColumnName, params *TableColumnListValuesParams, reqEditors ...RequestEditorFn) (*TableColumnListValuesResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // TableListRowsWithResponse request + TableListRowsWithResponse(ctx context.Context, tableName TableName, params *TableListRowsParams, reqEditors ...RequestEditorFn) (*TableListRowsResponse, error) - operationPath := fmt.Sprintf("/user/reset-password-token") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // TableRowByIdWithResponse request + TableRowByIdWithResponse(ctx context.Context, tableName TableName, tableRowId TableRowId, params *TableRowByIdParams, reqEditors ...RequestEditorFn) (*TableRowByIdResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // TableListFiltersWithResponse request + TableListFiltersWithResponse(ctx context.Context, tableName TableName, params *TableListFiltersParams, reqEditors ...RequestEditorFn) (*TableListFiltersResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // TableSaveFilterWithBodyWithResponse request with any body + TableSaveFilterWithBodyWithResponse(ctx context.Context, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TableSaveFilterResponse, error) - req.Header.Add("Content-Type", contentType) + TableSaveFilterWithResponse(ctx context.Context, tableName TableName, body TableSaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*TableSaveFilterResponse, error) - return req, nil -} + // TableListFilterTagsWithResponse request + TableListFilterTagsWithResponse(ctx context.Context, tableName TableName, params *TableListFilterTagsParams, reqEditors ...RequestEditorFn) (*TableListFilterTagsResponse, error) -// NewCreateUserTokenRequest generates requests for CreateUserToken -func NewCreateUserTokenRequest(server string) (*http.Request, error) { - var err error + // TableSchemaWithResponse request + TableSchemaWithResponse(ctx context.Context, tableName TableName, reqEditors ...RequestEditorFn) (*TableSchemaResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListTeamsWithResponse request + ListTeamsWithResponse(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error) - operationPath := fmt.Sprintf("/user/token") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // DownloadPluginAssetByTeamWithResponse request + DownloadPluginAssetByTeamWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetByTeamResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // UpdateSyncTestConnectionForSyncDestinationTeamWithBodyWithResponse request with any body + UpdateSyncTestConnectionForSyncDestinationTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationTeamResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } + UpdateSyncTestConnectionForSyncDestinationTeamWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationTeamResponse, error) - return req, nil -} + // UpdateSyncTestConnectionForSyncSourceTeamWithBodyWithResponse request with any body + UpdateSyncTestConnectionForSyncSourceTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceTeamResponse, error) -// NewUserTOTPDeleteRequest generates requests for UserTOTPDelete -func NewUserTOTPDeleteRequest(server string) (*http.Request, error) { - var err error + UpdateSyncTestConnectionForSyncSourceTeamWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceTeamResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // CreateSyncRunProgressTeamWithBodyWithResponse request with any body + CreateSyncRunProgressTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressTeamResponse, error) - operationPath := fmt.Sprintf("/user/totp") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + CreateSyncRunProgressTeamWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressTeamResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // GetTeamUsageSummaryWithResponse request + GetTeamUsageSummaryWithResponse(ctx context.Context, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetTeamUsageSummaryResponse, error) - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetGroupedTeamUsageSummaryWithResponse request + GetGroupedTeamUsageSummaryWithResponse(ctx context.Context, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetGroupedTeamUsageSummaryResponse, error) - return req, nil -} + // GetCurrentUserWithResponse request + GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) -// NewUserTOTPSetupRequest generates requests for UserTOTPSetup -func NewUserTOTPSetupRequest(server string) (*http.Request, error) { - var err error + // UpdateCurrentUserWithBodyWithResponse request with any body + UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) - operationPath := fmt.Sprintf("/user/totp") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // SendAnonymousEventWithBodyWithResponse request with any body + SendAnonymousEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + SendAnonymousEventWithResponse(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } + // AuthenticateUserWithBodyWithResponse request with any body + AuthenticateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateUserResponse, error) - return req, nil -} + AuthenticateUserWithResponse(ctx context.Context, body AuthenticateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateUserResponse, error) -// NewUserTOTPVerifyRequest calls the generic UserTOTPVerify builder with application/json body -func NewUserTOTPVerifyRequest(server string, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserTOTPVerifyRequestWithBody(server, params, "application/json", bodyReader) -} + // ChangeUserPasswordWithBodyWithResponse request with any body + ChangeUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeUserPasswordResponse, error) -// NewUserTOTPVerifyRequestWithBody generates requests for UserTOTPVerify with any type of body -func NewUserTOTPVerifyRequestWithBody(server string, params *UserTOTPVerifyParams, contentType string, body io.Reader) (*http.Request, error) { - var err error + ChangeUserPasswordWithResponse(ctx context.Context, body ChangeUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeUserPasswordResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // UpdateCustomerWithBodyWithResponse request with any body + UpdateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) - operationPath := fmt.Sprintf("/user/totp/verify") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + UpdateCustomerWithResponse(ctx context.Context, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // SendUserEventWithBodyWithResponse request with any body + SendUserEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + SendUserEventWithResponse(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) - req.Header.Add("Content-Type", contentType) + // LogoutUserWithResponse request + LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error) - if params != nil { + // LoginUserWithBodyWithResponse request with any body + LoginUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) - if params.CqpSess != nil { - var cookieParam0 string + LoginUserWithResponse(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) - cookieParam0, err = runtime.StyleParamWithLocation("simple", true, "__cqp_sess", runtime.ParamLocationCookie, *params.CqpSess) - if err != nil { - return nil, err - } + // UserTOTPDeleteWithResponse request + UserTOTPDeleteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPDeleteResponse, error) - cookie0 := &http.Cookie{ - Name: "__cqp_sess", - Value: cookieParam0, - } - req.AddCookie(cookie0) - } - } - return req, nil -} + // UserTOTPSetupWithResponse request + UserTOTPSetupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPSetupResponse, error) -// NewDeleteUserRequest generates requests for DeleteUser -func NewDeleteUserRequest(server string, userID UserID) (*http.Request, error) { - var err error + // UserTOTPVerifyWithBodyWithResponse request with any body + UserTOTPVerifyWithBodyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) - var pathParam0 string + UserTOTPVerifyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) - if err != nil { - return nil, err - } + // ListUsersWithResponse request + ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // AddUserWithBodyWithResponse request with any body + AddUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserResponse, error) - operationPath := fmt.Sprintf("/users/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + AddUserWithResponse(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // DeleteUserWithResponse request + DeleteUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetUserWithResponse request + GetUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) - return req, nil -} + // UpdateUserWithBodyWithResponse request with any body + UpdateUserWithBodyWithResponse(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) -// NewCreateV2SyncDestinationTestConnectionRequest calls the generic CreateV2SyncDestinationTestConnection builder with application/json body -func NewCreateV2SyncDestinationTestConnectionRequest(server string, teamName TeamName, body CreateV2SyncDestinationTestConnectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateV2SyncDestinationTestConnectionRequestWithBody(server, teamName, "application/json", bodyReader) -} + UpdateUserWithResponse(ctx context.Context, userID UserID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) -// NewCreateV2SyncDestinationTestConnectionRequestWithBody generates requests for CreateV2SyncDestinationTestConnection with any type of body -func NewCreateV2SyncDestinationTestConnectionRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error + // DeleteUserTOTPWithResponse request + DeleteUserTOTPWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserTOTPResponse, error) - var pathParam0 string + // CreateV2SyncDestinationTestConnectionWithBodyWithResponse request with any body + CreateV2SyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + CreateV2SyncDestinationTestConnectionWithResponse(ctx context.Context, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetV2SyncDestinationsWithResponse request + GetV2SyncDestinationsWithResponse(ctx context.Context, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationsResponse, error) - operationPath := fmt.Sprintf("/v2/teams/%s/sync-destination-test-connections", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateV2SyncDestinationWithBodyWithResponse request with any body + CreateV2SyncDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + CreateV2SyncDestinationWithResponse(ctx context.Context, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // DeleteV2SyncDestinationWithResponse request + DeleteV2SyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteV2SyncDestinationResponse, error) - req.Header.Add("Content-Type", contentType) + // GetV2SyncDestinationWithResponse request + GetV2SyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationResponse, error) - return req, nil -} + // PatchV2SyncDestinationWithBodyWithResponse request with any body + PatchV2SyncDestinationWithBodyWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) -// NewGetV2SyncDestinationsRequest generates requests for GetV2SyncDestinations -func NewGetV2SyncDestinationsRequest(server string, teamName TeamName, params *GetV2SyncDestinationsParams) (*http.Request, error) { - var err error + PatchV2SyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) - var pathParam0 string + // CreateV2SyncIntegrationTestConnectionWithBodyWithResponse request with any body + CreateV2SyncIntegrationTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + CreateV2SyncIntegrationTestConnectionWithResponse(ctx context.Context, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // ListV2SyncIntegrationsWithResponse request + ListV2SyncIntegrationsWithResponse(ctx context.Context, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*ListV2SyncIntegrationsResponse, error) - operationPath := fmt.Sprintf("/v2/teams/%s/sync-destinations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateV2SyncIntegrationWithBodyWithResponse request with any body + CreateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - 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.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.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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.SyncGenericSortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncGenericSortBys); 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) - } - } - } + CreateV2SyncIntegrationWithResponse(ctx context.Context, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) - } + // DeleteV2SyncIntegrationWithResponse request + DeleteV2SyncIntegrationWithResponse(ctx context.Context, syncName SyncName, params *DeleteV2SyncIntegrationParams, reqEditors ...RequestEditorFn) (*DeleteV2SyncIntegrationResponse, error) - if params.SyncSortDirections != nil { + // GetV2SyncIntegrationWithResponse request + GetV2SyncIntegrationWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*GetV2SyncIntegrationResponse, error) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); 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) - } - } - } + // UpdateV2SyncIntegrationWithBodyWithResponse request with any body + UpdateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) - } + UpdateV2SyncIntegrationWithResponse(ctx context.Context, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) +} - queryURL.RawQuery = queryValues.Encode() +type IndexResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]string `json:"errors,omitempty"` + FieldErrors *map[string]string `json:"field_errors,omitempty"` + Message string `json:"message"` + Status int `json:"status"` } +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r IndexResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// NewCreateV2SyncDestinationRequest calls the generic CreateV2SyncDestination builder with application/json body -func NewCreateV2SyncDestinationRequest(server string, teamName TeamName, body CreateV2SyncDestinationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r IndexResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - bodyReader = bytes.NewReader(buf) - return NewCreateV2SyncDestinationRequestWithBody(server, teamName, "application/json", bodyReader) + return 0 } -// NewCreateV2SyncDestinationRequestWithBody generates requests for CreateV2SyncDestination with any type of body -func NewCreateV2SyncDestinationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +type ListAllAlertsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []AlertDetail `json:"items"` + Metadata ListMetadata `json:"metadata"` } + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAllAlertsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-destinations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath +// StatusCode returns HTTPResponse.StatusCode +func (r ListAllAlertsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +type TestUnsavedAlertResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Results Notification results for the test alert + Results []AlertTestResponse `json:"results"` } + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TestUnsavedAlertResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return http.StatusText(0) } -// NewDeleteV2SyncDestinationRequest generates requests for DeleteV2SyncDestination -func NewDeleteV2SyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TestUnsavedAlertResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err +type ListAPIKeysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // AllowedRoles List of allowed roles when creating a new API key + AllowedRoles []Role `json:"allowed_roles"` + Items []APIKey `json:"items"` + Metadata ListMetadata `json:"metadata"` } + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAPIKeysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-destinations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath +// StatusCode returns HTTPResponse.StatusCode +func (r ListAPIKeysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } +type CreateAPIKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *APIKey + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateAPIKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// NewGetV2SyncDestinationRequest generates requests for GetV2SyncDestination -func NewGetV2SyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAPIKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type DeleteAPIKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteAPIKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAPIKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-destinations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath +type ListAuditLogsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []AuditLogEvent `json:"items"` + Metadata ListMetadata `json:"metadata"` } + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAuditLogsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListAuditLogsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return req, nil +type GetAuditLogResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuditLogEvent + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } -// NewPatchV2SyncDestinationRequest calls the generic PatchV2SyncDestination builder with application/json body -func NewPatchV2SyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetAuditLogResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewPatchV2SyncDestinationRequestWithBody(server, teamName, syncDestinationName, "application/json", bodyReader) + return http.StatusText(0) } -// NewPatchV2SyncDestinationRequestWithBody generates requests for PatchV2SyncDestination with any type of body -func NewPatchV2SyncDestinationRequestWithBody(server string, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetAuditLogResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type GetSAMLResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SAMLConfig + JSON400 *BadRequest + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSAMLResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSAMLResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-destinations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type UpdateSAMLResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SAMLConfig + JSON400 *BadRequest + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSAMLResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSAMLResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - req.Header.Add("Content-Type", contentType) - - return req, nil +type DeleteSAMLRolloverCertificateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// NewCreateV2SyncIntegrationTestConnectionRequest calls the generic CreateV2SyncIntegrationTestConnection builder with application/json body -func NewCreateV2SyncIntegrationTestConnectionRequest(server string, teamName TeamName, body CreateV2SyncIntegrationTestConnectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteSAMLRolloverCertificateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewCreateV2SyncIntegrationTestConnectionRequestWithBody(server, teamName, "application/json", bodyReader) + return http.StatusText(0) } -// NewCreateV2SyncIntegrationTestConnectionRequestWithBody generates requests for CreateV2SyncIntegrationTestConnection with any type of body -func NewCreateV2SyncIntegrationTestConnectionRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSAMLRolloverCertificateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type CreateSAMLRolloverCertificateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SAMLConfig + JSON400 *BadRequest + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSAMLRolloverCertificateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSAMLRolloverCertificateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-integration-test-connections", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type PromoteSAMLRolloverCertificateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SAMLConfig + JSON400 *BadRequest + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r PromoteSAMLRolloverCertificateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r PromoteSAMLRolloverCertificateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewListV2SyncIntegrationsRequest generates requests for ListV2SyncIntegrations -func NewListV2SyncIntegrationsRequest(server string, teamName TeamName, params *ListV2SyncIntegrationsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } +type CreateConversationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Conversation + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON429 *TooManyRequests + JSON500 *InternalError +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateConversationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-integrations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath +// StatusCode returns HTTPResponse.StatusCode +func (r CreateConversationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - 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.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.SyncSortBys != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, params.SyncSortBys); 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.SyncSortDirections != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_dir", runtime.ParamLocationQuery, params.SyncSortDirections); 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.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); 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() - } +type GetConversationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Conversation + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetConversationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// NewCreateV2SyncIntegrationRequest calls the generic CreateV2SyncIntegration builder with application/json body -func NewCreateV2SyncIntegrationRequest(server string, teamName TeamName, body CreateV2SyncIntegrationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetConversationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - bodyReader = bytes.NewReader(buf) - return NewCreateV2SyncIntegrationRequestWithBody(server, teamName, "application/json", bodyReader) + return 0 } -// NewCreateV2SyncIntegrationRequestWithBody generates requests for CreateV2SyncIntegration with any type of body -func NewCreateV2SyncIntegrationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string +type SendMessageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ConversationMessage + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r SendMessageResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r SendMessageResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-integrations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath +type ListAllCustomColumnsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []CustomColumn `json:"items"` + Metadata ListMetadata `json:"metadata"` } + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAllCustomColumnsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListAllCustomColumnsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewDeleteV2SyncIntegrationRequest generates requests for DeleteV2SyncIntegration -func NewDeleteV2SyncIntegrationRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { - var err error +type SaveCustomColumnResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CustomColumn + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r SaveCustomColumnResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r SaveCustomColumnResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type DeleteCustomColumnResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteCustomColumnResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteCustomColumnResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-integrations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type GetCustomColumnResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomColumn + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetCustomColumnResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetCustomColumnResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetV2SyncIntegrationRequest generates requests for GetV2SyncIntegration -func NewGetV2SyncIntegrationRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { - var err error - - var pathParam0 string +type UpdateCustomColumnResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomColumn + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateCustomColumnResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCustomColumnResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +type ListFiltersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []Filter `json:"items"` + Metadata ListMetadata `json:"metadata"` } + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-integrations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath +// Status returns HTTPResponse.Status +func (r ListFiltersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListFiltersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +type ListFilterTagsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []FilterTag `json:"items"` + Metadata ListMetadata `json:"metadata"` } - - return req, nil + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// NewUpdateV2SyncIntegrationRequest calls the generic UpdateV2SyncIntegration builder with application/json body -func NewUpdateV2SyncIntegrationRequest(server string, teamName TeamName, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListFilterTagsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewUpdateV2SyncIntegrationRequestWithBody(server, teamName, syncName, "application/json", bodyReader) + return http.StatusText(0) } -// NewUpdateV2SyncIntegrationRequestWithBody generates requests for UpdateV2SyncIntegration with any type of body -func NewUpdateV2SyncIntegrationRequestWithBody(server string, teamName TeamName, syncName SyncName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListFilterTagsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type DeleteFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/v2/teams/%s/sync-integrations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type GetFilterByIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Filter + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetFilterByIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetFilterByIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - req.Header.Add("Content-Type", contentType) - - return req, nil +type UpdateFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Filter + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } +// Status returns HTTPResponse.Status +func (r UpdateFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return nil + return 0 } -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface +type HealthCheckResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON500 *InternalError + JSON503 *ServiceUnavailable } -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r HealthCheckResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return &ClientWithResponses{client}, nil + return http.StatusText(0) } -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil +// StatusCode returns HTTPResponse.StatusCode +func (r HealthCheckResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 } -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // IndexWithResponse request - IndexWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IndexResponse, error) - - // ListAuditLogsWithResponse request - ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error) - - // GetAuditLogWithResponse request - GetAuditLogWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogResponse, error) - - // HealthCheckWithResponse request - HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) - - // HealthCheckHeadWithResponse request - HealthCheckHeadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHeadResponse, error) - - // AssetViewGetStatusWithResponse request - AssetViewGetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AssetViewGetStatusResponse, error) - - // AssetViewTriggerWithResponse request - AssetViewTriggerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AssetViewTriggerResponse, error) - - // AssetViewListLogsWithResponse request - AssetViewListLogsWithResponse(ctx context.Context, params *AssetViewListLogsParams, reqEditors ...RequestEditorFn) (*AssetViewListLogsResponse, error) - - // ManageGetSAMLWithResponse request - ManageGetSAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManageGetSAMLResponse, error) - - // ManageUpdateSAMLWithBodyWithResponse request with any body - ManageUpdateSAMLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageUpdateSAMLResponse, error) - - ManageUpdateSAMLWithResponse(ctx context.Context, body ManageUpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageUpdateSAMLResponse, error) - - // ManageGetPlatformRegistryWithResponse request - ManageGetPlatformRegistryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManageGetPlatformRegistryResponse, error) - - // ManageRegisterPlatformWithBodyWithResponse request with any body - ManageRegisterPlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformResponse, error) - - ManageRegisterPlatformWithResponse(ctx context.Context, body ManageRegisterPlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformResponse, error) - - // ManageRegisterPlatformWithOfflineLicenseWithBodyWithResponse request with any body - ManageRegisterPlatformWithOfflineLicenseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformWithOfflineLicenseResponse, error) - - ManageRegisterPlatformWithOfflineLicenseWithResponse(ctx context.Context, body ManageRegisterPlatformWithOfflineLicenseJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformWithOfflineLicenseResponse, error) - - // GetSettingsWithResponse request - GetSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) - - // UpdateSettingsWithBodyWithResponse request with any body - UpdateSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) - - UpdateSettingsWithResponse(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) - - // ManageListAllTeamsWithResponse request - ManageListAllTeamsWithResponse(ctx context.Context, params *ManageListAllTeamsParams, reqEditors ...RequestEditorFn) (*ManageListAllTeamsResponse, error) - - // ManageDeleteTeamWithResponse request - ManageDeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*ManageDeleteTeamResponse, error) - - // ManageGetTeamWithResponse request - ManageGetTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*ManageGetTeamResponse, error) - - // ManageRemoveTeamMemberWithBodyWithResponse request with any body - ManageRemoveTeamMemberWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageRemoveTeamMemberResponse, error) - - ManageRemoveTeamMemberWithResponse(ctx context.Context, teamName TeamName, body ManageRemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageRemoveTeamMemberResponse, error) - - // ManageListTeamMembersWithResponse request - ManageListTeamMembersWithResponse(ctx context.Context, teamName TeamName, params *ManageListTeamMembersParams, reqEditors ...RequestEditorFn) (*ManageListTeamMembersResponse, error) - - // ManageAddTeamMemberWithBodyWithResponse request with any body - ManageAddTeamMemberWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageAddTeamMemberResponse, error) - - ManageAddTeamMemberWithResponse(ctx context.Context, teamName TeamName, body ManageAddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageAddTeamMemberResponse, error) - - // ListLocalUsersWithResponse request - ListLocalUsersWithResponse(ctx context.Context, params *ListLocalUsersParams, reqEditors ...RequestEditorFn) (*ListLocalUsersResponse, error) - - // AddLocalUserWithBodyWithResponse request with any body - AddLocalUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLocalUserResponse, error) - - AddLocalUserWithResponse(ctx context.Context, body AddLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLocalUserResponse, error) - - // DeleteLocalUserWithResponse request - DeleteLocalUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteLocalUserResponse, error) - - // GetLocalUserWithResponse request - GetLocalUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*GetLocalUserResponse, error) - - // UpdateLocalUserWithBodyWithResponse request with any body - UpdateLocalUserWithBodyWithResponse(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLocalUserResponse, error) - - UpdateLocalUserWithResponse(ctx context.Context, userID UserID, body UpdateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLocalUserResponse, error) - - // CreateLocalUserResetTokenWithResponse request - CreateLocalUserResetTokenWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*CreateLocalUserResetTokenResponse, error) - - // ManageUserTOTPDeleteWithResponse request - ManageUserTOTPDeleteWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*ManageUserTOTPDeleteResponse, error) - - // GetOpenAPIJSONWithResponse request - GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error) - - // GetPlatformInfoWithResponse request - GetPlatformInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlatformInfoResponse, error) - - // ListPlatformVersionsWithResponse request - ListPlatformVersionsWithResponse(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*ListPlatformVersionsResponse, error) - - // ListPluginsWithResponse request - ListPluginsWithResponse(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*ListPluginsResponse, error) - - // CreatePluginWithBodyWithResponse request with any body - CreatePluginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) - - CreatePluginWithResponse(ctx context.Context, body CreatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) - - // DeletePluginByTeamAndPluginNameWithResponse request - DeletePluginByTeamAndPluginNameWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginByTeamAndPluginNameResponse, error) - - // GetPluginWithResponse request - GetPluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginResponse, error) - - // UpdatePluginWithBodyWithResponse request with any body - UpdatePluginWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) - - UpdatePluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body UpdatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) - - // ListPluginVersionsWithResponse request - ListPluginVersionsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionsResponse, error) - - // GetPluginVersionWithResponse request - GetPluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetPluginVersionResponse, error) - - // UpdatePluginVersionWithBodyWithResponse request with any body - UpdatePluginVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePluginVersionResponse, error) - - UpdatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UpdatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginVersionResponse, error) - - // CreatePluginVersionWithBodyWithResponse request with any body - CreatePluginVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginVersionResponse, error) - - CreatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionResponse, error) - - // DownloadPluginAssetWithResponse request - DownloadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetResponse, error) - - // UploadPluginAssetWithResponse request - UploadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, reqEditors ...RequestEditorFn) (*UploadPluginAssetResponse, error) - - // DeletePluginVersionDocsWithBodyWithResponse request with any body - DeletePluginVersionDocsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePluginVersionDocsResponse, error) - - DeletePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionDocsResponse, error) - - // ListPluginVersionDocsWithResponse request - ListPluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionDocsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionDocsResponse, error) - - // ReplacePluginVersionDocsWithBodyWithResponse request with any body - ReplacePluginVersionDocsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplacePluginVersionDocsResponse, error) - - ReplacePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body ReplacePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplacePluginVersionDocsResponse, error) - - // CreatePluginVersionDocsWithBodyWithResponse request with any body - CreatePluginVersionDocsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginVersionDocsResponse, error) - - CreatePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionDocsResponse, error) - - // DeletePluginVersionTablesWithBodyWithResponse request with any body - DeletePluginVersionTablesWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePluginVersionTablesResponse, error) - - DeletePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionTablesResponse, error) - - // ListPluginVersionTablesWithResponse request - ListPluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*ListPluginVersionTablesResponse, error) - - // CreatePluginVersionTablesWithBodyWithResponse request with any body - CreatePluginVersionTablesWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginVersionTablesResponse, error) - - CreatePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionTablesResponse, error) - - // GetPluginVersionTableWithResponse request - GetPluginVersionTableWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*GetPluginVersionTableResponse, error) - - // RemovePluginUIAssetsWithResponse request - RemovePluginUIAssetsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*RemovePluginUIAssetsResponse, error) - - // UploadPluginUIAssetsWithBodyWithResponse request with any body - UploadPluginUIAssetsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPluginUIAssetsResponse, error) - - UploadPluginUIAssetsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadPluginUIAssetsResponse, error) - - // FinalizePluginUIAssetUploadWithBodyWithResponse request with any body - FinalizePluginUIAssetUploadWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizePluginUIAssetUploadResponse, error) - - FinalizePluginUIAssetUploadWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*FinalizePluginUIAssetUploadResponse, error) - - // AuthRegistryRequestWithResponse request - AuthRegistryRequestWithResponse(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*AuthRegistryRequestResponse, error) - - // ListTeamsWithResponse request - ListTeamsWithResponse(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error) - - // CreateTeamWithBodyWithResponse request with any body - CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) - - CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) - - // DeleteTeamWithResponse request - DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error) - - // GetTeamByNameWithResponse request - GetTeamByNameWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamByNameResponse, error) - - // UpdateTeamWithBodyWithResponse request with any body - UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) - - UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) - - // ListAllAlertsWithResponse request - ListAllAlertsWithResponse(ctx context.Context, teamName TeamName, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*ListAllAlertsResponse, error) - - // TestUnsavedAlertWithBodyWithResponse request with any body - TestUnsavedAlertWithBodyWithResponse(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) - - TestUnsavedAlertWithResponse(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) - - // ListTeamAPIKeysWithResponse request - ListTeamAPIKeysWithResponse(ctx context.Context, teamName TeamName, params *ListTeamAPIKeysParams, reqEditors ...RequestEditorFn) (*ListTeamAPIKeysResponse, error) - - // CreateTeamAPIKeyWithBodyWithResponse request with any body - CreateTeamAPIKeyWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) - - CreateTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) - - // DeleteTeamAPIKeyWithResponse request - DeleteTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*DeleteTeamAPIKeyResponse, error) - - // ListConnectorsWithResponse request - ListConnectorsWithResponse(ctx context.Context, teamName TeamName, params *ListConnectorsParams, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error) - - // CreateConnectorWithBodyWithResponse request with any body - CreateConnectorWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectorResponse, error) - - CreateConnectorWithResponse(ctx context.Context, teamName TeamName, body CreateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectorResponse, error) - - // GetConnectorWithResponse request - GetConnectorWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetConnectorResponse, error) - - // UpdateConnectorWithBodyWithResponse request with any body - UpdateConnectorWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectorResponse, error) - - UpdateConnectorWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body UpdateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectorResponse, error) - - // RevokeConnectorWithResponse request - RevokeConnectorWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*RevokeConnectorResponse, error) - - // GetConnectorAuthStatusAWSWithResponse request - GetConnectorAuthStatusAWSWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetConnectorAuthStatusAWSResponse, error) - - // AuthenticateConnectorFinishAWSWithBodyWithResponse request with any body - AuthenticateConnectorFinishAWSWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishAWSResponse, error) - - AuthenticateConnectorFinishAWSWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishAWSResponse, error) - - // AuthenticateConnectorAWSWithBodyWithResponse request with any body - AuthenticateConnectorAWSWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorAWSResponse, error) - - AuthenticateConnectorAWSWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorAWSResponse, error) - - // GetConnectorAuthStatusGCPWithResponse request - GetConnectorAuthStatusGCPWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetConnectorAuthStatusGCPResponse, error) - - // AuthenticateConnectorGCPWithBodyWithResponse request with any body - AuthenticateConnectorGCPWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorGCPResponse, error) - - AuthenticateConnectorGCPWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorGCPJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorGCPResponse, error) - - // AuthenticateConnectorFinishGCPWithResponse request - AuthenticateConnectorFinishGCPWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishGCPResponse, error) - - // AuthenticateConnectorFinishOAuthWithBodyWithResponse request with any body - AuthenticateConnectorFinishOAuthWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishOAuthResponse, error) - - AuthenticateConnectorFinishOAuthWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishOAuthResponse, error) - - // AuthenticateConnectorOAuthWithBodyWithResponse request with any body - AuthenticateConnectorOAuthWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorOAuthResponse, error) - - AuthenticateConnectorOAuthWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorOAuthResponse, error) - - // CreateConversationWithBodyWithResponse request with any body - CreateConversationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) - - CreateConversationWithResponse(ctx context.Context, teamName TeamName, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) - - // GetConversationWithResponse request - GetConversationWithResponse(ctx context.Context, teamName TeamName, conversationID ConversationID, reqEditors ...RequestEditorFn) (*GetConversationResponse, error) - - // SendMessageWithBodyWithResponse request with any body - SendMessageWithBodyWithResponse(ctx context.Context, teamName TeamName, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) - - SendMessageWithResponse(ctx context.Context, teamName TeamName, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) - - // ListAllCustomColumnsWithResponse request - ListAllCustomColumnsWithResponse(ctx context.Context, teamName TeamName, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*ListAllCustomColumnsResponse, error) - - // SaveCustomColumnWithBodyWithResponse request with any body - SaveCustomColumnWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) - - SaveCustomColumnWithResponse(ctx context.Context, teamName TeamName, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) - - // DeleteCustomColumnWithResponse request - DeleteCustomColumnWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*DeleteCustomColumnResponse, error) - - // GetCustomColumnWithResponse request - GetCustomColumnWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*GetCustomColumnResponse, error) - - // UpdateCustomColumnWithBodyWithResponse request with any body - UpdateCustomColumnWithBodyWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) - - UpdateCustomColumnWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) - - // PutCustomColumnDataWithBodyWithResponse request with any body - PutCustomColumnDataWithBodyWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutCustomColumnDataResponse, error) - - PutCustomColumnDataWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnDataJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCustomColumnDataResponse, error) - - // PutCustomColumnValuesWithBodyWithResponse request with any body - PutCustomColumnValuesWithBodyWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutCustomColumnValuesResponse, error) - - PutCustomColumnValuesWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCustomColumnValuesResponse, error) - - // ListFiltersTeamWithResponse request - ListFiltersTeamWithResponse(ctx context.Context, teamName TeamName, params *ListFiltersTeamParams, reqEditors ...RequestEditorFn) (*ListFiltersTeamResponse, error) - - // ListFilterTagsTeamWithResponse request - ListFilterTagsTeamWithResponse(ctx context.Context, teamName TeamName, params *ListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*ListFilterTagsTeamResponse, error) - - // DeleteFilterTeamWithResponse request - DeleteFilterTeamWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*DeleteFilterTeamResponse, error) - - // GetFilterByIDTeamWithResponse request - GetFilterByIDTeamWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*GetFilterByIDTeamResponse, error) - - // UpdateFilterTeamWithBodyWithResponse request with any body - UpdateFilterTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilterTeamResponse, error) - - UpdateFilterTeamWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, body UpdateFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilterTeamResponse, error) - - // CreateTeamImagesWithBodyWithResponse request with any body - CreateTeamImagesWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) - - CreateTeamImagesWithResponse(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) - - // DeleteTeamInvitationWithBodyWithResponse request with any body - DeleteTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) - - DeleteTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) - - // ListTeamInvitationsWithResponse request - ListTeamInvitationsWithResponse(ctx context.Context, teamName TeamName, params *ListTeamInvitationsParams, reqEditors ...RequestEditorFn) (*ListTeamInvitationsResponse, error) - - // AcceptTeamInvitationWithBodyWithResponse request with any body - AcceptTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) - - AcceptTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) - - // RemoveTeamMembershipWithBodyWithResponse request with any body - RemoveTeamMembershipWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTeamMembershipResponse, error) - - RemoveTeamMembershipWithResponse(ctx context.Context, teamName TeamName, body RemoveTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTeamMembershipResponse, error) - - // GetTeamMembershipsWithResponse request - GetTeamMembershipsWithResponse(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*GetTeamMembershipsResponse, error) - - // DeleteTeamMembershipWithResponse request - DeleteTeamMembershipWithResponse(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*DeleteTeamMembershipResponse, error) - - // DeleteNotificationDestinationWithResponse request - DeleteNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*DeleteNotificationDestinationResponse, error) - - // GetNotificationDestinationWithResponse request - GetNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*GetNotificationDestinationResponse, error) - - // UpdateNotificationDestinationWithBodyWithResponse request with any body - UpdateNotificationDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) - - UpdateNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) - - // GetNotificationDestinationAlertsWithResponse request - GetNotificationDestinationAlertsWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*GetNotificationDestinationAlertsResponse, error) - - // TestNotificationDestinationWithResponse request - TestNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*TestNotificationDestinationResponse, error) - - // ListAllNotificationDestinationsWithResponse request - ListAllNotificationDestinationsWithResponse(ctx context.Context, teamName TeamName, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*ListAllNotificationDestinationsResponse, error) - - // CreateNotificationDestinationWithBodyWithResponse request with any body - CreateNotificationDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) - - CreateNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) - - // TestUnsavedNotificationDestinationWithBodyWithResponse request with any body - TestUnsavedNotificationDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) - - TestUnsavedNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) - - // CreateAWSOnboardingWithBodyWithResponse request with any body - CreateAWSOnboardingWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) - - CreateAWSOnboardingWithResponse(ctx context.Context, teamName TeamName, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) - - // GetAWSOnboardingWithResponse request - GetAWSOnboardingWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSOnboardingResponse, error) - - // GetAWSAccountsInRootWithResponse request - GetAWSAccountsInRootWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInRootResponse, error) - - // ProvisionOnboardingConfigurationWithBodyWithResponse request with any body - ProvisionOnboardingConfigurationWithBodyWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) - - ProvisionOnboardingConfigurationWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) - - // GetAWSAccountsInParentWithResponse request - GetAWSAccountsInParentWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInParentResponse, error) - - // NotifyOnboardingWithBodyWithResponse request with any body - NotifyOnboardingWithBodyWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) - - NotifyOnboardingWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) - - // DeletePluginsByTeamWithResponse request - DeletePluginsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeletePluginsByTeamResponse, error) - - // ListPluginsByTeamWithResponse request - ListPluginsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListPluginsByTeamParams, reqEditors ...RequestEditorFn) (*ListPluginsByTeamResponse, error) - - // DownloadPluginAssetByTeamWithResponse request - DownloadPluginAssetByTeamWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetByTeamResponse, error) - - // ListPoliciesWithResponse request - ListPoliciesWithResponse(ctx context.Context, teamName TeamName, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error) - - // CreatePolicyWithBodyWithResponse request with any body - CreatePolicyWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) - - CreatePolicyWithResponse(ctx context.Context, teamName TeamName, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) - - // ListAllFrameworksWithResponse request - ListAllFrameworksWithResponse(ctx context.Context, teamName TeamName, params *ListAllFrameworksParams, reqEditors ...RequestEditorFn) (*ListAllFrameworksResponse, error) - - // DeletePolicyWithResponse request - DeletePolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error) - - // GetPolicyWithResponse request - GetPolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) - - // UpdatePolicyWithBodyWithResponse request with any body - UpdatePolicyWithBodyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) - - UpdatePolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) - - // ListPolicyFrameworksWithResponse request - ListPolicyFrameworksWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyFrameworksParams, reqEditors ...RequestEditorFn) (*ListPolicyFrameworksResponse, error) - - // ListPolicyRulesWithResponse request - ListPolicyRulesWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyRulesParams, reqEditors ...RequestEditorFn) (*ListPolicyRulesResponse, error) - - // ListPolicyRuleDetailsWithResponse request - ListPolicyRuleDetailsWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, ruleId openapi_types.UUID, params *ListPolicyRuleDetailsParams, reqEditors ...RequestEditorFn) (*ListPolicyRuleDetailsResponse, error) - - // TogglePolicyWithResponse request - TogglePolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *TogglePolicyParams, reqEditors ...RequestEditorFn) (*TogglePolicyResponse, error) - - // GetPolicyViolationsHistoryWithResponse request - GetPolicyViolationsHistoryWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*GetPolicyViolationsHistoryResponse, error) - - // ListAllQueriesTeamWithResponse request - ListAllQueriesTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAllQueriesTeamParams, reqEditors ...RequestEditorFn) (*ListAllQueriesTeamResponse, error) - - // ExecuteAdHocQueryTeamWithBodyWithResponse request with any body - ExecuteAdHocQueryTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryTeamResponse, error) - - ExecuteAdHocQueryTeamWithResponse(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, body ExecuteAdHocQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryTeamResponse, error) - - // SaveQueryTeamWithBodyWithResponse request with any body - SaveQueryTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveQueryTeamResponse, error) - - SaveQueryTeamWithResponse(ctx context.Context, teamName TeamName, body SaveQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveQueryTeamResponse, error) - - // ListQueryTagsTeamWithResponse request - ListQueryTagsTeamWithResponse(ctx context.Context, teamName TeamName, params *ListQueryTagsTeamParams, reqEditors ...RequestEditorFn) (*ListQueryTagsTeamResponse, error) - - // DeleteSavedQueryTeamWithResponse request - DeleteSavedQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteSavedQueryTeamResponse, error) - - // GetSavedQueryTeamWithResponse request - GetSavedQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*GetSavedQueryTeamResponse, error) - - // UpdateQueryTeamWithBodyWithResponse request with any body - UpdateQueryTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateQueryTeamResponse, error) - - UpdateQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, body UpdateQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateQueryTeamResponse, error) - - // DeleteAlertWithResponse request - DeleteAlertWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error) - - // ExecuteSavedQueryTeamWithResponse request - ExecuteSavedQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, params *ExecuteSavedQueryTeamParams, reqEditors ...RequestEditorFn) (*ExecuteSavedQueryTeamResponse, error) - - // QueryListFiltersTeamWithResponse request - QueryListFiltersTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFiltersTeamParams, reqEditors ...RequestEditorFn) (*QueryListFiltersTeamResponse, error) - - // QuerySaveFilterTeamWithBodyWithResponse request with any body - QuerySaveFilterTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuerySaveFilterTeamResponse, error) - - QuerySaveFilterTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, body QuerySaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*QuerySaveFilterTeamResponse, error) - - // QueryListFilterTagsTeamWithResponse request - QueryListFilterTagsTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*QueryListFilterTagsTeamResponse, error) - - // ListAllRBACPermissionsWithResponse request - ListAllRBACPermissionsWithResponse(ctx context.Context, teamName TeamName, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*ListAllRBACPermissionsResponse, error) - - // CreateRBACPermissionWithBodyWithResponse request with any body - CreateRBACPermissionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) - - CreateRBACPermissionWithResponse(ctx context.Context, teamName TeamName, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) - - // DeleteRBACPermissionWithResponse request - DeleteRBACPermissionWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*DeleteRBACPermissionResponse, error) - - // GetRBACPermissionWithResponse request - GetRBACPermissionWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*GetRBACPermissionResponse, error) - - // UpdateRBACPermissionWithBodyWithResponse request with any body - UpdateRBACPermissionWithBodyWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) - - UpdateRBACPermissionWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) - - // ListAllRBACRolesWithResponse request - ListAllRBACRolesWithResponse(ctx context.Context, teamName TeamName, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*ListAllRBACRolesResponse, error) - - // CreateRBACRoleWithBodyWithResponse request with any body - CreateRBACRoleWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) - - CreateRBACRoleWithResponse(ctx context.Context, teamName TeamName, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) - - // DeleteRBACRoleWithResponse request - DeleteRBACRoleWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*DeleteRBACRoleResponse, error) - - // GetRBACRoleWithResponse request - GetRBACRoleWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*GetRBACRoleResponse, error) - - // UpdateRBACRoleWithBodyWithResponse request with any body - UpdateRBACRoleWithBodyWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) - - UpdateRBACRoleWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) - - // ListReportsWithResponse request - ListReportsWithResponse(ctx context.Context, teamName TeamName, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResponse, error) - - // CreateReportWithBodyWithResponse request with any body - CreateReportWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) - - CreateReportWithResponse(ctx context.Context, teamName TeamName, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) - - // ListReportTemplatesWithResponse request - ListReportTemplatesWithResponse(ctx context.Context, teamName TeamName, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*ListReportTemplatesResponse, error) - - // CreateReportTemplateWithBodyWithResponse request with any body - CreateReportTemplateWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) - - CreateReportTemplateWithResponse(ctx context.Context, teamName TeamName, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) - - // DeleteReportTemplateWithResponse request - DeleteReportTemplateWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportTemplateResponse, error) - - // GetReportTemplateWithResponse request - GetReportTemplateWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportTemplateResponse, error) - - // UpdateReportTemplateWithBodyWithResponse request with any body - UpdateReportTemplateWithBodyWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) - - UpdateReportTemplateWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) - - // DeleteReportWithResponse request - DeleteReportWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportResponse, error) - - // GetReportWithResponse request - GetReportWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportResponse, error) - - // UpdateReportWithBodyWithResponse request with any body - UpdateReportWithBodyWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) - - UpdateReportWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) - - // CreateSyncDestinationTestConnectionWithBodyWithResponse request with any body - CreateSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) - - CreateSyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) - - // GetSyncDestinationTestConnectionWithResponse request - GetSyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionResponse, error) - - // UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse request with any body - UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) - - UpdateSyncTestConnectionForSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) - - // GetSyncDestinationTestConnectionLogsWithResponse request - GetSyncDestinationTestConnectionLogsWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsResponse, error) - - // GetSyncDestinationTestConnectionLogsLiveWithResponse request - GetSyncDestinationTestConnectionLogsLiveWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsLiveResponse, error) - - // GetSyncDestinationTestConnectionLogsQueryWithResponse request - GetSyncDestinationTestConnectionLogsQueryWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsQueryResponse, error) - - // PromoteSyncDestinationTestConnectionWithBodyWithResponse request with any body - PromoteSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) - - PromoteSyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) - - // ListSyncDestinationsWithResponse request - ListSyncDestinationsWithResponse(ctx context.Context, teamName TeamName, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationsResponse, error) - - // DeleteSyncDestinationWithResponse request - DeleteSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteSyncDestinationResponse, error) - - // GetSyncDestinationWithResponse request - GetSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetSyncDestinationResponse, error) - - // UpdateSyncDestinationWithBodyWithResponse request with any body - UpdateSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) - - UpdateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) - - // MigrateSyncDestinationWithResponse request - MigrateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*MigrateSyncDestinationResponse, error) - - // ListSyncDestinationSyncsWithResponse request - ListSyncDestinationSyncsWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationSyncsResponse, error) - - // GetTestConnectionForSyncDestinationWithResponse request - GetTestConnectionForSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncDestinationResponse, error) - - // CreateSyncSourceTestConnectionWithBodyWithResponse request with any body - CreateSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) - - CreateSyncSourceTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) - - // GetSyncSourceTestConnectionWithResponse request - GetSyncSourceTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionResponse, error) - - // UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse request with any body - UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) - - UpdateSyncTestConnectionForSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) - - // GetSyncSourceTestConnectionLogsWithResponse request - GetSyncSourceTestConnectionLogsWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsResponse, error) - - // GetSyncSourceTestConnectionLogsLiveWithResponse request - GetSyncSourceTestConnectionLogsLiveWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsLiveResponse, error) - - // GetSyncSourceTestConnectionLogsQueryWithResponse request - GetSyncSourceTestConnectionLogsQueryWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsQueryResponse, error) - - // PromoteSyncSourceTestConnectionWithBodyWithResponse request with any body - PromoteSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) - - PromoteSyncSourceTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) - - // ListSyncSourcesWithResponse request - ListSyncSourcesWithResponse(ctx context.Context, teamName TeamName, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*ListSyncSourcesResponse, error) - - // DeleteSyncSourceWithResponse request - DeleteSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*DeleteSyncSourceResponse, error) - - // GetSyncSourceWithResponse request - GetSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*GetSyncSourceResponse, error) - - // UpdateSyncSourceWithBodyWithResponse request with any body - UpdateSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) - - UpdateSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) - - // MigrateSyncSourceWithResponse request - MigrateSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*MigrateSyncSourceResponse, error) - - // ListSyncSourceSyncsWithResponse request - ListSyncSourceSyncsWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncSourceSyncsResponse, error) - - // GetTestConnectionForSyncSourceWithResponse request - GetTestConnectionForSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncSourceResponse, error) - - // ListSyncTransformersWithResponse request - ListSyncTransformersWithResponse(ctx context.Context, teamName TeamName, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*ListSyncTransformersResponse, error) - - // DeleteSyncTransformerWithResponse request - DeleteSyncTransformerWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*DeleteSyncTransformerResponse, error) - - // GetSyncTransformerWithResponse request - GetSyncTransformerWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*GetSyncTransformerResponse, error) - - // UpdateSyncTransformerWithBodyWithResponse request with any body - UpdateSyncTransformerWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) - - UpdateSyncTransformerWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) - - // ListSyncTransformerSyncDestinationsWithResponse request - ListSyncTransformerSyncDestinationsWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncDestinationsResponse, error) - - // ListSyncTransformerSyncsWithResponse request - ListSyncTransformerSyncsWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncsResponse, error) - - // ListSyncUpgradesWithResponse request - ListSyncUpgradesWithResponse(ctx context.Context, teamName TeamName, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*ListSyncUpgradesResponse, error) - - // ListSyncsWithResponse request - ListSyncsWithResponse(ctx context.Context, teamName TeamName, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncsResponse, error) - - // CreateSyncWithBodyWithResponse request with any body - CreateSyncWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) - - CreateSyncWithResponse(ctx context.Context, teamName TeamName, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) - - // GetTestConnectionConnectorCredentialsWithResponse request - GetTestConnectionConnectorCredentialsWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetTestConnectionConnectorCredentialsResponse, error) - - // GetTestConnectionConnectorIdentityWithResponse request - GetTestConnectionConnectorIdentityWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetTestConnectionConnectorIdentityResponse, error) - - // DeleteSyncWithResponse request - DeleteSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*DeleteSyncResponse, error) - - // GetSyncWithResponse request - GetSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*GetSyncResponse, error) - - // UpdateSyncWithBodyWithResponse request with any body - UpdateSyncWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) - - UpdateSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) - - // ListSyncRunsWithResponse request - ListSyncRunsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*ListSyncRunsResponse, error) - - // CreateSyncRunWithResponse request - CreateSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*CreateSyncRunResponse, error) - - // GetSyncRunWithResponse request - GetSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunResponse, error) - - // UpdateSyncRunWithBodyWithResponse request with any body - UpdateSyncRunWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) - - UpdateSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) - - // GetSyncRunConnectorCredentialsWithResponse request - GetSyncRunConnectorCredentialsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetSyncRunConnectorCredentialsResponse, error) - - // GetSyncRunConnectorIdentityWithResponse request - GetSyncRunConnectorIdentityWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetSyncRunConnectorIdentityResponse, error) - - // GetSyncRunLogsWithResponse request - GetSyncRunLogsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsResponse, error) - - // GetSyncRunLogsLiveWithResponse request - GetSyncRunLogsLiveWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsLiveResponse, error) - - // GetSyncRunLogsQueryWithResponse request - GetSyncRunLogsQueryWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsQueryResponse, error) - - // CreateSyncRunProgressWithBodyWithResponse request with any body - CreateSyncRunProgressWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) - - CreateSyncRunProgressWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) - - // GetSyncRunStatsWithResponse request - GetSyncRunStatsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunStatsResponse, error) - - // GetSyncRunTablesWithResponse request - GetSyncRunTablesWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*GetSyncRunTablesResponse, error) - - // ListTablesTeamWithResponse request - ListTablesTeamWithResponse(ctx context.Context, teamName TeamName, params *ListTablesTeamParams, reqEditors ...RequestEditorFn) (*ListTablesTeamResponse, error) - - // BatchTableSchemasTeamWithResponse request - BatchTableSchemasTeamWithResponse(ctx context.Context, teamName TeamName, params *BatchTableSchemasTeamParams, reqEditors ...RequestEditorFn) (*BatchTableSchemasTeamResponse, error) - - // TableListColumnsTeamWithResponse request - TableListColumnsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListColumnsTeamParams, reqEditors ...RequestEditorFn) (*TableListColumnsTeamResponse, error) - - // TableColumnListValuesTeamWithResponse request - TableColumnListValuesTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, columnName ColumnName, params *TableColumnListValuesTeamParams, reqEditors ...RequestEditorFn) (*TableColumnListValuesTeamResponse, error) - - // TableListRowsTeamWithResponse request - TableListRowsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRowsTeamParams, reqEditors ...RequestEditorFn) (*TableListRowsTeamResponse, error) - - // TableRowByIdTeamWithResponse request - TableRowByIdTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, tableRowId TableRowId, params *TableRowByIdTeamParams, reqEditors ...RequestEditorFn) (*TableRowByIdTeamResponse, error) - - // TableListFiltersTeamWithResponse request - TableListFiltersTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFiltersTeamParams, reqEditors ...RequestEditorFn) (*TableListFiltersTeamResponse, error) - - // TableSaveFilterTeamWithBodyWithResponse request with any body - TableSaveFilterTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TableSaveFilterTeamResponse, error) - - TableSaveFilterTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, body TableSaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*TableSaveFilterTeamResponse, error) - - // TableListFilterTagsTeamWithResponse request - TableListFilterTagsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*TableListFilterTagsTeamResponse, error) - - // TableListRelationsTeamWithResponse request - TableListRelationsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRelationsTeamParams, reqEditors ...RequestEditorFn) (*TableListRelationsTeamResponse, error) - - // TableSchemaTeamWithResponse request - TableSchemaTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, reqEditors ...RequestEditorFn) (*TableSchemaTeamResponse, error) - - // GetTeamUsageSummaryWithResponse request - GetTeamUsageSummaryWithResponse(ctx context.Context, teamName TeamName, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetTeamUsageSummaryResponse, error) - - // GetGroupedTeamUsageSummaryWithResponse request - GetGroupedTeamUsageSummaryWithResponse(ctx context.Context, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetGroupedTeamUsageSummaryResponse, error) - - // ListUsersByTeamWithResponse request - ListUsersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*ListUsersByTeamResponse, error) - - // UploadImageWithBodyWithResponse request with any body - UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) - - UploadImageWithResponse(ctx context.Context, body UploadImageJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) - - // GetCurrentUserWithResponse request - GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) - - // UpdateCurrentUserWithBodyWithResponse request with any body - UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) - - UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) - - // SendAnonymousEventWithBodyWithResponse request with any body - SendAnonymousEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) - - SendAnonymousEventWithResponse(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) - - // AuthenticateLocalUserWithBodyWithResponse request with any body - AuthenticateLocalUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateLocalUserResponse, error) - - AuthenticateLocalUserWithResponse(ctx context.Context, body AuthenticateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateLocalUserResponse, error) - - // ChangeLocalUserPasswordWithBodyWithResponse request with any body - ChangeLocalUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeLocalUserPasswordResponse, error) - - ChangeLocalUserPasswordWithResponse(ctx context.Context, body ChangeLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeLocalUserPasswordResponse, error) - - // UpdateCustomerWithBodyWithResponse request with any body - UpdateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) - - UpdateCustomerWithResponse(ctx context.Context, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) - - // SendUserEventWithBodyWithResponse request with any body - SendUserEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) - - SendUserEventWithResponse(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) - - // ListCurrentUserInvitationsWithResponse request - ListCurrentUserInvitationsWithResponse(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*ListCurrentUserInvitationsResponse, error) - - // GetCurrentLocalUserWithResponse request - GetCurrentLocalUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentLocalUserResponse, error) - - // LogoutUserWithResponse request - LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error) - - // LoginUserWithBodyWithResponse request with any body - LoginUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) - - LoginUserWithResponse(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) - - // GetCurrentUserMembershipsWithResponse request - GetCurrentUserMembershipsWithResponse(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*GetCurrentUserMembershipsResponse, error) - - // ResetLocalUserPasswordWithBodyWithResponse request with any body - ResetLocalUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetLocalUserPasswordResponse, error) - - ResetLocalUserPasswordWithResponse(ctx context.Context, body ResetLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetLocalUserPasswordResponse, error) - - // CreateUserTokenWithResponse request - CreateUserTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateUserTokenResponse, error) - - // UserTOTPDeleteWithResponse request - UserTOTPDeleteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPDeleteResponse, error) - - // UserTOTPSetupWithResponse request - UserTOTPSetupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPSetupResponse, error) - - // UserTOTPVerifyWithBodyWithResponse request with any body - UserTOTPVerifyWithBodyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) - - UserTOTPVerifyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) - - // DeleteUserWithResponse request - DeleteUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) - - // CreateV2SyncDestinationTestConnectionWithBodyWithResponse request with any body - CreateV2SyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) - - CreateV2SyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) - - // GetV2SyncDestinationsWithResponse request - GetV2SyncDestinationsWithResponse(ctx context.Context, teamName TeamName, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationsResponse, error) - - // CreateV2SyncDestinationWithBodyWithResponse request with any body - CreateV2SyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) - - CreateV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) - - // DeleteV2SyncDestinationWithResponse request - DeleteV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteV2SyncDestinationResponse, error) - - // GetV2SyncDestinationWithResponse request - GetV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationResponse, error) - - // PatchV2SyncDestinationWithBodyWithResponse request with any body - PatchV2SyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) - - PatchV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) - - // CreateV2SyncIntegrationTestConnectionWithBodyWithResponse request with any body - CreateV2SyncIntegrationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) - - CreateV2SyncIntegrationTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) - - // ListV2SyncIntegrationsWithResponse request - ListV2SyncIntegrationsWithResponse(ctx context.Context, teamName TeamName, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*ListV2SyncIntegrationsResponse, error) - - // CreateV2SyncIntegrationWithBodyWithResponse request with any body - CreateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) - - CreateV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) - - // DeleteV2SyncIntegrationWithResponse request - DeleteV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*DeleteV2SyncIntegrationResponse, error) - - // GetV2SyncIntegrationWithResponse request - GetV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*GetV2SyncIntegrationResponse, error) - - // UpdateV2SyncIntegrationWithBodyWithResponse request with any body - UpdateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) - - UpdateV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) -} - -type IndexResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *struct { - Errors *[]string `json:"errors,omitempty"` - FieldErrors *map[string]string `json:"field_errors,omitempty"` - Message string `json:"message"` - Status int `json:"status"` - } -} - -// Status returns HTTPResponse.Status -func (r IndexResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IndexResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAuditLogsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []AuditLogEvent `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAuditLogsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAuditLogsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAuditLogResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AuditLogEvent - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetAuditLogResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAuditLogResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type HealthCheckResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON500 *InternalError - JSON503 *ServiceUnavailable -} - -// Status returns HTTPResponse.Status -func (r HealthCheckResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r HealthCheckResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type HealthCheckHeadResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON500 *InternalError - JSON503 *ServiceUnavailable -} - -// Status returns HTTPResponse.Status -func (r HealthCheckHeadResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r HealthCheckHeadResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AssetViewGetStatusResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // IsRunning Whether the assetview is currently running - IsRunning bool `json:"is_running"` - } - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AssetViewGetStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AssetViewGetStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AssetViewTriggerResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON403 *Forbidden - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AssetViewTriggerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AssetViewTriggerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AssetViewListLogsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []AssetViewRun `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AssetViewListLogsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AssetViewListLogsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageGetSAMLResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SAMLConfig - JSON400 *BadRequest - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageGetSAMLResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageGetSAMLResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageUpdateSAMLResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SAMLConfig - JSON400 *BadRequest - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageUpdateSAMLResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageUpdateSAMLResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageGetPlatformRegistryResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // ActivationID Activation ID - ActivationID *openapi_types.UUID `json:"activation_id,omitempty"` - - // APIKeyLastFour Last 4 characters of the API key - APIKeyLastFour *string `json:"api_key_last_four,omitempty"` - - // InstallationID Installation ID - InstallationID string `json:"installation_id"` - - // LastActivatedAt Timestamp of the last activation - LastActivatedAt *time.Time `json:"last_activated_at,omitempty"` - - // NextActivationAt Timestamp of the next activation - NextActivationAt *time.Time `json:"next_activation_at,omitempty"` - - // OfflineLicenseExpiresAt Timestamp of the offline license expiration - OfflineLicenseExpiresAt *time.Time `json:"offline_license_expires_at,omitempty"` - - // OfflineLicenseRegisteredTo Name the offline license is registered to - OfflineLicenseRegisteredTo *string `json:"offline_license_registered_to,omitempty"` - - // TeamName Name of the team that was activated - TeamName *string `json:"team_name,omitempty"` - } - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageGetPlatformRegistryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageGetPlatformRegistryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageRegisterPlatformResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // TeamName Name of the team that was activated - TeamName string `json:"team_name"` - } - JSON205 *struct { - // ButtonText Text for the button - ButtonText *string `json:"button_text,omitempty"` - - // ButtonURL URL for the button - ButtonURL *string `json:"button_url,omitempty"` - - // Error Error message - Error string `json:"error"` - } - JSON400 *BadRequest - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageRegisterPlatformResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageRegisterPlatformResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageRegisterPlatformWithOfflineLicenseResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // ExpiresAt Timestamp of the offline license expiration - ExpiresAt time.Time `json:"expires_at"` - - // RegisteredTo Name the offline license is registered to - RegisteredTo string `json:"registered_to"` - } - JSON400 *BadRequest - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageRegisterPlatformWithOfflineLicenseResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageRegisterPlatformWithOfflineLicenseResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSettingsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PlatformSettings - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSettingsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSettingsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSettingsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PlatformSettings - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSettingsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSettingsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageListAllTeamsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Team `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageListAllTeamsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageListAllTeamsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageDeleteTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageDeleteTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageDeleteTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageGetTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Team - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageGetTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageGetTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageRemoveTeamMemberResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageRemoveTeamMemberResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageRemoveTeamMemberResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageListTeamMembersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []MembershipWithUser `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageListTeamMembersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageListTeamMembersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageAddTeamMemberResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageAddTeamMemberResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageAddTeamMemberResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListLocalUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []LocalUser `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListLocalUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListLocalUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AddLocalUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *LocalUser - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AddLocalUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddLocalUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteLocalUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteLocalUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteLocalUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetLocalUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *LocalUserWithTeams - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetLocalUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetLocalUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateLocalUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *LocalUser - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateLocalUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateLocalUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateLocalUserResetTokenResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - ResetToken string `json:"reset_token"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateLocalUserResetTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateLocalUserResetTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ManageUserTOTPDeleteResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ManageUserTOTPDeleteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManageUserTOTPDeleteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetOpenAPIJSONResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} - JSON400 *BadRequest -} - -// Status returns HTTPResponse.Status -func (r GetOpenAPIJSONResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetOpenAPIJSONResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPlatformInfoResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - PublicIps *[]string `json:"public_ips,omitempty"` - } - JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetPlatformInfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPlatformInfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPlatformVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []PlatformVersion `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPlatformVersionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPlatformVersionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items ListPlugins `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPluginsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreatePluginResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Plugin - JSON400 *BadRequest - JSON403 *Forbidden - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreatePluginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeletePluginByTeamAndPluginNameResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeletePluginByTeamAndPluginNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginByTeamAndPluginNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPluginResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPlugin - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetPluginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPluginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdatePluginResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Plugin - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdatePluginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdatePluginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []PluginVersionList `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPluginVersionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginVersionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPluginVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PluginVersionDetails - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetPluginVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPluginVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdatePluginVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PluginVersion - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdatePluginVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdatePluginVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreatePluginVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PluginVersion - JSON201 *PluginVersion - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreatePluginVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DownloadPluginAssetResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PluginAsset - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DownloadPluginAssetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DownloadPluginAssetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UploadPluginAssetResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ReleaseURL - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UploadPluginAssetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UploadPluginAssetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeletePluginVersionDocsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeletePluginVersionDocsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginVersionDocsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginVersionDocsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []PluginDocsPage `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPluginVersionDocsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginVersionDocsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ReplacePluginVersionDocsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Names *[]PluginDocsPageName `json:"names,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ReplacePluginVersionDocsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ReplacePluginVersionDocsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreatePluginVersionDocsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Names *[]PluginDocsPageName `json:"names,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreatePluginVersionDocsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginVersionDocsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeletePluginVersionTablesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeletePluginVersionTablesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginVersionTablesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginVersionTablesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []PluginTable `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPluginVersionTablesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginVersionTablesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreatePluginVersionTablesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Names *[]PluginTableName `json:"names,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreatePluginVersionTablesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginVersionTablesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPluginVersionTableResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PluginTableDetails - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetPluginVersionTableResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPluginVersionTableResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type RemovePluginUIAssetsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r RemovePluginUIAssetsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RemovePluginUIAssetsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UploadPluginUIAssetsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Assets []PluginUIAsset `json:"assets"` - - // UIID ID representing this upload - UIID string `json:"ui_id"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UploadPluginUIAssetsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UploadPluginUIAssetsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type FinalizePluginUIAssetUploadResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r FinalizePluginUIAssetUploadResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FinalizePluginUIAssetUploadResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AuthRegistryRequestResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RegistryAuthToken - JSON400 *DockerError - JSON401 *DockerError - JSON404 *DockerError - JSON422 *DockerError - JSON500 *DockerError -} - -// Status returns HTTPResponse.Status -func (r AuthRegistryRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AuthRegistryRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListTeamsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Team `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListTeamsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListTeamsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Team - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTeamByNameResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Team - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTeamByNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTeamByNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Team - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAllAlertsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []AlertDetail `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAllAlertsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllAlertsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TestUnsavedAlertResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // Results Notification results for the test alert - Results []AlertTestResponse `json:"results"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r TestUnsavedAlertResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TestUnsavedAlertResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListTeamAPIKeysResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // AllowedRoles List of allowed roles when creating a new API key - AllowedRoles []APIKeyTeamRole `json:"allowed_roles"` - Items []APIKey `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListTeamAPIKeysResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListTeamAPIKeysResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateTeamAPIKeyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *APIKey - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateTeamAPIKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamAPIKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteTeamAPIKeyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteTeamAPIKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamAPIKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListConnectorsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Connector `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListConnectorsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListConnectorsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateConnectorResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Connector - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateConnectorResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateConnectorResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetConnectorResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Connector - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetConnectorResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetConnectorResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateConnectorResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Connector - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateConnectorResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateConnectorResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type RevokeConnectorResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r RevokeConnectorResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RevokeConnectorResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetConnectorAuthStatusAWSResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // ExternalID External ID used for the role - ExternalID *string `json:"external_id,omitempty"` - - // RoleARN ARN of role created by the user - RoleARN *string `json:"role_arn,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetConnectorAuthStatusAWSResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetConnectorAuthStatusAWSResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AuthenticateConnectorFinishAWSResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AuthenticateConnectorFinishAWSResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AuthenticateConnectorFinishAWSResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AuthenticateConnectorAWSResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ConnectorAuthResponseAWS - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AuthenticateConnectorAWSResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AuthenticateConnectorAWSResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetConnectorAuthStatusGCPResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // ServiceAccount CloudQuery GCP Service Account to grant access to - ServiceAccount *string `json:"service_account,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetConnectorAuthStatusGCPResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetConnectorAuthStatusGCPResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AuthenticateConnectorGCPResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ConnectorAuthResponseGCP - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AuthenticateConnectorGCPResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AuthenticateConnectorGCPResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AuthenticateConnectorFinishGCPResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AuthenticateConnectorFinishGCPResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AuthenticateConnectorFinishGCPResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AuthenticateConnectorFinishOAuthResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ConnectorAuthResponseOAuth - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AuthenticateConnectorFinishOAuthResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AuthenticateConnectorFinishOAuthResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AuthenticateConnectorOAuthResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ConnectorAuthResponseOAuth - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AuthenticateConnectorOAuthResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AuthenticateConnectorOAuthResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateConversationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Conversation - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateConversationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateConversationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetConversationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Conversation - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetConversationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetConversationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type SendMessageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ConversationMessage - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r SendMessageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SendMessageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAllCustomColumnsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []CustomColumn `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAllCustomColumnsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllCustomColumnsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type SaveCustomColumnResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *CustomColumn - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r SaveCustomColumnResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SaveCustomColumnResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteCustomColumnResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteCustomColumnResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteCustomColumnResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCustomColumnResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CustomColumn - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetCustomColumnResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCustomColumnResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateCustomColumnResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CustomColumn - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateCustomColumnResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateCustomColumnResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutCustomColumnDataResponse struct { - Body []byte - HTTPResponse *http.Response - JSON202 *struct { - Data CustomColumnDataImportAccepted `json:"data"` - } - JSON400 *BadRequest - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r PutCustomColumnDataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutCustomColumnDataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutCustomColumnValuesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} - JSON400 *BadRequest - JSON404 *NotFound - JSON422 *UnprocessableEntity -} - -// Status returns HTTPResponse.Status -func (r PutCustomColumnValuesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutCustomColumnValuesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListFiltersTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Filter `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListFiltersTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListFiltersTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListFilterTagsTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []FilterTag `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListFilterTagsTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListFilterTagsTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteFilterTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteFilterTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteFilterTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetFilterByIDTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Filter - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetFilterByIDTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetFilterByIDTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateFilterTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Filter - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateFilterTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateFilterTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateTeamImagesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Items []TeamImage `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateTeamImagesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamImagesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteTeamInvitationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteTeamInvitationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamInvitationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListTeamInvitationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Invitation `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListTeamInvitationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListTeamInvitationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AcceptTeamInvitationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *MembershipWithTeam - JSON303 *MembershipWithTeam - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AcceptTeamInvitationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AcceptTeamInvitationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type RemoveTeamMembershipResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r RemoveTeamMembershipResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RemoveTeamMembershipResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTeamMembershipsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []MembershipWithUser `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTeamMembershipsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTeamMembershipsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteTeamMembershipResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteTeamMembershipResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamMembershipResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteNotificationDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteNotificationDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteNotificationDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetNotificationDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NotificationDestination - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetNotificationDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateNotificationDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NotificationDestination - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateNotificationDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateNotificationDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetNotificationDestinationAlertsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []AlertDetail `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetNotificationDestinationAlertsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationDestinationAlertsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TestNotificationDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NotificationDestinationTestResponse - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r TestNotificationDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TestNotificationDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAllNotificationDestinationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []NotificationDestinationListItem `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAllNotificationDestinationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllNotificationDestinationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateNotificationDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *NotificationDestination - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateNotificationDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateNotificationDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TestUnsavedNotificationDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *NotificationDestinationTestResponse - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r TestUnsavedNotificationDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TestUnsavedNotificationDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateAWSOnboardingResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *OnboardingAWSCreateResponse - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateAWSOnboardingResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAWSOnboardingResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAWSOnboardingResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OnboardingAWS - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetAWSOnboardingResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAWSOnboardingResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAWSAccountsInRootResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OnboardingAWSAccounts - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetAWSAccountsInRootResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAWSAccountsInRootResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ProvisionOnboardingConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ProvisionOnboardingConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProvisionOnboardingConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAWSAccountsInParentResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OnboardingAWSAccounts - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetAWSAccountsInParentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAWSAccountsInParentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type NotifyOnboardingResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r NotifyOnboardingResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NotifyOnboardingResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeletePluginsByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeletePluginsByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginsByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginsByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Plugin `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPluginsByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginsByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DownloadPluginAssetByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *PluginAsset - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DownloadPluginAssetByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DownloadPluginAssetByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPoliciesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Metadata ListMetadata `json:"metadata"` - Policies []PlatformPolicy `json:"policies"` - } - JSON400 *BadRequest - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r ListPoliciesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPoliciesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreatePolicyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Data PlatformPolicy `json:"data"` - } - JSON400 *BadRequest - JSON403 *Forbidden -} - -// Status returns HTTPResponse.Status -func (r CreatePolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAllFrameworksResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Frameworks []PlatformPolicyFramework `json:"frameworks"` - Metadata ListMetadata `json:"metadata"` - } - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r ListAllFrameworksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllFrameworksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeletePolicyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r DeletePolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPolicyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data PlatformPolicy `json:"data"` - } - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r GetPolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdatePolicyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data PlatformPolicy `json:"data"` - } - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r UpdatePolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdatePolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPolicyFrameworksResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Frameworks []PlatformPolicyFramework `json:"frameworks"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r ListPolicyFrameworksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPolicyFrameworksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPolicyRulesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Metadata ListMetadata `json:"metadata"` - Rules []PlatformPolicyRule `json:"rules"` - } - JSON400 *BadRequest - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r ListPolicyRulesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPolicyRulesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPolicyRuleDetailsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Details []PlatformPolicyRuleDetail `json:"details"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r ListPolicyRuleDetailsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPolicyRuleDetailsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type TogglePolicyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r TogglePolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TogglePolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPolicyViolationsHistoryResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Details []PlatformPolicyViolationHistory `json:"details"` - } - JSON400 *BadRequest -} - -// Status returns HTTPResponse.Status -func (r GetPolicyViolationsHistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPolicyViolationsHistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAllQueriesTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Query `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAllQueriesTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllQueriesTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExecuteAdHocQueryTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data TableData `json:"data"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ExecuteAdHocQueryTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExecuteAdHocQueryTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type SaveQueryTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *QueryDetail - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r SaveQueryTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SaveQueryTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListQueryTagsTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []QueryTag `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListQueryTagsTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListQueryTagsTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSavedQueryTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteSavedQueryTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSavedQueryTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSavedQueryTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *QueryDetail - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSavedQueryTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSavedQueryTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateQueryTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *QueryDetail - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateQueryTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateQueryTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAlertResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteAlertResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAlertResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ExecuteSavedQueryTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data TableData `json:"data"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ExecuteSavedQueryTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExecuteSavedQueryTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type QueryListFiltersTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Filter `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r QueryListFiltersTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r QueryListFiltersTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type QuerySaveFilterTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Filter - JSON201 *Filter - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r QuerySaveFilterTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r QuerySaveFilterTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type QueryListFilterTagsTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []FilterTag `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r QueryListFilterTagsTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r QueryListFilterTagsTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAllRBACPermissionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []RBACPermission `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAllRBACPermissionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllRBACPermissionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateRBACPermissionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *RBACPermission - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateRBACPermissionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateRBACPermissionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteRBACPermissionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteRBACPermissionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteRBACPermissionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetRBACPermissionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RBACPermission - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetRBACPermissionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetRBACPermissionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateRBACPermissionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RBACPermission - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateRBACPermissionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateRBACPermissionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAllRBACRolesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []RBACRole `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAllRBACRolesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAllRBACRolesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateRBACRoleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *RBACRole - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateRBACRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateRBACRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteRBACRoleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteRBACRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteRBACRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetRBACRoleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RBACRole - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetRBACRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetRBACRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateRBACRoleResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RBACRole - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateRBACRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateRBACRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListReportsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Metadata ListMetadata `json:"metadata"` - Reports []Report `json:"reports"` - } - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r ListReportsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListReportsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateReportResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Data Report `json:"data"` - } - JSON400 *BadRequest - JSON403 *Forbidden -} - -// Status returns HTTPResponse.Status -func (r CreateReportResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateReportResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListReportTemplatesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Metadata ListMetadata `json:"metadata"` - Templates []ReportTemplate `json:"templates"` - } - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r ListReportTemplatesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListReportTemplatesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateReportTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *struct { - Data ReportTemplate `json:"data"` - } - JSON400 *BadRequest - JSON403 *Forbidden -} - -// Status returns HTTPResponse.Status -func (r CreateReportTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateReportTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteReportTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r DeleteReportTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteReportTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetReportTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data ReportTemplate `json:"data"` - } - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r GetReportTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetReportTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateReportTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data ReportTemplate `json:"data"` - } - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r UpdateReportTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateReportTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteReportResponse struct { - Body []byte - HTTPResponse *http.Response - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r DeleteReportResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteReportResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetReportResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data Report `json:"data"` - } - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r GetReportResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetReportResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateReportResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data Report `json:"data"` - } - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound -} - -// Status returns HTTPResponse.Status -func (r UpdateReportResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateReportResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateSyncDestinationTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *SyncDestinationTestConnection - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateSyncDestinationTestConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncDestinationTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncDestinationTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncDestinationTestConnection - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncDestinationTestConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncDestinationTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSyncTestConnectionForSyncDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncDestinationTestConnection - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSyncTestConnectionForSyncDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncTestConnectionForSyncDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncDestinationTestConnectionLogsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // Location The location to download the test connection logs from - Location string `json:"location"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncDestinationTestConnectionLogsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncDestinationTestConnectionLogsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncDestinationTestConnectionLogsLiveResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncDestinationTestConnectionLogsLiveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncDestinationTestConnectionLogsLiveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncDestinationTestConnectionLogsQueryResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Data TableData `json:"data"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncDestinationTestConnectionLogsQueryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncDestinationTestConnectionLogsQueryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PromoteSyncDestinationTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncDestination - JSON201 *SyncDestination - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r PromoteSyncDestinationTestConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PromoteSyncDestinationTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncDestinationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []SyncDestination `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncDestinationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncDestinationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSyncDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteSyncDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncDestination - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSyncDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncDestination - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSyncDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type MigrateSyncDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} +type HealthCheckHeadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON500 *InternalError + JSON503 *ServiceUnavailable +} // Status returns HTTPResponse.Status -func (r MigrateSyncDestinationResponse) Status() string { +func (r HealthCheckHeadResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33485,135 +25639,28 @@ func (r MigrateSyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r MigrateSyncDestinationResponse) StatusCode() int { +func (r HealthCheckHeadResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListSyncDestinationSyncsResponse struct { +type ListPlatformInsightsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []ListSync `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []Insight `json:"items"` + Metadata InsightsListMetadata `json:"metadata"` } JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON404 *NotFound + JSON403 *Forbidden JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListSyncDestinationSyncsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncDestinationSyncsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTestConnectionForSyncDestinationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncTestConnection - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTestConnectionForSyncDestinationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTestConnectionForSyncDestinationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateSyncSourceTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *SyncSourceTestConnection - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateSyncSourceTestConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncSourceTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncSourceTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncSourceTestConnection - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncSourceTestConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncSourceTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSyncTestConnectionForSyncSourceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncSourceTestConnection - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSyncTestConnectionForSyncSourceResponse) Status() string { +func (r ListPlatformInsightsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33621,55 +25668,29 @@ func (r UpdateSyncTestConnectionForSyncSourceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncTestConnectionForSyncSourceResponse) StatusCode() int { +func (r ListPlatformInsightsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncSourceTestConnectionLogsResponse struct { +type GetPlatformAssetInsightsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - // Location The location to download the test connection logs from - Location string `json:"location"` + Items []Insight `json:"items"` + Metadata ListMetadata `json:"metadata"` } JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncSourceTestConnectionLogsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncSourceTestConnectionLogsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncSourceTestConnectionLogsLiveResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncSourceTestConnectionLogsLiveResponse) Status() string { +func (r GetPlatformAssetInsightsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33677,57 +25698,27 @@ func (r GetSyncSourceTestConnectionLogsLiveResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncSourceTestConnectionLogsLiveResponse) StatusCode() int { +func (r GetPlatformAssetInsightsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncSourceTestConnectionLogsQueryResponse struct { +type GetPlatformInsightColumnDistinctValuesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Data TableData `json:"data"` - Metadata ListMetadata `json:"metadata"` + Values []string `json:"values"` } JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity + JSON403 *Forbidden JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncSourceTestConnectionLogsQueryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncSourceTestConnectionLogsQueryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PromoteSyncSourceTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncSource - JSON201 *SyncSource - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r PromoteSyncSourceTestConnectionResponse) Status() string { +func (r GetPlatformInsightColumnDistinctValuesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33735,28 +25726,29 @@ func (r PromoteSyncSourceTestConnectionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PromoteSyncSourceTestConnectionResponse) StatusCode() int { +func (r GetPlatformInsightColumnDistinctValuesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListSyncSourcesResponse struct { +type PlatformListInsightFiltersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []SyncSource `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []PlatformInsightFilter `json:"items"` + Metadata ListMetadata `json:"metadata"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListSyncSourcesResponse) Status() string { +func (r PlatformListInsightFiltersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33764,49 +25756,25 @@ func (r ListSyncSourcesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListSyncSourcesResponse) StatusCode() int { +func (r PlatformListInsightFiltersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteSyncSourceResponse struct { +type PlatformCreateInsightFilterResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *PlatformInsightFilter JSON401 *RequiresAuthentication - JSON404 *NotFound + JSON403 *Forbidden JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteSyncSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncSourceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncSource - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncSourceResponse) Status() string { +func (r PlatformCreateInsightFilterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33814,26 +25782,25 @@ func (r GetSyncSourceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncSourceResponse) StatusCode() int { +func (r PlatformCreateInsightFilterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateSyncSourceResponse struct { +type PlatformDeleteInsightFilterResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncSource - JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateSyncSourceResponse) Status() string { +func (r PlatformDeleteInsightFilterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33841,109 +25808,26 @@ func (r UpdateSyncSourceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncSourceResponse) StatusCode() int { +func (r PlatformDeleteInsightFilterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type MigrateSyncSourceResponse struct { +type PlatformGetInsightFilterByIDResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON200 *PlatformInsightFilter JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r MigrateSyncSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MigrateSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncSourceSyncsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []ListSync `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncSourceSyncsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncSourceSyncsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTestConnectionForSyncSourceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncTestConnection - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTestConnectionForSyncSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTestConnectionForSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncTransformersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []SyncTransformer `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncTransformersResponse) Status() string { +func (r PlatformGetInsightFilterByIDResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -33951,49 +25835,26 @@ func (r ListSyncTransformersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListSyncTransformersResponse) StatusCode() int { +func (r PlatformGetInsightFilterByIDResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteSyncTransformerResponse struct { +type PlatformUpdateInsightFilterResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *PlatformInsightFilter JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteSyncTransformerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncTransformerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncTransformerResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncTransformer - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncTransformerResponse) Status() string { +func (r PlatformUpdateInsightFilterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34001,26 +25862,25 @@ func (r GetSyncTransformerResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncTransformerResponse) StatusCode() int { +func (r PlatformUpdateInsightFilterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateSyncTransformerResponse struct { +type GetPlatformInsightResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncTransformer - JSON400 *BadRequest + JSON200 *Insight JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateSyncTransformerResponse) Status() string { +func (r GetPlatformInsightResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34028,172 +25888,28 @@ func (r UpdateSyncTransformerResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncTransformerResponse) StatusCode() int { +func (r GetPlatformInsightResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListSyncTransformerSyncDestinationsResponse struct { +type GetPlatformInsightAssetsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []SyncDestination `json:"items"` + Items []PolicyViolation `json:"items"` Metadata ListMetadata `json:"metadata"` } JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListSyncTransformerSyncDestinationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncTransformerSyncDestinationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncTransformerSyncsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []Sync `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncTransformerSyncsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncTransformerSyncsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncUpgradesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []SyncUpgrade `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncUpgradesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncUpgradesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Items []ListSync `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Sync - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTestConnectionConnectorCredentialsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - // Aws AWS connector credentials response - Aws *ConnectorCredentialsResponseAWS `json:"aws,omitempty"` - - // Oauth OAuth connector credentials response - Oauth *ConnectorCredentialsResponseOAuth `json:"oauth,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTestConnectionConnectorCredentialsResponse) Status() string { +func (r GetPlatformInsightAssetsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34201,29 +25917,29 @@ func (r GetTestConnectionConnectorCredentialsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTestConnectionConnectorCredentialsResponse) StatusCode() int { +func (r GetPlatformInsightAssetsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetTestConnectionConnectorIdentityResponse struct { +type ListNotificationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - // Aws AWS connector identity response - Aws *ConnectorIdentityResponseAWS `json:"aws,omitempty"` + Items []NotificationDetail `json:"items"` + Metadata ListMetadata `json:"metadata"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetTestConnectionConnectorIdentityResponse) Status() string { +func (r ListNotificationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34231,25 +25947,25 @@ func (r GetTestConnectionConnectorIdentityResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTestConnectionConnectorIdentityResponse) StatusCode() int { +func (r ListNotificationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteSyncResponse struct { +type DeleteNotificationDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteSyncResponse) Status() string { +func (r DeleteNotificationDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34257,25 +25973,26 @@ func (r DeleteSyncResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncResponse) StatusCode() int { +func (r DeleteNotificationDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncResponse struct { +type GetNotificationDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Sync - JSON400 *BadRequest + JSON200 *NotificationDestination JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncResponse) Status() string { +func (r GetNotificationDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34283,18 +26000,19 @@ func (r GetSyncResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncResponse) StatusCode() int { +func (r GetNotificationDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateSyncResponse struct { +type UpdateNotificationDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Sync + JSON200 *NotificationDestination JSON400 *BadRequest + JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity @@ -34302,7 +26020,7 @@ type UpdateSyncResponse struct { } // Status returns HTTPResponse.Status -func (r UpdateSyncResponse) Status() string { +func (r UpdateNotificationDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34310,27 +26028,29 @@ func (r UpdateSyncResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncResponse) StatusCode() int { +func (r UpdateNotificationDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListSyncRunsResponse struct { +type GetNotificationDestinationAlertsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []SyncRun `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []AlertDetail `json:"items"` + Metadata ListMetadata `json:"metadata"` } JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListSyncRunsResponse) Status() string { +func (r GetNotificationDestinationAlertsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34338,25 +26058,28 @@ func (r ListSyncRunsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListSyncRunsResponse) StatusCode() int { +func (r GetNotificationDestinationAlertsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateSyncRunResponse struct { +type TestNotificationDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncRun + JSON200 *NotificationDestinationTestResponse JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound JSON422 *UnprocessableEntity + JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateSyncRunResponse) Status() string { +func (r TestNotificationDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34364,24 +26087,29 @@ func (r CreateSyncRunResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncRunResponse) StatusCode() int { +func (r TestNotificationDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunResponse struct { +type ListAllNotificationDestinationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncRunDetails - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError + JSON200 *struct { + Items []NotificationDestinationListItem `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncRunResponse) Status() string { +func (r ListAllNotificationDestinationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34389,18 +26117,19 @@ func (r GetSyncRunResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunResponse) StatusCode() int { +func (r ListAllNotificationDestinationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateSyncRunResponse struct { +type CreateNotificationDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncRun + JSON201 *NotificationDestination JSON400 *BadRequest + JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity @@ -34408,7 +26137,7 @@ type UpdateSyncRunResponse struct { } // Status returns HTTPResponse.Status -func (r UpdateSyncRunResponse) Status() string { +func (r CreateNotificationDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34416,32 +26145,27 @@ func (r UpdateSyncRunResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncRunResponse) StatusCode() int { +func (r CreateNotificationDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunConnectorCredentialsResponse struct { +type TestUnsavedNotificationDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - // Aws AWS connector credentials response - Aws *ConnectorCredentialsResponseAWS `json:"aws,omitempty"` - - // Oauth OAuth connector credentials response - Oauth *ConnectorCredentialsResponseOAuth `json:"oauth,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *NotificationDestinationTestResponse + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncRunConnectorCredentialsResponse) Status() string { +func (r TestUnsavedNotificationDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34449,29 +26173,24 @@ func (r GetSyncRunConnectorCredentialsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunConnectorCredentialsResponse) StatusCode() int { +func (r TestUnsavedNotificationDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunConnectorIdentityResponse struct { +type CreateAWSCUROnboardingResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - // Aws AWS connector identity response - Aws *ConnectorIdentityResponseAWS `json:"aws,omitempty"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON201 *OnboardingAWSCURCreateResponse + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncRunConnectorIdentityResponse) Status() string { +func (r CreateAWSCUROnboardingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34479,29 +26198,25 @@ func (r GetSyncRunConnectorIdentityResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunConnectorIdentityResponse) StatusCode() int { +func (r CreateAWSCUROnboardingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunLogsResponse struct { +type GetAWSCUROnboardingResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - // Location The location to download the sync run logs from - Location string `json:"location"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *OnboardingAWSCUR + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncRunLogsResponse) Status() string { +func (r GetAWSCUROnboardingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34509,25 +26224,23 @@ func (r GetSyncRunLogsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunLogsResponse) StatusCode() int { +func (r GetAWSCUROnboardingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunLogsLiveResponse struct { +type NotifyAWSCUROnboardingResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncRunLogsLiveResponse) Status() string { +func (r NotifyAWSCUROnboardingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34535,29 +26248,24 @@ func (r GetSyncRunLogsLiveResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunLogsLiveResponse) StatusCode() int { +func (r NotifyAWSCUROnboardingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunLogsQueryResponse struct { +type VerifyAWSCUROnboardingResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Data TableData `json:"data"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncRunLogsQueryResponse) Status() string { +func (r VerifyAWSCUROnboardingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34565,25 +26273,24 @@ func (r GetSyncRunLogsQueryResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunLogsQueryResponse) StatusCode() int { +func (r VerifyAWSCUROnboardingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateSyncRunProgressResponse struct { +type CreateAWSOnboardingResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *OnboardingAWSCreateResponse JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateSyncRunProgressResponse) Status() string { +func (r CreateAWSOnboardingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34591,17 +26298,17 @@ func (r CreateSyncRunProgressResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncRunProgressResponse) StatusCode() int { +func (r CreateAWSOnboardingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunStatsResponse struct { +type GetAWSOnboardingResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncRunStats + JSON200 *OnboardingAWS JSON400 *BadRequest JSON401 *RequiresAuthentication JSON404 *NotFound @@ -34609,7 +26316,7 @@ type GetSyncRunStatsResponse struct { } // Status returns HTTPResponse.Status -func (r GetSyncRunStatsResponse) Status() string { +func (r GetAWSOnboardingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34617,28 +26324,25 @@ func (r GetSyncRunStatsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunStatsResponse) StatusCode() int { +func (r GetAWSOnboardingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncRunTablesResponse struct { +type GetAWSAccountsInRootResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Items []SyncRunTableStat `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError + JSON200 *OnboardingAWSAccounts + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncRunTablesResponse) Status() string { +func (r GetAWSAccountsInRootResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34646,29 +26350,25 @@ func (r GetSyncRunTablesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunTablesResponse) StatusCode() int { +func (r GetAWSAccountsInRootResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListTablesTeamResponse struct { +type ProvisionOnboardingConfigurationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Items []TableListItem `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListTablesTeamResponse) Status() string { +func (r ProvisionOnboardingConfigurationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34676,28 +26376,25 @@ func (r ListTablesTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListTablesTeamResponse) StatusCode() int { +func (r ProvisionOnboardingConfigurationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type BatchTableSchemasTeamResponse struct { +type GetAWSAccountsInParentResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Items []BatchTableSchemaItem `json:"items"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *OnboardingAWSAccounts + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r BatchTableSchemasTeamResponse) Status() string { +func (r GetAWSAccountsInParentResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34705,29 +26402,23 @@ func (r BatchTableSchemasTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r BatchTableSchemasTeamResponse) StatusCode() int { +func (r GetAWSAccountsInParentResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableListColumnsTeamResponse struct { +type NotifyOnboardingResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Items []TableColumnListItem `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableListColumnsTeamResponse) Status() string { +func (r NotifyOnboardingResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34735,29 +26426,22 @@ func (r TableListColumnsTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableListColumnsTeamResponse) StatusCode() int { +func (r NotifyOnboardingResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableColumnListValuesTeamResponse struct { +type GetOpenAPIJSONResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Items []TableColumnValueListItem `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *map[string]interface{} + JSON400 *BadRequest } // Status returns HTTPResponse.Status -func (r TableColumnListValuesTeamResponse) Status() string { +func (r GetOpenAPIJSONResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34765,30 +26449,32 @@ func (r TableColumnListValuesTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableColumnListValuesTeamResponse) StatusCode() int { +func (r GetOpenAPIJSONResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableListRowsTeamResponse struct { +type GetPlatformInfoResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Data TableData `json:"data"` - Metadata ListMetadata `json:"metadata"` + // PublicIPs List of public IPs for the platform + PublicIPs []string `json:"public_ips"` + + // TenantID The tenant ID of the current user + TenantID openapi_types.UUID `json:"tenant_id"` + + // Version Version of the platform + Version string `json:"version"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableListRowsTeamResponse) Status() string { +func (r GetPlatformInfoResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34796,30 +26482,26 @@ func (r TableListRowsTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableListRowsTeamResponse) StatusCode() int { +func (r GetPlatformInfoResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableRowByIdTeamResponse struct { +type ListPlatformVersionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Data TableRow `json:"data"` - Matches []TableRowFieldMatch `json:"matches"` + Items []PlatformVersion `json:"items"` + Metadata ListMetadata `json:"metadata"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableRowByIdTeamResponse) Status() string { +func (r ListPlatformVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34827,30 +26509,26 @@ func (r TableRowByIdTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableRowByIdTeamResponse) StatusCode() int { +func (r ListPlatformVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableListFiltersTeamResponse struct { +type ListPluginsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []Filter `json:"items"` + Items ListPlugins `json:"items"` Metadata ListMetadata `json:"metadata"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableListFiltersTeamResponse) Status() string { +func (r ListPluginsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34858,28 +26536,24 @@ func (r TableListFiltersTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableListFiltersTeamResponse) StatusCode() int { +func (r ListPluginsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableSaveFilterTeamResponse struct { +type GetPluginResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Filter - JSON201 *Filter - JSON400 *BadRequest + JSON200 *ListPlugin JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableSaveFilterTeamResponse) Status() string { +func (r GetPluginResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34887,29 +26561,29 @@ func (r TableSaveFilterTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableSaveFilterTeamResponse) StatusCode() int { +func (r GetPluginResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableListFilterTagsTeamResponse struct { +type ListPluginVersionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []FilterTag `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []PluginVersionList `json:"items"` + Metadata ListMetadata `json:"metadata"` } + JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableListFilterTagsTeamResponse) Status() string { +func (r ListPluginVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34917,28 +26591,25 @@ func (r TableListFilterTagsTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableListFilterTagsTeamResponse) StatusCode() int { +func (r ListPluginVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableListRelationsTeamResponse struct { +type GetPluginVersionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Data []TableRelation `json:"data"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError + JSON200 *PluginVersionDetails + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableListRelationsTeamResponse) Status() string { +func (r GetPluginVersionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34946,29 +26617,25 @@ func (r TableListRelationsTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableListRelationsTeamResponse) StatusCode() int { +func (r GetPluginVersionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TableSchemaTeamResponse struct { +type DownloadPluginAssetResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - DefaultColumns []string `json:"default_columns"` - Schema TableSchema `json:"schema"` - } - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *PluginAsset + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TableSchemaTeamResponse) Status() string { +func (r DownloadPluginAssetResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -34976,27 +26643,27 @@ func (r TableSchemaTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TableSchemaTeamResponse) StatusCode() int { +func (r DownloadPluginAssetResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetTeamUsageSummaryResponse struct { +type ListPluginVersionTablesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UsageSummary - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *struct { + Items []PluginTable `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetTeamUsageSummaryResponse) Status() string { +func (r ListPluginVersionTablesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35004,27 +26671,24 @@ func (r GetTeamUsageSummaryResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamUsageSummaryResponse) StatusCode() int { +func (r ListPluginVersionTablesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetGroupedTeamUsageSummaryResponse struct { +type GetPluginVersionTableResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UsageSummary - JSON400 *BadRequest + JSON200 *PluginTableDetails JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetGroupedTeamUsageSummaryResponse) Status() string { +func (r GetPluginVersionTableResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35032,29 +26696,27 @@ func (r GetGroupedTeamUsageSummaryResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetGroupedTeamUsageSummaryResponse) StatusCode() int { +func (r GetPluginVersionTableResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListUsersByTeamResponse struct { +type ListPoliciesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []User `json:"items"` + Items []Policy `json:"items"` Metadata ListMetadata `json:"metadata"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden - JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListUsersByTeamResponse) Status() string { +func (r ListPoliciesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35062,23 +26724,25 @@ func (r ListUsersByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListUsersByTeamResponse) StatusCode() int { +func (r ListPoliciesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UploadImageResponse struct { +type CreatePolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ImageURL - JSON400 *BadRequest + JSON201 *Policy + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UploadImageResponse) Status() string { +func (r CreatePolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35086,52 +26750,49 @@ func (r UploadImageResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UploadImageResponse) StatusCode() int { +func (r CreatePolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetCurrentUserResponse struct { +type GetPolicyMetricsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Email string `json:"email"` - EventIdentifiers *map[string]interface{} `json:"event_identifiers,omitempty"` - GroupIdentifier *string `json:"group_identifier,omitempty"` - - // ID ID of the User - ID openapi_types.UUID `json:"id"` - LastLoginAt *time.Time `json:"last_login_at,omitempty"` - - // Name The unique name for the user. - Name *UserName `json:"name,omitempty"` - - // ProfileImageURL Profile image URL of user - ProfileImageURL *string `json:"profile_image_url,omitempty"` - - // RegisteredTeamInternal Whether the team is internal or not - RegisteredTeamInternal *bool `json:"registered_team_internal,omitempty"` + JSON200 *PolicyMetrics + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError +} - // RegisteredTeamName The name of the team that the platform is registered with - RegisteredTeamName *string `json:"registered_team_name,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` +// Status returns HTTPResponse.Status +func (r GetPolicyMetricsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - JSON401 *struct { - Message string `json:"message"` + return http.StatusText(0) +} - // PasswordResetRequired Whether the user needs to reset their password - PasswordResetRequired *bool `json:"password_reset_required,omitempty"` - Status int `json:"status"` +// StatusCode returns HTTPResponse.StatusCode +func (r GetPolicyMetricsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - JSON403 *Forbidden - JSON500 *InternalError + return 0 +} + +type GetViolationsByDomainResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ViolationsByDomain + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetCurrentUserResponse) Status() string { +func (r GetViolationsByDomainResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35139,26 +26800,24 @@ func (r GetCurrentUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentUserResponse) StatusCode() int { +func (r GetViolationsByDomainResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateCurrentUserResponse struct { +type GetViolationsHistoryResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *User - JSON400 *BadRequest + JSON200 *ViolationsHistory JSON401 *RequiresAuthentication JSON403 *Forbidden - JSON405 *MethodNotAllowed JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateCurrentUserResponse) Status() string { +func (r GetViolationsHistoryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35166,24 +26825,25 @@ func (r UpdateCurrentUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateCurrentUserResponse) StatusCode() int { +func (r GetViolationsHistoryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type SendAnonymousEventResponse struct { +type DeletePolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound - JSON429 *TooManyRequests + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r SendAnonymousEventResponse) Status() string { +func (r DeletePolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35191,31 +26851,25 @@ func (r SendAnonymousEventResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SendAnonymousEventResponse) StatusCode() int { +func (r DeletePolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type AuthenticateLocalUserResponse struct { +type GetPolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - IDToken string `json:"id_token"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError + JSON200 *Policy + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r AuthenticateLocalUserResponse) Status() string { +func (r GetPolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35223,27 +26877,27 @@ func (r AuthenticateLocalUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthenticateLocalUserResponse) StatusCode() int { +func (r GetPolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ChangeLocalUserPasswordResponse struct { +type UpdatePolicyResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Policy JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON405 *MethodNotAllowed JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ChangeLocalUserPasswordResponse) Status() string { +func (r UpdatePolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35251,24 +26905,26 @@ func (r ChangeLocalUserPasswordResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ChangeLocalUserPasswordResponse) StatusCode() int { +func (r UpdatePolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateCustomerResponse struct { +type TogglePolicyResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON200 *Policy JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateCustomerResponse) Status() string { +func (r TogglePolicyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35276,24 +26932,28 @@ func (r UpdateCustomerResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateCustomerResponse) StatusCode() int { +func (r TogglePolicyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type SendUserEventResponse struct { +type GetPolicyViolationsResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError + JSON200 *struct { + Items []PolicyViolation `json:"items"` + Metadata *ListMetadata `json:"metadata,omitempty"` + } + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r SendUserEventResponse) Status() string { +func (r GetPolicyViolationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35301,26 +26961,28 @@ func (r SendUserEventResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SendUserEventResponse) StatusCode() int { +func (r GetPolicyViolationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListCurrentUserInvitationsResponse struct { +type GetPolicyViolationsHistoryResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []InvitationWithToken `json:"items"` + Items []PolicyEvaluationLog `json:"items"` Metadata ListMetadata `json:"metadata"` } + JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListCurrentUserInvitationsResponse) Status() string { +func (r GetPolicyViolationsHistoryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35328,24 +26990,26 @@ func (r ListCurrentUserInvitationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListCurrentUserInvitationsResponse) StatusCode() int { +func (r GetPolicyViolationsHistoryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetCurrentLocalUserResponse struct { +type ListPolicyGroupsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *LocalUserWithTeams - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError + JSON200 *struct { + Items []PolicyGroupWithCounts `json:"items"` + } + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetCurrentLocalUserResponse) Status() string { +func (r ListPolicyGroupsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35353,26 +27017,25 @@ func (r GetCurrentLocalUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentLocalUserResponse) StatusCode() int { +func (r ListPolicyGroupsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type LogoutUserResponse struct { +type CreatePolicyGroupResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON201 *PolicyGroup JSON401 *RequiresAuthentication JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r LogoutUserResponse) Status() string { +func (r CreatePolicyGroupResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35380,26 +27043,24 @@ func (r LogoutUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r LogoutUserResponse) StatusCode() int { +func (r CreatePolicyGroupResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type LoginUserResponse struct { +type DeletePolicyGroupResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON405 *MethodNotAllowed JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r LoginUserResponse) Status() string { +func (r DeletePolicyGroupResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35407,27 +27068,28 @@ func (r LoginUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r LoginUserResponse) StatusCode() int { +func (r DeletePolicyGroupResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetCurrentUserMembershipsResponse struct { +type ListPoliciesInGroupResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []MembershipWithTeam `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []Policy `json:"items"` + Metadata ListMetadata `json:"metadata"` } JSON401 *RequiresAuthentication JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetCurrentUserMembershipsResponse) Status() string { +func (r ListPoliciesInGroupResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35435,27 +27097,27 @@ func (r GetCurrentUserMembershipsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentUserMembershipsResponse) StatusCode() int { +func (r ListPoliciesInGroupResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ResetLocalUserPasswordResponse struct { +type UpdatePolicyGroupResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *PolicyGroup JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON405 *MethodNotAllowed JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ResetLocalUserPasswordResponse) Status() string { +func (r UpdatePolicyGroupResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35463,54 +27125,29 @@ func (r ResetLocalUserPasswordResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ResetLocalUserPasswordResponse) StatusCode() int { +func (r UpdatePolicyGroupResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateUserTokenResponse struct { +type ListAllQueriesResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *struct { - // CustomToken Token to exchange for refresh token - CustomToken string `json:"custom_token"` + JSON200 *struct { + Items []Query `json:"items"` + Metadata ListMetadata `json:"metadata"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateUserTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateUserTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UserTOTPDeleteResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON500 *InternalError + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UserTOTPDeleteResponse) Status() string { +func (r ListAllQueriesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35518,31 +27155,30 @@ func (r UserTOTPDeleteResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UserTOTPDeleteResponse) StatusCode() int { +func (r ListAllQueriesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UserTOTPSetupResponse struct { +type ExecuteAdHocQueryResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Secret string `json:"secret"` - Url string `json:"url"` + Data TableData `json:"data"` + Metadata ListMetadata `json:"metadata"` } JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON405 *MethodNotAllowed JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UserTOTPSetupResponse) Status() string { +func (r ExecuteAdHocQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35550,28 +27186,26 @@ func (r UserTOTPSetupResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UserTOTPSetupResponse) StatusCode() int { +func (r ExecuteAdHocQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UserTOTPVerifyResponse struct { +type SaveQueryResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON201 *QueryDetail JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON405 *MethodNotAllowed JSON422 *UnprocessableEntity - JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UserTOTPVerifyResponse) Status() string { +func (r SaveQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35579,26 +27213,29 @@ func (r UserTOTPVerifyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UserTOTPVerifyResponse) StatusCode() int { +func (r SaveQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteUserResponse struct { +type ListQueryTagsResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *struct { + Items []QueryTag `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteUserResponse) Status() string { +func (r ListQueryTagsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35606,27 +27243,25 @@ func (r DeleteUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserResponse) StatusCode() int { +func (r ListQueryTagsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateV2SyncDestinationTestConnectionResponse struct { +type DeleteSavedQueryResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncDestinationTestConnectionV2 - JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity - JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateV2SyncDestinationTestConnectionResponse) Status() string { +func (r DeleteSavedQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35634,28 +27269,26 @@ func (r CreateV2SyncDestinationTestConnectionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateV2SyncDestinationTestConnectionResponse) StatusCode() int { +func (r DeleteSavedQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetV2SyncDestinationsResponse struct { +type GetSavedQueryResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - Items []SyncDestinationV2 `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError + JSON200 *QueryDetail + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetV2SyncDestinationsResponse) Status() string { +func (r GetSavedQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35663,27 +27296,27 @@ func (r GetV2SyncDestinationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetV2SyncDestinationsResponse) StatusCode() int { +func (r GetSavedQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateV2SyncDestinationResponse struct { +type UpdateQueryResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncDestinationV2 - JSON201 *SyncDestinationV2 + JSON200 *QueryDetail JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateV2SyncDestinationResponse) Status() string { +func (r UpdateQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35691,24 +27324,25 @@ func (r CreateV2SyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateV2SyncDestinationResponse) StatusCode() int { +func (r UpdateQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteV2SyncDestinationResponse struct { +type DeleteAlertResponse struct { Body []byte HTTPResponse *http.Response JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteV2SyncDestinationResponse) Status() string { +func (r DeleteAlertResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35716,24 +27350,30 @@ func (r DeleteV2SyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteV2SyncDestinationResponse) StatusCode() int { +func (r DeleteAlertResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetV2SyncDestinationResponse struct { +type ExecuteSavedQueryResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncDestinationV2 - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError + JSON200 *struct { + Data TableData `json:"data"` + Metadata ListMetadata `json:"metadata"` + } + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetV2SyncDestinationResponse) Status() string { +func (r ExecuteSavedQueryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35741,26 +27381,30 @@ func (r GetV2SyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetV2SyncDestinationResponse) StatusCode() int { +func (r ExecuteSavedQueryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchV2SyncDestinationResponse struct { +type QueryListFiltersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncDestination - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *struct { + Items []Filter `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r PatchV2SyncDestinationResponse) Status() string { +func (r QueryListFiltersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35768,27 +27412,28 @@ func (r PatchV2SyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchV2SyncDestinationResponse) StatusCode() int { +func (r QueryListFiltersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateV2SyncIntegrationTestConnectionResponse struct { +type QuerySaveFilterResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncIntegrationTestConnectionV2 + JSON200 *Filter + JSON201 *Filter JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity - JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateV2SyncIntegrationTestConnectionResponse) Status() string { +func (r QuerySaveFilterResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35796,28 +27441,29 @@ func (r CreateV2SyncIntegrationTestConnectionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateV2SyncIntegrationTestConnectionResponse) StatusCode() int { +func (r QuerySaveFilterResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListV2SyncIntegrationsResponse struct { +type QueryListFilterTagsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - Items []SyncIntegrationExpandedV2 `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []FilterTag `json:"items"` + Metadata ListMetadata `json:"metadata"` } - JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListV2SyncIntegrationsResponse) Status() string { +func (r QueryListFilterTagsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35825,26 +27471,30 @@ func (r ListV2SyncIntegrationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListV2SyncIntegrationsResponse) StatusCode() int { +func (r QueryListFilterTagsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateV2SyncIntegrationResponse struct { +type ListAllRBACPermissionsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncIntegrationV2 - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + JSON200 *struct { + Items []RBACPermission `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateV2SyncIntegrationResponse) Status() string { +func (r ListAllRBACPermissionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35852,26 +27502,27 @@ func (r CreateV2SyncIntegrationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateV2SyncIntegrationResponse) StatusCode() int { +func (r ListAllRBACPermissionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteV2SyncIntegrationResponse struct { +type CreateRBACPermissionResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *RBACPermission JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteV2SyncIntegrationResponse) Status() string { +func (r CreateRBACPermissionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35879,25 +27530,25 @@ func (r DeleteV2SyncIntegrationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteV2SyncIntegrationResponse) StatusCode() int { +func (r CreateRBACPermissionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetV2SyncIntegrationResponse struct { +type DeleteRBACPermissionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncIntegrationExpandedV2 - JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetV2SyncIntegrationResponse) Status() string { +func (r DeleteRBACPermissionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -35905,5674 +27556,5864 @@ func (r GetV2SyncIntegrationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetV2SyncIntegrationResponse) StatusCode() int { +func (r DeleteRBACPermissionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateV2SyncIntegrationResponse struct { +type GetRBACPermissionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncIntegrationV2 + JSON200 *RBACPermission JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateV2SyncIntegrationResponse) Status() string { +func (r GetRBACPermissionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateV2SyncIntegrationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// IndexWithResponse request returning *IndexResponse -func (c *ClientWithResponses) IndexWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IndexResponse, error) { - rsp, err := c.Index(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseIndexResponse(rsp) -} - -// ListAuditLogsWithResponse request returning *ListAuditLogsResponse -func (c *ClientWithResponses) ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error) { - rsp, err := c.ListAuditLogs(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAuditLogsResponse(rsp) -} - -// GetAuditLogWithResponse request returning *GetAuditLogResponse -func (c *ClientWithResponses) GetAuditLogWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogResponse, error) { - rsp, err := c.GetAuditLog(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAuditLogResponse(rsp) -} - -// HealthCheckWithResponse request returning *HealthCheckResponse -func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) { - rsp, err := c.HealthCheck(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseHealthCheckResponse(rsp) -} - -// HealthCheckHeadWithResponse request returning *HealthCheckHeadResponse -func (c *ClientWithResponses) HealthCheckHeadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHeadResponse, error) { - rsp, err := c.HealthCheckHead(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseHealthCheckHeadResponse(rsp) -} - -// AssetViewGetStatusWithResponse request returning *AssetViewGetStatusResponse -func (c *ClientWithResponses) AssetViewGetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AssetViewGetStatusResponse, error) { - rsp, err := c.AssetViewGetStatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseAssetViewGetStatusResponse(rsp) -} - -// AssetViewTriggerWithResponse request returning *AssetViewTriggerResponse -func (c *ClientWithResponses) AssetViewTriggerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AssetViewTriggerResponse, error) { - rsp, err := c.AssetViewTrigger(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseAssetViewTriggerResponse(rsp) -} - -// AssetViewListLogsWithResponse request returning *AssetViewListLogsResponse -func (c *ClientWithResponses) AssetViewListLogsWithResponse(ctx context.Context, params *AssetViewListLogsParams, reqEditors ...RequestEditorFn) (*AssetViewListLogsResponse, error) { - rsp, err := c.AssetViewListLogs(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseAssetViewListLogsResponse(rsp) -} - -// ManageGetSAMLWithResponse request returning *ManageGetSAMLResponse -func (c *ClientWithResponses) ManageGetSAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManageGetSAMLResponse, error) { - rsp, err := c.ManageGetSAML(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageGetSAMLResponse(rsp) -} - -// ManageUpdateSAMLWithBodyWithResponse request with arbitrary body returning *ManageUpdateSAMLResponse -func (c *ClientWithResponses) ManageUpdateSAMLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageUpdateSAMLResponse, error) { - rsp, err := c.ManageUpdateSAMLWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageUpdateSAMLResponse(rsp) -} - -func (c *ClientWithResponses) ManageUpdateSAMLWithResponse(ctx context.Context, body ManageUpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageUpdateSAMLResponse, error) { - rsp, err := c.ManageUpdateSAML(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageUpdateSAMLResponse(rsp) -} - -// ManageGetPlatformRegistryWithResponse request returning *ManageGetPlatformRegistryResponse -func (c *ClientWithResponses) ManageGetPlatformRegistryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManageGetPlatformRegistryResponse, error) { - rsp, err := c.ManageGetPlatformRegistry(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageGetPlatformRegistryResponse(rsp) -} - -// ManageRegisterPlatformWithBodyWithResponse request with arbitrary body returning *ManageRegisterPlatformResponse -func (c *ClientWithResponses) ManageRegisterPlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformResponse, error) { - rsp, err := c.ManageRegisterPlatformWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageRegisterPlatformResponse(rsp) -} - -func (c *ClientWithResponses) ManageRegisterPlatformWithResponse(ctx context.Context, body ManageRegisterPlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformResponse, error) { - rsp, err := c.ManageRegisterPlatform(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageRegisterPlatformResponse(rsp) -} - -// ManageRegisterPlatformWithOfflineLicenseWithBodyWithResponse request with arbitrary body returning *ManageRegisterPlatformWithOfflineLicenseResponse -func (c *ClientWithResponses) ManageRegisterPlatformWithOfflineLicenseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformWithOfflineLicenseResponse, error) { - rsp, err := c.ManageRegisterPlatformWithOfflineLicenseWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageRegisterPlatformWithOfflineLicenseResponse(rsp) -} - -func (c *ClientWithResponses) ManageRegisterPlatformWithOfflineLicenseWithResponse(ctx context.Context, body ManageRegisterPlatformWithOfflineLicenseJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageRegisterPlatformWithOfflineLicenseResponse, error) { - rsp, err := c.ManageRegisterPlatformWithOfflineLicense(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageRegisterPlatformWithOfflineLicenseResponse(rsp) -} - -// GetSettingsWithResponse request returning *GetSettingsResponse -func (c *ClientWithResponses) GetSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) { - rsp, err := c.GetSettings(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSettingsResponse(rsp) -} - -// UpdateSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSettingsResponse -func (c *ClientWithResponses) UpdateSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { - rsp, err := c.UpdateSettingsWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSettingsResponse(rsp) -} - -func (c *ClientWithResponses) UpdateSettingsWithResponse(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { - rsp, err := c.UpdateSettings(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSettingsResponse(rsp) -} - -// ManageListAllTeamsWithResponse request returning *ManageListAllTeamsResponse -func (c *ClientWithResponses) ManageListAllTeamsWithResponse(ctx context.Context, params *ManageListAllTeamsParams, reqEditors ...RequestEditorFn) (*ManageListAllTeamsResponse, error) { - rsp, err := c.ManageListAllTeams(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageListAllTeamsResponse(rsp) -} - -// ManageDeleteTeamWithResponse request returning *ManageDeleteTeamResponse -func (c *ClientWithResponses) ManageDeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*ManageDeleteTeamResponse, error) { - rsp, err := c.ManageDeleteTeam(ctx, teamName, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageDeleteTeamResponse(rsp) -} - -// ManageGetTeamWithResponse request returning *ManageGetTeamResponse -func (c *ClientWithResponses) ManageGetTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*ManageGetTeamResponse, error) { - rsp, err := c.ManageGetTeam(ctx, teamName, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageGetTeamResponse(rsp) -} - -// ManageRemoveTeamMemberWithBodyWithResponse request with arbitrary body returning *ManageRemoveTeamMemberResponse -func (c *ClientWithResponses) ManageRemoveTeamMemberWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageRemoveTeamMemberResponse, error) { - rsp, err := c.ManageRemoveTeamMemberWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageRemoveTeamMemberResponse(rsp) -} - -func (c *ClientWithResponses) ManageRemoveTeamMemberWithResponse(ctx context.Context, teamName TeamName, body ManageRemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageRemoveTeamMemberResponse, error) { - rsp, err := c.ManageRemoveTeamMember(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageRemoveTeamMemberResponse(rsp) -} - -// ManageListTeamMembersWithResponse request returning *ManageListTeamMembersResponse -func (c *ClientWithResponses) ManageListTeamMembersWithResponse(ctx context.Context, teamName TeamName, params *ManageListTeamMembersParams, reqEditors ...RequestEditorFn) (*ManageListTeamMembersResponse, error) { - rsp, err := c.ManageListTeamMembers(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageListTeamMembersResponse(rsp) -} - -// ManageAddTeamMemberWithBodyWithResponse request with arbitrary body returning *ManageAddTeamMemberResponse -func (c *ClientWithResponses) ManageAddTeamMemberWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageAddTeamMemberResponse, error) { - rsp, err := c.ManageAddTeamMemberWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageAddTeamMemberResponse(rsp) -} - -func (c *ClientWithResponses) ManageAddTeamMemberWithResponse(ctx context.Context, teamName TeamName, body ManageAddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageAddTeamMemberResponse, error) { - rsp, err := c.ManageAddTeamMember(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageAddTeamMemberResponse(rsp) -} - -// ListLocalUsersWithResponse request returning *ListLocalUsersResponse -func (c *ClientWithResponses) ListLocalUsersWithResponse(ctx context.Context, params *ListLocalUsersParams, reqEditors ...RequestEditorFn) (*ListLocalUsersResponse, error) { - rsp, err := c.ListLocalUsers(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListLocalUsersResponse(rsp) -} - -// AddLocalUserWithBodyWithResponse request with arbitrary body returning *AddLocalUserResponse -func (c *ClientWithResponses) AddLocalUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLocalUserResponse, error) { - rsp, err := c.AddLocalUserWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddLocalUserResponse(rsp) -} - -func (c *ClientWithResponses) AddLocalUserWithResponse(ctx context.Context, body AddLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLocalUserResponse, error) { - rsp, err := c.AddLocalUser(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddLocalUserResponse(rsp) -} - -// DeleteLocalUserWithResponse request returning *DeleteLocalUserResponse -func (c *ClientWithResponses) DeleteLocalUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteLocalUserResponse, error) { - rsp, err := c.DeleteLocalUser(ctx, userID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteLocalUserResponse(rsp) -} - -// GetLocalUserWithResponse request returning *GetLocalUserResponse -func (c *ClientWithResponses) GetLocalUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*GetLocalUserResponse, error) { - rsp, err := c.GetLocalUser(ctx, userID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetLocalUserResponse(rsp) -} - -// UpdateLocalUserWithBodyWithResponse request with arbitrary body returning *UpdateLocalUserResponse -func (c *ClientWithResponses) UpdateLocalUserWithBodyWithResponse(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLocalUserResponse, error) { - rsp, err := c.UpdateLocalUserWithBody(ctx, userID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateLocalUserResponse(rsp) -} - -func (c *ClientWithResponses) UpdateLocalUserWithResponse(ctx context.Context, userID UserID, body UpdateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLocalUserResponse, error) { - rsp, err := c.UpdateLocalUser(ctx, userID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateLocalUserResponse(rsp) -} - -// CreateLocalUserResetTokenWithResponse request returning *CreateLocalUserResetTokenResponse -func (c *ClientWithResponses) CreateLocalUserResetTokenWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*CreateLocalUserResetTokenResponse, error) { - rsp, err := c.CreateLocalUserResetToken(ctx, userID, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateLocalUserResetTokenResponse(rsp) -} - -// ManageUserTOTPDeleteWithResponse request returning *ManageUserTOTPDeleteResponse -func (c *ClientWithResponses) ManageUserTOTPDeleteWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*ManageUserTOTPDeleteResponse, error) { - rsp, err := c.ManageUserTOTPDelete(ctx, userID, reqEditors...) - if err != nil { - return nil, err - } - return ParseManageUserTOTPDeleteResponse(rsp) -} - -// GetOpenAPIJSONWithResponse request returning *GetOpenAPIJSONResponse -func (c *ClientWithResponses) GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error) { - rsp, err := c.GetOpenAPIJSON(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetOpenAPIJSONResponse(rsp) -} - -// GetPlatformInfoWithResponse request returning *GetPlatformInfoResponse -func (c *ClientWithResponses) GetPlatformInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlatformInfoResponse, error) { - rsp, err := c.GetPlatformInfo(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPlatformInfoResponse(rsp) -} - -// ListPlatformVersionsWithResponse request returning *ListPlatformVersionsResponse -func (c *ClientWithResponses) ListPlatformVersionsWithResponse(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*ListPlatformVersionsResponse, error) { - rsp, err := c.ListPlatformVersions(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListPlatformVersionsResponse(rsp) -} - -// ListPluginsWithResponse request returning *ListPluginsResponse -func (c *ClientWithResponses) ListPluginsWithResponse(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*ListPluginsResponse, error) { - rsp, err := c.ListPlugins(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListPluginsResponse(rsp) -} - -// CreatePluginWithBodyWithResponse request with arbitrary body returning *CreatePluginResponse -func (c *ClientWithResponses) CreatePluginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) { - rsp, err := c.CreatePluginWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginResponse(rsp) -} - -func (c *ClientWithResponses) CreatePluginWithResponse(ctx context.Context, body CreatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) { - rsp, err := c.CreatePlugin(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginResponse(rsp) -} - -// DeletePluginByTeamAndPluginNameWithResponse request returning *DeletePluginByTeamAndPluginNameResponse -func (c *ClientWithResponses) DeletePluginByTeamAndPluginNameWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginByTeamAndPluginNameResponse, error) { - rsp, err := c.DeletePluginByTeamAndPluginName(ctx, teamName, pluginKind, pluginName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeletePluginByTeamAndPluginNameResponse(rsp) -} - -// GetPluginWithResponse request returning *GetPluginResponse -func (c *ClientWithResponses) GetPluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginResponse, error) { - rsp, err := c.GetPlugin(ctx, teamName, pluginKind, pluginName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPluginResponse(rsp) -} - -// UpdatePluginWithBodyWithResponse request with arbitrary body returning *UpdatePluginResponse -func (c *ClientWithResponses) UpdatePluginWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) { - rsp, err := c.UpdatePluginWithBody(ctx, teamName, pluginKind, pluginName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdatePluginResponse(rsp) -} - -func (c *ClientWithResponses) UpdatePluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body UpdatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) { - rsp, err := c.UpdatePlugin(ctx, teamName, pluginKind, pluginName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdatePluginResponse(rsp) -} - -// ListPluginVersionsWithResponse request returning *ListPluginVersionsResponse -func (c *ClientWithResponses) ListPluginVersionsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionsResponse, error) { - rsp, err := c.ListPluginVersions(ctx, teamName, pluginKind, pluginName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListPluginVersionsResponse(rsp) -} - -// GetPluginVersionWithResponse request returning *GetPluginVersionResponse -func (c *ClientWithResponses) GetPluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetPluginVersionResponse, error) { - rsp, err := c.GetPluginVersion(ctx, teamName, pluginKind, pluginName, versionName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPluginVersionResponse(rsp) -} - -// UpdatePluginVersionWithBodyWithResponse request with arbitrary body returning *UpdatePluginVersionResponse -func (c *ClientWithResponses) UpdatePluginVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePluginVersionResponse, error) { - rsp, err := c.UpdatePluginVersionWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdatePluginVersionResponse(rsp) -} - -func (c *ClientWithResponses) UpdatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UpdatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginVersionResponse, error) { - rsp, err := c.UpdatePluginVersion(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdatePluginVersionResponse(rsp) -} - -// CreatePluginVersionWithBodyWithResponse request with arbitrary body returning *CreatePluginVersionResponse -func (c *ClientWithResponses) CreatePluginVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginVersionResponse, error) { - rsp, err := c.CreatePluginVersionWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginVersionResponse(rsp) -} - -func (c *ClientWithResponses) CreatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionResponse, error) { - rsp, err := c.CreatePluginVersion(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginVersionResponse(rsp) -} - -// DownloadPluginAssetWithResponse request returning *DownloadPluginAssetResponse -func (c *ClientWithResponses) DownloadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetResponse, error) { - rsp, err := c.DownloadPluginAsset(ctx, teamName, pluginKind, pluginName, versionName, targetName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDownloadPluginAssetResponse(rsp) -} - -// UploadPluginAssetWithResponse request returning *UploadPluginAssetResponse -func (c *ClientWithResponses) UploadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, reqEditors ...RequestEditorFn) (*UploadPluginAssetResponse, error) { - rsp, err := c.UploadPluginAsset(ctx, teamName, pluginKind, pluginName, versionName, targetName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetRBACPermissionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUploadPluginAssetResponse(rsp) + return 0 } -// DeletePluginVersionDocsWithBodyWithResponse request with arbitrary body returning *DeletePluginVersionDocsResponse -func (c *ClientWithResponses) DeletePluginVersionDocsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePluginVersionDocsResponse, error) { - rsp, err := c.DeletePluginVersionDocsWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeletePluginVersionDocsResponse(rsp) +type UpdateRBACPermissionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *RBACPermission + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) DeletePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionDocsResponse, error) { - rsp, err := c.DeletePluginVersionDocs(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateRBACPermissionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeletePluginVersionDocsResponse(rsp) + return http.StatusText(0) } -// ListPluginVersionDocsWithResponse request returning *ListPluginVersionDocsResponse -func (c *ClientWithResponses) ListPluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionDocsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionDocsResponse, error) { - rsp, err := c.ListPluginVersionDocs(ctx, teamName, pluginKind, pluginName, versionName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateRBACPermissionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListPluginVersionDocsResponse(rsp) + return 0 } -// ReplacePluginVersionDocsWithBodyWithResponse request with arbitrary body returning *ReplacePluginVersionDocsResponse -func (c *ClientWithResponses) ReplacePluginVersionDocsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplacePluginVersionDocsResponse, error) { - rsp, err := c.ReplacePluginVersionDocsWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err +type ListAllRBACRolesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []Role `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseReplacePluginVersionDocsResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) ReplacePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body ReplacePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplacePluginVersionDocsResponse, error) { - rsp, err := c.ReplacePluginVersionDocs(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAllRBACRolesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseReplacePluginVersionDocsResponse(rsp) + return http.StatusText(0) } -// CreatePluginVersionDocsWithBodyWithResponse request with arbitrary body returning *CreatePluginVersionDocsResponse -func (c *ClientWithResponses) CreatePluginVersionDocsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginVersionDocsResponse, error) { - rsp, err := c.CreatePluginVersionDocsWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListAllRBACRolesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreatePluginVersionDocsResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreatePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionDocsResponse, error) { - rsp, err := c.CreatePluginVersionDocs(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginVersionDocsResponse(rsp) +type CreateRBACRoleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Role + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// DeletePluginVersionTablesWithBodyWithResponse request with arbitrary body returning *DeletePluginVersionTablesResponse -func (c *ClientWithResponses) DeletePluginVersionTablesWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePluginVersionTablesResponse, error) { - rsp, err := c.DeletePluginVersionTablesWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateRBACRoleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeletePluginVersionTablesResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) DeletePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionTablesResponse, error) { - rsp, err := c.DeletePluginVersionTables(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateRBACRoleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeletePluginVersionTablesResponse(rsp) + return 0 } -// ListPluginVersionTablesWithResponse request returning *ListPluginVersionTablesResponse -func (c *ClientWithResponses) ListPluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*ListPluginVersionTablesResponse, error) { - rsp, err := c.ListPluginVersionTables(ctx, teamName, pluginKind, pluginName, versionName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListPluginVersionTablesResponse(rsp) +type DeleteRBACRoleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreatePluginVersionTablesWithBodyWithResponse request with arbitrary body returning *CreatePluginVersionTablesResponse -func (c *ClientWithResponses) CreatePluginVersionTablesWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginVersionTablesResponse, error) { - rsp, err := c.CreatePluginVersionTablesWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteRBACRoleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreatePluginVersionTablesResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreatePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionTablesResponse, error) { - rsp, err := c.CreatePluginVersionTables(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteRBACRoleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreatePluginVersionTablesResponse(rsp) + return 0 } -// GetPluginVersionTableWithResponse request returning *GetPluginVersionTableResponse -func (c *ClientWithResponses) GetPluginVersionTableWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*GetPluginVersionTableResponse, error) { - rsp, err := c.GetPluginVersionTable(ctx, teamName, pluginKind, pluginName, versionName, tableName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPluginVersionTableResponse(rsp) +type GetRBACRoleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Role + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// RemovePluginUIAssetsWithResponse request returning *RemovePluginUIAssetsResponse -func (c *ClientWithResponses) RemovePluginUIAssetsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*RemovePluginUIAssetsResponse, error) { - rsp, err := c.RemovePluginUIAssets(ctx, teamName, pluginKind, pluginName, versionName, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetRBACRoleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseRemovePluginUIAssetsResponse(rsp) + return http.StatusText(0) } -// UploadPluginUIAssetsWithBodyWithResponse request with arbitrary body returning *UploadPluginUIAssetsResponse -func (c *ClientWithResponses) UploadPluginUIAssetsWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPluginUIAssetsResponse, error) { - rsp, err := c.UploadPluginUIAssetsWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetRBACRoleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUploadPluginUIAssetsResponse(rsp) + return 0 } -func (c *ClientWithResponses) UploadPluginUIAssetsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadPluginUIAssetsResponse, error) { - rsp, err := c.UploadPluginUIAssets(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUploadPluginUIAssetsResponse(rsp) +type UpdateRBACRoleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Role + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// FinalizePluginUIAssetUploadWithBodyWithResponse request with arbitrary body returning *FinalizePluginUIAssetUploadResponse -func (c *ClientWithResponses) FinalizePluginUIAssetUploadWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizePluginUIAssetUploadResponse, error) { - rsp, err := c.FinalizePluginUIAssetUploadWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateRBACRoleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseFinalizePluginUIAssetUploadResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) FinalizePluginUIAssetUploadWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*FinalizePluginUIAssetUploadResponse, error) { - rsp, err := c.FinalizePluginUIAssetUpload(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateRBACRoleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseFinalizePluginUIAssetUploadResponse(rsp) + return 0 } -// AuthRegistryRequestWithResponse request returning *AuthRegistryRequestResponse -func (c *ClientWithResponses) AuthRegistryRequestWithResponse(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*AuthRegistryRequestResponse, error) { - rsp, err := c.AuthRegistryRequest(ctx, params, reqEditors...) - if err != nil { - return nil, err +type ListReportsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Metadata ListMetadata `json:"metadata"` + Reports []Report `json:"reports"` } - return ParseAuthRegistryRequestResponse(rsp) + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound } -// ListTeamsWithResponse request returning *ListTeamsResponse -func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error) { - rsp, err := c.ListTeams(ctx, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListReportsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListTeamsResponse(rsp) + return http.StatusText(0) } -// CreateTeamWithBodyWithResponse request with arbitrary body returning *CreateTeamResponse -func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) { - rsp, err := c.CreateTeamWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListReportsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateTeamResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) { - rsp, err := c.CreateTeam(ctx, body, reqEditors...) - if err != nil { - return nil, err +type CreateReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *struct { + Data Report `json:"data"` } - return ParseCreateTeamResponse(rsp) + JSON400 *BadRequest + JSON403 *Forbidden } -// DeleteTeamWithResponse request returning *DeleteTeamResponse -func (c *ClientWithResponses) DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error) { - rsp, err := c.DeleteTeam(ctx, teamName, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteTeamResponse(rsp) + return http.StatusText(0) } -// GetTeamByNameWithResponse request returning *GetTeamByNameResponse -func (c *ClientWithResponses) GetTeamByNameWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamByNameResponse, error) { - rsp, err := c.GetTeamByName(ctx, teamName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateReportResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetTeamByNameResponse(rsp) + return 0 } -// UpdateTeamWithBodyWithResponse request with arbitrary body returning *UpdateTeamResponse -func (c *ClientWithResponses) UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) { - rsp, err := c.UpdateTeamWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +type ListReportTemplatesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Metadata ListMetadata `json:"metadata"` + Templates []ReportTemplate `json:"templates"` } - return ParseUpdateTeamResponse(rsp) + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound } -func (c *ClientWithResponses) UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) { - rsp, err := c.UpdateTeam(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListReportTemplatesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateTeamResponse(rsp) + return http.StatusText(0) } -// ListAllAlertsWithResponse request returning *ListAllAlertsResponse -func (c *ClientWithResponses) ListAllAlertsWithResponse(ctx context.Context, teamName TeamName, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*ListAllAlertsResponse, error) { - rsp, err := c.ListAllAlerts(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListReportTemplatesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListAllAlertsResponse(rsp) + return 0 } -// TestUnsavedAlertWithBodyWithResponse request with arbitrary body returning *TestUnsavedAlertResponse -func (c *ClientWithResponses) TestUnsavedAlertWithBodyWithResponse(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) { - rsp, err := c.TestUnsavedAlertWithBody(ctx, teamName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err +type CreateReportTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *struct { + Data ReportTemplate `json:"data"` } - return ParseTestUnsavedAlertResponse(rsp) + JSON400 *BadRequest + JSON403 *Forbidden } -func (c *ClientWithResponses) TestUnsavedAlertWithResponse(ctx context.Context, teamName TeamName, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) { - rsp, err := c.TestUnsavedAlert(ctx, teamName, params, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateReportTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseTestUnsavedAlertResponse(rsp) + return http.StatusText(0) } -// ListTeamAPIKeysWithResponse request returning *ListTeamAPIKeysResponse -func (c *ClientWithResponses) ListTeamAPIKeysWithResponse(ctx context.Context, teamName TeamName, params *ListTeamAPIKeysParams, reqEditors ...RequestEditorFn) (*ListTeamAPIKeysResponse, error) { - rsp, err := c.ListTeamAPIKeys(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateReportTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListTeamAPIKeysResponse(rsp) + return 0 } -// CreateTeamAPIKeyWithBodyWithResponse request with arbitrary body returning *CreateTeamAPIKeyResponse -func (c *ClientWithResponses) CreateTeamAPIKeyWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) { - rsp, err := c.CreateTeamAPIKeyWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateTeamAPIKeyResponse(rsp) +type DeleteReportTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON403 *Forbidden + JSON404 *NotFound } -func (c *ClientWithResponses) CreateTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) { - rsp, err := c.CreateTeamAPIKey(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteReportTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateTeamAPIKeyResponse(rsp) + return http.StatusText(0) } -// DeleteTeamAPIKeyWithResponse request returning *DeleteTeamAPIKeyResponse -func (c *ClientWithResponses) DeleteTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*DeleteTeamAPIKeyResponse, error) { - rsp, err := c.DeleteTeamAPIKey(ctx, teamName, apiKeyID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReportTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteTeamAPIKeyResponse(rsp) + return 0 } -// ListConnectorsWithResponse request returning *ListConnectorsResponse -func (c *ClientWithResponses) ListConnectorsWithResponse(ctx context.Context, teamName TeamName, params *ListConnectorsParams, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error) { - rsp, err := c.ListConnectors(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +type GetReportTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data ReportTemplate `json:"data"` } - return ParseListConnectorsResponse(rsp) + JSON403 *Forbidden + JSON404 *NotFound } -// CreateConnectorWithBodyWithResponse request with arbitrary body returning *CreateConnectorResponse -func (c *ClientWithResponses) CreateConnectorWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectorResponse, error) { - rsp, err := c.CreateConnectorWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetReportTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateConnectorResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateConnectorWithResponse(ctx context.Context, teamName TeamName, body CreateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectorResponse, error) { - rsp, err := c.CreateConnector(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetReportTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateConnectorResponse(rsp) + return 0 } -// GetConnectorWithResponse request returning *GetConnectorResponse -func (c *ClientWithResponses) GetConnectorWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetConnectorResponse, error) { - rsp, err := c.GetConnector(ctx, teamName, connectorID, reqEditors...) - if err != nil { - return nil, err +type UpdateReportTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data ReportTemplate `json:"data"` } - return ParseGetConnectorResponse(rsp) + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound } -// UpdateConnectorWithBodyWithResponse request with arbitrary body returning *UpdateConnectorResponse -func (c *ClientWithResponses) UpdateConnectorWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectorResponse, error) { - rsp, err := c.UpdateConnectorWithBody(ctx, teamName, connectorID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateReportTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateConnectorResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateConnectorWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body UpdateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectorResponse, error) { - rsp, err := c.UpdateConnector(ctx, teamName, connectorID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateReportTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateConnectorResponse(rsp) + return 0 } -// RevokeConnectorWithResponse request returning *RevokeConnectorResponse -func (c *ClientWithResponses) RevokeConnectorWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*RevokeConnectorResponse, error) { - rsp, err := c.RevokeConnector(ctx, teamName, connectorID, reqEditors...) - if err != nil { - return nil, err - } - return ParseRevokeConnectorResponse(rsp) +type DeleteReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON403 *Forbidden + JSON404 *NotFound } -// GetConnectorAuthStatusAWSWithResponse request returning *GetConnectorAuthStatusAWSResponse -func (c *ClientWithResponses) GetConnectorAuthStatusAWSWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetConnectorAuthStatusAWSResponse, error) { - rsp, err := c.GetConnectorAuthStatusAWS(ctx, teamName, connectorID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetConnectorAuthStatusAWSResponse(rsp) + return http.StatusText(0) } -// AuthenticateConnectorFinishAWSWithBodyWithResponse request with arbitrary body returning *AuthenticateConnectorFinishAWSResponse -func (c *ClientWithResponses) AuthenticateConnectorFinishAWSWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishAWSResponse, error) { - rsp, err := c.AuthenticateConnectorFinishAWSWithBody(ctx, teamName, connectorID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReportResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseAuthenticateConnectorFinishAWSResponse(rsp) + return 0 } -func (c *ClientWithResponses) AuthenticateConnectorFinishAWSWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishAWSResponse, error) { - rsp, err := c.AuthenticateConnectorFinishAWS(ctx, teamName, connectorID, body, reqEditors...) - if err != nil { - return nil, err +type GetReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data Report `json:"data"` } - return ParseAuthenticateConnectorFinishAWSResponse(rsp) + JSON403 *Forbidden + JSON404 *NotFound } -// AuthenticateConnectorAWSWithBodyWithResponse request with arbitrary body returning *AuthenticateConnectorAWSResponse -func (c *ClientWithResponses) AuthenticateConnectorAWSWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorAWSResponse, error) { - rsp, err := c.AuthenticateConnectorAWSWithBody(ctx, teamName, connectorID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseAuthenticateConnectorAWSResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) AuthenticateConnectorAWSWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorAWSResponse, error) { - rsp, err := c.AuthenticateConnectorAWS(ctx, teamName, connectorID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetReportResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseAuthenticateConnectorAWSResponse(rsp) + return 0 } -// GetConnectorAuthStatusGCPWithResponse request returning *GetConnectorAuthStatusGCPResponse -func (c *ClientWithResponses) GetConnectorAuthStatusGCPWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetConnectorAuthStatusGCPResponse, error) { - rsp, err := c.GetConnectorAuthStatusGCP(ctx, teamName, connectorID, reqEditors...) - if err != nil { - return nil, err +type UpdateReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data Report `json:"data"` } - return ParseGetConnectorAuthStatusGCPResponse(rsp) + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound } -// AuthenticateConnectorGCPWithBodyWithResponse request with arbitrary body returning *AuthenticateConnectorGCPResponse -func (c *ClientWithResponses) AuthenticateConnectorGCPWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorGCPResponse, error) { - rsp, err := c.AuthenticateConnectorGCPWithBody(ctx, teamName, connectorID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseAuthenticateConnectorGCPResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) AuthenticateConnectorGCPWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorGCPJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorGCPResponse, error) { - rsp, err := c.AuthenticateConnectorGCP(ctx, teamName, connectorID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateReportResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseAuthenticateConnectorGCPResponse(rsp) + return 0 } -// AuthenticateConnectorFinishGCPWithResponse request returning *AuthenticateConnectorFinishGCPResponse -func (c *ClientWithResponses) AuthenticateConnectorFinishGCPWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishGCPResponse, error) { - rsp, err := c.AuthenticateConnectorFinishGCP(ctx, teamName, connectorID, reqEditors...) - if err != nil { - return nil, err - } - return ParseAuthenticateConnectorFinishGCPResponse(rsp) +type GetSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PlatformSettings + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// AuthenticateConnectorFinishOAuthWithBodyWithResponse request with arbitrary body returning *AuthenticateConnectorFinishOAuthResponse -func (c *ClientWithResponses) AuthenticateConnectorFinishOAuthWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishOAuthResponse, error) { - rsp, err := c.AuthenticateConnectorFinishOAuthWithBody(ctx, teamName, connectorID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseAuthenticateConnectorFinishOAuthResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) AuthenticateConnectorFinishOAuthWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorFinishOAuthResponse, error) { - rsp, err := c.AuthenticateConnectorFinishOAuth(ctx, teamName, connectorID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseAuthenticateConnectorFinishOAuthResponse(rsp) + return 0 } -// AuthenticateConnectorOAuthWithBodyWithResponse request with arbitrary body returning *AuthenticateConnectorOAuthResponse -func (c *ClientWithResponses) AuthenticateConnectorOAuthWithBodyWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateConnectorOAuthResponse, error) { - rsp, err := c.AuthenticateConnectorOAuthWithBody(ctx, teamName, connectorID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAuthenticateConnectorOAuthResponse(rsp) +type UpdateSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PlatformSettings + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) AuthenticateConnectorOAuthWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorOAuthResponse, error) { - rsp, err := c.AuthenticateConnectorOAuth(ctx, teamName, connectorID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseAuthenticateConnectorOAuthResponse(rsp) + return http.StatusText(0) } -// CreateConversationWithBodyWithResponse request with arbitrary body returning *CreateConversationResponse -func (c *ClientWithResponses) CreateConversationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) { - rsp, err := c.CreateConversationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateConversationResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateConversationWithResponse(ctx context.Context, teamName TeamName, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) { - rsp, err := c.CreateConversation(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateConversationResponse(rsp) +type GetDataSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PlatformDataSettings + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetConversationWithResponse request returning *GetConversationResponse -func (c *ClientWithResponses) GetConversationWithResponse(ctx context.Context, teamName TeamName, conversationID ConversationID, reqEditors ...RequestEditorFn) (*GetConversationResponse, error) { - rsp, err := c.GetConversation(ctx, teamName, conversationID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetDataSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetConversationResponse(rsp) + return http.StatusText(0) } -// SendMessageWithBodyWithResponse request with arbitrary body returning *SendMessageResponse -func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, teamName TeamName, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) { - rsp, err := c.SendMessageWithBody(ctx, teamName, conversationID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetDataSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseSendMessageResponse(rsp) + return 0 } -func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, teamName TeamName, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) { - rsp, err := c.SendMessage(ctx, teamName, conversationID, body, reqEditors...) - if err != nil { - return nil, err +type UpdateDataSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PlatformDataSettings + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateDataSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseSendMessageResponse(rsp) + return http.StatusText(0) } -// ListAllCustomColumnsWithResponse request returning *ListAllCustomColumnsResponse -func (c *ClientWithResponses) ListAllCustomColumnsWithResponse(ctx context.Context, teamName TeamName, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*ListAllCustomColumnsResponse, error) { - rsp, err := c.ListAllCustomColumns(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateDataSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListAllCustomColumnsResponse(rsp) + return 0 } -// SaveCustomColumnWithBodyWithResponse request with arbitrary body returning *SaveCustomColumnResponse -func (c *ClientWithResponses) SaveCustomColumnWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) { - rsp, err := c.SaveCustomColumnWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSaveCustomColumnResponse(rsp) +type CreateSlackConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SlackConnection + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) SaveCustomColumnWithResponse(ctx context.Context, teamName TeamName, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) { - rsp, err := c.SaveCustomColumn(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSlackConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseSaveCustomColumnResponse(rsp) + return http.StatusText(0) } -// DeleteCustomColumnWithResponse request returning *DeleteCustomColumnResponse -func (c *ClientWithResponses) DeleteCustomColumnWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*DeleteCustomColumnResponse, error) { - rsp, err := c.DeleteCustomColumn(ctx, teamName, customColumnID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSlackConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteCustomColumnResponse(rsp) + return 0 } -// GetCustomColumnWithResponse request returning *GetCustomColumnResponse -func (c *ClientWithResponses) GetCustomColumnWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*GetCustomColumnResponse, error) { - rsp, err := c.GetCustomColumn(ctx, teamName, customColumnID, reqEditors...) - if err != nil { - return nil, err +type ListSlackChannelsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SlackChannel `json:"items"` } - return ParseGetCustomColumnResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// UpdateCustomColumnWithBodyWithResponse request with arbitrary body returning *UpdateCustomColumnResponse -func (c *ClientWithResponses) UpdateCustomColumnWithBodyWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) { - rsp, err := c.UpdateCustomColumnWithBody(ctx, teamName, customColumnID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSlackChannelsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateCustomColumnResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateCustomColumnWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) { - rsp, err := c.UpdateCustomColumn(ctx, teamName, customColumnID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSlackChannelsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateCustomColumnResponse(rsp) + return 0 } -// PutCustomColumnDataWithBodyWithResponse request with arbitrary body returning *PutCustomColumnDataResponse -func (c *ClientWithResponses) PutCustomColumnDataWithBodyWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutCustomColumnDataResponse, error) { - rsp, err := c.PutCustomColumnDataWithBody(ctx, teamName, customColumnID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutCustomColumnDataResponse(rsp) +type CreateSyncDestinationTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SyncDestinationTestConnection + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + JSON500 *InternalError } -func (c *ClientWithResponses) PutCustomColumnDataWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnDataJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCustomColumnDataResponse, error) { - rsp, err := c.PutCustomColumnData(ctx, teamName, customColumnID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSyncDestinationTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePutCustomColumnDataResponse(rsp) + return http.StatusText(0) } -// PutCustomColumnValuesWithBodyWithResponse request with arbitrary body returning *PutCustomColumnValuesResponse -func (c *ClientWithResponses) PutCustomColumnValuesWithBodyWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutCustomColumnValuesResponse, error) { - rsp, err := c.PutCustomColumnValuesWithBody(ctx, teamName, customColumnID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSyncDestinationTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePutCustomColumnValuesResponse(rsp) + return 0 } -func (c *ClientWithResponses) PutCustomColumnValuesWithResponse(ctx context.Context, teamName TeamName, customColumnID CustomColumnID, body PutCustomColumnValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCustomColumnValuesResponse, error) { - rsp, err := c.PutCustomColumnValues(ctx, teamName, customColumnID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutCustomColumnValuesResponse(rsp) +type GetSyncDestinationTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestinationTestConnection + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } -// ListFiltersTeamWithResponse request returning *ListFiltersTeamResponse -func (c *ClientWithResponses) ListFiltersTeamWithResponse(ctx context.Context, teamName TeamName, params *ListFiltersTeamParams, reqEditors ...RequestEditorFn) (*ListFiltersTeamResponse, error) { - rsp, err := c.ListFiltersTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncDestinationTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListFiltersTeamResponse(rsp) + return http.StatusText(0) } -// ListFilterTagsTeamWithResponse request returning *ListFilterTagsTeamResponse -func (c *ClientWithResponses) ListFilterTagsTeamWithResponse(ctx context.Context, teamName TeamName, params *ListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*ListFilterTagsTeamResponse, error) { - rsp, err := c.ListFilterTagsTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncDestinationTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListFilterTagsTeamResponse(rsp) + return 0 } -// DeleteFilterTeamWithResponse request returning *DeleteFilterTeamResponse -func (c *ClientWithResponses) DeleteFilterTeamWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*DeleteFilterTeamResponse, error) { - rsp, err := c.DeleteFilterTeam(ctx, teamName, filterID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteFilterTeamResponse(rsp) +type UpdateSyncTestConnectionForSyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestinationTestConnection + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetFilterByIDTeamWithResponse request returning *GetFilterByIDTeamResponse -func (c *ClientWithResponses) GetFilterByIDTeamWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, reqEditors ...RequestEditorFn) (*GetFilterByIDTeamResponse, error) { - rsp, err := c.GetFilterByIDTeam(ctx, teamName, filterID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncTestConnectionForSyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetFilterByIDTeamResponse(rsp) + return http.StatusText(0) } -// UpdateFilterTeamWithBodyWithResponse request with arbitrary body returning *UpdateFilterTeamResponse -func (c *ClientWithResponses) UpdateFilterTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilterTeamResponse, error) { - rsp, err := c.UpdateFilterTeamWithBody(ctx, teamName, filterID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncTestConnectionForSyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateFilterTeamResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateFilterTeamWithResponse(ctx context.Context, teamName TeamName, filterID FilterID, body UpdateFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilterTeamResponse, error) { - rsp, err := c.UpdateFilterTeam(ctx, teamName, filterID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateFilterTeamResponse(rsp) +type GetSyncDestinationTestConnectionLogsLiveResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateTeamImagesWithBodyWithResponse request with arbitrary body returning *CreateTeamImagesResponse -func (c *ClientWithResponses) CreateTeamImagesWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) { - rsp, err := c.CreateTeamImagesWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncDestinationTestConnectionLogsLiveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateTeamImagesResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateTeamImagesWithResponse(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) { - rsp, err := c.CreateTeamImages(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncDestinationTestConnectionLogsLiveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateTeamImagesResponse(rsp) + return 0 } -// DeleteTeamInvitationWithBodyWithResponse request with arbitrary body returning *DeleteTeamInvitationResponse -func (c *ClientWithResponses) DeleteTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) { - rsp, err := c.DeleteTeamInvitationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +type GetSyncDestinationTestConnectionLogsQueryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data TableData `json:"data"` + Metadata ListMetadata `json:"metadata"` } - return ParseDeleteTeamInvitationResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) DeleteTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) { - rsp, err := c.DeleteTeamInvitation(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncDestinationTestConnectionLogsQueryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteTeamInvitationResponse(rsp) + return http.StatusText(0) } -// ListTeamInvitationsWithResponse request returning *ListTeamInvitationsResponse -func (c *ClientWithResponses) ListTeamInvitationsWithResponse(ctx context.Context, teamName TeamName, params *ListTeamInvitationsParams, reqEditors ...RequestEditorFn) (*ListTeamInvitationsResponse, error) { - rsp, err := c.ListTeamInvitations(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncDestinationTestConnectionLogsQueryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListTeamInvitationsResponse(rsp) + return 0 } -// AcceptTeamInvitationWithBodyWithResponse request with arbitrary body returning *AcceptTeamInvitationResponse -func (c *ClientWithResponses) AcceptTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) { - rsp, err := c.AcceptTeamInvitationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAcceptTeamInvitationResponse(rsp) +type PromoteSyncDestinationTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestination + JSON201 *SyncDestination + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) AcceptTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) { - rsp, err := c.AcceptTeamInvitation(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r PromoteSyncDestinationTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseAcceptTeamInvitationResponse(rsp) + return http.StatusText(0) } -// RemoveTeamMembershipWithBodyWithResponse request with arbitrary body returning *RemoveTeamMembershipResponse -func (c *ClientWithResponses) RemoveTeamMembershipWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTeamMembershipResponse, error) { - rsp, err := c.RemoveTeamMembershipWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r PromoteSyncDestinationTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseRemoveTeamMembershipResponse(rsp) + return 0 } -func (c *ClientWithResponses) RemoveTeamMembershipWithResponse(ctx context.Context, teamName TeamName, body RemoveTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTeamMembershipResponse, error) { - rsp, err := c.RemoveTeamMembership(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +type ListSyncDestinationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncDestination `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseRemoveTeamMembershipResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// GetTeamMembershipsWithResponse request returning *GetTeamMembershipsResponse -func (c *ClientWithResponses) GetTeamMembershipsWithResponse(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*GetTeamMembershipsResponse, error) { - rsp, err := c.GetTeamMemberships(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncDestinationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetTeamMembershipsResponse(rsp) + return http.StatusText(0) } -// DeleteTeamMembershipWithResponse request returning *DeleteTeamMembershipResponse -func (c *ClientWithResponses) DeleteTeamMembershipWithResponse(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*DeleteTeamMembershipResponse, error) { - rsp, err := c.DeleteTeamMembership(ctx, teamName, email, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncDestinationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteTeamMembershipResponse(rsp) + return 0 } -// DeleteNotificationDestinationWithResponse request returning *DeleteNotificationDestinationResponse -func (c *ClientWithResponses) DeleteNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*DeleteNotificationDestinationResponse, error) { - rsp, err := c.DeleteNotificationDestination(ctx, teamName, notificationDestinationID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteNotificationDestinationResponse(rsp) +type DeleteSyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetNotificationDestinationWithResponse request returning *GetNotificationDestinationResponse -func (c *ClientWithResponses) GetNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*GetNotificationDestinationResponse, error) { - rsp, err := c.GetNotificationDestination(ctx, teamName, notificationDestinationID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteSyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetNotificationDestinationResponse(rsp) + return http.StatusText(0) } -// UpdateNotificationDestinationWithBodyWithResponse request with arbitrary body returning *UpdateNotificationDestinationResponse -func (c *ClientWithResponses) UpdateNotificationDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) { - rsp, err := c.UpdateNotificationDestinationWithBody(ctx, teamName, notificationDestinationID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateNotificationDestinationResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) { - rsp, err := c.UpdateNotificationDestination(ctx, teamName, notificationDestinationID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateNotificationDestinationResponse(rsp) +type GetSyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestination + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// GetNotificationDestinationAlertsWithResponse request returning *GetNotificationDestinationAlertsResponse -func (c *ClientWithResponses) GetNotificationDestinationAlertsWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*GetNotificationDestinationAlertsResponse, error) { - rsp, err := c.GetNotificationDestinationAlerts(ctx, teamName, notificationDestinationID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetNotificationDestinationAlertsResponse(rsp) + return http.StatusText(0) } -// TestNotificationDestinationWithResponse request returning *TestNotificationDestinationResponse -func (c *ClientWithResponses) TestNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, notificationDestinationID NotificationDestinationID, reqEditors ...RequestEditorFn) (*TestNotificationDestinationResponse, error) { - rsp, err := c.TestNotificationDestination(ctx, teamName, notificationDestinationID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseTestNotificationDestinationResponse(rsp) + return 0 } -// ListAllNotificationDestinationsWithResponse request returning *ListAllNotificationDestinationsResponse -func (c *ClientWithResponses) ListAllNotificationDestinationsWithResponse(ctx context.Context, teamName TeamName, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*ListAllNotificationDestinationsResponse, error) { - rsp, err := c.ListAllNotificationDestinations(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAllNotificationDestinationsResponse(rsp) +type UpdateSyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestination + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateNotificationDestinationWithBodyWithResponse request with arbitrary body returning *CreateNotificationDestinationResponse -func (c *ClientWithResponses) CreateNotificationDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) { - rsp, err := c.CreateNotificationDestinationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateNotificationDestinationResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) { - rsp, err := c.CreateNotificationDestination(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateNotificationDestinationResponse(rsp) + return 0 } -// TestUnsavedNotificationDestinationWithBodyWithResponse request with arbitrary body returning *TestUnsavedNotificationDestinationResponse -func (c *ClientWithResponses) TestUnsavedNotificationDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) { - rsp, err := c.TestUnsavedNotificationDestinationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +type ListSyncDestinationSyncsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []ListSync `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseTestUnsavedNotificationDestinationResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -func (c *ClientWithResponses) TestUnsavedNotificationDestinationWithResponse(ctx context.Context, teamName TeamName, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) { - rsp, err := c.TestUnsavedNotificationDestination(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncDestinationSyncsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseTestUnsavedNotificationDestinationResponse(rsp) + return http.StatusText(0) } -// CreateAWSOnboardingWithBodyWithResponse request with arbitrary body returning *CreateAWSOnboardingResponse -func (c *ClientWithResponses) CreateAWSOnboardingWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) { - rsp, err := c.CreateAWSOnboardingWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncDestinationSyncsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateAWSOnboardingResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateAWSOnboardingWithResponse(ctx context.Context, teamName TeamName, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) { - rsp, err := c.CreateAWSOnboarding(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAWSOnboardingResponse(rsp) +type GetTestConnectionForSyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncTestConnection + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// GetAWSOnboardingWithResponse request returning *GetAWSOnboardingResponse -func (c *ClientWithResponses) GetAWSOnboardingWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSOnboardingResponse, error) { - rsp, err := c.GetAWSOnboarding(ctx, teamName, onboardingID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTestConnectionForSyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetAWSOnboardingResponse(rsp) + return http.StatusText(0) } -// GetAWSAccountsInRootWithResponse request returning *GetAWSAccountsInRootResponse -func (c *ClientWithResponses) GetAWSAccountsInRootWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInRootResponse, error) { - rsp, err := c.GetAWSAccountsInRoot(ctx, teamName, onboardingID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetTestConnectionForSyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetAWSAccountsInRootResponse(rsp) + return 0 } -// ProvisionOnboardingConfigurationWithBodyWithResponse request with arbitrary body returning *ProvisionOnboardingConfigurationResponse -func (c *ClientWithResponses) ProvisionOnboardingConfigurationWithBodyWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) { - rsp, err := c.ProvisionOnboardingConfigurationWithBody(ctx, teamName, onboardingID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProvisionOnboardingConfigurationResponse(rsp) +type CreateSyncSourceTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SyncSourceTestConnection + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + JSON500 *InternalError } -func (c *ClientWithResponses) ProvisionOnboardingConfigurationWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) { - rsp, err := c.ProvisionOnboardingConfiguration(ctx, teamName, onboardingID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSyncSourceTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseProvisionOnboardingConfigurationResponse(rsp) + return http.StatusText(0) } -// GetAWSAccountsInParentWithResponse request returning *GetAWSAccountsInParentResponse -func (c *ClientWithResponses) GetAWSAccountsInParentWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInParentResponse, error) { - rsp, err := c.GetAWSAccountsInParent(ctx, teamName, onboardingID, organizationalUnitID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSyncSourceTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetAWSAccountsInParentResponse(rsp) + return 0 } -// NotifyOnboardingWithBodyWithResponse request with arbitrary body returning *NotifyOnboardingResponse -func (c *ClientWithResponses) NotifyOnboardingWithBodyWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) { - rsp, err := c.NotifyOnboardingWithBody(ctx, teamName, onboardingID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNotifyOnboardingResponse(rsp) +type GetSyncSourceTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncSourceTestConnection + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } -func (c *ClientWithResponses) NotifyOnboardingWithResponse(ctx context.Context, teamName TeamName, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) { - rsp, err := c.NotifyOnboarding(ctx, teamName, onboardingID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncSourceTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseNotifyOnboardingResponse(rsp) + return http.StatusText(0) } -// DeletePluginsByTeamWithResponse request returning *DeletePluginsByTeamResponse -func (c *ClientWithResponses) DeletePluginsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeletePluginsByTeamResponse, error) { - rsp, err := c.DeletePluginsByTeam(ctx, teamName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncSourceTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeletePluginsByTeamResponse(rsp) + return 0 } -// ListPluginsByTeamWithResponse request returning *ListPluginsByTeamResponse -func (c *ClientWithResponses) ListPluginsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListPluginsByTeamParams, reqEditors ...RequestEditorFn) (*ListPluginsByTeamResponse, error) { - rsp, err := c.ListPluginsByTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListPluginsByTeamResponse(rsp) +type UpdateSyncTestConnectionForSyncSourceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncSourceTestConnection + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// DownloadPluginAssetByTeamWithResponse request returning *DownloadPluginAssetByTeamResponse -func (c *ClientWithResponses) DownloadPluginAssetByTeamWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetByTeamResponse, error) { - rsp, err := c.DownloadPluginAssetByTeam(ctx, teamName, pluginTeam, pluginKind, pluginName, versionName, targetName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncTestConnectionForSyncSourceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDownloadPluginAssetByTeamResponse(rsp) + return http.StatusText(0) } -// ListPoliciesWithResponse request returning *ListPoliciesResponse -func (c *ClientWithResponses) ListPoliciesWithResponse(ctx context.Context, teamName TeamName, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error) { - rsp, err := c.ListPolicies(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncTestConnectionForSyncSourceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListPoliciesResponse(rsp) + return 0 } -// CreatePolicyWithBodyWithResponse request with arbitrary body returning *CreatePolicyResponse -func (c *ClientWithResponses) CreatePolicyWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) { - rsp, err := c.CreatePolicyWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +type GetSyncSourceTestConnectionLogsLiveResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetSyncSourceTestConnectionLogsLiveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreatePolicyResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreatePolicyWithResponse(ctx context.Context, teamName TeamName, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) { - rsp, err := c.CreatePolicy(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncSourceTestConnectionLogsLiveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreatePolicyResponse(rsp) + return 0 } -// ListAllFrameworksWithResponse request returning *ListAllFrameworksResponse -func (c *ClientWithResponses) ListAllFrameworksWithResponse(ctx context.Context, teamName TeamName, params *ListAllFrameworksParams, reqEditors ...RequestEditorFn) (*ListAllFrameworksResponse, error) { - rsp, err := c.ListAllFrameworks(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +type GetSyncSourceTestConnectionLogsQueryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data TableData `json:"data"` + Metadata ListMetadata `json:"metadata"` } - return ParseListAllFrameworksResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// DeletePolicyWithResponse request returning *DeletePolicyResponse -func (c *ClientWithResponses) DeletePolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error) { - rsp, err := c.DeletePolicy(ctx, teamName, policyId, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncSourceTestConnectionLogsQueryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeletePolicyResponse(rsp) + return http.StatusText(0) } -// GetPolicyWithResponse request returning *GetPolicyResponse -func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) { - rsp, err := c.GetPolicy(ctx, teamName, policyId, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncSourceTestConnectionLogsQueryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetPolicyResponse(rsp) + return 0 } -// UpdatePolicyWithBodyWithResponse request with arbitrary body returning *UpdatePolicyResponse -func (c *ClientWithResponses) UpdatePolicyWithBodyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) { - rsp, err := c.UpdatePolicyWithBody(ctx, teamName, policyId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdatePolicyResponse(rsp) +type PromoteSyncSourceTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncSource + JSON201 *SyncSource + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) UpdatePolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) { - rsp, err := c.UpdatePolicy(ctx, teamName, policyId, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r PromoteSyncSourceTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdatePolicyResponse(rsp) + return http.StatusText(0) } -// ListPolicyFrameworksWithResponse request returning *ListPolicyFrameworksResponse -func (c *ClientWithResponses) ListPolicyFrameworksWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyFrameworksParams, reqEditors ...RequestEditorFn) (*ListPolicyFrameworksResponse, error) { - rsp, err := c.ListPolicyFrameworks(ctx, teamName, policyId, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r PromoteSyncSourceTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListPolicyFrameworksResponse(rsp) + return 0 } -// ListPolicyRulesWithResponse request returning *ListPolicyRulesResponse -func (c *ClientWithResponses) ListPolicyRulesWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *ListPolicyRulesParams, reqEditors ...RequestEditorFn) (*ListPolicyRulesResponse, error) { - rsp, err := c.ListPolicyRules(ctx, teamName, policyId, params, reqEditors...) - if err != nil { - return nil, err +type ListSyncSourcesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncSource `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseListPolicyRulesResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ListPolicyRuleDetailsWithResponse request returning *ListPolicyRuleDetailsResponse -func (c *ClientWithResponses) ListPolicyRuleDetailsWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, ruleId openapi_types.UUID, params *ListPolicyRuleDetailsParams, reqEditors ...RequestEditorFn) (*ListPolicyRuleDetailsResponse, error) { - rsp, err := c.ListPolicyRuleDetails(ctx, teamName, policyId, ruleId, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncSourcesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListPolicyRuleDetailsResponse(rsp) + return http.StatusText(0) } -// TogglePolicyWithResponse request returning *TogglePolicyResponse -func (c *ClientWithResponses) TogglePolicyWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *TogglePolicyParams, reqEditors ...RequestEditorFn) (*TogglePolicyResponse, error) { - rsp, err := c.TogglePolicy(ctx, teamName, policyId, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncSourcesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseTogglePolicyResponse(rsp) + return 0 } -// GetPolicyViolationsHistoryWithResponse request returning *GetPolicyViolationsHistoryResponse -func (c *ClientWithResponses) GetPolicyViolationsHistoryWithResponse(ctx context.Context, teamName TeamName, policyId openapi_types.UUID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*GetPolicyViolationsHistoryResponse, error) { - rsp, err := c.GetPolicyViolationsHistory(ctx, teamName, policyId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPolicyViolationsHistoryResponse(rsp) +type DeleteSyncSourceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// ListAllQueriesTeamWithResponse request returning *ListAllQueriesTeamResponse -func (c *ClientWithResponses) ListAllQueriesTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAllQueriesTeamParams, reqEditors ...RequestEditorFn) (*ListAllQueriesTeamResponse, error) { - rsp, err := c.ListAllQueriesTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteSyncSourceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListAllQueriesTeamResponse(rsp) + return http.StatusText(0) } -// ExecuteAdHocQueryTeamWithBodyWithResponse request with arbitrary body returning *ExecuteAdHocQueryTeamResponse -func (c *ClientWithResponses) ExecuteAdHocQueryTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryTeamResponse, error) { - rsp, err := c.ExecuteAdHocQueryTeamWithBody(ctx, teamName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSyncSourceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseExecuteAdHocQueryTeamResponse(rsp) + return 0 } -func (c *ClientWithResponses) ExecuteAdHocQueryTeamWithResponse(ctx context.Context, teamName TeamName, params *ExecuteAdHocQueryTeamParams, body ExecuteAdHocQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryTeamResponse, error) { - rsp, err := c.ExecuteAdHocQueryTeam(ctx, teamName, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExecuteAdHocQueryTeamResponse(rsp) +type GetSyncSourceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncSource + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// SaveQueryTeamWithBodyWithResponse request with arbitrary body returning *SaveQueryTeamResponse -func (c *ClientWithResponses) SaveQueryTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveQueryTeamResponse, error) { - rsp, err := c.SaveQueryTeamWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncSourceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseSaveQueryTeamResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) SaveQueryTeamWithResponse(ctx context.Context, teamName TeamName, body SaveQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveQueryTeamResponse, error) { - rsp, err := c.SaveQueryTeam(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncSourceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseSaveQueryTeamResponse(rsp) + return 0 } -// ListQueryTagsTeamWithResponse request returning *ListQueryTagsTeamResponse -func (c *ClientWithResponses) ListQueryTagsTeamWithResponse(ctx context.Context, teamName TeamName, params *ListQueryTagsTeamParams, reqEditors ...RequestEditorFn) (*ListQueryTagsTeamResponse, error) { - rsp, err := c.ListQueryTagsTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListQueryTagsTeamResponse(rsp) +type UpdateSyncSourceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncSource + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// DeleteSavedQueryTeamWithResponse request returning *DeleteSavedQueryTeamResponse -func (c *ClientWithResponses) DeleteSavedQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteSavedQueryTeamResponse, error) { - rsp, err := c.DeleteSavedQueryTeam(ctx, teamName, queryID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncSourceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteSavedQueryTeamResponse(rsp) + return http.StatusText(0) } -// GetSavedQueryTeamWithResponse request returning *GetSavedQueryTeamResponse -func (c *ClientWithResponses) GetSavedQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*GetSavedQueryTeamResponse, error) { - rsp, err := c.GetSavedQueryTeam(ctx, teamName, queryID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncSourceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSavedQueryTeamResponse(rsp) + return 0 } -// UpdateQueryTeamWithBodyWithResponse request with arbitrary body returning *UpdateQueryTeamResponse -func (c *ClientWithResponses) UpdateQueryTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateQueryTeamResponse, error) { - rsp, err := c.UpdateQueryTeamWithBody(ctx, teamName, queryID, contentType, body, reqEditors...) - if err != nil { - return nil, err +type ListSyncSourceSyncsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []ListSync `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseUpdateQueryTeamResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -func (c *ClientWithResponses) UpdateQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, body UpdateQueryTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateQueryTeamResponse, error) { - rsp, err := c.UpdateQueryTeam(ctx, teamName, queryID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncSourceSyncsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateQueryTeamResponse(rsp) + return http.StatusText(0) } -// DeleteAlertWithResponse request returning *DeleteAlertResponse -func (c *ClientWithResponses) DeleteAlertWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error) { - rsp, err := c.DeleteAlert(ctx, teamName, queryID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncSourceSyncsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteAlertResponse(rsp) + return 0 } -// ExecuteSavedQueryTeamWithResponse request returning *ExecuteSavedQueryTeamResponse -func (c *ClientWithResponses) ExecuteSavedQueryTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, params *ExecuteSavedQueryTeamParams, reqEditors ...RequestEditorFn) (*ExecuteSavedQueryTeamResponse, error) { - rsp, err := c.ExecuteSavedQueryTeam(ctx, teamName, queryID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseExecuteSavedQueryTeamResponse(rsp) +type GetTestConnectionForSyncSourceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncTestConnection + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// QueryListFiltersTeamWithResponse request returning *QueryListFiltersTeamResponse -func (c *ClientWithResponses) QueryListFiltersTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFiltersTeamParams, reqEditors ...RequestEditorFn) (*QueryListFiltersTeamResponse, error) { - rsp, err := c.QueryListFiltersTeam(ctx, teamName, queryID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTestConnectionForSyncSourceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseQueryListFiltersTeamResponse(rsp) + return http.StatusText(0) } -// QuerySaveFilterTeamWithBodyWithResponse request with arbitrary body returning *QuerySaveFilterTeamResponse -func (c *ClientWithResponses) QuerySaveFilterTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuerySaveFilterTeamResponse, error) { - rsp, err := c.QuerySaveFilterTeamWithBody(ctx, teamName, queryID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetTestConnectionForSyncSourceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseQuerySaveFilterTeamResponse(rsp) + return 0 } -func (c *ClientWithResponses) QuerySaveFilterTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, body QuerySaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*QuerySaveFilterTeamResponse, error) { - rsp, err := c.QuerySaveFilterTeam(ctx, teamName, queryID, body, reqEditors...) - if err != nil { - return nil, err +type ListSyncTransformersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncTransformer `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseQuerySaveFilterTeamResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// QueryListFilterTagsTeamWithResponse request returning *QueryListFilterTagsTeamResponse -func (c *ClientWithResponses) QueryListFilterTagsTeamWithResponse(ctx context.Context, teamName TeamName, queryID QueryID, params *QueryListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*QueryListFilterTagsTeamResponse, error) { - rsp, err := c.QueryListFilterTagsTeam(ctx, teamName, queryID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncTransformersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseQueryListFilterTagsTeamResponse(rsp) + return http.StatusText(0) } -// ListAllRBACPermissionsWithResponse request returning *ListAllRBACPermissionsResponse -func (c *ClientWithResponses) ListAllRBACPermissionsWithResponse(ctx context.Context, teamName TeamName, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*ListAllRBACPermissionsResponse, error) { - rsp, err := c.ListAllRBACPermissions(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncTransformersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListAllRBACPermissionsResponse(rsp) + return 0 } -// CreateRBACPermissionWithBodyWithResponse request with arbitrary body returning *CreateRBACPermissionResponse -func (c *ClientWithResponses) CreateRBACPermissionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) { - rsp, err := c.CreateRBACPermissionWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateRBACPermissionResponse(rsp) +type DeleteSyncTransformerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) CreateRBACPermissionWithResponse(ctx context.Context, teamName TeamName, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) { - rsp, err := c.CreateRBACPermission(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteSyncTransformerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateRBACPermissionResponse(rsp) + return http.StatusText(0) } -// DeleteRBACPermissionWithResponse request returning *DeleteRBACPermissionResponse -func (c *ClientWithResponses) DeleteRBACPermissionWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*DeleteRBACPermissionResponse, error) { - rsp, err := c.DeleteRBACPermission(ctx, teamName, rbacPermissionID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSyncTransformerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteRBACPermissionResponse(rsp) + return 0 } -// GetRBACPermissionWithResponse request returning *GetRBACPermissionResponse -func (c *ClientWithResponses) GetRBACPermissionWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*GetRBACPermissionResponse, error) { - rsp, err := c.GetRBACPermission(ctx, teamName, rbacPermissionID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetRBACPermissionResponse(rsp) +type GetSyncTransformerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncTransformer + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// UpdateRBACPermissionWithBodyWithResponse request with arbitrary body returning *UpdateRBACPermissionResponse -func (c *ClientWithResponses) UpdateRBACPermissionWithBodyWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) { - rsp, err := c.UpdateRBACPermissionWithBody(ctx, teamName, rbacPermissionID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncTransformerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateRBACPermissionResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateRBACPermissionWithResponse(ctx context.Context, teamName TeamName, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) { - rsp, err := c.UpdateRBACPermission(ctx, teamName, rbacPermissionID, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncTransformerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateRBACPermissionResponse(rsp) + return 0 } -// ListAllRBACRolesWithResponse request returning *ListAllRBACRolesResponse -func (c *ClientWithResponses) ListAllRBACRolesWithResponse(ctx context.Context, teamName TeamName, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*ListAllRBACRolesResponse, error) { - rsp, err := c.ListAllRBACRoles(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAllRBACRolesResponse(rsp) +type UpdateSyncTransformerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncTransformer + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateRBACRoleWithBodyWithResponse request with arbitrary body returning *CreateRBACRoleResponse -func (c *ClientWithResponses) CreateRBACRoleWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) { - rsp, err := c.CreateRBACRoleWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncTransformerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateRBACRoleResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateRBACRoleWithResponse(ctx context.Context, teamName TeamName, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) { - rsp, err := c.CreateRBACRole(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncTransformerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateRBACRoleResponse(rsp) + return 0 } -// DeleteRBACRoleWithResponse request returning *DeleteRBACRoleResponse -func (c *ClientWithResponses) DeleteRBACRoleWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*DeleteRBACRoleResponse, error) { - rsp, err := c.DeleteRBACRole(ctx, teamName, rbacCustomRoleID, reqEditors...) - if err != nil { - return nil, err +type ListSyncTransformerSyncDestinationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncDestination `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseDeleteRBACRoleResponse(rsp) + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// GetRBACRoleWithResponse request returning *GetRBACRoleResponse -func (c *ClientWithResponses) GetRBACRoleWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, reqEditors ...RequestEditorFn) (*GetRBACRoleResponse, error) { - rsp, err := c.GetRBACRole(ctx, teamName, rbacCustomRoleID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncTransformerSyncDestinationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetRBACRoleResponse(rsp) + return http.StatusText(0) } -// UpdateRBACRoleWithBodyWithResponse request with arbitrary body returning *UpdateRBACRoleResponse -func (c *ClientWithResponses) UpdateRBACRoleWithBodyWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) { - rsp, err := c.UpdateRBACRoleWithBody(ctx, teamName, rbacCustomRoleID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncTransformerSyncDestinationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateRBACRoleResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateRBACRoleWithResponse(ctx context.Context, teamName TeamName, rbacCustomRoleID RBACCustomRoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) { - rsp, err := c.UpdateRBACRole(ctx, teamName, rbacCustomRoleID, body, reqEditors...) - if err != nil { - return nil, err +type ListSyncTransformerSyncsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []Sync `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseUpdateRBACRoleResponse(rsp) + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ListReportsWithResponse request returning *ListReportsResponse -func (c *ClientWithResponses) ListReportsWithResponse(ctx context.Context, teamName TeamName, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResponse, error) { - rsp, err := c.ListReports(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncTransformerSyncsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListReportsResponse(rsp) + return http.StatusText(0) } -// CreateReportWithBodyWithResponse request with arbitrary body returning *CreateReportResponse -func (c *ClientWithResponses) CreateReportWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) { - rsp, err := c.CreateReportWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncTransformerSyncsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateReportResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateReportWithResponse(ctx context.Context, teamName TeamName, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) { - rsp, err := c.CreateReport(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +type ListSyncUpgradesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncUpgrade `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseCreateReportResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ListReportTemplatesWithResponse request returning *ListReportTemplatesResponse -func (c *ClientWithResponses) ListReportTemplatesWithResponse(ctx context.Context, teamName TeamName, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*ListReportTemplatesResponse, error) { - rsp, err := c.ListReportTemplates(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncUpgradesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListReportTemplatesResponse(rsp) + return http.StatusText(0) } -// CreateReportTemplateWithBodyWithResponse request with arbitrary body returning *CreateReportTemplateResponse -func (c *ClientWithResponses) CreateReportTemplateWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) { - rsp, err := c.CreateReportTemplateWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncUpgradesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateReportTemplateResponse(rsp) + return 0 } -func (c *ClientWithResponses) CreateReportTemplateWithResponse(ctx context.Context, teamName TeamName, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) { - rsp, err := c.CreateReportTemplate(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +type ListSyncsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []ListSync `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseCreateReportTemplateResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// DeleteReportTemplateWithResponse request returning *DeleteReportTemplateResponse -func (c *ClientWithResponses) DeleteReportTemplateWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportTemplateResponse, error) { - rsp, err := c.DeleteReportTemplate(ctx, teamName, templateId, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteReportTemplateResponse(rsp) + return http.StatusText(0) } -// GetReportTemplateWithResponse request returning *GetReportTemplateResponse -func (c *ClientWithResponses) GetReportTemplateWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportTemplateResponse, error) { - rsp, err := c.GetReportTemplate(ctx, teamName, templateId, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetReportTemplateResponse(rsp) + return 0 } -// UpdateReportTemplateWithBodyWithResponse request with arbitrary body returning *UpdateReportTemplateResponse -func (c *ClientWithResponses) UpdateReportTemplateWithBodyWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) { - rsp, err := c.UpdateReportTemplateWithBody(ctx, teamName, templateId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateReportTemplateResponse(rsp) +type CreateSyncResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Sync + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) UpdateReportTemplateWithResponse(ctx context.Context, teamName TeamName, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) { - rsp, err := c.UpdateReportTemplate(ctx, teamName, templateId, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSyncResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateReportTemplateResponse(rsp) + return http.StatusText(0) } -// DeleteReportWithResponse request returning *DeleteReportResponse -func (c *ClientWithResponses) DeleteReportWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportResponse, error) { - rsp, err := c.DeleteReport(ctx, teamName, reportId, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSyncResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteReportResponse(rsp) + return 0 } -// GetReportWithResponse request returning *GetReportResponse -func (c *ClientWithResponses) GetReportWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportResponse, error) { - rsp, err := c.GetReport(ctx, teamName, reportId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetReportResponse(rsp) +type DeleteSyncResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// UpdateReportWithBodyWithResponse request with arbitrary body returning *UpdateReportResponse -func (c *ClientWithResponses) UpdateReportWithBodyWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) { - rsp, err := c.UpdateReportWithBody(ctx, teamName, reportId, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteSyncResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateReportResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateReportWithResponse(ctx context.Context, teamName TeamName, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) { - rsp, err := c.UpdateReport(ctx, teamName, reportId, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSyncResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateReportResponse(rsp) + return 0 } -// CreateSyncDestinationTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateSyncDestinationTestConnectionResponse -func (c *ClientWithResponses) CreateSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) { - rsp, err := c.CreateSyncDestinationTestConnectionWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSyncDestinationTestConnectionResponse(rsp) +type GetSyncResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Sync + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -func (c *ClientWithResponses) CreateSyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) { - rsp, err := c.CreateSyncDestinationTestConnection(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateSyncDestinationTestConnectionResponse(rsp) + return http.StatusText(0) } -// GetSyncDestinationTestConnectionWithResponse request returning *GetSyncDestinationTestConnectionResponse -func (c *ClientWithResponses) GetSyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionResponse, error) { - rsp, err := c.GetSyncDestinationTestConnection(ctx, teamName, syncDestinationTestConnectionID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncDestinationTestConnectionResponse(rsp) + return 0 } -// UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionForSyncDestinationResponse -func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) { - rsp, err := c.UpdateSyncTestConnectionForSyncDestinationWithBody(ctx, teamName, syncDestinationTestConnectionID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp) +type UpdateSyncResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Sync + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) { - rsp, err := c.UpdateSyncTestConnectionForSyncDestination(ctx, teamName, syncDestinationTestConnectionID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp) + return http.StatusText(0) } -// GetSyncDestinationTestConnectionLogsWithResponse request returning *GetSyncDestinationTestConnectionLogsResponse -func (c *ClientWithResponses) GetSyncDestinationTestConnectionLogsWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsResponse, error) { - rsp, err := c.GetSyncDestinationTestConnectionLogs(ctx, teamName, syncDestinationTestConnectionID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncDestinationTestConnectionLogsResponse(rsp) + return 0 } -// GetSyncDestinationTestConnectionLogsLiveWithResponse request returning *GetSyncDestinationTestConnectionLogsLiveResponse -func (c *ClientWithResponses) GetSyncDestinationTestConnectionLogsLiveWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsLiveResponse, error) { - rsp, err := c.GetSyncDestinationTestConnectionLogsLive(ctx, teamName, syncDestinationTestConnectionID, params, reqEditors...) - if err != nil { - return nil, err +type ListSyncRunsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncRun `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseGetSyncDestinationTestConnectionLogsLiveResponse(rsp) + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// GetSyncDestinationTestConnectionLogsQueryWithResponse request returning *GetSyncDestinationTestConnectionLogsQueryResponse -func (c *ClientWithResponses) GetSyncDestinationTestConnectionLogsQueryWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsQueryResponse, error) { - rsp, err := c.GetSyncDestinationTestConnectionLogsQuery(ctx, teamName, syncDestinationTestConnectionID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListSyncRunsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetSyncDestinationTestConnectionLogsQueryResponse(rsp) + return http.StatusText(0) } -// PromoteSyncDestinationTestConnectionWithBodyWithResponse request with arbitrary body returning *PromoteSyncDestinationTestConnectionResponse -func (c *ClientWithResponses) PromoteSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) { - rsp, err := c.PromoteSyncDestinationTestConnectionWithBody(ctx, teamName, syncDestinationTestConnectionID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListSyncRunsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePromoteSyncDestinationTestConnectionResponse(rsp) + return 0 } -func (c *ClientWithResponses) PromoteSyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) { - rsp, err := c.PromoteSyncDestinationTestConnection(ctx, teamName, syncDestinationTestConnectionID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePromoteSyncDestinationTestConnectionResponse(rsp) +type CreateSyncRunResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SyncRun + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// ListSyncDestinationsWithResponse request returning *ListSyncDestinationsResponse -func (c *ClientWithResponses) ListSyncDestinationsWithResponse(ctx context.Context, teamName TeamName, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationsResponse, error) { - rsp, err := c.ListSyncDestinations(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSyncRunResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListSyncDestinationsResponse(rsp) + return http.StatusText(0) } -// DeleteSyncDestinationWithResponse request returning *DeleteSyncDestinationResponse -func (c *ClientWithResponses) DeleteSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteSyncDestinationResponse, error) { - rsp, err := c.DeleteSyncDestination(ctx, teamName, syncDestinationName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSyncRunResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteSyncDestinationResponse(rsp) + return 0 } -// GetSyncDestinationWithResponse request returning *GetSyncDestinationResponse -func (c *ClientWithResponses) GetSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetSyncDestinationResponse, error) { - rsp, err := c.GetSyncDestination(ctx, teamName, syncDestinationName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSyncDestinationResponse(rsp) +type GetSyncRunResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncRunDetails + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// UpdateSyncDestinationWithBodyWithResponse request with arbitrary body returning *UpdateSyncDestinationResponse -func (c *ClientWithResponses) UpdateSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) { - rsp, err := c.UpdateSyncDestinationWithBody(ctx, teamName, syncDestinationName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncRunResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSyncDestinationResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) { - rsp, err := c.UpdateSyncDestination(ctx, teamName, syncDestinationName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncRunResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateSyncDestinationResponse(rsp) + return 0 } -// MigrateSyncDestinationWithResponse request returning *MigrateSyncDestinationResponse -func (c *ClientWithResponses) MigrateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*MigrateSyncDestinationResponse, error) { - rsp, err := c.MigrateSyncDestination(ctx, teamName, syncDestinationName, reqEditors...) - if err != nil { - return nil, err - } - return ParseMigrateSyncDestinationResponse(rsp) +type UpdateSyncRunResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncRun + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// ListSyncDestinationSyncsWithResponse request returning *ListSyncDestinationSyncsResponse -func (c *ClientWithResponses) ListSyncDestinationSyncsWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationSyncsResponse, error) { - rsp, err := c.ListSyncDestinationSyncs(ctx, teamName, syncDestinationName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncRunResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListSyncDestinationSyncsResponse(rsp) + return http.StatusText(0) } -// GetTestConnectionForSyncDestinationWithResponse request returning *GetTestConnectionForSyncDestinationResponse -func (c *ClientWithResponses) GetTestConnectionForSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncDestinationResponse, error) { - rsp, err := c.GetTestConnectionForSyncDestination(ctx, teamName, syncDestinationName, syncTestConnectionId, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncRunResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetTestConnectionForSyncDestinationResponse(rsp) + return 0 } -// CreateSyncSourceTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateSyncSourceTestConnectionResponse -func (c *ClientWithResponses) CreateSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) { - rsp, err := c.CreateSyncSourceTestConnectionWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSyncSourceTestConnectionResponse(rsp) +type GetSyncRunLogsLiveResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) CreateSyncSourceTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) { - rsp, err := c.CreateSyncSourceTestConnection(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncRunLogsLiveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateSyncSourceTestConnectionResponse(rsp) + return http.StatusText(0) } -// GetSyncSourceTestConnectionWithResponse request returning *GetSyncSourceTestConnectionResponse -func (c *ClientWithResponses) GetSyncSourceTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionResponse, error) { - rsp, err := c.GetSyncSourceTestConnection(ctx, teamName, syncSourceTestConnectionID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncRunLogsLiveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncSourceTestConnectionResponse(rsp) + return 0 } -// UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionForSyncSourceResponse -func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) { - rsp, err := c.UpdateSyncTestConnectionForSyncSourceWithBody(ctx, teamName, syncSourceTestConnectionID, contentType, body, reqEditors...) - if err != nil { - return nil, err +type GetSyncRunLogsQueryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data TableData `json:"data"` + Metadata ListMetadata `json:"metadata"` } - return ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) { - rsp, err := c.UpdateSyncTestConnectionForSyncSource(ctx, teamName, syncSourceTestConnectionID, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncRunLogsQueryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp) + return http.StatusText(0) } -// GetSyncSourceTestConnectionLogsWithResponse request returning *GetSyncSourceTestConnectionLogsResponse -func (c *ClientWithResponses) GetSyncSourceTestConnectionLogsWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsResponse, error) { - rsp, err := c.GetSyncSourceTestConnectionLogs(ctx, teamName, syncSourceTestConnectionID, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncRunLogsQueryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncSourceTestConnectionLogsResponse(rsp) + return 0 } -// GetSyncSourceTestConnectionLogsLiveWithResponse request returning *GetSyncSourceTestConnectionLogsLiveResponse -func (c *ClientWithResponses) GetSyncSourceTestConnectionLogsLiveWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsLiveResponse, error) { - rsp, err := c.GetSyncSourceTestConnectionLogsLive(ctx, teamName, syncSourceTestConnectionID, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSyncSourceTestConnectionLogsLiveResponse(rsp) +type CreateSyncRunProgressResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetSyncSourceTestConnectionLogsQueryWithResponse request returning *GetSyncSourceTestConnectionLogsQueryResponse -func (c *ClientWithResponses) GetSyncSourceTestConnectionLogsQueryWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsQueryResponse, error) { - rsp, err := c.GetSyncSourceTestConnectionLogsQuery(ctx, teamName, syncSourceTestConnectionID, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSyncRunProgressResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetSyncSourceTestConnectionLogsQueryResponse(rsp) + return http.StatusText(0) } -// PromoteSyncSourceTestConnectionWithBodyWithResponse request with arbitrary body returning *PromoteSyncSourceTestConnectionResponse -func (c *ClientWithResponses) PromoteSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) { - rsp, err := c.PromoteSyncSourceTestConnectionWithBody(ctx, teamName, syncSourceTestConnectionID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSyncRunProgressResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePromoteSyncSourceTestConnectionResponse(rsp) + return 0 } -func (c *ClientWithResponses) PromoteSyncSourceTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) { - rsp, err := c.PromoteSyncSourceTestConnection(ctx, teamName, syncSourceTestConnectionID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePromoteSyncSourceTestConnectionResponse(rsp) +type GetSyncRunStatsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncRunStats + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ListSyncSourcesWithResponse request returning *ListSyncSourcesResponse -func (c *ClientWithResponses) ListSyncSourcesWithResponse(ctx context.Context, teamName TeamName, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*ListSyncSourcesResponse, error) { - rsp, err := c.ListSyncSources(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncRunStatsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListSyncSourcesResponse(rsp) + return http.StatusText(0) } -// DeleteSyncSourceWithResponse request returning *DeleteSyncSourceResponse -func (c *ClientWithResponses) DeleteSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*DeleteSyncSourceResponse, error) { - rsp, err := c.DeleteSyncSource(ctx, teamName, syncSourceName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncRunStatsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteSyncSourceResponse(rsp) + return 0 } -// GetSyncSourceWithResponse request returning *GetSyncSourceResponse -func (c *ClientWithResponses) GetSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*GetSyncSourceResponse, error) { - rsp, err := c.GetSyncSource(ctx, teamName, syncSourceName, reqEditors...) - if err != nil { - return nil, err +type GetSyncRunTablesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncRunTableStat `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseGetSyncSourceResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// UpdateSyncSourceWithBodyWithResponse request with arbitrary body returning *UpdateSyncSourceResponse -func (c *ClientWithResponses) UpdateSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) { - rsp, err := c.UpdateSyncSourceWithBody(ctx, teamName, syncSourceName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSyncRunTablesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSyncSourceResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) { - rsp, err := c.UpdateSyncSource(ctx, teamName, syncSourceName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSyncRunTablesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateSyncSourceResponse(rsp) + return 0 } -// MigrateSyncSourceWithResponse request returning *MigrateSyncSourceResponse -func (c *ClientWithResponses) MigrateSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*MigrateSyncSourceResponse, error) { - rsp, err := c.MigrateSyncSource(ctx, teamName, syncSourceName, reqEditors...) - if err != nil { - return nil, err +type ListTablesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []TableListItem `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseMigrateSyncSourceResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// ListSyncSourceSyncsWithResponse request returning *ListSyncSourceSyncsResponse -func (c *ClientWithResponses) ListSyncSourceSyncsWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncSourceSyncsResponse, error) { - rsp, err := c.ListSyncSourceSyncs(ctx, teamName, syncSourceName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListTablesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListSyncSourceSyncsResponse(rsp) + return http.StatusText(0) } -// GetTestConnectionForSyncSourceWithResponse request returning *GetTestConnectionForSyncSourceResponse -func (c *ClientWithResponses) GetTestConnectionForSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncSourceResponse, error) { - rsp, err := c.GetTestConnectionForSyncSource(ctx, teamName, syncSourceName, syncTestConnectionId, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListTablesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetTestConnectionForSyncSourceResponse(rsp) + return 0 } -// ListSyncTransformersWithResponse request returning *ListSyncTransformersResponse -func (c *ClientWithResponses) ListSyncTransformersWithResponse(ctx context.Context, teamName TeamName, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*ListSyncTransformersResponse, error) { - rsp, err := c.ListSyncTransformers(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +type GetTablesDataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Metadata ListMetadata `json:"metadata"` + Sources []TableDataListItem `json:"sources"` } - return ParseListSyncTransformersResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError } -// DeleteSyncTransformerWithResponse request returning *DeleteSyncTransformerResponse -func (c *ClientWithResponses) DeleteSyncTransformerWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*DeleteSyncTransformerResponse, error) { - rsp, err := c.DeleteSyncTransformer(ctx, teamName, syncTransformerName, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTablesDataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteSyncTransformerResponse(rsp) + return http.StatusText(0) } -// GetSyncTransformerWithResponse request returning *GetSyncTransformerResponse -func (c *ClientWithResponses) GetSyncTransformerWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*GetSyncTransformerResponse, error) { - rsp, err := c.GetSyncTransformer(ctx, teamName, syncTransformerName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetTablesDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncTransformerResponse(rsp) + return 0 } -// UpdateSyncTransformerWithBodyWithResponse request with arbitrary body returning *UpdateSyncTransformerResponse -func (c *ClientWithResponses) UpdateSyncTransformerWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) { - rsp, err := c.UpdateSyncTransformerWithBody(ctx, teamName, syncTransformerName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSyncTransformerResponse(rsp) +type TablesDataActionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) UpdateSyncTransformerWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) { - rsp, err := c.UpdateSyncTransformer(ctx, teamName, syncTransformerName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TablesDataActionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSyncTransformerResponse(rsp) + return http.StatusText(0) } -// ListSyncTransformerSyncDestinationsWithResponse request returning *ListSyncTransformerSyncDestinationsResponse -func (c *ClientWithResponses) ListSyncTransformerSyncDestinationsWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncDestinationsResponse, error) { - rsp, err := c.ListSyncTransformerSyncDestinations(ctx, teamName, syncTransformerName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TablesDataActionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListSyncTransformerSyncDestinationsResponse(rsp) + return 0 } -// ListSyncTransformerSyncsWithResponse request returning *ListSyncTransformerSyncsResponse -func (c *ClientWithResponses) ListSyncTransformerSyncsWithResponse(ctx context.Context, teamName TeamName, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncsResponse, error) { - rsp, err := c.ListSyncTransformerSyncs(ctx, teamName, syncTransformerName, params, reqEditors...) - if err != nil { - return nil, err +type GetTablesRelationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string][]RelationDef + JSON401 *RequiresAuthentication + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetTablesRelationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListSyncTransformerSyncsResponse(rsp) + return http.StatusText(0) } -// ListSyncUpgradesWithResponse request returning *ListSyncUpgradesResponse -func (c *ClientWithResponses) ListSyncUpgradesWithResponse(ctx context.Context, teamName TeamName, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*ListSyncUpgradesResponse, error) { - rsp, err := c.ListSyncUpgrades(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetTablesRelationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListSyncUpgradesResponse(rsp) + return 0 } -// ListSyncsWithResponse request returning *ListSyncsResponse -func (c *ClientWithResponses) ListSyncsWithResponse(ctx context.Context, teamName TeamName, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncsResponse, error) { - rsp, err := c.ListSyncs(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +type BatchTableSchemasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []BatchTableSchemaItem `json:"items"` } - return ParseListSyncsResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateSyncWithBodyWithResponse request with arbitrary body returning *CreateSyncResponse -func (c *ClientWithResponses) CreateSyncWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) { - rsp, err := c.CreateSyncWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r BatchTableSchemasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateSyncResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateSyncWithResponse(ctx context.Context, teamName TeamName, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) { - rsp, err := c.CreateSync(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r BatchTableSchemasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateSyncResponse(rsp) + return 0 } -// GetTestConnectionConnectorCredentialsWithResponse request returning *GetTestConnectionConnectorCredentialsResponse -func (c *ClientWithResponses) GetTestConnectionConnectorCredentialsWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetTestConnectionConnectorCredentialsResponse, error) { - rsp, err := c.GetTestConnectionConnectorCredentials(ctx, teamName, syncTestConnectionId, connectorID, reqEditors...) - if err != nil { - return nil, err +type TableListColumnsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []TableColumnListItem `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseGetTestConnectionConnectorCredentialsResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetTestConnectionConnectorIdentityWithResponse request returning *GetTestConnectionConnectorIdentityResponse -func (c *ClientWithResponses) GetTestConnectionConnectorIdentityWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetTestConnectionConnectorIdentityResponse, error) { - rsp, err := c.GetTestConnectionConnectorIdentity(ctx, teamName, syncTestConnectionId, connectorID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableListColumnsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetTestConnectionConnectorIdentityResponse(rsp) + return http.StatusText(0) } -// DeleteSyncWithResponse request returning *DeleteSyncResponse -func (c *ClientWithResponses) DeleteSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*DeleteSyncResponse, error) { - rsp, err := c.DeleteSync(ctx, teamName, syncName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableListColumnsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteSyncResponse(rsp) + return 0 } -// GetSyncWithResponse request returning *GetSyncResponse -func (c *ClientWithResponses) GetSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*GetSyncResponse, error) { - rsp, err := c.GetSync(ctx, teamName, syncName, reqEditors...) - if err != nil { - return nil, err +type TableColumnListValuesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []TableColumnValueListItem `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseGetSyncResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// UpdateSyncWithBodyWithResponse request with arbitrary body returning *UpdateSyncResponse -func (c *ClientWithResponses) UpdateSyncWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) { - rsp, err := c.UpdateSyncWithBody(ctx, teamName, syncName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableColumnListValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSyncResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UpdateSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) { - rsp, err := c.UpdateSync(ctx, teamName, syncName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableColumnListValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateSyncResponse(rsp) + return 0 } -// ListSyncRunsWithResponse request returning *ListSyncRunsResponse -func (c *ClientWithResponses) ListSyncRunsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*ListSyncRunsResponse, error) { - rsp, err := c.ListSyncRuns(ctx, teamName, syncName, params, reqEditors...) - if err != nil { - return nil, err +type TableListRowsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data TableData `json:"data"` + Metadata ListMetadata `json:"metadata"` } - return ParseListSyncRunsResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateSyncRunWithResponse request returning *CreateSyncRunResponse -func (c *ClientWithResponses) CreateSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*CreateSyncRunResponse, error) { - rsp, err := c.CreateSyncRun(ctx, teamName, syncName, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableListRowsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateSyncRunResponse(rsp) + return http.StatusText(0) } -// GetSyncRunWithResponse request returning *GetSyncRunResponse -func (c *ClientWithResponses) GetSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunResponse, error) { - rsp, err := c.GetSyncRun(ctx, teamName, syncName, syncRunId, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableListRowsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncRunResponse(rsp) + return 0 } -// UpdateSyncRunWithBodyWithResponse request with arbitrary body returning *UpdateSyncRunResponse -func (c *ClientWithResponses) UpdateSyncRunWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) { - rsp, err := c.UpdateSyncRunWithBody(ctx, teamName, syncName, syncRunId, contentType, body, reqEditors...) - if err != nil { - return nil, err +type TableRowByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Data TableRow `json:"data"` + Matches []TableRowFieldMatch `json:"matches"` } - return ParseUpdateSyncRunResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) UpdateSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) { - rsp, err := c.UpdateSyncRun(ctx, teamName, syncName, syncRunId, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableRowByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSyncRunResponse(rsp) + return http.StatusText(0) } -// GetSyncRunConnectorCredentialsWithResponse request returning *GetSyncRunConnectorCredentialsResponse -func (c *ClientWithResponses) GetSyncRunConnectorCredentialsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetSyncRunConnectorCredentialsResponse, error) { - rsp, err := c.GetSyncRunConnectorCredentials(ctx, teamName, syncName, syncRunId, connectorID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableRowByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncRunConnectorCredentialsResponse(rsp) + return 0 } -// GetSyncRunConnectorIdentityWithResponse request returning *GetSyncRunConnectorIdentityResponse -func (c *ClientWithResponses) GetSyncRunConnectorIdentityWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*GetSyncRunConnectorIdentityResponse, error) { - rsp, err := c.GetSyncRunConnectorIdentity(ctx, teamName, syncName, syncRunId, connectorID, reqEditors...) - if err != nil { - return nil, err +type TableListFiltersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []Filter `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseGetSyncRunConnectorIdentityResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetSyncRunLogsWithResponse request returning *GetSyncRunLogsResponse -func (c *ClientWithResponses) GetSyncRunLogsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsResponse, error) { - rsp, err := c.GetSyncRunLogs(ctx, teamName, syncName, syncRunId, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableListFiltersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetSyncRunLogsResponse(rsp) + return http.StatusText(0) } -// GetSyncRunLogsLiveWithResponse request returning *GetSyncRunLogsLiveResponse -func (c *ClientWithResponses) GetSyncRunLogsLiveWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsLiveResponse, error) { - rsp, err := c.GetSyncRunLogsLive(ctx, teamName, syncName, syncRunId, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableListFiltersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSyncRunLogsLiveResponse(rsp) + return 0 } -// GetSyncRunLogsQueryWithResponse request returning *GetSyncRunLogsQueryResponse -func (c *ClientWithResponses) GetSyncRunLogsQueryWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsQueryResponse, error) { - rsp, err := c.GetSyncRunLogsQuery(ctx, teamName, syncName, syncRunId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSyncRunLogsQueryResponse(rsp) +type TableSaveFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Filter + JSON201 *Filter + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateSyncRunProgressWithBodyWithResponse request with arbitrary body returning *CreateSyncRunProgressResponse -func (c *ClientWithResponses) CreateSyncRunProgressWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) { - rsp, err := c.CreateSyncRunProgressWithBody(ctx, teamName, syncName, syncRunId, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableSaveFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateSyncRunProgressResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateSyncRunProgressWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) { - rsp, err := c.CreateSyncRunProgress(ctx, teamName, syncName, syncRunId, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableSaveFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateSyncRunProgressResponse(rsp) + return 0 } -// GetSyncRunStatsWithResponse request returning *GetSyncRunStatsResponse -func (c *ClientWithResponses) GetSyncRunStatsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunStatsResponse, error) { - rsp, err := c.GetSyncRunStats(ctx, teamName, syncName, syncRunId, reqEditors...) - if err != nil { - return nil, err +type TableListFilterTagsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []FilterTag `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseGetSyncRunStatsResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetSyncRunTablesWithResponse request returning *GetSyncRunTablesResponse -func (c *ClientWithResponses) GetSyncRunTablesWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*GetSyncRunTablesResponse, error) { - rsp, err := c.GetSyncRunTables(ctx, teamName, syncName, syncRunId, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableListFilterTagsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetSyncRunTablesResponse(rsp) + return http.StatusText(0) } -// ListTablesTeamWithResponse request returning *ListTablesTeamResponse -func (c *ClientWithResponses) ListTablesTeamWithResponse(ctx context.Context, teamName TeamName, params *ListTablesTeamParams, reqEditors ...RequestEditorFn) (*ListTablesTeamResponse, error) { - rsp, err := c.ListTablesTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableListFilterTagsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseListTablesTeamResponse(rsp) + return 0 } -// BatchTableSchemasTeamWithResponse request returning *BatchTableSchemasTeamResponse -func (c *ClientWithResponses) BatchTableSchemasTeamWithResponse(ctx context.Context, teamName TeamName, params *BatchTableSchemasTeamParams, reqEditors ...RequestEditorFn) (*BatchTableSchemasTeamResponse, error) { - rsp, err := c.BatchTableSchemasTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +type TableSchemaResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + DefaultColumns []string `json:"default_columns"` + Schema TableSchema `json:"schema"` } - return ParseBatchTableSchemasTeamResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// TableListColumnsTeamWithResponse request returning *TableListColumnsTeamResponse -func (c *ClientWithResponses) TableListColumnsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListColumnsTeamParams, reqEditors ...RequestEditorFn) (*TableListColumnsTeamResponse, error) { - rsp, err := c.TableListColumnsTeam(ctx, teamName, tableName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r TableSchemaResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseTableListColumnsTeamResponse(rsp) + return http.StatusText(0) } -// TableColumnListValuesTeamWithResponse request returning *TableColumnListValuesTeamResponse -func (c *ClientWithResponses) TableColumnListValuesTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, columnName ColumnName, params *TableColumnListValuesTeamParams, reqEditors ...RequestEditorFn) (*TableColumnListValuesTeamResponse, error) { - rsp, err := c.TableColumnListValuesTeam(ctx, teamName, tableName, columnName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r TableSchemaResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseTableColumnListValuesTeamResponse(rsp) + return 0 } -// TableListRowsTeamWithResponse request returning *TableListRowsTeamResponse -func (c *ClientWithResponses) TableListRowsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRowsTeamParams, reqEditors ...RequestEditorFn) (*TableListRowsTeamResponse, error) { - rsp, err := c.TableListRowsTeam(ctx, teamName, tableName, params, reqEditors...) - if err != nil { - return nil, err +type ListTeamsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []Team `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseTableListRowsTeamResponse(rsp) + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } -// TableRowByIdTeamWithResponse request returning *TableRowByIdTeamResponse -func (c *ClientWithResponses) TableRowByIdTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, tableRowId TableRowId, params *TableRowByIdTeamParams, reqEditors ...RequestEditorFn) (*TableRowByIdTeamResponse, error) { - rsp, err := c.TableRowByIdTeam(ctx, teamName, tableName, tableRowId, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListTeamsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseTableRowByIdTeamResponse(rsp) + return http.StatusText(0) } -// TableListFiltersTeamWithResponse request returning *TableListFiltersTeamResponse -func (c *ClientWithResponses) TableListFiltersTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFiltersTeamParams, reqEditors ...RequestEditorFn) (*TableListFiltersTeamResponse, error) { - rsp, err := c.TableListFiltersTeam(ctx, teamName, tableName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListTeamsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseTableListFiltersTeamResponse(rsp) + return 0 } -// TableSaveFilterTeamWithBodyWithResponse request with arbitrary body returning *TableSaveFilterTeamResponse -func (c *ClientWithResponses) TableSaveFilterTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TableSaveFilterTeamResponse, error) { - rsp, err := c.TableSaveFilterTeamWithBody(ctx, teamName, tableName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTableSaveFilterTeamResponse(rsp) +type DownloadPluginAssetByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PluginAsset + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError } -func (c *ClientWithResponses) TableSaveFilterTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, body TableSaveFilterTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*TableSaveFilterTeamResponse, error) { - rsp, err := c.TableSaveFilterTeam(ctx, teamName, tableName, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DownloadPluginAssetByTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseTableSaveFilterTeamResponse(rsp) + return http.StatusText(0) } -// TableListFilterTagsTeamWithResponse request returning *TableListFilterTagsTeamResponse -func (c *ClientWithResponses) TableListFilterTagsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListFilterTagsTeamParams, reqEditors ...RequestEditorFn) (*TableListFilterTagsTeamResponse, error) { - rsp, err := c.TableListFilterTagsTeam(ctx, teamName, tableName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadPluginAssetByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseTableListFilterTagsTeamResponse(rsp) + return 0 } -// TableListRelationsTeamWithResponse request returning *TableListRelationsTeamResponse -func (c *ClientWithResponses) TableListRelationsTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, params *TableListRelationsTeamParams, reqEditors ...RequestEditorFn) (*TableListRelationsTeamResponse, error) { - rsp, err := c.TableListRelationsTeam(ctx, teamName, tableName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseTableListRelationsTeamResponse(rsp) +type UpdateSyncTestConnectionForSyncDestinationTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestinationTestConnection + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// TableSchemaTeamWithResponse request returning *TableSchemaTeamResponse -func (c *ClientWithResponses) TableSchemaTeamWithResponse(ctx context.Context, teamName TeamName, tableName TableName, reqEditors ...RequestEditorFn) (*TableSchemaTeamResponse, error) { - rsp, err := c.TableSchemaTeam(ctx, teamName, tableName, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncTestConnectionForSyncDestinationTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseTableSchemaTeamResponse(rsp) + return http.StatusText(0) } -// GetTeamUsageSummaryWithResponse request returning *GetTeamUsageSummaryResponse -func (c *ClientWithResponses) GetTeamUsageSummaryWithResponse(ctx context.Context, teamName TeamName, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetTeamUsageSummaryResponse, error) { - rsp, err := c.GetTeamUsageSummary(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncTestConnectionForSyncDestinationTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetTeamUsageSummaryResponse(rsp) + return 0 } -// GetGroupedTeamUsageSummaryWithResponse request returning *GetGroupedTeamUsageSummaryResponse -func (c *ClientWithResponses) GetGroupedTeamUsageSummaryWithResponse(ctx context.Context, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetGroupedTeamUsageSummaryResponse, error) { - rsp, err := c.GetGroupedTeamUsageSummary(ctx, teamName, groupBy, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetGroupedTeamUsageSummaryResponse(rsp) +type UpdateSyncTestConnectionForSyncSourceTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncSourceTestConnection + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// ListUsersByTeamWithResponse request returning *ListUsersByTeamResponse -func (c *ClientWithResponses) ListUsersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*ListUsersByTeamResponse, error) { - rsp, err := c.ListUsersByTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSyncTestConnectionForSyncSourceTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListUsersByTeamResponse(rsp) + return http.StatusText(0) } -// UploadImageWithBodyWithResponse request with arbitrary body returning *UploadImageResponse -func (c *ClientWithResponses) UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) { - rsp, err := c.UploadImageWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSyncTestConnectionForSyncSourceTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUploadImageResponse(rsp) + return 0 } -func (c *ClientWithResponses) UploadImageWithResponse(ctx context.Context, body UploadImageJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) { - rsp, err := c.UploadImage(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUploadImageResponse(rsp) +type CreateSyncRunProgressTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// GetCurrentUserWithResponse request returning *GetCurrentUserResponse -func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) { - rsp, err := c.GetCurrentUser(ctx, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateSyncRunProgressTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetCurrentUserResponse(rsp) + return http.StatusText(0) } -// UpdateCurrentUserWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserResponse -func (c *ClientWithResponses) UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) { - rsp, err := c.UpdateCurrentUserWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSyncRunProgressTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateCurrentUserResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) { - rsp, err := c.UpdateCurrentUser(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateCurrentUserResponse(rsp) +type GetTeamUsageSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsageSummary + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// SendAnonymousEventWithBodyWithResponse request with arbitrary body returning *SendAnonymousEventResponse -func (c *ClientWithResponses) SendAnonymousEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) { - rsp, err := c.SendAnonymousEventWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTeamUsageSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseSendAnonymousEventResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) SendAnonymousEventWithResponse(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) { - rsp, err := c.SendAnonymousEvent(ctx, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamUsageSummaryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseSendAnonymousEventResponse(rsp) + return 0 } -// AuthenticateLocalUserWithBodyWithResponse request with arbitrary body returning *AuthenticateLocalUserResponse -func (c *ClientWithResponses) AuthenticateLocalUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateLocalUserResponse, error) { - rsp, err := c.AuthenticateLocalUserWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAuthenticateLocalUserResponse(rsp) +type GetGroupedTeamUsageSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsageSummary + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -func (c *ClientWithResponses) AuthenticateLocalUserWithResponse(ctx context.Context, body AuthenticateLocalUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateLocalUserResponse, error) { - rsp, err := c.AuthenticateLocalUser(ctx, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetGroupedTeamUsageSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseAuthenticateLocalUserResponse(rsp) + return http.StatusText(0) } -// ChangeLocalUserPasswordWithBodyWithResponse request with arbitrary body returning *ChangeLocalUserPasswordResponse -func (c *ClientWithResponses) ChangeLocalUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeLocalUserPasswordResponse, error) { - rsp, err := c.ChangeLocalUserPasswordWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetGroupedTeamUsageSummaryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseChangeLocalUserPasswordResponse(rsp) + return 0 } -func (c *ClientWithResponses) ChangeLocalUserPasswordWithResponse(ctx context.Context, body ChangeLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeLocalUserPasswordResponse, error) { - rsp, err := c.ChangeLocalUserPassword(ctx, body, reqEditors...) - if err != nil { - return nil, err +type GetCurrentUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Email string `json:"email"` + + // Enabled Whether the user is enabled + Enabled bool `json:"enabled"` + EventIdentifiers *map[string]interface{} `json:"event_identifiers,omitempty"` + GroupIdentifier *string `json:"group_identifier,omitempty"` + + // ID ID of the User + ID openapi_types.UUID `json:"id"` + LastLoginAt *time.Time `json:"last_login_at,omitempty"` + + // MFAConfigured Whether the user has MFA configured + MFAConfigured bool `json:"mfa_configured"` + + // Name The unique name for the user. + Name *UserName `json:"name,omitempty"` + + // ProfileImageURL Profile image URL of user + ProfileImageURL *string `json:"profile_image_url,omitempty"` + Provider UserProvider `json:"provider"` + + // RegisteredTeamInternal Whether the team is internal or not + RegisteredTeamInternal *bool `json:"registered_team_internal,omitempty"` + + // RegisteredTeamName The name of the team that the platform is registered with + RegisteredTeamName *string `json:"registered_team_name,omitempty"` + Roles []Role `json:"roles"` + + // TrackingOptedIn Whether anonymous user tracking was opted into + TrackingOptedIn *bool `json:"tracking_opted_in,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` } - return ParseChangeLocalUserPasswordResponse(rsp) -} + JSON401 *struct { + Message string `json:"message"` -// UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse -func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { - rsp, err := c.UpdateCustomerWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err + // PasswordResetRequired Whether the user needs to reset their password + PasswordResetRequired *bool `json:"password_reset_required,omitempty"` + Status int `json:"status"` } - return ParseUpdateCustomerResponse(rsp) + JSON403 *Forbidden + JSON500 *InternalError } -func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { - rsp, err := c.UpdateCustomer(ctx, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetCurrentUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateCustomerResponse(rsp) + return http.StatusText(0) } -// SendUserEventWithBodyWithResponse request with arbitrary body returning *SendUserEventResponse -func (c *ClientWithResponses) SendUserEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) { - rsp, err := c.SendUserEventWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetCurrentUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseSendUserEventResponse(rsp) + return 0 } -func (c *ClientWithResponses) SendUserEventWithResponse(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) { - rsp, err := c.SendUserEvent(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSendUserEventResponse(rsp) +type UpdateCurrentUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON405 *MethodNotAllowed + JSON500 *InternalError } -// ListCurrentUserInvitationsWithResponse request returning *ListCurrentUserInvitationsResponse -func (c *ClientWithResponses) ListCurrentUserInvitationsWithResponse(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*ListCurrentUserInvitationsResponse, error) { - rsp, err := c.ListCurrentUserInvitations(ctx, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateCurrentUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListCurrentUserInvitationsResponse(rsp) + return http.StatusText(0) } -// GetCurrentLocalUserWithResponse request returning *GetCurrentLocalUserResponse -func (c *ClientWithResponses) GetCurrentLocalUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentLocalUserResponse, error) { - rsp, err := c.GetCurrentLocalUser(ctx, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCurrentUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetCurrentLocalUserResponse(rsp) + return 0 } -// LogoutUserWithResponse request returning *LogoutUserResponse -func (c *ClientWithResponses) LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error) { - rsp, err := c.LogoutUser(ctx, reqEditors...) - if err != nil { - return nil, err +type SendAnonymousEventResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r SendAnonymousEventResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseLogoutUserResponse(rsp) + return http.StatusText(0) } -// LoginUserWithBodyWithResponse request with arbitrary body returning *LoginUserResponse -func (c *ClientWithResponses) LoginUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) { - rsp, err := c.LoginUserWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r SendAnonymousEventResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseLoginUserResponse(rsp) + return 0 } -func (c *ClientWithResponses) LoginUserWithResponse(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) { - rsp, err := c.LoginUser(ctx, body, reqEditors...) - if err != nil { - return nil, err +type AuthenticateUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + IDToken string `json:"id_token"` } - return ParseLoginUserResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + JSON500 *InternalError } -// GetCurrentUserMembershipsWithResponse request returning *GetCurrentUserMembershipsResponse -func (c *ClientWithResponses) GetCurrentUserMembershipsWithResponse(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*GetCurrentUserMembershipsResponse, error) { - rsp, err := c.GetCurrentUserMemberships(ctx, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AuthenticateUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetCurrentUserMembershipsResponse(rsp) + return http.StatusText(0) } -// ResetLocalUserPasswordWithBodyWithResponse request with arbitrary body returning *ResetLocalUserPasswordResponse -func (c *ClientWithResponses) ResetLocalUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetLocalUserPasswordResponse, error) { - rsp, err := c.ResetLocalUserPasswordWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r AuthenticateUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseResetLocalUserPasswordResponse(rsp) + return 0 } -func (c *ClientWithResponses) ResetLocalUserPasswordWithResponse(ctx context.Context, body ResetLocalUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetLocalUserPasswordResponse, error) { - rsp, err := c.ResetLocalUserPassword(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseResetLocalUserPasswordResponse(rsp) +type ChangeUserPasswordResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateUserTokenWithResponse request returning *CreateUserTokenResponse -func (c *ClientWithResponses) CreateUserTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateUserTokenResponse, error) { - rsp, err := c.CreateUserToken(ctx, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ChangeUserPasswordResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateUserTokenResponse(rsp) + return http.StatusText(0) } -// UserTOTPDeleteWithResponse request returning *UserTOTPDeleteResponse -func (c *ClientWithResponses) UserTOTPDeleteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPDeleteResponse, error) { - rsp, err := c.UserTOTPDelete(ctx, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ChangeUserPasswordResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUserTOTPDeleteResponse(rsp) + return 0 } -// UserTOTPSetupWithResponse request returning *UserTOTPSetupResponse -func (c *ClientWithResponses) UserTOTPSetupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPSetupResponse, error) { - rsp, err := c.UserTOTPSetup(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserTOTPSetupResponse(rsp) +type UpdateCustomerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// UserTOTPVerifyWithBodyWithResponse request with arbitrary body returning *UserTOTPVerifyResponse -func (c *ClientWithResponses) UserTOTPVerifyWithBodyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) { - rsp, err := c.UserTOTPVerifyWithBody(ctx, params, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateCustomerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUserTOTPVerifyResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) UserTOTPVerifyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) { - rsp, err := c.UserTOTPVerify(ctx, params, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCustomerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUserTOTPVerifyResponse(rsp) + return 0 } -// DeleteUserWithResponse request returning *DeleteUserResponse -func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { - rsp, err := c.DeleteUser(ctx, userID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteUserResponse(rsp) +type SendUserEventResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateV2SyncDestinationTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateV2SyncDestinationTestConnectionResponse -func (c *ClientWithResponses) CreateV2SyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) { - rsp, err := c.CreateV2SyncDestinationTestConnectionWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r SendUserEventResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateV2SyncDestinationTestConnectionResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateV2SyncDestinationTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) { - rsp, err := c.CreateV2SyncDestinationTestConnection(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r SendUserEventResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateV2SyncDestinationTestConnectionResponse(rsp) + return 0 } -// GetV2SyncDestinationsWithResponse request returning *GetV2SyncDestinationsResponse -func (c *ClientWithResponses) GetV2SyncDestinationsWithResponse(ctx context.Context, teamName TeamName, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationsResponse, error) { - rsp, err := c.GetV2SyncDestinations(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetV2SyncDestinationsResponse(rsp) +type LogoutUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError } -// CreateV2SyncDestinationWithBodyWithResponse request with arbitrary body returning *CreateV2SyncDestinationResponse -func (c *ClientWithResponses) CreateV2SyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) { - rsp, err := c.CreateV2SyncDestinationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r LogoutUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateV2SyncDestinationResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) { - rsp, err := c.CreateV2SyncDestination(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r LogoutUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateV2SyncDestinationResponse(rsp) + return 0 } -// DeleteV2SyncDestinationWithResponse request returning *DeleteV2SyncDestinationResponse -func (c *ClientWithResponses) DeleteV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteV2SyncDestinationResponse, error) { - rsp, err := c.DeleteV2SyncDestination(ctx, teamName, syncDestinationName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteV2SyncDestinationResponse(rsp) +type LoginUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError } -// GetV2SyncDestinationWithResponse request returning *GetV2SyncDestinationResponse -func (c *ClientWithResponses) GetV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationResponse, error) { - rsp, err := c.GetV2SyncDestination(ctx, teamName, syncDestinationName, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r LoginUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetV2SyncDestinationResponse(rsp) + return http.StatusText(0) } -// PatchV2SyncDestinationWithBodyWithResponse request with arbitrary body returning *PatchV2SyncDestinationResponse -func (c *ClientWithResponses) PatchV2SyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) { - rsp, err := c.PatchV2SyncDestinationWithBody(ctx, teamName, syncDestinationName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r LoginUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePatchV2SyncDestinationResponse(rsp) + return 0 } -func (c *ClientWithResponses) PatchV2SyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) { - rsp, err := c.PatchV2SyncDestination(ctx, teamName, syncDestinationName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePatchV2SyncDestinationResponse(rsp) +type UserTOTPDeleteResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError } -// CreateV2SyncIntegrationTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateV2SyncIntegrationTestConnectionResponse -func (c *ClientWithResponses) CreateV2SyncIntegrationTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) { - rsp, err := c.CreateV2SyncIntegrationTestConnectionWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UserTOTPDeleteResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateV2SyncIntegrationTestConnectionResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateV2SyncIntegrationTestConnectionWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) { - rsp, err := c.CreateV2SyncIntegrationTestConnection(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UserTOTPDeleteResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateV2SyncIntegrationTestConnectionResponse(rsp) + return 0 } -// ListV2SyncIntegrationsWithResponse request returning *ListV2SyncIntegrationsResponse -func (c *ClientWithResponses) ListV2SyncIntegrationsWithResponse(ctx context.Context, teamName TeamName, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*ListV2SyncIntegrationsResponse, error) { - rsp, err := c.ListV2SyncIntegrations(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err +type UserTOTPSetupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Secret string `json:"secret"` + Url string `json:"url"` } - return ParseListV2SyncIntegrationsResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// CreateV2SyncIntegrationWithBodyWithResponse request with arbitrary body returning *CreateV2SyncIntegrationResponse -func (c *ClientWithResponses) CreateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) { - rsp, err := c.CreateV2SyncIntegrationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UserTOTPSetupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateV2SyncIntegrationResponse(rsp) + return http.StatusText(0) } -func (c *ClientWithResponses) CreateV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) { - rsp, err := c.CreateV2SyncIntegration(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UserTOTPSetupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateV2SyncIntegrationResponse(rsp) + return 0 } -// DeleteV2SyncIntegrationWithResponse request returning *DeleteV2SyncIntegrationResponse -func (c *ClientWithResponses) DeleteV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*DeleteV2SyncIntegrationResponse, error) { - rsp, err := c.DeleteV2SyncIntegration(ctx, teamName, syncName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteV2SyncIntegrationResponse(rsp) +type UserTOTPVerifyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + JSON500 *InternalError } -// GetV2SyncIntegrationWithResponse request returning *GetV2SyncIntegrationResponse -func (c *ClientWithResponses) GetV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*GetV2SyncIntegrationResponse, error) { - rsp, err := c.GetV2SyncIntegration(ctx, teamName, syncName, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UserTOTPVerifyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetV2SyncIntegrationResponse(rsp) + return http.StatusText(0) } -// UpdateV2SyncIntegrationWithBodyWithResponse request with arbitrary body returning *UpdateV2SyncIntegrationResponse -func (c *ClientWithResponses) UpdateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) { - rsp, err := c.UpdateV2SyncIntegrationWithBody(ctx, teamName, syncName, contentType, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UserTOTPVerifyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateV2SyncIntegrationResponse(rsp) + return 0 } -func (c *ClientWithResponses) UpdateV2SyncIntegrationWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) { - rsp, err := c.UpdateV2SyncIntegration(ctx, teamName, syncName, body, reqEditors...) - if err != nil { - return nil, err +type ListUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []User `json:"items"` + Metadata ListMetadata `json:"metadata"` } - return ParseUpdateV2SyncIntegrationResponse(rsp) + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } -// ParseIndexResponse parses an HTTP response from a IndexWithResponse call -func ParseIndexResponse(rsp *http.Response) (*IndexResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IndexResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// Status returns HTTPResponse.Status +func (r ListUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest struct { - Errors *[]string `json:"errors,omitempty"` - FieldErrors *map[string]string `json:"field_errors,omitempty"` - Message string `json:"message"` - Status int `json:"status"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - +// StatusCode returns HTTPResponse.StatusCode +func (r ListUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return response, nil + return 0 } -// ParseListAuditLogsResponse parses an HTTP response from a ListAuditLogsWithResponse call -func ParseListAuditLogsResponse(rsp *http.Response) (*ListAuditLogsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type AddUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - response := &ListAuditLogsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// Status returns HTTPResponse.Status +func (r AddUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []AuditLogEvent `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - 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 == 401: - var dest RequiresAuthentication - 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 Forbidden - 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 InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +// StatusCode returns HTTPResponse.StatusCode +func (r AddUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return response, nil + return 0 } -// ParseGetAuditLogResponse parses an HTTP response from a GetAuditLogWithResponse call -func ParseGetAuditLogResponse(rsp *http.Response) (*GetAuditLogResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type DeleteUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - response := &GetAuditLogResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// Status returns HTTPResponse.Status +func (r DeleteUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuditLogEvent - 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 == 401: - var dest RequiresAuthentication - 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 Forbidden - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call -func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &HealthCheckResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 == 500: - var dest InternalError - 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 == 503: - var dest ServiceUnavailable - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest +type UpdateUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} +// Status returns HTTPResponse.Status +func (r UpdateUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseHealthCheckHeadResponse parses an HTTP response from a HealthCheckHeadWithResponse call -func ParseHealthCheckHeadResponse(rsp *http.Response) (*HealthCheckHeadResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &HealthCheckHeadResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +type DeleteUserTOTPResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteUserTOTPResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserTOTPResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +type CreateV2SyncDestinationTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SyncDestinationTestConnectionV2 + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + JSON500 *InternalError +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest ServiceUnavailable - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON503 = &dest +// Status returns HTTPResponse.Status +func (r CreateV2SyncDestinationTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r CreateV2SyncDestinationTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetV2SyncDestinationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncDestinationV2 `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ParseAssetViewGetStatusResponse parses an HTTP response from a AssetViewGetStatusWithResponse call -func ParseAssetViewGetStatusResponse(rsp *http.Response) (*AssetViewGetStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetV2SyncDestinationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &AssetViewGetStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetV2SyncDestinationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // IsRunning Whether the assetview is currently running - IsRunning bool `json:"is_running"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type CreateV2SyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestinationV2 + JSON201 *SyncDestinationV2 + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// Status returns HTTPResponse.Status +func (r CreateV2SyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// StatusCode returns HTTPResponse.StatusCode +func (r CreateV2SyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +type DeleteV2SyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// Status returns HTTPResponse.Status +func (r DeleteV2SyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteV2SyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetV2SyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestinationV2 + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ParseAssetViewTriggerResponse parses an HTTP response from a AssetViewTriggerWithResponse call -func ParseAssetViewTriggerResponse(rsp *http.Response) (*AssetViewTriggerResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetV2SyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &AssetViewTriggerResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetV2SyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 == 403: - var dest Forbidden - 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 == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +type PatchV2SyncDestinationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncDestination + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// Status returns HTTPResponse.Status +func (r PatchV2SyncDestinationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r PatchV2SyncDestinationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type CreateV2SyncIntegrationTestConnectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SyncIntegrationTestConnectionV2 + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + JSON500 *InternalError } -// ParseAssetViewListLogsResponse parses an HTTP response from a AssetViewListLogsWithResponse call -func ParseAssetViewListLogsResponse(rsp *http.Response) (*AssetViewListLogsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateV2SyncIntegrationTestConnectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &AssetViewListLogsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r CreateV2SyncIntegrationTestConnectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []AssetViewRun `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - 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 BadRequest - 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 == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +type ListV2SyncIntegrationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Items []SyncIntegrationExpandedV2 `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// Status returns HTTPResponse.Status +func (r ListV2SyncIntegrationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListV2SyncIntegrationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type CreateV2SyncIntegrationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SyncIntegrationV2 + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// ParseManageGetSAMLResponse parses an HTTP response from a ManageGetSAMLWithResponse call -func ParseManageGetSAMLResponse(rsp *http.Response) (*ManageGetSAMLResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateV2SyncIntegrationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ManageGetSAMLResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r CreateV2SyncIntegrationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SAMLConfig - 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 BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +type DeleteV2SyncIntegrationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// Status returns HTTPResponse.Status +func (r DeleteV2SyncIntegrationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteV2SyncIntegrationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type GetV2SyncIntegrationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncIntegrationExpandedV2 + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ParseManageUpdateSAMLResponse parses an HTTP response from a ManageUpdateSAMLWithResponse call -func ParseManageUpdateSAMLResponse(rsp *http.Response) (*ManageUpdateSAMLResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetV2SyncIntegrationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ManageUpdateSAMLResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GetV2SyncIntegrationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SAMLConfig - 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 BadRequest - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +type UpdateV2SyncIntegrationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SyncIntegrationV2 + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// Status returns HTTPResponse.Status +func (r UpdateV2SyncIntegrationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateV2SyncIntegrationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} +// IndexWithResponse request returning *IndexResponse +func (c *ClientWithResponses) IndexWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IndexResponse, error) { + rsp, err := c.Index(ctx, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseIndexResponse(rsp) } -// ParseManageGetPlatformRegistryResponse parses an HTTP response from a ManageGetPlatformRegistryWithResponse call -func ParseManageGetPlatformRegistryResponse(rsp *http.Response) (*ManageGetPlatformRegistryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListAllAlertsWithResponse request returning *ListAllAlertsResponse +func (c *ClientWithResponses) ListAllAlertsWithResponse(ctx context.Context, params *ListAllAlertsParams, reqEditors ...RequestEditorFn) (*ListAllAlertsResponse, error) { + rsp, err := c.ListAllAlerts(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseListAllAlertsResponse(rsp) +} - response := &ManageGetPlatformRegistryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// TestUnsavedAlertWithBodyWithResponse request with arbitrary body returning *TestUnsavedAlertResponse +func (c *ClientWithResponses) TestUnsavedAlertWithBodyWithResponse(ctx context.Context, params *TestUnsavedAlertParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) { + rsp, err := c.TestUnsavedAlertWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseTestUnsavedAlertResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // ActivationID Activation ID - ActivationID *openapi_types.UUID `json:"activation_id,omitempty"` - - // APIKeyLastFour Last 4 characters of the API key - APIKeyLastFour *string `json:"api_key_last_four,omitempty"` - - // InstallationID Installation ID - InstallationID string `json:"installation_id"` - - // LastActivatedAt Timestamp of the last activation - LastActivatedAt *time.Time `json:"last_activated_at,omitempty"` - - // NextActivationAt Timestamp of the next activation - NextActivationAt *time.Time `json:"next_activation_at,omitempty"` - - // OfflineLicenseExpiresAt Timestamp of the offline license expiration - OfflineLicenseExpiresAt *time.Time `json:"offline_license_expires_at,omitempty"` - - // OfflineLicenseRegisteredTo Name the offline license is registered to - OfflineLicenseRegisteredTo *string `json:"offline_license_registered_to,omitempty"` - - // TeamName Name of the team that was activated - TeamName *string `json:"team_name,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 BadRequest - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +func (c *ClientWithResponses) TestUnsavedAlertWithResponse(ctx context.Context, params *TestUnsavedAlertParams, body TestUnsavedAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedAlertResponse, error) { + rsp, err := c.TestUnsavedAlert(ctx, params, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseTestUnsavedAlertResponse(rsp) } -// ParseManageRegisterPlatformResponse parses an HTTP response from a ManageRegisterPlatformWithResponse call -func ParseManageRegisterPlatformResponse(rsp *http.Response) (*ManageRegisterPlatformResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListAPIKeysWithResponse request returning *ListAPIKeysResponse +func (c *ClientWithResponses) ListAPIKeysWithResponse(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error) { + rsp, err := c.ListAPIKeys(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseListAPIKeysResponse(rsp) +} - response := &ManageRegisterPlatformResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// CreateAPIKeyWithBodyWithResponse request with arbitrary body returning *CreateAPIKeyResponse +func (c *ClientWithResponses) CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error) { + rsp, err := c.CreateAPIKeyWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateAPIKeyResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // TeamName Name of the team that was activated - TeamName string `json:"team_name"` - } - 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 == 205: - var dest struct { - // ButtonText Text for the button - ButtonText *string `json:"button_text,omitempty"` - - // ButtonURL URL for the button - ButtonURL *string `json:"button_url,omitempty"` - - // Error Error message - Error string `json:"error"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON205 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +func (c *ClientWithResponses) CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error) { + rsp, err := c.CreateAPIKey(ctx, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateAPIKeyResponse(rsp) } -// ParseManageRegisterPlatformWithOfflineLicenseResponse parses an HTTP response from a ManageRegisterPlatformWithOfflineLicenseWithResponse call -func ParseManageRegisterPlatformWithOfflineLicenseResponse(rsp *http.Response) (*ManageRegisterPlatformWithOfflineLicenseResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DeleteAPIKeyWithResponse request returning *DeleteAPIKeyResponse +func (c *ClientWithResponses) DeleteAPIKeyWithResponse(ctx context.Context, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*DeleteAPIKeyResponse, error) { + rsp, err := c.DeleteAPIKey(ctx, apiKeyID, reqEditors...) if err != nil { return nil, err } + return ParseDeleteAPIKeyResponse(rsp) +} - response := &ManageRegisterPlatformWithOfflineLicenseResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListAuditLogsWithResponse request returning *ListAuditLogsResponse +func (c *ClientWithResponses) ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error) { + rsp, err := c.ListAuditLogs(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListAuditLogsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // ExpiresAt Timestamp of the offline license expiration - ExpiresAt time.Time `json:"expires_at"` - - // RegisteredTo Name the offline license is registered to - RegisteredTo string `json:"registered_to"` - } - 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 BadRequest - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +// GetAuditLogWithResponse request returning *GetAuditLogResponse +func (c *ClientWithResponses) GetAuditLogWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuditLogResponse, error) { + rsp, err := c.GetAuditLog(ctx, id, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetAuditLogResponse(rsp) } -// ParseGetSettingsResponse parses an HTTP response from a GetSettingsWithResponse call -func ParseGetSettingsResponse(rsp *http.Response) (*GetSettingsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetSAMLWithResponse request returning *GetSAMLResponse +func (c *ClientWithResponses) GetSAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSAMLResponse, error) { + rsp, err := c.GetSAML(ctx, reqEditors...) if err != nil { return nil, err } + return ParseGetSAMLResponse(rsp) +} - response := &GetSettingsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateSAMLWithBodyWithResponse request with arbitrary body returning *UpdateSAMLResponse +func (c *ClientWithResponses) UpdateSAMLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSAMLResponse, error) { + rsp, err := c.UpdateSAMLWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateSAMLResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PlatformSettings - 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 == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) UpdateSAMLWithResponse(ctx context.Context, body UpdateSAMLJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAMLResponse, error) { + rsp, err := c.UpdateSAML(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSAMLResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// DeleteSAMLRolloverCertificateWithBodyWithResponse request with arbitrary body returning *DeleteSAMLRolloverCertificateResponse +func (c *ClientWithResponses) DeleteSAMLRolloverCertificateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSAMLRolloverCertificateResponse, error) { + rsp, err := c.DeleteSAMLRolloverCertificateWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSAMLRolloverCertificateResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +func (c *ClientWithResponses) DeleteSAMLRolloverCertificateWithResponse(ctx context.Context, body DeleteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSAMLRolloverCertificateResponse, error) { + rsp, err := c.DeleteSAMLRolloverCertificate(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSAMLRolloverCertificateResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// CreateSAMLRolloverCertificateWithResponse request returning *CreateSAMLRolloverCertificateResponse +func (c *ClientWithResponses) CreateSAMLRolloverCertificateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateSAMLRolloverCertificateResponse, error) { + rsp, err := c.CreateSAMLRolloverCertificate(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSAMLRolloverCertificateResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// PromoteSAMLRolloverCertificateWithBodyWithResponse request with arbitrary body returning *PromoteSAMLRolloverCertificateResponse +func (c *ClientWithResponses) PromoteSAMLRolloverCertificateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSAMLRolloverCertificateResponse, error) { + rsp, err := c.PromoteSAMLRolloverCertificateWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePromoteSAMLRolloverCertificateResponse(rsp) +} +func (c *ClientWithResponses) PromoteSAMLRolloverCertificateWithResponse(ctx context.Context, body PromoteSAMLRolloverCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSAMLRolloverCertificateResponse, error) { + rsp, err := c.PromoteSAMLRolloverCertificate(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParsePromoteSAMLRolloverCertificateResponse(rsp) +} - return response, nil +// CreateConversationWithBodyWithResponse request with arbitrary body returning *CreateConversationResponse +func (c *ClientWithResponses) CreateConversationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) { + rsp, err := c.CreateConversationWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateConversationResponse(rsp) } -// ParseUpdateSettingsResponse parses an HTTP response from a UpdateSettingsWithResponse call -func ParseUpdateSettingsResponse(rsp *http.Response) (*UpdateSettingsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateConversationWithResponse(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConversationResponse, error) { + rsp, err := c.CreateConversation(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateConversationResponse(rsp) +} - response := &UpdateSettingsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetConversationWithResponse request returning *GetConversationResponse +func (c *ClientWithResponses) GetConversationWithResponse(ctx context.Context, conversationID ConversationID, reqEditors ...RequestEditorFn) (*GetConversationResponse, error) { + rsp, err := c.GetConversation(ctx, conversationID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetConversationResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PlatformSettings - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// SendMessageWithBodyWithResponse request with arbitrary body returning *SendMessageResponse +func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, conversationID ConversationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) { + rsp, err := c.SendMessageWithBody(ctx, conversationID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendMessageResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, conversationID ConversationID, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error) { + rsp, err := c.SendMessage(ctx, conversationID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendMessageResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// ListAllCustomColumnsWithResponse request returning *ListAllCustomColumnsResponse +func (c *ClientWithResponses) ListAllCustomColumnsWithResponse(ctx context.Context, params *ListAllCustomColumnsParams, reqEditors ...RequestEditorFn) (*ListAllCustomColumnsResponse, error) { + rsp, err := c.ListAllCustomColumns(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListAllCustomColumnsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// SaveCustomColumnWithBodyWithResponse request with arbitrary body returning *SaveCustomColumnResponse +func (c *ClientWithResponses) SaveCustomColumnWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) { + rsp, err := c.SaveCustomColumnWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSaveCustomColumnResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +func (c *ClientWithResponses) SaveCustomColumnWithResponse(ctx context.Context, body SaveCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveCustomColumnResponse, error) { + rsp, err := c.SaveCustomColumn(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSaveCustomColumnResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// DeleteCustomColumnWithResponse request returning *DeleteCustomColumnResponse +func (c *ClientWithResponses) DeleteCustomColumnWithResponse(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*DeleteCustomColumnResponse, error) { + rsp, err := c.DeleteCustomColumn(ctx, customColumnID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteCustomColumnResponse(rsp) +} +// GetCustomColumnWithResponse request returning *GetCustomColumnResponse +func (c *ClientWithResponses) GetCustomColumnWithResponse(ctx context.Context, customColumnID CustomColumnID, reqEditors ...RequestEditorFn) (*GetCustomColumnResponse, error) { + rsp, err := c.GetCustomColumn(ctx, customColumnID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetCustomColumnResponse(rsp) +} - return response, nil +// UpdateCustomColumnWithBodyWithResponse request with arbitrary body returning *UpdateCustomColumnResponse +func (c *ClientWithResponses) UpdateCustomColumnWithBodyWithResponse(ctx context.Context, customColumnID CustomColumnID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) { + rsp, err := c.UpdateCustomColumnWithBody(ctx, customColumnID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomColumnResponse(rsp) } -// ParseManageListAllTeamsResponse parses an HTTP response from a ManageListAllTeamsWithResponse call -func ParseManageListAllTeamsResponse(rsp *http.Response) (*ManageListAllTeamsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) UpdateCustomColumnWithResponse(ctx context.Context, customColumnID CustomColumnID, body UpdateCustomColumnJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomColumnResponse, error) { + rsp, err := c.UpdateCustomColumn(ctx, customColumnID, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateCustomColumnResponse(rsp) +} - response := &ManageListAllTeamsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListFiltersWithResponse request returning *ListFiltersResponse +func (c *ClientWithResponses) ListFiltersWithResponse(ctx context.Context, params *ListFiltersParams, reqEditors ...RequestEditorFn) (*ListFiltersResponse, error) { + rsp, err := c.ListFilters(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListFiltersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []Team `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// ListFilterTagsWithResponse request returning *ListFilterTagsResponse +func (c *ClientWithResponses) ListFilterTagsWithResponse(ctx context.Context, params *ListFilterTagsParams, reqEditors ...RequestEditorFn) (*ListFilterTagsResponse, error) { + rsp, err := c.ListFilterTags(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListFilterTagsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// DeleteFilterWithResponse request returning *DeleteFilterResponse +func (c *ClientWithResponses) DeleteFilterWithResponse(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*DeleteFilterResponse, error) { + rsp, err := c.DeleteFilter(ctx, filterID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// GetFilterByIDWithResponse request returning *GetFilterByIDResponse +func (c *ClientWithResponses) GetFilterByIDWithResponse(ctx context.Context, filterID FilterID, reqEditors ...RequestEditorFn) (*GetFilterByIDResponse, error) { + rsp, err := c.GetFilterByID(ctx, filterID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilterByIDResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// UpdateFilterWithBodyWithResponse request with arbitrary body returning *UpdateFilterResponse +func (c *ClientWithResponses) UpdateFilterWithBodyWithResponse(ctx context.Context, filterID FilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error) { + rsp, err := c.UpdateFilterWithBody(ctx, filterID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +func (c *ClientWithResponses) UpdateFilterWithResponse(ctx context.Context, filterID FilterID, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error) { + rsp, err := c.UpdateFilter(ctx, filterID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// HealthCheckWithResponse request returning *HealthCheckResponse +func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) { + rsp, err := c.HealthCheck(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseHealthCheckResponse(rsp) +} +// HealthCheckHeadWithResponse request returning *HealthCheckHeadResponse +func (c *ClientWithResponses) HealthCheckHeadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckHeadResponse, error) { + rsp, err := c.HealthCheckHead(ctx, reqEditors...) + if err != nil { + return nil, err } + return ParseHealthCheckHeadResponse(rsp) +} - return response, nil +// ListPlatformInsightsWithResponse request returning *ListPlatformInsightsResponse +func (c *ClientWithResponses) ListPlatformInsightsWithResponse(ctx context.Context, params *ListPlatformInsightsParams, reqEditors ...RequestEditorFn) (*ListPlatformInsightsResponse, error) { + rsp, err := c.ListPlatformInsights(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPlatformInsightsResponse(rsp) } -// ParseManageDeleteTeamResponse parses an HTTP response from a ManageDeleteTeamWithResponse call -func ParseManageDeleteTeamResponse(rsp *http.Response) (*ManageDeleteTeamResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetPlatformAssetInsightsWithResponse request returning *GetPlatformAssetInsightsResponse +func (c *ClientWithResponses) GetPlatformAssetInsightsWithResponse(ctx context.Context, assetID AssetID, params *GetPlatformAssetInsightsParams, reqEditors ...RequestEditorFn) (*GetPlatformAssetInsightsResponse, error) { + rsp, err := c.GetPlatformAssetInsights(ctx, assetID, params, reqEditors...) if err != nil { return nil, err } + return ParseGetPlatformAssetInsightsResponse(rsp) +} - response := &ManageDeleteTeamResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetPlatformInsightColumnDistinctValuesWithResponse request returning *GetPlatformInsightColumnDistinctValuesResponse +func (c *ClientWithResponses) GetPlatformInsightColumnDistinctValuesWithResponse(ctx context.Context, insightColumnName InsightColumnName, params *GetPlatformInsightColumnDistinctValuesParams, reqEditors ...RequestEditorFn) (*GetPlatformInsightColumnDistinctValuesResponse, error) { + rsp, err := c.GetPlatformInsightColumnDistinctValues(ctx, insightColumnName, params, reqEditors...) + if err != nil { + return nil, err } + return ParseGetPlatformInsightColumnDistinctValuesResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// PlatformListInsightFiltersWithResponse request returning *PlatformListInsightFiltersResponse +func (c *ClientWithResponses) PlatformListInsightFiltersWithResponse(ctx context.Context, params *PlatformListInsightFiltersParams, reqEditors ...RequestEditorFn) (*PlatformListInsightFiltersResponse, error) { + rsp, err := c.PlatformListInsightFilters(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePlatformListInsightFiltersResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// PlatformCreateInsightFilterWithBodyWithResponse request with arbitrary body returning *PlatformCreateInsightFilterResponse +func (c *ClientWithResponses) PlatformCreateInsightFilterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformCreateInsightFilterResponse, error) { + rsp, err := c.PlatformCreateInsightFilterWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePlatformCreateInsightFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) PlatformCreateInsightFilterWithResponse(ctx context.Context, body PlatformCreateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformCreateInsightFilterResponse, error) { + rsp, err := c.PlatformCreateInsightFilter(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePlatformCreateInsightFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// PlatformDeleteInsightFilterWithResponse request returning *PlatformDeleteInsightFilterResponse +func (c *ClientWithResponses) PlatformDeleteInsightFilterWithResponse(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*PlatformDeleteInsightFilterResponse, error) { + rsp, err := c.PlatformDeleteInsightFilter(ctx, insightFilterID, reqEditors...) + if err != nil { + return nil, err + } + return ParsePlatformDeleteInsightFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// PlatformGetInsightFilterByIDWithResponse request returning *PlatformGetInsightFilterByIDResponse +func (c *ClientWithResponses) PlatformGetInsightFilterByIDWithResponse(ctx context.Context, insightFilterID InsightFilterID, reqEditors ...RequestEditorFn) (*PlatformGetInsightFilterByIDResponse, error) { + rsp, err := c.PlatformGetInsightFilterByID(ctx, insightFilterID, reqEditors...) + if err != nil { + return nil, err + } + return ParsePlatformGetInsightFilterByIDResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// PlatformUpdateInsightFilterWithBodyWithResponse request with arbitrary body returning *PlatformUpdateInsightFilterResponse +func (c *ClientWithResponses) PlatformUpdateInsightFilterWithBodyWithResponse(ctx context.Context, insightFilterID InsightFilterID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformUpdateInsightFilterResponse, error) { + rsp, err := c.PlatformUpdateInsightFilterWithBody(ctx, insightFilterID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePlatformUpdateInsightFilterResponse(rsp) +} +func (c *ClientWithResponses) PlatformUpdateInsightFilterWithResponse(ctx context.Context, insightFilterID InsightFilterID, body PlatformUpdateInsightFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformUpdateInsightFilterResponse, error) { + rsp, err := c.PlatformUpdateInsightFilter(ctx, insightFilterID, body, reqEditors...) + if err != nil { + return nil, err } + return ParsePlatformUpdateInsightFilterResponse(rsp) +} - return response, nil +// GetPlatformInsightWithResponse request returning *GetPlatformInsightResponse +func (c *ClientWithResponses) GetPlatformInsightWithResponse(ctx context.Context, insightID InsightID, reqEditors ...RequestEditorFn) (*GetPlatformInsightResponse, error) { + rsp, err := c.GetPlatformInsight(ctx, insightID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPlatformInsightResponse(rsp) } -// ParseManageGetTeamResponse parses an HTTP response from a ManageGetTeamWithResponse call -func ParseManageGetTeamResponse(rsp *http.Response) (*ManageGetTeamResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetPlatformInsightAssetsWithResponse request returning *GetPlatformInsightAssetsResponse +func (c *ClientWithResponses) GetPlatformInsightAssetsWithResponse(ctx context.Context, insightID InsightID, params *GetPlatformInsightAssetsParams, reqEditors ...RequestEditorFn) (*GetPlatformInsightAssetsResponse, error) { + rsp, err := c.GetPlatformInsightAssets(ctx, insightID, params, reqEditors...) if err != nil { return nil, err } + return ParseGetPlatformInsightAssetsResponse(rsp) +} - response := &ManageGetTeamResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListNotificationsWithResponse request returning *ListNotificationsResponse +func (c *ClientWithResponses) ListNotificationsWithResponse(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*ListNotificationsResponse, error) { + rsp, err := c.ListNotifications(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListNotificationsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Team - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// DeleteNotificationDestinationWithResponse request returning *DeleteNotificationDestinationResponse +func (c *ClientWithResponses) DeleteNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*DeleteNotificationDestinationResponse, error) { + rsp, err := c.DeleteNotificationDestination(ctx, notificationDestinationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteNotificationDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// GetNotificationDestinationWithResponse request returning *GetNotificationDestinationResponse +func (c *ClientWithResponses) GetNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*GetNotificationDestinationResponse, error) { + rsp, err := c.GetNotificationDestination(ctx, notificationDestinationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNotificationDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// UpdateNotificationDestinationWithBodyWithResponse request with arbitrary body returning *UpdateNotificationDestinationResponse +func (c *ClientWithResponses) UpdateNotificationDestinationWithBodyWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) { + rsp, err := c.UpdateNotificationDestinationWithBody(ctx, notificationDestinationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateNotificationDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) UpdateNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, body UpdateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationDestinationResponse, error) { + rsp, err := c.UpdateNotificationDestination(ctx, notificationDestinationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateNotificationDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// GetNotificationDestinationAlertsWithResponse request returning *GetNotificationDestinationAlertsResponse +func (c *ClientWithResponses) GetNotificationDestinationAlertsWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, params *GetNotificationDestinationAlertsParams, reqEditors ...RequestEditorFn) (*GetNotificationDestinationAlertsResponse, error) { + rsp, err := c.GetNotificationDestinationAlerts(ctx, notificationDestinationId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNotificationDestinationAlertsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// TestNotificationDestinationWithResponse request returning *TestNotificationDestinationResponse +func (c *ClientWithResponses) TestNotificationDestinationWithResponse(ctx context.Context, notificationDestinationId NotificationDestinationId, reqEditors ...RequestEditorFn) (*TestNotificationDestinationResponse, error) { + rsp, err := c.TestNotificationDestination(ctx, notificationDestinationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseTestNotificationDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// ListAllNotificationDestinationsWithResponse request returning *ListAllNotificationDestinationsResponse +func (c *ClientWithResponses) ListAllNotificationDestinationsWithResponse(ctx context.Context, params *ListAllNotificationDestinationsParams, reqEditors ...RequestEditorFn) (*ListAllNotificationDestinationsResponse, error) { + rsp, err := c.ListAllNotificationDestinations(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListAllNotificationDestinationsResponse(rsp) +} +// CreateNotificationDestinationWithBodyWithResponse request with arbitrary body returning *CreateNotificationDestinationResponse +func (c *ClientWithResponses) CreateNotificationDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) { + rsp, err := c.CreateNotificationDestinationWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateNotificationDestinationResponse(rsp) +} - return response, nil +func (c *ClientWithResponses) CreateNotificationDestinationWithResponse(ctx context.Context, body CreateNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationDestinationResponse, error) { + rsp, err := c.CreateNotificationDestination(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateNotificationDestinationResponse(rsp) } -// ParseManageRemoveTeamMemberResponse parses an HTTP response from a ManageRemoveTeamMemberWithResponse call -func ParseManageRemoveTeamMemberResponse(rsp *http.Response) (*ManageRemoveTeamMemberResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// TestUnsavedNotificationDestinationWithBodyWithResponse request with arbitrary body returning *TestUnsavedNotificationDestinationResponse +func (c *ClientWithResponses) TestUnsavedNotificationDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) { + rsp, err := c.TestUnsavedNotificationDestinationWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseTestUnsavedNotificationDestinationResponse(rsp) +} - response := &ManageRemoveTeamMemberResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) TestUnsavedNotificationDestinationWithResponse(ctx context.Context, body TestUnsavedNotificationDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUnsavedNotificationDestinationResponse, error) { + rsp, err := c.TestUnsavedNotificationDestination(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseTestUnsavedNotificationDestinationResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// CreateAWSCUROnboardingWithResponse request returning *CreateAWSCUROnboardingResponse +func (c *ClientWithResponses) CreateAWSCUROnboardingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateAWSCUROnboardingResponse, error) { + rsp, err := c.CreateAWSCUROnboarding(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAWSCUROnboardingResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// GetAWSCUROnboardingWithResponse request returning *GetAWSCUROnboardingResponse +func (c *ClientWithResponses) GetAWSCUROnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSCUROnboardingResponse, error) { + rsp, err := c.GetAWSCUROnboarding(ctx, onboardingID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAWSCUROnboardingResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// NotifyAWSCUROnboardingWithBodyWithResponse request with arbitrary body returning *NotifyAWSCUROnboardingResponse +func (c *ClientWithResponses) NotifyAWSCUROnboardingWithBodyWithResponse(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NotifyAWSCUROnboardingResponse, error) { + rsp, err := c.NotifyAWSCUROnboardingWithBody(ctx, onboardingID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseNotifyAWSCUROnboardingResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +func (c *ClientWithResponses) NotifyAWSCUROnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, body NotifyAWSCUROnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*NotifyAWSCUROnboardingResponse, error) { + rsp, err := c.NotifyAWSCUROnboarding(ctx, onboardingID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseNotifyAWSCUROnboardingResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// VerifyAWSCUROnboardingWithResponse request returning *VerifyAWSCUROnboardingResponse +func (c *ClientWithResponses) VerifyAWSCUROnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*VerifyAWSCUROnboardingResponse, error) { + rsp, err := c.VerifyAWSCUROnboarding(ctx, onboardingID, reqEditors...) + if err != nil { + return nil, err + } + return ParseVerifyAWSCUROnboardingResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// CreateAWSOnboardingWithBodyWithResponse request with arbitrary body returning *CreateAWSOnboardingResponse +func (c *ClientWithResponses) CreateAWSOnboardingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) { + rsp, err := c.CreateAWSOnboardingWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAWSOnboardingResponse(rsp) +} +func (c *ClientWithResponses) CreateAWSOnboardingWithResponse(ctx context.Context, body CreateAWSOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAWSOnboardingResponse, error) { + rsp, err := c.CreateAWSOnboarding(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateAWSOnboardingResponse(rsp) +} - return response, nil +// GetAWSOnboardingWithResponse request returning *GetAWSOnboardingResponse +func (c *ClientWithResponses) GetAWSOnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSOnboardingResponse, error) { + rsp, err := c.GetAWSOnboarding(ctx, onboardingID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAWSOnboardingResponse(rsp) } -// ParseManageListTeamMembersResponse parses an HTTP response from a ManageListTeamMembersWithResponse call -func ParseManageListTeamMembersResponse(rsp *http.Response) (*ManageListTeamMembersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetAWSAccountsInRootWithResponse request returning *GetAWSAccountsInRootResponse +func (c *ClientWithResponses) GetAWSAccountsInRootWithResponse(ctx context.Context, onboardingID OnboardingID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInRootResponse, error) { + rsp, err := c.GetAWSAccountsInRoot(ctx, onboardingID, reqEditors...) if err != nil { return nil, err } + return ParseGetAWSAccountsInRootResponse(rsp) +} - response := &ManageListTeamMembersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ProvisionOnboardingConfigurationWithBodyWithResponse request with arbitrary body returning *ProvisionOnboardingConfigurationResponse +func (c *ClientWithResponses) ProvisionOnboardingConfigurationWithBodyWithResponse(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) { + rsp, err := c.ProvisionOnboardingConfigurationWithBody(ctx, onboardingID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseProvisionOnboardingConfigurationResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []MembershipWithUser `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +func (c *ClientWithResponses) ProvisionOnboardingConfigurationWithResponse(ctx context.Context, onboardingID OnboardingID, body ProvisionOnboardingConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*ProvisionOnboardingConfigurationResponse, error) { + rsp, err := c.ProvisionOnboardingConfiguration(ctx, onboardingID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseProvisionOnboardingConfigurationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// GetAWSAccountsInParentWithResponse request returning *GetAWSAccountsInParentResponse +func (c *ClientWithResponses) GetAWSAccountsInParentWithResponse(ctx context.Context, onboardingID OnboardingID, organizationalUnitID OrganizationalUnitID, reqEditors ...RequestEditorFn) (*GetAWSAccountsInParentResponse, error) { + rsp, err := c.GetAWSAccountsInParent(ctx, onboardingID, organizationalUnitID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAWSAccountsInParentResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// NotifyOnboardingWithBodyWithResponse request with arbitrary body returning *NotifyOnboardingResponse +func (c *ClientWithResponses) NotifyOnboardingWithBodyWithResponse(ctx context.Context, onboardingID OnboardingID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) { + rsp, err := c.NotifyOnboardingWithBody(ctx, onboardingID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseNotifyOnboardingResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) NotifyOnboardingWithResponse(ctx context.Context, onboardingID OnboardingID, body NotifyOnboardingJSONRequestBody, reqEditors ...RequestEditorFn) (*NotifyOnboardingResponse, error) { + rsp, err := c.NotifyOnboarding(ctx, onboardingID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseNotifyOnboardingResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// GetOpenAPIJSONWithResponse request returning *GetOpenAPIJSONResponse +func (c *ClientWithResponses) GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error) { + rsp, err := c.GetOpenAPIJSON(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOpenAPIJSONResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// GetPlatformInfoWithResponse request returning *GetPlatformInfoResponse +func (c *ClientWithResponses) GetPlatformInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlatformInfoResponse, error) { + rsp, err := c.GetPlatformInfo(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPlatformInfoResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// ListPlatformVersionsWithResponse request returning *ListPlatformVersionsResponse +func (c *ClientWithResponses) ListPlatformVersionsWithResponse(ctx context.Context, params *ListPlatformVersionsParams, reqEditors ...RequestEditorFn) (*ListPlatformVersionsResponse, error) { + rsp, err := c.ListPlatformVersions(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPlatformVersionsResponse(rsp) +} +// ListPluginsWithResponse request returning *ListPluginsResponse +func (c *ClientWithResponses) ListPluginsWithResponse(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*ListPluginsResponse, error) { + rsp, err := c.ListPlugins(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListPluginsResponse(rsp) +} - return response, nil +// GetPluginWithResponse request returning *GetPluginResponse +func (c *ClientWithResponses) GetPluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginResponse, error) { + rsp, err := c.GetPlugin(ctx, teamName, pluginKind, pluginName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPluginResponse(rsp) } -// ParseManageAddTeamMemberResponse parses an HTTP response from a ManageAddTeamMemberWithResponse call -func ParseManageAddTeamMemberResponse(rsp *http.Response) (*ManageAddTeamMemberResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListPluginVersionsWithResponse request returning *ListPluginVersionsResponse +func (c *ClientWithResponses) ListPluginVersionsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionsResponse, error) { + rsp, err := c.ListPluginVersions(ctx, teamName, pluginKind, pluginName, params, reqEditors...) if err != nil { return nil, err } + return ParseListPluginVersionsResponse(rsp) +} - response := &ManageAddTeamMemberResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetPluginVersionWithResponse request returning *GetPluginVersionResponse +func (c *ClientWithResponses) GetPluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetPluginVersionResponse, error) { + rsp, err := c.GetPluginVersion(ctx, teamName, pluginKind, pluginName, versionName, reqEditors...) + if err != nil { + return nil, err } + return ParseGetPluginVersionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// DownloadPluginAssetWithResponse request returning *DownloadPluginAssetResponse +func (c *ClientWithResponses) DownloadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetResponse, error) { + rsp, err := c.DownloadPluginAsset(ctx, teamName, pluginKind, pluginName, versionName, targetName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDownloadPluginAssetResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// ListPluginVersionTablesWithResponse request returning *ListPluginVersionTablesResponse +func (c *ClientWithResponses) ListPluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*ListPluginVersionTablesResponse, error) { + rsp, err := c.ListPluginVersionTables(ctx, teamName, pluginKind, pluginName, versionName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPluginVersionTablesResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// GetPluginVersionTableWithResponse request returning *GetPluginVersionTableResponse +func (c *ClientWithResponses) GetPluginVersionTableWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*GetPluginVersionTableResponse, error) { + rsp, err := c.GetPluginVersionTable(ctx, teamName, pluginKind, pluginName, versionName, tableName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPluginVersionTableResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// ListPoliciesWithResponse request returning *ListPoliciesResponse +func (c *ClientWithResponses) ListPoliciesWithResponse(ctx context.Context, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error) { + rsp, err := c.ListPolicies(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPoliciesResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// CreatePolicyWithBodyWithResponse request with arbitrary body returning *CreatePolicyResponse +func (c *ClientWithResponses) CreatePolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) { + rsp, err := c.CreatePolicyWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePolicyResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) CreatePolicyWithResponse(ctx context.Context, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) { + rsp, err := c.CreatePolicy(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePolicyResponse(rsp) +} +// GetPolicyMetricsWithResponse request returning *GetPolicyMetricsResponse +func (c *ClientWithResponses) GetPolicyMetricsWithResponse(ctx context.Context, params *GetPolicyMetricsParams, reqEditors ...RequestEditorFn) (*GetPolicyMetricsResponse, error) { + rsp, err := c.GetPolicyMetrics(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseGetPolicyMetricsResponse(rsp) +} - return response, nil +// GetViolationsByDomainWithResponse request returning *GetViolationsByDomainResponse +func (c *ClientWithResponses) GetViolationsByDomainWithResponse(ctx context.Context, params *GetViolationsByDomainParams, reqEditors ...RequestEditorFn) (*GetViolationsByDomainResponse, error) { + rsp, err := c.GetViolationsByDomain(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetViolationsByDomainResponse(rsp) } -// ParseListLocalUsersResponse parses an HTTP response from a ListLocalUsersWithResponse call -func ParseListLocalUsersResponse(rsp *http.Response) (*ListLocalUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetViolationsHistoryWithResponse request returning *GetViolationsHistoryResponse +func (c *ClientWithResponses) GetViolationsHistoryWithResponse(ctx context.Context, params *GetViolationsHistoryParams, reqEditors ...RequestEditorFn) (*GetViolationsHistoryResponse, error) { + rsp, err := c.GetViolationsHistory(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseGetViolationsHistoryResponse(rsp) +} - response := &ListLocalUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeletePolicyWithResponse request returning *DeletePolicyResponse +func (c *ClientWithResponses) DeletePolicyWithResponse(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error) { + rsp, err := c.DeletePolicy(ctx, policyID, reqEditors...) + if err != nil { + return nil, err } + return ParseDeletePolicyResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []LocalUser `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetPolicyWithResponse request returning *GetPolicyResponse +func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) { + rsp, err := c.GetPolicy(ctx, policyID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPolicyResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// UpdatePolicyWithBodyWithResponse request with arbitrary body returning *UpdatePolicyResponse +func (c *ClientWithResponses) UpdatePolicyWithBodyWithResponse(ctx context.Context, policyID PolicyID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) { + rsp, err := c.UpdatePolicyWithBody(ctx, policyID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePolicyResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) UpdatePolicyWithResponse(ctx context.Context, policyID PolicyID, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) { + rsp, err := c.UpdatePolicy(ctx, policyID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePolicyResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// TogglePolicyWithResponse request returning *TogglePolicyResponse +func (c *ClientWithResponses) TogglePolicyWithResponse(ctx context.Context, policyID PolicyID, reqEditors ...RequestEditorFn) (*TogglePolicyResponse, error) { + rsp, err := c.TogglePolicy(ctx, policyID, reqEditors...) + if err != nil { + return nil, err + } + return ParseTogglePolicyResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// GetPolicyViolationsWithResponse request returning *GetPolicyViolationsResponse +func (c *ClientWithResponses) GetPolicyViolationsWithResponse(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsParams, reqEditors ...RequestEditorFn) (*GetPolicyViolationsResponse, error) { + rsp, err := c.GetPolicyViolations(ctx, policyID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPolicyViolationsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// GetPolicyViolationsHistoryWithResponse request returning *GetPolicyViolationsHistoryResponse +func (c *ClientWithResponses) GetPolicyViolationsHistoryWithResponse(ctx context.Context, policyID PolicyID, params *GetPolicyViolationsHistoryParams, reqEditors ...RequestEditorFn) (*GetPolicyViolationsHistoryResponse, error) { + rsp, err := c.GetPolicyViolationsHistory(ctx, policyID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPolicyViolationsHistoryResponse(rsp) +} +// ListPolicyGroupsWithResponse request returning *ListPolicyGroupsResponse +func (c *ClientWithResponses) ListPolicyGroupsWithResponse(ctx context.Context, params *ListPolicyGroupsParams, reqEditors ...RequestEditorFn) (*ListPolicyGroupsResponse, error) { + rsp, err := c.ListPolicyGroups(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListPolicyGroupsResponse(rsp) +} - return response, nil +// CreatePolicyGroupWithBodyWithResponse request with arbitrary body returning *CreatePolicyGroupResponse +func (c *ClientWithResponses) CreatePolicyGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyGroupResponse, error) { + rsp, err := c.CreatePolicyGroupWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePolicyGroupResponse(rsp) } -// ParseAddLocalUserResponse parses an HTTP response from a AddLocalUserWithResponse call -func ParseAddLocalUserResponse(rsp *http.Response) (*AddLocalUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreatePolicyGroupWithResponse(ctx context.Context, body CreatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyGroupResponse, error) { + rsp, err := c.CreatePolicyGroup(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseCreatePolicyGroupResponse(rsp) +} - response := &AddLocalUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeletePolicyGroupWithResponse request returning *DeletePolicyGroupResponse +func (c *ClientWithResponses) DeletePolicyGroupWithResponse(ctx context.Context, policyGroupID PolicyGroupID, reqEditors ...RequestEditorFn) (*DeletePolicyGroupResponse, error) { + rsp, err := c.DeletePolicyGroup(ctx, policyGroupID, reqEditors...) + if err != nil { + return nil, err } + return ParseDeletePolicyGroupResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LocalUser - 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 BadRequest - 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 RequiresAuthentication - 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 Forbidden - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// ListPoliciesInGroupWithResponse request returning *ListPoliciesInGroupResponse +func (c *ClientWithResponses) ListPoliciesInGroupWithResponse(ctx context.Context, policyGroupID PolicyGroupID, params *ListPoliciesInGroupParams, reqEditors ...RequestEditorFn) (*ListPoliciesInGroupResponse, error) { + rsp, err := c.ListPoliciesInGroup(ctx, policyGroupID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPoliciesInGroupResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: - var dest MethodNotAllowed - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON405 = &dest +// UpdatePolicyGroupWithBodyWithResponse request with arbitrary body returning *UpdatePolicyGroupResponse +func (c *ClientWithResponses) UpdatePolicyGroupWithBodyWithResponse(ctx context.Context, policyGroupID PolicyGroupID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyGroupResponse, error) { + rsp, err := c.UpdatePolicyGroupWithBody(ctx, policyGroupID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePolicyGroupResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +func (c *ClientWithResponses) UpdatePolicyGroupWithResponse(ctx context.Context, policyGroupID PolicyGroupID, body UpdatePolicyGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyGroupResponse, error) { + rsp, err := c.UpdatePolicyGroup(ctx, policyGroupID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePolicyGroupResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// ListAllQueriesWithResponse request returning *ListAllQueriesResponse +func (c *ClientWithResponses) ListAllQueriesWithResponse(ctx context.Context, params *ListAllQueriesParams, reqEditors ...RequestEditorFn) (*ListAllQueriesResponse, error) { + rsp, err := c.ListAllQueries(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListAllQueriesResponse(rsp) +} +// ExecuteAdHocQueryWithBodyWithResponse request with arbitrary body returning *ExecuteAdHocQueryResponse +func (c *ClientWithResponses) ExecuteAdHocQueryWithBodyWithResponse(ctx context.Context, params *ExecuteAdHocQueryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryResponse, error) { + rsp, err := c.ExecuteAdHocQueryWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseExecuteAdHocQueryResponse(rsp) +} - return response, nil +func (c *ClientWithResponses) ExecuteAdHocQueryWithResponse(ctx context.Context, params *ExecuteAdHocQueryParams, body ExecuteAdHocQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteAdHocQueryResponse, error) { + rsp, err := c.ExecuteAdHocQuery(ctx, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseExecuteAdHocQueryResponse(rsp) } -// ParseDeleteLocalUserResponse parses an HTTP response from a DeleteLocalUserWithResponse call -func ParseDeleteLocalUserResponse(rsp *http.Response) (*DeleteLocalUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// SaveQueryWithBodyWithResponse request with arbitrary body returning *SaveQueryResponse +func (c *ClientWithResponses) SaveQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveQueryResponse, error) { + rsp, err := c.SaveQueryWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseSaveQueryResponse(rsp) +} - response := &DeleteLocalUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) SaveQueryWithResponse(ctx context.Context, body SaveQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveQueryResponse, error) { + rsp, err := c.SaveQuery(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseSaveQueryResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// ListQueryTagsWithResponse request returning *ListQueryTagsResponse +func (c *ClientWithResponses) ListQueryTagsWithResponse(ctx context.Context, params *ListQueryTagsParams, reqEditors ...RequestEditorFn) (*ListQueryTagsResponse, error) { + rsp, err := c.ListQueryTags(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListQueryTagsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// DeleteSavedQueryWithResponse request returning *DeleteSavedQueryResponse +func (c *ClientWithResponses) DeleteSavedQueryWithResponse(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteSavedQueryResponse, error) { + rsp, err := c.DeleteSavedQuery(ctx, queryID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSavedQueryResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// GetSavedQueryWithResponse request returning *GetSavedQueryResponse +func (c *ClientWithResponses) GetSavedQueryWithResponse(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*GetSavedQueryResponse, error) { + rsp, err := c.GetSavedQuery(ctx, queryID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSavedQueryResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// UpdateQueryWithBodyWithResponse request with arbitrary body returning *UpdateQueryResponse +func (c *ClientWithResponses) UpdateQueryWithBodyWithResponse(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateQueryResponse, error) { + rsp, err := c.UpdateQueryWithBody(ctx, queryID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateQueryResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +func (c *ClientWithResponses) UpdateQueryWithResponse(ctx context.Context, queryID QueryID, body UpdateQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateQueryResponse, error) { + rsp, err := c.UpdateQuery(ctx, queryID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateQueryResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// DeleteAlertWithResponse request returning *DeleteAlertResponse +func (c *ClientWithResponses) DeleteAlertWithResponse(ctx context.Context, queryID QueryID, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error) { + rsp, err := c.DeleteAlert(ctx, queryID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAlertResponse(rsp) +} +// ExecuteSavedQueryWithResponse request returning *ExecuteSavedQueryResponse +func (c *ClientWithResponses) ExecuteSavedQueryWithResponse(ctx context.Context, queryID QueryID, params *ExecuteSavedQueryParams, reqEditors ...RequestEditorFn) (*ExecuteSavedQueryResponse, error) { + rsp, err := c.ExecuteSavedQuery(ctx, queryID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseExecuteSavedQueryResponse(rsp) +} - return response, nil +// QueryListFiltersWithResponse request returning *QueryListFiltersResponse +func (c *ClientWithResponses) QueryListFiltersWithResponse(ctx context.Context, queryID QueryID, params *QueryListFiltersParams, reqEditors ...RequestEditorFn) (*QueryListFiltersResponse, error) { + rsp, err := c.QueryListFilters(ctx, queryID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseQueryListFiltersResponse(rsp) } -// ParseGetLocalUserResponse parses an HTTP response from a GetLocalUserWithResponse call -func ParseGetLocalUserResponse(rsp *http.Response) (*GetLocalUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// QuerySaveFilterWithBodyWithResponse request with arbitrary body returning *QuerySaveFilterResponse +func (c *ClientWithResponses) QuerySaveFilterWithBodyWithResponse(ctx context.Context, queryID QueryID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuerySaveFilterResponse, error) { + rsp, err := c.QuerySaveFilterWithBody(ctx, queryID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseQuerySaveFilterResponse(rsp) +} - response := &GetLocalUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) QuerySaveFilterWithResponse(ctx context.Context, queryID QueryID, body QuerySaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*QuerySaveFilterResponse, error) { + rsp, err := c.QuerySaveFilter(ctx, queryID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseQuerySaveFilterResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LocalUserWithTeams - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// QueryListFilterTagsWithResponse request returning *QueryListFilterTagsResponse +func (c *ClientWithResponses) QueryListFilterTagsWithResponse(ctx context.Context, queryID QueryID, params *QueryListFilterTagsParams, reqEditors ...RequestEditorFn) (*QueryListFilterTagsResponse, error) { + rsp, err := c.QueryListFilterTags(ctx, queryID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseQueryListFilterTagsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// ListAllRBACPermissionsWithResponse request returning *ListAllRBACPermissionsResponse +func (c *ClientWithResponses) ListAllRBACPermissionsWithResponse(ctx context.Context, params *ListAllRBACPermissionsParams, reqEditors ...RequestEditorFn) (*ListAllRBACPermissionsResponse, error) { + rsp, err := c.ListAllRBACPermissions(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListAllRBACPermissionsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// CreateRBACPermissionWithBodyWithResponse request with arbitrary body returning *CreateRBACPermissionResponse +func (c *ClientWithResponses) CreateRBACPermissionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) { + rsp, err := c.CreateRBACPermissionWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateRBACPermissionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) CreateRBACPermissionWithResponse(ctx context.Context, body CreateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACPermissionResponse, error) { + rsp, err := c.CreateRBACPermission(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateRBACPermissionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// DeleteRBACPermissionWithResponse request returning *DeleteRBACPermissionResponse +func (c *ClientWithResponses) DeleteRBACPermissionWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*DeleteRBACPermissionResponse, error) { + rsp, err := c.DeleteRBACPermission(ctx, rbacPermissionID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteRBACPermissionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// GetRBACPermissionWithResponse request returning *GetRBACPermissionResponse +func (c *ClientWithResponses) GetRBACPermissionWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, reqEditors ...RequestEditorFn) (*GetRBACPermissionResponse, error) { + rsp, err := c.GetRBACPermission(ctx, rbacPermissionID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRBACPermissionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// UpdateRBACPermissionWithBodyWithResponse request with arbitrary body returning *UpdateRBACPermissionResponse +func (c *ClientWithResponses) UpdateRBACPermissionWithBodyWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) { + rsp, err := c.UpdateRBACPermissionWithBody(ctx, rbacPermissionID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateRBACPermissionResponse(rsp) +} +func (c *ClientWithResponses) UpdateRBACPermissionWithResponse(ctx context.Context, rbacPermissionID RBACPermissionID, body UpdateRBACPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACPermissionResponse, error) { + rsp, err := c.UpdateRBACPermission(ctx, rbacPermissionID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateRBACPermissionResponse(rsp) +} - return response, nil +// ListAllRBACRolesWithResponse request returning *ListAllRBACRolesResponse +func (c *ClientWithResponses) ListAllRBACRolesWithResponse(ctx context.Context, params *ListAllRBACRolesParams, reqEditors ...RequestEditorFn) (*ListAllRBACRolesResponse, error) { + rsp, err := c.ListAllRBACRoles(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListAllRBACRolesResponse(rsp) } -// ParseUpdateLocalUserResponse parses an HTTP response from a UpdateLocalUserWithResponse call -func ParseUpdateLocalUserResponse(rsp *http.Response) (*UpdateLocalUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateRBACRoleWithBodyWithResponse request with arbitrary body returning *CreateRBACRoleResponse +func (c *ClientWithResponses) CreateRBACRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) { + rsp, err := c.CreateRBACRoleWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateRBACRoleResponse(rsp) +} - response := &UpdateLocalUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateRBACRoleWithResponse(ctx context.Context, body CreateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRBACRoleResponse, error) { + rsp, err := c.CreateRBACRole(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateRBACRoleResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LocalUser - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// DeleteRBACRoleWithResponse request returning *DeleteRBACRoleResponse +func (c *ClientWithResponses) DeleteRBACRoleWithResponse(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*DeleteRBACRoleResponse, error) { + rsp, err := c.DeleteRBACRole(ctx, roleID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteRBACRoleResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// GetRBACRoleWithResponse request returning *GetRBACRoleResponse +func (c *ClientWithResponses) GetRBACRoleWithResponse(ctx context.Context, roleID RoleID, reqEditors ...RequestEditorFn) (*GetRBACRoleResponse, error) { + rsp, err := c.GetRBACRole(ctx, roleID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRBACRoleResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// UpdateRBACRoleWithBodyWithResponse request with arbitrary body returning *UpdateRBACRoleResponse +func (c *ClientWithResponses) UpdateRBACRoleWithBodyWithResponse(ctx context.Context, roleID RoleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) { + rsp, err := c.UpdateRBACRoleWithBody(ctx, roleID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateRBACRoleResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) UpdateRBACRoleWithResponse(ctx context.Context, roleID RoleID, body UpdateRBACRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRBACRoleResponse, error) { + rsp, err := c.UpdateRBACRole(ctx, roleID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateRBACRoleResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// ListReportsWithResponse request returning *ListReportsResponse +func (c *ClientWithResponses) ListReportsWithResponse(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResponse, error) { + rsp, err := c.ListReports(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListReportsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// CreateReportWithBodyWithResponse request with arbitrary body returning *CreateReportResponse +func (c *ClientWithResponses) CreateReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) { + rsp, err := c.CreateReportWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateReportResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) CreateReportWithResponse(ctx context.Context, body CreateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportResponse, error) { + rsp, err := c.CreateReport(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateReportResponse(rsp) +} +// ListReportTemplatesWithResponse request returning *ListReportTemplatesResponse +func (c *ClientWithResponses) ListReportTemplatesWithResponse(ctx context.Context, params *ListReportTemplatesParams, reqEditors ...RequestEditorFn) (*ListReportTemplatesResponse, error) { + rsp, err := c.ListReportTemplates(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListReportTemplatesResponse(rsp) +} - return response, nil +// CreateReportTemplateWithBodyWithResponse request with arbitrary body returning *CreateReportTemplateResponse +func (c *ClientWithResponses) CreateReportTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) { + rsp, err := c.CreateReportTemplateWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateReportTemplateResponse(rsp) } -// ParseCreateLocalUserResetTokenResponse parses an HTTP response from a CreateLocalUserResetTokenWithResponse call -func ParseCreateLocalUserResetTokenResponse(rsp *http.Response) (*CreateLocalUserResetTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateReportTemplateWithResponse(ctx context.Context, body CreateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportTemplateResponse, error) { + rsp, err := c.CreateReportTemplate(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateReportTemplateResponse(rsp) +} - response := &CreateLocalUserResetTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteReportTemplateWithResponse request returning *DeleteReportTemplateResponse +func (c *ClientWithResponses) DeleteReportTemplateWithResponse(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportTemplateResponse, error) { + rsp, err := c.DeleteReportTemplate(ctx, templateId, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteReportTemplateResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - ResetToken string `json:"reset_token"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetReportTemplateWithResponse request returning *GetReportTemplateResponse +func (c *ClientWithResponses) GetReportTemplateWithResponse(ctx context.Context, templateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportTemplateResponse, error) { + rsp, err := c.GetReportTemplate(ctx, templateId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReportTemplateResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// UpdateReportTemplateWithBodyWithResponse request with arbitrary body returning *UpdateReportTemplateResponse +func (c *ClientWithResponses) UpdateReportTemplateWithBodyWithResponse(ctx context.Context, templateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) { + rsp, err := c.UpdateReportTemplateWithBody(ctx, templateId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateReportTemplateResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) UpdateReportTemplateWithResponse(ctx context.Context, templateId openapi_types.UUID, body UpdateReportTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportTemplateResponse, error) { + rsp, err := c.UpdateReportTemplate(ctx, templateId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateReportTemplateResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// DeleteReportWithResponse request returning *DeleteReportResponse +func (c *ClientWithResponses) DeleteReportWithResponse(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteReportResponse, error) { + rsp, err := c.DeleteReport(ctx, reportId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReportResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// GetReportWithResponse request returning *GetReportResponse +func (c *ClientWithResponses) GetReportWithResponse(ctx context.Context, reportId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetReportResponse, error) { + rsp, err := c.GetReport(ctx, reportId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReportResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// UpdateReportWithBodyWithResponse request with arbitrary body returning *UpdateReportResponse +func (c *ClientWithResponses) UpdateReportWithBodyWithResponse(ctx context.Context, reportId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) { + rsp, err := c.UpdateReportWithBody(ctx, reportId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateReportResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) UpdateReportWithResponse(ctx context.Context, reportId openapi_types.UUID, body UpdateReportJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportResponse, error) { + rsp, err := c.UpdateReport(ctx, reportId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateReportResponse(rsp) +} +// GetSettingsWithResponse request returning *GetSettingsResponse +func (c *ClientWithResponses) GetSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) { + rsp, err := c.GetSettings(ctx, reqEditors...) + if err != nil { + return nil, err } + return ParseGetSettingsResponse(rsp) +} - return response, nil +// UpdateSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSettingsResponse +func (c *ClientWithResponses) UpdateSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { + rsp, err := c.UpdateSettingsWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSettingsResponse(rsp) } -// ParseManageUserTOTPDeleteResponse parses an HTTP response from a ManageUserTOTPDeleteWithResponse call -func ParseManageUserTOTPDeleteResponse(rsp *http.Response) (*ManageUserTOTPDeleteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) UpdateSettingsWithResponse(ctx context.Context, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { + rsp, err := c.UpdateSettings(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateSettingsResponse(rsp) +} - response := &ManageUserTOTPDeleteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetDataSettingsWithResponse request returning *GetDataSettingsResponse +func (c *ClientWithResponses) GetDataSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDataSettingsResponse, error) { + rsp, err := c.GetDataSettings(ctx, reqEditors...) + if err != nil { + return nil, err } + return ParseGetDataSettingsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// UpdateDataSettingsWithBodyWithResponse request with arbitrary body returning *UpdateDataSettingsResponse +func (c *ClientWithResponses) UpdateDataSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDataSettingsResponse, error) { + rsp, err := c.UpdateDataSettingsWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDataSettingsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) UpdateDataSettingsWithResponse(ctx context.Context, body UpdateDataSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDataSettingsResponse, error) { + rsp, err := c.UpdateDataSettings(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDataSettingsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// CreateSlackConnectionWithBodyWithResponse request with arbitrary body returning *CreateSlackConnectionResponse +func (c *ClientWithResponses) CreateSlackConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSlackConnectionResponse, error) { + rsp, err := c.CreateSlackConnectionWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSlackConnectionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +func (c *ClientWithResponses) CreateSlackConnectionWithResponse(ctx context.Context, body CreateSlackConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSlackConnectionResponse, error) { + rsp, err := c.CreateSlackConnection(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSlackConnectionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: - var dest MethodNotAllowed - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON405 = &dest +// ListSlackChannelsWithResponse request returning *ListSlackChannelsResponse +func (c *ClientWithResponses) ListSlackChannelsWithResponse(ctx context.Context, id openapi_types.UUID, params *ListSlackChannelsParams, reqEditors ...RequestEditorFn) (*ListSlackChannelsResponse, error) { + rsp, err := c.ListSlackChannels(ctx, id, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListSlackChannelsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// CreateSyncDestinationTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateSyncDestinationTestConnectionResponse +func (c *ClientWithResponses) CreateSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) { + rsp, err := c.CreateSyncDestinationTestConnectionWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSyncDestinationTestConnectionResponse(rsp) +} +func (c *ClientWithResponses) CreateSyncDestinationTestConnectionWithResponse(ctx context.Context, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationTestConnectionResponse, error) { + rsp, err := c.CreateSyncDestinationTestConnection(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateSyncDestinationTestConnectionResponse(rsp) +} - return response, nil +// GetSyncDestinationTestConnectionWithResponse request returning *GetSyncDestinationTestConnectionResponse +func (c *ClientWithResponses) GetSyncDestinationTestConnectionWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionResponse, error) { + rsp, err := c.GetSyncDestinationTestConnection(ctx, syncDestinationTestConnectionID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncDestinationTestConnectionResponse(rsp) } -// ParseGetOpenAPIJSONResponse parses an HTTP response from a GetOpenAPIJSONWithResponse call -func ParseGetOpenAPIJSONResponse(rsp *http.Response) (*GetOpenAPIJSONResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionForSyncDestinationResponse +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncDestinationWithBodyWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncDestinationWithBody(ctx, syncDestinationTestConnectionID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp) +} - response := &GetOpenAPIJSONResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncDestinationWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncDestination(ctx, syncDestinationTestConnectionID, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateSyncTestConnectionForSyncDestinationResponse(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 +// GetSyncDestinationTestConnectionLogsLiveWithResponse request returning *GetSyncDestinationTestConnectionLogsLiveResponse +func (c *ClientWithResponses) GetSyncDestinationTestConnectionLogsLiveWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsLiveResponse, error) { + rsp, err := c.GetSyncDestinationTestConnectionLogsLive(ctx, syncDestinationTestConnectionID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncDestinationTestConnectionLogsLiveResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// GetSyncDestinationTestConnectionLogsQueryWithResponse request returning *GetSyncDestinationTestConnectionLogsQueryResponse +func (c *ClientWithResponses) GetSyncDestinationTestConnectionLogsQueryWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, params *GetSyncDestinationTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncDestinationTestConnectionLogsQueryResponse, error) { + rsp, err := c.GetSyncDestinationTestConnectionLogsQuery(ctx, syncDestinationTestConnectionID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncDestinationTestConnectionLogsQueryResponse(rsp) +} +// PromoteSyncDestinationTestConnectionWithBodyWithResponse request with arbitrary body returning *PromoteSyncDestinationTestConnectionResponse +func (c *ClientWithResponses) PromoteSyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) { + rsp, err := c.PromoteSyncDestinationTestConnectionWithBody(ctx, syncDestinationTestConnectionID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParsePromoteSyncDestinationTestConnectionResponse(rsp) +} - return response, nil +func (c *ClientWithResponses) PromoteSyncDestinationTestConnectionWithResponse(ctx context.Context, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body PromoteSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncDestinationTestConnectionResponse, error) { + rsp, err := c.PromoteSyncDestinationTestConnection(ctx, syncDestinationTestConnectionID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePromoteSyncDestinationTestConnectionResponse(rsp) } -// ParseGetPlatformInfoResponse parses an HTTP response from a GetPlatformInfoWithResponse call -func ParseGetPlatformInfoResponse(rsp *http.Response) (*GetPlatformInfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListSyncDestinationsWithResponse request returning *ListSyncDestinationsResponse +func (c *ClientWithResponses) ListSyncDestinationsWithResponse(ctx context.Context, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationsResponse, error) { + rsp, err := c.ListSyncDestinations(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseListSyncDestinationsResponse(rsp) +} - response := &GetPlatformInfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteSyncDestinationWithResponse request returning *DeleteSyncDestinationResponse +func (c *ClientWithResponses) DeleteSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteSyncDestinationResponse, error) { + rsp, err := c.DeleteSyncDestination(ctx, syncDestinationName, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteSyncDestinationResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - PublicIps *[]string `json:"public_ips,omitempty"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetSyncDestinationWithResponse request returning *GetSyncDestinationResponse +func (c *ClientWithResponses) GetSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetSyncDestinationResponse, error) { + rsp, err := c.GetSyncDestination(ctx, syncDestinationName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// UpdateSyncDestinationWithBodyWithResponse request with arbitrary body returning *UpdateSyncDestinationResponse +func (c *ClientWithResponses) UpdateSyncDestinationWithBodyWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) { + rsp, err := c.UpdateSyncDestinationWithBody(ctx, syncDestinationName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) UpdateSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) { + rsp, err := c.UpdateSyncDestination(ctx, syncDestinationName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncDestinationResponse(rsp) +} +// ListSyncDestinationSyncsWithResponse request returning *ListSyncDestinationSyncsResponse +func (c *ClientWithResponses) ListSyncDestinationSyncsWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationSyncsResponse, error) { + rsp, err := c.ListSyncDestinationSyncs(ctx, syncDestinationName, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListSyncDestinationSyncsResponse(rsp) +} - return response, nil +// GetTestConnectionForSyncDestinationWithResponse request returning *GetTestConnectionForSyncDestinationResponse +func (c *ClientWithResponses) GetTestConnectionForSyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncDestinationResponse, error) { + rsp, err := c.GetTestConnectionForSyncDestination(ctx, syncDestinationName, syncTestConnectionId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTestConnectionForSyncDestinationResponse(rsp) } -// ParseListPlatformVersionsResponse parses an HTTP response from a ListPlatformVersionsWithResponse call -func ParseListPlatformVersionsResponse(rsp *http.Response) (*ListPlatformVersionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateSyncSourceTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateSyncSourceTestConnectionResponse +func (c *ClientWithResponses) CreateSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) { + rsp, err := c.CreateSyncSourceTestConnectionWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateSyncSourceTestConnectionResponse(rsp) +} - response := &ListPlatformVersionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateSyncSourceTestConnectionWithResponse(ctx context.Context, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceTestConnectionResponse, error) { + rsp, err := c.CreateSyncSourceTestConnection(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateSyncSourceTestConnectionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []PlatformVersion `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetSyncSourceTestConnectionWithResponse request returning *GetSyncSourceTestConnectionResponse +func (c *ClientWithResponses) GetSyncSourceTestConnectionWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionResponse, error) { + rsp, err := c.GetSyncSourceTestConnection(ctx, syncSourceTestConnectionID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncSourceTestConnectionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionForSyncSourceResponse +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncSourceWithBodyWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncSourceWithBody(ctx, syncSourceTestConnectionID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncSourceWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncSource(ctx, syncSourceTestConnectionID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp) +} +// GetSyncSourceTestConnectionLogsLiveWithResponse request returning *GetSyncSourceTestConnectionLogsLiveResponse +func (c *ClientWithResponses) GetSyncSourceTestConnectionLogsLiveWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsLiveResponse, error) { + rsp, err := c.GetSyncSourceTestConnectionLogsLive(ctx, syncSourceTestConnectionID, params, reqEditors...) + if err != nil { + return nil, err } + return ParseGetSyncSourceTestConnectionLogsLiveResponse(rsp) +} - return response, nil +// GetSyncSourceTestConnectionLogsQueryWithResponse request returning *GetSyncSourceTestConnectionLogsQueryResponse +func (c *ClientWithResponses) GetSyncSourceTestConnectionLogsQueryWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, params *GetSyncSourceTestConnectionLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncSourceTestConnectionLogsQueryResponse, error) { + rsp, err := c.GetSyncSourceTestConnectionLogsQuery(ctx, syncSourceTestConnectionID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncSourceTestConnectionLogsQueryResponse(rsp) } -// ParseListPluginsResponse parses an HTTP response from a ListPluginsWithResponse call -func ParseListPluginsResponse(rsp *http.Response) (*ListPluginsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// PromoteSyncSourceTestConnectionWithBodyWithResponse request with arbitrary body returning *PromoteSyncSourceTestConnectionResponse +func (c *ClientWithResponses) PromoteSyncSourceTestConnectionWithBodyWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) { + rsp, err := c.PromoteSyncSourceTestConnectionWithBody(ctx, syncSourceTestConnectionID, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParsePromoteSyncSourceTestConnectionResponse(rsp) +} - response := &ListPluginsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) PromoteSyncSourceTestConnectionWithResponse(ctx context.Context, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSyncSourceTestConnectionResponse, error) { + rsp, err := c.PromoteSyncSourceTestConnection(ctx, syncSourceTestConnectionID, body, reqEditors...) + if err != nil { + return nil, err } + return ParsePromoteSyncSourceTestConnectionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items ListPlugins `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// ListSyncSourcesWithResponse request returning *ListSyncSourcesResponse +func (c *ClientWithResponses) ListSyncSourcesWithResponse(ctx context.Context, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*ListSyncSourcesResponse, error) { + rsp, err := c.ListSyncSources(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListSyncSourcesResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// DeleteSyncSourceWithResponse request returning *DeleteSyncSourceResponse +func (c *ClientWithResponses) DeleteSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*DeleteSyncSourceResponse, error) { + rsp, err := c.DeleteSyncSource(ctx, syncSourceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSyncSourceResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// GetSyncSourceWithResponse request returning *GetSyncSourceResponse +func (c *ClientWithResponses) GetSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*GetSyncSourceResponse, error) { + rsp, err := c.GetSyncSource(ctx, syncSourceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncSourceResponse(rsp) +} +// UpdateSyncSourceWithBodyWithResponse request with arbitrary body returning *UpdateSyncSourceResponse +func (c *ClientWithResponses) UpdateSyncSourceWithBodyWithResponse(ctx context.Context, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) { + rsp, err := c.UpdateSyncSourceWithBody(ctx, syncSourceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateSyncSourceResponse(rsp) +} - return response, nil +func (c *ClientWithResponses) UpdateSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncSourceResponse, error) { + rsp, err := c.UpdateSyncSource(ctx, syncSourceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncSourceResponse(rsp) } -// ParseCreatePluginResponse parses an HTTP response from a CreatePluginWithResponse call -func ParseCreatePluginResponse(rsp *http.Response) (*CreatePluginResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListSyncSourceSyncsWithResponse request returning *ListSyncSourceSyncsResponse +func (c *ClientWithResponses) ListSyncSourceSyncsWithResponse(ctx context.Context, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncSourceSyncsResponse, error) { + rsp, err := c.ListSyncSourceSyncs(ctx, syncSourceName, params, reqEditors...) if err != nil { return nil, err } + return ParseListSyncSourceSyncsResponse(rsp) +} - response := &CreatePluginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetTestConnectionForSyncSourceWithResponse request returning *GetTestConnectionForSyncSourceResponse +func (c *ClientWithResponses) GetTestConnectionForSyncSourceWithResponse(ctx context.Context, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetTestConnectionForSyncSourceResponse, error) { + rsp, err := c.GetTestConnectionForSyncSource(ctx, syncSourceName, syncTestConnectionId, reqEditors...) + if err != nil { + return nil, err } + return ParseGetTestConnectionForSyncSourceResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Plugin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest +// ListSyncTransformersWithResponse request returning *ListSyncTransformersResponse +func (c *ClientWithResponses) ListSyncTransformersWithResponse(ctx context.Context, params *ListSyncTransformersParams, reqEditors ...RequestEditorFn) (*ListSyncTransformersResponse, error) { + rsp, err := c.ListSyncTransformers(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListSyncTransformersResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// DeleteSyncTransformerWithResponse request returning *DeleteSyncTransformerResponse +func (c *ClientWithResponses) DeleteSyncTransformerWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*DeleteSyncTransformerResponse, error) { + rsp, err := c.DeleteSyncTransformer(ctx, syncTransformerName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSyncTransformerResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// GetSyncTransformerWithResponse request returning *GetSyncTransformerResponse +func (c *ClientWithResponses) GetSyncTransformerWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, reqEditors ...RequestEditorFn) (*GetSyncTransformerResponse, error) { + rsp, err := c.GetSyncTransformer(ctx, syncTransformerName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncTransformerResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// UpdateSyncTransformerWithBodyWithResponse request with arbitrary body returning *UpdateSyncTransformerResponse +func (c *ClientWithResponses) UpdateSyncTransformerWithBodyWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) { + rsp, err := c.UpdateSyncTransformerWithBody(ctx, syncTransformerName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncTransformerResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) UpdateSyncTransformerWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, body UpdateSyncTransformerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTransformerResponse, error) { + rsp, err := c.UpdateSyncTransformer(ctx, syncTransformerName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncTransformerResponse(rsp) +} +// ListSyncTransformerSyncDestinationsWithResponse request returning *ListSyncTransformerSyncDestinationsResponse +func (c *ClientWithResponses) ListSyncTransformerSyncDestinationsWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncDestinationsResponse, error) { + rsp, err := c.ListSyncTransformerSyncDestinations(ctx, syncTransformerName, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListSyncTransformerSyncDestinationsResponse(rsp) +} - return response, nil +// ListSyncTransformerSyncsWithResponse request returning *ListSyncTransformerSyncsResponse +func (c *ClientWithResponses) ListSyncTransformerSyncsWithResponse(ctx context.Context, syncTransformerName SyncTransformerName, params *ListSyncTransformerSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncTransformerSyncsResponse, error) { + rsp, err := c.ListSyncTransformerSyncs(ctx, syncTransformerName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListSyncTransformerSyncsResponse(rsp) } -// ParseDeletePluginByTeamAndPluginNameResponse parses an HTTP response from a DeletePluginByTeamAndPluginNameWithResponse call -func ParseDeletePluginByTeamAndPluginNameResponse(rsp *http.Response) (*DeletePluginByTeamAndPluginNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ListSyncUpgradesWithResponse request returning *ListSyncUpgradesResponse +func (c *ClientWithResponses) ListSyncUpgradesWithResponse(ctx context.Context, params *ListSyncUpgradesParams, reqEditors ...RequestEditorFn) (*ListSyncUpgradesResponse, error) { + rsp, err := c.ListSyncUpgrades(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseListSyncUpgradesResponse(rsp) +} - response := &DeletePluginByTeamAndPluginNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListSyncsWithResponse request returning *ListSyncsResponse +func (c *ClientWithResponses) ListSyncsWithResponse(ctx context.Context, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncsResponse, error) { + rsp, err := c.ListSyncs(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListSyncsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// CreateSyncWithBodyWithResponse request with arbitrary body returning *CreateSyncResponse +func (c *ClientWithResponses) CreateSyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) { + rsp, err := c.CreateSyncWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSyncResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) CreateSyncWithResponse(ctx context.Context, body CreateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncResponse, error) { + rsp, err := c.CreateSync(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSyncResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// DeleteSyncWithResponse request returning *DeleteSyncResponse +func (c *ClientWithResponses) DeleteSyncWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*DeleteSyncResponse, error) { + rsp, err := c.DeleteSync(ctx, syncName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSyncResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// GetSyncWithResponse request returning *GetSyncResponse +func (c *ClientWithResponses) GetSyncWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*GetSyncResponse, error) { + rsp, err := c.GetSync(ctx, syncName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// UpdateSyncWithBodyWithResponse request with arbitrary body returning *UpdateSyncResponse +func (c *ClientWithResponses) UpdateSyncWithBodyWithResponse(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) { + rsp, err := c.UpdateSyncWithBody(ctx, syncName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncResponse(rsp) +} +func (c *ClientWithResponses) UpdateSyncWithResponse(ctx context.Context, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) { + rsp, err := c.UpdateSync(ctx, syncName, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateSyncResponse(rsp) +} - return response, nil +// ListSyncRunsWithResponse request returning *ListSyncRunsResponse +func (c *ClientWithResponses) ListSyncRunsWithResponse(ctx context.Context, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*ListSyncRunsResponse, error) { + rsp, err := c.ListSyncRuns(ctx, syncName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListSyncRunsResponse(rsp) } -// ParseGetPluginResponse parses an HTTP response from a GetPluginWithResponse call -func ParseGetPluginResponse(rsp *http.Response) (*GetPluginResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateSyncRunWithResponse request returning *CreateSyncRunResponse +func (c *ClientWithResponses) CreateSyncRunWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*CreateSyncRunResponse, error) { + rsp, err := c.CreateSyncRun(ctx, syncName, reqEditors...) if err != nil { return nil, err } + return ParseCreateSyncRunResponse(rsp) +} - response := &GetPluginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetSyncRunWithResponse request returning *GetSyncRunResponse +func (c *ClientWithResponses) GetSyncRunWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunResponse, error) { + rsp, err := c.GetSyncRun(ctx, syncName, syncRunId, reqEditors...) + if err != nil { + return nil, err } + return ParseGetSyncRunResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPlugin - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// UpdateSyncRunWithBodyWithResponse request with arbitrary body returning *UpdateSyncRunResponse +func (c *ClientWithResponses) UpdateSyncRunWithBodyWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) { + rsp, err := c.UpdateSyncRunWithBody(ctx, syncName, syncRunId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncRunResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) UpdateSyncRunWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) { + rsp, err := c.UpdateSyncRun(ctx, syncName, syncRunId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncRunResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// GetSyncRunLogsLiveWithResponse request returning *GetSyncRunLogsLiveResponse +func (c *ClientWithResponses) GetSyncRunLogsLiveWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsLiveParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsLiveResponse, error) { + rsp, err := c.GetSyncRunLogsLive(ctx, syncName, syncRunId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncRunLogsLiveResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// GetSyncRunLogsQueryWithResponse request returning *GetSyncRunLogsQueryResponse +func (c *ClientWithResponses) GetSyncRunLogsQueryWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsQueryParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsQueryResponse, error) { + rsp, err := c.GetSyncRunLogsQuery(ctx, syncName, syncRunId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncRunLogsQueryResponse(rsp) +} +// CreateSyncRunProgressWithBodyWithResponse request with arbitrary body returning *CreateSyncRunProgressResponse +func (c *ClientWithResponses) CreateSyncRunProgressWithBodyWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) { + rsp, err := c.CreateSyncRunProgressWithBody(ctx, syncName, syncRunId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateSyncRunProgressResponse(rsp) } -// ParseUpdatePluginResponse parses an HTTP response from a UpdatePluginWithResponse call -func ParseUpdatePluginResponse(rsp *http.Response) (*UpdatePluginResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateSyncRunProgressWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) { + rsp, err := c.CreateSyncRunProgress(ctx, syncName, syncRunId, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateSyncRunProgressResponse(rsp) +} - response := &UpdatePluginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetSyncRunStatsWithResponse request returning *GetSyncRunStatsResponse +func (c *ClientWithResponses) GetSyncRunStatsWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunStatsResponse, error) { + rsp, err := c.GetSyncRunStats(ctx, syncName, syncRunId, reqEditors...) + if err != nil { + return nil, err } + return ParseGetSyncRunStatsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Plugin - 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 BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// GetSyncRunTablesWithResponse request returning *GetSyncRunTablesResponse +func (c *ClientWithResponses) GetSyncRunTablesWithResponse(ctx context.Context, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunTablesParams, reqEditors ...RequestEditorFn) (*GetSyncRunTablesResponse, error) { + rsp, err := c.GetSyncRunTables(ctx, syncName, syncRunId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSyncRunTablesResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// ListTablesWithResponse request returning *ListTablesResponse +func (c *ClientWithResponses) ListTablesWithResponse(ctx context.Context, params *ListTablesParams, reqEditors ...RequestEditorFn) (*ListTablesResponse, error) { + rsp, err := c.ListTables(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListTablesResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// GetTablesDataWithResponse request returning *GetTablesDataResponse +func (c *ClientWithResponses) GetTablesDataWithResponse(ctx context.Context, params *GetTablesDataParams, reqEditors ...RequestEditorFn) (*GetTablesDataResponse, error) { + rsp, err := c.GetTablesData(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTablesDataResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// TablesDataActionWithBodyWithResponse request with arbitrary body returning *TablesDataActionResponse +func (c *ClientWithResponses) TablesDataActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TablesDataActionResponse, error) { + rsp, err := c.TablesDataActionWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTablesDataActionResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) TablesDataActionWithResponse(ctx context.Context, body TablesDataActionJSONRequestBody, reqEditors ...RequestEditorFn) (*TablesDataActionResponse, error) { + rsp, err := c.TablesDataAction(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTablesDataActionResponse(rsp) +} +// GetTablesRelationsWithResponse request returning *GetTablesRelationsResponse +func (c *ClientWithResponses) GetTablesRelationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTablesRelationsResponse, error) { + rsp, err := c.GetTablesRelations(ctx, reqEditors...) + if err != nil { + return nil, err } + return ParseGetTablesRelationsResponse(rsp) +} - return response, nil +// BatchTableSchemasWithResponse request returning *BatchTableSchemasResponse +func (c *ClientWithResponses) BatchTableSchemasWithResponse(ctx context.Context, params *BatchTableSchemasParams, reqEditors ...RequestEditorFn) (*BatchTableSchemasResponse, error) { + rsp, err := c.BatchTableSchemas(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseBatchTableSchemasResponse(rsp) } -// ParseListPluginVersionsResponse parses an HTTP response from a ListPluginVersionsWithResponse call -func ParseListPluginVersionsResponse(rsp *http.Response) (*ListPluginVersionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// TableListColumnsWithResponse request returning *TableListColumnsResponse +func (c *ClientWithResponses) TableListColumnsWithResponse(ctx context.Context, tableName TableName, params *TableListColumnsParams, reqEditors ...RequestEditorFn) (*TableListColumnsResponse, error) { + rsp, err := c.TableListColumns(ctx, tableName, params, reqEditors...) if err != nil { return nil, err } + return ParseTableListColumnsResponse(rsp) +} - response := &ListPluginVersionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// TableColumnListValuesWithResponse request returning *TableColumnListValuesResponse +func (c *ClientWithResponses) TableColumnListValuesWithResponse(ctx context.Context, tableName TableName, columnName ColumnName, params *TableColumnListValuesParams, reqEditors ...RequestEditorFn) (*TableColumnListValuesResponse, error) { + rsp, err := c.TableColumnListValues(ctx, tableName, columnName, params, reqEditors...) + if err != nil { + return nil, err } + return ParseTableColumnListValuesResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []PluginVersionList `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// TableListRowsWithResponse request returning *TableListRowsResponse +func (c *ClientWithResponses) TableListRowsWithResponse(ctx context.Context, tableName TableName, params *TableListRowsParams, reqEditors ...RequestEditorFn) (*TableListRowsResponse, error) { + rsp, err := c.TableListRows(ctx, tableName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseTableListRowsResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// TableRowByIdWithResponse request returning *TableRowByIdResponse +func (c *ClientWithResponses) TableRowByIdWithResponse(ctx context.Context, tableName TableName, tableRowId TableRowId, params *TableRowByIdParams, reqEditors ...RequestEditorFn) (*TableRowByIdResponse, error) { + rsp, err := c.TableRowById(ctx, tableName, tableRowId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseTableRowByIdResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// TableListFiltersWithResponse request returning *TableListFiltersResponse +func (c *ClientWithResponses) TableListFiltersWithResponse(ctx context.Context, tableName TableName, params *TableListFiltersParams, reqEditors ...RequestEditorFn) (*TableListFiltersResponse, error) { + rsp, err := c.TableListFilters(ctx, tableName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseTableListFiltersResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +// TableSaveFilterWithBodyWithResponse request with arbitrary body returning *TableSaveFilterResponse +func (c *ClientWithResponses) TableSaveFilterWithBodyWithResponse(ctx context.Context, tableName TableName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TableSaveFilterResponse, error) { + rsp, err := c.TableSaveFilterWithBody(ctx, tableName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTableSaveFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +func (c *ClientWithResponses) TableSaveFilterWithResponse(ctx context.Context, tableName TableName, body TableSaveFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*TableSaveFilterResponse, error) { + rsp, err := c.TableSaveFilter(ctx, tableName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTableSaveFilterResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// TableListFilterTagsWithResponse request returning *TableListFilterTagsResponse +func (c *ClientWithResponses) TableListFilterTagsWithResponse(ctx context.Context, tableName TableName, params *TableListFilterTagsParams, reqEditors ...RequestEditorFn) (*TableListFilterTagsResponse, error) { + rsp, err := c.TableListFilterTags(ctx, tableName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseTableListFilterTagsResponse(rsp) +} +// TableSchemaWithResponse request returning *TableSchemaResponse +func (c *ClientWithResponses) TableSchemaWithResponse(ctx context.Context, tableName TableName, reqEditors ...RequestEditorFn) (*TableSchemaResponse, error) { + rsp, err := c.TableSchema(ctx, tableName, reqEditors...) + if err != nil { + return nil, err } + return ParseTableSchemaResponse(rsp) +} - return response, nil +// ListTeamsWithResponse request returning *ListTeamsResponse +func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error) { + rsp, err := c.ListTeams(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListTeamsResponse(rsp) } -// ParseGetPluginVersionResponse parses an HTTP response from a GetPluginVersionWithResponse call -func ParseGetPluginVersionResponse(rsp *http.Response) (*GetPluginVersionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DownloadPluginAssetByTeamWithResponse request returning *DownloadPluginAssetByTeamResponse +func (c *ClientWithResponses) DownloadPluginAssetByTeamWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetByTeamResponse, error) { + rsp, err := c.DownloadPluginAssetByTeam(ctx, teamName, pluginTeam, pluginKind, pluginName, versionName, targetName, params, reqEditors...) if err != nil { return nil, err } + return ParseDownloadPluginAssetByTeamResponse(rsp) +} - response := &GetPluginVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateSyncTestConnectionForSyncDestinationTeamWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionForSyncDestinationTeamResponse +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncDestinationTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationTeamResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncDestinationTeamWithBody(ctx, teamName, syncDestinationTestConnectionID, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateSyncTestConnectionForSyncDestinationTeamResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginVersionDetails - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncDestinationTeamWithResponse(ctx context.Context, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID, body UpdateSyncTestConnectionForSyncDestinationTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncDestinationTeamResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncDestinationTeam(ctx, teamName, syncDestinationTestConnectionID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncTestConnectionForSyncDestinationTeamResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// UpdateSyncTestConnectionForSyncSourceTeamWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionForSyncSourceTeamResponse +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncSourceTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceTeamResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncSourceTeamWithBody(ctx, teamName, syncSourceTestConnectionID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncTestConnectionForSyncSourceTeamResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) UpdateSyncTestConnectionForSyncSourceTeamWithResponse(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionForSyncSourceTeamResponse, error) { + rsp, err := c.UpdateSyncTestConnectionForSyncSourceTeam(ctx, teamName, syncSourceTestConnectionID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSyncTestConnectionForSyncSourceTeamResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// CreateSyncRunProgressTeamWithBodyWithResponse request with arbitrary body returning *CreateSyncRunProgressTeamResponse +func (c *ClientWithResponses) CreateSyncRunProgressTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressTeamResponse, error) { + rsp, err := c.CreateSyncRunProgressTeamWithBody(ctx, teamName, syncName, syncRunId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSyncRunProgressTeamResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) CreateSyncRunProgressTeamWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressTeamResponse, error) { + rsp, err := c.CreateSyncRunProgressTeam(ctx, teamName, syncName, syncRunId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSyncRunProgressTeamResponse(rsp) +} +// GetTeamUsageSummaryWithResponse request returning *GetTeamUsageSummaryResponse +func (c *ClientWithResponses) GetTeamUsageSummaryWithResponse(ctx context.Context, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetTeamUsageSummaryResponse, error) { + rsp, err := c.GetTeamUsageSummary(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseGetTeamUsageSummaryResponse(rsp) +} - return response, nil +// GetGroupedTeamUsageSummaryWithResponse request returning *GetGroupedTeamUsageSummaryResponse +func (c *ClientWithResponses) GetGroupedTeamUsageSummaryWithResponse(ctx context.Context, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetGroupedTeamUsageSummaryResponse, error) { + rsp, err := c.GetGroupedTeamUsageSummary(ctx, groupBy, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetGroupedTeamUsageSummaryResponse(rsp) } -// ParseUpdatePluginVersionResponse parses an HTTP response from a UpdatePluginVersionWithResponse call -func ParseUpdatePluginVersionResponse(rsp *http.Response) (*UpdatePluginVersionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetCurrentUserWithResponse request returning *GetCurrentUserResponse +func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) { + rsp, err := c.GetCurrentUser(ctx, reqEditors...) if err != nil { return nil, err } + return ParseGetCurrentUserResponse(rsp) +} - response := &UpdatePluginVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateCurrentUserWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserResponse +func (c *ClientWithResponses) UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) { + rsp, err := c.UpdateCurrentUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateCurrentUserResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginVersion - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +func (c *ClientWithResponses) UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) { + rsp, err := c.UpdateCurrentUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCurrentUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// SendAnonymousEventWithBodyWithResponse request with arbitrary body returning *SendAnonymousEventResponse +func (c *ClientWithResponses) SendAnonymousEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) { + rsp, err := c.SendAnonymousEventWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendAnonymousEventResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) SendAnonymousEventWithResponse(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) { + rsp, err := c.SendAnonymousEvent(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendAnonymousEventResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// AuthenticateUserWithBodyWithResponse request with arbitrary body returning *AuthenticateUserResponse +func (c *ClientWithResponses) AuthenticateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateUserResponse, error) { + rsp, err := c.AuthenticateUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthenticateUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +func (c *ClientWithResponses) AuthenticateUserWithResponse(ctx context.Context, body AuthenticateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateUserResponse, error) { + rsp, err := c.AuthenticateUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthenticateUserResponse(rsp) +} +// ChangeUserPasswordWithBodyWithResponse request with arbitrary body returning *ChangeUserPasswordResponse +func (c *ClientWithResponses) ChangeUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeUserPasswordResponse, error) { + rsp, err := c.ChangeUserPasswordWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseChangeUserPasswordResponse(rsp) +} - return response, nil +func (c *ClientWithResponses) ChangeUserPasswordWithResponse(ctx context.Context, body ChangeUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeUserPasswordResponse, error) { + rsp, err := c.ChangeUserPassword(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseChangeUserPasswordResponse(rsp) } -// ParseCreatePluginVersionResponse parses an HTTP response from a CreatePluginVersionWithResponse call -func ParseCreatePluginVersionResponse(rsp *http.Response) (*CreatePluginVersionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse +func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { + rsp, err := c.UpdateCustomerWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateCustomerResponse(rsp) +} - response := &CreatePluginVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { + rsp, err := c.UpdateCustomer(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateCustomerResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginVersion - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// SendUserEventWithBodyWithResponse request with arbitrary body returning *SendUserEventResponse +func (c *ClientWithResponses) SendUserEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) { + rsp, err := c.SendUserEventWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendUserEventResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest PluginVersion - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest +func (c *ClientWithResponses) SendUserEventWithResponse(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) { + rsp, err := c.SendUserEvent(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendUserEventResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// LogoutUserWithResponse request returning *LogoutUserResponse +func (c *ClientWithResponses) LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error) { + rsp, err := c.LogoutUser(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseLogoutUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// LoginUserWithBodyWithResponse request with arbitrary body returning *LoginUserResponse +func (c *ClientWithResponses) LoginUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) { + rsp, err := c.LoginUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseLoginUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) LoginUserWithResponse(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) { + rsp, err := c.LoginUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseLoginUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// UserTOTPDeleteWithResponse request returning *UserTOTPDeleteResponse +func (c *ClientWithResponses) UserTOTPDeleteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPDeleteResponse, error) { + rsp, err := c.UserTOTPDelete(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseUserTOTPDeleteResponse(rsp) +} +// UserTOTPSetupWithResponse request returning *UserTOTPSetupResponse +func (c *ClientWithResponses) UserTOTPSetupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPSetupResponse, error) { + rsp, err := c.UserTOTPSetup(ctx, reqEditors...) + if err != nil { + return nil, err } + return ParseUserTOTPSetupResponse(rsp) +} - return response, nil +// UserTOTPVerifyWithBodyWithResponse request with arbitrary body returning *UserTOTPVerifyResponse +func (c *ClientWithResponses) UserTOTPVerifyWithBodyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) { + rsp, err := c.UserTOTPVerifyWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUserTOTPVerifyResponse(rsp) } -// ParseDownloadPluginAssetResponse parses an HTTP response from a DownloadPluginAssetWithResponse call -func ParseDownloadPluginAssetResponse(rsp *http.Response) (*DownloadPluginAssetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) UserTOTPVerifyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) { + rsp, err := c.UserTOTPVerify(ctx, params, body, reqEditors...) if err != nil { return nil, err } + return ParseUserTOTPVerifyResponse(rsp) +} - response := &DownloadPluginAssetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListUsersWithResponse request returning *ListUsersResponse +func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) { + rsp, err := c.ListUsers(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListUsersResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginAsset - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// AddUserWithBodyWithResponse request with arbitrary body returning *AddUserResponse +func (c *ClientWithResponses) AddUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserResponse, error) { + rsp, err := c.AddUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) AddUserWithResponse(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserResponse, error) { + rsp, err := c.AddUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// DeleteUserWithResponse request returning *DeleteUserResponse +func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { + rsp, err := c.DeleteUser(ctx, userID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest +// GetUserWithResponse request returning *GetUserResponse +func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { + rsp, err := c.GetUser(ctx, userID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse +func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userID UserID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUserWithBody(ctx, userID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserResponse(rsp) +} +func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userID UserID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUser(ctx, userID, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateUserResponse(rsp) } -// ParseUploadPluginAssetResponse parses an HTTP response from a UploadPluginAssetWithResponse call -func ParseUploadPluginAssetResponse(rsp *http.Response) (*UploadPluginAssetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// DeleteUserTOTPWithResponse request returning *DeleteUserTOTPResponse +func (c *ClientWithResponses) DeleteUserTOTPWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserTOTPResponse, error) { + rsp, err := c.DeleteUserTOTP(ctx, userID, reqEditors...) if err != nil { return nil, err } + return ParseDeleteUserTOTPResponse(rsp) +} - response := &UploadPluginAssetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// CreateV2SyncDestinationTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateV2SyncDestinationTestConnectionResponse +func (c *ClientWithResponses) CreateV2SyncDestinationTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) { + rsp, err := c.CreateV2SyncDestinationTestConnectionWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateV2SyncDestinationTestConnectionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ReleaseURL - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - 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 Forbidden - 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 InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +func (c *ClientWithResponses) CreateV2SyncDestinationTestConnectionWithResponse(ctx context.Context, body CreateV2SyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationTestConnectionResponse, error) { + rsp, err := c.CreateV2SyncDestinationTestConnection(ctx, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateV2SyncDestinationTestConnectionResponse(rsp) } -// ParseDeletePluginVersionDocsResponse parses an HTTP response from a DeletePluginVersionDocsWithResponse call -func ParseDeletePluginVersionDocsResponse(rsp *http.Response) (*DeletePluginVersionDocsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetV2SyncDestinationsWithResponse request returning *GetV2SyncDestinationsResponse +func (c *ClientWithResponses) GetV2SyncDestinationsWithResponse(ctx context.Context, params *GetV2SyncDestinationsParams, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationsResponse, error) { + rsp, err := c.GetV2SyncDestinations(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseGetV2SyncDestinationsResponse(rsp) +} - response := &DeletePluginVersionDocsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// CreateV2SyncDestinationWithBodyWithResponse request with arbitrary body returning *CreateV2SyncDestinationResponse +func (c *ClientWithResponses) CreateV2SyncDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) { + rsp, err := c.CreateV2SyncDestinationWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateV2SyncDestinationResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 RequiresAuthentication - 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 Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest +func (c *ClientWithResponses) CreateV2SyncDestinationWithResponse(ctx context.Context, body CreateV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncDestinationResponse, error) { + rsp, err := c.CreateV2SyncDestination(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateV2SyncDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// DeleteV2SyncDestinationWithResponse request returning *DeleteV2SyncDestinationResponse +func (c *ClientWithResponses) DeleteV2SyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteV2SyncDestinationResponse, error) { + rsp, err := c.DeleteV2SyncDestination(ctx, syncDestinationName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteV2SyncDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest +// GetV2SyncDestinationWithResponse request returning *GetV2SyncDestinationResponse +func (c *ClientWithResponses) GetV2SyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetV2SyncDestinationResponse, error) { + rsp, err := c.GetV2SyncDestination(ctx, syncDestinationName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetV2SyncDestinationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// PatchV2SyncDestinationWithBodyWithResponse request with arbitrary body returning *PatchV2SyncDestinationResponse +func (c *ClientWithResponses) PatchV2SyncDestinationWithBodyWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) { + rsp, err := c.PatchV2SyncDestinationWithBody(ctx, syncDestinationName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchV2SyncDestinationResponse(rsp) +} +func (c *ClientWithResponses) PatchV2SyncDestinationWithResponse(ctx context.Context, syncDestinationName SyncDestinationName, body PatchV2SyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV2SyncDestinationResponse, error) { + rsp, err := c.PatchV2SyncDestination(ctx, syncDestinationName, body, reqEditors...) + if err != nil { + return nil, err } + return ParsePatchV2SyncDestinationResponse(rsp) +} - return response, nil +// CreateV2SyncIntegrationTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateV2SyncIntegrationTestConnectionResponse +func (c *ClientWithResponses) CreateV2SyncIntegrationTestConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) { + rsp, err := c.CreateV2SyncIntegrationTestConnectionWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateV2SyncIntegrationTestConnectionResponse(rsp) } -// ParseListPluginVersionDocsResponse parses an HTTP response from a ListPluginVersionDocsWithResponse call -func ParseListPluginVersionDocsResponse(rsp *http.Response) (*ListPluginVersionDocsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateV2SyncIntegrationTestConnectionWithResponse(ctx context.Context, body CreateV2SyncIntegrationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationTestConnectionResponse, error) { + rsp, err := c.CreateV2SyncIntegrationTestConnection(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateV2SyncIntegrationTestConnectionResponse(rsp) +} - response := &ListPluginVersionDocsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListV2SyncIntegrationsWithResponse request returning *ListV2SyncIntegrationsResponse +func (c *ClientWithResponses) ListV2SyncIntegrationsWithResponse(ctx context.Context, params *ListV2SyncIntegrationsParams, reqEditors ...RequestEditorFn) (*ListV2SyncIntegrationsResponse, error) { + rsp, err := c.ListV2SyncIntegrations(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListV2SyncIntegrationsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []PluginDocsPage `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// CreateV2SyncIntegrationWithBodyWithResponse request with arbitrary body returning *CreateV2SyncIntegrationResponse +func (c *ClientWithResponses) CreateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) { + rsp, err := c.CreateV2SyncIntegrationWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateV2SyncIntegrationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +func (c *ClientWithResponses) CreateV2SyncIntegrationWithResponse(ctx context.Context, body CreateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateV2SyncIntegrationResponse, error) { + rsp, err := c.CreateV2SyncIntegration(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateV2SyncIntegrationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// DeleteV2SyncIntegrationWithResponse request returning *DeleteV2SyncIntegrationResponse +func (c *ClientWithResponses) DeleteV2SyncIntegrationWithResponse(ctx context.Context, syncName SyncName, params *DeleteV2SyncIntegrationParams, reqEditors ...RequestEditorFn) (*DeleteV2SyncIntegrationResponse, error) { + rsp, err := c.DeleteV2SyncIntegration(ctx, syncName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteV2SyncIntegrationResponse(rsp) +} - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// GetV2SyncIntegrationWithResponse request returning *GetV2SyncIntegrationResponse +func (c *ClientWithResponses) GetV2SyncIntegrationWithResponse(ctx context.Context, syncName SyncName, reqEditors ...RequestEditorFn) (*GetV2SyncIntegrationResponse, error) { + rsp, err := c.GetV2SyncIntegration(ctx, syncName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetV2SyncIntegrationResponse(rsp) +} +// UpdateV2SyncIntegrationWithBodyWithResponse request with arbitrary body returning *UpdateV2SyncIntegrationResponse +func (c *ClientWithResponses) UpdateV2SyncIntegrationWithBodyWithResponse(ctx context.Context, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) { + rsp, err := c.UpdateV2SyncIntegrationWithBody(ctx, syncName, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateV2SyncIntegrationResponse(rsp) +} - return response, nil +func (c *ClientWithResponses) UpdateV2SyncIntegrationWithResponse(ctx context.Context, syncName SyncName, body UpdateV2SyncIntegrationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateV2SyncIntegrationResponse, error) { + rsp, err := c.UpdateV2SyncIntegration(ctx, syncName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateV2SyncIntegrationResponse(rsp) } -// ParseReplacePluginVersionDocsResponse parses an HTTP response from a ReplacePluginVersionDocsWithResponse call -func ParseReplacePluginVersionDocsResponse(rsp *http.Response) (*ReplacePluginVersionDocsResponse, error) { +// ParseIndexResponse parses an HTTP response from a IndexWithResponse call +func ParseIndexResponse(rsp *http.Response) (*IndexResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ReplacePluginVersionDocsResponse{ + response := &IndexResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest struct { - Names *[]PluginDocsPageName `json:"names,omitempty"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + Errors *[]string `json:"errors,omitempty"` + FieldErrors *map[string]string `json:"field_errors,omitempty"` + Message string `json:"message"` + Status int `json:"status"` } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest 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 RequiresAuthentication - 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 Forbidden - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - } return response, nil } -// ParseCreatePluginVersionDocsResponse parses an HTTP response from a CreatePluginVersionDocsWithResponse call -func ParseCreatePluginVersionDocsResponse(rsp *http.Response) (*CreatePluginVersionDocsResponse, error) { +// ParseListAllAlertsResponse parses an HTTP response from a ListAllAlertsWithResponse call +func ParseListAllAlertsResponse(rsp *http.Response) (*ListAllAlertsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreatePluginVersionDocsResponse{ + response := &ListAllAlertsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Names *[]PluginDocsPageName `json:"names,omitempty"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + Items []AlertDetail `json:"items"` + Metadata ListMetadata `json:"metadata"` } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -41614,20 +33455,30 @@ func ParseCreatePluginVersionDocsResponse(rsp *http.Response) (*CreatePluginVers return response, nil } -// ParseDeletePluginVersionTablesResponse parses an HTTP response from a DeletePluginVersionTablesWithResponse call -func ParseDeletePluginVersionTablesResponse(rsp *http.Response) (*DeletePluginVersionTablesResponse, error) { +// ParseTestUnsavedAlertResponse parses an HTTP response from a TestUnsavedAlertWithResponse call +func ParseTestUnsavedAlertResponse(rsp *http.Response) (*TestUnsavedAlertResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeletePluginVersionTablesResponse{ + response := &TestUnsavedAlertResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Results Notification results for the test alert + Results []AlertTestResponse `json:"results"` + } + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41675,15 +33526,15 @@ func ParseDeletePluginVersionTablesResponse(rsp *http.Response) (*DeletePluginVe return response, nil } -// ParseListPluginVersionTablesResponse parses an HTTP response from a ListPluginVersionTablesWithResponse call -func ParseListPluginVersionTablesResponse(rsp *http.Response) (*ListPluginVersionTablesResponse, error) { +// ParseListAPIKeysResponse parses an HTTP response from a ListAPIKeysWithResponse call +func ParseListAPIKeysResponse(rsp *http.Response) (*ListAPIKeysResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPluginVersionTablesResponse{ + response := &ListAPIKeysResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -41691,8 +33542,10 @@ func ParseListPluginVersionTablesResponse(rsp *http.Response) (*ListPluginVersio switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []PluginTable `json:"items"` - Metadata ListMetadata `json:"metadata"` + // AllowedRoles List of allowed roles when creating a new API key + AllowedRoles []Role `json:"allowed_roles"` + Items []APIKey `json:"items"` + Metadata ListMetadata `json:"metadata"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -41725,24 +33578,22 @@ func ParseListPluginVersionTablesResponse(rsp *http.Response) (*ListPluginVersio return response, nil } -// ParseCreatePluginVersionTablesResponse parses an HTTP response from a CreatePluginVersionTablesWithResponse call -func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVersionTablesResponse, error) { +// ParseCreateAPIKeyResponse parses an HTTP response from a CreateAPIKeyWithResponse call +func ParseCreateAPIKeyResponse(rsp *http.Response) (*CreateAPIKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreatePluginVersionTablesResponse{ + response := &CreateAPIKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest struct { - Names *[]PluginTableName `json:"names,omitempty"` - } + var dest APIKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -41769,13 +33620,6 @@ func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVe } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41795,26 +33639,26 @@ func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVe return response, nil } -// ParseGetPluginVersionTableResponse parses an HTTP response from a GetPluginVersionTableWithResponse call -func ParseGetPluginVersionTableResponse(rsp *http.Response) (*GetPluginVersionTableResponse, error) { +// ParseDeleteAPIKeyResponse parses an HTTP response from a DeleteAPIKeyWithResponse call +func ParseDeleteAPIKeyResponse(rsp *http.Response) (*DeleteAPIKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetPluginVersionTableResponse{ + response := &DeleteAPIKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginTableDetails + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -41830,52 +33674,12 @@ func ParseGetPluginVersionTableResponse(rsp *http.Response) (*GetPluginVersionTa } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseRemovePluginUIAssetsResponse parses an HTTP response from a RemovePluginUIAssetsWithResponse call -func ParseRemovePluginUIAssetsResponse(rsp *http.Response) (*RemovePluginUIAssetsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &RemovePluginUIAssetsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 RequiresAuthentication - 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 Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -41889,38 +33693,29 @@ func ParseRemovePluginUIAssetsResponse(rsp *http.Response) (*RemovePluginUIAsset return response, nil } -// ParseUploadPluginUIAssetsResponse parses an HTTP response from a UploadPluginUIAssetsWithResponse call -func ParseUploadPluginUIAssetsResponse(rsp *http.Response) (*UploadPluginUIAssetsResponse, error) { +// ParseListAuditLogsResponse parses an HTTP response from a ListAuditLogsWithResponse call +func ParseListAuditLogsResponse(rsp *http.Response) (*ListAuditLogsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UploadPluginUIAssetsResponse{ + response := &ListAuditLogsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Assets []PluginUIAsset `json:"assets"` - - // UIID ID representing this upload - UIID string `json:"ui_id"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + Items []AuditLogEvent `json:"items"` + Metadata ListMetadata `json:"metadata"` } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -41936,13 +33731,6 @@ func ParseUploadPluginUIAssetsResponse(rsp *http.Response) (*UploadPluginUIAsset } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -41955,26 +33743,26 @@ func ParseUploadPluginUIAssetsResponse(rsp *http.Response) (*UploadPluginUIAsset return response, nil } -// ParseFinalizePluginUIAssetUploadResponse parses an HTTP response from a FinalizePluginUIAssetUploadWithResponse call -func ParseFinalizePluginUIAssetUploadResponse(rsp *http.Response) (*FinalizePluginUIAssetUploadResponse, error) { +// ParseGetAuditLogResponse parses an HTTP response from a GetAuditLogWithResponse call +func ParseGetAuditLogResponse(rsp *http.Response) (*GetAuditLogResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &FinalizePluginUIAssetUploadResponse{ + response := &GetAuditLogResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AuditLogEvent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -41990,12 +33778,12 @@ func ParseFinalizePluginUIAssetUploadResponse(rsp *http.Response) (*FinalizePlug } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -42009,57 +33797,36 @@ func ParseFinalizePluginUIAssetUploadResponse(rsp *http.Response) (*FinalizePlug return response, nil } -// ParseAuthRegistryRequestResponse parses an HTTP response from a AuthRegistryRequestWithResponse call -func ParseAuthRegistryRequestResponse(rsp *http.Response) (*AuthRegistryRequestResponse, error) { +// ParseGetSAMLResponse parses an HTTP response from a GetSAMLWithResponse call +func ParseGetSAMLResponse(rsp *http.Response) (*GetSAMLResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthRegistryRequestResponse{ + response := &GetSAMLResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RegistryAuthToken + var dest SAMLConfig 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 DockerError + var dest BadRequest 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 DockerError - 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 DockerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest DockerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest DockerError + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42070,84 +33837,27 @@ func ParseAuthRegistryRequestResponse(rsp *http.Response) (*AuthRegistryRequestR return response, nil } -// ParseListTeamsResponse parses an HTTP response from a ListTeamsWithResponse call -func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error) { +// ParseUpdateSAMLResponse parses an HTTP response from a UpdateSAMLWithResponse call +func ParseUpdateSAMLResponse(rsp *http.Response) (*UpdateSAMLResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListTeamsResponse{ + response := &UpdateSAMLResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []Team `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + var dest SAMLConfig 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 == 401: - var dest RequiresAuthentication - 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 Forbidden - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call -func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateTeamResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Team - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42155,19 +33865,12 @@ func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error) { } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - 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 Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity @@ -42188,15 +33891,15 @@ func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error) { return response, nil } -// ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call -func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { +// ParseDeleteSAMLRolloverCertificateResponse parses an HTTP response from a DeleteSAMLRolloverCertificateWithResponse call +func ParseDeleteSAMLRolloverCertificateResponse(rsp *http.Response) (*DeleteSAMLRolloverCertificateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamResponse{ + response := &DeleteSAMLRolloverCertificateResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -42209,20 +33912,6 @@ func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - 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 Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42249,22 +33938,22 @@ func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { return response, nil } -// ParseGetTeamByNameResponse parses an HTTP response from a GetTeamByNameWithResponse call -func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, error) { +// ParseCreateSAMLRolloverCertificateResponse parses an HTTP response from a CreateSAMLRolloverCertificateWithResponse call +func ParseCreateSAMLRolloverCertificateResponse(rsp *http.Response) (*CreateSAMLRolloverCertificateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamByNameResponse{ + response := &CreateSAMLRolloverCertificateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Team + var dest SAMLConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42277,26 +33966,26 @@ func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, err } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -42310,22 +33999,22 @@ func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, err return response, nil } -// ParseUpdateTeamResponse parses an HTTP response from a UpdateTeamWithResponse call -func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error) { +// ParsePromoteSAMLRolloverCertificateResponse parses an HTTP response from a PromoteSAMLRolloverCertificateWithResponse call +func ParsePromoteSAMLRolloverCertificateResponse(rsp *http.Response) (*PromoteSAMLRolloverCertificateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateTeamResponse{ + response := &PromoteSAMLRolloverCertificateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Team + var dest SAMLConfig if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42338,26 +34027,19 @@ func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error) { } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - 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 Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -42371,57 +34053,47 @@ func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error) { return response, nil } -// ParseListAllAlertsResponse parses an HTTP response from a ListAllAlertsWithResponse call -func ParseListAllAlertsResponse(rsp *http.Response) (*ListAllAlertsResponse, error) { +// ParseCreateConversationResponse parses an HTTP response from a CreateConversationWithResponse call +func ParseCreateConversationResponse(rsp *http.Response) (*CreateConversationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAllAlertsResponse{ + response := &CreateConversationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []AlertDetail `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - 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 == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Conversation if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -42435,25 +34107,22 @@ func ParseListAllAlertsResponse(rsp *http.Response) (*ListAllAlertsResponse, err return response, nil } -// ParseTestUnsavedAlertResponse parses an HTTP response from a TestUnsavedAlertWithResponse call -func ParseTestUnsavedAlertResponse(rsp *http.Response) (*TestUnsavedAlertResponse, error) { +// ParseGetConversationResponse parses an HTTP response from a GetConversationWithResponse call +func ParseGetConversationResponse(rsp *http.Response) (*GetConversationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TestUnsavedAlertResponse{ + response := &GetConversationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Results Notification results for the test alert - Results []AlertTestResponse `json:"results"` - } + var dest Conversation if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -42473,13 +34142,6 @@ func ParseTestUnsavedAlertResponse(rsp *http.Response) (*TestUnsavedAlertRespons } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42506,31 +34168,33 @@ func ParseTestUnsavedAlertResponse(rsp *http.Response) (*TestUnsavedAlertRespons return response, nil } -// ParseListTeamAPIKeysResponse parses an HTTP response from a ListTeamAPIKeysWithResponse call -func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, error) { +// ParseSendMessageResponse parses an HTTP response from a SendMessageWithResponse call +func ParseSendMessageResponse(rsp *http.Response) (*SendMessageResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListTeamAPIKeysResponse{ + response := &SendMessageResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // AllowedRoles List of allowed roles when creating a new API key - AllowedRoles []APIKeyTeamRole `json:"allowed_roles"` - Items []APIKey `json:"items"` - Metadata ListMetadata `json:"metadata"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ConversationMessage + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -42539,6 +34203,13 @@ func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42546,6 +34217,13 @@ func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42558,26 +34236,29 @@ func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, return response, nil } -// ParseCreateTeamAPIKeyResponse parses an HTTP response from a CreateTeamAPIKeyWithResponse call -func ParseCreateTeamAPIKeyResponse(rsp *http.Response) (*CreateTeamAPIKeyResponse, error) { +// ParseListAllCustomColumnsResponse parses an HTTP response from a ListAllCustomColumnsWithResponse call +func ParseListAllCustomColumnsResponse(rsp *http.Response) (*ListAllCustomColumnsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTeamAPIKeyResponse{ + response := &ListAllCustomColumnsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest APIKey + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []CustomColumn `json:"items"` + Metadata ListMetadata `json:"metadata"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -42593,6 +34274,20 @@ func ParseCreateTeamAPIKeyResponse(rsp *http.Response) (*CreateTeamAPIKeyRespons } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42612,20 +34307,27 @@ func ParseCreateTeamAPIKeyResponse(rsp *http.Response) (*CreateTeamAPIKeyRespons return response, nil } -// ParseDeleteTeamAPIKeyResponse parses an HTTP response from a DeleteTeamAPIKeyWithResponse call -func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyResponse, error) { +// ParseSaveCustomColumnResponse parses an HTTP response from a SaveCustomColumnWithResponse call +func ParseSaveCustomColumnResponse(rsp *http.Response) (*SaveCustomColumnResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamAPIKeyResponse{ + response := &SaveCustomColumnResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CustomColumn + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42640,6 +34342,13 @@ func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyRespons } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42647,6 +34356,13 @@ func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyRespons } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42659,50 +34375,47 @@ func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyRespons return response, nil } -// ParseListConnectorsResponse parses an HTTP response from a ListConnectorsWithResponse call -func ParseListConnectorsResponse(rsp *http.Response) (*ListConnectorsResponse, error) { +// ParseDeleteCustomColumnResponse parses an HTTP response from a DeleteCustomColumnWithResponse call +func ParseDeleteCustomColumnResponse(rsp *http.Response) (*DeleteCustomColumnResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListConnectorsResponse{ + response := &DeleteCustomColumnResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []Connector `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -42716,40 +34429,47 @@ func ParseListConnectorsResponse(rsp *http.Response) (*ListConnectorsResponse, e return response, nil } -// ParseCreateConnectorResponse parses an HTTP response from a CreateConnectorWithResponse call -func ParseCreateConnectorResponse(rsp *http.Response) (*CreateConnectorResponse, error) { +// ParseGetCustomColumnResponse parses an HTTP response from a GetCustomColumnWithResponse call +func ParseGetCustomColumnResponse(rsp *http.Response) (*GetCustomColumnResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateConnectorResponse{ + response := &GetCustomColumnResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Connector + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomColumn if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity @@ -42770,27 +34490,34 @@ func ParseCreateConnectorResponse(rsp *http.Response) (*CreateConnectorResponse, return response, nil } -// ParseGetConnectorResponse parses an HTTP response from a GetConnectorWithResponse call -func ParseGetConnectorResponse(rsp *http.Response) (*GetConnectorResponse, error) { +// ParseUpdateCustomColumnResponse parses an HTTP response from a UpdateCustomColumnWithResponse call +func ParseUpdateCustomColumnResponse(rsp *http.Response) (*UpdateCustomColumnResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetConnectorResponse{ + response := &UpdateCustomColumnResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Connector + var dest CustomColumn 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 BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42798,6 +34525,13 @@ func ParseGetConnectorResponse(rsp *http.Response) (*GetConnectorResponse, error } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42805,6 +34539,13 @@ func ParseGetConnectorResponse(rsp *http.Response) (*GetConnectorResponse, error } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42817,40 +34558,43 @@ func ParseGetConnectorResponse(rsp *http.Response) (*GetConnectorResponse, error return response, nil } -// ParseUpdateConnectorResponse parses an HTTP response from a UpdateConnectorWithResponse call -func ParseUpdateConnectorResponse(rsp *http.Response) (*UpdateConnectorResponse, error) { +// ParseListFiltersResponse parses an HTTP response from a ListFiltersWithResponse call +func ParseListFiltersResponse(rsp *http.Response) (*ListFiltersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateConnectorResponse{ + response := &ListFiltersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Connector + var dest struct { + Items []Filter `json:"items"` + Metadata ListMetadata `json:"metadata"` + } 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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -42859,6 +34603,13 @@ func ParseUpdateConnectorResponse(rsp *http.Response) (*UpdateConnectorResponse, } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42871,20 +34622,30 @@ func ParseUpdateConnectorResponse(rsp *http.Response) (*UpdateConnectorResponse, return response, nil } -// ParseRevokeConnectorResponse parses an HTTP response from a RevokeConnectorWithResponse call -func ParseRevokeConnectorResponse(rsp *http.Response) (*RevokeConnectorResponse, error) { +// ParseListFilterTagsResponse parses an HTTP response from a ListFilterTagsWithResponse call +func ParseListFilterTagsResponse(rsp *http.Response) (*ListFilterTagsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RevokeConnectorResponse{ + response := &ListFilterTagsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []FilterTag `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + 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 == 401: var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42892,6 +34653,13 @@ func ParseRevokeConnectorResponse(rsp *http.Response) (*RevokeConnectorResponse, } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -42918,46 +34686,33 @@ func ParseRevokeConnectorResponse(rsp *http.Response) (*RevokeConnectorResponse, return response, nil } -// ParseGetConnectorAuthStatusAWSResponse parses an HTTP response from a GetConnectorAuthStatusAWSWithResponse call -func ParseGetConnectorAuthStatusAWSResponse(rsp *http.Response) (*GetConnectorAuthStatusAWSResponse, error) { +// ParseDeleteFilterResponse parses an HTTP response from a DeleteFilterWithResponse call +func ParseDeleteFilterResponse(rsp *http.Response) (*DeleteFilterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetConnectorAuthStatusAWSResponse{ + response := &DeleteFilterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // ExternalID External ID used for the role - ExternalID *string `json:"external_id,omitempty"` - - // RoleARN ARN of role created by the user - RoleARN *string `json:"role_arn,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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -42985,26 +34740,26 @@ func ParseGetConnectorAuthStatusAWSResponse(rsp *http.Response) (*GetConnectorAu return response, nil } -// ParseAuthenticateConnectorFinishAWSResponse parses an HTTP response from a AuthenticateConnectorFinishAWSWithResponse call -func ParseAuthenticateConnectorFinishAWSResponse(rsp *http.Response) (*AuthenticateConnectorFinishAWSResponse, error) { +// ParseGetFilterByIDResponse parses an HTTP response from a GetFilterByIDWithResponse call +func ParseGetFilterByIDResponse(rsp *http.Response) (*GetFilterByIDResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorFinishAWSResponse{ + response := &GetFilterByIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Filter if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -43046,40 +34801,40 @@ func ParseAuthenticateConnectorFinishAWSResponse(rsp *http.Response) (*Authentic return response, nil } -// ParseAuthenticateConnectorAWSResponse parses an HTTP response from a AuthenticateConnectorAWSWithResponse call -func ParseAuthenticateConnectorAWSResponse(rsp *http.Response) (*AuthenticateConnectorAWSResponse, error) { +// ParseUpdateFilterResponse parses an HTTP response from a UpdateFilterWithResponse call +func ParseUpdateFilterResponse(rsp *http.Response) (*UpdateFilterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorAWSResponse{ + response := &UpdateFilterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseAWS + var dest Filter 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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -43107,30 +34862,20 @@ func ParseAuthenticateConnectorAWSResponse(rsp *http.Response) (*AuthenticateCon return response, nil } -// ParseGetConnectorAuthStatusGCPResponse parses an HTTP response from a GetConnectorAuthStatusGCPWithResponse call -func ParseGetConnectorAuthStatusGCPResponse(rsp *http.Response) (*GetConnectorAuthStatusGCPResponse, error) { +// ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call +func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetConnectorAuthStatusGCPResponse{ + response := &HealthCheckResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // ServiceAccount CloudQuery GCP Service Account to grant access to - ServiceAccount *string `json:"service_account,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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43138,26 +34883,45 @@ func ParseGetConnectorAuthStatusGCPResponse(rsp *http.Response) (*GetConnectorAu } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest ServiceUnavailable if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON503 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + } + + return response, nil +} + +// ParseHealthCheckHeadResponse parses an HTTP response from a HealthCheckHeadWithResponse call +func ParseHealthCheckHeadResponse(rsp *http.Response) (*HealthCheckHeadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HealthCheckHeadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -43166,27 +34930,37 @@ func ParseGetConnectorAuthStatusGCPResponse(rsp *http.Response) (*GetConnectorAu } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest ServiceUnavailable + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseAuthenticateConnectorGCPResponse parses an HTTP response from a AuthenticateConnectorGCPWithResponse call -func ParseAuthenticateConnectorGCPResponse(rsp *http.Response) (*AuthenticateConnectorGCPResponse, error) { +// ParseListPlatformInsightsResponse parses an HTTP response from a ListPlatformInsightsWithResponse call +func ParseListPlatformInsightsResponse(rsp *http.Response) (*ListPlatformInsightsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorGCPResponse{ + response := &ListPlatformInsightsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseGCP + var dest struct { + Items []Insight `json:"items"` + Metadata InsightsListMetadata `json:"metadata"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43206,19 +34980,12 @@ func ParseAuthenticateConnectorGCPResponse(rsp *http.Response) (*AuthenticateCon } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -43232,20 +34999,30 @@ func ParseAuthenticateConnectorGCPResponse(rsp *http.Response) (*AuthenticateCon return response, nil } -// ParseAuthenticateConnectorFinishGCPResponse parses an HTTP response from a AuthenticateConnectorFinishGCPWithResponse call -func ParseAuthenticateConnectorFinishGCPResponse(rsp *http.Response) (*AuthenticateConnectorFinishGCPResponse, error) { +// ParseGetPlatformAssetInsightsResponse parses an HTTP response from a GetPlatformAssetInsightsWithResponse call +func ParseGetPlatformAssetInsightsResponse(rsp *http.Response) (*GetPlatformAssetInsightsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorFinishGCPResponse{ + response := &GetPlatformAssetInsightsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []Insight `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43274,13 +35051,6 @@ func ParseAuthenticateConnectorFinishGCPResponse(rsp *http.Response) (*Authentic } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43293,22 +35063,24 @@ func ParseAuthenticateConnectorFinishGCPResponse(rsp *http.Response) (*Authentic return response, nil } -// ParseAuthenticateConnectorFinishOAuthResponse parses an HTTP response from a AuthenticateConnectorFinishOAuthWithResponse call -func ParseAuthenticateConnectorFinishOAuthResponse(rsp *http.Response) (*AuthenticateConnectorFinishOAuthResponse, error) { +// ParseGetPlatformInsightColumnDistinctValuesResponse parses an HTTP response from a GetPlatformInsightColumnDistinctValuesWithResponse call +func ParseGetPlatformInsightColumnDistinctValuesResponse(rsp *http.Response) (*GetPlatformInsightColumnDistinctValuesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorFinishOAuthResponse{ + response := &GetPlatformInsightColumnDistinctValuesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseOAuth + var dest struct { + Values []string `json:"values"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43335,20 +35107,6 @@ func ParseAuthenticateConnectorFinishOAuthResponse(rsp *http.Response) (*Authent } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43361,40 +35119,43 @@ func ParseAuthenticateConnectorFinishOAuthResponse(rsp *http.Response) (*Authent return response, nil } -// ParseAuthenticateConnectorOAuthResponse parses an HTTP response from a AuthenticateConnectorOAuthWithResponse call -func ParseAuthenticateConnectorOAuthResponse(rsp *http.Response) (*AuthenticateConnectorOAuthResponse, error) { +// ParsePlatformListInsightFiltersResponse parses an HTTP response from a PlatformListInsightFiltersWithResponse call +func ParsePlatformListInsightFiltersResponse(rsp *http.Response) (*PlatformListInsightFiltersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorOAuthResponse{ + response := &PlatformListInsightFiltersResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseOAuth + var dest struct { + Items []PlatformInsightFilter `json:"items"` + Metadata ListMetadata `json:"metadata"` + } 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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -43422,47 +35183,47 @@ func ParseAuthenticateConnectorOAuthResponse(rsp *http.Response) (*AuthenticateC return response, nil } -// ParseCreateConversationResponse parses an HTTP response from a CreateConversationWithResponse call -func ParseCreateConversationResponse(rsp *http.Response) (*CreateConversationResponse, error) { +// ParsePlatformCreateInsightFilterResponse parses an HTTP response from a PlatformCreateInsightFilterWithResponse call +func ParsePlatformCreateInsightFilterResponse(rsp *http.Response) (*PlatformCreateInsightFilterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateConversationResponse{ + response := &PlatformCreateInsightFilterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Conversation + var dest PlatformInsightFilter if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -43476,47 +35237,47 @@ func ParseCreateConversationResponse(rsp *http.Response) (*CreateConversationRes return response, nil } -// ParseGetConversationResponse parses an HTTP response from a GetConversationWithResponse call -func ParseGetConversationResponse(rsp *http.Response) (*GetConversationResponse, error) { +// ParsePlatformDeleteInsightFilterResponse parses an HTTP response from a PlatformDeleteInsightFilterWithResponse call +func ParsePlatformDeleteInsightFilterResponse(rsp *http.Response) (*PlatformDeleteInsightFilterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetConversationResponse{ + response := &PlatformDeleteInsightFilterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Conversation + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -43530,33 +35291,26 @@ func ParseGetConversationResponse(rsp *http.Response) (*GetConversationResponse, return response, nil } -// ParseSendMessageResponse parses an HTTP response from a SendMessageWithResponse call -func ParseSendMessageResponse(rsp *http.Response) (*SendMessageResponse, error) { +// ParsePlatformGetInsightFilterByIDResponse parses an HTTP response from a PlatformGetInsightFilterByIDWithResponse call +func ParsePlatformGetInsightFilterByIDResponse(rsp *http.Response) (*PlatformGetInsightFilterByIDResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SendMessageResponse{ + response := &PlatformGetInsightFilterByIDResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ConversationMessage - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PlatformInsightFilter if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -43579,6 +35333,13 @@ func ParseSendMessageResponse(rsp *http.Response) (*SendMessageResponse, error) } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43591,37 +35352,27 @@ func ParseSendMessageResponse(rsp *http.Response) (*SendMessageResponse, error) return response, nil } -// ParseListAllCustomColumnsResponse parses an HTTP response from a ListAllCustomColumnsWithResponse call -func ParseListAllCustomColumnsResponse(rsp *http.Response) (*ListAllCustomColumnsResponse, error) { +// ParsePlatformUpdateInsightFilterResponse parses an HTTP response from a PlatformUpdateInsightFilterWithResponse call +func ParsePlatformUpdateInsightFilterResponse(rsp *http.Response) (*PlatformUpdateInsightFilterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAllCustomColumnsResponse{ + response := &PlatformUpdateInsightFilterResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []CustomColumn `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + var dest PlatformInsightFilter 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 BadRequest - 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43662,33 +35413,26 @@ func ParseListAllCustomColumnsResponse(rsp *http.Response) (*ListAllCustomColumn return response, nil } -// ParseSaveCustomColumnResponse parses an HTTP response from a SaveCustomColumnWithResponse call -func ParseSaveCustomColumnResponse(rsp *http.Response) (*SaveCustomColumnResponse, error) { +// ParseGetPlatformInsightResponse parses an HTTP response from a GetPlatformInsightWithResponse call +func ParseGetPlatformInsightResponse(rsp *http.Response) (*GetPlatformInsightResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SaveCustomColumnResponse{ + response := &GetPlatformInsightResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CustomColumn - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Insight if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -43711,13 +35455,6 @@ func ParseSaveCustomColumnResponse(rsp *http.Response) (*SaveCustomColumnRespons } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43730,20 +35467,30 @@ func ParseSaveCustomColumnResponse(rsp *http.Response) (*SaveCustomColumnRespons return response, nil } -// ParseDeleteCustomColumnResponse parses an HTTP response from a DeleteCustomColumnWithResponse call -func ParseDeleteCustomColumnResponse(rsp *http.Response) (*DeleteCustomColumnResponse, error) { +// ParseGetPlatformInsightAssetsResponse parses an HTTP response from a GetPlatformInsightAssetsWithResponse call +func ParseGetPlatformInsightAssetsResponse(rsp *http.Response) (*GetPlatformInsightAssetsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteCustomColumnResponse{ + response := &GetPlatformInsightAssetsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []PolicyViolation `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + 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 == 401: var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43765,13 +35512,6 @@ func ParseDeleteCustomColumnResponse(rsp *http.Response) (*DeleteCustomColumnRes } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43784,22 +35524,25 @@ func ParseDeleteCustomColumnResponse(rsp *http.Response) (*DeleteCustomColumnRes return response, nil } -// ParseGetCustomColumnResponse parses an HTTP response from a GetCustomColumnWithResponse call -func ParseGetCustomColumnResponse(rsp *http.Response) (*GetCustomColumnResponse, error) { +// ParseListNotificationsResponse parses an HTTP response from a ListNotificationsWithResponse call +func ParseListNotificationsResponse(rsp *http.Response) (*ListNotificationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCustomColumnResponse{ + response := &ListNotificationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CustomColumn + var dest struct { + Items []NotificationDetail `json:"items"` + Metadata ListMetadata `json:"metadata"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43845,34 +35588,20 @@ func ParseGetCustomColumnResponse(rsp *http.Response) (*GetCustomColumnResponse, return response, nil } -// ParseUpdateCustomColumnResponse parses an HTTP response from a UpdateCustomColumnWithResponse call -func ParseUpdateCustomColumnResponse(rsp *http.Response) (*UpdateCustomColumnResponse, error) { +// ParseDeleteNotificationDestinationResponse parses an HTTP response from a DeleteNotificationDestinationWithResponse call +func ParseDeleteNotificationDestinationResponse(rsp *http.Response) (*DeleteNotificationDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCustomColumnResponse{ + response := &DeleteNotificationDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CustomColumn - 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 BadRequest - 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43913,35 +35642,40 @@ func ParseUpdateCustomColumnResponse(rsp *http.Response) (*UpdateCustomColumnRes return response, nil } -// ParsePutCustomColumnDataResponse parses an HTTP response from a PutCustomColumnDataWithResponse call -func ParsePutCustomColumnDataResponse(rsp *http.Response) (*PutCustomColumnDataResponse, error) { +// ParseGetNotificationDestinationResponse parses an HTTP response from a GetNotificationDestinationWithResponse call +func ParseGetNotificationDestinationResponse(rsp *http.Response) (*GetNotificationDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutCustomColumnDataResponse{ + response := &GetNotificationDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 202: - var dest struct { - Data CustomColumnDataImportAccepted `json:"data"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationDestination + 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 == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON202 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -43950,27 +35684,41 @@ func ParsePutCustomColumnDataResponse(rsp *http.Response) (*PutCustomColumnDataR } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParsePutCustomColumnValuesResponse parses an HTTP response from a PutCustomColumnValuesWithResponse call -func ParsePutCustomColumnValuesResponse(rsp *http.Response) (*PutCustomColumnValuesResponse, error) { +// ParseUpdateNotificationDestinationResponse parses an HTTP response from a UpdateNotificationDestinationWithResponse call +func ParseUpdateNotificationDestinationResponse(rsp *http.Response) (*UpdateNotificationDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutCustomColumnValuesResponse{ + response := &UpdateNotificationDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} + var dest NotificationDestination if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -43983,6 +35731,20 @@ func ParsePutCustomColumnValuesResponse(rsp *http.Response) (*PutCustomColumnVal } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -43997,20 +35759,27 @@ func ParsePutCustomColumnValuesResponse(rsp *http.Response) (*PutCustomColumnVal } response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseListFiltersTeamResponse parses an HTTP response from a ListFiltersTeamWithResponse call -func ParseListFiltersTeamResponse(rsp *http.Response) (*ListFiltersTeamResponse, error) { +// ParseGetNotificationDestinationAlertsResponse parses an HTTP response from a GetNotificationDestinationAlertsWithResponse call +func ParseGetNotificationDestinationAlertsResponse(rsp *http.Response) (*GetNotificationDestinationAlertsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFiltersTeamResponse{ + response := &GetNotificationDestinationAlertsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -44018,8 +35787,8 @@ func ParseListFiltersTeamResponse(rsp *http.Response) (*ListFiltersTeamResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []Filter `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []AlertDetail `json:"items"` + Metadata ListMetadata `json:"metadata"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -44066,30 +35835,34 @@ func ParseListFiltersTeamResponse(rsp *http.Response) (*ListFiltersTeamResponse, return response, nil } -// ParseListFilterTagsTeamResponse parses an HTTP response from a ListFilterTagsTeamWithResponse call -func ParseListFilterTagsTeamResponse(rsp *http.Response) (*ListFilterTagsTeamResponse, error) { +// ParseTestNotificationDestinationResponse parses an HTTP response from a TestNotificationDestinationWithResponse call +func ParseTestNotificationDestinationResponse(rsp *http.Response) (*TestNotificationDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListFilterTagsTeamResponse{ + response := &TestNotificationDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []FilterTag `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + var dest NotificationDestinationTestResponse 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 BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44118,6 +35891,13 @@ func ParseListFilterTagsTeamResponse(rsp *http.Response) (*ListFilterTagsTeamRes } response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44130,20 +35910,30 @@ func ParseListFilterTagsTeamResponse(rsp *http.Response) (*ListFilterTagsTeamRes return response, nil } -// ParseDeleteFilterTeamResponse parses an HTTP response from a DeleteFilterTeamWithResponse call -func ParseDeleteFilterTeamResponse(rsp *http.Response) (*DeleteFilterTeamResponse, error) { +// ParseListAllNotificationDestinationsResponse parses an HTTP response from a ListAllNotificationDestinationsWithResponse call +func ParseListAllNotificationDestinationsResponse(rsp *http.Response) (*ListAllNotificationDestinationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteFilterTeamResponse{ + response := &ListAllNotificationDestinationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []NotificationDestinationListItem `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + 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 == 401: var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44184,26 +35974,33 @@ func ParseDeleteFilterTeamResponse(rsp *http.Response) (*DeleteFilterTeamRespons return response, nil } -// ParseGetFilterByIDTeamResponse parses an HTTP response from a GetFilterByIDTeamWithResponse call -func ParseGetFilterByIDTeamResponse(rsp *http.Response) (*GetFilterByIDTeamResponse, error) { +// ParseCreateNotificationDestinationResponse parses an HTTP response from a CreateNotificationDestinationWithResponse call +func ParseCreateNotificationDestinationResponse(rsp *http.Response) (*CreateNotificationDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFilterByIDTeamResponse{ + response := &CreateNotificationDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Filter + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest NotificationDestination if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 RequiresAuthentication @@ -44245,27 +36042,34 @@ func ParseGetFilterByIDTeamResponse(rsp *http.Response) (*GetFilterByIDTeamRespo return response, nil } -// ParseUpdateFilterTeamResponse parses an HTTP response from a UpdateFilterTeamWithResponse call -func ParseUpdateFilterTeamResponse(rsp *http.Response) (*UpdateFilterTeamResponse, error) { +// ParseTestUnsavedNotificationDestinationResponse parses an HTTP response from a TestUnsavedNotificationDestinationWithResponse call +func ParseTestUnsavedNotificationDestinationResponse(rsp *http.Response) (*TestUnsavedNotificationDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateFilterTeamResponse{ + response := &TestUnsavedNotificationDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Filter + var dest NotificationDestinationTestResponse 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 BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44306,30 +36110,34 @@ func ParseUpdateFilterTeamResponse(rsp *http.Response) (*UpdateFilterTeamRespons return response, nil } -// ParseCreateTeamImagesResponse parses an HTTP response from a CreateTeamImagesWithResponse call -func ParseCreateTeamImagesResponse(rsp *http.Response) (*CreateTeamImagesResponse, error) { +// ParseCreateAWSCUROnboardingResponse parses an HTTP response from a CreateAWSCUROnboardingWithResponse call +func ParseCreateAWSCUROnboardingResponse(rsp *http.Response) (*CreateAWSCUROnboardingResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTeamImagesResponse{ + response := &CreateAWSCUROnboardingResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest struct { - Items []TeamImage `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + var dest OnboardingAWSCURCreateResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44337,12 +36145,52 @@ func ParseCreateTeamImagesResponse(rsp *http.Response) (*CreateTeamImagesRespons } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseGetAWSCUROnboardingResponse parses an HTTP response from a GetAWSCUROnboardingWithResponse call +func ParseGetAWSCUROnboardingResponse(rsp *http.Response) (*GetAWSCUROnboardingResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAWSCUROnboardingResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OnboardingAWSCUR + 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 BadRequest + 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 RequiresAuthentication + 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 NotFound @@ -44363,15 +36211,15 @@ func ParseCreateTeamImagesResponse(rsp *http.Response) (*CreateTeamImagesRespons return response, nil } -// ParseDeleteTeamInvitationResponse parses an HTTP response from a DeleteTeamInvitationWithResponse call -func ParseDeleteTeamInvitationResponse(rsp *http.Response) (*DeleteTeamInvitationResponse, error) { +// ParseNotifyAWSCUROnboardingResponse parses an HTTP response from a NotifyAWSCUROnboardingWithResponse call +func ParseNotifyAWSCUROnboardingResponse(rsp *http.Response) (*NotifyAWSCUROnboardingResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamInvitationResponse{ + response := &NotifyAWSCUROnboardingResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -44391,20 +36239,6 @@ func ParseDeleteTeamInvitationResponse(rsp *http.Response) (*DeleteTeamInvitatio } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44417,36 +36251,40 @@ func ParseDeleteTeamInvitationResponse(rsp *http.Response) (*DeleteTeamInvitatio return response, nil } -// ParseListTeamInvitationsResponse parses an HTTP response from a ListTeamInvitationsWithResponse call -func ParseListTeamInvitationsResponse(rsp *http.Response) (*ListTeamInvitationsResponse, error) { +// ParseVerifyAWSCUROnboardingResponse parses an HTTP response from a VerifyAWSCUROnboardingWithResponse call +func ParseVerifyAWSCUROnboardingResponse(rsp *http.Response) (*VerifyAWSCUROnboardingResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListTeamInvitationsResponse{ + response := &VerifyAWSCUROnboardingResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []Invitation `json:"items"` - Metadata ListMetadata `json:"metadata"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -44460,40 +36298,40 @@ func ParseListTeamInvitationsResponse(rsp *http.Response) (*ListTeamInvitationsR return response, nil } -// ParseAcceptTeamInvitationResponse parses an HTTP response from a AcceptTeamInvitationWithResponse call -func ParseAcceptTeamInvitationResponse(rsp *http.Response) (*AcceptTeamInvitationResponse, error) { +// ParseCreateAWSOnboardingResponse parses an HTTP response from a CreateAWSOnboardingWithResponse call +func ParseCreateAWSOnboardingResponse(rsp *http.Response) (*CreateAWSOnboardingResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AcceptTeamInvitationResponse{ + response := &CreateAWSOnboardingResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest MembershipWithTeam + var dest OnboardingAWSCreateResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 303: - var dest MembershipWithTeam + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON303 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -44507,20 +36345,27 @@ func ParseAcceptTeamInvitationResponse(rsp *http.Response) (*AcceptTeamInvitatio return response, nil } -// ParseRemoveTeamMembershipResponse parses an HTTP response from a RemoveTeamMembershipWithResponse call -func ParseRemoveTeamMembershipResponse(rsp *http.Response) (*RemoveTeamMembershipResponse, error) { +// ParseGetAWSOnboardingResponse parses an HTTP response from a GetAWSOnboardingWithResponse call +func ParseGetAWSOnboardingResponse(rsp *http.Response) (*GetAWSOnboardingResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RemoveTeamMembershipResponse{ + response := &GetAWSOnboardingResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OnboardingAWS + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44535,13 +36380,6 @@ func ParseRemoveTeamMembershipResponse(rsp *http.Response) (*RemoveTeamMembershi } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44549,13 +36387,6 @@ func ParseRemoveTeamMembershipResponse(rsp *http.Response) (*RemoveTeamMembershi } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44568,25 +36399,22 @@ func ParseRemoveTeamMembershipResponse(rsp *http.Response) (*RemoveTeamMembershi return response, nil } -// ParseGetTeamMembershipsResponse parses an HTTP response from a GetTeamMembershipsWithResponse call -func ParseGetTeamMembershipsResponse(rsp *http.Response) (*GetTeamMembershipsResponse, error) { +// ParseGetAWSAccountsInRootResponse parses an HTTP response from a GetAWSAccountsInRootWithResponse call +func ParseGetAWSAccountsInRootResponse(rsp *http.Response) (*GetAWSAccountsInRootResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamMembershipsResponse{ + response := &GetAWSAccountsInRootResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []MembershipWithUser `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + var dest OnboardingAWSAccounts if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -44606,13 +36434,6 @@ func ParseGetTeamMembershipsResponse(rsp *http.Response) (*GetTeamMembershipsRes } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44632,15 +36453,15 @@ func ParseGetTeamMembershipsResponse(rsp *http.Response) (*GetTeamMembershipsRes return response, nil } -// ParseDeleteTeamMembershipResponse parses an HTTP response from a DeleteTeamMembershipWithResponse call -func ParseDeleteTeamMembershipResponse(rsp *http.Response) (*DeleteTeamMembershipResponse, error) { +// ParseProvisionOnboardingConfigurationResponse parses an HTTP response from a ProvisionOnboardingConfigurationWithResponse call +func ParseProvisionOnboardingConfigurationResponse(rsp *http.Response) (*ProvisionOnboardingConfigurationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamMembershipResponse{ + response := &ProvisionOnboardingConfigurationResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -44660,13 +36481,6 @@ func ParseDeleteTeamMembershipResponse(rsp *http.Response) (*DeleteTeamMembershi } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44693,47 +36507,47 @@ func ParseDeleteTeamMembershipResponse(rsp *http.Response) (*DeleteTeamMembershi return response, nil } -// ParseDeleteNotificationDestinationResponse parses an HTTP response from a DeleteNotificationDestinationWithResponse call -func ParseDeleteNotificationDestinationResponse(rsp *http.Response) (*DeleteNotificationDestinationResponse, error) { +// ParseGetAWSAccountsInParentResponse parses an HTTP response from a GetAWSAccountsInParentWithResponse call +func ParseGetAWSAccountsInParentResponse(rsp *http.Response) (*GetAWSAccountsInParentResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteNotificationDestinationResponse{ + response := &GetAWSAccountsInParentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OnboardingAWSAccounts 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 == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -44747,26 +36561,26 @@ func ParseDeleteNotificationDestinationResponse(rsp *http.Response) (*DeleteNoti return response, nil } -// ParseGetNotificationDestinationResponse parses an HTTP response from a GetNotificationDestinationWithResponse call -func ParseGetNotificationDestinationResponse(rsp *http.Response) (*GetNotificationDestinationResponse, error) { +// ParseNotifyOnboardingResponse parses an HTTP response from a NotifyOnboardingWithResponse call +func ParseNotifyOnboardingResponse(rsp *http.Response) (*NotifyOnboardingResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNotificationDestinationResponse{ + response := &NotifyOnboardingResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationDestination + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -44775,27 +36589,6 @@ func ParseGetNotificationDestinationResponse(rsp *http.Response) (*GetNotificati } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44808,22 +36601,22 @@ func ParseGetNotificationDestinationResponse(rsp *http.Response) (*GetNotificati return response, nil } -// ParseUpdateNotificationDestinationResponse parses an HTTP response from a UpdateNotificationDestinationWithResponse call -func ParseUpdateNotificationDestinationResponse(rsp *http.Response) (*UpdateNotificationDestinationResponse, error) { +// ParseGetOpenAPIJSONResponse parses an HTTP response from a GetOpenAPIJSONWithResponse call +func ParseGetOpenAPIJSONResponse(rsp *http.Response) (*GetOpenAPIJSONResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateNotificationDestinationResponse{ + response := &GetOpenAPIJSONResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationDestination + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -44836,33 +36629,47 @@ func ParseUpdateNotificationDestinationResponse(rsp *http.Response) (*UpdateNoti } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication - 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 Forbidden - 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 == 404: - var dest NotFound +// ParseGetPlatformInfoResponse parses an HTTP response from a GetPlatformInfoWithResponse call +func ParseGetPlatformInfoResponse(rsp *http.Response) (*GetPlatformInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPlatformInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // PublicIPs List of public IPs for the platform + PublicIPs []string `json:"public_ips"` + + // TenantID The tenant ID of the current user + TenantID openapi_types.UUID `json:"tenant_id"` + + // Version Version of the platform + Version string `json:"version"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -44876,15 +36683,15 @@ func ParseUpdateNotificationDestinationResponse(rsp *http.Response) (*UpdateNoti return response, nil } -// ParseGetNotificationDestinationAlertsResponse parses an HTTP response from a GetNotificationDestinationAlertsWithResponse call -func ParseGetNotificationDestinationAlertsResponse(rsp *http.Response) (*GetNotificationDestinationAlertsResponse, error) { +// ParseListPlatformVersionsResponse parses an HTTP response from a ListPlatformVersionsWithResponse call +func ParseListPlatformVersionsResponse(rsp *http.Response) (*ListPlatformVersionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNotificationDestinationAlertsResponse{ + response := &ListPlatformVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -44892,8 +36699,8 @@ func ParseGetNotificationDestinationAlertsResponse(rsp *http.Response) (*GetNoti switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []AlertDetail `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []PlatformVersion `json:"items"` + Metadata ListMetadata `json:"metadata"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -44907,26 +36714,48 @@ func ParseGetNotificationDestinationAlertsResponse(rsp *http.Response) (*GetNoti } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + } + + return response, nil +} + +// ParseListPluginsResponse parses an HTTP response from a ListPluginsWithResponse call +func ParseListPluginsResponse(rsp *http.Response) (*ListPluginsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListPluginsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items ListPlugins `json:"items"` + Metadata ListMetadata `json:"metadata"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -44940,34 +36769,27 @@ func ParseGetNotificationDestinationAlertsResponse(rsp *http.Response) (*GetNoti return response, nil } -// ParseTestNotificationDestinationResponse parses an HTTP response from a TestNotificationDestinationWithResponse call -func ParseTestNotificationDestinationResponse(rsp *http.Response) (*TestNotificationDestinationResponse, error) { +// ParseGetPluginResponse parses an HTTP response from a GetPluginWithResponse call +func ParseGetPluginResponse(rsp *http.Response) (*GetPluginResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TestNotificationDestinationResponse{ + response := &GetPluginResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationDestinationTestResponse + var dest ListPlugin 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 BadRequest - 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44975,13 +36797,6 @@ func ParseTestNotificationDestinationResponse(rsp *http.Response) (*TestNotifica } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -44989,20 +36804,6 @@ func ParseTestNotificationDestinationResponse(rsp *http.Response) (*TestNotifica } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45015,15 +36816,15 @@ func ParseTestNotificationDestinationResponse(rsp *http.Response) (*TestNotifica return response, nil } -// ParseListAllNotificationDestinationsResponse parses an HTTP response from a ListAllNotificationDestinationsWithResponse call -func ParseListAllNotificationDestinationsResponse(rsp *http.Response) (*ListAllNotificationDestinationsResponse, error) { +// ParseListPluginVersionsResponse parses an HTTP response from a ListPluginVersionsWithResponse call +func ParseListPluginVersionsResponse(rsp *http.Response) (*ListPluginVersionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAllNotificationDestinationsResponse{ + response := &ListPluginVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -45031,14 +36832,21 @@ func ParseListAllNotificationDestinationsResponse(rsp *http.Response) (*ListAllN switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []NotificationDestinationListItem `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []PluginVersionList `json:"items"` + Metadata ListMetadata `json:"metadata"` } 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 BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45060,13 +36868,6 @@ func ParseListAllNotificationDestinationsResponse(rsp *http.Response) (*ListAllN } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45079,33 +36880,26 @@ func ParseListAllNotificationDestinationsResponse(rsp *http.Response) (*ListAllN return response, nil } -// ParseCreateNotificationDestinationResponse parses an HTTP response from a CreateNotificationDestinationWithResponse call -func ParseCreateNotificationDestinationResponse(rsp *http.Response) (*CreateNotificationDestinationResponse, error) { +// ParseGetPluginVersionResponse parses an HTTP response from a GetPluginVersionWithResponse call +func ParseGetPluginVersionResponse(rsp *http.Response) (*GetPluginVersionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateNotificationDestinationResponse{ + response := &GetPluginVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest NotificationDestination - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PluginVersionDetails if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -45128,13 +36922,6 @@ func ParseCreateNotificationDestinationResponse(rsp *http.Response) (*CreateNoti } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45147,34 +36934,27 @@ func ParseCreateNotificationDestinationResponse(rsp *http.Response) (*CreateNoti return response, nil } -// ParseTestUnsavedNotificationDestinationResponse parses an HTTP response from a TestUnsavedNotificationDestinationWithResponse call -func ParseTestUnsavedNotificationDestinationResponse(rsp *http.Response) (*TestUnsavedNotificationDestinationResponse, error) { +// ParseDownloadPluginAssetResponse parses an HTTP response from a DownloadPluginAssetWithResponse call +func ParseDownloadPluginAssetResponse(rsp *http.Response) (*DownloadPluginAssetResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TestUnsavedNotificationDestinationResponse{ + response := &DownloadPluginAssetResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationDestinationTestResponse + var dest PluginAsset 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 BadRequest - 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45182,13 +36962,6 @@ func ParseTestUnsavedNotificationDestinationResponse(rsp *http.Response) (*TestU } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45196,12 +36969,12 @@ func ParseTestUnsavedNotificationDestinationResponse(rsp *http.Response) (*TestU } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -45215,33 +36988,29 @@ func ParseTestUnsavedNotificationDestinationResponse(rsp *http.Response) (*TestU return response, nil } -// ParseCreateAWSOnboardingResponse parses an HTTP response from a CreateAWSOnboardingWithResponse call -func ParseCreateAWSOnboardingResponse(rsp *http.Response) (*CreateAWSOnboardingResponse, error) { +// ParseListPluginVersionTablesResponse parses an HTTP response from a ListPluginVersionTablesWithResponse call +func ParseListPluginVersionTablesResponse(rsp *http.Response) (*ListPluginVersionTablesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateAWSOnboardingResponse{ + response := &ListPluginVersionTablesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest OnboardingAWSCreateResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []PluginTable `json:"items"` + Metadata ListMetadata `json:"metadata"` } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -45250,6 +37019,13 @@ func ParseCreateAWSOnboardingResponse(rsp *http.Response) (*CreateAWSOnboardingR } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45262,34 +37038,27 @@ func ParseCreateAWSOnboardingResponse(rsp *http.Response) (*CreateAWSOnboardingR return response, nil } -// ParseGetAWSOnboardingResponse parses an HTTP response from a GetAWSOnboardingWithResponse call -func ParseGetAWSOnboardingResponse(rsp *http.Response) (*GetAWSOnboardingResponse, error) { +// ParseGetPluginVersionTableResponse parses an HTTP response from a GetPluginVersionTableWithResponse call +func ParseGetPluginVersionTableResponse(rsp *http.Response) (*GetPluginVersionTableResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAWSOnboardingResponse{ + response := &GetPluginVersionTableResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OnboardingAWS + var dest PluginTableDetails 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 BadRequest - 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45316,33 +37085,29 @@ func ParseGetAWSOnboardingResponse(rsp *http.Response) (*GetAWSOnboardingRespons return response, nil } -// ParseGetAWSAccountsInRootResponse parses an HTTP response from a GetAWSAccountsInRootWithResponse call -func ParseGetAWSAccountsInRootResponse(rsp *http.Response) (*GetAWSAccountsInRootResponse, error) { +// ParseListPoliciesResponse parses an HTTP response from a ListPoliciesWithResponse call +func ParseListPoliciesResponse(rsp *http.Response) (*ListPoliciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAWSAccountsInRootResponse{ + response := &ListPoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OnboardingAWSAccounts - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + var dest struct { + Items []Policy `json:"items"` + Metadata ListMetadata `json:"metadata"` } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -45351,12 +37116,12 @@ func ParseGetAWSAccountsInRootResponse(rsp *http.Response) (*GetAWSAccountsInRoo } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -45370,26 +37135,26 @@ func ParseGetAWSAccountsInRootResponse(rsp *http.Response) (*GetAWSAccountsInRoo return response, nil } -// ParseProvisionOnboardingConfigurationResponse parses an HTTP response from a ProvisionOnboardingConfigurationWithResponse call -func ParseProvisionOnboardingConfigurationResponse(rsp *http.Response) (*ProvisionOnboardingConfigurationResponse, error) { +// ParseCreatePolicyResponse parses an HTTP response from a CreatePolicyWithResponse call +func ParseCreatePolicyResponse(rsp *http.Response) (*CreatePolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ProvisionOnboardingConfigurationResponse{ + response := &CreatePolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Policy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -45398,12 +37163,19 @@ func ParseProvisionOnboardingConfigurationResponse(rsp *http.Response) (*Provisi } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -45417,34 +37189,27 @@ func ParseProvisionOnboardingConfigurationResponse(rsp *http.Response) (*Provisi return response, nil } -// ParseGetAWSAccountsInParentResponse parses an HTTP response from a GetAWSAccountsInParentWithResponse call -func ParseGetAWSAccountsInParentResponse(rsp *http.Response) (*GetAWSAccountsInParentResponse, error) { +// ParseGetPolicyMetricsResponse parses an HTTP response from a GetPolicyMetricsWithResponse call +func ParseGetPolicyMetricsResponse(rsp *http.Response) (*GetPolicyMetricsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAWSAccountsInParentResponse{ + response := &GetPolicyMetricsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OnboardingAWSAccounts + var dest PolicyMetrics 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 BadRequest - 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45452,12 +37217,12 @@ func ParseGetAWSAccountsInParentResponse(rsp *http.Response) (*GetAWSAccountsInP } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -45471,26 +37236,26 @@ func ParseGetAWSAccountsInParentResponse(rsp *http.Response) (*GetAWSAccountsInP return response, nil } -// ParseNotifyOnboardingResponse parses an HTTP response from a NotifyOnboardingWithResponse call -func ParseNotifyOnboardingResponse(rsp *http.Response) (*NotifyOnboardingResponse, error) { +// ParseGetViolationsByDomainResponse parses an HTTP response from a GetViolationsByDomainWithResponse call +func ParseGetViolationsByDomainResponse(rsp *http.Response) (*GetViolationsByDomainResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &NotifyOnboardingResponse{ + response := &GetViolationsByDomainResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ViolationsByDomain if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -45499,6 +37264,13 @@ func ParseNotifyOnboardingResponse(rsp *http.Response) (*NotifyOnboardingRespons } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45511,26 +37283,26 @@ func ParseNotifyOnboardingResponse(rsp *http.Response) (*NotifyOnboardingRespons return response, nil } -// ParseDeletePluginsByTeamResponse parses an HTTP response from a DeletePluginsByTeamWithResponse call -func ParseDeletePluginsByTeamResponse(rsp *http.Response) (*DeletePluginsByTeamResponse, error) { +// ParseGetViolationsHistoryResponse parses an HTTP response from a GetViolationsHistoryWithResponse call +func ParseGetViolationsHistoryResponse(rsp *http.Response) (*GetViolationsHistoryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeletePluginsByTeamResponse{ + response := &GetViolationsHistoryResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ViolationsHistory if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -45546,13 +37318,6 @@ func ParseDeletePluginsByTeamResponse(rsp *http.Response) (*DeletePluginsByTeamR } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45565,30 +37330,20 @@ func ParseDeletePluginsByTeamResponse(rsp *http.Response) (*DeletePluginsByTeamR return response, nil } -// ParseListPluginsByTeamResponse parses an HTTP response from a ListPluginsByTeamWithResponse call -func ParseListPluginsByTeamResponse(rsp *http.Response) (*ListPluginsByTeamResponse, error) { +// ParseDeletePolicyResponse parses an HTTP response from a DeletePolicyWithResponse call +func ParseDeletePolicyResponse(rsp *http.Response) (*DeletePolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPluginsByTeamResponse{ + response := &DeletePolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []Plugin `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - 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 == 401: var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45610,6 +37365,13 @@ func ParseListPluginsByTeamResponse(rsp *http.Response) (*ListPluginsByTeamRespo } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45622,22 +37384,22 @@ func ParseListPluginsByTeamResponse(rsp *http.Response) (*ListPluginsByTeamRespo return response, nil } -// ParseDownloadPluginAssetByTeamResponse parses an HTTP response from a DownloadPluginAssetByTeamWithResponse call -func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPluginAssetByTeamResponse, error) { +// ParseGetPolicyResponse parses an HTTP response from a GetPolicyWithResponse call +func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DownloadPluginAssetByTeamResponse{ + response := &GetPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginAsset + var dest Policy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45650,19 +37412,19 @@ func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPlugin } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -45676,25 +37438,22 @@ func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPlugin return response, nil } -// ParseListPoliciesResponse parses an HTTP response from a ListPoliciesWithResponse call -func ParseListPoliciesResponse(rsp *http.Response) (*ListPoliciesResponse, error) { +// ParseUpdatePolicyResponse parses an HTTP response from a UpdatePolicyWithResponse call +func ParseUpdatePolicyResponse(rsp *http.Response) (*UpdatePolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPoliciesResponse{ + response := &UpdatePolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Metadata ListMetadata `json:"metadata"` - Policies []PlatformPolicy `json:"policies"` - } + var dest Policy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -45707,6 +37466,20 @@ func ParseListPoliciesResponse(rsp *http.Response) (*ListPoliciesResponse, error } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45714,40 +37487,52 @@ func ParseListPoliciesResponse(rsp *http.Response) (*ListPoliciesResponse, error } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseCreatePolicyResponse parses an HTTP response from a CreatePolicyWithResponse call -func ParseCreatePolicyResponse(rsp *http.Response) (*CreatePolicyResponse, error) { +// ParseTogglePolicyResponse parses an HTTP response from a TogglePolicyWithResponse call +func ParseTogglePolicyResponse(rsp *http.Response) (*TogglePolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreatePolicyResponse{ + response := &TogglePolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest struct { - Data PlatformPolicy `json:"data"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Policy if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden @@ -45756,20 +37541,41 @@ func ParseCreatePolicyResponse(rsp *http.Response) (*CreatePolicyResponse, error } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseListAllFrameworksResponse parses an HTTP response from a ListAllFrameworksWithResponse call -func ParseListAllFrameworksResponse(rsp *http.Response) (*ListAllFrameworksResponse, error) { +// ParseGetPolicyViolationsResponse parses an HTTP response from a GetPolicyViolationsWithResponse call +func ParseGetPolicyViolationsResponse(rsp *http.Response) (*GetPolicyViolationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAllFrameworksResponse{ + response := &GetPolicyViolationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -45777,40 +37583,21 @@ func ParseListAllFrameworksResponse(rsp *http.Response) (*ListAllFrameworksRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Frameworks []PlatformPolicyFramework `json:"frameworks"` - Metadata ListMetadata `json:"metadata"` + Items []PolicyViolation `json:"items"` + Metadata *ListMetadata `json:"metadata,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 == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest - - } - - return response, nil -} - -// ParseDeletePolicyResponse parses an HTTP response from a DeletePolicyWithResponse call -func ParseDeletePolicyResponse(rsp *http.Response) (*DeletePolicyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeletePolicyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON401 = &dest - switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45825,20 +37612,27 @@ func ParseDeletePolicyResponse(rsp *http.Response) (*DeletePolicyResponse, error } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseGetPolicyResponse parses an HTTP response from a GetPolicyWithResponse call -func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error) { +// ParseGetPolicyViolationsHistoryResponse parses an HTTP response from a GetPolicyViolationsHistoryWithResponse call +func ParseGetPolicyViolationsHistoryResponse(rsp *http.Response) (*GetPolicyViolationsHistoryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetPolicyResponse{ + response := &GetPolicyViolationsHistoryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -45846,13 +37640,28 @@ func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error) { switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Data PlatformPolicy `json:"data"` + Items []PolicyEvaluationLog `json:"items"` + Metadata ListMetadata `json:"metadata"` } 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 == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -45860,20 +37669,27 @@ func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error) { } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseUpdatePolicyResponse parses an HTTP response from a UpdatePolicyWithResponse call -func ParseUpdatePolicyResponse(rsp *http.Response) (*UpdatePolicyResponse, error) { +// ParseListPolicyGroupsResponse parses an HTTP response from a ListPolicyGroupsWithResponse call +func ParseListPolicyGroupsResponse(rsp *http.Response) (*ListPolicyGroupsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdatePolicyResponse{ + response := &ListPolicyGroupsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -45881,19 +37697,19 @@ func ParseUpdatePolicyResponse(rsp *http.Response) (*UpdatePolicyResponse, error switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Data PlatformPolicy `json:"data"` + Items []PolicyGroupWithCounts `json:"items"` } 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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden @@ -45902,91 +37718,99 @@ func ParseUpdatePolicyResponse(rsp *http.Response) (*UpdatePolicyResponse, error } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest } return response, nil } -// ParseListPolicyFrameworksResponse parses an HTTP response from a ListPolicyFrameworksWithResponse call -func ParseListPolicyFrameworksResponse(rsp *http.Response) (*ListPolicyFrameworksResponse, error) { +// ParseCreatePolicyGroupResponse parses an HTTP response from a CreatePolicyGroupWithResponse call +func ParseCreatePolicyGroupResponse(rsp *http.Response) (*CreatePolicyGroupResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPolicyFrameworksResponse{ + response := &CreatePolicyGroupResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Frameworks []PlatformPolicyFramework `json:"frameworks"` - Metadata ListMetadata `json:"metadata"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest PolicyGroup + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest } return response, nil } -// ParseListPolicyRulesResponse parses an HTTP response from a ListPolicyRulesWithResponse call -func ParseListPolicyRulesResponse(rsp *http.Response) (*ListPolicyRulesResponse, error) { +// ParseDeletePolicyGroupResponse parses an HTTP response from a DeletePolicyGroupWithResponse call +func ParseDeletePolicyGroupResponse(rsp *http.Response) (*DeletePolicyGroupResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPolicyRulesResponse{ + response := &DeletePolicyGroupResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Metadata ListMetadata `json:"metadata"` - Rules []PlatformPolicyRule `json:"rules"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -45995,20 +37819,27 @@ func ParseListPolicyRulesResponse(rsp *http.Response) (*ListPolicyRulesResponse, } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseListPolicyRuleDetailsResponse parses an HTTP response from a ListPolicyRuleDetailsWithResponse call -func ParseListPolicyRuleDetailsResponse(rsp *http.Response) (*ListPolicyRuleDetailsResponse, error) { +// ParseListPoliciesInGroupResponse parses an HTTP response from a ListPoliciesInGroupWithResponse call +func ParseListPoliciesInGroupResponse(rsp *http.Response) (*ListPoliciesInGroupResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPolicyRuleDetailsResponse{ + response := &ListPoliciesInGroupResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46016,20 +37847,27 @@ func ParseListPolicyRuleDetailsResponse(rsp *http.Response) (*ListPolicyRuleDeta switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Details []PlatformPolicyRuleDetail `json:"details"` - Metadata ListMetadata `json:"metadata"` + Items []Policy `json:"items"` + Metadata ListMetadata `json:"metadata"` } 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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound @@ -46038,25 +37876,39 @@ func ParseListPolicyRuleDetailsResponse(rsp *http.Response) (*ListPolicyRuleDeta } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseTogglePolicyResponse parses an HTTP response from a TogglePolicyWithResponse call -func ParseTogglePolicyResponse(rsp *http.Response) (*TogglePolicyResponse, error) { +// ParseUpdatePolicyGroupResponse parses an HTTP response from a UpdatePolicyGroupWithResponse call +func ParseUpdatePolicyGroupResponse(rsp *http.Response) (*UpdatePolicyGroupResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TogglePolicyResponse{ + response := &UpdatePolicyGroupResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PolicyGroup + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46064,6 +37916,13 @@ func ParseTogglePolicyResponse(rsp *http.Response) (*TogglePolicyResponse, error } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication + 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 Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -46078,55 +37937,34 @@ func ParseTogglePolicyResponse(rsp *http.Response) (*TogglePolicyResponse, error } response.JSON404 = &dest - } - - return response, nil -} - -// ParseGetPolicyViolationsHistoryResponse parses an HTTP response from a GetPolicyViolationsHistoryWithResponse call -func ParseGetPolicyViolationsHistoryResponse(rsp *http.Response) (*GetPolicyViolationsHistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPolicyViolationsHistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Details []PlatformPolicyViolationHistory `json:"details"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON500 = &dest } return response, nil } -// ParseListAllQueriesTeamResponse parses an HTTP response from a ListAllQueriesTeamWithResponse call -func ParseListAllQueriesTeamResponse(rsp *http.Response) (*ListAllQueriesTeamResponse, error) { +// ParseListAllQueriesResponse parses an HTTP response from a ListAllQueriesWithResponse call +func ParseListAllQueriesResponse(rsp *http.Response) (*ListAllQueriesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAllQueriesTeamResponse{ + response := &ListAllQueriesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46182,15 +38020,15 @@ func ParseListAllQueriesTeamResponse(rsp *http.Response) (*ListAllQueriesTeamRes return response, nil } -// ParseExecuteAdHocQueryTeamResponse parses an HTTP response from a ExecuteAdHocQueryTeamWithResponse call -func ParseExecuteAdHocQueryTeamResponse(rsp *http.Response) (*ExecuteAdHocQueryTeamResponse, error) { +// ParseExecuteAdHocQueryResponse parses an HTTP response from a ExecuteAdHocQueryWithResponse call +func ParseExecuteAdHocQueryResponse(rsp *http.Response) (*ExecuteAdHocQueryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ExecuteAdHocQueryTeamResponse{ + response := &ExecuteAdHocQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46253,15 +38091,15 @@ func ParseExecuteAdHocQueryTeamResponse(rsp *http.Response) (*ExecuteAdHocQueryT return response, nil } -// ParseSaveQueryTeamResponse parses an HTTP response from a SaveQueryTeamWithResponse call -func ParseSaveQueryTeamResponse(rsp *http.Response) (*SaveQueryTeamResponse, error) { +// ParseSaveQueryResponse parses an HTTP response from a SaveQueryWithResponse call +func ParseSaveQueryResponse(rsp *http.Response) (*SaveQueryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SaveQueryTeamResponse{ + response := &SaveQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46314,15 +38152,15 @@ func ParseSaveQueryTeamResponse(rsp *http.Response) (*SaveQueryTeamResponse, err return response, nil } -// ParseListQueryTagsTeamResponse parses an HTTP response from a ListQueryTagsTeamWithResponse call -func ParseListQueryTagsTeamResponse(rsp *http.Response) (*ListQueryTagsTeamResponse, error) { +// ParseListQueryTagsResponse parses an HTTP response from a ListQueryTagsWithResponse call +func ParseListQueryTagsResponse(rsp *http.Response) (*ListQueryTagsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListQueryTagsTeamResponse{ + response := &ListQueryTagsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46378,15 +38216,15 @@ func ParseListQueryTagsTeamResponse(rsp *http.Response) (*ListQueryTagsTeamRespo return response, nil } -// ParseDeleteSavedQueryTeamResponse parses an HTTP response from a DeleteSavedQueryTeamWithResponse call -func ParseDeleteSavedQueryTeamResponse(rsp *http.Response) (*DeleteSavedQueryTeamResponse, error) { +// ParseDeleteSavedQueryResponse parses an HTTP response from a DeleteSavedQueryWithResponse call +func ParseDeleteSavedQueryResponse(rsp *http.Response) (*DeleteSavedQueryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSavedQueryTeamResponse{ + response := &DeleteSavedQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46432,15 +38270,15 @@ func ParseDeleteSavedQueryTeamResponse(rsp *http.Response) (*DeleteSavedQueryTea return response, nil } -// ParseGetSavedQueryTeamResponse parses an HTTP response from a GetSavedQueryTeamWithResponse call -func ParseGetSavedQueryTeamResponse(rsp *http.Response) (*GetSavedQueryTeamResponse, error) { +// ParseGetSavedQueryResponse parses an HTTP response from a GetSavedQueryWithResponse call +func ParseGetSavedQueryResponse(rsp *http.Response) (*GetSavedQueryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSavedQueryTeamResponse{ + response := &GetSavedQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46493,15 +38331,15 @@ func ParseGetSavedQueryTeamResponse(rsp *http.Response) (*GetSavedQueryTeamRespo return response, nil } -// ParseUpdateQueryTeamResponse parses an HTTP response from a UpdateQueryTeamWithResponse call -func ParseUpdateQueryTeamResponse(rsp *http.Response) (*UpdateQueryTeamResponse, error) { +// ParseUpdateQueryResponse parses an HTTP response from a UpdateQueryWithResponse call +func ParseUpdateQueryResponse(rsp *http.Response) (*UpdateQueryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateQueryTeamResponse{ + response := &UpdateQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46615,15 +38453,15 @@ func ParseDeleteAlertResponse(rsp *http.Response) (*DeleteAlertResponse, error) return response, nil } -// ParseExecuteSavedQueryTeamResponse parses an HTTP response from a ExecuteSavedQueryTeamWithResponse call -func ParseExecuteSavedQueryTeamResponse(rsp *http.Response) (*ExecuteSavedQueryTeamResponse, error) { +// ParseExecuteSavedQueryResponse parses an HTTP response from a ExecuteSavedQueryWithResponse call +func ParseExecuteSavedQueryResponse(rsp *http.Response) (*ExecuteSavedQueryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ExecuteSavedQueryTeamResponse{ + response := &ExecuteSavedQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46686,15 +38524,15 @@ func ParseExecuteSavedQueryTeamResponse(rsp *http.Response) (*ExecuteSavedQueryT return response, nil } -// ParseQueryListFiltersTeamResponse parses an HTTP response from a QueryListFiltersTeamWithResponse call -func ParseQueryListFiltersTeamResponse(rsp *http.Response) (*QueryListFiltersTeamResponse, error) { +// ParseQueryListFiltersResponse parses an HTTP response from a QueryListFiltersWithResponse call +func ParseQueryListFiltersResponse(rsp *http.Response) (*QueryListFiltersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryListFiltersTeamResponse{ + response := &QueryListFiltersResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46757,15 +38595,15 @@ func ParseQueryListFiltersTeamResponse(rsp *http.Response) (*QueryListFiltersTea return response, nil } -// ParseQuerySaveFilterTeamResponse parses an HTTP response from a QuerySaveFilterTeamWithResponse call -func ParseQuerySaveFilterTeamResponse(rsp *http.Response) (*QuerySaveFilterTeamResponse, error) { +// ParseQuerySaveFilterResponse parses an HTTP response from a QuerySaveFilterWithResponse call +func ParseQuerySaveFilterResponse(rsp *http.Response) (*QuerySaveFilterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QuerySaveFilterTeamResponse{ + response := &QuerySaveFilterResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -46832,15 +38670,15 @@ func ParseQuerySaveFilterTeamResponse(rsp *http.Response) (*QuerySaveFilterTeamR return response, nil } -// ParseQueryListFilterTagsTeamResponse parses an HTTP response from a QueryListFilterTagsTeamWithResponse call -func ParseQueryListFilterTagsTeamResponse(rsp *http.Response) (*QueryListFilterTagsTeamResponse, error) { +// ParseQueryListFilterTagsResponse parses an HTTP response from a QueryListFilterTagsWithResponse call +func ParseQueryListFilterTagsResponse(rsp *http.Response) (*QueryListFilterTagsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &QueryListFilterTagsTeamResponse{ + response := &QueryListFilterTagsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -47241,7 +39079,7 @@ func ParseListAllRBACRolesResponse(rsp *http.Response) (*ListAllRBACRolesRespons switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []RBACRole `json:"items"` + Items []Role `json:"items"` Metadata ListMetadata `json:"metadata"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -47311,7 +39149,7 @@ func ParseCreateRBACRoleResponse(rsp *http.Response) (*CreateRBACRoleResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest RBACRole + var dest Role if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47433,7 +39271,7 @@ func ParseGetRBACRoleResponse(rsp *http.Response) (*GetRBACRoleResponse, error) switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RBACRole + var dest Role if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47501,7 +39339,7 @@ func ParseUpdateRBACRoleResponse(rsp *http.Response) (*UpdateRBACRoleResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RBACRole + var dest Role if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -47986,22 +39824,266 @@ func ParseUpdateReportResponse(rsp *http.Response) (*UpdateReportResponse, error return response, nil } -// ParseCreateSyncDestinationTestConnectionResponse parses an HTTP response from a CreateSyncDestinationTestConnectionWithResponse call -func ParseCreateSyncDestinationTestConnectionResponse(rsp *http.Response) (*CreateSyncDestinationTestConnectionResponse, error) { +// ParseGetSettingsResponse parses an HTTP response from a GetSettingsWithResponse call +func ParseGetSettingsResponse(rsp *http.Response) (*GetSettingsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncDestinationTestConnectionResponse{ + response := &GetSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PlatformSettings + 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 == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseUpdateSettingsResponse parses an HTTP response from a UpdateSettingsWithResponse call +func ParseUpdateSettingsResponse(rsp *http.Response) (*UpdateSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PlatformSettings + 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 == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseGetDataSettingsResponse parses an HTTP response from a GetDataSettingsWithResponse call +func ParseGetDataSettingsResponse(rsp *http.Response) (*GetDataSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDataSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PlatformDataSettings + 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 == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseUpdateDataSettingsResponse parses an HTTP response from a UpdateDataSettingsWithResponse call +func ParseUpdateDataSettingsResponse(rsp *http.Response) (*UpdateDataSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateDataSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PlatformDataSettings + 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 == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseCreateSlackConnectionResponse parses an HTTP response from a CreateSlackConnectionWithResponse call +func ParseCreateSlackConnectionResponse(rsp *http.Response) (*CreateSlackConnectionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSlackConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SyncDestinationTestConnection + var dest SlackConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -48021,6 +40103,13 @@ func ParseCreateSyncDestinationTestConnectionResponse(rsp *http.Response) (*Crea } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -48035,13 +40124,6 @@ func ParseCreateSyncDestinationTestConnectionResponse(rsp *http.Response) (*Crea } response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -48054,22 +40136,24 @@ func ParseCreateSyncDestinationTestConnectionResponse(rsp *http.Response) (*Crea return response, nil } -// ParseGetSyncDestinationTestConnectionResponse parses an HTTP response from a GetSyncDestinationTestConnectionWithResponse call -func ParseGetSyncDestinationTestConnectionResponse(rsp *http.Response) (*GetSyncDestinationTestConnectionResponse, error) { +// ParseListSlackChannelsResponse parses an HTTP response from a ListSlackChannelsWithResponse call +func ParseListSlackChannelsResponse(rsp *http.Response) (*ListSlackChannelsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncDestinationTestConnectionResponse{ + response := &ListSlackChannelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestinationTestConnection + var dest struct { + Items []SlackChannel `json:"items"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -48096,6 +40180,13 @@ func ParseGetSyncDestinationTestConnectionResponse(rsp *http.Response) (*GetSync } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -48108,26 +40199,26 @@ func ParseGetSyncDestinationTestConnectionResponse(rsp *http.Response) (*GetSync return response, nil } -// ParseUpdateSyncTestConnectionForSyncDestinationResponse parses an HTTP response from a UpdateSyncTestConnectionForSyncDestinationWithResponse call -func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) { +// ParseCreateSyncDestinationTestConnectionResponse parses an HTTP response from a CreateSyncDestinationTestConnectionWithResponse call +func ParseCreateSyncDestinationTestConnectionResponse(rsp *http.Response) (*CreateSyncDestinationTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncTestConnectionForSyncDestinationResponse{ + response := &CreateSyncDestinationTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest SyncDestinationTestConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -48136,12 +40227,12 @@ func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -48157,6 +40248,13 @@ func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) } response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -48169,25 +40267,76 @@ func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) return response, nil } -// ParseGetSyncDestinationTestConnectionLogsResponse parses an HTTP response from a GetSyncDestinationTestConnectionLogsWithResponse call -func ParseGetSyncDestinationTestConnectionLogsResponse(rsp *http.Response) (*GetSyncDestinationTestConnectionLogsResponse, error) { +// ParseGetSyncDestinationTestConnectionResponse parses an HTTP response from a GetSyncDestinationTestConnectionWithResponse call +func ParseGetSyncDestinationTestConnectionResponse(rsp *http.Response) (*GetSyncDestinationTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncDestinationTestConnectionLogsResponse{ + response := &GetSyncDestinationTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Location The location to download the test connection logs from - Location string `json:"location"` + var dest SyncDestinationTestConnection + 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 == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseUpdateSyncTestConnectionForSyncDestinationResponse parses an HTTP response from a UpdateSyncTestConnectionForSyncDestinationWithResponse call +func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) (*UpdateSyncTestConnectionForSyncDestinationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSyncTestConnectionForSyncDestinationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SyncDestinationTestConnection if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -48200,12 +40349,12 @@ func ParseGetSyncDestinationTestConnectionLogsResponse(rsp *http.Response) (*Get } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -48228,9 +40377,6 @@ func ParseGetSyncDestinationTestConnectionLogsResponse(rsp *http.Response) (*Get } response.JSON500 = &dest - case rsp.StatusCode == 200: - // Content-type (text/plain) unsupported - } return response, nil @@ -48637,60 +40783,6 @@ func ParseUpdateSyncDestinationResponse(rsp *http.Response) (*UpdateSyncDestinat return response, nil } -// ParseMigrateSyncDestinationResponse parses an HTTP response from a MigrateSyncDestinationWithResponse call -func ParseMigrateSyncDestinationResponse(rsp *http.Response) (*MigrateSyncDestinationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MigrateSyncDestinationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 RequiresAuthentication - 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 NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - // ParseListSyncDestinationSyncsResponse parses an HTTP response from a ListSyncDestinationSyncsWithResponse call func ParseListSyncDestinationSyncsResponse(rsp *http.Response) (*ListSyncDestinationSyncsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -48985,73 +41077,6 @@ func ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp *http.Response) (*Up return response, nil } -// ParseGetSyncSourceTestConnectionLogsResponse parses an HTTP response from a GetSyncSourceTestConnectionLogsWithResponse call -func ParseGetSyncSourceTestConnectionLogsResponse(rsp *http.Response) (*GetSyncSourceTestConnectionLogsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSyncSourceTestConnectionLogsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Location The location to download the test connection logs from - Location string `json:"location"` - } - 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 BadRequest - 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 RequiresAuthentication - 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 NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - case rsp.StatusCode == 200: - // Content-type (text/plain) unsupported - - } - - return response, nil -} - // ParseGetSyncSourceTestConnectionLogsLiveResponse parses an HTTP response from a GetSyncSourceTestConnectionLogsLiveWithResponse call func ParseGetSyncSourceTestConnectionLogsLiveResponse(rsp *http.Response) (*GetSyncSourceTestConnectionLogsLiveResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -49453,60 +41478,6 @@ func ParseUpdateSyncSourceResponse(rsp *http.Response) (*UpdateSyncSourceRespons return response, nil } -// ParseMigrateSyncSourceResponse parses an HTTP response from a MigrateSyncSourceWithResponse call -func ParseMigrateSyncSourceResponse(rsp *http.Response) (*MigrateSyncSourceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MigrateSyncSourceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 RequiresAuthentication - 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 NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - // ParseListSyncSourceSyncsResponse parses an HTTP response from a ListSyncSourceSyncsWithResponse call func ParseListSyncSourceSyncsResponse(rsp *http.Response) (*ListSyncSourceSyncsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -50098,137 +42069,6 @@ func ParseCreateSyncResponse(rsp *http.Response) (*CreateSyncResponse, error) { return response, nil } -// ParseGetTestConnectionConnectorCredentialsResponse parses an HTTP response from a GetTestConnectionConnectorCredentialsWithResponse call -func ParseGetTestConnectionConnectorCredentialsResponse(rsp *http.Response) (*GetTestConnectionConnectorCredentialsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetTestConnectionConnectorCredentialsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Aws AWS connector credentials response - Aws *ConnectorCredentialsResponseAWS `json:"aws,omitempty"` - - // Oauth OAuth connector credentials response - Oauth *ConnectorCredentialsResponseOAuth `json:"oauth,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 BadRequest - 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 RequiresAuthentication - 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 NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseGetTestConnectionConnectorIdentityResponse parses an HTTP response from a GetTestConnectionConnectorIdentityWithResponse call -func ParseGetTestConnectionConnectorIdentityResponse(rsp *http.Response) (*GetTestConnectionConnectorIdentityResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetTestConnectionConnectorIdentityResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Aws AWS connector identity response - Aws *ConnectorIdentityResponseAWS `json:"aws,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 BadRequest - 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 RequiresAuthentication - 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 NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - // ParseDeleteSyncResponse parses an HTTP response from a DeleteSyncWithResponse call func ParseDeleteSyncResponse(rsp *http.Response) (*DeleteSyncResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -50610,33 +42450,20 @@ func ParseUpdateSyncRunResponse(rsp *http.Response) (*UpdateSyncRunResponse, err return response, nil } -// ParseGetSyncRunConnectorCredentialsResponse parses an HTTP response from a GetSyncRunConnectorCredentialsWithResponse call -func ParseGetSyncRunConnectorCredentialsResponse(rsp *http.Response) (*GetSyncRunConnectorCredentialsResponse, error) { +// ParseGetSyncRunLogsLiveResponse parses an HTTP response from a GetSyncRunLogsLiveWithResponse call +func ParseGetSyncRunLogsLiveResponse(rsp *http.Response) (*GetSyncRunLogsLiveResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunConnectorCredentialsResponse{ + response := &GetSyncRunLogsLiveResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Aws AWS connector credentials response - Aws *ConnectorCredentialsResponseAWS `json:"aws,omitempty"` - - // Oauth OAuth connector credentials response - Oauth *ConnectorCredentialsResponseOAuth `json:"oauth,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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -50677,15 +42504,15 @@ func ParseGetSyncRunConnectorCredentialsResponse(rsp *http.Response) (*GetSyncRu return response, nil } -// ParseGetSyncRunConnectorIdentityResponse parses an HTTP response from a GetSyncRunConnectorIdentityWithResponse call -func ParseGetSyncRunConnectorIdentityResponse(rsp *http.Response) (*GetSyncRunConnectorIdentityResponse, error) { +// ParseGetSyncRunLogsQueryResponse parses an HTTP response from a GetSyncRunLogsQueryWithResponse call +func ParseGetSyncRunLogsQueryResponse(rsp *http.Response) (*GetSyncRunLogsQueryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunConnectorIdentityResponse{ + response := &GetSyncRunLogsQueryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -50693,8 +42520,8 @@ func ParseGetSyncRunConnectorIdentityResponse(rsp *http.Response) (*GetSyncRunCo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Aws AWS connector identity response - Aws *ConnectorIdentityResponseAWS `json:"aws,omitempty"` + Data TableData `json:"data"` + Metadata ListMetadata `json:"metadata"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -50736,35 +42563,28 @@ func ParseGetSyncRunConnectorIdentityResponse(rsp *http.Response) (*GetSyncRunCo } response.JSON500 = &dest + case rsp.StatusCode == 200: + // Content-type (text/plain) unsupported + } return response, nil } -// ParseGetSyncRunLogsResponse parses an HTTP response from a GetSyncRunLogsWithResponse call -func ParseGetSyncRunLogsResponse(rsp *http.Response) (*GetSyncRunLogsResponse, error) { +// ParseCreateSyncRunProgressResponse parses an HTTP response from a CreateSyncRunProgressWithResponse call +func ParseCreateSyncRunProgressResponse(rsp *http.Response) (*CreateSyncRunProgressResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunLogsResponse{ + response := &CreateSyncRunProgressResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // Location The location to download the sync run logs from - Location string `json:"location"` - } - 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -50800,28 +42620,32 @@ func ParseGetSyncRunLogsResponse(rsp *http.Response) (*GetSyncRunLogsResponse, e } response.JSON500 = &dest - case rsp.StatusCode == 200: - // Content-type (text/plain) unsupported - } return response, nil } -// ParseGetSyncRunLogsLiveResponse parses an HTTP response from a GetSyncRunLogsLiveWithResponse call -func ParseGetSyncRunLogsLiveResponse(rsp *http.Response) (*GetSyncRunLogsLiveResponse, error) { +// ParseGetSyncRunStatsResponse parses an HTTP response from a GetSyncRunStatsWithResponse call +func ParseGetSyncRunStatsResponse(rsp *http.Response) (*GetSyncRunStatsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunLogsLiveResponse{ + response := &GetSyncRunStatsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SyncRunStats + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -50843,13 +42667,6 @@ func ParseGetSyncRunLogsLiveResponse(rsp *http.Response) (*GetSyncRunLogsLiveRes } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -50862,15 +42679,15 @@ func ParseGetSyncRunLogsLiveResponse(rsp *http.Response) (*GetSyncRunLogsLiveRes return response, nil } -// ParseGetSyncRunLogsQueryResponse parses an HTTP response from a GetSyncRunLogsQueryWithResponse call -func ParseGetSyncRunLogsQueryResponse(rsp *http.Response) (*GetSyncRunLogsQueryResponse, error) { +// ParseGetSyncRunTablesResponse parses an HTTP response from a GetSyncRunTablesWithResponse call +func ParseGetSyncRunTablesResponse(rsp *http.Response) (*GetSyncRunTablesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunLogsQueryResponse{ + response := &GetSyncRunTablesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -50878,8 +42695,8 @@ func ParseGetSyncRunLogsQueryResponse(rsp *http.Response) (*GetSyncRunLogsQueryR switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Data TableData `json:"data"` - Metadata ListMetadata `json:"metadata"` + Items []SyncRunTableStat `json:"items"` + Metadata ListMetadata `json:"metadata"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -50907,13 +42724,6 @@ func ParseGetSyncRunLogsQueryResponse(rsp *http.Response) (*GetSyncRunLogsQueryR } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -50921,34 +42731,34 @@ func ParseGetSyncRunLogsQueryResponse(rsp *http.Response) (*GetSyncRunLogsQueryR } response.JSON500 = &dest - case rsp.StatusCode == 200: - // Content-type (text/plain) unsupported - } return response, nil } -// ParseCreateSyncRunProgressResponse parses an HTTP response from a CreateSyncRunProgressWithResponse call -func ParseCreateSyncRunProgressResponse(rsp *http.Response) (*CreateSyncRunProgressResponse, error) { +// ParseListTablesResponse parses an HTTP response from a ListTablesWithResponse call +func ParseListTablesResponse(rsp *http.Response) (*ListTablesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncRunProgressResponse{ + response := &ListTablesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []TableListItem `json:"items"` + Metadata ListMetadata `json:"metadata"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -50957,6 +42767,13 @@ func ParseCreateSyncRunProgressResponse(rsp *http.Response) (*CreateSyncRunProgr } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -50983,33 +42800,29 @@ func ParseCreateSyncRunProgressResponse(rsp *http.Response) (*CreateSyncRunProgr return response, nil } -// ParseGetSyncRunStatsResponse parses an HTTP response from a GetSyncRunStatsWithResponse call -func ParseGetSyncRunStatsResponse(rsp *http.Response) (*GetSyncRunStatsResponse, error) { +// ParseGetTablesDataResponse parses an HTTP response from a GetTablesDataWithResponse call +func ParseGetTablesDataResponse(rsp *http.Response) (*GetTablesDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunStatsResponse{ + response := &GetTablesDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncRunStats - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + var dest struct { + Metadata ListMetadata `json:"metadata"` + Sources []TableDataListItem `json:"sources"` } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -51018,12 +42831,12 @@ func ParseGetSyncRunStatsResponse(rsp *http.Response) (*GetSyncRunStatsResponse, } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -51037,30 +42850,20 @@ func ParseGetSyncRunStatsResponse(rsp *http.Response) (*GetSyncRunStatsResponse, return response, nil } -// ParseGetSyncRunTablesResponse parses an HTTP response from a GetSyncRunTablesWithResponse call -func ParseGetSyncRunTablesResponse(rsp *http.Response) (*GetSyncRunTablesResponse, error) { +// ParseTablesDataActionResponse parses an HTTP response from a TablesDataActionWithResponse call +func ParseTablesDataActionResponse(rsp *http.Response) (*TablesDataActionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunTablesResponse{ + response := &TablesDataActionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []SyncRunTableStat `json:"items"` - Metadata ListMetadata `json:"metadata"` - } - 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -51075,12 +42878,19 @@ func ParseGetSyncRunTablesResponse(rsp *http.Response) (*GetSyncRunTablesRespons } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -51094,25 +42904,22 @@ func ParseGetSyncRunTablesResponse(rsp *http.Response) (*GetSyncRunTablesRespons return response, nil } -// ParseListTablesTeamResponse parses an HTTP response from a ListTablesTeamWithResponse call -func ParseListTablesTeamResponse(rsp *http.Response) (*ListTablesTeamResponse, error) { +// ParseGetTablesRelationsResponse parses an HTTP response from a GetTablesRelationsWithResponse call +func ParseGetTablesRelationsResponse(rsp *http.Response) (*GetTablesRelationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListTablesTeamResponse{ + response := &GetTablesRelationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []TableListItem `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + var dest map[string][]RelationDef if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -51125,27 +42932,6 @@ func ParseListTablesTeamResponse(rsp *http.Response) (*ListTablesTeamResponse, e } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -51158,15 +42944,15 @@ func ParseListTablesTeamResponse(rsp *http.Response) (*ListTablesTeamResponse, e return response, nil } -// ParseBatchTableSchemasTeamResponse parses an HTTP response from a BatchTableSchemasTeamWithResponse call -func ParseBatchTableSchemasTeamResponse(rsp *http.Response) (*BatchTableSchemasTeamResponse, error) { +// ParseBatchTableSchemasResponse parses an HTTP response from a BatchTableSchemasWithResponse call +func ParseBatchTableSchemasResponse(rsp *http.Response) (*BatchTableSchemasResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &BatchTableSchemasTeamResponse{ + response := &BatchTableSchemasResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51221,15 +43007,15 @@ func ParseBatchTableSchemasTeamResponse(rsp *http.Response) (*BatchTableSchemasT return response, nil } -// ParseTableListColumnsTeamResponse parses an HTTP response from a TableListColumnsTeamWithResponse call -func ParseTableListColumnsTeamResponse(rsp *http.Response) (*TableListColumnsTeamResponse, error) { +// ParseTableListColumnsResponse parses an HTTP response from a TableListColumnsWithResponse call +func ParseTableListColumnsResponse(rsp *http.Response) (*TableListColumnsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableListColumnsTeamResponse{ + response := &TableListColumnsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51285,15 +43071,15 @@ func ParseTableListColumnsTeamResponse(rsp *http.Response) (*TableListColumnsTea return response, nil } -// ParseTableColumnListValuesTeamResponse parses an HTTP response from a TableColumnListValuesTeamWithResponse call -func ParseTableColumnListValuesTeamResponse(rsp *http.Response) (*TableColumnListValuesTeamResponse, error) { +// ParseTableColumnListValuesResponse parses an HTTP response from a TableColumnListValuesWithResponse call +func ParseTableColumnListValuesResponse(rsp *http.Response) (*TableColumnListValuesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableColumnListValuesTeamResponse{ + response := &TableColumnListValuesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51349,15 +43135,15 @@ func ParseTableColumnListValuesTeamResponse(rsp *http.Response) (*TableColumnLis return response, nil } -// ParseTableListRowsTeamResponse parses an HTTP response from a TableListRowsTeamWithResponse call -func ParseTableListRowsTeamResponse(rsp *http.Response) (*TableListRowsTeamResponse, error) { +// ParseTableListRowsResponse parses an HTTP response from a TableListRowsWithResponse call +func ParseTableListRowsResponse(rsp *http.Response) (*TableListRowsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableListRowsTeamResponse{ + response := &TableListRowsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51420,15 +43206,15 @@ func ParseTableListRowsTeamResponse(rsp *http.Response) (*TableListRowsTeamRespo return response, nil } -// ParseTableRowByIdTeamResponse parses an HTTP response from a TableRowByIdTeamWithResponse call -func ParseTableRowByIdTeamResponse(rsp *http.Response) (*TableRowByIdTeamResponse, error) { +// ParseTableRowByIdResponse parses an HTTP response from a TableRowByIdWithResponse call +func ParseTableRowByIdResponse(rsp *http.Response) (*TableRowByIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableRowByIdTeamResponse{ + response := &TableRowByIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51491,15 +43277,15 @@ func ParseTableRowByIdTeamResponse(rsp *http.Response) (*TableRowByIdTeamRespons return response, nil } -// ParseTableListFiltersTeamResponse parses an HTTP response from a TableListFiltersTeamWithResponse call -func ParseTableListFiltersTeamResponse(rsp *http.Response) (*TableListFiltersTeamResponse, error) { +// ParseTableListFiltersResponse parses an HTTP response from a TableListFiltersWithResponse call +func ParseTableListFiltersResponse(rsp *http.Response) (*TableListFiltersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableListFiltersTeamResponse{ + response := &TableListFiltersResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51562,15 +43348,15 @@ func ParseTableListFiltersTeamResponse(rsp *http.Response) (*TableListFiltersTea return response, nil } -// ParseTableSaveFilterTeamResponse parses an HTTP response from a TableSaveFilterTeamWithResponse call -func ParseTableSaveFilterTeamResponse(rsp *http.Response) (*TableSaveFilterTeamResponse, error) { +// ParseTableSaveFilterResponse parses an HTTP response from a TableSaveFilterWithResponse call +func ParseTableSaveFilterResponse(rsp *http.Response) (*TableSaveFilterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableSaveFilterTeamResponse{ + response := &TableSaveFilterResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51637,15 +43423,15 @@ func ParseTableSaveFilterTeamResponse(rsp *http.Response) (*TableSaveFilterTeamR return response, nil } -// ParseTableListFilterTagsTeamResponse parses an HTTP response from a TableListFilterTagsTeamWithResponse call -func ParseTableListFilterTagsTeamResponse(rsp *http.Response) (*TableListFilterTagsTeamResponse, error) { +// ParseTableListFilterTagsResponse parses an HTTP response from a TableListFilterTagsWithResponse call +func ParseTableListFilterTagsResponse(rsp *http.Response) (*TableListFilterTagsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableListFilterTagsTeamResponse{ + response := &TableListFilterTagsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51701,15 +43487,15 @@ func ParseTableListFilterTagsTeamResponse(rsp *http.Response) (*TableListFilterT return response, nil } -// ParseTableListRelationsTeamResponse parses an HTTP response from a TableListRelationsTeamWithResponse call -func ParseTableListRelationsTeamResponse(rsp *http.Response) (*TableListRelationsTeamResponse, error) { +// ParseTableSchemaResponse parses an HTTP response from a TableSchemaWithResponse call +func ParseTableSchemaResponse(rsp *http.Response) (*TableSchemaResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableListRelationsTeamResponse{ + response := &TableSchemaResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51717,19 +43503,131 @@ func ParseTableListRelationsTeamResponse(rsp *http.Response) (*TableListRelation switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Data []TableRelation `json:"data"` + DefaultColumns []string `json:"default_columns"` + Schema TableSchema `json:"schema"` } 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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseListTeamsResponse parses an HTTP response from a ListTeamsWithResponse call +func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListTeamsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Items []Team `json:"items"` + Metadata ListMetadata `json:"metadata"` + } + 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 == 401: + var dest RequiresAuthentication + 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 Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseDownloadPluginAssetByTeamResponse parses an HTTP response from a DownloadPluginAssetByTeamWithResponse call +func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPluginAssetByTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DownloadPluginAssetByTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PluginAsset + 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 == 401: var dest RequiresAuthentication @@ -51738,6 +43636,60 @@ func ParseTableListRelationsTeamResponse(rsp *http.Response) (*TableListRelation } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseUpdateSyncTestConnectionForSyncDestinationTeamResponse parses an HTTP response from a UpdateSyncTestConnectionForSyncDestinationTeamWithResponse call +func ParseUpdateSyncTestConnectionForSyncDestinationTeamResponse(rsp *http.Response) (*UpdateSyncTestConnectionForSyncDestinationTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSyncTestConnectionForSyncDestinationTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SyncDestinationTestConnection + 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 BadRequest + 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 == 403: var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -51752,6 +43704,74 @@ func ParseTableListRelationsTeamResponse(rsp *http.Response) (*TableListRelation } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseUpdateSyncTestConnectionForSyncSourceTeamResponse parses an HTTP response from a UpdateSyncTestConnectionForSyncSourceTeamWithResponse call +func ParseUpdateSyncTestConnectionForSyncSourceTeamResponse(rsp *http.Response) (*UpdateSyncTestConnectionForSyncSourceTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSyncTestConnectionForSyncSourceTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SyncSourceTestConnection + 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 BadRequest + 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 == 403: + var dest Forbidden + 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 == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -51764,29 +43784,26 @@ func ParseTableListRelationsTeamResponse(rsp *http.Response) (*TableListRelation return response, nil } -// ParseTableSchemaTeamResponse parses an HTTP response from a TableSchemaTeamWithResponse call -func ParseTableSchemaTeamResponse(rsp *http.Response) (*TableSchemaTeamResponse, error) { +// ParseCreateSyncRunProgressTeamResponse parses an HTTP response from a CreateSyncRunProgressTeamWithResponse call +func ParseCreateSyncRunProgressTeamResponse(rsp *http.Response) (*CreateSyncRunProgressTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TableSchemaTeamResponse{ + response := &CreateSyncRunProgressTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - DefaultColumns []string `json:"default_columns"` - Schema TableSchema `json:"schema"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -51795,13 +43812,6 @@ func ParseTableSchemaTeamResponse(rsp *http.Response) (*TableSchemaTeamResponse, } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -51964,15 +43974,15 @@ func ParseGetGroupedTeamUsageSummaryResponse(rsp *http.Response) (*GetGroupedTea return response, nil } -// ParseListUsersByTeamResponse parses an HTTP response from a ListUsersByTeamWithResponse call -func ParseListUsersByTeamResponse(rsp *http.Response) (*ListUsersByTeamResponse, error) { +// ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call +func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListUsersByTeamResponse{ + response := &GetCurrentUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -51980,14 +43990,97 @@ func ParseListUsersByTeamResponse(rsp *http.Response) (*ListUsersByTeamResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []User `json:"items"` - Metadata ListMetadata `json:"metadata"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Email string `json:"email"` + + // Enabled Whether the user is enabled + Enabled bool `json:"enabled"` + EventIdentifiers *map[string]interface{} `json:"event_identifiers,omitempty"` + GroupIdentifier *string `json:"group_identifier,omitempty"` + + // ID ID of the User + ID openapi_types.UUID `json:"id"` + LastLoginAt *time.Time `json:"last_login_at,omitempty"` + + // MFAConfigured Whether the user has MFA configured + MFAConfigured bool `json:"mfa_configured"` + + // Name The unique name for the user. + Name *UserName `json:"name,omitempty"` + + // ProfileImageURL Profile image URL of user + ProfileImageURL *string `json:"profile_image_url,omitempty"` + Provider UserProvider `json:"provider"` + + // RegisteredTeamInternal Whether the team is internal or not + RegisteredTeamInternal *bool `json:"registered_team_internal,omitempty"` + + // RegisteredTeamName The name of the team that the platform is registered with + RegisteredTeamName *string `json:"registered_team_name,omitempty"` + Roles []Role `json:"roles"` + + // TrackingOptedIn Whether anonymous user tracking was opted into + TrackingOptedIn *bool `json:"tracking_opted_in,omitempty"` + UpdatedAt *time.Time `json:"updated_at,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 == 401: + var dest struct { + Message string `json:"message"` + + // PasswordResetRequired Whether the user needs to reset their password + PasswordResetRequired *bool `json:"password_reset_required,omitempty"` + Status int `json:"status"` + } + 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 Forbidden + 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 InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseUpdateCurrentUserResponse parses an HTTP response from a UpdateCurrentUserWithResponse call +func ParseUpdateCurrentUserResponse(rsp *http.Response) (*UpdateCurrentUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCurrentUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52009,12 +44102,12 @@ func ParseListUsersByTeamResponse(rsp *http.Response) (*ListUsersByTeamResponse, } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: + var dest MethodNotAllowed if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON405 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -52028,33 +44121,40 @@ func ParseListUsersByTeamResponse(rsp *http.Response) (*ListUsersByTeamResponse, return response, nil } -// ParseUploadImageResponse parses an HTTP response from a UploadImageWithResponse call -func ParseUploadImageResponse(rsp *http.Response) (*UploadImageResponse, error) { +// ParseSendAnonymousEventResponse parses an HTTP response from a SendAnonymousEventWithResponse call +func ParseSendAnonymousEventResponse(rsp *http.Response) (*SendAnonymousEventResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UploadImageResponse{ + response := &SendAnonymousEventResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ImageURL + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -52068,15 +44168,15 @@ func ParseUploadImageResponse(rsp *http.Response) (*UploadImageResponse, error) return response, nil } -// ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call -func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error) { +// ParseAuthenticateUserResponse parses an HTTP response from a AuthenticateUserWithResponse call +func ParseAuthenticateUserResponse(rsp *http.Response) (*AuthenticateUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCurrentUserResponse{ + response := &AuthenticateUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52084,41 +44184,22 @@ func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Email string `json:"email"` - EventIdentifiers *map[string]interface{} `json:"event_identifiers,omitempty"` - GroupIdentifier *string `json:"group_identifier,omitempty"` - - // ID ID of the User - ID openapi_types.UUID `json:"id"` - LastLoginAt *time.Time `json:"last_login_at,omitempty"` - - // Name The unique name for the user. - Name *UserName `json:"name,omitempty"` - - // ProfileImageURL Profile image URL of user - ProfileImageURL *string `json:"profile_image_url,omitempty"` - - // RegisteredTeamInternal Whether the team is internal or not - RegisteredTeamInternal *bool `json:"registered_team_internal,omitempty"` - - // RegisteredTeamName The name of the team that the platform is registered with - RegisteredTeamName *string `json:"registered_team_name,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + IDToken string `json:"id_token"` } 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 == 401: - var dest struct { - Message string `json:"message"` - - // PasswordResetRequired Whether the user needs to reset their password - PasswordResetRequired *bool `json:"password_reset_required,omitempty"` - Status int `json:"status"` + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -52131,6 +44212,34 @@ func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, e } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: + var dest MethodNotAllowed + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON405 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52143,27 +44252,20 @@ func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, e return response, nil } -// ParseUpdateCurrentUserResponse parses an HTTP response from a UpdateCurrentUserWithResponse call -func ParseUpdateCurrentUserResponse(rsp *http.Response) (*UpdateCurrentUserResponse, error) { +// ParseChangeUserPasswordResponse parses an HTTP response from a ChangeUserPasswordWithResponse call +func ParseChangeUserPasswordResponse(rsp *http.Response) (*ChangeUserPasswordResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCurrentUserResponse{ + response := &ChangeUserPasswordResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest User - 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52185,6 +44287,13 @@ func ParseUpdateCurrentUserResponse(rsp *http.Response) (*UpdateCurrentUserRespo } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: var dest MethodNotAllowed if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52192,6 +44301,13 @@ func ParseUpdateCurrentUserResponse(rsp *http.Response) (*UpdateCurrentUserRespo } response.JSON405 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52204,15 +44320,15 @@ func ParseUpdateCurrentUserResponse(rsp *http.Response) (*UpdateCurrentUserRespo return response, nil } -// ParseSendAnonymousEventResponse parses an HTTP response from a SendAnonymousEventWithResponse call -func ParseSendAnonymousEventResponse(rsp *http.Response) (*SendAnonymousEventResponse, error) { +// ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call +func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SendAnonymousEventResponse{ + response := &UpdateCustomerResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52225,6 +44341,13 @@ func ParseSendAnonymousEventResponse(rsp *http.Response) (*SendAnonymousEventRes } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication + 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52232,12 +44355,12 @@ func ParseSendAnonymousEventResponse(rsp *http.Response) (*SendAnonymousEventRes } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -52251,29 +44374,20 @@ func ParseSendAnonymousEventResponse(rsp *http.Response) (*SendAnonymousEventRes return response, nil } -// ParseAuthenticateLocalUserResponse parses an HTTP response from a AuthenticateLocalUserWithResponse call -func ParseAuthenticateLocalUserResponse(rsp *http.Response) (*AuthenticateLocalUserResponse, error) { +// ParseSendUserEventResponse parses an HTTP response from a SendUserEventWithResponse call +func ParseSendUserEventResponse(rsp *http.Response) (*SendUserEventResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateLocalUserResponse{ + response := &SendUserEventResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - IDToken string `json:"id_token"` - } - 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52288,13 +44402,6 @@ func ParseAuthenticateLocalUserResponse(rsp *http.Response) (*AuthenticateLocalU } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52302,13 +44409,6 @@ func ParseAuthenticateLocalUserResponse(rsp *http.Response) (*AuthenticateLocalU } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: - var dest MethodNotAllowed - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON405 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52316,13 +44416,6 @@ func ParseAuthenticateLocalUserResponse(rsp *http.Response) (*AuthenticateLocalU } response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52335,15 +44428,15 @@ func ParseAuthenticateLocalUserResponse(rsp *http.Response) (*AuthenticateLocalU return response, nil } -// ParseChangeLocalUserPasswordResponse parses an HTTP response from a ChangeLocalUserPasswordWithResponse call -func ParseChangeLocalUserPasswordResponse(rsp *http.Response) (*ChangeLocalUserPasswordResponse, error) { +// ParseLogoutUserResponse parses an HTTP response from a LogoutUserWithResponse call +func ParseLogoutUserResponse(rsp *http.Response) (*LogoutUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ChangeLocalUserPasswordResponse{ + response := &LogoutUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52384,13 +44477,6 @@ func ParseChangeLocalUserPasswordResponse(rsp *http.Response) (*ChangeLocalUserP } response.JSON405 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52403,15 +44489,15 @@ func ParseChangeLocalUserPasswordResponse(rsp *http.Response) (*ChangeLocalUserP return response, nil } -// ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call -func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error) { +// ParseLoginUserResponse parses an HTTP response from a LoginUserWithResponse call +func ParseLoginUserResponse(rsp *http.Response) (*LoginUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCustomerResponse{ + response := &LoginUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52431,6 +44517,13 @@ func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, e } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52438,6 +44531,13 @@ func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, e } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: + var dest MethodNotAllowed + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON405 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52450,15 +44550,15 @@ func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, e return response, nil } -// ParseSendUserEventResponse parses an HTTP response from a SendUserEventWithResponse call -func ParseSendUserEventResponse(rsp *http.Response) (*SendUserEventResponse, error) { +// ParseUserTOTPDeleteResponse parses an HTTP response from a UserTOTPDeleteWithResponse call +func ParseUserTOTPDeleteResponse(rsp *http.Response) (*UserTOTPDeleteResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SendUserEventResponse{ + response := &UserTOTPDeleteResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52478,55 +44578,26 @@ func ParseSendUserEventResponse(rsp *http.Response) (*SendUserEventResponse, err } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseListCurrentUserInvitationsResponse parses an HTTP response from a ListCurrentUserInvitationsWithResponse call -func ParseListCurrentUserInvitationsResponse(rsp *http.Response) (*ListCurrentUserInvitationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListCurrentUserInvitationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON403 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Items []InvitationWithToken `json:"items"` - Metadata ListMetadata `json:"metadata"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: + var dest MethodNotAllowed if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON405 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -52540,67 +44611,30 @@ func ParseListCurrentUserInvitationsResponse(rsp *http.Response) (*ListCurrentUs return response, nil } -// ParseGetCurrentLocalUserResponse parses an HTTP response from a GetCurrentLocalUserWithResponse call -func ParseGetCurrentLocalUserResponse(rsp *http.Response) (*GetCurrentLocalUserResponse, error) { +// ParseUserTOTPSetupResponse parses an HTTP response from a UserTOTPSetupWithResponse call +func ParseUserTOTPSetupResponse(rsp *http.Response) (*UserTOTPSetupResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCurrentLocalUserResponse{ + response := &UserTOTPSetupResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest LocalUserWithTeams - 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 == 401: - var dest RequiresAuthentication - 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 Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + var dest struct { + Secret string `json:"secret"` + Url string `json:"url"` } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseLogoutUserResponse parses an HTTP response from a LogoutUserWithResponse call -func ParseLogoutUserResponse(rsp *http.Response) (*LogoutUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &LogoutUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON200 = &dest - switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52636,6 +44670,13 @@ func ParseLogoutUserResponse(rsp *http.Response) (*LogoutUserResponse, error) { } response.JSON405 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52648,15 +44689,15 @@ func ParseLogoutUserResponse(rsp *http.Response) (*LogoutUserResponse, error) { return response, nil } -// ParseLoginUserResponse parses an HTTP response from a LoginUserWithResponse call -func ParseLoginUserResponse(rsp *http.Response) (*LoginUserResponse, error) { +// ParseUserTOTPVerifyResponse parses an HTTP response from a UserTOTPVerifyWithResponse call +func ParseUserTOTPVerifyResponse(rsp *http.Response) (*UserTOTPVerifyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &LoginUserResponse{ + response := &UserTOTPVerifyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52697,6 +44738,20 @@ func ParseLoginUserResponse(rsp *http.Response) (*LoginUserResponse, error) { } response.JSON405 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52709,15 +44764,15 @@ func ParseLoginUserResponse(rsp *http.Response) (*LoginUserResponse, error) { return response, nil } -// ParseGetCurrentUserMembershipsResponse parses an HTTP response from a GetCurrentUserMembershipsWithResponse call -func ParseGetCurrentUserMembershipsResponse(rsp *http.Response) (*GetCurrentUserMembershipsResponse, error) { +// ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call +func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCurrentUserMembershipsResponse{ + response := &ListUsersResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52725,14 +44780,21 @@ func ParseGetCurrentUserMembershipsResponse(rsp *http.Response) (*GetCurrentUser switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Items []MembershipWithTeam `json:"items"` - Metadata ListMetadata `json:"metadata"` + Items []User `json:"items"` + Metadata ListMetadata `json:"metadata"` } 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 BadRequest + 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 RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52747,6 +44809,13 @@ func ParseGetCurrentUserMembershipsResponse(rsp *http.Response) (*GetCurrentUser } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52759,20 +44828,27 @@ func ParseGetCurrentUserMembershipsResponse(rsp *http.Response) (*GetCurrentUser return response, nil } -// ParseResetLocalUserPasswordResponse parses an HTTP response from a ResetLocalUserPasswordWithResponse call -func ParseResetLocalUserPasswordResponse(rsp *http.Response) (*ResetLocalUserPasswordResponse, error) { +// ParseAddUserResponse parses an HTTP response from a AddUserWithResponse call +func ParseAddUserResponse(rsp *http.Response) (*AddUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ResetLocalUserPasswordResponse{ + response := &AddUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -52827,65 +44903,15 @@ func ParseResetLocalUserPasswordResponse(rsp *http.Response) (*ResetLocalUserPas return response, nil } -// ParseCreateUserTokenResponse parses an HTTP response from a CreateUserTokenWithResponse call -func ParseCreateUserTokenResponse(rsp *http.Response) (*CreateUserTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateUserTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest struct { - // CustomToken Token to exchange for refresh token - CustomToken string `json:"custom_token"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 RequiresAuthentication - 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 InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseUserTOTPDeleteResponse parses an HTTP response from a UserTOTPDeleteWithResponse call -func ParseUserTOTPDeleteResponse(rsp *http.Response) (*UserTOTPDeleteResponse, error) { +// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call +func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UserTOTPDeleteResponse{ + response := &DeleteUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -52919,12 +44945,12 @@ func ParseUserTOTPDeleteResponse(rsp *http.Response) (*UserTOTPDeleteResponse, e } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: - var dest MethodNotAllowed + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON405 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -52938,25 +44964,22 @@ func ParseUserTOTPDeleteResponse(rsp *http.Response) (*UserTOTPDeleteResponse, e return response, nil } -// ParseUserTOTPSetupResponse parses an HTTP response from a UserTOTPSetupWithResponse call -func ParseUserTOTPSetupResponse(rsp *http.Response) (*UserTOTPSetupResponse, error) { +// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call +func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UserTOTPSetupResponse{ + response := &GetUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Secret string `json:"secret"` - Url string `json:"url"` - } + var dest User if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -52990,13 +45013,6 @@ func ParseUserTOTPSetupResponse(rsp *http.Response) (*UserTOTPSetupResponse, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: - var dest MethodNotAllowed - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON405 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -53016,20 +45032,27 @@ func ParseUserTOTPSetupResponse(rsp *http.Response) (*UserTOTPSetupResponse, err return response, nil } -// ParseUserTOTPVerifyResponse parses an HTTP response from a UserTOTPVerifyWithResponse call -func ParseUserTOTPVerifyResponse(rsp *http.Response) (*UserTOTPVerifyResponse, error) { +// ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call +func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UserTOTPVerifyResponse{ + response := &UpdateUserResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + 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 BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -53058,13 +45081,6 @@ func ParseUserTOTPVerifyResponse(rsp *http.Response) (*UserTOTPVerifyResponse, e } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: - var dest MethodNotAllowed - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON405 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -53072,13 +45088,6 @@ func ParseUserTOTPVerifyResponse(rsp *http.Response) (*UserTOTPVerifyResponse, e } response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -53091,15 +45100,15 @@ func ParseUserTOTPVerifyResponse(rsp *http.Response) (*UserTOTPVerifyResponse, e return response, nil } -// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call -func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { +// ParseDeleteUserTOTPResponse parses an HTTP response from a DeleteUserTOTPWithResponse call +func ParseDeleteUserTOTPResponse(rsp *http.Response) (*DeleteUserTOTPResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteUserResponse{ + response := &DeleteUserTOTPResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -53133,12 +45142,12 @@ func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 405: + var dest MethodNotAllowed if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON405 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError diff --git a/go.mod b/go.mod index af7573a..0bd5a8d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/cloudquery/cloudquery-platform-api-go +module github.com/cloudquery/cloudquery-platform-api-go/v2 go 1.25.5 diff --git a/spec.json b/spec.json index 66e7bd2..89f4d85 100644 --- a/spec.json +++ b/spec.json @@ -6,7 +6,7 @@ "name": "CloudQuery Support Team", "url": "https://cloudquery.io" }, - "description": "Welcome to the CloudQuery Platform API documentation! This API can be used to interact with the CloudQuery platform. As a user, the API allows you to search the CloudQuery asset inventory, run SQL queries against the data warehouse, save and load searches, and much more. As an administrator, it allows you to manage your teams, syncs, and other objects.\n### Authentication\nThe API is secured using bearer tokens. To get started, you can generate an API key for your Platform deployment from your platform dashboard. For a step-by-step guide, see: https://docs.cloudquery.io/docs/deployment/generate-api-key.\nThe base URL for the API depends on where your CloudQuery Platform is hosted. If running locally, this is usually http://localhost:3000/api. In a production deployment it should be an HTTPS URL. For purposes of illustration, we will assume the platform instance is available at https://cloudquery.mycompany.com. In this case, the base API endpoint will be https://cloudquery.mycompany.com/api.\n### Example Request\nTo test your connection to the API, we can use the `/plugins` endpoint. For example:\n`curl -v -H \"Authorization: Bearer $CLOUDQUERY_API_KEY\" \\ https://cloudquery.mycompany.com/api/plugins`\n", + "description": "Welcome to the CloudQuery Platform API documentation! This API can be used to interact with the CloudQuery platform. As a user, the API allows you to search the CloudQuery asset inventory, run SQL queries against the data warehouse, save and load searches, and much more. As an administrator, it allows you to manage your teams, syncs, and other objects.\n### Authentication\nThe API is secured using bearer tokens. To get started, you can generate an API key for your Platform deployment from your platform dashboard. For a step-by-step guide, see: https://www.cloudquery.io/docs/cli/managing-cloudquery/deployments/generate-api-key.\nThe base URL for the API depends on where your CloudQuery Platform is hosted. If running locally, this is usually http://localhost:3000/api. In a production deployment it should be an HTTPS URL. For purposes of illustration, we will assume the platform instance is available at https://cloudquery.mycompany.com. In this case, the base API endpoint will be https://cloudquery.mycompany.com/api.\n### Example Request\nTo test your connection to the API, we can use the `/plugins` endpoint. For example:\n`curl -v -H \"Authorization: Bearer $CLOUDQUERY_API_KEY\" \\ https://cloudquery.mycompany.com/api/plugins`\n", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" @@ -58,6 +58,9 @@ { "name": "images" }, + { + "name": "notifications" + }, { "name": "plugins" }, @@ -68,7 +71,7 @@ "name": "queries" }, { - "name": "registry" + "name": "insights" }, { "name": "reports" @@ -180,14 +183,6 @@ "format": "uuid" } }, - { - "name": "team_name", - "in": "query", - "description": "Filter by team name", - "schema": { - "type": "string" - } - }, { "name": "event_type", "in": "query", @@ -233,7 +228,7 @@ { "name": "search", "in": "query", - "description": "Search across user name, team name, event type, entity display name, and user IP address", + "description": "Search across user name, event type, entity display name, and user IP address", "schema": { "type": "string" } @@ -394,84 +389,67 @@ "security": [] } }, - "/manage/assetview": { + "/platform-info": { "get": { - "description": "Get assetview status", - "operationId": "AssetViewGetStatus", + "description": "Information about the platform", + "operationId": "GetPlatformInfo", "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { "required": [ - "is_running" + "public_ips", + "version", + "tenant_id" ], "properties": { - "is_running": { - "type": "boolean", - "description": "Whether the assetview is currently running" + "public_ips": { + "type": "array", + "description": "List of public IPs for the platform", + "items": { + "type": "string" + }, + "x-go-name": "PublicIPs" + }, + "version": { + "type": "string", + "description": "Version of the platform" + }, + "tenant_id": { + "type": "string", + "format": "uuid", + "description": "The tenant ID of the current user", + "x-go-name": "TenantID" } } } } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "admin" - ] - }, - "post": { - "description": "Trigger assetview run", - "operationId": "AssetViewTrigger", - "responses": { - "201": { - "description": "Triggered new run" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "403": { - "$ref": "#/components/responses/Forbidden" + }, + "description": "Response" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "admin" + "platform" ] } }, - "/manage/assetview/logs": { + "/platform-versions": { "get": { - "description": "List asset view logs", - "operationId": "AssetViewListLogs", + "description": "List platform versions", + "operationId": "ListPlatformVersions", "parameters": [ - { - "$ref": "#/components/parameters/per_page" - }, { "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/assetview_run_type" + "$ref": "#/components/parameters/per_page" } ], "responses": { @@ -485,10 +463,10 @@ ], "properties": { "items": { + "type": "array", "items": { - "$ref": "#/components/schemas/AssetViewRun" - }, - "type": "array" + "$ref": "#/components/schemas/PlatformVersion" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -497,392 +475,295 @@ } } }, - "description": "Created" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "description": "Response" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "admin" + "platform" ] } }, - "/manage/auth/saml": { + "/plugins": { "get": { - "description": "Get SAML integration information", - "operationId": "ManageGetSAML", + "description": "List all plugins", + "operationId": "ListPlugins", + "parameters": [ + { + "$ref": "#/components/parameters/plugin_sort_by" + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/plugin_include_release_stages" + }, + { + "$ref": "#/components/parameters/plugin_exclude_release_stages" + } + ], "responses": { "200": { - "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SAMLConfig" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "$ref": "#/components/schemas/ListPlugins" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } - } + }, + "description": "Response" }, - "400": { - "$ref": "#/components/responses/BadRequest" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "500": { "$ref": "#/components/responses/InternalError" } }, + "security": [], "tags": [ - "admin" + "plugins" ] - }, - "patch": { - "description": "Update SAML integration information", - "operationId": "ManageUpdateSAML", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SAMLConfigUpdate" - } - } + } + }, + "/plugins/{team_name}/{plugin_kind}/{plugin_name}": { + "get": { + "description": "Get details about a given plugin.", + "operationId": "GetPlugin", + "parameters": [ + { + "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/plugin_kind" + }, + { + "$ref": "#/components/parameters/plugin_name" } - }, + ], "responses": { "200": { - "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SAMLConfig" + "$ref": "#/components/schemas/ListPlugin" } } - } + }, + "description": "Response" }, - "400": { - "$ref": "#/components/responses/BadRequest" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, + "security": [], "tags": [ - "admin" + "plugins" ] } }, - "/manage/register-platform": { + "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions": { "get": { - "description": "Get platform registry information", - "operationId": "ManageGetPlatformRegistry", + "description": "List all versions for a given plugin", + "operationId": "ListPluginVersions", + "parameters": [ + { + "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/plugin_kind" + }, + { + "$ref": "#/components/parameters/plugin_name" + }, + { + "$ref": "#/components/parameters/version_sort_by" + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/include_drafts" + }, + { + "$ref": "#/components/parameters/include_fips" + }, + { + "$ref": "#/components/parameters/include_prereleases" + }, + { + "$ref": "#/components/parameters/version_filter" + } + ], "responses": { "200": { - "description": "Success", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, "required": [ - "installation_id" + "items", + "metadata" ], "properties": { - "installation_id": { - "type": "string", - "description": "Installation ID", - "x-go-name": "InstallationID" - }, - "activation_id": { - "type": "string", - "description": "Activation ID", - "format": "uuid", - "x-go-name": "ActivationID" - }, - "team_name": { - "type": "string", - "description": "Name of the team that was activated" - }, - "api_key_last_four": { - "type": "string", - "description": "Last 4 characters of the API key", - "x-go-name": "APIKeyLastFour" - }, - "last_activated_at": { - "type": "string", - "description": "Timestamp of the last activation", - "format": "date-time" - }, - "next_activation_at": { - "type": "string", - "description": "Timestamp of the next activation", - "format": "date-time" - }, - "offline_license_registered_to": { - "type": "string", - "description": "Name the offline license is registered to" + "items": { + "items": { + "$ref": "#/components/schemas/PluginVersionList" + }, + "type": "array" }, - "offline_license_expires_at": { - "type": "string", - "description": "Timestamp of the offline license expiration", - "format": "date-time" + "metadata": { + "$ref": "#/components/schemas/ListMetadata" } } } } - } + }, + "description": "Response" }, "400": { "$ref": "#/components/responses/BadRequest" }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, "500": { "$ref": "#/components/responses/InternalError" } }, + "security": [], "tags": [ - "admin" + "plugins" ] - }, - "post": { - "description": "Register platform usage by API key", - "operationId": "ManageRegisterPlatform", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "api_key" - ], - "properties": { - "api_key": { - "type": "string", - "description": "Team API key to activate platform with", - "x-go-name": "APIKey", - "minLength": 32 - } - } - } - } + } + }, + "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}": { + "get": { + "description": "Get details about a given plugin version.", + "operationId": "GetPluginVersion", + "parameters": [ + { + "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/plugin_kind" + }, + { + "$ref": "#/components/parameters/plugin_name" + }, + { + "$ref": "#/components/parameters/version_name" } - }, + ], "responses": { "200": { - "description": "Success", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "team_name" - ], - "properties": { - "team_name": { - "type": "string", - "description": "Name of the team that was activated" - } - } + "$ref": "#/components/schemas/PluginVersionDetails" } } - } + }, + "description": "Response" }, - "205": { - "description": "Activation method is no longer valid", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "error" - ], - "properties": { - "error": { - "type": "string", - "description": "Error message" - }, - "button_text": { - "type": "string", - "description": "Text for the button" - }, - "button_url": { - "type": "string", - "format": "url", - "description": "URL for the button", - "x-go-name": "ButtonURL" - } - } - } - } - } + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, - "400": { - "$ref": "#/components/responses/BadRequest" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, "500": { "$ref": "#/components/responses/InternalError" } }, + "security": [], "tags": [ - "admin" + "plugins" ] } }, - "/manage/register-platform/offline": { - "post": { - "description": "Register platform usage by offline license", - "operationId": "ManageRegisterPlatformWithOfflineLicense", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "license" - ], - "properties": { - "license": { - "type": "string", - "format": "byte", - "description": "Offline license" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "registered_to", - "expires_at" - ], - "properties": { - "registered_to": { - "type": "string", - "description": "Name the offline license is registered to" - }, - "expires_at": { - "type": "string", - "description": "Timestamp of the offline license expiration", - "format": "date-time" - } - } - } - } + "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/assets/{target_name}": { + "get": { + "description": "Download an asset for a given plugin version and target", + "operationId": "DownloadPluginAsset", + "parameters": [ + { + "in": "header", + "name": "Accept", + "required": false, + "schema": { + "type": "string" } }, - "400": { - "$ref": "#/components/responses/BadRequest" + { + "$ref": "#/components/parameters/team_name" }, - "404": { - "$ref": "#/components/responses/NotFound" + { + "$ref": "#/components/parameters/plugin_kind" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + { + "$ref": "#/components/parameters/plugin_name" }, - "429": { - "$ref": "#/components/responses/TooManyRequests" + { + "$ref": "#/components/parameters/version_name" }, - "500": { - "$ref": "#/components/responses/InternalError" + { + "$ref": "#/components/parameters/target_name" } - }, - "tags": [ - "admin" - ] - } - }, - "/manage/settings": { - "get": { - "description": "Show current platform settings", - "operationId": "GetSettings", + ], "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PlatformSettings" + "$ref": "#/components/schemas/PluginAsset" } } } }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "admin" - ] - }, - "patch": { - "description": "Update platform settings", - "operationId": "UpdateSettings", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PlatformSettingsUpdate" - } - } - } - }, - "responses": { - "200": { + "302": { "description": "Response", - "content": { - "application/json": { + "headers": { + "Location": { "schema": { - "$ref": "#/components/schemas/PlatformSettings" + "type": "string" } } } @@ -890,39 +771,48 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "429": { + "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } }, + "security": [], "tags": [ - "admin" + "plugins" ] } }, - "/manage/teams": { + "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/tables": { "get": { - "description": "List all teams", - "operationId": "ManageListAllTeams", + "description": "List tables for a given plugin version. This only applies to source plugins.", + "operationId": "ListPluginVersionTables", "parameters": [ { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/plugin_kind" + }, + { + "$ref": "#/components/parameters/plugin_name" + }, + { + "$ref": "#/components/parameters/version_name" }, { "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" } ], "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { @@ -933,7 +823,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/Team" + "$ref": "#/components/schemas/PluginTable" }, "type": "array" }, @@ -943,148 +833,97 @@ } } } - } + }, + "description": "Response" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, + "security": [], "tags": [ - "teams", - "admin" + "plugins" ] } }, - "/manage/teams/{team_name}": { + "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/tables/{table_name}": { "get": { - "description": "Get a team", - "operationId": "ManageGetTeam", + "description": "Get schema for a given table and plugin version. This only applies to source plugins.", + "operationId": "GetPluginVersionTable", "parameters": [ { "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/plugin_kind" + }, + { + "$ref": "#/components/parameters/plugin_name" + }, + { + "$ref": "#/components/parameters/version_name" + }, + { + "in": "path", + "name": "table_name", + "required": true, + "schema": { + "type": "string" + } } ], "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Team" + "$ref": "#/components/schemas/PluginTableDetails" } } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "teams", - "admin" - ] - }, - "delete": { - "description": "Delete a team", - "operationId": "ManageDeleteTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "responses": { - "204": { - "description": "Success" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + }, + "description": "Response" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, + "security": [], "tags": [ - "teams", - "admin" + "plugins" ] } }, - "/manage/teams/{team_name}/members": { + "/alerts": { "get": { - "description": "List team members", - "operationId": "ManageListTeamMembers", + "description": "List all alerts", + "operationId": "ListAllAlerts", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/per_page" - }, - { - "name": "user_search", - "description": "Search by user name or email", - "in": "query", - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/alert_states" }, { - "name": "role", - "description": "Search by user role. Only for default roles.", - "in": "query", - "schema": { - "$ref": "#/components/schemas/RBACDefaultRole" - } + "$ref": "#/components/parameters/enabled" }, { - "name": "custom_role_id", - "description": "Search by custom role.", - "in": "query", - "schema": { - "$ref": "#/components/schemas/RBACCustomRoleID" - } + "$ref": "#/components/parameters/query_tags" } ], "responses": { @@ -1100,7 +939,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/MembershipWithUser" + "$ref": "#/components/schemas/AlertDetail" }, "type": "array" }, @@ -1112,9 +951,6 @@ } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -1132,113 +968,58 @@ } }, "tags": [ - "teams", - "admin" + "alerts" ] - }, - "put": { - "description": "Add team member", - "operationId": "ManageAddTeamMember", + } + }, + "/alerts/test": { + "post": { + "description": "Test an unsaved alert", + "operationId": "TestUnsavedAlert", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "in": "query", + "name": "query_id", + "required": false, + "description": "ID of the query to fill in the alert", + "schema": { + "$ref": "#/components/schemas/QueryID" + }, + "x-go-name": "QueryID" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "user_id" - ], - "properties": { - "user_id": { - "description": "ID of the User", - "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "x-go-name": "UserID" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RBACDefaultRole" - } - }, - "custom_roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RBACCustomRoleID" - } - } - } + "$ref": "#/components/schemas/AlertCreate" } } } }, "responses": { - "204": { - "description": "Success" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "teams", - "admin" - ] - }, - "delete": { - "description": "Remove team member", - "operationId": "ManageRemoveTeamMember", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "user_id" - ], - "properties": { - "user_id": { - "description": "ID of the User", - "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "x-go-name": "UserID" + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "results" + ], + "properties": { + "results": { + "type": "array", + "description": "Notification results for the test alert", + "items": { + "$ref": "#/components/schemas/AlertTestResponse" + } + } } } } } - } - }, - "responses": { - "204": { - "description": "Success" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -1260,21 +1041,101 @@ } }, "tags": [ - "teams", - "admin" + "alerts" ] } }, - "/manage/users": { + "/policies": { "get": { - "description": "List all users", - "operationId": "ListLocalUsers", + "description": "List all policies for a team", + "operationId": "ListPolicies", "parameters": [ { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/policy_status" + }, + { + "in": "query", + "name": "severities", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicySeverity" + } + }, + "style": "form", + "explode": true, + "description": "Filter by severities (policy matches any)" + }, + { + "in": "query", + "name": "domain", + "required": false, + "schema": { + "$ref": "#/components/schemas/PolicyDomain" + }, + "description": "Filter by domain" + }, + { + "in": "query", + "name": "policy_group_ids", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyGroupID" + } + }, + "style": "form", + "explode": true, + "description": "Filter by policy groups (policy matches any)" + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string" + }, + "description": "Search in policy name and description" + }, + { + "in": "query", + "name": "sort_by", + "required": false, + "schema": { + "type": "string", + "enum": [ + "name", + "domain", + "severity", + "violation_count", + "last_run_at", + "created_at" + ], + "default": "created_at" + }, + "description": "Field to sort by" + }, + { + "in": "query", + "name": "sort_dir", + "required": false, + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + }, + "description": "Sort direction" } ], "responses": { @@ -1290,7 +1151,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/LocalUser" + "$ref": "#/components/schemas/Policy" }, "type": "array" }, @@ -1308,91 +1169,44 @@ "403": { "$ref": "#/components/responses/Forbidden" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "users", - "admin" + "policies" ] - } - }, - "/manage/users/add": { + }, "post": { - "description": "Add new user", - "operationId": "AddLocalUser", - "parameters": [], + "description": "Create a new policy", + "operationId": "CreatePolicy", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "email", - "name", - "roles" - ], - "properties": { - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "password": { - "type": "string" - }, - "roles": { - "description": "Global roles for the user", - "type": "array", - "minItems": 0, - "items": { - "type": "string", - "enum": [ - "admin:write", - "admin:read" - ] - } - } - } + "$ref": "#/components/schemas/PolicyCreate" } } } }, "responses": { - "200": { - "description": "Response", + "201": { + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LocalUser" + "$ref": "#/components/schemas/Policy" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, "403": { "$ref": "#/components/responses/Forbidden" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, @@ -1401,33 +1215,29 @@ } }, "tags": [ - "users", - "admin" + "policies" ] } }, - "/manage/users/{user_id}": { + "/policies/{policy_id}": { "get": { - "description": "Get user details", - "operationId": "GetLocalUser", + "description": "Get a policy by ID", + "operationId": "GetPolicy", "parameters": [ { - "$ref": "#/components/parameters/user_id" + "$ref": "#/components/parameters/policy_id" } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LocalUserWithTeams" + "$ref": "#/components/schemas/Policy" } } - }, - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -1438,57 +1248,27 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "users", - "admin" + "policies" ] }, - "patch": { - "description": "Update user", - "operationId": "UpdateLocalUser", + "put": { + "description": "Update a policy", + "operationId": "UpdatePolicy", "parameters": [ { - "$ref": "#/components/parameters/user_id" + "$ref": "#/components/parameters/policy_id" } ], "requestBody": { "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "password": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "roles": { - "description": "Global roles for the user", - "type": "array", - "items": { - "type": "string", - "enum": [ - "admin:write", - "admin:read" - ] - } - } - } + "$ref": "#/components/schemas/PolicyUpdate" } } } @@ -1499,7 +1279,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LocalUser" + "$ref": "#/components/schemas/Policy" } } } @@ -1524,24 +1304,20 @@ } }, "tags": [ - "users", - "admin" + "policies" ] }, "delete": { - "description": "Delete user", - "operationId": "DeleteLocalUser", + "description": "Delete a policy", + "operationId": "DeletePolicy", "parameters": [ { - "$ref": "#/components/parameters/user_id" + "$ref": "#/components/parameters/policy_id" } ], "responses": { "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "description": "Success" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -1560,41 +1336,29 @@ } }, "tags": [ - "users", - "admin" + "policies" ] } }, - "/manage/users/{user_id}/reset": { + "/policies/{policy_id}/toggle": { "post": { - "description": "Create password reset token for user", - "operationId": "CreateLocalUserResetToken", + "description": "Toggle a policy's status (active/paused)", + "operationId": "TogglePolicy", "parameters": [ { - "$ref": "#/components/parameters/user_id" + "$ref": "#/components/parameters/policy_id" } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "reset_token" - ], - "properties": { - "reset_token": { - "type": "string" - } - } + "$ref": "#/components/schemas/Policy" } } - }, - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -1613,54 +1377,37 @@ } }, "tags": [ - "users", - "admin" + "policies" ] } }, - "/manage/users/{user_id}/totp": { - "delete": { - "description": "Disable/Reset MFA for a specific user", - "operationId": "ManageUserTOTPDelete", + "/policies/{policy_id}/violations": { + "get": { + "description": "Get violations for a policy", + "operationId": "GetPolicyViolations", "parameters": [ { - "$ref": "#/components/parameters/user_id" - } - ], - "responses": { - "204": { - "description": "Success" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "$ref": "#/components/parameters/policy_id" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" + { + "$ref": "#/components/parameters/page" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" + { + "$ref": "#/components/parameters/per_page" }, - "500": { - "$ref": "#/components/responses/InternalError" + { + "name": "search", + "in": "query", + "description": "Text search term to filter violations by resource_type_label, name, account_name, cloud, or region", + "required": false, + "schema": { + "type": "string" + } } - }, - "tags": [ - "users" - ] - } - }, - "/platform-info": { - "get": { - "description": "Information about the platform", - "operationId": "GetPlatformInfo", + ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { @@ -1668,44 +1415,74 @@ "items" ], "properties": { - "public_ips": { - "type": "array", + "items": { "items": { - "type": "string" - } + "$ref": "#/components/schemas/PolicyViolation" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" } } } } - }, - "description": "Response" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "platform" + "policies" ] } }, - "/platform-versions": { + "/policies/{policy_id}/violations-history": { "get": { - "description": "List platform versions", - "operationId": "ListPlatformVersions", + "description": "Get violation history for a policy", + "operationId": "GetPolicyViolationsHistory", "parameters": [ { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/policy_id" }, { "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/page" + }, + { + "in": "query", + "name": "start_time", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + } + }, + { + "in": "query", + "name": "end_time", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + } } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { @@ -1715,10 +1492,10 @@ ], "properties": { "items": { - "type": "array", "items": { - "$ref": "#/components/schemas/PlatformVersion" - } + "$ref": "#/components/schemas/PolicyEvaluationLog" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -1726,234 +1503,341 @@ } } } - }, - "description": "Response" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "platform" + "policies" ] } }, - "/plugins": { + "/policies/metrics": { "get": { - "description": "List all plugins", - "operationId": "ListPlugins", + "description": "Get policy metrics summary", + "operationId": "GetPolicyMetrics", "parameters": [ { - "$ref": "#/components/parameters/plugin_sort_by" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/per_page" + "in": "query", + "name": "severities", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicySeverity" + } + }, + "style": "form", + "explode": true, + "description": "Filter by severities (policy matches any)" }, { - "$ref": "#/components/parameters/plugin_include_release_stages" + "in": "query", + "name": "domain", + "required": false, + "schema": { + "$ref": "#/components/schemas/PolicyDomain" + }, + "description": "Filter by domain" }, { - "$ref": "#/components/parameters/plugin_exclude_release_stages" + "in": "query", + "name": "policy_group_ids", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyGroupID" + } + }, + "style": "form", + "explode": true, + "description": "Filter by policy groups (policy matches any)" } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "$ref": "#/components/schemas/ListPlugins" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/PolicyMetrics" } } - }, - "description": "Response" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "500": { "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "policies" ] - }, - "post": { - "description": "Create a plugin owned by the specified team. User must be part of that team.", - "operationId": "CreatePlugin", - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PluginCreate" + } + }, + "/policies/violations-by-domain": { + "get": { + "description": "Get violations grouped by domain", + "operationId": "GetViolationsByDomain", + "parameters": [ + { + "in": "query", + "name": "severities", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicySeverity" } - } + }, + "style": "form", + "explode": true, + "description": "Filter by severities (policy matches any)" + }, + { + "in": "query", + "name": "domain", + "required": false, + "schema": { + "$ref": "#/components/schemas/PolicyDomain" + }, + "description": "Filter by domain" + }, + { + "in": "query", + "name": "policy_group_ids", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyGroupID" + } + }, + "style": "form", + "explode": true, + "description": "Filter by policy groups (policy matches any)" } - }, + ], "responses": { - "201": { + "200": { + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Plugin" + "$ref": "#/components/schemas/ViolationsByDomain" } } - }, - "description": "Created" + } }, - "400": { - "$ref": "#/components/responses/BadRequest" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "403": { "$ref": "#/components/responses/Forbidden" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "plugins" + "policies" ] } }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}": { + "/policies/violations-history": { "get": { - "description": "Get details about a given plugin.", - "operationId": "GetPlugin", + "description": "Get violations history over time", + "operationId": "GetViolationsHistory", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "in": "query", + "name": "start_date", + "required": false, + "schema": { + "type": "string", + "format": "date" + }, + "description": "Start date for the query range (YYYY-MM-DD)" }, { - "$ref": "#/components/parameters/plugin_kind" + "in": "query", + "name": "end_date", + "required": false, + "schema": { + "type": "string", + "format": "date" + }, + "description": "End date for the query range (YYYY-MM-DD)" }, { - "$ref": "#/components/parameters/plugin_name" + "in": "query", + "name": "severities", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicySeverity" + } + }, + "style": "form", + "explode": true, + "description": "Filter by severities (policy matches any)" + }, + { + "in": "query", + "name": "domain", + "required": false, + "schema": { + "$ref": "#/components/schemas/PolicyDomain" + }, + "description": "Filter by domain" + }, + { + "in": "query", + "name": "policy_group_ids", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyGroupID" + } + }, + "style": "form", + "explode": true, + "description": "Filter by policy groups (policy matches any)" } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListPlugin" + "$ref": "#/components/schemas/ViolationsHistory" } } - }, - "description": "Response" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" + "403": { + "$ref": "#/components/responses/Forbidden" }, "500": { "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "policies" ] - }, - "patch": { - "description": "Update a plugin", - "operationId": "UpdatePlugin", - "tags": [ - "plugins" - ], + } + }, + "/policy-groups": { + "get": { + "description": "List all policy groups", + "operationId": "ListPolicyGroups", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string" + }, + "description": "Search in policy group name and description" }, { - "$ref": "#/components/parameters/plugin_name" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PluginUpdate" + "in": "query", + "name": "severities", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicySeverity" } - } + }, + "style": "form", + "explode": true, + "description": "Filter to policy groups that contain at least one policy with any of these severities" } - }, + ], "responses": { "200": { - "description": "Updated", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Plugin" + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyGroupWithCounts" + } + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "403": { "$ref": "#/components/responses/Forbidden" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "policies" + ] }, - "delete": { - "description": "Delete plugin by team and plugin name", - "operationId": "DeletePluginByTeamAndPluginName", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" + "post": { + "description": "Create a new policy group", + "operationId": "CreatePolicyGroup", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyGroupCreate" + } + } } - ], + }, "responses": { - "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "201": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyGroup" + } + } + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -1961,56 +1845,64 @@ "403": { "$ref": "#/components/responses/Forbidden" }, - "404": { - "$ref": "#/components/responses/NotFound" + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "plugins" + "policies" ] } }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions": { + "/policy-groups/{policy_group_id}": { "get": { - "description": "List all versions for a given plugin", - "operationId": "ListPluginVersions", + "description": "List policies in a policy group", + "operationId": "ListPoliciesInGroup", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_sort_by" - }, - { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/policy_group_id" }, { "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/include_drafts" - }, - { - "$ref": "#/components/parameters/include_fips" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/include_prereleases" + "in": "query", + "name": "sort_by", + "required": false, + "schema": { + "type": "string", + "enum": [ + "name", + "policy_count" + ], + "default": "name" + }, + "description": "Field to sort by" }, { - "$ref": "#/components/parameters/version_filter" + "in": "query", + "name": "sort_dir", + "required": false, + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "asc" + }, + "description": "Sort direction" } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { @@ -2021,7 +1913,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/PluginVersionList" + "$ref": "#/components/schemas/Policy" }, "type": "array" }, @@ -2031,11 +1923,7 @@ } } } - }, - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -2050,40 +1938,40 @@ "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "policies" ] - } - }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}": { - "get": { - "description": "Get details about a given plugin version.", - "operationId": "GetPluginVersion", + }, + "put": { + "description": "Update a policy group", + "operationId": "UpdatePolicyGroup", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" + "$ref": "#/components/parameters/policy_group_id" } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyGroupUpdate" + } + } + } + }, "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PluginVersionDetails" + "$ref": "#/components/schemas/PolicyGroup" } } - }, - "description": "Response" + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -2094,31 +1982,111 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "policies" ] }, - "put": { - "description": "Create a new plugin version, or update a draft version", - "operationId": "CreatePluginVersion", + "delete": { + "description": "Delete a policy group", + "operationId": "DeletePolicyGroup", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/policy_group_id" + } + ], + "responses": { + "204": { + "description": "Success" }, - { - "$ref": "#/components/parameters/plugin_kind" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" }, + "500": { + "$ref": "#/components/responses/InternalError" + } + }, + "tags": [ + "policies" + ] + } + }, + "/apikeys": { + "get": { + "description": "List all API Keys", + "operationId": "ListAPIKeys", + "tags": [ + "api-keys" + ], + "parameters": [ { - "$ref": "#/components/parameters/plugin_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/version_name" + "$ref": "#/components/parameters/page" + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "required": [ + "items", + "metadata", + "allowed_roles" + ], + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/APIKey" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + }, + "allowed_roles": { + "description": "List of allowed roles when creating a new API key", + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } + } + }, + "post": { + "description": "Create new API Key.", + "operationId": "CreateAPIKey", + "tags": [ + "api-keys" ], "requestBody": { "content": { @@ -2126,51 +2094,22 @@ "schema": { "type": "object", "required": [ - "message", - "protocols", - "supported_targets", - "package_type", - "checksums" + "expires_at", + "name" ], "properties": { - "message": { - "type": "string", - "minLength": 1, - "maxLength": 30000, - "description": "A message describing what's new or changed in this version.\nThis message will be displayed to users in the plugin's changelog.\nSupports limited markdown syntax.\n" - }, - "protocols": { - "$ref": "#/components/schemas/PluginProtocols" + "name": { + "$ref": "#/components/schemas/APIKeyName" }, - "supported_targets": { - "type": "array", - "description": "The targets supported by this plugin version, formatted as _", - "example": [ - "linux_arm64", - "darwin_amd64", - "windows_amd64" - ], - "items": { - "type": "string" - } + "expires_at": { + "type": "string", + "format": "date-time" }, - "checksums": { + "roles": { "type": "array", - "description": "List of SHA-256 checksums for this plugin version, one for each supported target.", "items": { - "type": "string" + "$ref": "#/components/schemas/RoleID" } - }, - "package_type": { - "$ref": "#/components/schemas/PluginPackageType" - }, - "spec_json_schema": { - "$ref": "#/components/schemas/PluginSpecJSONSchema" - }, - "ui_id": { - "type": "string", - "format": "uuid", - "x-go-name": "UIID" } } } @@ -2178,22 +2117,12 @@ } }, "responses": { - "200": { - "description": "Success (the plugin version was updated)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PluginVersion" - } - } - } - }, "201": { - "description": "Success (the plugin version was created)", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PluginVersion" + "$ref": "#/components/schemas/APIKey" } } } @@ -2207,47 +2136,71 @@ "403": { "$ref": "#/components/responses/Forbidden" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - }, + } + } + }, + "/apikeys/{apikey_id}": { + "delete": { + "description": "Delete API Key. This will remove any future access by this API Key.", + "operationId": "DeleteAPIKey", "tags": [ - "plugins" - ] - }, - "patch": { - "description": "Update a given plugin version", - "operationId": "UpdatePluginVersion", + "api-keys" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/apikey_id" + } + ], + "responses": { + "204": { + "description": "Deleted" }, - { - "$ref": "#/components/parameters/plugin_kind" + "400": { + "$ref": "#/components/responses/BadRequest" }, - { - "$ref": "#/components/parameters/plugin_name" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, - { - "$ref": "#/components/parameters/version_name" + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" } - ], + } + } + }, + "/conversations": { + "post": { + "operationId": "CreateConversation", + "summary": "Start a new chat conversation", + "description": "Create a new AI chat conversation", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PluginVersionUpdate" + "$ref": "#/components/schemas/ConversationCreate" } } } }, "responses": { - "200": { - "description": "Response", + "201": { + "description": "Conversation created successfully", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PluginVersion" + "$ref": "#/components/schemas/Conversation" } } } @@ -2258,67 +2211,41 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" + "429": { + "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "plugins" + "chat" ] } }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/assets/{target_name}": { + "/conversations/{conversation_id}": { "get": { - "description": "Download an asset for a given plugin version and target", - "operationId": "DownloadPluginAsset", + "operationId": "GetConversation", + "summary": "Retrieve a chat conversation", + "description": "Get details of an existing AI chat conversation. Useful for polling for updates.", "parameters": [ { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" - }, - { - "$ref": "#/components/parameters/target_name" + "$ref": "#/components/parameters/conversation_id" } ], "responses": { "200": { - "description": "Response", + "description": "Conversation retrieved successfully", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PluginAsset" + "$ref": "#/components/schemas/Conversation" } } } }, - "302": { - "description": "Response", - "headers": { - "Location": { - "schema": { - "type": "string" - } - } - } + "400": { + "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -2326,90 +2253,100 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "429": { - "$ref": "#/components/responses/TooManyRequests" + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "chat" ] }, "post": { - "description": "Get a URL to upload an asset for a given plugin version and target", - "operationId": "UploadPluginAsset", + "operationId": "SendMessage", + "summary": "Add a message to an existing conversation", + "description": "Send a new message to an existing AI chat conversation", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" - }, - { - "$ref": "#/components/parameters/target_name" + "$ref": "#/components/parameters/conversation_id" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConversationSendMessage" + } + } + } + }, "responses": { "201": { - "description": "Response", + "description": "Message sent successfully", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReleaseURL" + "$ref": "#/components/schemas/ConversationMessage" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, "403": { "$ref": "#/components/responses/Forbidden" }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "plugins" + "chat" ] } }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/docs": { + "/custom-columns": { "get": { - "description": "List all documentation pages for a given plugin version", - "operationId": "ListPluginVersionDocs", + "description": "List all custom columns", + "operationId": "ListAllCustomColumns", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/plugin_name" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/version_name" + "$ref": "#/components/parameters/custom_columns_sort_bys" }, { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/custom_columns_sort_dirs" }, { - "$ref": "#/components/parameters/per_page" + "name": "search_term", + "in": "query", + "schema": { + "type": "string" + }, + "description": "Filter columns by name, label, or description." } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { @@ -2420,7 +2357,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/PluginDocsPage" + "$ref": "#/components/schemas/CustomColumn" }, "type": "array" }, @@ -2430,76 +2367,51 @@ } } } - }, - "description": "Response" + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "custom-columns" ] }, - "put": { - "description": "Create or update one or more plugin version docs pages", - "operationId": "CreatePluginVersionDocs", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" - } - ], + "post": { + "description": "Save a custom column", + "operationId": "SaveCustomColumn", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "pages" - ], - "properties": { - "pages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginDocsPageCreate" - } - } - } + "$ref": "#/components/schemas/CustomColumnCreateOrUpdate" } } } }, "responses": { "201": { - "description": "Successfully created or updated", + "description": "Success", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "names": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginDocsPageName" - } - } - } + "$ref": "#/components/schemas/CustomColumn" } } } @@ -2524,61 +2436,74 @@ } }, "tags": [ - "plugins" + "custom-columns" ] - }, - "post": { - "description": "Replace (override) multiple plugin version docs pages", - "operationId": "ReplacePluginVersionDocs", + } + }, + "/custom-columns/{custom_column_id}": { + "get": { + "description": "Get a custom column", + "operationId": "GetCustomColumn", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/custom_column_id" + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomColumn" + } + } + } }, - { - "$ref": "#/components/parameters/plugin_kind" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, - { - "$ref": "#/components/parameters/plugin_name" + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, + "500": { + "$ref": "#/components/responses/InternalError" + } + }, + "tags": [ + "custom-columns" + ] + }, + "patch": { + "description": "Update a custom column", + "operationId": "UpdateCustomColumn", + "parameters": [ { - "$ref": "#/components/parameters/version_name" + "$ref": "#/components/parameters/custom_column_id" } ], "requestBody": { "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "pages" - ], - "properties": { - "pages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginDocsPageCreate" - } - } - } + "$ref": "#/components/schemas/CustomColumnCreateOrUpdate" } } } }, "responses": { - "201": { - "description": "Successfully created or updated", + "200": { + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "names": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginDocsPageName" - } - } - } + "$ref": "#/components/schemas/CustomColumn" } } } @@ -2603,52 +2528,20 @@ } }, "tags": [ - "plugins" + "custom-columns" ] }, "delete": { - "description": "Delete one or more plugin version docs pages.", - "operationId": "DeletePluginVersionDocs", + "description": "Delete a custom column", + "operationId": "DeleteCustomColumn", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" + "$ref": "#/components/parameters/custom_column_id" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "names" - ], - "properties": { - "names": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginDocsPageName" - } - } - } - } - } - } - }, "responses": { "204": { - "description": "The resource was deleted successfully." - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "description": "Success" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -2667,36 +2560,34 @@ } }, "tags": [ - "plugins" + "custom-columns" ] } }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/tables": { + "/filters": { "get": { - "description": "List tables for a given plugin version. This only applies to source plugins.", - "operationId": "ListPluginVersionTables", + "description": "List Filters", + "operationId": "ListFilters", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/plugin_kind" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/plugin_name" + "$ref": "#/components/parameters/filter_tags" }, { - "$ref": "#/components/parameters/version_name" - }, - { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/filter_name_filter" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/filter_expression_filter" } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { @@ -2706,10 +2597,10 @@ ], "properties": { "items": { + "type": "array", "items": { - "$ref": "#/components/schemas/PluginTable" - }, - "type": "array" + "$ref": "#/components/schemas/Filter" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -2717,83 +2608,66 @@ } } } - }, - "description": "Response" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "filters" ] - }, - "put": { - "description": "Create or update one or more plugin version tables. This only applies to source plugins, and can only be done if the plugin version is in draft.", - "operationId": "CreatePluginVersionTables", + } + }, + "/filters/tags": { + "get": { + "description": "List Filter Tags", + "operationId": "ListFilterTags", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/version_name" + "$ref": "#/components/parameters/page" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "tables" - ], - "properties": { - "tables": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginTableCreate" - } - } - } - } - } - } - }, "responses": { - "201": { - "description": "Successfully created or updated", + "200": { + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", + "required": [ + "items", + "metadata" + ], "properties": { - "names": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/PluginTableName" + "$ref": "#/components/schemas/FilterTag" } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -2811,52 +2685,77 @@ } }, "tags": [ - "plugins" + "filters" ] - }, - "delete": { - "description": "Delete one or more plugin version tables.", - "operationId": "DeletePluginVersionTables", + } + }, + "/filters/{filter_id}": { + "get": { + "description": "Get a table filter by ID", + "operationId": "GetFilterByID", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/filter_id" + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Filter" + } + } + } }, - { - "$ref": "#/components/parameters/plugin_kind" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, - { - "$ref": "#/components/parameters/plugin_name" + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + }, + "tags": [ + "filters" + ] + }, + "patch": { + "description": "Update a table filter", + "operationId": "UpdateFilter", + "parameters": [ { - "$ref": "#/components/parameters/version_name" + "$ref": "#/components/parameters/filter_id" } ], "requestBody": { "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "names" - ], - "properties": { - "names": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginTableName" - } - } - } + "$ref": "#/components/schemas/FilterUpdate" } } } }, "responses": { - "204": { - "description": "The resource was deleted successfully." - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Filter" + } + } + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -2875,202 +2774,115 @@ } }, "tags": [ - "plugins" + "filters" ] - } - }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/tables/{table_name}": { - "get": { - "description": "Get schema for a given table and plugin version. This only applies to source plugins.", - "operationId": "GetPluginVersionTable", + }, + "delete": { + "description": "Delete a table filter", + "operationId": "DeleteFilter", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" - }, - { - "in": "path", - "name": "table_name", - "required": true, - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/filter_id" } ], "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PluginTableDetails" - } - } - }, - "description": "Response" + "204": { + "description": "Deleted" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, - "security": [], "tags": [ - "plugins" + "filters" ] } }, - "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/uiassets": { - "post": { - "description": "Get URLs to upload UI assets for a given plugin version", - "operationId": "UploadPluginUIAssets", + "/notifications": { + "get": { + "description": "List all notifications for triggered, enabled, policy-bound alerts", + "operationId": "ListNotifications", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/plugin_kind" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/plugin_name" + "in": "query", + "name": "severities", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicySeverity" + } + }, + "style": "form", + "explode": true, + "description": "Filter by policy severities (policy matches any)" }, { - "$ref": "#/components/parameters/version_name" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "assets" - ], - "properties": { - "ui_id": { - "type": "string", - "format": "uuid", - "x-go-name": "UIID" - }, - "assets": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginUIAssetUploadRequest" - } - } - } + "in": "query", + "name": "policy_group_ids", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyGroupID" } - } + }, + "style": "form", + "explode": true, + "description": "Filter by policy groups (policy matches any)" } - }, + ], "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "type": "object", "required": [ - "ui_id", - "assets" + "items", + "metadata" ], "properties": { - "ui_id": { - "type": "string", - "description": "ID representing this upload", - "x-go-name": "UIID" - }, - "assets": { - "type": "array", + "items": { "items": { - "$ref": "#/components/schemas/PluginUIAsset" - } + "$ref": "#/components/schemas/NotificationDetail" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, "403": { "$ref": "#/components/responses/Forbidden" }, - "409": { - "$ref": "#/components/responses/Conflict" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "plugins" - ] - }, - "put": { - "description": "Finalize UI asset upload", - "operationId": "FinalizePluginUIAssetUpload", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "ui_id" - ], - "properties": { - "ui_id": { - "type": "string", - "description": "ID representing the finished upload", - "x-go-name": "UIID" - } - } - } - } - } - }, - "responses": { - "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" + "404": { + "$ref": "#/components/responses/NotFound" }, "422": { "$ref": "#/components/responses/UnprocessableEntity" @@ -3080,52 +2892,14 @@ } }, "tags": [ - "plugins" - ] - }, - "delete": { - "description": "Remove UI assets for a given plugin version", - "operationId": "RemovePluginUIAssets", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" - }, - { - "$ref": "#/components/parameters/version_name" - } - ], - "responses": { - "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "plugins" + "notifications" ] } }, - "/teams": { + "/notifications/destinations": { "get": { - "description": "List all teams", - "operationId": "ListTeams", + "description": "List all notification destinations", + "operationId": "ListAllNotificationDestinations", "parameters": [ { "$ref": "#/components/parameters/per_page" @@ -3147,7 +2921,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/Team" + "$ref": "#/components/schemas/NotificationDestinationListItem" }, "type": "array" }, @@ -3168,53 +2942,89 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "teams" + "alerts" ] }, "post": { - "description": "Create a team owned by the current user.", - "operationId": "CreateTeam", - "parameters": [], + "description": "Create notification destination", + "operationId": "CreateNotificationDestination", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "name", - "display_name" - ], - "properties": { - "name": { - "$ref": "#/components/schemas/TeamName" - }, - "display_name": { - "type": "string", - "description": "The team's display name", - "minLength": 1, - "maxLength": 255 - } - } + "$ref": "#/components/schemas/NotificationDestinationCreate" } } } }, "responses": { "201": { + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Team" + "$ref": "#/components/schemas/NotificationDestination" } } - }, - "description": "Created" + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + }, + "tags": [ + "alerts" + ] + } + }, + "/notifications/destinations/test": { + "post": { + "description": "Test an unsaved notification destination", + "operationId": "TestUnsavedNotificationDestination", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationDestinationData" + } + } + } + }, + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationDestinationTestResponse" + } + } + } }, "400": { "$ref": "#/components/responses/BadRequest" @@ -3225,6 +3035,9 @@ "403": { "$ref": "#/components/responses/Forbidden" }, + "404": { + "$ref": "#/components/responses/NotFound" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, @@ -3233,17 +3046,17 @@ } }, "tags": [ - "teams" + "alerts" ] } }, - "/teams/{team_name}": { + "/notifications/destination/{notification_destination_id}": { "get": { - "description": "Get a team by name", - "operationId": "GetTeamByName", + "description": "Get notification destination", + "operationId": "GetNotificationDestination", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/notification_destination_id" } ], "responses": { @@ -3252,14 +3065,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Team" + "$ref": "#/components/schemas/NotificationDestination" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -3269,34 +3079,30 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "teams" + "alerts" ] }, "patch": { - "description": "Update team attributes", - "operationId": "UpdateTeam", + "description": "Update a notification destination", + "operationId": "UpdateNotificationDestination", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/notification_destination_id" } ], "requestBody": { "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "display_name": { - "type": "string", - "description": "The team's display name" - } - } + "$ref": "#/components/schemas/NotificationDestinationUpdate" } } } @@ -3307,7 +3113,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Team" + "$ref": "#/components/schemas/NotificationDestination" } } } @@ -3324,29 +3130,28 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "teams" + "alerts" ] }, "delete": { - "description": "Delete team", - "operationId": "DeleteTeam", + "description": "Delete a notification destination", + "operationId": "DeleteNotificationDestination", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/notification_destination_id" } ], - "x-internal": true, "responses": { "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "description": "No Content" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -3365,29 +3170,23 @@ } }, "tags": [ - "teams" + "alerts" ] } }, - "/teams/{team_name}/alerts": { + "/notifications/destination/{notification_destination_id}/alerts": { "get": { - "description": "List all alerts", - "operationId": "ListAllAlerts", + "description": "Get notification destination alerts", + "operationId": "GetNotificationDestinationAlerts", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/notification_destination_id" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/alert_states" - }, - { - "$ref": "#/components/parameters/enabled" } ], "responses": { @@ -3436,54 +3235,22 @@ ] } }, - "/teams/{team_name}/alerts/test": { + "/notifications/destination/{notification_destination_id}/test": { "post": { - "description": "Test an unsaved alert", - "operationId": "TestUnsavedAlert", + "description": "Test a notification destination", + "operationId": "TestNotificationDestination", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "in": "query", - "name": "query_id", - "required": false, - "description": "ID of the query to fill in the alert", - "schema": { - "$ref": "#/components/schemas/QueryID" - }, - "x-go-name": "QueryID" + "$ref": "#/components/parameters/notification_destination_id" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AlertCreate" - } - } - } - }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "results" - ], - "properties": { - "results": { - "type": "array", - "description": "Notification results for the test alert", - "items": { - "$ref": "#/components/schemas/AlertTestResponse" - } - } - } + "$ref": "#/components/schemas/NotificationDestinationTestResponse" } } } @@ -3503,6 +3270,9 @@ "422": { "$ref": "#/components/responses/UnprocessableEntity" }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, "500": { "$ref": "#/components/responses/InternalError" } @@ -3512,114 +3282,27 @@ ] } }, - "/teams/{team_name}/apikeys": { - "get": { - "description": "List all team API Keys", - "operationId": "ListTeamAPIKeys", - "tags": [ - "teams" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "items", - "metadata", - "allowed_roles" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/APIKey" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - }, - "allowed_roles": { - "description": "List of allowed roles when creating a new API key", - "type": "array", - "items": { - "$ref": "#/components/schemas/APIKeyTeamRole" - } - } - } - } - } - } - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - }, + "/slack": { "post": { - "description": "Create new team API Key.", - "operationId": "CreateTeamAPIKey", - "tags": [ - "teams" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], + "description": "Create Slack connection", + "operationId": "CreateSlackConnection", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "expires_at", - "name" - ], - "properties": { - "name": { - "$ref": "#/components/schemas/APIKeyName" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/APIKeyTeamRole" - } - } - } + "$ref": "#/components/schemas/SlackConnectionCreate" } } } }, "responses": { "201": { - "description": "Response", + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIKey" + "$ref": "#/components/schemas/SlackConnection" } } } @@ -3630,153 +3313,123 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/apikeys/{apikey_id}": { - "delete": { - "description": "Delete API Key. This will remove any future access by this API Key.", - "operationId": "DeleteTeamAPIKey", - "tags": [ - "teams" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/apikey_id" - } - ], - "responses": { - "204": { - "description": "Deleted" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "alerts" + ] } }, - "/teams/{team_name}/connectors": { + "/slack/{id}/channels": { "get": { - "description": "List all configured connectors", - "operationId": "ListConnectors", - "tags": [ - "syncs" - ], + "description": "List Slack channels for a connection", + "operationId": "ListSlackChannels", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "in": "query", - "name": "filter_type", - "required": false, + "name": "id", + "in": "path", + "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" }, - "description": "Filter connectors by a given type." + "description": "Slack connection ID" }, { + "name": "name", "in": "query", - "name": "filter_plugin", "required": false, "schema": { "type": "string" }, - "description": "Filter connectors by a given plugin reference. Mutually exclusive with `type`.", - "example": "cloudquery/source/googleanalytics" + "description": "Filter channels by name (case-insensitive partial match)" } ], "responses": { "200": { - "description": "Response", + "description": "Success", "content": { "application/json": { "schema": { + "type": "object", "required": [ - "items", - "metadata" + "items" ], "properties": { "items": { + "type": "array", "items": { - "$ref": "#/components/schemas/Connector" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" + "$ref": "#/components/schemas/SlackChannel" + } } } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } - }, + }, + "tags": [ + "alerts" + ] + } + }, + "/onboardings/aws/oidc": { "post": { - "description": "Create new connector", - "operationId": "CreateConnector", + "operationId": "CreateAWSOnboarding", + "description": "Create an interactive onboarding for AWS", "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } + "onboardings" ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConnectorCreate" + "type": "object", + "required": [ + "single_account" + ], + "properties": { + "single_account": { + "type": "boolean", + "description": "Specifies the type of onboarding to create: either a single account onboarding or an organization onboarding\n" + } + } } } } }, "responses": { "201": { - "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Connector" + "$ref": "#/components/schemas/OnboardingAWSCreateResponse" } } } @@ -3787,41 +3440,37 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/connectors/{connector_id}": { + "/onboardings/aws/oidc/{onboarding_id}": { "get": { - "description": "Get a configured connector", - "operationId": "GetConnector", - "tags": [ - "syncs" - ], + "operationId": "GetAWSOnboarding", + "description": "Query an interactive onboarding for AWS", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/onboarding_id" } ], + "tags": [ + "onboardings" + ], "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Connector" + "$ref": "#/components/schemas/OnboardingAWS" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -3832,74 +3481,67 @@ "$ref": "#/components/responses/InternalError" } } - }, - "patch": { - "description": "Update a connector", - "operationId": "UpdateConnector", + } + }, + "/onboardings/aws/oidc/{onboarding_id}/notify": { + "post": { + "operationId": "NotifyOnboarding", + "description": "Update onboarding state", "tags": [ - "syncs" + "onboardings" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/onboarding_id" } ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConnectorUpdate" + "$ref": "#/components/schemas/OnboardingAWSNotification" } } } }, "responses": { - "200": { - "description": "Update response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Connector" - } - } - } - }, + "202": {}, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/connectors/{connector_id}/authenticate": { - "delete": { - "description": "Revoke authentication for a given connector. Any syncs relying on this connector will stop running until the connector is reauthenticated or sync references are updated.", - "operationId": "RevokeConnector", - "tags": [ - "syncs" - ], + "/onboardings/aws/oidc/{onboarding_id}/accounts": { + "get": { + "operationId": "GetAWSAccountsInRoot", + "description": "Query AWS accounts under organization root", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/onboarding_id" } ], + "tags": [ + "onboardings" + ], "responses": { - "204": { - "description": "Deleted" + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OnboardingAWSAccounts" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -3907,48 +3549,33 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/aws": { + "/onboardings/aws/oidc/{onboarding_id}/accounts/{aws_orgunit_id}": { "get": { - "description": "Get authentication status for the given AWS connector", - "operationId": "GetConnectorAuthStatusAWS", - "tags": [ - "syncs" - ], + "operationId": "GetAWSAccountsInParent", + "description": "Query AWS accounts under a specifc Organizational Unit", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/onboarding_id" }, { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/aws_orgunit_id" } ], + "tags": [ + "onboardings" + ], "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { - "properties": { - "role_arn": { - "type": "string", - "description": "ARN of role created by the user", - "x-go-name": "RoleARN" - }, - "external_id": { - "type": "string", - "description": "External ID used for the role", - "x-go-name": "ExternalID" - } - } + "$ref": "#/components/schemas/OnboardingAWSAccounts" } } } @@ -3962,49 +3589,35 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } - }, + } + }, + "/onboardings/aws/oidc/{onboarding_id}/accounts/provision": { "post": { - "description": "Authenticate or reauthenticate the given AWS connector", - "operationId": "AuthenticateConnectorAWS", + "operationId": "ProvisionOnboardingConfiguration", + "description": "Provision onboarding configuration into the cloud account", "tags": [ - "syncs" + "onboardings" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/onboarding_id" } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConnectorAuthRequestAWS" + "$ref": "#/components/schemas/OnboardingAWSProvision" } } } }, "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorAuthResponseAWS" - } - } - } - }, + "202": {}, "400": { "$ref": "#/components/responses/BadRequest" }, @@ -4021,34 +3634,24 @@ "$ref": "#/components/responses/InternalError" } } - }, - "patch": { - "description": "Complete authentication for the given AWS connector", - "operationId": "AuthenticateConnectorFinishAWS", + } + }, + "/onboardings/aws/cur": { + "post": { + "operationId": "CreateAWSCUROnboarding", + "description": "Create an interactive onboarding for AWS CUR", "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" - } + "onboardings" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorAuthFinishRequestAWS" + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OnboardingAWSCURCreateResponse" + } } } - } - }, - "responses": { - "204": { - "description": "Authentication is complete." }, "400": { "$ref": "#/components/responses/BadRequest" @@ -4056,48 +3659,30 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/gcp": { + "/onboardings/aws/cur/{onboarding_id}": { "get": { - "description": "Get authentication status for the given GCP connector", - "operationId": "GetConnectorAuthStatusGCP", - "tags": [ - "syncs" - ], + "operationId": "GetAWSCUROnboarding", + "description": "Query an interactive onboarding for AWS CUR", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/onboarding_id" } ], + "tags": [ + "onboardings" + ], "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { - "properties": { - "service_account": { - "type": "string", - "description": "CloudQuery GCP Service Account to grant access to" - } - } + "$ref": "#/components/schemas/OnboardingAWSCUR" } } } @@ -4111,149 +3696,140 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } - }, + } + }, + "/onboardings/aws/cur/{onboarding_id}/notify": { "post": { - "description": "Authenticate or reauthenticate the given GCP connector", - "operationId": "AuthenticateConnectorGCP", + "operationId": "NotifyAWSCUROnboarding", + "description": "Update AWS CUR onboarding state", "tags": [ - "syncs" + "onboardings" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/onboarding_id" } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConnectorAuthRequestGCP" + "$ref": "#/components/schemas/OnboardingAWSCURNotification" } } } }, "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorAuthResponseGCP" - } - } - } - }, + "202": {}, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/gcp/finish": { + "/onboardings/aws/cur/{onboarding_id}/verify": { "post": { - "description": "Complete authentication for the given GCP connector", - "operationId": "AuthenticateConnectorFinishGCP", + "operationId": "VerifyAWSCUROnboarding", + "description": "Trigger verification of the AWS CUR onboarding", "tags": [ - "syncs" + "onboardings" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/onboarding_id" } ], "responses": { - "204": { - "description": "Authentication is complete." - }, + "202": {}, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/oauth": { - "post": { - "description": "Authenticate or reauthenticate the given OAuth connector", - "operationId": "AuthenticateConnectorOAuth", - "tags": [ - "syncs" - ], + "/queries": { + "get": { + "description": "List all queries", + "operationId": "ListAllQueries", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/query_tags" + }, + { + "$ref": "#/components/parameters/query_name_filter" + }, + { + "$ref": "#/components/parameters/query_filter" + }, + { + "$ref": "#/components/parameters/alert_configured" + }, + { + "$ref": "#/components/parameters/alert_message_filter" }, { - "$ref": "#/components/parameters/connector_id" + "$ref": "#/components/parameters/alert_enabled" + }, + { + "$ref": "#/components/parameters/query_column_filter" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorAuthRequestOAuth" - } - } - } - }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConnectorAuthResponseOAuth" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/Query" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -4263,80 +3839,43 @@ "500": { "$ref": "#/components/responses/InternalError" } - } - }, - "patch": { - "description": "Complete authentication for the given OAuth connector", - "operationId": "AuthenticateConnectorFinishOAuth", + }, "tags": [ - "syncs" - ], + "queries" + ] + } + }, + "/queries/execute": { + "post": { + "description": "Run an ad-hoc SQL query against any table.\nFurther filtering can optionally be applied on top of the raw SQL results using the optional parameters. Filtering can be useful in situations where a saved query needs to be further filtered, grouped or paginated, such as in dashboards or reports.\n", + "operationId": "ExecuteAdHocQuery", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_selects" }, { - "$ref": "#/components/parameters/connector_id" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorAuthFinishRequestOAuth" - } - } - } - }, - "responses": { - "200": { - "description": "First part of authentication is complete, follow redirect to continue", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConnectorAuthResponseOAuth" - } - } - } - }, - "204": { - "description": "Authentication is complete." + "$ref": "#/components/parameters/table_filter_mode" }, - "400": { - "$ref": "#/components/responses/BadRequest" + { + "$ref": "#/components/parameters/table_filters" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + { + "$ref": "#/components/parameters/table_filter_ids" }, - "403": { - "$ref": "#/components/responses/Forbidden" + { + "$ref": "#/components/parameters/table_sort_bys" }, - "404": { - "$ref": "#/components/responses/NotFound" + { + "$ref": "#/components/parameters/table_sort_dirs" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + { + "$ref": "#/components/parameters/table_group_bys" }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/conversations": { - "post": { - "operationId": "CreateConversation", - "summary": "Start a new chat conversation", - "description": "Create a new AI chat conversation. Note that this endpoint does not currently support API key authentication.", - "parameters": [ { - "$ref": "#/components/parameters/team_name" - } - ], - "security": [ + "$ref": "#/components/parameters/per_page" + }, { - "cookieAuth": [] + "$ref": "#/components/parameters/page" } ], "requestBody": { @@ -4344,65 +3883,39 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConversationCreate" - } - } - } - }, - "responses": { - "201": { - "description": "Conversation created successfully", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Conversation" + "type": "object", + "additionalProperties": false, + "required": [ + "query" + ], + "properties": { + "query": { + "type": "string", + "example": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'" + } } } } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalError" } }, - "tags": [ - "chat" - ] - } - }, - "/teams/{team_name}/conversations/{conversation_id}": { - "get": { - "operationId": "GetConversation", - "summary": "Retrieve a chat conversation", - "description": "Get details of an existing AI chat conversation. Useful for polling for updates. Note that this endpoint does not currently support API key authentication.", - "security": [ - { - "cookieAuth": [] - } - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/conversation_id" - } - ], "responses": { "200": { - "description": "Conversation retrieved successfully", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Conversation" + "required": [ + "data", + "metadata" + ], + "properties": { + "data": { + "$ref": "#/components/schemas/TableData" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } @@ -4413,58 +3926,49 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "chat" + "queries" ] - }, + } + }, + "/queries/save": { "post": { - "operationId": "SendMessage", - "summary": "Add a message to an existing conversation", - "description": "Send a new message to an existing AI chat conversation. Note that this endpoint does not currently support API key authentication.", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/conversation_id" - } - ], - "security": [ - { - "cookieAuth": [] - } - ], + "description": "Save a query to execute later", + "operationId": "SaveQuery", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConversationSendMessage" + "$ref": "#/components/schemas/QueryCreate" } } } }, "responses": { "201": { - "description": "Message sent successfully", + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ConversationMessage" + "$ref": "#/components/schemas/QueryDetail" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -4474,50 +3978,28 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "chat" + "queries" ] } }, - "/teams/{team_name}/custom-columns": { + "/queries/tags": { "get": { - "description": "List all custom columns", - "operationId": "ListAllCustomColumns", + "description": "List Query Tags", + "operationId": "ListQueryTags", "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/custom_columns_sort_bys" - }, - { - "$ref": "#/components/parameters/custom_columns_sort_dirs" - }, - { - "name": "table", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter columns by table name." - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter columns by name, label, or description." } ], "responses": { @@ -4532,10 +4014,10 @@ ], "properties": { "items": { + "type": "array", "items": { - "$ref": "#/components/schemas/CustomColumn" - }, - "type": "array" + "$ref": "#/components/schemas/QueryTag" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -4545,9 +4027,6 @@ } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -4565,41 +4044,30 @@ } }, "tags": [ - "custom-columns" + "queries" ] - }, - "post": { - "description": "Save a custom column", - "operationId": "SaveCustomColumn", + } + }, + "/queries/{query_id}": { + "get": { + "description": "Get a saved query", + "operationId": "GetSavedQuery", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/query_id" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomColumnCreateOrUpdate" - } - } - } - }, "responses": { - "201": { - "description": "Success", + "200": { + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomColumn" + "$ref": "#/components/schemas/QueryDetail" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -4617,33 +4085,40 @@ } }, "tags": [ - "custom-columns" + "queries" ] - } - }, - "/teams/{team_name}/custom-columns/{custom_column_id}": { - "get": { - "description": "Get a custom column", - "operationId": "GetCustomColumn", + }, + "patch": { + "description": "Update a saved query", + "operationId": "UpdateQuery", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/custom_column_id" + "$ref": "#/components/parameters/query_id" } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryUpdate" + } + } + } + }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomColumn" + "$ref": "#/components/schemas/QueryDetail" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -4661,42 +4136,20 @@ } }, "tags": [ - "custom-columns" + "queries" ] }, - "patch": { - "description": "Update a custom column", - "operationId": "UpdateCustomColumn", + "delete": { + "description": "Delete a saved query", + "operationId": "DeleteSavedQuery", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/custom_column_id" + "$ref": "#/components/parameters/query_id" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomColumnCreateOrUpdate" - } - } - } - }, "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomColumn" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "204": { + "description": "Success" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -4715,18 +4168,17 @@ } }, "tags": [ - "custom-columns" + "queries" ] - }, + } + }, + "/queries/{query_id}/alert": { "delete": { - "description": "Delete a custom column", - "operationId": "DeleteCustomColumn", + "description": "Delete an alert associated with a saved query", + "operationId": "DeleteAlert", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/custom_column_id" + "$ref": "#/components/parameters/query_id" } ], "responses": { @@ -4750,133 +4202,44 @@ } }, "tags": [ - "custom-columns" + "alerts" ] } }, - "/teams/{team_name}/custom-columns/{custom_column_id}/import": { - "put": { - "description": "Import data into a Custom Column", - "operationId": "PutCustomColumnData", + "/queries/{query_id}/execute": { + "post": { + "description": "Execute a saved query", + "operationId": "ExecuteSavedQuery", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/query_id" }, { - "$ref": "#/components/parameters/custom_column_id" - } - ], - "tags": [ - "custom-columns" - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomColumnDataImport" - } - } - } - }, - "responses": { - "202": { - "description": "Accepted import", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/CustomColumnDataImportAccepted" - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "$ref": "#/components/parameters/table_selects" }, - "404": { - "$ref": "#/components/responses/NotFound" - } - } - } - }, - "/teams/{team_name}/custom-columns/{custom_column_id}/values": { - "put": { - "description": "Edit values within a Custom Column", - "operationId": "PutCustomColumnValues", - "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_filter_mode" }, { - "$ref": "#/components/parameters/custom_column_id" - } - ], - "tags": [ - "custom-columns" - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomColumnDataValues" - } - } - } - }, - "responses": { - "200": { - "description": "Accepted values", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/parameters/table_filters" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - } - } - } - }, - "/teams/{team_name}/filters": { - "get": { - "description": "List Filters", - "operationId": "ListFiltersTeam", - "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_filter_ids" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/table_sort_bys" }, { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/table_sort_dirs" }, { - "$ref": "#/components/parameters/filter_tags" + "$ref": "#/components/parameters/table_group_bys" }, { - "$ref": "#/components/parameters/filter_name_filter" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/filter_expression_filter" + "$ref": "#/components/parameters/page" } ], "responses": { @@ -4886,15 +4249,12 @@ "application/json": { "schema": { "required": [ - "items", + "data", "metadata" ], "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Filter" - } + "data": { + "$ref": "#/components/schemas/TableData" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -4904,6 +4264,9 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -4921,23 +4284,26 @@ } }, "tags": [ - "filters" + "queries" ] } }, - "/teams/{team_name}/filters/tags": { + "/queries/{query_id}/filters": { "get": { - "description": "List Filter Tags", - "operationId": "ListFilterTagsTeam", + "description": "List Query Filters", + "operationId": "QueryListFilters", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/query_id" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/filter_tags" } ], "responses": { @@ -4954,7 +4320,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/FilterTag" + "$ref": "#/components/schemas/Filter" } }, "metadata": { @@ -4965,6 +4331,9 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -4982,25 +4351,41 @@ } }, "tags": [ + "queries", "filters" ] - } - }, - "/teams/{team_name}/filters/{filter_id}": { - "get": { - "description": "Get a table filter by ID", - "operationId": "GetFilterByIDTeam", + }, + "post": { + "description": "Save Query Filter", + "operationId": "QuerySaveFilter", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/filter_id" + "$ref": "#/components/parameters/query_id" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FilterCreate" + } + } + } + }, "responses": { "200": { - "description": "Response", + "description": "Filter already exists", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Filter" + } + } + } + }, + "201": { + "description": "Filter created", "content": { "application/json": { "schema": { @@ -5009,6 +4394,9 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -5026,36 +4414,47 @@ } }, "tags": [ + "queries", "filters" ] - }, - "patch": { - "description": "Update a table filter", - "operationId": "UpdateFilterTeam", + } + }, + "/queries/{query_id}/filters/tags": { + "get": { + "description": "List Filter Tags For A Saved Query", + "operationId": "QueryListFilterTags", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/query_id" }, { - "$ref": "#/components/parameters/filter_id" + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/page" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FilterUpdate" - } - } - } - }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Filter" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FilterTag" + } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } @@ -5077,135 +4476,163 @@ } }, "tags": [ + "queries", "filters" ] - }, - "delete": { - "description": "Delete a table filter", - "operationId": "DeleteFilterTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" + } + }, + "/insights": { + "get": { + "description": "List insights with optional filtering", + "operationId": "ListPlatformInsights", + "parameters": [ + { + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/filter_id" - } - ], - "responses": { - "204": { - "description": "Deleted" + "$ref": "#/components/parameters/per_page" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + { + "name": "search", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Search in title, evidence (description), mitigation, or related fields" }, - "403": { - "$ref": "#/components/responses/Forbidden" + { + "name": "severities", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InsightSeverity" + } + }, + "style": "form", + "explode": true, + "description": "Filter by severities (any match)" }, - "404": { - "$ref": "#/components/responses/NotFound" + { + "name": "cloud", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by cloud" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + { + "name": "account", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by account" }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "filters" - ] - } - }, - "/teams/{team_name}/images": { - "post": { - "description": "Get URLs to upload images for a given team", - "operationId": "CreateTeamImages", - "parameters": [ { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "images" - ], - "properties": { - "images": { - "items": { - "$ref": "#/components/schemas/TeamImageCreate" - }, - "type": "array", - "minItems": 1 - } - } - } - } - } - }, - "responses": { - "201": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/TeamImage" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } - } - } - } + "name": "region", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by region" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + { + "name": "insight_category", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by insight category" }, - "403": { - "$ref": "#/components/responses/Forbidden" + { + "name": "source_category", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by source category" }, - "404": { - "$ref": "#/components/responses/NotFound" + { + "name": "source", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by source" }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "teams" - ] - } - }, - "/teams/{team_name}/invitations": { - "get": { - "operationId": "ListTeamInvitations", - "description": "List of open invitations to the team", - "tags": [ - "teams" - ], - "parameters": [ { - "$ref": "#/components/parameters/team_name" + "name": "resource_types", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by resource types" }, { - "$ref": "#/components/parameters/page" + "name": "tags", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by tags (any match)" }, { - "$ref": "#/components/parameters/per_page" + "name": "sort_by", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "title", + "severity", + "insight_category", + "source_category", + "account", + "source", + "resource_types", + "resources_count", + "accounts_count", + "created_at", + "detected_at" + ], + "default": "detected_at" + }, + "description": "Field to sort by" + }, + { + "name": "sort_dir", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + }, + "description": "Sort direction" } ], "responses": { @@ -5222,58 +4649,17 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/Invitation" + "$ref": "#/components/schemas/Insight" } }, "metadata": { - "$ref": "#/components/schemas/ListMetadata" + "$ref": "#/components/schemas/InsightsListMetadata" } } } } } }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - }, - "delete": { - "operationId": "DeleteTeamInvitation", - "description": "Delete an invitation to the team, preventing the user becoming a team member", - "tags": [ - "teams" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "email" - ], - "properties": { - "email": { - "type": "string", - "format": "email" - } - } - } - } - } - }, - "responses": { - "204": { - "description": "Response" - }, "400": { "$ref": "#/components/responses/BadRequest" }, @@ -5283,93 +4669,305 @@ "403": { "$ref": "#/components/responses/Forbidden" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "insights" + ] } }, - "/teams/{team_name}/invitations/accept": { - "post": { - "operationId": "AcceptTeamInvitation", - "description": "Accept an invitation to the team, creating a user membership", - "tags": [ - "teams" - ], + "/insights/columns/{column_name}/distinct-values": { + "get": { + "description": "Get the candidate values for the next filter dimension (`column_name`), given the current active filters. The supplied filter parameters represent where the user currently is in the filter matrix; only values for `column_name` that would yield at least one insight when added to that current position are returned. Values that would produce zero results are omitted, preventing the user from navigating to an empty state.\nThe filter parameter corresponding to `column_name` is always ignored when computing candidates — asking \"which severities exist where severity=X\" is self-referential and nonsensical. For example, if `column_name=severity` then any `severities` filter in the request is not applied; if `column_name=source` then any `source` filter is not applied; and so on. This ensures the full set of viable values for that dimension is always returned given the other active filters.\nWhen `owner_tag` is specified (e.g., \"team\", \"department\"), this endpoint returns distinct values for that specific ownership tag key, ignoring the `column_name` parameter. The corresponding tags filter for this owner key is ignored to prevent self-referential queries.\nWhen querying for `column_name=tag` without `owner_tag`, ownership tags configured in platform settings are automatically excluded from results.", + "operationId": "GetPlatformInsightColumnDistinctValues", "parameters": [ { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "token" - ], - "properties": { - "token": { - "type": "string", - "format": "uuid" - } - } - } - } - } - }, - "responses": { - "201": { - "description": "The invitation has been accepted and the authenticated user is now a member of the team.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MembershipWithTeam" - } + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/insight_column_name" + }, + { + "name": "owner_tag", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "When specified, returns distinct values for this ownership tag key (e.g., \"team\", \"department\"). The column_name parameter is ignored when owner_tag is provided." + }, + { + "name": "search", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Search in title, evidence (description), mitigation, or related fields" + }, + { + "name": "severities", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InsightSeverity" } - } + }, + "style": "form", + "explode": true, + "description": "Filter by severities (any match)" + }, + { + "name": "cloud", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by cloud" + }, + { + "name": "account", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by account" + }, + { + "name": "region", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by region" + }, + { + "name": "insight_category", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by insight category" }, - "303": { - "description": "The authenticated user is already a member of this team.", + { + "name": "source_category", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by source category" + }, + { + "name": "source", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter by source" + }, + { + "name": "resource_types", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by resource types" + }, + { + "name": "tags", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by tags (any match)" + } + ], + "responses": { + "200": { + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MembershipWithTeam" + "required": [ + "values" + ], + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + } + } + } } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, "403": { - "description": "You do not have an invitation to join this team.", "$ref": "#/components/responses/Forbidden" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "insights" + ] } }, - "/teams/{team_name}/memberships": { + "/insights/saved-filters": { "get": { - "description": "Get memberships to the team.", - "operationId": "GetTeamMemberships", + "description": "List saved insight filters", + "operationId": "PlatformListInsightFilters", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/per_page" + "name": "search_term", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Search in filter name or description" + }, + { + "name": "insight_category", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by insight category" + }, + { + "name": "severities", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InsightSeverity" + } + }, + "style": "form", + "explode": true, + "description": "Filter by severities (any match)" + }, + { + "name": "resource_types", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by resource types" + }, + { + "name": "source", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by source" + }, + { + "name": "source_category", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by source category" + }, + { + "name": "tags", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by tags (any match)" + }, + { + "name": "group_by", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by group by fields" } ], "responses": { "200": { + "description": "Response", "content": { "application/json": { "schema": { @@ -5379,24 +4977,10 @@ ], "properties": { "items": { - "items": { - "$ref": "#/components/schemas/MembershipWithUser" - }, "type": "array", - "example": [ - { - "roles": [ - "admin:write" - ], - "user": { - "created_at": "2017-07-14T16:53:42Z", - "email": "user@example.com", - "id": "12345678-1234-1234-1234-1234567890ab", - "name": "Sarah O'Connor", - "updated_at": "2017-07-14T16:53:42Z" - } - } - ] + "items": { + "$ref": "#/components/schemas/PlatformInsightFilter" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -5404,11 +4988,7 @@ } } } - }, - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -5419,45 +4999,39 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "teams" + "insights" ] }, - "delete": { - "description": "Remove a user from the team", - "operationId": "RemoveTeamMembership", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], + "post": { + "description": "Create a new saved insight filter", + "operationId": "PlatformCreateInsightFilter", "requestBody": { "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "email" - ], - "properties": { - "email": { - "type": "string" - } - } + "$ref": "#/components/schemas/PlatformInsightFilterCreate" } } } }, "responses": { - "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlatformInsightFilter" + } + } + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -5465,9 +5039,6 @@ "403": { "$ref": "#/components/responses/Forbidden" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, @@ -5476,29 +5047,29 @@ } }, "tags": [ - "teams" + "insights" ] } }, - "/teams/{team_name}/memberships/{email}": { - "delete": { - "deprecated": true, - "description": "Remove a user from the team", - "operationId": "DeleteTeamMembership", + "/insights/saved-filters/{insight_filter_id}": { + "get": { + "description": "Get a saved insight filter by ID", + "operationId": "PlatformGetInsightFilterByID", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/email_basic" + "$ref": "#/components/parameters/platform_insight_filter_id" } ], "responses": { - "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlatformInsightFilter" + } + } + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -5517,46 +5088,33 @@ } }, "tags": [ - "teams" + "insights" ] - } - }, - "/teams/{team_name}/notifications/destinations": { - "get": { - "description": "List all notification destinations", - "operationId": "ListAllNotificationDestinations", + }, + "patch": { + "description": "Update a saved insight filter", + "operationId": "PlatformUpdateInsightFilter", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/platform_insight_filter_id" } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlatformInsightFilterUpdate" + } + } + } + }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/NotificationDestinationListItem" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/PlatformInsightFilter" } } } @@ -5578,40 +5136,20 @@ } }, "tags": [ - "alerts" + "insights" ] }, - "post": { - "description": "Create notification destination", - "operationId": "CreateNotificationDestination", + "delete": { + "description": "Delete a saved insight filter", + "operationId": "PlatformDeleteInsightFilter", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/platform_insight_filter_id" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationDestinationCreate" - } - } - } - }, "responses": { - "201": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationDestination" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "204": { + "description": "Deleted" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -5630,43 +5168,30 @@ } }, "tags": [ - "alerts" + "insights" ] } }, - "/teams/{team_name}/notifications/destinations/test": { - "post": { - "description": "Test an unsaved notification destination", - "operationId": "TestUnsavedNotificationDestination", + "/insights/{insight_id}": { + "get": { + "description": "Get insight by ID", + "operationId": "GetPlatformInsight", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/insight_id" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationDestinationData" - } - } - } - }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationDestinationTestResponse" + "$ref": "#/components/schemas/Insight" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -5676,28 +5201,93 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "alerts" + "insights" ] } }, - "/teams/{team_name}/notifications/destination/{notification_destination_id}": { + "/insights/{insight_id}/assets": { "get": { - "description": "Get notification destination", - "operationId": "GetNotificationDestination", + "description": "List assets affected by an insight", + "operationId": "GetPlatformInsightAssets", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/insight_id" }, { - "$ref": "#/components/parameters/notification_destination_id" + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" + }, + { + "name": "search", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Search in asset name, account, region, etc." + }, + { + "name": "accounts", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by account IDs" + }, + { + "name": "clouds", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by cloud providers (e.g. aws, azure, gcp, github, backstage, digitalocean, wiz)" + }, + { + "name": "regions", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by regions" + }, + { + "name": "resource_type", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": true, + "description": "Filter by resource type" } ], "responses": { @@ -5706,7 +5296,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationDestination" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyViolation" + } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } @@ -5720,44 +5324,97 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "alerts" + "insights" ] - }, - "patch": { - "description": "Update a notification destination", - "operationId": "UpdateNotificationDestination", + } + }, + "/insights/assets/{asset_id}": { + "get": { + "description": "List insights for a specific asset (by _cq_platform_id)", + "operationId": "GetPlatformAssetInsights", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/asset_id" }, { - "$ref": "#/components/parameters/notification_destination_id" + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" + }, + { + "name": "search", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Search in asset name, account, region, etc." + }, + { + "name": "sort_by", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "title", + "severity", + "insight_category", + "source_category", + "account", + "source", + "resource_types", + "resources_count", + "accounts_count", + "created_at", + "detected_at" + ], + "default": "detected_at" + }, + "description": "Field to sort by" + }, + { + "name": "sort_dir", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + }, + "description": "Sort direction" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationDestinationUpdate" - } - } - } - }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotificationDestination" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Insight" + } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } @@ -5774,87 +5431,72 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "alerts" - ] - }, - "delete": { - "description": "Delete a notification destination", - "operationId": "DeleteNotificationDestination", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/notification_destination_id" - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "alerts" + "insights" ] } }, - "/teams/{team_name}/notifications/destination/{notification_destination_id}/alerts": { + "/reports": { "get": { - "description": "Get notification destination alerts", - "operationId": "GetNotificationDestinationAlerts", + "operationId": "ListReports", + "description": "List reports", + "tags": [ + "reports" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "name": "search_term", + "in": "query", + "schema": { + "type": "string" + }, + "description": "Filter reports by title or description." }, { - "$ref": "#/components/parameters/notification_destination_id" + "name": "visibility", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "private", + "public" + ] + } }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/report_sort_bys" + }, + { + "$ref": "#/components/parameters/report_sort_dirs" } ], "responses": { "200": { - "description": "Response", + "description": "List of reports.", "content": { "application/json": { "schema": { + "type": "object", "required": [ - "items", + "reports", "metadata" ], "properties": { - "items": { + "reports": { + "type": "array", "items": { - "$ref": "#/components/schemas/AlertDetail" - }, - "type": "array" + "$ref": "#/components/schemas/Report" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -5864,113 +5506,48 @@ } } }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "alerts" - ] - } - }, - "/teams/{team_name}/notifications/destination/{notification_destination_id}/test": { - "post": { - "description": "Test a notification destination", - "operationId": "TestNotificationDestination", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/notification_destination_id" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotificationDestinationTestResponse" - } - } - } - }, "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "alerts" - ] - } - }, - "/teams/{team_name}/onboardings/aws/oidc": { + } + }, "post": { - "operationId": "CreateAWSOnboarding", - "description": "Create an interactive onboarding for AWS", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], + "description": "Create Report", + "operationId": "CreateReport", "tags": [ - "teams" + "reports" ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "single_account" - ], - "properties": { - "single_account": { - "type": "boolean", - "description": "Specifies the type of onboarding to create: either a single account onboarding or an organization onboarding\n" - } - } + "$ref": "#/components/schemas/ReportCreate" } } } }, "responses": { "201": { + "description": "Created report.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OnboardingAWSCreateResponse" + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "$ref": "#/components/schemas/Report" + } + } } } } @@ -5978,114 +5555,101 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "500": { - "$ref": "#/components/responses/InternalError" + "403": { + "$ref": "#/components/responses/Forbidden" } } } }, - "/teams/{team_name}/onboardings/aws/oidc/{onboarding_id}": { + "/reports/{report_id}": { "get": { - "operationId": "GetAWSOnboarding", - "description": "Query an interactive onboarding for AWS", + "description": "Get Report", + "operationId": "GetReport", + "tags": [ + "reports" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/onboarding_id" + "name": "report_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "ID of the report." } ], - "tags": [ - "teams" - ], "responses": { "200": { + "description": "Retrieved report.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OnboardingAWS" + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "$ref": "#/components/schemas/Report" + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/onboardings/aws/oidc/{onboarding_id}/notify": { - "post": { - "operationId": "NotifyOnboarding", - "description": "Update onboarding state", + }, + "put": { + "description": "Update Report", + "operationId": "UpdateReport", "tags": [ - "teams" + "reports" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/onboarding_id" + "name": "report_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "ID of the report." } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OnboardingAWSNotification" + "$ref": "#/components/schemas/ReportUpdate" } } } }, - "responses": { - "202": {}, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/onboardings/aws/oidc/{onboarding_id}/accounts": { - "get": { - "operationId": "GetAWSAccountsInRoot", - "description": "Query AWS accounts under organization root", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/onboarding_id" - } - ], - "tags": [ - "teams" - ], "responses": { "200": { + "description": "Updated report.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OnboardingAWSAccounts" + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "$ref": "#/components/schemas/Report" + } + } } } } @@ -6093,42 +5657,96 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" + } + } + }, + "delete": { + "description": "Delete Report", + "operationId": "DeleteReport", + "tags": [ + "reports" + ], + "parameters": [ + { + "name": "report_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "ID of the report." + } + ], + "responses": { + "204": { + "description": "Report deleted." }, - "500": { - "$ref": "#/components/responses/InternalError" + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" } } } }, - "/teams/{team_name}/onboardings/aws/oidc/{onboarding_id}/accounts/{aws_orgunit_id}": { + "/reports/templates": { "get": { - "operationId": "GetAWSAccountsInParent", - "description": "Query AWS accounts under a specifc Organizational Unit", + "operationId": "ListReportTemplates", + "description": "List report templates", + "tags": [ + "reports" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "name": "search_term", + "in": "query", + "schema": { + "type": "string" + }, + "description": "Filter report templates by name." }, { - "$ref": "#/components/parameters/onboarding_id" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/aws_orgunit_id" + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/report_templates_sort_bys" + }, + { + "$ref": "#/components/parameters/report_templates_sort_dirs" } ], - "tags": [ - "teams" - ], "responses": { "200": { + "description": "List of report templates.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OnboardingAWSAccounts" + "type": "object", + "required": [ + "templates", + "metadata" + ], + "properties": { + "templates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReportTemplate" + } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } @@ -6136,225 +5754,223 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/onboardings/aws/oidc/{onboarding_id}/accounts/provision": { + }, "post": { - "operationId": "ProvisionOnboardingConfiguration", - "description": "Provision onboarding configuration into the cloud account", + "description": "Create Report Template", + "operationId": "CreateReportTemplate", "tags": [ - "teams" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/onboarding_id" - } + "reports" ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OnboardingAWSProvision" + "$ref": "#/components/schemas/ReportTemplateCreateOrUpdate" } } } }, "responses": { - "202": {}, + "201": { + "description": "Created report template.", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "$ref": "#/components/schemas/ReportTemplate" + } + } + } + } + } + }, "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" + "403": { + "$ref": "#/components/responses/Forbidden" } } } }, - "/teams/{team_name}/plugins": { + "/reports/templates/{template_id}": { "get": { - "description": "List all plugins for the team.", - "operationId": "ListPluginsByTeam", + "description": "Get Report Template", + "operationId": "GetReportTemplate", + "tags": [ + "reports" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/include_private" + "name": "template_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "ID of the report template." } ], "responses": { "200": { - "description": "Response", + "description": "Retrieved report template.", "content": { "application/json": { "schema": { + "type": "object", "required": [ - "items", - "metadata" + "data" ], "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/Plugin" - }, - "type": "array", - "example": [ - { - "name": "aws-source", - "kind": "source", - "team_name": "cloudquery", - "display_name": "AWS Source Plugin", - "category": "cloud-infrastructure", - "created_at": "2017-07-14T16:53:42Z", - "updated_at": "2017-07-14T16:53:42Z", - "homepage": "https://cloudquery.io", - "logo": "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "official": true, - "short_description": "Sync data from AWS to any destination", - "repository": "https://github.com/cloudquery/cloudquery", - "tier": "paid", - "usd_per_row": "0.00123", - "free_rows_per_month": 10000, - "release_stage": "preview" - } - ] - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" + "data": { + "$ref": "#/components/schemas/ReportTemplate" } } } } } }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "plugins" - ] + } }, - "delete": { - "description": "Delete plugins by team", - "operationId": "DeletePluginsByTeam", - "x-internal": true, + "put": { + "description": "Update Report Template", + "operationId": "UpdateReportTemplate", + "tags": [ + "reports" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "name": "template_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "ID of the report template." } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportTemplateCreateOrUpdate" + } + } + } + }, "responses": { - "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "200": { + "description": "Updated report template.", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "$ref": "#/components/schemas/ReportTemplate" + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" } - }, + } + }, + "delete": { + "description": "Delete Report Template", + "operationId": "DeleteReportTemplate", "tags": [ - "teams" - ] - } - }, - "/teams/{team_name}/plugins/{plugin_team}/{plugin_kind}/{plugin_name}/versions/{version_name}/assets/{target_name}": { - "get": { - "description": "Download an asset for a given plugin version as the current team.", - "operationId": "DownloadPluginAssetByTeam", + "reports" + ], "parameters": [ { - "in": "header", - "name": "Accept", - "required": false, + "name": "template_id", + "in": "path", + "required": true, "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/plugin_team" - }, - { - "$ref": "#/components/parameters/plugin_kind" - }, - { - "$ref": "#/components/parameters/plugin_name" + "type": "string", + "format": "uuid" + }, + "description": "ID of the report template." + } + ], + "responses": { + "204": { + "description": "Report template deleted." }, - { - "$ref": "#/components/parameters/version_name" + "403": { + "$ref": "#/components/responses/Forbidden" }, - { - "$ref": "#/components/parameters/target_name" + "404": { + "$ref": "#/components/responses/NotFound" } + } + } + }, + "/sync-destination-test-connections": { + "post": { + "description": "Create a test destination connection.", + "operationId": "CreateSyncDestinationTestConnection", + "tags": [ + "syncs" ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncDestinationTestConnectionCreate" + } + } + } + }, "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PluginAsset" + "$ref": "#/components/schemas/SyncDestinationTestConnection" } } } }, - "302": { - "description": "Response", - "headers": { - "Location": { - "schema": { - "type": "string" - } - } - } + "400": { + "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" @@ -6362,128 +5978,100 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "plugins" - ] + } } }, - "/teams/{team_name}/policies": { + "/sync-destination-test-connections/{sync_destination_test_connection_id}": { "get": { - "operationId": "ListPolicies", - "description": "List Policies", + "description": "Get a sync destination test connection.", + "operationId": "GetSyncDestinationTestConnection", "tags": [ - "policies" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter policies by name." - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/platform_policies_sort_bys" - }, - { - "$ref": "#/components/parameters/platform_policies_sort_dirs" - }, - { - "name": "sort", - "in": "query", - "schema": { - "type": "string" - }, - "description": "DEPRECATED! Sorting order." + "$ref": "#/components/parameters/sync_destination_test_connection_id" } ], "responses": { "200": { - "description": "List of policies.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "policies", - "metadata" - ], - "properties": { - "policies": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicy" - } - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/SyncDestinationTestConnection" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } }, - "post": { - "description": "Create Policy", - "operationId": "CreatePolicy", + "patch": { + "description": "Update a sync destination test connection.", + "operationId": "UpdateSyncTestConnectionForSyncDestination", "tags": [ - "policies" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_destination_test_connection_id" } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PlatformCreateOrUpdatePolicy" + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "$ref": "#/components/schemas/SyncTestConnectionStatus" + }, + "failure_reason": { + "type": "string", + "description": "Reason for failure", + "example": "password authentication failed for user \"exampleuser\"" + }, + "failure_code": { + "example": "INVALID_CREDENTIALS", + "type": "string", + "description": "Code for failure" + } + } } } } }, "responses": { - "201": { - "description": "Created policy.", + "200": { + "description": "Updated", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/PlatformPolicy" - } - } + "$ref": "#/components/schemas/SyncDestinationTestConnection" } } } @@ -6493,125 +6081,163 @@ }, "403": { "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/policies/frameworks": { + "/sync-destination-test-connections/{sync_destination_test_connection_id}/logs/query": { "get": { - "description": "List All Frameworks", - "operationId": "ListAllFrameworks", + "description": "Get logs for a sync destination test connection.", + "operationId": "GetSyncDestinationTestConnectionLogsQuery", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "in": "header", + "name": "Accept", + "required": false, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/sync_destination_test_connection_id" + }, + { + "$ref": "#/components/parameters/table_filters" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/download_file" } ], - "tags": [ - "policies" - ], "responses": { "200": { - "description": "List of all frameworks.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", "required": [ - "frameworks", + "data", "metadata" ], "properties": { - "frameworks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicyFramework" - } + "data": { + "$ref": "#/components/schemas/TableData" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" } } } - } - } + }, + "text/plain": { + "schema": { + "type": "string", + "description": "Download file." + } + } + } + }, + "204": { + "description": "No logs available for a test connection that has not started." + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/policies/{policy_id}": { + "/sync-destination-test-connections/{sync_destination_test_connection_id}/logs/live": { "get": { - "description": "Get Policy", - "operationId": "GetPolicy", + "description": "Get live logs for a sync destination test connection.", + "operationId": "GetSyncDestinationTestConnectionLogsLive", "tags": [ - "policies" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "in": "header", + "name": "Accept", + "required": false, + "schema": { + "type": "string" + } }, { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." + "$ref": "#/components/parameters/sync_destination_test_connection_id" } ], "responses": { "200": { - "description": "Retrieved policy.", + "description": "Response", "content": { - "application/json": { + "text/plain": { "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/PlatformPolicy" - } - } + "type": "string", + "description": "Chunked response logs for a test connection that is in progress." } } } }, + "204": { + "description": "No logs available for a test connection that has not started." + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, "404": { "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } - }, - "put": { - "description": "Update Policy", - "operationId": "UpdatePolicy", + } + }, + "/sync-destination-test-connections/{sync_destination_test_connection_id}/promote": { + "post": { + "description": "Promote a sync destination test connection to a sync destination.", + "operationId": "PromoteSyncDestinationTestConnection", "tags": [ - "policies" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." + "$ref": "#/components/parameters/sync_destination_test_connection_id" } ], "requestBody": { @@ -6619,26 +6245,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PlatformCreateOrUpdatePolicy" + "$ref": "#/components/schemas/PromoteSyncDestinationTestConnection" } } } }, "responses": { "200": { - "description": "Updated policy.", + "description": "Successful response indicating that an existing sync destination was replaced.", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/PlatformPolicy" - } - } + "$ref": "#/components/schemas/SyncDestination" + } + } + } + }, + "201": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncDestination" } } } @@ -6646,69 +6274,29 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" - } - } - }, - "delete": { - "description": "Delete Policy", - "operationId": "DeletePolicy", - "tags": [ - "policies" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." - } - ], - "responses": { - "204": { - "description": "Policy deleted." }, - "403": { - "$ref": "#/components/responses/Forbidden" + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, - "404": { - "$ref": "#/components/responses/NotFound" + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/policies/{policy_id}/frameworks": { + "/sync-destinations": { "get": { - "description": "List Policy Frameworks", - "operationId": "ListPolicyFrameworks", + "description": "List all sync destination definitions.", + "operationId": "ListSyncDestinations", "tags": [ - "policies" + "syncs" ], "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." - }, { "$ref": "#/components/parameters/per_page" }, @@ -6716,45 +6304,31 @@ "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/platform_policy_frameworks_sort_bys" - }, - { - "$ref": "#/components/parameters/platform_policies_sort_dirs" + "$ref": "#/components/parameters/sync_name_filter" }, { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter rules by name." + "$ref": "#/components/parameters/sync_generic_sort_bys" }, { - "name": "sort", - "in": "query", - "schema": { - "type": "string" - }, - "description": "DEPRECATED! Sorting order." + "$ref": "#/components/parameters/sync_sort_dirs" } ], "responses": { "200": { - "description": "List of policy frameworks.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", "required": [ - "frameworks", + "items", "metadata" ], "properties": { - "frameworks": { - "type": "array", + "items": { "items": { - "$ref": "#/components/schemas/PlatformPolicyFramework" - } + "$ref": "#/components/schemas/SyncDestination" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -6767,179 +6341,80 @@ "400": { "$ref": "#/components/responses/BadRequest" }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, "404": { "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/policies/{policy_id}/rules": { + "/sync-destinations/{sync_destination_name}": { "get": { - "description": "List Policy Rules", - "operationId": "ListPolicyRules", + "description": "Get a single sync destination definition.", + "operationId": "GetSyncDestination", "tags": [ - "policies" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/platform_policy_rules_sort_bys" - }, - { - "$ref": "#/components/parameters/platform_policies_sort_dirs" - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter rules by name." - }, - { - "name": "sort", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Sorting order." + "$ref": "#/components/parameters/sync_destination_name" } ], "responses": { "200": { - "description": "List of policy rules.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "rules", - "metadata" - ], - "properties": { - "rules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicyRule" - } - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/SyncDestination" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/policies/{policy_id}/rules/{rule_id}/details": { - "get": { - "description": "List Policy Rule Details", - "operationId": "ListPolicyRuleDetails", + }, + "patch": { + "description": "Update a Sync Destination definition.", + "operationId": "UpdateSyncDestination", "tags": [ - "policies" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." - }, - { - "name": "rule_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the rule." - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/platform_policy_rule_details_sort_bys" - }, - { - "$ref": "#/components/parameters/platform_policies_sort_dirs" - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter rules by name." - }, - { - "name": "sort", - "in": "query", - "schema": { - "type": "string" - }, - "description": "DEPRECATED! Sorting order." + "$ref": "#/components/parameters/sync_destination_name" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncDestinationUpdate" + } + } + } + }, "responses": { "200": { - "description": "List of policy rule details.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "details", - "metadata" - ], - "properties": { - "details": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicyRuleDetail" - } - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/SyncDestination" } } } @@ -6947,139 +6422,60 @@ "400": { "$ref": "#/components/responses/BadRequest" }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, "404": { "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/policies/{policy_id}/toggle": { - "post": { - "description": "Toggle Policy status", - "operationId": "TogglePolicy", + }, + "delete": { + "description": "Delete a Sync Destination definition. Any syncs relying on this destination must be deleted first.", + "operationId": "DeleteSyncDestination", "tags": [ - "policies" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." - }, - { - "name": "status", - "in": "query", - "required": true, - "schema": { - "type": "string", - "enum": [ - "paused", - "active" - ] - } + "$ref": "#/components/parameters/sync_destination_name" } ], "responses": { - "200": { - "description": "Toggled policy state." - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "204": { + "description": "Deleted" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" - } - } - } - }, - "/teams/{team_name}/policies/{policy_id}/violations-history": { - "get": { - "description": "Get Policy Violations History for defined period.", - "operationId": "GetPolicyViolationsHistory", - "tags": [ - "policies" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" }, - { - "name": "policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the policy." - }, - { - "in": "query", - "name": "start", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - }, - "description": "A valid ISO 8601 date string representing the inclusive start of the period within which to return history entities. Defaults to start of current month if not specified." - }, - { - "in": "query", - "name": "end", - "required": false, - "schema": { - "type": "string", - "format": "date-time" - }, - "description": "A valid ISO 8601 date string representing the exclusive end of the period within which to return history entities. Defaults to end of current month if not specified." - } - ], - "responses": { - "200": { - "description": "List of policy violation history entities, sorted by descending date. Where no history for a given day, no object will be returned. Where multiple, the max will be returned.", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "details" - ], - "properties": { - "details": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicyViolationHistory" - } - } - } - } - } - } + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, - "400": { - "$ref": "#/components/responses/BadRequest" + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/queries": { + "/sync-destinations/{sync_destination_name}/syncs": { "get": { - "description": "List all queries", - "operationId": "ListAllQueriesTeam", + "description": "List all Syncs for a given sync destination.", + "operationId": "ListSyncDestinationSyncs", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_destination_name" }, { "$ref": "#/components/parameters/per_page" @@ -7088,22 +6484,16 @@ "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/query_tags" - }, - { - "$ref": "#/components/parameters/query_name_filter" - }, - { - "$ref": "#/components/parameters/query_filter" + "$ref": "#/components/parameters/sync_sort_bys" }, { - "$ref": "#/components/parameters/alert_configured" + "$ref": "#/components/parameters/sync_sort_dirs" }, { - "$ref": "#/components/parameters/alert_message_filter" + "$ref": "#/components/parameters/sync_name_filter" }, { - "$ref": "#/components/parameters/alert_enabled" + "$ref": "#/components/parameters/migration_filter" } ], "responses": { @@ -7119,7 +6509,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/Query" + "$ref": "#/components/schemas/ListSync" }, "type": "array" }, @@ -7131,101 +6521,86 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries" - ] + } } }, - "/teams/{team_name}/queries/execute": { - "post": { - "description": "Run an ad-hoc SQL query against any table.\nFurther filtering can optionally be applied on top of the raw SQL results using the optional parameters. Filtering can be useful in situations where a saved query needs to be further filtered, grouped or paginated, such as in dashboards or reports.\n", - "operationId": "ExecuteAdHocQueryTeam", + "/sync-destinations/{sync_destination_name}/test-connections/{sync_test_connection_id}": { + "get": { + "description": "Get test connection details for sync destination.", + "operationId": "GetTestConnectionForSyncDestination", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_selects" + "$ref": "#/components/parameters/sync_destination_name" }, { - "$ref": "#/components/parameters/table_filter_mode" + "$ref": "#/components/parameters/sync_test_connection_id" + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncTestConnection" + } + } + } }, - { - "$ref": "#/components/parameters/table_filters" + "400": { + "$ref": "#/components/responses/BadRequest" }, - { - "$ref": "#/components/parameters/table_filter_ids" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, - { - "$ref": "#/components/parameters/table_sort_bys" + "404": { + "$ref": "#/components/responses/NotFound" }, - { - "$ref": "#/components/parameters/table_sort_dirs" - }, - { - "$ref": "#/components/parameters/table_group_bys" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" + "500": { + "$ref": "#/components/responses/InternalError" } + } + } + }, + "/sync-source-test-connections": { + "post": { + "description": "Create a test source connection.", + "operationId": "CreateSyncSourceTestConnection", + "tags": [ + "syncs" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "query" - ], - "properties": { - "query": { - "type": "string", - "example": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'" - } - } + "$ref": "#/components/schemas/SyncSourceTestConnectionCreate" } } } }, "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "required": [ - "data", - "metadata" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/TableData" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/SyncSourceTestConnection" } } } @@ -7236,56 +6611,109 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries" - ] + } } }, - "/teams/{team_name}/queries/save": { - "post": { - "description": "Save a query to execute later", - "operationId": "SaveQueryTeam", + "/sync-source-test-connections/{sync_source_test_connection_id}": { + "get": { + "description": "Get a sync source test connection.", + "operationId": "GetSyncSourceTestConnection", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_source_test_connection_id" + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncSourceTestConnection" + } + } + } + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + } + }, + "patch": { + "description": "Update a sync source test connection.", + "operationId": "UpdateSyncTestConnectionForSyncSource", + "tags": [ + "syncs" + ], + "parameters": [ + { + "$ref": "#/components/parameters/sync_source_test_connection_id" } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/QueryCreate" + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "$ref": "#/components/schemas/SyncTestConnectionStatus" + }, + "failure_reason": { + "type": "string", + "description": "Reason for failure", + "example": "password authentication failed for user \"exampleuser\"" + }, + "failure_code": { + "example": "INVALID_CREDENTIALS", + "type": "string", + "description": "Code for failure" + } + } } } } }, "responses": { - "201": { - "description": "Success", + "200": { + "description": "Updated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/QueryDetail" + "$ref": "#/components/schemas/SyncSourceTestConnection" } } } }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "400": { + "$ref": "#/components/responses/BadRequest" }, "403": { "$ref": "#/components/responses/Forbidden" @@ -7299,25 +6727,39 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries" - ] + } } }, - "/teams/{team_name}/queries/tags": { + "/sync-source-test-connections/{sync_source_test_connection_id}/logs/query": { "get": { - "description": "List Query Tags", - "operationId": "ListQueryTagsTeam", + "description": "Get logs for a sync source test connection.", + "operationId": "GetSyncSourceTestConnectionLogsQuery", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "in": "header", + "name": "Accept", + "required": false, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/sync_source_test_connection_id" + }, + { + "$ref": "#/components/parameters/table_filters" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/download_file" } ], "responses": { @@ -7327,30 +6769,36 @@ "application/json": { "schema": { "required": [ - "items", + "data", "metadata" ], "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/QueryTag" - } + "data": { + "$ref": "#/components/schemas/TableData" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" } } } + }, + "text/plain": { + "schema": { + "type": "string", + "description": "Download file." + } } } }, + "204": { + "description": "No logs available for a test connection that has not started." + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -7360,41 +6808,50 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries" - ] + } } }, - "/teams/{team_name}/queries/{query_id}": { + "/sync-source-test-connections/{sync_source_test_connection_id}/logs/live": { "get": { - "description": "Get a saved query", - "operationId": "GetSavedQueryTeam", + "description": "Get live logs for a sync source test connection.", + "operationId": "GetSyncSourceTestConnectionLogsLive", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "in": "header", + "name": "Accept", + "required": false, + "schema": { + "type": "string" + } }, { - "$ref": "#/components/parameters/query_id" + "$ref": "#/components/parameters/sync_source_test_connection_id" } ], "responses": { "200": { "description": "Response", "content": { - "application/json": { + "text/plain": { "schema": { - "$ref": "#/components/schemas/QueryDetail" + "type": "string", + "description": "Chunked response logs for a test connection that is in progress." } } } }, + "204": { + "description": "No logs available for a test connection that has not started." + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -7404,38 +6861,48 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, + } + } + }, + "/sync-source-test-connections/{sync_source_test_connection_id}/promote": { + "post": { + "description": "Promote a sync source test connection to a sync source.", + "operationId": "PromoteSyncSourceTestConnection", "tags": [ - "queries" - ] - }, - "patch": { - "description": "Update a saved query", - "operationId": "UpdateQueryTeam", + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/query_id" + "$ref": "#/components/parameters/sync_source_test_connection_id" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/QueryUpdate" + "$ref": "#/components/schemas/PromoteSyncSourceTestConnection" } } } }, "responses": { "200": { - "description": "Response", + "description": "Successful response indicating that an existing sync source was replaced.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/QueryDetail" + "$ref": "#/components/schemas/SyncSource" + } + } + } + }, + "201": { + "description": "Successful response indicating that a new sync source was created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncSource" } } } @@ -7446,44 +6913,6 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "queries" - ] - }, - "delete": { - "description": "Delete a saved query", - "operationId": "DeleteSavedQueryTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/query_id" - } - ], - "responses": { - "204": { - "description": "Success" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -7493,107 +6922,33 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries" - ] + } } }, - "/teams/{team_name}/queries/{query_id}/alert": { - "delete": { - "description": "Delete alert from saved query", - "operationId": "DeleteAlert", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/query_id" - } + "/v2/sync-integration-test-connections": { + "post": { + "description": "Create an integration test connection.", + "operationId": "CreateV2SyncIntegrationTestConnection", + "tags": [ + "syncs" ], - "responses": { - "204": { - "description": "Success" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncIntegrationTestConnectionCreateV2" + } + } } }, - "tags": [ - "queries", - "alerts" - ] - } - }, - "/teams/{team_name}/queries/{query_id}/execute": { - "post": { - "description": "Execute a saved query", - "operationId": "ExecuteSavedQueryTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/query_id" - }, - { - "$ref": "#/components/parameters/table_selects" - }, - { - "$ref": "#/components/parameters/table_filter_mode" - }, - { - "$ref": "#/components/parameters/table_filters" - }, - { - "$ref": "#/components/parameters/table_filter_ids" - }, - { - "$ref": "#/components/parameters/table_sort_bys" - }, - { - "$ref": "#/components/parameters/table_sort_dirs" - }, - { - "$ref": "#/components/parameters/table_group_bys" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - } - ], "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "required": [ - "data", - "metadata" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/TableData" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/SyncIntegrationTestConnectionV2" } } } @@ -7604,43 +6959,43 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries" - ] + } } }, - "/teams/{team_name}/queries/{query_id}/filters": { + "/v2/sync-integrations": { "get": { - "description": "List Query Filters", - "operationId": "QueryListFiltersTeam", + "description": "List sync integrations", + "operationId": "ListV2SyncIntegrations", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/query_id" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/sync_sort_bys" }, { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/sync_sort_dirs" }, { - "$ref": "#/components/parameters/filter_tags" + "$ref": "#/components/parameters/sync_name_filter" } ], "responses": { @@ -7655,10 +7010,10 @@ ], "properties": { "items": { - "type": "array", "items": { - "$ref": "#/components/schemas/Filter" - } + "$ref": "#/components/schemas/SyncIntegrationExpandedV2" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -7674,62 +7029,37 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries", - "filters" - ] + } }, "post": { - "description": "Save Query Filter", - "operationId": "QuerySaveFilterTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/query_id" - } + "description": "Create a new integration associated with a completed test connection", + "operationId": "CreateV2SyncIntegration", + "tags": [ + "syncs" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FilterCreate" + "$ref": "#/components/schemas/SyncIntegrationCreateV2" } } } }, "responses": { - "200": { - "description": "Filter already exists", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Filter" - } - } - } - }, "201": { - "description": "Filter created", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Filter" + "$ref": "#/components/schemas/SyncIntegrationV2" } } } @@ -7740,9 +7070,6 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -7752,29 +7079,19 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries", - "filters" - ] + } } }, - "/teams/{team_name}/queries/{query_id}/filters/tags": { + "/v2/sync-integrations/{sync_name}": { "get": { - "description": "List Filter Tags For A Saved Query", - "operationId": "QueryListFilterTagsTeam", + "description": "Get a sync integration by name", + "operationId": "GetV2SyncIntegration", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/query_id" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/sync_name" } ], "responses": { @@ -7783,30 +7100,62 @@ "content": { "application/json": { "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FilterTag" - } - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/SyncIntegrationExpandedV2" } } } }, - "401": { + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "404": { + "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + } + }, + "patch": { + "description": "Update attributes of an integration", + "operationId": "UpdateV2SyncIntegration", + "tags": [ + "syncs" + ], + "parameters": [ + { + "$ref": "#/components/parameters/sync_name" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncIntegrationUpdateV2" + } + } + } + }, + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncIntegrationV2" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" @@ -7817,43 +7166,62 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries", - "filters" - ] - } - }, - "/teams/{team_name}/reports": { - "get": { - "operationId": "ListReports", - "description": "List reports", + } + }, + "delete": { + "description": "Delete an integration", + "operationId": "DeleteV2SyncIntegration", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter reports by title or description." + "$ref": "#/components/parameters/sync_name" }, { - "name": "visibility", + "name": "delete_data", + "description": "If true, also delete data associated with this integration from the relevant destinations.", "in": "query", + "required": false, "schema": { - "type": "string", - "enum": [ - "private", - "public" - ] + "type": "boolean", + "default": false } + } + ], + "responses": { + "204": { + "description": "Success" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + } + } + }, + "/sync-sources": { + "get": { + "description": "List all sync source definitions.", + "operationId": "ListSyncSources", + "tags": [ + "syncs" + ], + "parameters": [ { "$ref": "#/components/parameters/per_page" }, @@ -7861,29 +7229,31 @@ "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/report_sort_bys" + "$ref": "#/components/parameters/sync_name_filter" }, { - "$ref": "#/components/parameters/report_sort_dirs" + "$ref": "#/components/parameters/sync_generic_sort_bys" + }, + { + "$ref": "#/components/parameters/sync_sort_dirs" } ], "responses": { "200": { - "description": "List of reports.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", "required": [ - "reports", + "items", "metadata" ], "properties": { - "reports": { - "type": "array", + "items": { "items": { - "$ref": "#/components/schemas/Report" - } + "$ref": "#/components/schemas/SyncSource" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -7896,131 +7266,61 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" - } - } - }, - "post": { - "description": "Create Report", - "operationId": "CreateReport", - "tags": [ - "reports" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReportCreate" - } - } - } - }, - "responses": { - "201": { - "description": "Created report.", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Report" - } - } - } - } - } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "403": { - "$ref": "#/components/responses/Forbidden" + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/reports/{report_id}": { + "/sync-sources/{sync_source_name}": { "get": { - "description": "Get Report", - "operationId": "GetReport", + "description": "Get a single sync source definition.", + "operationId": "GetSyncSource", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "report_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the report." + "$ref": "#/components/parameters/sync_source_name" } ], "responses": { "200": { - "description": "Retrieved report.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Report" - } - } + "$ref": "#/components/schemas/SyncSource" } } } }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } }, - "put": { - "description": "Update Report", - "operationId": "UpdateReport", + "patch": { + "description": "Update a Sync Source definition.", + "operationId": "UpdateSyncSource", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "report_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the report." + "$ref": "#/components/parameters/sync_source_name" } ], "requestBody": { @@ -8028,26 +7328,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReportUpdate" + "$ref": "#/components/schemas/SyncSourceUpdate" } } } }, "responses": { "200": { - "description": "Updated report.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Report" - } - } + "$ref": "#/components/schemas/SyncSource" } } } @@ -8055,66 +7347,60 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } }, "delete": { - "description": "Delete Report", - "operationId": "DeleteReport", + "description": "Delete a Sync Source definition. Any syncs relying on this source must be deleted first.", + "operationId": "DeleteSyncSource", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "report_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the report." + "$ref": "#/components/parameters/sync_source_name" } ], "responses": { "204": { - "description": "Report deleted." + "description": "Deleted" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/reports/templates": { + "/sync-sources/{sync_source_name}/syncs": { "get": { - "operationId": "ListReportTemplates", - "description": "List report templates", + "description": "List all Syncs for a given sync source.", + "operationId": "ListSyncSourceSyncs", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter report templates by name." + "$ref": "#/components/parameters/sync_source_name" }, { "$ref": "#/components/parameters/per_page" @@ -8123,29 +7409,34 @@ "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/report_templates_sort_bys" + "$ref": "#/components/parameters/sync_sort_bys" }, { - "$ref": "#/components/parameters/report_templates_sort_dirs" + "$ref": "#/components/parameters/sync_sort_dirs" + }, + { + "$ref": "#/components/parameters/sync_name_filter" + }, + { + "$ref": "#/components/parameters/migration_filter" } ], "responses": { "200": { - "description": "List of report templates.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", "required": [ - "templates", + "items", "metadata" ], "properties": { - "templates": { - "type": "array", + "items": { "items": { - "$ref": "#/components/schemas/ReportTemplate" - } + "$ref": "#/components/schemas/ListSync" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -8158,50 +7449,40 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } - }, - "post": { - "description": "Create Report Template", - "operationId": "CreateReportTemplate", + } + }, + "/sync-sources/{sync_source_name}/test-connections/{sync_test_connection_id}": { + "get": { + "description": "Get test connection details for sync source.", + "operationId": "GetTestConnectionForSyncSource", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_source_name" + }, + { + "$ref": "#/components/parameters/sync_test_connection_id" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReportTemplateCreateOrUpdate" - } - } - } - }, "responses": { - "201": { - "description": "Created report template.", + "200": { + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/ReportTemplate" - } - } + "$ref": "#/components/schemas/SyncTestConnection" } } } @@ -8209,166 +7490,125 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/reports/templates/{template_id}": { + "/sync-transformers": { "get": { - "description": "Get Report Template", - "operationId": "GetReportTemplate", + "description": "List all sync transformer definitions.", + "operationId": "ListSyncTransformers", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { - "name": "template_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the report template." + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/sync_name_filter" + }, + { + "$ref": "#/components/parameters/sync_generic_sort_bys" + }, + { + "$ref": "#/components/parameters/sync_sort_dirs" } ], "responses": { "200": { - "description": "Retrieved report template.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", "required": [ - "data" + "items", + "metadata" ], "properties": { - "data": { - "$ref": "#/components/schemas/ReportTemplate" + "items": { + "items": { + "$ref": "#/components/schemas/SyncTransformer" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" } } } } } }, - "403": { - "$ref": "#/components/responses/Forbidden" + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } - }, - "put": { - "description": "Update Report Template", - "operationId": "UpdateReportTemplate", + } + }, + "/sync-transformers/{sync_transformer_name}": { + "get": { + "description": "Get a single sync transformer definition.", + "operationId": "GetSyncTransformer", "tags": [ - "reports" + "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "template_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the report template." + "$ref": "#/components/parameters/sync_transformer_name" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReportTemplateCreateOrUpdate" - } - } - } - }, "responses": { "200": { - "description": "Updated report template.", + "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/ReportTemplate" - } - } + "$ref": "#/components/schemas/SyncTransformer" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" + }, + "500": { + "$ref": "#/components/responses/InternalError" } } }, - "delete": { - "description": "Delete Report Template", - "operationId": "DeleteReportTemplate", - "tags": [ - "reports" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "template_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the report template." - } - ], - "responses": { - "204": { - "description": "Report template deleted." - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - } - } - } - }, - "/teams/{team_name}/sync-destination-test-connections": { - "post": { - "description": "Create a test destination connection.", - "operationId": "CreateSyncDestinationTestConnection", + "patch": { + "description": "Update a Sync Transformer definition.", + "operationId": "UpdateSyncTransformer", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_transformer_name" } ], "requestBody": { @@ -8376,18 +7616,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncDestinationTestConnectionCreate" + "$ref": "#/components/schemas/SyncTransformerUpdate" } } } }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncDestinationTestConnection" + "$ref": "#/components/schemas/SyncTransformer" } } } @@ -8404,147 +7644,112 @@ "422": { "$ref": "#/components/responses/UnprocessableEntity" }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, "500": { "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}": { - "get": { - "description": "Get a sync destination test connection.", - "operationId": "GetSyncDestinationTestConnection", + }, + "delete": { + "description": "Delete a Sync Transformer definition. Any syncs relying on this transformer must be deleted first.", + "operationId": "DeleteSyncTransformer", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_test_connection_id" + "$ref": "#/components/parameters/sync_transformer_name" } ], "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestinationTestConnection" - } - } - } + "204": { + "description": "Deleted" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } } - }, - "patch": { - "description": "Update a sync destination test connection.", - "operationId": "UpdateSyncTestConnectionForSyncDestination", + } + }, + "/sync-transformers/{sync_transformer_name}/syncs": { + "get": { + "description": "List all Syncs for a given sync transformer.", + "operationId": "ListSyncTransformerSyncs", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_transformer_name" }, { - "$ref": "#/components/parameters/sync_destination_test_connection_id" + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/page" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "$ref": "#/components/schemas/SyncTestConnectionStatus" - }, - "failure_reason": { - "type": "string", - "description": "Reason for failure", - "example": "password authentication failed for user \"exampleuser\"" - }, - "failure_code": { - "example": "INVALID_CREDENTIALS", - "type": "string", - "description": "Code for failure" - } - } - } - } - } - }, "responses": { "200": { - "description": "Updated", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncDestinationTestConnection" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/Sync" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "403": { - "$ref": "#/components/responses/Forbidden" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}/logs": { + "/sync-transformers/{sync_transformer_name}/sync-destinations": { "get": { - "description": "Deprecated. Get logs for a sync destination test connection.", - "deprecated": true, - "operationId": "GetSyncDestinationTestConnectionLogs", + "description": "List all Sync Destinations for a given sync transformer.", + "operationId": "ListSyncTransformerSyncDestinations", "tags": [ "syncs" ], "parameters": [ { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/sync_transformer_name" }, { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/sync_destination_test_connection_id" + "$ref": "#/components/parameters/page" } ], "responses": { @@ -8553,94 +7758,65 @@ "content": { "application/json": { "schema": { - "additionalProperties": false, "required": [ - "location" + "items", + "metadata" ], "properties": { - "location": { - "type": "string", - "format": "uri", - "description": "The location to download the test connection logs from" + "items": { + "items": { + "$ref": "#/components/schemas/SyncDestination" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" } - }, - "title": "Test Connection Logs", - "type": "object" - } - }, - "text/plain": { - "schema": { - "type": "string", - "description": "Chunked response logs for a test connection that is in progress." - } - } - } - }, - "204": { - "description": "No logs available for a test connection that has not started." - }, - "302": { - "description": "Redirect to the logs download URL for a test connection that has completed.", - "headers": { - "Location": { - "schema": { - "type": "string", - "description": "URL to download logs" + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}/logs/query": { + "/sync-upgrades": { "get": { - "description": "Get logs for a sync destination test connection.", - "operationId": "GetSyncDestinationTestConnectionLogsQuery", + "description": "List all version upgrades for syncs", + "operationId": "ListSyncUpgrades", "tags": [ "syncs" ], "parameters": [ { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/sync_destination_test_connection_id" + "$ref": "#/components/parameters/sync_upgrades_sort_bys" }, { - "$ref": "#/components/parameters/table_filters" + "$ref": "#/components/parameters/sync_sort_dirs" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/sync_upgrades_path_filter" }, { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/sync_upgrades_kind_filter" }, { - "$ref": "#/components/parameters/download_file" + "$ref": "#/components/parameters/sync_upgrades_platform_version_filter" } ], "responses": { @@ -8650,30 +7826,24 @@ "application/json": { "schema": { "required": [ - "data", + "items", "metadata" ], "properties": { - "data": { - "$ref": "#/components/schemas/TableData" + "items": { + "items": { + "$ref": "#/components/schemas/SyncUpgrade" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" } } } - }, - "text/plain": { - "schema": { - "type": "string", - "description": "Download file." - } } } }, - "204": { - "description": "No logs available for a test connection that has not started." - }, "400": { "$ref": "#/components/responses/BadRequest" }, @@ -8683,53 +7853,64 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}/logs/live": { + "/syncs": { "get": { - "description": "Get live logs for a sync destination test connection.", - "operationId": "GetSyncDestinationTestConnectionLogsLive", + "description": "List all Syncs.", + "operationId": "ListSyncs", "tags": [ "syncs" ], "parameters": [ { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/sync_destination_test_connection_id" + "$ref": "#/components/parameters/sync_sort_bys" + }, + { + "$ref": "#/components/parameters/sync_sort_dirs" + }, + { + "$ref": "#/components/parameters/sync_name_filter" + }, + { + "$ref": "#/components/parameters/migration_filter" } ], "responses": { "200": { "description": "Response", "content": { - "text/plain": { + "application/json": { "schema": { - "type": "string", - "description": "Chunked response logs for a test connection that is in progress." + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/ListSync" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } }, - "204": { - "description": "No logs available for a test connection that has not started." - }, "400": { "$ref": "#/components/responses/BadRequest" }, @@ -8739,57 +7920,34 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}/promote": { + }, "post": { - "description": "Promote a sync destination test connection to a sync destination.", - "operationId": "PromoteSyncDestinationTestConnection", + "description": "Create new Sync definition. Sync runs can be scheduled automatically, or triggered manually after sync is created.", + "operationId": "CreateSync", "tags": [ "syncs" ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_test_connection_id" - } - ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromoteSyncDestinationTestConnection" + "$ref": "#/components/schemas/SyncCreate" } } } }, "responses": { - "200": { - "description": "Successful response indicating that an existing sync destination was replaced.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestination" - } - } - } - }, "201": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncDestination" + "$ref": "#/components/schemas/Sync" } } } @@ -8800,9 +7958,6 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, @@ -8812,31 +7967,16 @@ } } }, - "/teams/{team_name}/sync-destinations": { + "/syncs/{sync_name}": { "get": { - "description": "List all sync destination definitions.", - "operationId": "ListSyncDestinations", + "description": "Get a Sync", + "operationId": "GetSync", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sync_name_filter" - }, - { - "$ref": "#/components/parameters/sync_generic_sort_bys" - }, - { - "$ref": "#/components/parameters/sync_sort_dirs" + "$ref": "#/components/parameters/sync_name" } ], "responses": { @@ -8845,21 +7985,7 @@ "content": { "application/json": { "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SyncDestination" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/Sync" } } } @@ -8877,76 +8003,34 @@ "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/sync-destinations/{sync_destination_name}": { - "get": { - "description": "Get a single sync destination definition.", - "operationId": "GetSyncDestination", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestination" - } - } - } - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } }, "patch": { - "description": "Update a Sync Destination definition.", - "operationId": "UpdateSyncDestination", + "description": "Update a Sync", + "operationId": "UpdateSync", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" + "$ref": "#/components/parameters/sync_name" } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncDestinationUpdate" + "$ref": "#/components/schemas/SyncUpdate" } } } }, "responses": { "200": { - "description": "Response", + "description": "Updated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncDestination" + "$ref": "#/components/schemas/Sync" } } } @@ -8954,8 +8038,8 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" @@ -8969,57 +8053,20 @@ } }, "delete": { - "description": "Delete a Sync Destination definition. Any syncs relying on this destination must be deleted first.", - "operationId": "DeleteSyncDestination", + "description": "Delete Sync. This will delete Sync configuration and all associated sync runs, but will not delete the associated source and destination(s). These will need to be deleted separately.", + "operationId": "DeleteSync", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" + "$ref": "#/components/parameters/sync_name" } ], "responses": { "204": { "description": "Deleted" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/sync-destinations/{sync_destination_name}/migrate": { - "post": { - "description": "Run migrations on all syncs which use this Sync Destination.", - "operationId": "MigrateSyncDestination", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" - } - ], - "responses": { - "204": { - "description": "Migrations have been queued for all syncs using this Sync Destination." - }, "400": { "$ref": "#/components/responses/BadRequest" }, @@ -9038,37 +8085,25 @@ } } }, - "/teams/{team_name}/sync-destinations/{sync_destination_name}/syncs": { + "/syncs/{sync_name}/runs": { "get": { - "description": "List all Syncs for a given sync destination.", - "operationId": "ListSyncDestinationSyncs", + "description": "List all Sync Runs.", + "operationId": "ListSyncRuns", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" }, { - "$ref": "#/components/parameters/sync_destination_name" + "$ref": "#/components/parameters/migration_filter" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sync_sort_bys" - }, - { - "$ref": "#/components/parameters/sync_sort_dirs" - }, - { - "$ref": "#/components/parameters/sync_name_filter" - }, - { - "$ref": "#/components/parameters/migration_filter" } ], "responses": { @@ -9084,7 +8119,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/ListSync" + "$ref": "#/components/schemas/SyncRun" }, "type": "array" }, @@ -9096,9 +8131,6 @@ } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -9109,33 +8141,25 @@ "$ref": "#/components/responses/InternalError" } } - } - }, - "/teams/{team_name}/sync-destinations/{sync_destination_name}/test-connections/{sync_test_connection_id}": { - "get": { - "description": "Get test connection details for sync destination.", - "operationId": "GetTestConnectionForSyncDestination", + }, + "post": { + "description": "Create new SyncRun. This will trigger a manual job run.", + "operationId": "CreateSyncRun", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" - }, - { - "$ref": "#/components/parameters/sync_test_connection_id" + "$ref": "#/components/parameters/sync_name" } ], "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncTestConnection" + "$ref": "#/components/schemas/SyncRun" } } } @@ -9146,8 +8170,8 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" @@ -9155,73 +8179,19 @@ } } }, - "/teams/{team_name}/sync-source-test-connections": { - "post": { - "description": "Create a test source connection.", - "operationId": "CreateSyncSourceTestConnection", + "/syncs/{sync_name}/runs/{sync_run_id}": { + "get": { + "description": "Get a Sync Run.", + "operationId": "GetSyncRun", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncSourceTestConnectionCreate" - } - } - } - }, - "responses": { - "201": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncSourceTestConnection" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}": { - "get": { - "description": "Get a sync source test connection.", - "operationId": "GetSyncSourceTestConnection", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" }, { - "$ref": "#/components/parameters/sync_source_test_connection_id" + "$ref": "#/components/parameters/sync_run_id" } ], "responses": { @@ -9230,7 +8200,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncSourceTestConnection" + "$ref": "#/components/schemas/SyncRunDetails" } } } @@ -9238,9 +8208,6 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -9250,17 +8217,17 @@ } }, "patch": { - "description": "Update a sync source test connection.", - "operationId": "UpdateSyncTestConnectionForSyncSource", + "description": "Update a SyncRun", + "operationId": "UpdateSyncRun", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" }, { - "$ref": "#/components/parameters/sync_source_test_connection_id" + "$ref": "#/components/parameters/sync_run_id" } ], "requestBody": { @@ -9268,22 +8235,12 @@ "application/json": { "schema": { "type": "object", - "required": [ - "status" - ], "properties": { "status": { - "$ref": "#/components/schemas/SyncTestConnectionStatus" - }, - "failure_reason": { - "type": "string", - "description": "Reason for failure", - "example": "password authentication failed for user \"exampleuser\"" + "$ref": "#/components/schemas/SyncRunStatus" }, - "failure_code": { - "example": "INVALID_CREDENTIALS", - "type": "string", - "description": "Code for failure" + "status_reason": { + "$ref": "#/components/schemas/SyncRunStatusReason" } } } @@ -9296,7 +8253,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncSourceTestConnection" + "$ref": "#/components/schemas/SyncRun" } } } @@ -9319,95 +8276,10 @@ } } }, - "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}/logs": { - "get": { - "description": "Deprecated. Get logs for a sync source test connection.", - "deprecated": true, - "operationId": "GetSyncSourceTestConnectionLogs", - "tags": [ - "syncs" - ], - "parameters": [ - { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_source_test_connection_id" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "additionalProperties": false, - "required": [ - "location" - ], - "properties": { - "location": { - "type": "string", - "format": "uri", - "description": "The location to download the test connection logs from" - } - }, - "title": "Test Connection Logs", - "type": "object" - } - }, - "text/plain": { - "schema": { - "type": "string", - "description": "Chunked response logs for a test connection that is in progress." - } - } - } - }, - "204": { - "description": "No logs available for a test connection that has not started." - }, - "302": { - "description": "Redirect to the logs download URL for a test connection that has completed.", - "headers": { - "Location": { - "schema": { - "type": "string", - "description": "URL to download logs" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}/logs/query": { + "/syncs/{sync_name}/runs/{sync_run_id}/logs/query": { "get": { - "description": "Get logs for a sync source test connection.", - "operationId": "GetSyncSourceTestConnectionLogsQuery", + "description": "Get logs for a sync run.", + "operationId": "GetSyncRunLogsQuery", "tags": [ "syncs" ], @@ -9421,10 +8293,10 @@ } }, { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" }, { - "$ref": "#/components/parameters/sync_source_test_connection_id" + "$ref": "#/components/parameters/sync_run_id" }, { "$ref": "#/components/parameters/table_filters" @@ -9488,10 +8360,10 @@ } } }, - "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}/logs/live": { + "/syncs/{sync_name}/runs/{sync_run_id}/logs/live": { "get": { - "description": "Get live logs for a sync source test connection.", - "operationId": "GetSyncSourceTestConnectionLogsLive", + "description": "Get live logs for a sync run.", + "operationId": "GetSyncRunLogsLive", "tags": [ "syncs" ], @@ -9505,10 +8377,19 @@ } }, { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" }, { - "$ref": "#/components/parameters/sync_source_test_connection_id" + "$ref": "#/components/parameters/sync_run_id" + }, + { + "in": "query", + "name": "table", + "required": false, + "schema": { + "type": "string", + "description": "Table name to filter logs by. Use a single dash (\"-\") as input to exclude all table-specific log lines." + } } ], "responses": { @@ -9518,13 +8399,13 @@ "text/plain": { "schema": { "type": "string", - "description": "Chunked response logs for a test connection that is in progress." + "description": "Chunked response logs for a sync run that is in progress." } } } }, "204": { - "description": "No logs available for a test connection that has not started." + "description": "No logs available for a sync run that has not started." }, "400": { "$ref": "#/components/responses/BadRequest" @@ -9544,19 +8425,20 @@ } } }, - "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}/promote": { + "/syncs/{sync_name}/runs/{sync_run_id}/progress": { "post": { - "description": "Promote a sync source test connection to a sync source.", - "operationId": "PromoteSyncSourceTestConnection", + "description": "Create a new sync run progress update.", + "operationId": "CreateSyncRunProgress", + "x-internal": true, "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" }, { - "$ref": "#/components/parameters/sync_source_test_connection_id" + "$ref": "#/components/parameters/sync_run_id" } ], "requestBody": { @@ -9564,31 +8446,53 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromoteSyncSourceTestConnection" + "type": "object", + "required": [ + "rows", + "warnings", + "errors" + ], + "properties": { + "rows": { + "type": "integer", + "format": "int64", + "description": "Number of rows synced so far" + }, + "warnings": { + "type": "integer", + "format": "int64", + "description": "Number of warnings encountered so far" + }, + "errors": { + "type": "integer", + "format": "int64", + "description": "Number of errors encountered so far" + }, + "status": { + "$ref": "#/components/schemas/SyncRunStatus" + }, + "shard_num": { + "type": "integer", + "format": "int32", + "description": "The shard number that this progress update is for" + }, + "shard_total": { + "type": "integer", + "format": "int32", + "description": "The total number of shards for this sync run" + }, + "table_progress": { + "$ref": "#/components/schemas/SyncRunTableProgress", + "description": "Table-specific progress information including error and row counts per table" + } + } } } } }, "responses": { - "200": { - "description": "Successful response indicating that an existing sync source was replaced.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncSource" - } - } - } - }, - "201": { - "description": "Successful response indicating that a new sync source was created.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncSource" - } - } - } + "204": { + "description": "Progress was reported successfully" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -9608,35 +8512,28 @@ } } }, - "/v2/teams/{team_name}/sync-integration-test-connections": { - "post": { - "description": "Create an integration test connection.", - "operationId": "CreateV2SyncIntegrationTestConnection", + "/syncs/{sync_name}/runs/{sync_run_id}/stats": { + "get": { + "description": "Get statistics on a Sync Run", + "operationId": "GetSyncRunStats", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" + }, + { + "$ref": "#/components/parameters/sync_run_id" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncIntegrationTestConnectionCreateV2" - } - } - } - }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncIntegrationTestConnectionV2" + "$ref": "#/components/schemas/SyncRunStats" } } } @@ -9650,43 +8547,37 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, "500": { "$ref": "#/components/responses/InternalError" } } } }, - "/v2/teams/{team_name}/sync-integrations": { + "/syncs/{sync_name}/runs/{sync_run_id}/tables": { "get": { - "description": "List sync integrations", - "operationId": "ListV2SyncIntegrations", + "description": "Get table details on a Sync Run", + "operationId": "GetSyncRunTables", "tags": [ "syncs" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/sync_name" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/sync_run_id" }, { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/sync_sort_bys" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/sync_sort_dirs" + "$ref": "#/components/parameters/sync_run_table_sort_bys" }, { - "$ref": "#/components/parameters/sync_name_filter" + "$ref": "#/components/parameters/table_sort_dirs" } ], "responses": { @@ -9702,7 +8593,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/SyncIntegrationExpandedV2" + "$ref": "#/components/schemas/SyncRunTableStat" }, "type": "array" }, @@ -9727,45 +8618,51 @@ "$ref": "#/components/responses/InternalError" } } - }, - "post": { - "description": "Create a new integration associated with a completed test connection", - "operationId": "CreateV2SyncIntegration", - "tags": [ - "syncs" - ], + } + }, + "/tables": { + "get": { + "description": "List Tables", + "operationId": "ListTables", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/page" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncIntegrationCreateV2" - } - } - } - }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncIntegrationV2" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableListItem" + } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -9775,22 +8672,25 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "tables" + ] } }, - "/v2/teams/{team_name}/sync-integrations/{sync_name}": { + "/tables/data": { "get": { - "description": "Get a sync integration by name", - "operationId": "GetV2SyncIntegration", + "description": "Get all sources and their associated tables. Returns data in the format needed for the delete action.", + "operationId": "GetTablesData", "tags": [ - "syncs" + "tables" ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/sync_name" + "$ref": "#/components/parameters/page" } ], "responses": { @@ -9799,59 +8699,91 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncIntegrationExpandedV2" + "type": "object", + "required": [ + "sources", + "metadata" + ], + "properties": { + "sources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableDataListItem" + } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + }, + "example": { + "sources": [ + { + "source_name": "aws-integration", + "display_name": "AWS Integration", + "tables": [ + { + "name": "aws_ec2_instances", + "deletion_pending": false + }, + { + "name": "aws_s3_buckets", + "deletion_pending": true + } + ], + "plugin": "cloudquery/aws" + }, + { + "source_name": "gcp-integration", + "display_name": "GCP Integration", + "tables": [ + { + "name": "gcp_compute_instances", + "deletion_pending": false + } + ], + "plugin": "cloudquery/gcp" + } + ], + "metadata": { + "page_size": 10, + "last_page": 1, + "total_count": 2 + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" + "403": { + "$ref": "#/components/responses/Forbidden" }, "500": { "$ref": "#/components/responses/InternalError" } } }, - "patch": { - "description": "Update attributes of an integration", - "operationId": "UpdateV2SyncIntegration", + "post": { + "description": "Perform an action on table data across multiple sources. Supported actions: delete (drops partitions for specified tenant/source/table combinations).", + "operationId": "TablesDataAction", "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - } + "tables" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncIntegrationUpdateV2" + "$ref": "#/components/schemas/TableDataAction" } } } }, "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncIntegrationV2" - } - } - } + "204": { + "description": "Success - action completed" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -9859,8 +8791,8 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" + "403": { + "$ref": "#/components/responses/Forbidden" }, "422": { "$ref": "#/components/responses/UnprocessableEntity" @@ -9869,71 +8801,42 @@ "$ref": "#/components/responses/InternalError" } } - }, - "delete": { - "description": "Delete an integration", - "operationId": "DeleteV2SyncIntegration", - "tags": [ - "syncs" - ], + } + }, + "/tables/{table_name}/data": { + "get": { + "description": "List Table Rows", + "operationId": "TableListRows", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_name" }, { - "$ref": "#/components/parameters/sync_name" - } - ], - "responses": { - "204": { - "description": "Success" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" + "$ref": "#/components/parameters/table_selects" }, - "404": { - "$ref": "#/components/responses/NotFound" + { + "$ref": "#/components/parameters/table_filter_mode" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" + { + "$ref": "#/components/parameters/table_filters" }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/sync-sources": { - "get": { - "description": "List all sync source definitions.", - "operationId": "ListSyncSources", - "tags": [ - "syncs" - ], - "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_filter_ids" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/table_sort_bys" }, { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/table_sort_dirs" }, { - "$ref": "#/components/parameters/sync_name_filter" + "$ref": "#/components/parameters/table_group_bys" }, { - "$ref": "#/components/parameters/sync_generic_sort_bys" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/sync_sort_dirs" + "$ref": "#/components/parameters/page" } ], "responses": { @@ -9943,15 +8846,12 @@ "application/json": { "schema": { "required": [ - "items", + "data", "metadata" ], "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SyncSource" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/TableData" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -9967,28 +8867,43 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } - } - }, - "/teams/{team_name}/sync-sources/{sync_source_name}": { - "get": { - "description": "Get a single sync source definition.", - "operationId": "GetSyncSource", + }, "tags": [ - "syncs" - ], + "tables" + ] + } + }, + "/tables/{table_name}/data/{table_row_id}": { + "get": { + "description": "Get Table row", + "operationId": "TableRowById", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_name" }, { - "$ref": "#/components/parameters/sync_source_name" + "$ref": "#/components/parameters/table_row_id" + }, + { + "$ref": "#/components/parameters/table_filter_mode" + }, + { + "$ref": "#/components/parameters/table_filters" + }, + { + "$ref": "#/components/parameters/table_filter_ids" } ], "responses": { @@ -9997,63 +8912,90 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncSource" + "required": [ + "data", + "matches" + ], + "properties": { + "data": { + "$ref": "#/components/schemas/TableRow" + }, + "matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableRowFieldMatch" + } + } + } } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } - }, - "patch": { - "description": "Update a Sync Source definition.", - "operationId": "UpdateSyncSource", + }, "tags": [ - "syncs" - ], + "tables" + ] + } + }, + "/tables/{table_name}/schema": { + "get": { + "description": "Get Table Schema", + "operationId": "TableSchema", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_source_name" + "$ref": "#/components/parameters/table_name" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncSourceUpdate" - } - } - } - }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncSource" + "required": [ + "schema", + "default_columns" + ], + "properties": { + "schema": { + "$ref": "#/components/schemas/TableSchema" + }, + "default_columns": { + "type": "array", + "items": { + "type": "string", + "description": "Column name" + } + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -10063,66 +9005,95 @@ "500": { "$ref": "#/components/responses/InternalError" } - } - }, - "delete": { - "description": "Delete a Sync Source definition. Any syncs relying on this source must be deleted first.", - "operationId": "DeleteSyncSource", + }, "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_source_name" - } - ], + "tables" + ] + } + }, + "/tables/relations": { + "get": { + "description": "Get resource relations for all configured tables.", + "operationId": "GetTablesRelations", "responses": { - "204": { - "description": "Deleted" + "200": { + "description": "Resource relations keyed by source table name.", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RelationDef" + } + } + } + } + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "tables" + ] } }, - "/teams/{team_name}/sync-sources/{sync_source_name}/migrate": { - "post": { - "description": "Run migrations on all syncs which use this Sync Source.", - "operationId": "MigrateSyncSource", - "tags": [ - "syncs" - ], + "/tables/schemas": { + "get": { + "description": "Get Table Schemas", + "operationId": "BatchTableSchemas", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_source_name" + "name": "tables", + "in": "query", + "description": "A list of table names to retrieve schemas for", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + }, + "example": [ + "aws_ec2_instances", + "aws_s3_buckets" + ] + } } ], "responses": { - "204": { - "description": "Migrations have been queued for all syncs using this Sync Source." - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BatchTableSchemaItem" + } + } + } + } + } + } }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -10132,40 +9103,31 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "tables" + ] } }, - "/teams/{team_name}/sync-sources/{sync_source_name}/syncs": { + "/tables/{table_name}/columns": { "get": { - "description": "List all Syncs for a given sync source.", - "operationId": "ListSyncSourceSyncs", - "tags": [ - "syncs" - ], + "description": "Get Table Columns", + "operationId": "TableListColumns", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_name" }, { - "$ref": "#/components/parameters/sync_source_name" + "$ref": "#/components/parameters/table_filter_mode" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/table_column_name_filter" }, { "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/sync_sort_bys" - }, - { - "$ref": "#/components/parameters/sync_sort_dirs" - }, - { - "$ref": "#/components/parameters/sync_name_filter" - }, - { - "$ref": "#/components/parameters/migration_filter" + "$ref": "#/components/parameters/per_page" } ], "responses": { @@ -10180,10 +9142,10 @@ ], "properties": { "items": { + "type": "array", "items": { - "$ref": "#/components/schemas/ListSync" - }, - "type": "array" + "$ref": "#/components/schemas/TableColumnListItem" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -10193,37 +9155,49 @@ } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "tables" + ] } }, - "/teams/{team_name}/sync-sources/{sync_source_name}/test-connections/{sync_test_connection_id}": { + "/tables/{table_name}/columns/{column_name}/values": { "get": { - "description": "Get test connection details for sync source.", - "operationId": "GetTestConnectionForSyncSource", - "tags": [ - "syncs" - ], + "description": "Get Table Column Values", + "operationId": "TableColumnListValues", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_name" }, { - "$ref": "#/components/parameters/sync_source_name" + "$ref": "#/components/parameters/column_name" }, { - "$ref": "#/components/parameters/sync_test_connection_id" + "$ref": "#/components/parameters/table_filter_mode" + }, + { + "$ref": "#/components/parameters/table_column_value_filter" + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/per_page" } ], "responses": { @@ -10232,36 +9206,53 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncTestConnection" + "required": [ + "items", + "metadata" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TableColumnValueListItem" + } + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" + } + } } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "tables" + ] } }, - "/teams/{team_name}/sync-transformers": { + "/tables/{table_name}/filters": { "get": { - "description": "List all sync transformer definitions.", - "operationId": "ListSyncTransformers", - "tags": [ - "syncs" - ], + "description": "List Table Filters", + "operationId": "TableListFilters", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/table_name" }, { "$ref": "#/components/parameters/per_page" @@ -10270,13 +9261,7 @@ "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/sync_name_filter" - }, - { - "$ref": "#/components/parameters/sync_generic_sort_bys" - }, - { - "$ref": "#/components/parameters/sync_sort_dirs" + "$ref": "#/components/parameters/filter_tags" } ], "responses": { @@ -10291,10 +9276,10 @@ ], "properties": { "items": { + "type": "array", "items": { - "$ref": "#/components/schemas/SyncTransformer" - }, - "type": "array" + "$ref": "#/components/schemas/Filter" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -10310,64 +9295,30 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/sync-transformers/{sync_transformer_name}": { - "get": { - "description": "Get a single sync transformer definition.", - "operationId": "GetSyncTransformer", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_transformer_name" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncTransformer" - } - } - } - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } - }, - "patch": { - "description": "Update a Sync Transformer definition.", - "operationId": "UpdateSyncTransformer", + }, "tags": [ - "syncs" - ], + "tables", + "filters" + ] + }, + "post": { + "description": "Save Table Filter", + "operationId": "TableSaveFilter", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_transformer_name" + "$ref": "#/components/parameters/table_name" } ], "requestBody": { @@ -10375,18 +9326,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncTransformerUpdate" + "$ref": "#/components/schemas/FilterCreate" } } } }, "responses": { "200": { - "description": "Response", + "description": "Filter already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncTransformer" + "$ref": "#/components/schemas/Filter" + } + } + } + }, + "201": { + "description": "Filter created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Filter" } } } @@ -10397,37 +9358,8 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - }, - "delete": { - "description": "Delete a Sync Transformer definition. Any syncs relying on this transformer must be deleted first.", - "operationId": "DeleteSyncTransformer", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_transformer_name" - } - ], - "responses": { - "204": { - "description": "Deleted" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" @@ -10438,22 +9370,20 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "tables", + "filters" + ] } }, - "/teams/{team_name}/sync-transformers/{sync_transformer_name}/syncs": { + "/tables/{table_name}/filters/tags": { "get": { - "description": "List all Syncs for a given sync transformer.", - "operationId": "ListSyncTransformerSyncs", - "tags": [ - "syncs" - ], + "description": "List Filter Tags For A Table", + "operationId": "TableListFilterTags", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_transformer_name" + "$ref": "#/components/parameters/table_name" }, { "$ref": "#/components/parameters/per_page" @@ -10474,10 +9404,10 @@ ], "properties": { "items": { + "type": "array", "items": { - "$ref": "#/components/schemas/Sync" - }, - "type": "array" + "$ref": "#/components/schemas/FilterTag" + } }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -10490,127 +9420,203 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "queries", + "filters" + ] } }, - "/teams/{team_name}/sync-transformers/{sync_transformer_name}/sync-destinations": { + "/usage-summary": { "get": { - "description": "List all Sync Destinations for a given sync transformer.", - "operationId": "ListSyncTransformerSyncDestinations", - "tags": [ - "syncs" - ], + "description": "Get a summary of usage for the specified time range.", + "operationId": "GetTeamUsageSummary", "parameters": [ { - "$ref": "#/components/parameters/team_name" + "in": "query", + "name": "metrics", + "required": false, + "schema": { + "type": "array", + "description": "A list of metrics to include in the response. Each metric must be one of the predefined valid values. If not provided, only `paid-rows` will be included.", + "items": { + "type": "string", + "enum": [ + "paid_rows", + "cloud_vcpu_seconds", + "cloud_vram_byte_seconds", + "network_egress_bytes" + ] + }, + "default": [ + "paid_rows" + ] + } }, { - "$ref": "#/components/parameters/sync_transformer_name" + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string", + "format": "date-time", + "description": "A valid ISO-8601-formatted date and time, indicating the inclusive start of the query time range. Defaults to 30 days ago." + } }, { - "$ref": "#/components/parameters/per_page" + "in": "query", + "name": "end", + "required": false, + "schema": { + "type": "string", + "format": "date-time", + "description": "A valid ISO-8601-formatted date and time, indicating the exclusive end of the query time range. Defaults to the current time." + } }, { - "$ref": "#/components/parameters/page" - } - ], + "in": "query", + "name": "aggregation_period", + "description": "An aggregation period to sum data over. In other words, data will be returned at this granularity. Currently only supports day and month.", + "required": false, + "schema": { + "type": "string", + "default": "day", + "enum": [ + "day", + "month" + ] + } + } + ], "responses": { "200": { - "description": "Response", + "description": "A summary of usage for the specified time range.", "content": { "application/json": { "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SyncDestination" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/UsageSummary" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "usage" + ] } }, - "/teams/{team_name}/sync-upgrades": { + "/usage-summary/{group_by}": { "get": { - "description": "List all version upgrades for syncs", - "operationId": "ListSyncUpgrades", - "tags": [ - "syncs" - ], + "description": "Get a grouped summary of usage for the specified time range.", + "operationId": "GetGroupedTeamUsageSummary", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sync_upgrades_sort_bys" + "in": "path", + "name": "group_by", + "required": true, + "schema": { + "type": "string", + "enum": [ + "price_category", + "plugin", + "sync_id" + ], + "description": "Group by usage summary. `plugin` and `price_category` groupings are only available for `paid-rows`." + } }, { - "$ref": "#/components/parameters/sync_sort_dirs" + "in": "query", + "name": "metrics", + "required": false, + "schema": { + "type": "array", + "description": "A list of metrics to include in the response. Each metric must be one of the predefined valid values. If not provided, only `paid-rows` will be included.", + "items": { + "type": "string", + "enum": [ + "paid_rows", + "cloud_vcpu_seconds", + "cloud_vram_byte_seconds", + "network_egress_bytes" + ] + }, + "default": [ + "paid_rows" + ] + } }, { - "$ref": "#/components/parameters/sync_upgrades_path_filter" + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string", + "format": "date-time", + "description": "A valid ISO-8601-formatted date and time, indicating the inclusive start of the query time range. Defaults to 30 days ago." + } }, { - "$ref": "#/components/parameters/sync_upgrades_kind_filter" + "in": "query", + "name": "end", + "required": false, + "schema": { + "type": "string", + "format": "date-time", + "description": "A valid ISO-8601-formatted date and time, indicating the exclusive end of the query time range. Defaults to the current time." + } }, { - "$ref": "#/components/parameters/sync_upgrades_platform_version_filter" + "in": "query", + "name": "aggregation_period", + "description": "An aggregation period to sum data over. In other words, data will be returned at this granularity. Currently only supports day and month.", + "required": false, + "schema": { + "type": "string", + "default": "day", + "enum": [ + "day", + "month" + ] + } } ], "responses": { "200": { - "description": "Response", + "description": "A summary of usage for the specified time range.", "content": { "application/json": { "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SyncUpgrade" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/UsageSummary" } } } @@ -10621,26 +9627,29 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "usage" + ] } }, - "/teams/{team_name}/syncs": { + "/users": { "get": { - "description": "List all Syncs.", - "operationId": "ListSyncs", - "tags": [ - "syncs" - ], + "description": "List all users", + "operationId": "ListUsers", "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, { "$ref": "#/components/parameters/per_page" }, @@ -10648,16 +9657,20 @@ "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/sync_sort_bys" - }, - { - "$ref": "#/components/parameters/sync_sort_dirs" - }, - { - "$ref": "#/components/parameters/sync_name_filter" + "name": "user_search", + "description": "Search by user name or email", + "in": "query", + "schema": { + "type": "string" + } }, { - "$ref": "#/components/parameters/migration_filter" + "name": "role_id", + "description": "Search by user role ID", + "in": "query", + "schema": { + "$ref": "#/components/schemas/RoleID" + } } ], "responses": { @@ -10673,7 +9686,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/ListSync" + "$ref": "#/components/schemas/User" }, "type": "array" }, @@ -10691,42 +9704,64 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "users" + ] }, "post": { - "description": "Create new Sync definition. Sync runs can be scheduled automatically, or triggered manually after sync is created.", - "operationId": "CreateSync", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], + "description": "Add new user", + "operationId": "AddUser", "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncCreate" + "type": "object", + "additionalProperties": false, + "required": [ + "email", + "name", + "roles" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "roles": { + "description": "Roles for the user", + "type": "array", + "minItems": 0, + "items": { + "$ref": "#/components/schemas/RoleID" + } + } + } } } } }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Sync" + "$ref": "#/components/schemas/User" } } } @@ -10737,40 +9772,47 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "users", + "admin" + ] } }, - "/teams/{team_name}/syncs/{sync_name}": { + "/users/{user_id}": { "get": { - "description": "Get a Sync", - "operationId": "GetSync", - "tags": [ - "syncs" - ], + "description": "Get user details", + "operationId": "GetUser", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" + "$ref": "#/components/parameters/user_id" } ], "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Sync" + "$ref": "#/components/schemas/User" } } - } + }, + "description": "Response" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -10778,44 +9820,71 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "users", + "admin" + ] }, "patch": { - "description": "Update a Sync", - "operationId": "UpdateSync", - "tags": [ - "syncs" - ], + "description": "Update user", + "operationId": "UpdateUser", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" + "$ref": "#/components/parameters/user_id" } ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncUpdate" + "type": "object", + "additionalProperties": false, + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "roles": { + "description": "Roles for the user", + "type": "array", + "minItems": 0, + "items": { + "$ref": "#/components/schemas/RoleID" + } + } + } } } } }, "responses": { "200": { - "description": "Updated", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Sync" + "$ref": "#/components/schemas/User" } } } @@ -10823,6 +9892,9 @@ "400": { "$ref": "#/components/responses/BadRequest" }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, "403": { "$ref": "#/components/responses/Forbidden" }, @@ -10835,25 +9907,23 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "users", + "admin" + ] }, "delete": { - "description": "Delete Sync. This will delete Sync configuration and all associated sync runs, but will not delete the associated source and destination(s). These will need to be deleted separately.", - "operationId": "DeleteSync", - "tags": [ - "syncs" - ], + "description": "Delete user", + "operationId": "DeleteUser", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" + "$ref": "#/components/parameters/user_id" } ], "responses": { "204": { - "description": "Deleted" + "description": "Response" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -10861,6 +9931,9 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -10870,93 +9943,25 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "users", + "admin" + ] } }, - "/teams/{team_name}/syncs/{sync_name}/runs": { - "get": { - "description": "List all Sync Runs.", - "operationId": "ListSyncRuns", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/migration_filter" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SyncRun" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } - } - } - } - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - }, - "post": { - "description": "Create new SyncRun. This will trigger a manual job run.", - "operationId": "CreateSyncRun", - "tags": [ - "syncs" - ], + "/users/{user_id}/totp": { + "delete": { + "description": "Disable/Reset MFA for a specific user", + "operationId": "DeleteUserTOTP", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" + "$ref": "#/components/parameters/user_id" } ], "responses": { - "201": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncRun" - } - } - } + "204": { + "description": "Success" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -10964,96 +9969,70 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "users" + ] } }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}": { + "/auth/saml": { "get": { - "description": "Get a Sync Run.", - "operationId": "GetSyncRun", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - } - ], + "description": "Get SAML integration information", + "operationId": "GetSAML", "responses": { "200": { - "description": "Response", + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncRunDetails" + "$ref": "#/components/schemas/SAMLConfig" } } } }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" + "400": { + "$ref": "#/components/responses/BadRequest" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "admin" + ] }, "patch": { - "description": "Update a SyncRun", - "operationId": "UpdateSyncRun", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - } - ], + "description": "Update SAML integration information", + "operationId": "UpdateSAML", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "status": { - "$ref": "#/components/schemas/SyncRunStatus" - }, - "status_reason": { - "$ref": "#/components/schemas/SyncRunStatusReason" - } - } + "$ref": "#/components/schemas/SAMLConfigUpdate" } } } }, "responses": { "200": { - "description": "Updated", + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncRun" + "$ref": "#/components/schemas/SAMLConfig" } } } @@ -11061,9 +10040,6 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -11073,93 +10049,77 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "admin" + ] } }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/logs": { - "get": { - "description": "Deprecated. Get logs for a sync run.", - "operationId": "GetSyncRunLogs", - "tags": [ - "syncs" - ], - "parameters": [ - { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - }, - { - "in": "query", - "name": "table", - "required": false, - "schema": { - "type": "string", - "description": "Table name to filter logs by. Use a single dash (\"-\") as input to exclude all table-specific log lines." - } - } - ], + "/auth/saml/rollover": { + "put": { + "description": "Create new SAML rollover certificate", + "operationId": "CreateSAMLRolloverCertificate", "responses": { "200": { - "description": "Response", + "description": "Success", "content": { "application/json": { "schema": { - "additionalProperties": false, - "required": [ - "location" - ], - "properties": { - "location": { - "type": "string", - "format": "uri", - "description": "The location to download the sync run logs from" - } - }, - "title": "Sync Run Logs", - "type": "object" - } - }, - "text/plain": { - "schema": { - "type": "string", - "description": "Chunked response logs for a sync run that is in progress." + "$ref": "#/components/schemas/SAMLConfig" } } } }, - "204": { - "description": "No logs available for a sync run that has not started." + "400": { + "$ref": "#/components/responses/BadRequest" }, - "302": { - "description": "Redirect to the logs download URL for a sync run that has completed.", - "headers": { - "Location": { - "schema": { - "type": "string", - "description": "URL to download logs" + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + }, + "tags": [ + "admin" + ] + }, + "delete": { + "description": "Delete current SAML rollover certificate", + "operationId": "DeleteSAMLRolloverCertificate", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "fingerprint" + ], + "properties": { + "fingerprint": { + "type": "string", + "description": "The fingerprint of the rollover certificate to delete", + "example": "SHA256:AB:CD:EF:12:34:56:78:90:AB:CD:EF:12:34:56:78:90" + } } } } + } + }, + "responses": { + "204": { + "description": "Success" }, "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -11169,84 +10129,50 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "admin" + ] } }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/logs/query": { - "get": { - "description": "Get logs for a sync run.", - "operationId": "GetSyncRunLogsQuery", - "tags": [ - "syncs" - ], - "parameters": [ - { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" + "/auth/saml/rollover/promote": { + "put": { + "description": "Promote SAML rollover certificate", + "operationId": "PromoteSAMLRolloverCertificate", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "fingerprint" + ], + "properties": { + "fingerprint": { + "type": "string", + "description": "The fingerprint of the rollover certificate to promote", + "example": "SHA256:AB:CD:EF:12:34:56:78:90:AB:CD:EF:12:34:56:78:90" + } + } + } } - }, - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - }, - { - "$ref": "#/components/parameters/table_filters" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/download_file" } - ], + }, "responses": { "200": { - "description": "Response", + "description": "Success", "content": { "application/json": { "schema": { - "required": [ - "data", - "metadata" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/TableData" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } - } - }, - "text/plain": { - "schema": { - "type": "string", - "description": "Download file." + "$ref": "#/components/schemas/SAMLConfig" } } } }, - "204": { - "description": "No logs available for a test connection that has not started." - }, "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -11256,65 +10182,33 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "admin" + ] } }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/logs/live": { + "/settings": { "get": { - "description": "Get live logs for a sync run.", - "operationId": "GetSyncRunLogsLive", - "tags": [ - "syncs" - ], - "parameters": [ - { - "in": "header", - "name": "Accept", - "required": false, - "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - }, - { - "in": "query", - "name": "table", - "required": false, - "schema": { - "type": "string", - "description": "Table name to filter logs by. Use a single dash (\"-\") as input to exclude all table-specific log lines." - } - } - ], + "description": "Show current platform settings", + "operationId": "GetSettings", "responses": { "200": { "description": "Response", "content": { - "text/plain": { + "application/json": { "schema": { - "type": "string", - "description": "Chunked response logs for a sync run that is in progress." + "$ref": "#/components/schemas/PlatformSettings" } } } }, - "204": { - "description": "No logs available for a sync run that has not started." - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -11324,260 +10218,119 @@ "500": { "$ref": "#/components/responses/InternalError" } - } - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/progress": { - "post": { - "description": "Create a new sync run progress update.", - "operationId": "CreateSyncRunProgress", - "x-internal": true, + }, "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - } - ], + "admin" + ] + }, + "patch": { + "description": "Update platform settings", + "operationId": "UpdateSettings", "requestBody": { - "required": true, "content": { "application/json": { "schema": { - "type": "object", - "required": [ - "rows", - "warnings", - "errors" - ], - "properties": { - "rows": { - "type": "integer", - "format": "int64", - "description": "Number of rows synced so far" - }, - "warnings": { - "type": "integer", - "format": "int64", - "description": "Number of warnings encountered so far" - }, - "errors": { - "type": "integer", - "format": "int64", - "description": "Number of errors encountered so far" - }, - "status": { - "$ref": "#/components/schemas/SyncRunStatus" - }, - "shard_num": { - "type": "integer", - "format": "int32", - "description": "The shard number that this progress update is for" - }, - "shard_total": { - "type": "integer", - "format": "int32", - "description": "The total number of shards for this sync run" - }, - "table_progress": { - "$ref": "#/components/schemas/SyncRunTableProgress", - "description": "Table-specific progress information including error and row counts per table" - } - } + "$ref": "#/components/schemas/PlatformSettingsUpdate" } } } }, - "responses": { - "204": { - "description": "Progress was reported successfully" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/stats": { - "get": { - "description": "Get statistics on a Sync Run", - "operationId": "GetSyncRunStats", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - } - ], "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SyncRunStats" + "$ref": "#/components/schemas/PlatformSettings" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "admin" + ] } }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/tables": { + "/settings/data": { "get": { - "description": "Get table details on a Sync Run", - "operationId": "GetSyncRunTables", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/table_sort_bys" - }, - { - "$ref": "#/components/parameters/table_sort_dirs" - } - ], + "description": "Show current platform data settings", + "operationId": "GetDataSettings", "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SyncRunTableStat" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "$ref": "#/components/schemas/PlatformDataSettings" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/connector/{connector_id}/credentials": { - "get": { - "description": "Get connector credentials for a sync run.", - "operationId": "GetSyncRunConnectorCredentials", - "x-internal": true, + }, "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - }, - { - "$ref": "#/components/parameters/connector_id" + "admin" + ] + }, + "patch": { + "description": "Update platform data settings", + "operationId": "UpdateDataSettings", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlatformDataSettingsUpdate" + } + } } - ], + }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "aws": { - "$ref": "#/components/schemas/ConnectorCredentialsResponseAWS" - }, - "oauth": { - "$ref": "#/components/schemas/ConnectorCredentialsResponseOAuth" - } - } + "$ref": "#/components/schemas/PlatformDataSettings" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -11587,99 +10340,114 @@ "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "admin" + ] } }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/connector/{connector_id}/identity": { + "/user": { "get": { - "description": "Get connector identity for a sync run.", - "operationId": "GetSyncRunConnectorIdentity", - "x-internal": true, - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_name" - }, - { - "$ref": "#/components/parameters/sync_run_id" - }, - { - "$ref": "#/components/parameters/connector_id" - } - ], + "description": "Get the current authenticated user from the OAuth token\n", + "operationId": "GetCurrentUser", + "parameters": [], "responses": { "200": { - "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "aws": { - "$ref": "#/components/schemas/ConnectorIdentityResponseAWS" + "allOf": [ + { + "$ref": "#/components/schemas/User" + }, + { + "type": "object", + "properties": { + "event_identifiers": { + "type": "object", + "additionalProperties": true + }, + "group_identifier": { + "type": "string" + }, + "registered_team_name": { + "type": "string", + "description": "The name of the team that the platform is registered with" + }, + "registered_team_internal": { + "type": "boolean", + "description": "Whether the team is internal or not" + } + } } - } + ] } } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" + }, + "description": "Response" }, "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/BasicError" + }, + { + "properties": { + "password_reset_required": { + "type": "boolean", + "description": "Whether the user needs to reset their password" + } + } + } + ] + } + } + } }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "403": { + "$ref": "#/components/responses/Forbidden" }, "500": { "$ref": "#/components/responses/InternalError" } - } - } - }, - "/teams/{team_name}/syncs/test-connections/{sync_test_connection_id}/connector/{connector_id}/credentials": { - "get": { - "description": "Get connector credentials for a test connection", - "operationId": "GetTestConnectionConnectorCredentials", - "x-internal": true, + }, "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_test_connection_id" - }, - { - "$ref": "#/components/parameters/connector_id" + "users" + ] + }, + "patch": { + "description": "Update attributes for the current authenticated user from the OAuth token", + "operationId": "UpdateCurrentUser", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "$ref": "#/components/schemas/UserName" + }, + "tracking_opt_in": { + "type": "boolean", + "description": "Whether to opt in or out of anonymous user tracking" + } + } + } + } } - ], + }, "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "aws": { - "$ref": "#/components/schemas/ConnectorCredentialsResponseAWS" - }, - "oauth": { - "$ref": "#/components/schemas/ConnectorCredentialsResponseOAuth" - } - } + "$ref": "#/components/schemas/User" } } } @@ -11690,111 +10458,128 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "404": { - "$ref": "#/components/responses/NotFound" + "403": { + "$ref": "#/components/responses/Forbidden" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "405": { + "$ref": "#/components/responses/MethodNotAllowed" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "users" + ] } }, - "/teams/{team_name}/syncs/test-connections/{sync_test_connection_id}/connector/{connector_id}/identity": { - "get": { - "description": "Get connector identity for a test connection.", - "operationId": "GetTestConnectionConnectorIdentity", + "/user/anon-event": { + "post": { + "description": "Send an anonymous event", + "operationId": "SendAnonymousEvent", "x-internal": true, - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_test_connection_id" - }, - { - "$ref": "#/components/parameters/connector_id" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "object", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "anonymous_id" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of event" + }, + "anonymous_id": { + "type": "string", + "description": "Anonymous ID identifying the user", + "x-go-name": "AnonymousID" + }, "properties": { - "aws": { - "$ref": "#/components/schemas/ConnectorIdentityResponseAWS" - } + "type": "object", + "description": "Properties of event, keys should be of string type" } } } } + } + }, + "responses": { + "204": { + "description": "Success" }, "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "429": { + "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "analytics" + ], + "security": [] } }, - "/teams/{team_name}/tables": { - "get": { - "description": "List Tables", - "operationId": "ListTablesTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" + "/user/authenticate": { + "post": { + "description": "Authenticate a user with password", + "operationId": "AuthenticateUser", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "required": [ + "email", + "password" + ], + "properties": { + "email": { + "type": "string" + }, + "password": { + "type": "string" + } + } + } + } } - ], + }, "responses": { "200": { - "description": "Response", + "description": "Authentication is successful", "content": { "application/json": { "schema": { "required": [ - "items", - "metadata" + "id_token" ], "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TableListItem" - } - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" + "id_token": { + "type": "string", + "x-go-name": "IDToken" } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -11804,75 +10589,65 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "tables" - ] + "users" + ], + "security": [] } }, - "/teams/{team_name}/tables/{table_name}/data": { - "get": { - "description": "List Table Rows", - "operationId": "TableListRowsTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_name" - }, - { - "$ref": "#/components/parameters/table_selects" - }, - { - "$ref": "#/components/parameters/table_filter_mode" - }, - { - "$ref": "#/components/parameters/table_filters" - }, - { - "$ref": "#/components/parameters/table_filter_ids" - }, - { - "$ref": "#/components/parameters/table_sort_bys" - }, - { - "$ref": "#/components/parameters/table_sort_dirs" - }, - { - "$ref": "#/components/parameters/table_group_bys" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" + "/user/change-password": { + "post": { + "description": "Change user password", + "operationId": "ChangeUserPassword", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "required": [ + "email", + "old_password", + "new_password" + ], + "properties": { + "email": { + "type": "string" + }, + "old_password": { + "type": "string" + }, + "new_password": { + "type": "string" + } + } + } + } } - ], + }, "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { + "204": { + "description": "Successful", + "headers": { + "Set-Cookie": { + "description": "Reset session cookie", "schema": { - "required": [ - "data", - "metadata" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/TableData" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "type": "string", + "example": "__session=; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" } } } @@ -11889,6 +10664,9 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, @@ -11897,58 +10675,53 @@ } }, "tags": [ - "tables" + "users" ] } }, - "/teams/{team_name}/tables/{table_name}/data/{table_row_id}": { - "get": { - "description": "Get Table row", - "operationId": "TableRowByIdTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_name" - }, - { - "$ref": "#/components/parameters/table_row_id" - }, - { - "$ref": "#/components/parameters/table_filter_mode" - }, - { - "$ref": "#/components/parameters/table_filters" - }, - { - "$ref": "#/components/parameters/table_filter_ids" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "data", - "matches" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/TableRow" - }, - "matches": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TableRowFieldMatch" - } - } + "/user/customer": { + "patch": { + "description": "Update customer details", + "operationId": "UpdateCustomer", + "x-internal": true, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "required": [ + "first_name", + "last_name" + ], + "properties": { + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "company_name": { + "type": "string" + }, + "learned_about_cq_from": { + "type": "string" + }, + "learned_about_cq_from_other": { + "type": "string" + }, + "phone": { + "type": "string" } } } } + } + }, + "responses": { + "201": { + "description": "Queued for processing" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -11956,9 +10729,6 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -11970,54 +10740,49 @@ } }, "tags": [ - "tables" + "analytics" ] } }, - "/teams/{team_name}/tables/{table_name}/schema": { - "get": { - "description": "Get Table Schema", - "operationId": "TableSchemaTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_name" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "schema", - "default_columns" - ], + "/user/event": { + "post": { + "description": "Send a user event", + "operationId": "SendUserEvent", + "x-internal": true, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of event" + }, "properties": { - "schema": { - "$ref": "#/components/schemas/TableSchema" - }, - "default_columns": { - "type": "array", - "items": { - "type": "string", - "description": "Column name" - } - } + "type": "object", + "description": "Properties of event, keys should be of string type" } } } } + } + }, + "responses": { + "204": { + "description": "Success" + }, + "400": { + "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -12029,57 +10794,59 @@ } }, "tags": [ - "tables" + "analytics" ] } }, - "/teams/{team_name}/tables/schemas": { - "get": { - "description": "Get Table Schemas", - "operationId": "BatchTableSchemasTeam", + "/user/totp/verify": { + "post": { + "description": "Verify a one time password for MFA", + "operationId": "UserTOTPVerify", "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "name": "tables", - "in": "query", - "description": "A list of table names to retrieve schemas for", - "required": true, + "name": "__cqp_sess", + "in": "cookie", + "style": "form", "schema": { - "type": "array", - "items": { - "type": "string", - "minLength": 1 - }, - "example": [ - "aws_ec2_instances", - "aws_s3_buckets" - ] + "type": "string" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "required": [ + "otp" + ], + "properties": { + "otp": { + "type": "string", + "x-go-name": "OTP" + } + } + } + } + } + }, "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { + "204": { + "description": "Multifactor authentication is complete.", + "headers": { + "Set-Cookie": { + "description": "Session cookie", "schema": { - "required": [ - "items" - ], - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BatchTableSchemaItem" - } - } - } + "type": "string", + "example": "__session=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9Cg...; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -12089,42 +10856,29 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "tables" + "users" ] } }, - "/teams/{team_name}/tables/{table_name}/columns": { - "get": { - "description": "Get Table Columns", - "operationId": "TableListColumnsTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_name" - }, - { - "$ref": "#/components/parameters/table_filter_mode" - }, - { - "$ref": "#/components/parameters/table_column_name_filter" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/per_page" - } - ], + "/user/totp": { + "post": { + "description": "Set up MFA for the current user", + "operationId": "UserTOTPSetup", + "parameters": [], "responses": { "200": { "description": "Response", @@ -12132,24 +10886,24 @@ "application/json": { "schema": { "required": [ - "items", - "metadata" + "secret", + "url" ], "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TableColumnListItem" - } + "url": { + "type": "string" }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" + "secret": { + "type": "string" } } } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -12159,6 +10913,9 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, @@ -12167,62 +10924,81 @@ } }, "tags": [ - "tables" + "users" ] - } - }, - "/teams/{team_name}/tables/{table_name}/columns/{column_name}/values": { - "get": { - "description": "Get Table Column Values", - "operationId": "TableColumnListValuesTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" + }, + "delete": { + "description": "Disable MFA for the current user", + "operationId": "UserTOTPDelete", + "parameters": [], + "responses": { + "204": { + "description": "Success" }, - { - "$ref": "#/components/parameters/table_name" + "400": { + "$ref": "#/components/responses/BadRequest" }, - { - "$ref": "#/components/parameters/column_name" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" }, - { - "$ref": "#/components/parameters/table_filter_mode" + "403": { + "$ref": "#/components/responses/Forbidden" }, - { - "$ref": "#/components/parameters/table_column_value_filter" + "404": { + "$ref": "#/components/responses/NotFound" }, - { - "$ref": "#/components/parameters/page" + "405": { + "$ref": "#/components/responses/MethodNotAllowed" }, - { - "$ref": "#/components/parameters/per_page" + "500": { + "$ref": "#/components/responses/InternalError" } - ], + }, + "tags": [ + "users" + ] + } + }, + "/user/login": { + "post": { + "description": "Start a session using ID token", + "operationId": "LoginUser", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "required": [ + "id_token" + ], + "properties": { + "id_token": { + "type": "string", + "x-go-name": "IDToken" + } + } + } + } + } + }, "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { + "204": { + "description": "Authentication is complete.", + "headers": { + "Set-Cookie": { + "description": "Session cookie", "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TableColumnValueListItem" - } - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "type": "string", + "example": "__session=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9Cg...; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, @@ -12232,60 +11008,30 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "405": { + "$ref": "#/components/responses/MethodNotAllowed" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "tables" - ] - } - }, - "/teams/{team_name}/tables/{table_name}/filters": { - "get": { - "description": "List Table Filters", - "operationId": "TableListFiltersTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/filter_tags" - } + "users" ], + "security": [] + }, + "delete": { + "description": "Logout a session", + "operationId": "LogoutUser", "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { + "204": { + "description": "Logout is complete.", + "headers": { + "Set-Cookie": { + "description": "Empty session cookie", "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Filter" - } - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } + "type": "string", + "example": "__session=; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" } } } @@ -12302,56 +11048,101 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" + "405": { + "$ref": "#/components/responses/MethodNotAllowed" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "tables", - "filters" + "users" ] - }, + } + }, + "/v2/sync-destination-test-connections": { "post": { - "description": "Save Table Filter", - "operationId": "TableSaveFilterTeam", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_name" + "description": "Create a test destination connection.", + "operationId": "CreateV2SyncDestinationTestConnection", + "tags": [ + "syncs" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateSyncDestinationTestConnectionV2" + } + } + } + }, + "responses": { + "201": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncDestinationTestConnectionV2" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "500": { + "$ref": "#/components/responses/InternalError" } + } + } + }, + "/v2/sync-destinations": { + "post": { + "description": "Create sync destination based on test connection.", + "operationId": "CreateV2SyncDestination", + "tags": [ + "syncs" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FilterCreate" + "$ref": "#/components/schemas/CreateSyncDestinationV2" } } } }, "responses": { "200": { - "description": "Filter already exists", + "description": "Successful response indicating that an existing sync destination was replaced.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Filter" + "$ref": "#/components/schemas/SyncDestinationV2" } } } }, "201": { - "description": "Filter created", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Filter" + "$ref": "#/components/schemas/SyncDestinationV2" } } } @@ -12362,9 +11153,6 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -12374,29 +11162,29 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "tables", - "filters" - ] - } - }, - "/teams/{team_name}/tables/{table_name}/filters/tags": { + } + }, "get": { - "description": "List Filter Tags For A Table", - "operationId": "TableListFilterTagsTeam", + "description": "List all sync destination definitions.", + "operationId": "GetV2SyncDestinations", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/table_name" + "$ref": "#/components/parameters/page" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/sync_name_filter" }, { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/sync_generic_sort_bys" + }, + { + "$ref": "#/components/parameters/sync_sort_dirs" } ], "responses": { @@ -12411,10 +11199,10 @@ ], "properties": { "items": { - "type": "array", "items": { - "$ref": "#/components/schemas/FilterTag" - } + "$ref": "#/components/schemas/SyncDestinationV2" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -12424,47 +11212,31 @@ } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "queries", - "filters" - ] + } } }, - "/teams/{team_name}/tables/{table_name}/relations": { + "/v2/sync-destinations/{sync_destination_name}": { "get": { - "description": "List Table Relations", - "operationId": "TableListRelationsTeam", + "description": "Get a single sync destination definition.", + "operationId": "GetV2SyncDestination", + "tags": [ + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/table_name" - }, - { - "name": "relation_name", - "description": "Filter by related table name", - "in": "query", - "required": false, - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/sync_destination_name" } ], "responses": { @@ -12473,113 +11245,50 @@ "content": { "application/json": { "schema": { - "required": [ - "data" - ], - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TableRelation" - } - } - } + "$ref": "#/components/schemas/SyncDestinationV2" } } } }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, "500": { "$ref": "#/components/responses/InternalError" } - }, + } + }, + "patch": { + "description": "Update a Sync Destination definition.", + "operationId": "PatchV2SyncDestination", "tags": [ - "tables" - ] - } - }, - "/teams/{team_name}/usage-summary": { - "get": { - "description": "Get a summary of usage for the specified time range.", - "operationId": "GetTeamUsageSummary", + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "in": "query", - "name": "metrics", - "required": false, - "schema": { - "type": "array", - "description": "A list of metrics to include in the response. Each metric must be one of the predefined valid values. If not provided, only `paid-rows` will be included.", - "items": { - "type": "string", - "enum": [ - "paid_rows", - "cloud_vcpu_seconds", - "cloud_vram_byte_seconds", - "network_egress_bytes" - ] - }, - "default": [ - "paid_rows" - ] - } - }, - { - "in": "query", - "name": "start", - "required": false, - "schema": { - "type": "string", - "format": "date-time", - "description": "A valid ISO-8601-formatted date and time, indicating the inclusive start of the query time range. Defaults to 30 days ago." - } - }, - { - "in": "query", - "name": "end", - "required": false, - "schema": { - "type": "string", - "format": "date-time", - "description": "A valid ISO-8601-formatted date and time, indicating the exclusive end of the query time range. Defaults to the current time." - } - }, - { - "in": "query", - "name": "aggregation_period", - "description": "An aggregation period to sum data over. In other words, data will be returned at this granularity. Currently only supports day and month.", - "required": false, - "schema": { - "type": "string", - "default": "day", - "enum": [ - "day", - "month" - ] - } + "$ref": "#/components/parameters/sync_destination_name" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncDestinationUpdateV2" + } + } + } + }, "responses": { "200": { - "description": "A summary of usage for the specified time range.", + "description": "Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsageSummary" + "$ref": "#/components/schemas/SyncDestination" } } } @@ -12590,9 +11299,6 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -12602,110 +11308,26 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, + } + }, + "delete": { + "description": "Delete a Sync Destination definition. Any syncs relying on this destination must be deleted first.", + "operationId": "DeleteV2SyncDestination", "tags": [ - "teams" - ] - } - }, - "/teams/{team_name}/usage-summary/{group_by}": { - "get": { - "description": "Get a grouped summary of usage for the specified time range.", - "operationId": "GetGroupedTeamUsageSummary", + "syncs" + ], "parameters": [ { - "$ref": "#/components/parameters/team_name" - }, - { - "in": "path", - "name": "group_by", - "required": true, - "schema": { - "type": "string", - "enum": [ - "price_category", - "plugin", - "sync_id" - ], - "description": "Group by usage summary. `plugin` and `price_category` groupings are only available for `paid-rows`." - } - }, - { - "in": "query", - "name": "metrics", - "required": false, - "schema": { - "type": "array", - "description": "A list of metrics to include in the response. Each metric must be one of the predefined valid values. If not provided, only `paid-rows` will be included.", - "items": { - "type": "string", - "enum": [ - "paid_rows", - "cloud_vcpu_seconds", - "cloud_vram_byte_seconds", - "network_egress_bytes" - ] - }, - "default": [ - "paid_rows" - ] - } - }, - { - "in": "query", - "name": "start", - "required": false, - "schema": { - "type": "string", - "format": "date-time", - "description": "A valid ISO-8601-formatted date and time, indicating the inclusive start of the query time range. Defaults to 30 days ago." - } - }, - { - "in": "query", - "name": "end", - "required": false, - "schema": { - "type": "string", - "format": "date-time", - "description": "A valid ISO-8601-formatted date and time, indicating the exclusive end of the query time range. Defaults to the current time." - } - }, - { - "in": "query", - "name": "aggregation_period", - "description": "An aggregation period to sum data over. In other words, data will be returned at this granularity. Currently only supports day and month.", - "required": false, - "schema": { - "type": "string", - "default": "day", - "enum": [ - "day", - "month" - ] - } + "$ref": "#/components/parameters/sync_destination_name" } ], "responses": { - "200": { - "description": "A summary of usage for the specified time range.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UsageSummary" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" + "204": { + "description": "Deleted" }, "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, @@ -12715,25 +11337,33 @@ "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "teams" - ] + } } }, - "/teams/{team_name}/users": { + "/rbac/permissions": { "get": { - "description": "List all users in the current team.", - "operationId": "ListUsersByTeam", + "description": "List all permissions", + "operationId": "ListAllRBACPermissions", "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/rbac_permissions_sort_bys" + }, + { + "$ref": "#/components/parameters/rbac_permissions_sort_dirs" + }, + { + "name": "search_term", + "in": "query", + "schema": { + "type": "string" + }, + "description": "Filter permissions by name or description." } ], "responses": { @@ -12749,7 +11379,7 @@ "properties": { "items": { "items": { - "$ref": "#/components/schemas/User" + "$ref": "#/components/schemas/RBACPermission" }, "type": "array" }, @@ -12773,47 +11403,37 @@ "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "teams" + "rbac" ] - } - }, - "/upload/image": { + }, "post": { - "description": "Get a URL to upload image that will be publicly accessible", - "operationId": "UploadImage", - "parameters": [], - "tags": [ - "images" - ], + "description": "Create a permission", + "operationId": "CreateRBACPermission", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "required": [ - "content_type" - ], - "properties": { - "content_type": { - "$ref": "#/components/schemas/ContentType" - } - } + "$ref": "#/components/schemas/RBACPermissionCreate" } } } }, "responses": { - "200": { - "description": "Response", + "201": { + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImageURL" + "$ref": "#/components/schemas/RBACPermission" } } } @@ -12821,114 +11441,95 @@ "400": { "$ref": "#/components/responses/BadRequest" }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "rbac" + ] } }, - "/user": { + "/rbac/permissions/{permission_id}": { "get": { - "description": "Get the current authenticated user from the OAuth token\n", - "operationId": "GetCurrentUser", - "parameters": [], + "description": "Get a permission", + "operationId": "GetRBACPermission", + "parameters": [ + { + "$ref": "#/components/parameters/rbac_permission_id" + } + ], "responses": { "200": { + "description": "Success", "content": { "application/json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/User" - }, - { - "type": "object", - "properties": { - "event_identifiers": { - "type": "object", - "additionalProperties": true - }, - "group_identifier": { - "type": "string" - }, - "registered_team_name": { - "type": "string", - "description": "The name of the team that the platform is registered with" - }, - "registered_team_internal": { - "type": "boolean", - "description": "Whether the team is internal or not" - } - } - } - ] + "$ref": "#/components/schemas/RBACPermission" } } - }, - "description": "Response" + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" }, "401": { - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BasicError" - }, - { - "properties": { - "password_reset_required": { - "type": "boolean", - "description": "Whether the user needs to reset their password" - } - } - } - ] - } - } - } + "$ref": "#/components/responses/RequiresAuthentication" }, "403": { "$ref": "#/components/responses/Forbidden" }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "users" + "rbac" ] }, "patch": { - "description": "Update attributes for the current authenticated user from the OAuth token", - "operationId": "UpdateCurrentUser", - "parameters": [], + "description": "Update a permission", + "operationId": "UpdateRBACPermission", + "parameters": [ + { + "$ref": "#/components/parameters/rbac_permission_id" + } + ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "properties": { - "name": { - "$ref": "#/components/schemas/UserName" - }, - "tracking_opt_in": { - "type": "boolean", - "description": "Whether to opt in or out of anonymous user tracking" - } - } + "$ref": "#/components/schemas/RBACPermissionUpdate" } } } }, "responses": { "200": { - "description": "Response", + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/User" + "$ref": "#/components/schemas/RBACPermission" } } } @@ -12942,116 +11543,106 @@ "403": { "$ref": "#/components/responses/Forbidden" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "users" + "rbac" ] - } - }, - "/user/anon-event": { - "post": { - "description": "Send an anonymous event", - "operationId": "SendAnonymousEvent", - "x-internal": true, - "parameters": [], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "name", - "anonymous_id" - ], - "properties": { - "name": { - "type": "string", - "description": "Name of event" - }, - "anonymous_id": { - "type": "string", - "description": "Anonymous ID identifying the user", - "x-go-name": "AnonymousID" - }, - "properties": { - "type": "object", - "description": "Properties of event, keys should be of string type" - } - } - } - } + }, + "delete": { + "description": "Delete a permission", + "operationId": "DeleteRBACPermission", + "parameters": [ + { + "$ref": "#/components/parameters/rbac_permission_id" } - }, + ], "responses": { "204": { "description": "Success" }, - "400": { - "$ref": "#/components/responses/BadRequest" + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, - "429": { - "$ref": "#/components/responses/TooManyRequests" + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "analytics" - ], - "security": [] + "rbac" + ] } }, - "/user/authenticate": { - "post": { - "description": "Authenticate a user with password", - "operationId": "AuthenticateLocalUser", - "parameters": [], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "email", - "password" - ], - "properties": { - "email": { - "type": "string" - }, - "password": { - "type": "string" - } - } - } - } + "/rbac/roles": { + "get": { + "description": "List all roles", + "operationId": "ListAllRBACRoles", + "parameters": [ + { + "$ref": "#/components/parameters/per_page" + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/rbac_roles_sort_bys" + }, + { + "$ref": "#/components/parameters/rbac_roles_sort_dirs" + }, + { + "name": "search_term", + "in": "query", + "schema": { + "type": "string" + }, + "description": "Filter roles by name or description." + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + }, + "description": "Filter roles by type." } - }, + ], "responses": { "200": { - "description": "Authentication is successful", + "description": "Response", "content": { "application/json": { "schema": { "required": [ - "id_token" + "items", + "metadata" ], "properties": { - "id_token": { - "type": "string", - "x-go-name": "IDToken" + "items": { + "items": { + "$ref": "#/components/schemas/Role" + }, + "type": "array" + }, + "metadata": { + "$ref": "#/components/schemas/ListMetadata" } } } @@ -13070,65 +11661,37 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "users" - ], - "security": [] - } - }, - "/user/change-password": { + "rbac" + ] + }, "post": { - "description": "Change user password", - "operationId": "ChangeLocalUserPassword", - "parameters": [], + "description": "Create a role", + "operationId": "CreateRBACRole", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "email", - "old_password", - "new_password" - ], - "properties": { - "email": { - "type": "string" - }, - "old_password": { - "type": "string" - }, - "new_password": { - "type": "string" - } - } + "$ref": "#/components/schemas/RBACRoleCreate" } } } }, "responses": { - "204": { - "description": "Successful", - "headers": { - "Set-Cookie": { - "description": "Reset session cookie", + "201": { + "description": "Success", + "content": { + "application/json": { "schema": { - "type": "string", - "example": "__session=; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" + "$ref": "#/components/schemas/Role" } } } @@ -13145,9 +11708,6 @@ "404": { "$ref": "#/components/responses/NotFound" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, @@ -13156,53 +11716,29 @@ } }, "tags": [ - "users" + "rbac" ] } }, - "/user/customer": { - "patch": { - "description": "Update customer details", - "operationId": "UpdateCustomer", - "x-internal": true, - "parameters": [], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "first_name", - "last_name" - ], - "properties": { - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "company_name": { - "type": "string" - }, - "learned_about_cq_from": { - "type": "string" - }, - "learned_about_cq_from_other": { - "type": "string" - }, - "phone": { - "type": "string" - } + "/rbac/roles/{role_id}": { + "get": { + "description": "Get a role", + "operationId": "GetRBACRole", + "parameters": [ + { + "$ref": "#/components/parameters/rbac_role_id" + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" } } } - } - }, - "responses": { - "201": { - "description": "Queued for processing" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -13210,50 +11746,51 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "analytics" + "rbac" ] - } - }, - "/user/event": { - "post": { - "description": "Send a user event", - "operationId": "SendUserEvent", - "x-internal": true, - "parameters": [], + }, + "patch": { + "description": "Update a role (custom roles only)", + "operationId": "UpdateRBACRole", + "parameters": [ + { + "$ref": "#/components/parameters/rbac_role_id" + } + ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Name of event" - }, - "properties": { - "type": "object", - "description": "Properties of event, keys should be of string type" - } - } + "$ref": "#/components/schemas/RBACRoleUpdate" } } } }, "responses": { - "204": { - "description": "Success" + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + } }, "400": { "$ref": "#/components/responses/BadRequest" @@ -13261,31 +11798,66 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, "500": { "$ref": "#/components/responses/InternalError" } }, "tags": [ - "analytics" + "rbac" + ] + }, + "delete": { + "description": "Delete a role", + "operationId": "DeleteRBACRole", + "parameters": [ + { + "$ref": "#/components/parameters/rbac_role_id" + } + ], + "responses": { + "204": { + "description": "Success" + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + }, + "tags": [ + "rbac" ] } }, - "/user/invitations": { + "/teams": { "get": { - "operationId": "ListCurrentUserInvitations", - "description": "List of the current user's unaccepted invitations", - "tags": [ - "users" - ], + "description": "List all teams", + "operationId": "ListTeams", "parameters": [ { - "$ref": "#/components/parameters/page" + "$ref": "#/components/parameters/per_page" }, { - "$ref": "#/components/parameters/per_page" + "$ref": "#/components/parameters/page" } ], "responses": { @@ -13300,10 +11872,10 @@ ], "properties": { "items": { - "type": "array", "items": { - "$ref": "#/components/schemas/InvitationWithToken" - } + "$ref": "#/components/schemas/Team" + }, + "type": "array" }, "metadata": { "$ref": "#/components/schemas/ListMetadata" @@ -13313,42 +11885,158 @@ } } }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, "404": { "$ref": "#/components/responses/NotFound" }, "500": { "$ref": "#/components/responses/InternalError" } - } + }, + "tags": [ + "teams" + ] } }, - "/user/totp/verify": { - "post": { - "description": "Verify a one time password for MFA", - "operationId": "UserTOTPVerify", + "/teams/{team_name}/plugins/{plugin_team}/{plugin_kind}/{plugin_name}/versions/{version_name}/assets/{target_name}": { + "get": { + "description": "Download an asset for a given plugin version as the current team.", + "operationId": "DownloadPluginAssetByTeam", "parameters": [ { - "name": "__cqp_sess", - "in": "cookie", - "style": "form", + "in": "header", + "name": "Accept", + "required": false, "schema": { "type": "string" } + }, + { + "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/plugin_team" + }, + { + "$ref": "#/components/parameters/plugin_kind" + }, + { + "$ref": "#/components/parameters/plugin_name" + }, + { + "$ref": "#/components/parameters/version_name" + }, + { + "$ref": "#/components/parameters/target_name" + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PluginAsset" + } + } + } + }, + "302": { + "description": "Response", + "headers": { + "Location": { + "schema": { + "type": "string" + } + } + } + }, + "401": { + "$ref": "#/components/responses/RequiresAuthentication" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + }, + "tags": [ + "plugins" + ] + } + }, + "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/progress": { + "post": { + "description": "Deprecated. Create a new sync run progress update.", + "operationId": "CreateSyncRunProgressTeam", + "x-internal": true, + "deprecated": true, + "tags": [ + "syncs" + ], + "parameters": [ + { + "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/sync_name" + }, + { + "$ref": "#/components/parameters/sync_run_id" } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { "type": "object", - "additionalProperties": false, "required": [ - "otp" + "rows", + "warnings", + "errors" ], "properties": { - "otp": { - "type": "string", - "x-go-name": "OTP" + "rows": { + "type": "integer", + "format": "int64", + "description": "Number of rows synced so far" + }, + "warnings": { + "type": "integer", + "format": "int64", + "description": "Number of warnings encountered so far" + }, + "errors": { + "type": "integer", + "format": "int64", + "description": "Number of errors encountered so far" + }, + "status": { + "$ref": "#/components/schemas/SyncRunStatus" + }, + "shard_num": { + "type": "integer", + "format": "int32", + "description": "The shard number that this progress update is for" + }, + "shard_total": { + "type": "integer", + "format": "int32", + "description": "The total number of shards for this sync run" + }, + "table_progress": { + "$ref": "#/components/schemas/SyncRunTableProgress", + "description": "Table-specific progress information including error and row counts per table" } } } @@ -13357,16 +12045,7 @@ }, "responses": { "204": { - "description": "Multifactor authentication is complete.", - "headers": { - "Set-Cookie": { - "description": "Session cookie", - "schema": { - "type": "string", - "example": "__session=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9Cg...; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" - } - } - } + "description": "Progress was reported successfully" }, "400": { "$ref": "#/components/responses/BadRequest" @@ -13374,53 +12053,69 @@ "401": { "$ref": "#/components/responses/RequiresAuthentication" }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, "404": { "$ref": "#/components/responses/NotFound" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "users" - ] + } } }, - "/user/totp": { - "post": { - "description": "Set up MFA for the current user", - "operationId": "UserTOTPSetup", - "parameters": [], + "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}": { + "patch": { + "description": "Deprecated. Update a sync source test connection.", + "operationId": "UpdateSyncTestConnectionForSyncSourceTeam", + "deprecated": true, + "x-internal": true, + "tags": [ + "syncs" + ], + "parameters": [ + { + "$ref": "#/components/parameters/team_name" + }, + { + "$ref": "#/components/parameters/sync_source_test_connection_id" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "$ref": "#/components/schemas/SyncTestConnectionStatus" + }, + "failure_reason": { + "type": "string", + "description": "Reason for failure", + "example": "password authentication failed for user \"exampleuser\"" + }, + "failure_code": { + "example": "INVALID_CREDENTIALS", + "type": "string", + "description": "Code for failure" + } + } + } + } + } + }, "responses": { "200": { - "description": "Response", + "description": "Updated", "content": { "application/json": { "schema": { - "required": [ - "secret", - "url" - ], - "properties": { - "url": { - "type": "string" - }, - "secret": { - "type": "string" - } - } + "$ref": "#/components/schemas/SyncSourceTestConnection" } } } @@ -13428,110 +12123,59 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, "422": { "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "users" - ] - }, - "delete": { - "description": "Disable MFA for the current user", - "operationId": "UserTOTPDelete", - "parameters": [], - "responses": { - "204": { - "description": "Success" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "users" - ] + } } }, - "/user/local": { - "get": { - "description": "Get the current authenticated local user", - "operationId": "GetCurrentLocalUser", - "parameters": [], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LocalUserWithTeams" - } - } - }, - "description": "Response" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" + "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}": { + "patch": { + "description": "Deprecated. Update a sync destination test connection.", + "operationId": "UpdateSyncTestConnectionForSyncDestinationTeam", + "deprecated": true, + "x-internal": true, + "tags": [ + "syncs" + ], + "parameters": [ + { + "$ref": "#/components/parameters/team_name" }, - "500": { - "$ref": "#/components/responses/InternalError" + { + "$ref": "#/components/parameters/sync_destination_test_connection_id" } - }, - "tags": [ - "users" - ] - } - }, - "/user/login": { - "post": { - "description": "Start a session using ID token", - "operationId": "LoginUser", - "parameters": [], + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", - "additionalProperties": false, "required": [ - "id_token" + "status" ], "properties": { - "id_token": { + "status": { + "$ref": "#/components/schemas/SyncTestConnectionStatus" + }, + "failure_reason": { "type": "string", - "x-go-name": "IDToken" + "description": "Reason for failure", + "example": "password authentication failed for user \"exampleuser\"" + }, + "failure_code": { + "example": "INVALID_CREDENTIALS", + "type": "string", + "description": "Code for failure" } } } @@ -13539,14 +12183,12 @@ } }, "responses": { - "204": { - "description": "Authentication is complete.", - "headers": { - "Set-Cookie": { - "description": "Session cookie", + "200": { + "description": "Updated", + "content": { + "application/json": { "schema": { - "type": "string", - "example": "__session=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9Cg...; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" + "$ref": "#/components/schemas/SyncDestinationTestConnection" } } } @@ -13554,1222 +12196,35 @@ "400": { "$ref": "#/components/responses/BadRequest" }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" + "422": { + "$ref": "#/components/responses/UnprocessableEntity" }, "500": { "$ref": "#/components/responses/InternalError" } - }, - "tags": [ - "users" - ], - "security": [] + } + } + } + }, + "components": { + "securitySchemes": { + "bearerAuth": { + "scheme": "bearer", + "type": "http" }, - "delete": { - "description": "Logout a session", - "operationId": "LogoutUser", - "responses": { - "204": { - "description": "Logout is complete.", - "headers": { - "Set-Cookie": { - "description": "Empty session cookie", - "schema": { - "type": "string", - "example": "__session=; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "users" - ] - } - }, - "/user/memberships": { - "get": { - "description": "Get memberships that the user has accepted.", - "operationId": "GetCurrentUserMemberships", - "parameters": [ - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/per_page" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "required": [ - "metadata", - "items" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/MembershipWithTeam" - }, - "type": "array", - "example": [ - { - "roles": [ - "admin:write" - ], - "team": { - "created_at": "2017-07-14T16:53:42Z", - "name": "cloudquery", - "display_name": "CloudQuery", - "plan": "free", - "is_trial_active": false, - "internal": false - } - } - ] - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } - } - } - }, - "description": "Response" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "users" - ] - } - }, - "/user/reset-password-token": { - "post": { - "description": "Reset user password with token", - "operationId": "ResetLocalUserPassword", - "parameters": [], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "required": [ - "email", - "reset_token", - "new_password" - ], - "properties": { - "email": { - "type": "string" - }, - "reset_token": { - "type": "string" - }, - "new_password": { - "type": "string" - } - } - } - } - } - }, - "responses": { - "204": { - "description": "Successful", - "headers": { - "Set-Cookie": { - "description": "Reset session cookie", - "schema": { - "type": "string", - "example": "__session=; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "405": { - "$ref": "#/components/responses/MethodNotAllowed" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "users" - ], - "security": [] - } - }, - "/user/token": { - "post": { - "description": "Start a CLI session and create a custom token", - "operationId": "CreateUserToken", - "x-internal": true, - "responses": { - "201": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "custom_token" - ], - "properties": { - "custom_token": { - "type": "string", - "description": "Token to exchange for refresh token" - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "users" - ], - "security": [ - { - "cookieAuth": [] - } - ] - } - }, - "/users/{user_id}": { - "delete": { - "description": "Delete user", - "operationId": "DeleteUser", - "parameters": [ - { - "$ref": "#/components/parameters/user_id" - } - ], - "x-internal": true, - "responses": { - "204": { - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "users" - ] - } - }, - "/registry/auth": { - "get": { - "description": "Performs authentication and authorization for our image registry.", - "operationId": "AuthRegistryRequest", - "parameters": [ - { - "in": "header", - "name": "X-Meta-Plugin-Version", - "schema": { - "type": "string" - }, - "description": "Plugin version name", - "example": "v1.0.0" - }, - { - "in": "header", - "name": "X-Meta-User-Team-Name", - "schema": { - "type": "string" - }, - "description": "User's team name" - }, - { - "in": "query", - "name": "account", - "schema": { - "type": "string" - }, - "description": "Username used for `docker login`" - }, - { - "in": "query", - "name": "service", - "schema": { - "type": "string" - }, - "description": "Service requesting the JWT token" - }, - { - "in": "query", - "name": "scope", - "schema": { - "type": "string" - }, - "description": "Multi-value string containing the repository being access and the operation type (push/pull)" - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RegistryAuthToken" - } - } - }, - "description": "Response" - }, - "400": { - "$ref": "#/components/responses/DockerError" - }, - "401": { - "$ref": "#/components/responses/DockerError" - }, - "404": { - "$ref": "#/components/responses/DockerError" - }, - "422": { - "$ref": "#/components/responses/DockerError" - }, - "500": { - "$ref": "#/components/responses/DockerError" - } - }, - "tags": [ - "registry" - ], - "security": [ - { - "basicAuth": [] - } - ] - } - }, - "/v2/teams/{team_name}/sync-destination-test-connections": { - "post": { - "description": "Create a test destination connection.", - "operationId": "CreateV2SyncDestinationTestConnection", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSyncDestinationTestConnectionV2" - } - } - } - }, - "responses": { - "201": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestinationTestConnectionV2" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "429": { - "$ref": "#/components/responses/TooManyRequests" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/v2/teams/{team_name}/sync-destinations": { - "post": { - "description": "Create sync destination based on test connection.", - "operationId": "CreateV2SyncDestination", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSyncDestinationV2" - } - } - } - }, - "responses": { - "200": { - "description": "Successful response indicating that an existing sync destination was replaced.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestinationV2" - } - } - } - }, - "201": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestinationV2" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - }, - "get": { - "description": "List all sync destination definitions.", - "operationId": "GetV2SyncDestinations", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/sync_name_filter" - }, - { - "$ref": "#/components/parameters/sync_generic_sort_bys" - }, - { - "$ref": "#/components/parameters/sync_sort_dirs" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SyncDestinationV2" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/v2/teams/{team_name}/sync-destinations/{sync_destination_name}": { - "get": { - "description": "Get a single sync destination definition.", - "operationId": "GetV2SyncDestination", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestinationV2" - } - } - } - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - }, - "patch": { - "description": "Update a Sync Destination definition.", - "operationId": "PatchV2SyncDestination", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestinationUpdateV2" - } - } - } - }, - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SyncDestination" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - }, - "delete": { - "description": "Delete a Sync Destination definition. Any syncs relying on this destination must be deleted first.", - "operationId": "DeleteV2SyncDestination", - "tags": [ - "syncs" - ], - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/sync_destination_name" - } - ], - "responses": { - "204": { - "description": "Deleted" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - } - } - }, - "/teams/{team_name}/rbac/permissions": { - "get": { - "description": "List all permissions", - "operationId": "ListAllRBACPermissions", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/rbac_permissions_sort_bys" - }, - { - "$ref": "#/components/parameters/rbac_permissions_sort_dirs" - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter permissions by name or description." - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/RBACPermission" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - }, - "post": { - "description": "Create a permission", - "operationId": "CreateRBACPermission", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACPermissionCreate" - } - } - } - }, - "responses": { - "201": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACPermission" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - } - }, - "/teams/{team_name}/rbac/permissions/{permission_id}": { - "get": { - "description": "Get a permission", - "operationId": "GetRBACPermission", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/rbac_permission_id" - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACPermission" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - }, - "patch": { - "description": "Update a permission", - "operationId": "UpdateRBACPermission", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/rbac_permission_id" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACPermissionUpdate" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACPermission" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - }, - "delete": { - "description": "Delete a permission", - "operationId": "DeleteRBACPermission", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/rbac_permission_id" - } - ], - "responses": { - "204": { - "description": "Success" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - } - }, - "/teams/{team_name}/rbac/roles": { - "get": { - "description": "List all roles", - "operationId": "ListAllRBACRoles", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/per_page" - }, - { - "$ref": "#/components/parameters/page" - }, - { - "$ref": "#/components/parameters/rbac_roles_sort_bys" - }, - { - "$ref": "#/components/parameters/rbac_roles_sort_dirs" - }, - { - "name": "search_term", - "in": "query", - "schema": { - "type": "string" - }, - "description": "Filter roles by name or description." - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "required": [ - "items", - "metadata" - ], - "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/RBACRole" - }, - "type": "array" - }, - "metadata": { - "$ref": "#/components/schemas/ListMetadata" - } - } - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - }, - "post": { - "description": "Create a role", - "operationId": "CreateRBACRole", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACRoleCreate" - } - } - } - }, - "responses": { - "201": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACRole" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - } - }, - "/teams/{team_name}/rbac/roles/{role_id}": { - "get": { - "description": "Get a role", - "operationId": "GetRBACRole", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/rbac_role_id" - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACRole" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - }, - "patch": { - "description": "Update a role (custom roles only)", - "operationId": "UpdateRBACRole", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/rbac_role_id" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACRoleUpdate" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RBACRole" - } - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - }, - "delete": { - "description": "Delete a role", - "operationId": "DeleteRBACRole", - "parameters": [ - { - "$ref": "#/components/parameters/team_name" - }, - { - "$ref": "#/components/parameters/rbac_role_id" - } - ], - "responses": { - "204": { - "description": "Success" - }, - "401": { - "$ref": "#/components/responses/RequiresAuthentication" - }, - "403": { - "$ref": "#/components/responses/Forbidden" - }, - "404": { - "$ref": "#/components/responses/NotFound" - }, - "422": { - "$ref": "#/components/responses/UnprocessableEntity" - }, - "500": { - "$ref": "#/components/responses/InternalError" - } - }, - "tags": [ - "rbac" - ] - } - } - }, - "components": { - "securitySchemes": { - "bearerAuth": { - "scheme": "bearer", - "type": "http" - }, - "basicAuth": { - "scheme": "basic", - "type": "http" - }, - "cookieAuth": { - "scheme": "cookie", - "type": "http" + "basicAuth": { + "scheme": "basic", + "type": "http" + }, + "cookieAuth": { + "scheme": "cookie", + "type": "http" } }, "parameters": { @@ -14798,37 +12253,6 @@ "format": "int64" } }, - "assetview_run_type": { - "name": "type", - "in": "query", - "description": "AssetView run type filters", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AssetViewRunType" - } - }, - "x-go-name": "AssetViewRunTypes" - }, - "team_name": { - "in": "path", - "name": "team_name", - "required": true, - "schema": { - "$ref": "#/components/schemas/TeamName" - } - }, - "user_id": { - "name": "user_id", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/UserID" - }, - "x-go-name": "UserID" - }, "plugin_sort_by": { "description": "The field to sort by", "in": "query", @@ -14875,6 +12299,14 @@ } } }, + "team_name": { + "in": "path", + "name": "team_name", + "required": true, + "schema": { + "$ref": "#/components/schemas/TeamName" + } + }, "plugin_kind": { "in": "path", "name": "plugin_kind", @@ -14977,214 +12409,69 @@ "type": "boolean" } }, - "apikey_id": { - "name": "apikey_id", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/APIKeyID" - }, - "x-go-name": "APIKeyID" - }, - "connector_id": { - "name": "connector_id", - "in": "path", - "required": true, - "x-go-name": "ConnectorID", - "schema": { - "$ref": "#/components/schemas/ConnectorID" - } - }, - "conversation_id": { - "name": "conversation_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "ID of the chat conversation", - "x-go-name": "ConversationID" - }, - "custom_columns_sort_bys": { - "name": "sort_by", + "query_tags": { + "name": "tag", "in": "query", - "description": "Sort by options", + "description": "Query tags", "allowEmptyValue": true, "explode": true, "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/CustomColumnSortBy" + "$ref": "#/components/schemas/QueryTag" } }, "x-go-type-skip-optional-pointer": true, - "x-go-name": "CustomColumnSortBys" + "x-go-name": "QueryTags" }, - "custom_columns_sort_dirs": { - "name": "sort_dir", + "policy_status": { "in": "query", - "description": "Custom column sort direction options", - "allowEmptyValue": true, - "explode": true, + "name": "status", + "required": false, "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomColumnSortDirection" - } + "$ref": "#/components/schemas/PolicyStatus" }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "CustomColumnSortDirections" + "x-go-name": "PolicyStatus" }, - "custom_column_id": { + "policy_id": { "in": "path", - "name": "custom_column_id", + "name": "policy_id", "required": true, "schema": { - "$ref": "#/components/schemas/CustomColumnID" - }, - "x-go-name": "CustomColumnID" - }, - "filter_tags": { - "name": "tag", - "in": "query", - "description": "Filter tags", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FilterTag" - } + "$ref": "#/components/schemas/PolicyID" }, - "x-go-name": "FilterTags" - }, - "filter_name_filter": { - "name": "name_filter", - "in": "query", - "required": false, - "schema": { - "description": "Filter by filter name", - "type": "string" - } - }, - "filter_expression_filter": { - "name": "expression_filter", - "in": "query", - "required": false, - "schema": { - "description": "Filter by filter expression", - "type": "string" - } + "x-go-name": "PolicyID" }, - "filter_id": { + "policy_group_id": { "in": "path", - "name": "filter_id", + "name": "policy_group_id", "required": true, "schema": { - "$ref": "#/components/schemas/FilterID" + "$ref": "#/components/schemas/PolicyGroupID" }, - "x-go-name": "FilterID" - }, - "email_basic": { - "in": "path", - "name": "email", - "required": true, - "schema": { - "type": "string", - "example": "user@example.com" - } + "x-go-name": "PolicyGroupID" }, - "notification_destination_id": { + "apikey_id": { + "name": "apikey_id", "in": "path", - "name": "notification_destination_id", "required": true, "schema": { - "$ref": "#/components/schemas/NotificationDestinationID" + "$ref": "#/components/schemas/APIKeyID" }, - "x-go-name": "NotificationDestinationID" - }, - "onboarding_id": { - "name": "onboarding_id", - "in": "path", - "required": true, - "x-go-name": "OnboardingID", - "schema": { - "$ref": "#/components/schemas/OnboardingID" - } - }, - "aws_orgunit_id": { - "name": "aws_orgunit_id", - "in": "path", - "required": true, - "x-go-name": "OrganizationalUnitID", - "schema": { - "$ref": "#/components/schemas/OrganizationalUnitID" - } - }, - "include_private": { - "description": "Whether to include private plugins", - "in": "query", - "name": "include_private", - "required": false, - "schema": { - "type": "boolean" - } + "x-go-name": "APIKeyID" }, - "plugin_team": { + "conversation_id": { + "name": "conversation_id", "in": "path", - "name": "plugin_team", "required": true, "schema": { - "$ref": "#/components/schemas/TeamName" - } - }, - "platform_policies_sort_bys": { - "name": "sort_by", - "in": "query", - "description": "Sort by options", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicySortBy" - } - }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "PlatformPolicySortBys" - }, - "platform_policies_sort_dirs": { - "name": "sort_dir", - "in": "query", - "description": "Platform policies sort direction options", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicySortDirection" - } - }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "PlatformPolicySortDirections" - }, - "platform_policy_frameworks_sort_bys": { - "name": "sort_by", - "in": "query", - "description": "Sort by options", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PlatformPolicyFrameworkSortBy" - } + "type": "string", + "format": "uuid" }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "PlatformPolicyFrameworkSortBys" + "description": "ID of the chat conversation", + "x-go-name": "ConversationID" }, - "platform_policy_rules_sort_bys": { + "custom_columns_sort_bys": { "name": "sort_by", "in": "query", "description": "Sort by options", @@ -15193,41 +12480,102 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/PlatformPolicyRuleSortBy" + "$ref": "#/components/schemas/CustomColumnSortBy" } }, "x-go-type-skip-optional-pointer": true, - "x-go-name": "PlatformPolicyRuleSortBys" + "x-go-name": "CustomColumnSortBys" }, - "platform_policy_rule_details_sort_bys": { - "name": "sort_by", + "custom_columns_sort_dirs": { + "name": "sort_dir", "in": "query", - "description": "Sort by options", + "description": "Custom column sort direction options", "allowEmptyValue": true, "explode": true, "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/PlatformPolicyRuleDetailSortBy" + "$ref": "#/components/schemas/CustomColumnSortDirection" } }, "x-go-type-skip-optional-pointer": true, - "x-go-name": "PlatformPolicyRuleDetailSortBys" + "x-go-name": "CustomColumnSortDirections" }, - "query_tags": { + "custom_column_id": { + "in": "path", + "name": "custom_column_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/CustomColumnID" + }, + "x-go-name": "CustomColumnID" + }, + "filter_tags": { "name": "tag", "in": "query", - "description": "Query tags", + "description": "Filter tags", "allowEmptyValue": true, "explode": true, "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/QueryTag" + "$ref": "#/components/schemas/FilterTag" } }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "QueryTags" + "x-go-name": "FilterTags" + }, + "filter_name_filter": { + "name": "name_filter", + "in": "query", + "required": false, + "schema": { + "description": "Filter by filter name", + "type": "string" + } + }, + "filter_expression_filter": { + "name": "expression_filter", + "in": "query", + "required": false, + "schema": { + "description": "Filter by filter expression", + "type": "string" + } + }, + "filter_id": { + "in": "path", + "name": "filter_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/FilterID" + }, + "x-go-name": "FilterID" + }, + "notification_destination_id": { + "in": "path", + "name": "notification_destination_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/NotificationDestinationID" + } + }, + "onboarding_id": { + "name": "onboarding_id", + "in": "path", + "required": true, + "x-go-name": "OnboardingID", + "schema": { + "$ref": "#/components/schemas/OnboardingID" + } + }, + "aws_orgunit_id": { + "name": "aws_orgunit_id", + "in": "path", + "required": true, + "x-go-name": "OrganizationalUnitID", + "schema": { + "$ref": "#/components/schemas/OrganizationalUnitID" + } }, "query_name_filter": { "name": "name_filter", @@ -15272,10 +12620,23 @@ "type": "boolean" } }, + "query_column_filter": { + "name": "column_filter", + "in": "query", + "description": "Filter queries that return all specified columns", + "required": false, + "explode": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, "table_selects": { "name": "select", "in": "query", - "description": "Table selects. This filters the columns that are returned in the result set.", + "description": "Table selects. This filters the columns that are returned in the result set. If empty, all default columns + internal _cq_* columns are returned. To select all columns, use the `*` wildcard.", "allowEmptyValue": true, "explode": true, "schema": { @@ -15384,6 +12745,43 @@ }, "x-go-name": "QueryID" }, + "insight_column_name": { + "in": "path", + "name": "column_name", + "required": true, + "description": "Column for distinct values. Can be a standard column (severity, insight-category, source-category, source, resource-type, account, tag) or an arbitrary owner tag key when is_owner=true.", + "schema": { + "type": "string" + }, + "x-go-name": "InsightColumnName" + }, + "platform_insight_filter_id": { + "in": "path", + "name": "insight_filter_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/PlatformInsightFilterID" + }, + "x-go-name": "InsightFilterID" + }, + "insight_id": { + "in": "path", + "name": "insight_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/InsightID" + }, + "x-go-name": "InsightID" + }, + "asset_id": { + "in": "path", + "name": "asset_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/TableRowID" + }, + "x-go-name": "AssetID" + }, "report_sort_bys": { "name": "sort_by", "in": "query", @@ -15580,160 +12978,19 @@ "x-pattern-message": "can contain only alphanumerical characters, dashes, and underscores" } }, - "sync_transformer_name": { - "name": "sync_transformer_name", - "in": "path", - "required": true, - "schema": { - "description": "Unique name of the sync transformer", - "type": "string", - "pattern": "^[a-zA-Z0-9_-]+$", - "x-go-name": "SyncTransformerName", - "x-pattern-message": "can contain only alphanumerical characters, dashes, and underscores" - } - }, - "sync_upgrades_sort_bys": { - "name": "sort_by", - "in": "query", - "description": "Sort by options", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "kind", - "path", - "prev_version", - "new_version", - "created_at" - ] - } - }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "SyncUpgradesSortBys" - }, - "sync_upgrades_path_filter": { - "name": "path", - "in": "query", - "required": false, - "schema": { - "$ref": "#/components/schemas/SyncPluginPath", - "example": "cloudquery/aws", - "description": "Filter by plugin path" - } - }, - "sync_upgrades_kind_filter": { - "name": "kind", - "in": "query", - "required": false, - "schema": { - "$ref": "#/components/schemas/PluginKind", - "description": "Filter by plugin kind" - } - }, - "sync_upgrades_platform_version_filter": { - "name": "platform_version", - "in": "query", - "required": false, - "schema": { - "type": "string", - "example": "v1.1.0", - "description": "Filter by platform version" - } - }, - "sync_run_id": { - "name": "sync_run_id", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/SyncRunID" - } - }, - "table_name": { - "in": "path", - "name": "table_name", - "required": true, - "schema": { - "$ref": "#/components/schemas/TableName" - } - }, - "table_row_id": { - "in": "path", - "name": "table_row_id", - "required": true, - "schema": { - "$ref": "#/components/schemas/TableRowID" - } - }, - "table_column_name_filter": { - "name": "filter", - "in": "query", - "required": false, - "schema": { - "description": "Filter by column name", - "type": "string" - } - }, - "column_name": { - "in": "path", - "name": "column_name", - "required": true, - "schema": { - "description": "The name of a table column.", - "type": "string" - } - }, - "table_column_value_filter": { - "name": "filter", - "in": "query", - "required": false, - "schema": { - "description": "Filter by column value.", - "type": "string" - } - }, - "rbac_permissions_sort_bys": { - "name": "sort_by", - "in": "query", - "description": "Sort by options", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RBACPermissionSortBy" - } - }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "RBACPermissionSortBys" - }, - "rbac_permissions_sort_dirs": { - "name": "sort_dir", - "in": "query", - "description": "Sort direction options", - "allowEmptyValue": true, - "explode": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RBACPermissionSortDirection" - } - }, - "x-go-type-skip-optional-pointer": true, - "x-go-name": "RBACPermissionSortDirections" - }, - "rbac_permission_id": { + "sync_transformer_name": { + "name": "sync_transformer_name", "in": "path", - "name": "permission_id", "required": true, "schema": { - "$ref": "#/components/schemas/RBACPermissionID" - }, - "x-go-name": "RBACPermissionID" + "description": "Unique name of the sync transformer", + "type": "string", + "pattern": "^[a-zA-Z0-9_-]+$", + "x-go-name": "SyncTransformerName", + "x-pattern-message": "can contain only alphanumerical characters, dashes, and underscores" + } }, - "rbac_roles_sort_bys": { + "sync_upgrades_sort_bys": { "name": "sort_by", "in": "query", "description": "Sort by options", @@ -15742,550 +12999,228 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/RBACRoleSortBy" + "type": "string", + "enum": [ + "kind", + "path", + "prev_version", + "new_version", + "created_at" + ] } }, "x-go-type-skip-optional-pointer": true, - "x-go-name": "RBACRoleSortBys" + "x-go-name": "SyncUpgradesSortBys" }, - "rbac_roles_sort_dirs": { - "name": "sort_dir", + "sync_upgrades_path_filter": { + "name": "path", "in": "query", - "description": "Sort direction options", + "required": false, + "schema": { + "$ref": "#/components/schemas/SyncPluginPath", + "example": "cloudquery/aws", + "description": "Filter by plugin path" + } + }, + "sync_upgrades_kind_filter": { + "name": "kind", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/PluginKind", + "description": "Filter by plugin kind" + } + }, + "sync_upgrades_platform_version_filter": { + "name": "platform_version", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "v1.1.0", + "description": "Filter by platform version" + } + }, + "sync_run_id": { + "name": "sync_run_id", + "in": "path", + "required": true, + "schema": { + "$ref": "#/components/schemas/SyncRunID" + } + }, + "sync_run_table_sort_bys": { + "name": "sort_by", + "in": "query", + "description": "Sync run table sort by options. This sorts the rows that are returned in the result set.", "allowEmptyValue": true, "explode": true, "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/RBACRoleSortDirection" + "$ref": "#/components/schemas/SyncRunTableSortBy" } }, "x-go-type-skip-optional-pointer": true, - "x-go-name": "RBACRoleSortDirections" + "x-go-name": "SyncRunTableSortBys" }, - "rbac_role_id": { + "table_name": { "in": "path", - "name": "role_id", + "name": "table_name", "required": true, "schema": { - "$ref": "#/components/schemas/RBACCustomRoleID" - }, - "x-go-name": "RBACCustomRoleID" - } - }, - "schemas": { - "UserName": { - "description": "The unique name for the user.", - "minLength": 1, - "maxLength": 255, - "pattern": "^[a-zA-Z\\p{L}][a-zA-Z\\p{L} \\-']*$", - "x-pattern-message": "can contain only letters, spaces, hyphens, and apostrophes, starting with a letter", - "type": "string", - "example": "Sarah O'Connor" - }, - "User": { - "additionalProperties": false, - "description": "CloudQuery User", - "properties": { - "created_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", - "type": "string" - }, - "id": { - "description": "ID of the User", - "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "x-go-name": "ID" - }, - "email": { - "type": "string", - "example": "user@example.com" - }, - "name": { - "$ref": "#/components/schemas/UserName" - }, - "updated_at": { - "example": "2017-07-14T16:53:42Z", - "type": "string", - "format": "date-time" - }, - "profile_image_url": { - "type": "string", - "description": "Profile image URL of user", - "x-go-name": "ProfileImageURL" - }, - "last_login_at": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "email" - ], - "title": "CloudQuery User", - "type": "object" - }, - "AuditLogEvent": { - "type": "object", - "required": [ - "id", - "user", - "event_type", - "created_at", - "user_ip_address" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The unique identifier of the audit log event" - }, - "user": { - "$ref": "#/components/schemas/User", - "description": "The user who performed the action" - }, - "user_ip_address": { - "type": "string", - "description": "The IP address of the user who performed the action" - }, - "team_name": { - "type": "string", - "description": "The name of the team associated with the event", - "nullable": true - }, - "event_type": { - "type": "string", - "description": "The type of event that was logged" - }, - "entity_display_name": { - "type": "string", - "description": "The display name of the entity that was affected", - "nullable": true - }, - "event_details": { - "type": "object", - "description": "Additional details about the event", - "additionalProperties": true - }, - "is_success": { - "type": "boolean", - "description": "Whether the event was successful" - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "The timestamp when the event was created" - } + "$ref": "#/components/schemas/TableName" } }, - "ListMetadata": { - "required": [ - "page_size" - ], - "properties": { - "total_count": { - "type": "integer" - }, - "last_page": { - "type": "integer" - }, - "page_size": { - "type": "integer" - }, - "time_ms": { - "type": "integer" - } + "table_row_id": { + "in": "path", + "name": "table_row_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/TableRowID" } }, - "BasicError": { - "additionalProperties": false, - "description": "Basic Error", - "required": [ - "message", - "status" - ], - "properties": { - "message": { - "type": "string" - }, - "status": { - "type": "integer" - } - }, - "title": "Basic Error", - "type": "object" - }, - "FieldError": { - "allOf": [ - { - "$ref": "#/components/schemas/BasicError" - }, - { - "properties": { - "errors": { - "items": { - "type": "string" - }, - "type": "array" - }, - "field_errors": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - } - }, - "type": "object" - } - ] - }, - "AssetViewRunType": { - "description": "Type of assetview run", - "type": "string", - "enum": [ - "client_table", - "s3_source" - ] + "table_column_name_filter": { + "name": "filter", + "in": "query", + "required": false, + "schema": { + "description": "Filter by column name", + "type": "string" + } }, - "AssetViewRun": { - "type": "object", - "required": [ - "id", - "type", - "created_at" - ], - "properties": { - "id": { - "description": "ID of the run", - "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "x-go-name": "ID" - }, - "type": { - "$ref": "#/components/schemas/AssetViewRunType" - }, - "triggered_by": { - "description": "The user who triggered the run", - "type": "string" - }, - "error_message": { - "description": "The error message if the run failed", - "type": "string" - }, - "created_at": { - "description": "The time the run was created", - "type": "string", - "format": "date-time", - "example": "2020-01-01T00:00:00Z" - }, - "finished_at": { - "description": "The time the run was finished", - "type": "string", - "format": "date-time", - "example": "2020-01-01T00:00:00Z" - } + "column_name": { + "in": "path", + "name": "column_name", + "required": true, + "schema": { + "description": "The name of a table column.", + "type": "string" } }, - "SAMLConfig": { - "title": "SAML Configuration", - "type": "object", - "additionalProperties": false, - "required": [ - "platform_certificate_download_url", - "enabled", - "can_enable" - ], - "properties": { - "platform_base_url": { - "type": "string", - "description": "Base URL to the platform.", - "format": "url", - "x-go-name": "PlatformBaseURL" - }, - "platform_sso_url": { - "type": "string", - "description": "SAML service URL. Only available after `platform_base_url` is set.", - "format": "url", - "x-go-name": "PlatformSSOURL" - }, - "platform_entity_id": { - "type": "string", - "description": "SAML Entity ID. Only available after `platform_base_url` is set.", - "x-go-name": "PlatformEntityID" - }, - "platform_metadata_download_url": { - "type": "string", - "description": "URL to download platform metadata. Only available after `platform_base_url` is set.", - "format": "url", - "x-go-name": "PlatformMetadataDownloadURL" - }, - "platform_certificate_download_url": { - "type": "string", - "description": "Platform Certificate download URL", - "format": "url", - "x-go-name": "PlatformCertificateDownloadURL" - }, - "metadata_url": { - "type": "string", - "description": "Metadata URL from identity provider. Mutually exclusive with `metadata_xml`", - "format": "url", - "x-go-name": "MetadataURL" - }, - "metadata_xml": { - "type": "string", - "description": "Metadata file contents from identity provider. Mutually exclusive with `metadata_url`", - "format": "url", - "x-go-name": "MetadataXML" - }, - "logout_url": { - "type": "string", - "description": "Logout URL from identity provider", - "format": "url", - "x-go-name": "LogoutURL" - }, - "role_group_key": { - "type": "string", - "description": "Role group key name", - "example": "groups" - }, - "role_mappings": { - "type": "object", - "description": "Mapping from IdP group names to roles. Each key is a potential IdP group value for the specified role_group_key, and each value is an array of roles to assign to users in that group.", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "example": { - "admins-rw": [ - "admin:write", - "admin:read" - ], - "admins-ro": [ - "admin:read" - ], - "general-rw": [ - "general:write", - "general:read" - ], - "general-ro": [ - "general:read" - ] - }, - "x-go-type-skip-optional-pointer": true - }, - "default_roles": { - "type": "array", - "description": "Default roles for new users who are not in any group", - "items": { - "type": "string" - }, - "x-go-type-skip-optional-pointer": true, - "x-omitempty": false - }, - "disable_access_if_no_role_group": { - "type": "boolean", - "description": "Whether to disable access if no role group is found in the SAML assertion. If true, users without a role group will not be able to log in." - }, - "enabled": { - "type": "boolean", - "description": "Whether SAML is enabled" - }, - "can_enable": { - "type": "boolean", - "description": "Whether SAML can be enabled" - } + "table_column_value_filter": { + "name": "filter", + "in": "query", + "required": false, + "schema": { + "description": "Filter by column value.", + "type": "string" } }, - "SAMLConfigUpdate": { - "title": "SAML Configuration Update", - "type": "object", - "additionalProperties": false, - "properties": { - "platform_base_url": { - "type": "string", - "description": "Base URL to the platform. This should be set first. https recommended.", - "format": "url", - "x-go-name": "PlatformBaseURL" - }, - "metadata_url": { - "type": "string", - "description": "Metadata URL from identity provider. Mutually exclusive with `metadata_xml`", - "format": "url", - "x-go-name": "MetadataURL" - }, - "metadata_xml": { - "type": "string", - "description": "Metadata file contents from identity provider. Mutually exclusive with `metadata_url`", - "format": "url", - "x-go-name": "MetadataXML" - }, - "logout_url": { - "type": "string", - "description": "Logout URL from identity provider", - "format": "url", - "x-go-name": "LogoutURL" - }, - "role_group_key": { - "type": "string", - "description": "Role group key name" - }, - "role_mappings": { - "type": "object", - "description": "Mapping from IdP group names to roles. Each key is a potential IdP group value for the specified role_group_key, and each value is an array of roles to assign to users in that group.", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "example": { - "admins-rw": [ - "admin:write", - "admin:read" - ], - "admins-ro": [ - "admin:read" - ], - "general-rw": [ - "general:write", - "general:read" - ], - "general-ro": [ - "general:read" - ] - } - }, - "default_roles": { - "type": "array", - "description": "Default roles for new users who are not in any group", - "items": { - "type": "string" - } - }, - "disable_access_if_no_role_group": { - "type": "boolean", - "description": "Whether to disable access if no role group is found in the SAML assertion. If true, users without a role group will not be able to log in." - }, - "enabled": { - "type": "boolean", - "description": "Whether to enable or disable SAML" + "user_id": { + "name": "user_id", + "in": "path", + "required": true, + "schema": { + "$ref": "#/components/schemas/UserID" + }, + "x-go-name": "UserID" + }, + "rbac_permissions_sort_bys": { + "name": "sort_by", + "in": "query", + "description": "Sort by options", + "allowEmptyValue": true, + "explode": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RBACPermissionSortBy" } - } + }, + "x-go-type-skip-optional-pointer": true, + "x-go-name": "RBACPermissionSortBys" }, - "PlatformSettings": { - "type": "object", - "description": "Platform settings definition", - "required": [ - "enforce_mfa" - ], - "properties": { - "enforce_mfa": { - "type": "boolean", - "description": "Whether or not to require MFA for all users", - "default": false + "rbac_permissions_sort_dirs": { + "name": "sort_dir", + "in": "query", + "description": "Sort direction options", + "allowEmptyValue": true, + "explode": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RBACPermissionSortDirection" + } + }, + "x-go-type-skip-optional-pointer": true, + "x-go-name": "RBACPermissionSortDirections" + }, + "rbac_permission_id": { + "in": "path", + "name": "permission_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/RBACPermissionID" + }, + "x-go-name": "RBACPermissionID" + }, + "rbac_roles_sort_bys": { + "name": "sort_by", + "in": "query", + "description": "Sort by options", + "allowEmptyValue": true, + "explode": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RBACRoleSortBy" } - } + }, + "x-go-type-skip-optional-pointer": true, + "x-go-name": "RBACRoleSortBys" }, - "PlatformSettingsUpdate": { - "type": "object", - "description": "Platform settings partial update", - "properties": { - "enforce_mfa": { - "type": "boolean", - "description": "Whether or not to require MFA for all users", - "default": false + "rbac_roles_sort_dirs": { + "name": "sort_dir", + "in": "query", + "description": "Sort direction options", + "allowEmptyValue": true, + "explode": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RBACRoleSortDirection" } - } + }, + "x-go-type-skip-optional-pointer": true, + "x-go-name": "RBACRoleSortDirections" }, - "TeamName": { - "description": "The unique name for the team.", + "rbac_role_id": { + "in": "path", + "name": "role_id", + "required": true, + "schema": { + "$ref": "#/components/schemas/RoleID" + }, + "x-go-name": "RoleID" + }, + "plugin_team": { + "in": "path", + "name": "plugin_team", + "required": true, + "schema": { + "$ref": "#/components/schemas/TeamName" + } + } + }, + "schemas": { + "UserName": { + "description": "The unique name for the user.", + "minLength": 1, "maxLength": 255, - "pattern": "^[a-z](-?[a-z0-9]+)+$", + "pattern": "^[a-zA-Z\\p{L}][a-zA-Z\\p{L} \\-']*$", + "x-pattern-message": "can contain only letters, spaces, hyphens, and apostrophes, starting with a letter", "type": "string", - "example": "cloudquery", - "x-pattern-message": "can contain only lowercase alphanumerical characters and dashes, starting with a letter" + "example": "Sarah O'Connor" }, - "TeamPlan": { - "description": "The plan the team is on (trial is deprecated)", + "UserProvider": { + "title": "LocalUserProvider", "type": "string", "enum": [ - "free", - "paid", - "enterprise", - "trial" - ] - }, - "Team": { - "additionalProperties": false, - "description": "CloudQuery Team", - "properties": { - "created_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", - "type": "string" - }, - "name": { - "$ref": "#/components/schemas/TeamName" - }, - "plan": { - "$ref": "#/components/schemas/TeamPlan" - }, - "plan_end_time": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", - "type": "string" - }, - "is_trial_active": { - "type": "boolean", - "example": false - }, - "trial_end_time": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", - "type": "string" - }, - "display_name": { - "description": "The team's display name", - "maxLength": 255, - "type": "string", - "example": "CloudQuery" - }, - "internal": { - "example": false, - "type": "boolean" - } - }, - "required": [ - "name", - "display_name", - "plan", - "is_trial_active", - "internal" + "local", + "saml" ], - "title": "Team", - "type": "object" - }, - "RBACDefaultRole": { - "description": "Default RBAC roles", - "type": "string", - "enum": [ - "admin:write", - "admin:read", - "general:read", - "general:write" - ] - }, - "RBACCustomRoleID": { - "description": "The unique ID for the custom role.", - "type": "string", - "format": "uuid", - "x-go-name": "RBACCustomRoleID" + "default": "local" }, "RBACPermissionID": { "description": "The unique ID for the data permission.", @@ -16366,9 +13301,30 @@ } } }, - "RBACRole": { + "RoleType": { + "type": "string", + "enum": [ + "admin:write", + "admin:read", + "general:read", + "general:write", + "ci", + "schema-only", + "custom" + ], + "x-enum-varnames": [ + "AdminWrite", + "AdminRead", + "GeneralRead", + "GeneralWrite", + "CI", + "SchemaOnly", + "Custom" + ] + }, + "Role": { "type": "object", - "description": "Custom RBAC role", + "description": "Role", "required": [ "id", "name", @@ -16376,11 +13332,15 @@ "permissions", "created_by", "created_at", - "updated_at" + "updated_at", + "type" ], "properties": { "id": { - "$ref": "#/components/schemas/RBACCustomRoleID" + "description": "The unique ID for the role.", + "type": "string", + "format": "uuid", + "x-go-name": "ID" }, "name": { "type": "string" @@ -16406,137 +13366,189 @@ "example": "2017-07-14T16:53:42Z", "format": "date-time", "type": "string" + }, + "type": { + "$ref": "#/components/schemas/RoleType" } } }, - "MembershipWithUser": { + "User": { "additionalProperties": false, + "description": "User", "properties": { - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RBACDefaultRole" - } + "created_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string" + }, + "id": { + "description": "ID of the User", + "type": "string", + "format": "uuid", + "example": "12345678-1234-1234-1234-1234567890ab", + "x-go-name": "ID" + }, + "email": { + "type": "string", + "example": "user@example.com" + }, + "name": { + "$ref": "#/components/schemas/UserName" + }, + "updated_at": { + "example": "2017-07-14T16:53:42Z", + "type": "string", + "format": "date-time" + }, + "profile_image_url": { + "type": "string", + "description": "Profile image URL of user", + "x-go-name": "ProfileImageURL" + }, + "last_login_at": { + "type": "string", + "format": "date-time" + }, + "provider": { + "$ref": "#/components/schemas/UserProvider" }, - "customRoles": { + "tracking_opted_in": { + "type": "boolean", + "description": "Whether anonymous user tracking was opted into" + }, + "mfa_configured": { + "type": "boolean", + "description": "Whether the user has MFA configured", + "x-go-name": "MFAConfigured" + }, + "roles": { "type": "array", "items": { - "$ref": "#/components/schemas/RBACRole" + "$ref": "#/components/schemas/Role" } }, - "user": { - "$ref": "#/components/schemas/User" + "enabled": { + "type": "boolean", + "description": "Whether the user is enabled" } }, "required": [ - "roles", - "user" + "id", + "email", + "enabled", + "provider", + "mfa_configured", + "roles" ], - "title": "CloudQuery User Membership", + "title": "User", "type": "object" }, - "LocalUserProvider": { - "title": "LocalUserProvider", - "type": "string", - "enum": [ - "local", - "saml" + "AuditLogEvent": { + "type": "object", + "required": [ + "id", + "user", + "event_type", + "created_at", + "user_ip_address" ], - "default": "local" - }, - "LocalUser": { - "allOf": [ - { - "$ref": "#/components/schemas/User" + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier of the audit log event" }, - { + "user": { + "$ref": "#/components/schemas/User", + "description": "The user who performed the action" + }, + "user_ip_address": { + "type": "string", + "description": "The IP address of the user who performed the action" + }, + "event_type": { + "type": "string", + "description": "The type of event that was logged" + }, + "entity_display_name": { + "type": "string", + "description": "The display name of the entity that was affected", + "nullable": true + }, + "event_details": { "type": "object", - "required": [ - "roles", - "enabled", - "provider" - ], - "properties": { - "roles": { - "description": "Global roles for the user", - "type": "array", - "items": { - "type": "string", - "enum": [ - "admin:write", - "admin:read" - ] - }, - "x-go-type": "[]string" - }, - "enabled": { - "type": "boolean" - }, - "provider": { - "$ref": "#/components/schemas/LocalUserProvider" - }, - "tracking_opted_in": { - "type": "boolean", - "description": "Whether anonymous user tracking was opted into" - }, - "mfa_configured": { - "type": "boolean", - "description": "Whether the user has MFA configured", - "x-go-name": "MFAConfigured" - } - } - } - ] - }, - "MembershipWithTeamName": { - "additionalProperties": false, - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string", - "example": "admin:read" - } + "description": "Additional details about the event", + "additionalProperties": true }, - "team_name": { - "$ref": "#/components/schemas/TeamName" + "is_success": { + "type": "boolean", + "description": "Whether the event was successful" }, "created_at": { "type": "string", - "format": "date-time" + "format": "date-time", + "description": "The timestamp when the event was created" + } + } + }, + "ListMetadata": { + "required": [ + "page_size" + ], + "properties": { + "total_count": { + "type": "integer" }, - "updated_at": { - "type": "string", - "format": "date-time" + "last_page": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "time_ms": { + "type": "integer" } - }, + } + }, + "BasicError": { + "additionalProperties": false, + "description": "Basic Error", "required": [ - "roles", - "team_name", - "created_at", - "updated_at" + "message", + "status" ], - "title": "CloudQuery Team Membership (team name only)", + "properties": { + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "title": "Basic Error", "type": "object" }, - "LocalUserWithTeams": { + "FieldError": { "allOf": [ { - "$ref": "#/components/schemas/LocalUser" + "$ref": "#/components/schemas/BasicError" }, { - "type": "object", - "required": [ - "teams" - ], "properties": { - "teams": { - "type": "array", + "errors": { "items": { - "$ref": "#/components/schemas/MembershipWithTeamName" - } + "type": "string" + }, + "type": "array" + }, + "field_errors": { + "additionalProperties": { + "type": "string" + }, + "type": "object" } - } + }, + "type": "object" } ] }, @@ -16568,6 +13580,14 @@ "deprecated" ] }, + "TeamName": { + "description": "The unique name for the team.", + "maxLength": 255, + "pattern": "^[a-z](-?[a-z0-9]+)+$", + "type": "string", + "example": "cloudquery", + "x-pattern-message": "can contain only lowercase alphanumerical characters and dashes, starting with a letter" + }, "PluginName": { "description": "The unique name for the plugin.", "maxLength": 255, @@ -16737,42 +13757,6 @@ "pattern": "^v[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$", "x-pattern-message": "should be in semantic version format" }, - "VersionRange": { - "type": "string", - "description": "A version range in semantic version format.", - "pattern": "^[^~]?v[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$", - "x-pattern-message": "should be a version range in semantic version format" - }, - "ListPluginPinnedVersion": { - "additionalProperties": false, - "description": "CloudQuery Pinned Plugin Version Info", - "required": [ - "name", - "range", - "initialized", - "mirroring" - ], - "properties": { - "name": { - "$ref": "#/components/schemas/VersionName" - }, - "range": { - "$ref": "#/components/schemas/VersionRange" - }, - "initialized": { - "type": "boolean", - "default": true, - "deprecated": true, - "description": "Deprecated. Assume `true`." - }, - "mirroring": { - "type": "boolean", - "default": false, - "deprecated": true, - "description": "Deprecated. Assume `false`." - } - } - }, "ListPlugin": { "allOf": [ { @@ -16783,9 +13767,6 @@ "properties": { "latest_version": { "$ref": "#/components/schemas/VersionName" - }, - "pinned_version": { - "$ref": "#/components/schemas/ListPluginPinnedVersion" } } } @@ -16794,197 +13775,28 @@ "ListPlugins": { "type": "array", "items": { - "$ref": "#/components/schemas/ListPlugin" - }, - "example": [ - { - "name": "aws", - "kind": "source", - "team_name": "cloudquery", - "display_name": "AWS Source Plugin", - "category": "cloud-infrastructure", - "created_at": "2017-07-14T16:53:42Z", - "updated_at": "2017-07-14T16:53:42Z", - "homepage": "https://cloudquery.io", - "logo": "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "official": true, - "short_description": "Sync data from AWS to any destination", - "repository": "https://github.com/cloudquery/cloudquery", - "tier": "paid", - "usd_per_row": "0.00123", - "free_rows_per_month": 10000, - "release_stage": "preview" - } - ] - }, - "PluginReleaseStageCreate": { - "description": "Official plugins can go through three release stages: Coming Soon, Preview, and GA.\nThe Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready.\nBoth Preview and GA plugins follow semantic versioning. The main differences between the two stages are:\nPreview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage.", - "type": "string", - "enum": [ - "coming-soon", - "preview", - "ga" - ], - "default": "coming-soon" - }, - "PluginCreate": { - "type": "object", - "required": [ - "team_name", - "kind", - "name", - "category", - "display_name", - "short_description", - "public" - ], - "properties": { - "team_name": { - "$ref": "#/components/schemas/TeamName" - }, - "kind": { - "$ref": "#/components/schemas/PluginKind" - }, - "name": { - "$ref": "#/components/schemas/PluginName" - }, - "category": { - "$ref": "#/components/schemas/PluginCategory" - }, - "price_category": { - "$ref": "#/components/schemas/PluginPriceCategory" - }, - "tier": { - "$ref": "#/components/schemas/PluginTier" - }, - "display_name": { - "type": "string", - "minLength": 1, - "maxLength": 50, - "description": "The plugin's display name, as shown in the CloudQuery Hub.", - "example": "AWS Source Plugin" - }, - "short_description": { - "type": "string", - "minLength": 1, - "maxLength": 512, - "description": "Short description of the plugin. This will be shown in the CloudQuery Hub.", - "example": "Sync data from AWS to any destination" - }, - "homepage": { - "type": "string", - "example": "https://cloudquery.io" - }, - "public": { - "type": "boolean", - "description": "Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the team.", - "example": true - }, - "repository": { - "type": "string", - "example": "https://github.com/cloudquery/cloudquery" - }, - "release_stage": { - "$ref": "#/components/schemas/PluginReleaseStageCreate" - }, - "logo": { - "type": "string", - "description": "URL to the plugin's logo. This will be shown in the CloudQuery Hub.", - "example": "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "format": "url" - }, - "usd_per_row": { - "deprecated": true, - "type": "string", - "pattern": "^\\d+(?:\\.\\d{1,10})?$", - "description": "Deprecated. Use `price_category` instead.", - "example": "0.00001", - "x-go-name": "USDPerRow", - "x-pattern-message": "must be a valid decimal number with up to 10 decimal places." - }, - "free_rows_per_month": { - "deprecated": true, - "type": "integer", - "format": "int64", - "description": "Deprecated. Use `price_category` instead.", - "example": 10000 - } - } - }, - "PluginReleaseStageUpdate": { - "description": "Official plugins can go through three release stages: Coming Soon, Preview, and GA.\nThe Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready.\nBoth Preview and GA plugins follow semantic versioning. The main differences between the two stages are:\nPreview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage.", - "type": "string", - "enum": [ - "coming-soon", - "preview", - "ga", - "deprecated" - ] - }, - "PluginUpdate": { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/PluginCategory" - }, - "price_category": { - "$ref": "#/components/schemas/PluginPriceCategory" - }, - "tier": { - "$ref": "#/components/schemas/PluginTier" - }, - "display_name": { - "type": "string", - "minLength": 1, - "maxLength": 50, - "description": "The plugin's display name, as shown in the CloudQuery Hub.", - "example": "AWS Source Plugin" - }, - "short_description": { - "type": "string", - "minLength": 1, - "maxLength": 512, - "description": "Short description of the plugin. This will be shown in the CloudQuery Hub.", - "example": "Sync data from AWS to any destination" - }, - "homepage": { - "type": "string", - "example": "https://cloudquery.io" - }, - "repository": { - "type": "string", - "example": "https://github.com/cloudquery/cloudquery" - }, - "logo": { - "type": "string", - "description": "URL to the plugin's logo. This will be shown in the CloudQuery Hub.", - "example": "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f9e8", - "format": "url" - }, - "public": { - "type": "boolean", - "description": "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub." - }, - "release_stage": { - "$ref": "#/components/schemas/PluginReleaseStageUpdate" - }, - "usd_per_row": { - "deprecated": true, - "type": "string", - "pattern": "^\\d+(?:\\.\\d{1,10})?$", - "description": "Deprecated. Update `price_category` instead.", - "example": "0.0001", - "x-go-name": "USDPerRow", - "x-pattern-message": "must be a valid decimal number with up to 10 decimal places." - }, - "free_rows_per_month": { - "deprecated": true, - "type": "integer", - "format": "int64", - "description": "Deprecated. Update `price_category` instead.", - "example": 1000 + "$ref": "#/components/schemas/ListPlugin" + }, + "example": [ + { + "name": "aws", + "kind": "source", + "team_name": "cloudquery", + "display_name": "AWS Source Plugin", + "category": "cloud-infrastructure", + "created_at": "2017-07-14T16:53:42Z", + "updated_at": "2017-07-14T16:53:42Z", + "homepage": "https://cloudquery.io", + "logo": "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", + "official": true, + "short_description": "Sync data from AWS to any destination", + "repository": "https://github.com/cloudquery/cloudquery", + "tier": "paid", + "usd_per_row": "0.00123", + "free_rows_per_month": 10000, + "release_stage": "preview" } - } + ] }, "VersionFilter": { "type": "string", @@ -17103,17 +13915,6 @@ "properties": { "spec_json_schema": { "$ref": "#/components/schemas/PluginSpecJSONSchema" - }, - "connector_required": { - "type": "boolean", - "description": "Whether a connector is required for this plugin version" - }, - "connector_types": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of connector types available for this plugin version" } } } @@ -17148,47 +13949,6 @@ } ] }, - "PluginVersionUpdate": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "Description of what's new or changed in this version (supports markdown)", - "example": "- Added support for *AWS S3* - Added support for *AWS EC2*" - }, - "draft": { - "type": "boolean", - "description": "If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version. Once draft is set to false, only certain fields can be updated." - }, - "retracted": { - "type": "boolean", - "description": "If a plugin version is retracted, assets will still be available for download, but the version will be marked as retracted to discourage use." - }, - "protocols": { - "$ref": "#/components/schemas/PluginProtocols" - }, - "supported_targets": { - "type": "array", - "items": { - "type": "string" - } - }, - "checksums": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The SHA-256 checksums of the plugin binaries, one per supported target." - }, - "package_type": { - "type": "string", - "description": "The package type of the plugin binaries" - }, - "spec_json_schema": { - "$ref": "#/components/schemas/PluginSpecJSONSchema" - } - } - }, "PluginAsset": { "additionalProperties": false, "description": "CloudQuery Plugin Asset", @@ -17210,65 +13970,6 @@ "title": "CloudQuery Plugin Asset", "type": "object" }, - "ReleaseURL": { - "required": [ - "url" - ], - "properties": { - "url": { - "type": "string" - } - } - }, - "PluginDocsPageName": { - "description": "The unique name for the plugin documentation page.", - "maxLength": 255, - "pattern": "^[\\w,\\s-]+$", - "type": "string", - "example": "overview", - "x-pattern-message": "can contain only letters, numbers, hyphens and commas" - }, - "PluginDocsPage": { - "additionalProperties": false, - "description": "CloudQuery Plugin Documentation Page", - "required": [ - "name", - "content" - ], - "properties": { - "name": { - "$ref": "#/components/schemas/PluginDocsPageName" - }, - "content": { - "type": "string", - "description": "The content of the documentation page. Supports markdown.", - "example": "# Getting Started\n\nThis is the getting started page." - } - }, - "title": "CloudQuery Plugin Documentation Page", - "type": "object" - }, - "PluginDocsPageCreate": { - "additionalProperties": false, - "description": "CloudQuery Plugin Documentation Page", - "required": [ - "name", - "content" - ], - "properties": { - "name": { - "$ref": "#/components/schemas/PluginDocsPageName" - }, - "content": { - "type": "string", - "minLength": 1, - "description": "The content of the documentation page. Supports markdown.", - "example": "# Getting Started\n\nThis is the getting started page." - } - }, - "title": "CloudQuery Plugin Documentation Page", - "type": "object" - }, "PluginTableName": { "description": "Name of the table", "maxLength": 255, @@ -17377,69 +14078,6 @@ "title": "CloudQuery Plugin Table Column", "type": "object" }, - "PluginTableCreate": { - "additionalProperties": false, - "description": "CloudQuery Plugin Table", - "required": [ - "name" - ], - "properties": { - "description": { - "description": "Description of the table", - "type": "string", - "example": "AWS S3 Buckets" - }, - "is_incremental": { - "description": "Whether the table is incremental", - "type": "boolean" - }, - "name": { - "$ref": "#/components/schemas/PluginTableName" - }, - "parent": { - "description": "Name of the parent table, if any", - "type": "string", - "example": "nil" - }, - "relations": { - "description": "Names of the tables that depend on this table", - "items": { - "type": "string" - }, - "type": "array", - "example": [ - "aws_s3_bucket_cors_rules" - ] - }, - "permissions_needed": { - "description": "List of permissions needed to access this table, if any", - "items": { - "type": "string" - }, - "type": "array", - "example": [ - "storage.buckets.list" - ] - }, - "title": { - "description": "Title of the table", - "type": "string", - "example": "AWS S3 Buckets" - }, - "is_paid": { - "description": "Whether the table is paid", - "type": "boolean" - }, - "columns": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PluginTableColumn" - } - } - }, - "title": "CloudQuery Plugin Table", - "type": "object" - }, "PluginTableDetails": { "additionalProperties": false, "required": [ @@ -17503,48 +14141,6 @@ }, "type": "object" }, - "PluginUIAssetUploadRequest": { - "additionalProperties": false, - "description": "CloudQuery Plugin UI Asset Upload Request", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "The path and name of the asset", - "example": "scripts/main.js" - }, - "content_type": { - "type": "string", - "description": "Content-type of the asset", - "example": "application/json" - } - }, - "title": "CloudQuery Plugin UI Asset Upload Request", - "type": "object" - }, - "PluginUIAsset": { - "additionalProperties": false, - "description": "CloudQuery Plugin UI Asset", - "required": [ - "name", - "upload_url" - ], - "properties": { - "name": { - "type": "string", - "description": "The path and name of the asset" - }, - "upload_url": { - "type": "string", - "description": "URL to upload the asset to", - "x-go-name": "UploadURL" - } - }, - "title": "CloudQuery Plugin UI Asset", - "type": "object" - }, "AlertState": { "type": "string", "enum": [ @@ -17554,12 +14150,17 @@ "triggered" ] }, + "QueryTag": { + "description": "A saved query tag.", + "type": "string" + }, "AlertSeverity": { "type": "string", "enum": [ "low", "medium", - "high" + "high", + "critical" ] }, "NotificationDestinationID": { @@ -17577,6 +14178,7 @@ "id", "name", "enabled", + "type", "url", "created_at", "updated_at" @@ -17592,11 +14194,27 @@ "enabled": { "type": "boolean" }, + "type": { + "type": "string", + "enum": [ + "webhook", + "slack" + ], + "description": "Type of notification destination" + }, "url": { "type": "string", "example": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXX", "x-go-name": "URL" }, + "slack_channels": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Slack channel names (only for slack type)", + "x-go-name": "SlackChannels" + }, "created_at": { "example": "2017-07-14T16:53:42Z", "format": "date-time", @@ -17796,488 +14414,694 @@ } } }, - "APIKeyName": { - "description": "Name of the API key", + "PolicyStatus": { + "description": "Policy status", "type": "string", - "example": "cli-api-key", - "maxLength": 255, - "minLength": 1, - "pattern": "^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$", - "x-pattern-message": "can contain only letters, numbers, spaces, and hyphens, starting and ending with a letter or number" + "enum": [ + "paused", + "active" + ], + "x-go-name": "PolicyStatus" }, - "APIKeyID": { - "description": "ID of the API key", + "PolicySeverity": { + "description": "Policy severity", "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "x-go-name": "APIKeyID" + "enum": [ + "low", + "medium", + "high", + "critical" + ], + "x-go-name": "PolicySeverity" }, - "APIKeyRole": { + "PolicyDomain": { + "description": "Policy domain", "type": "string", "enum": [ - "admin:write", - "admin:read", - "general:read", - "general:write", - "ci", - "schema-only" - ] + "finops", + "security", + "compliance", + "governance", + "operations" + ], + "x-go-name": "PolicyDomain" }, - "APIKeyTeamRole": { + "PolicyGroupID": { + "title": "Policy Group ID", + "type": "string", + "format": "uuid", + "x-go-name": "PolicyGroupID" + }, + "PolicyID": { + "description": "The unique ID for the policy.", + "type": "string", + "format": "uuid", + "x-go-name": "PolicyID" + }, + "PolicyGroup": { + "title": "Policy Group", "type": "object", + "description": "Policy Group", + "additionalProperties": false, "required": [ - "role" + "id", + "name", + "description", + "created_at", + "updated_at" ], "properties": { - "team": { - "$ref": "#/components/schemas/TeamName" + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "example": "Security Policies" + }, + "description": { + "type": "string", + "example": "Group containing all security-related policies" + }, + "created_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string" }, - "role": { - "$ref": "#/components/schemas/APIKeyRole" + "updated_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string" } } }, - "APIKey": { - "description": "API Key to interact with CloudQuery Cloud under specific team", + "Policy": { + "title": "Policy", "type": "object", + "description": "Policy", + "additionalProperties": false, "required": [ "id", "name", - "expires_at", - "expired", - "roles" + "domain", + "severity", + "description", + "status", + "team_name", + "query_id", + "query", + "created_by", + "created_at", + "updated_at" ], "properties": { + "id": { + "$ref": "#/components/schemas/PolicyID" + }, "name": { - "$ref": "#/components/schemas/APIKeyName" + "type": "string", + "example": "Unencrypted S3 buckets" }, - "created_by": { + "domain": { + "$ref": "#/components/schemas/PolicyDomain" + }, + "severity": { + "$ref": "#/components/schemas/PolicySeverity" + }, + "description": { "type": "string", - "example": "user@example.com", - "description": "email of the user that created the API key" + "example": "Policy to detect unencrypted S3 buckets" }, - "id": { - "$ref": "#/components/schemas/APIKeyID" + "status": { + "$ref": "#/components/schemas/PolicyStatus" }, - "key": { + "team_name": { "type": "string", - "description": "API key. Will be shown only in the response when creating the key.", - "example": "1234567890abcdef1234567890abcdef" + "example": "my-team" }, - "created_at": { + "query_id": { + "$ref": "#/components/schemas/QueryID" + }, + "query": { "type": "string", - "format": "date-time", - "example": "2017-07-14T16:53:42Z" + "description": "The SQL query string for the policy", + "example": "SELECT * FROM aws_s3_buckets WHERE server_side_encryption_configuration IS NULL" }, - "expires_at": { + "created_by": { "type": "string", - "description": "Timestamp at which API key will stop working", - "format": "date-time", - "example": "2017-07-14T16:53:42Z" + "format": "uuid", + "x-go-name": "CreatedByUserID" }, - "last_access_at": { + "updated_by": { "type": "string", + "format": "uuid", + "nullable": true, + "x-go-name": "UpdatedByUserID" + }, + "created_at": { + "example": "2017-07-14T16:53:42Z", "format": "date-time", + "type": "string" + }, + "updated_at": { "example": "2017-07-14T16:53:42Z", - "description": "Timestamp at which API key was last used - accurate to the day only." + "format": "date-time", + "type": "string" }, - "expired": { - "type": "boolean", - "description": "Whether the API key has expired or not", - "example": false + "violation_count": { + "type": "integer", + "nullable": true, + "description": "Number of violations from the last evaluation", + "example": 5 }, - "roles": { + "run_at": { + "type": "string", + "format": "date-time", + "nullable": true, + "description": "Timestamp of the last evaluation run", + "example": "2017-07-14T16:53:42Z" + }, + "notification_destinations": { "type": "array", "items": { - "$ref": "#/components/schemas/APIKeyTeamRole" - } + "$ref": "#/components/schemas/NotificationDestinationListItem" + }, + "description": "List of notification destinations configured for the policy's alert", + "example": [] + }, + "policy_groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyGroup" + }, + "description": "List of policy groups this policy belongs to", + "example": [] } } }, - "ConnectorStatus": { - "description": "The status of the connector", - "type": "string", - "enum": [ - "created", - "authenticated", - "failed", - "revoked" - ] - }, - "Connector": { - "description": "Connector definition", + "PolicyCreate": { + "title": "Policy Create", "type": "object", + "description": "Create a policy (implicitly creates a query and an enabled alert)", + "additionalProperties": false, "required": [ - "id", - "type", - "created_at", "name", - "status" + "domain", + "severity", + "query" ], "properties": { - "id": { - "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "description": "unique ID of the connector", - "x-go-name": "ID" - }, - "type": { - "description": "Type of the connector", - "type": "string" - }, "name": { "type": "string", - "description": "Name of the connector" + "example": "Unencrypted S3 buckets" }, - "status": { - "$ref": "#/components/schemas/ConnectorStatus", - "description": "Status of the connector" + "domain": { + "$ref": "#/components/schemas/PolicyDomain" }, - "created_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", + "severity": { + "$ref": "#/components/schemas/PolicySeverity" + }, + "description": { "type": "string", - "description": "Time the connector was created" - } - } - }, - "ConnectorCreate": { - "description": "Connector creation request", - "type": "object", - "required": [ - "type", - "name" - ], - "properties": { - "type": { - "description": "Type of the connector", - "type": "string" + "default": "", + "example": "Policy to detect unencrypted S3 buckets" }, - "name": { + "query": { "type": "string", - "description": "Name of the connector" + "example": "SELECT account_id, bucket_name, region FROM aws_s3_buckets WHERE encryption_status IS NULL" + }, + "notification_destination_ids": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "nullable": true, + "description": "Notification destination IDs to send alerts to" + }, + "policy_group_ids": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "nullable": true, + "description": "Policy group IDs to add this policy to" } } }, - "ConnectorID": { - "description": "ID of the Connector", - "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "x-go-name": "ConnectorID" - }, - "ConnectorUpdate": { - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "Name of the connector" - } - }, - "type": "object" - }, - "SyncEnvCreate": { + "PolicyUpdate": { + "title": "Policy Update", "type": "object", - "description": "Environment variable. Environment variables are assumed to be secret.", - "required": [ - "name" - ], + "description": "Update a policy", + "additionalProperties": false, "properties": { "name": { - "type": "string", - "description": "Name of the environment variable" + "type": "string" }, - "value": { + "domain": { + "$ref": "#/components/schemas/PolicyDomain" + }, + "severity": { + "$ref": "#/components/schemas/PolicySeverity" + }, + "description": { + "type": "string" + }, + "query": { "type": "string", - "description": "Value of the environment variable" + "example": "SELECT account_id, bucket_name, region FROM aws_s3_buckets WHERE encryption_status IS NULL" + }, + "notification_destination_ids": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "nullable": true, + "description": "Notification destination IDs to send alerts to" + }, + "policy_group_ids": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "nullable": true, + "description": "Policy group IDs to set for this policy" } } }, - "ConnectorAuthRequestAWS": { + "PolicyViolation": { + "title": "Policy Violation", "type": "object", - "description": "AWS connector authentication request to start the authentication process", + "description": "Policy violation resource information", "additionalProperties": false, "required": [ - "plugin_team", - "plugin_kind", - "plugin_name" + "cloud", + "resource_type_label", + "_cq_account_name", + "name", + "region", + "_cq_platform_id" ], "properties": { - "plugin_team": { + "cloud": { "type": "string", - "description": "Team that owns the plugin we are authenticating the connector for", - "example": "cloudquery" + "example": "aws" }, - "plugin_kind": { + "resource_type_label": { "type": "string", - "description": "Kind of the plugin", - "example": "source" + "example": "EC2 Instance" }, - "plugin_name": { + "_cq_account_name": { "type": "string", - "description": "Name of the plugin", - "example": "aws" + "example": "my-account" }, - "plugin_version": { + "name": { "type": "string", - "description": "Version of the plugin", - "example": "v27.1.0" + "example": "my-resource" }, - "spec": { - "type": "object", - "additionalProperties": true, - "format": "Plugin parameters, specific to each plugin" + "region": { + "type": "string", + "example": "us-east-1" }, - "env": { - "description": "Environment variables used in the spec.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SyncEnvCreate" - } + "_cq_platform_id": { + "type": "string", + "example": "aws_ec2_instances_12345678-1234-1234-1234-123456789abc" }, - "tables": { + "tags": { "type": "array", - "description": "Tables to authenticate, setting from the outer spec", "items": { - "type": "string", - "example": "aws_s3_buckets" - } + "type": "string" + }, + "description": "Tags associated with the resource (e.g. for insights)" + } + } + }, + "PolicyEvaluationLog": { + "title": "Policy Evaluation Log", + "type": "object", + "description": "Policy evaluation log entry", + "additionalProperties": false, + "required": [ + "id", + "policy_id", + "violation_count", + "run_at" + ], + "properties": { + "id": { + "type": "string", + "format": "uuid" }, - "skip_tables": { - "type": "array", - "description": "Tables to skip authentication, setting from the outer spec", - "items": { - "type": "string", - "example": "aws_s3_buckets" - } + "policy_id": { + "$ref": "#/components/schemas/PolicyID" }, - "skip_dependent_tables": { - "type": "boolean", - "description": "Whether to skip dependent tables, setting from the outer spec" + "violation_count": { + "type": "integer", + "example": 5 + }, + "run_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string" } } }, - "ConnectorAuthResponseAWS": { + "PolicyMetrics": { + "title": "Policy Metrics", + "type": "object", + "description": "Policy metrics summary", "additionalProperties": false, "required": [ - "redirect_url", - "role_template_url", - "suggested_external_id", - "suggested_policy_arns" + "total_active_violations", + "high_severity_violations", + "violations_this_week" ], "properties": { - "redirect_url": { - "type": "string", - "description": "URL to redirect the user to, to authenticate", - "x-go-name": "RedirectURL" + "total_active_violations": { + "type": "integer", + "description": "Total violations from active policies", + "example": 28 }, - "role_template_url": { - "type": "string", - "description": "URL to the role template, to present to the user", - "x-go-name": "RoleTemplateURL" + "high_severity_violations": { + "type": "integer", + "description": "Total violations from high or critical severity policies", + "example": 10 }, - "suggested_external_id": { - "type": "string", - "description": "External ID suggested to enter into the role definition", - "x-go-name": "SuggestedExternalID" + "violations_this_week": { + "type": "integer", + "description": "Total violations from evaluations in the last 7 days", + "example": 7 + } + } + }, + "ViolationsByDomainItem": { + "title": "Violations By Domain Item", + "type": "object", + "description": "Violation count for a specific domain", + "additionalProperties": false, + "required": [ + "domain", + "violation_count" + ], + "properties": { + "domain": { + "$ref": "#/components/schemas/PolicyDomain" }, - "suggested_policy_arns": { + "violation_count": { + "type": "integer", + "description": "Number of violations for this domain", + "example": 15 + } + } + }, + "ViolationsByDomain": { + "title": "Violations By Domain", + "type": "object", + "description": "Violations grouped by domain", + "additionalProperties": false, + "required": [ + "items", + "total_violations" + ], + "properties": { + "items": { "type": "array", "items": { - "type": "string" - }, - "description": "List of AWS policy ARNs suggested to grant inside the role definition", - "x-go-name": "SuggestedPolicyARNs" + "$ref": "#/components/schemas/ViolationsByDomainItem" + } + }, + "total_violations": { + "type": "integer", + "description": "Total violations across all domains", + "example": 28 } - }, - "type": "object", - "description": "AWS connector authentication response to start the authentication process" + } }, - "ConnectorAuthFinishRequestAWS": { + "ViolationsHistoryItem": { + "title": "Violations History Item", + "type": "object", + "description": "Violation count for a specific date", "additionalProperties": false, "required": [ - "role_arn" + "date", + "violation_count" ], "properties": { - "role_arn": { + "date": { "type": "string", - "description": "ARN of role created by the user", - "x-go-name": "RoleARN" + "format": "date", + "description": "Date of the violations", + "example": "2026-01-06" }, - "external_id": { - "type": "string", - "description": "External ID in the role definition. Optional. If not provided the previously suggested external ID will be used. Empty string will remove the external ID.", - "x-go-name": "ExternalID" + "violation_count": { + "type": "integer", + "description": "Number of violations on this date", + "example": 3 } - }, - "type": "object", - "description": "AWS connector authentication request, filled in after the user has authenticated through AWS" + } }, - "ConnectorAuthRequestGCP": { + "ViolationsHistoryMetadata": { + "title": "Violations History Metadata", "type": "object", - "description": "GCP connector authentication request to start the authentication process", + "description": "Metadata for violations history query", "additionalProperties": false, "required": [ - "plugin_team", - "plugin_kind", - "plugin_name" + "interval", + "start_date", + "end_date" ], "properties": { - "plugin_team": { + "interval": { "type": "string", - "description": "Team that owns the plugin we are authenticating the connector for", - "example": "cloudquery" + "description": "Interval in days used for grouping", + "example": "30" }, - "plugin_kind": { + "start_date": { "type": "string", - "description": "Kind of the plugin", - "example": "source" + "format": "date", + "description": "Start date of the query range", + "example": "2025-05-01" }, - "plugin_name": { + "end_date": { "type": "string", - "description": "Name of the plugin", - "example": "aws" + "format": "date", + "description": "End date of the query range", + "example": "2026-12-01" } } }, - "ConnectorAuthResponseGCP": { + "ViolationsHistory": { + "title": "Violations History", + "type": "object", + "description": "Violations history over time", "additionalProperties": false, "required": [ - "service_account" + "items", + "metadata" ], "properties": { - "service_account": { - "type": "string", - "description": "CloudQuery GCP Service Account to grant access to" + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ViolationsHistoryItem" + } + }, + "metadata": { + "$ref": "#/components/schemas/ViolationsHistoryMetadata" } - }, + } + }, + "PolicyGroupWithCounts": { + "title": "Policy Group With Counts", "type": "object", - "description": "GCP connector authentication response to start the authentication process" + "description": "Policy Group with policy count and violation counts by severity", + "additionalProperties": false, + "required": [ + "id", + "name", + "description", + "policy_count", + "violation_count_low", + "violation_count_medium", + "violation_count_high", + "violation_count_critical", + "created_at", + "updated_at" + ], + "allOf": [ + { + "$ref": "#/components/schemas/PolicyGroup" + }, + { + "type": "object", + "properties": { + "policy_count": { + "type": "integer", + "description": "Number of policies in this group", + "example": 5, + "default": 0 + }, + "violation_count_low": { + "type": "integer", + "description": "Total violations from low severity policies in this group", + "example": 10, + "default": 0 + }, + "violation_count_medium": { + "type": "integer", + "description": "Total violations from medium severity policies in this group", + "example": 25, + "default": 0 + }, + "violation_count_high": { + "type": "integer", + "description": "Total violations from high severity policies in this group", + "example": 15, + "default": 0 + }, + "violation_count_critical": { + "type": "integer", + "description": "Total violations from critical severity policies in this group", + "example": 3, + "default": 0 + } + } + } + ] }, - "ConnectorAuthRequestOAuth": { + "PolicyGroupCreate": { + "title": "Policy Group Create", "type": "object", - "description": "OAuth connector authentication request to start the authentication process", + "description": "Create a policy group", "additionalProperties": false, "required": [ - "plugin_team", - "plugin_kind", - "plugin_name", - "base_url" + "name" ], "properties": { - "plugin_team": { - "type": "string", - "description": "Team that owns the plugin we are authenticating the connector for", - "example": "cloudquery" - }, - "plugin_kind": { - "type": "string", - "description": "Kind of the plugin", - "example": "source" - }, - "plugin_name": { - "type": "string", - "description": "Name of the plugin", - "example": "googleanalytics" - }, - "plugin_version": { + "name": { "type": "string", - "description": "Version of the plugin", - "example": "v3.0.0" + "example": "Security Policies" }, - "base_url": { + "description": { "type": "string", - "description": "Base of the URL the callback url will be constructed from", - "example": "https://cloud.cloudquery.io/oauth", - "x-go-name": "BaseURL" - }, - "spec": { - "type": "object", - "additionalProperties": true, - "format": "Plugin parameters, specific to each plugin" - }, - "env": { - "description": "Environment variables used in the spec.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SyncEnvCreate" - } + "default": "", + "example": "Group containing all security-related policies" }, - "tables": { + "policy_ids": { "type": "array", - "description": "Tables to authenticate, setting from the outer spec", "items": { "type": "string", - "example": "github_organizations" - } + "format": "uuid" + }, + "nullable": true, + "description": "Optional array of policy IDs to add to this group" + } + } + }, + "PolicyGroupUpdate": { + "title": "Policy Group Update", + "type": "object", + "description": "Update a policy group", + "additionalProperties": false, + "properties": { + "name": { + "type": "string" }, - "skip_tables": { + "description": { + "type": "string" + }, + "policy_ids": { "type": "array", - "description": "Tables to skip authentication, setting from the outer spec", "items": { "type": "string", - "example": "github_organizations" - } - }, - "skip_dependent_tables": { - "type": "boolean", - "description": "Whether to skip dependent tables, setting from the outer spec" - }, - "flavor": { - "type": "string", - "description": "Override default flavor" + "format": "uuid" + }, + "nullable": true, + "description": "Policy IDs to set for this group" } } }, - "ConnectorAuthResponseOAuth": { - "additionalProperties": false, - "required": [ - "redirect_url" - ], - "properties": { - "redirect_url": { - "type": "string", - "description": "URL to redirect the user to, to authenticate", - "x-go-name": "RedirectURL" - } - }, - "type": "object", - "description": "OAuth connector authentication response to start the authentication process" + "APIKeyName": { + "description": "Name of the API key", + "type": "string", + "example": "cli-api-key", + "maxLength": 255, + "minLength": 1, + "pattern": "^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$", + "x-pattern-message": "can contain only letters, numbers, spaces, and hyphens, starting and ending with a letter or number" }, - "ConnectorAuthFinishRequestOAuth": { - "additionalProperties": false, + "APIKeyID": { + "description": "ID of the API key", + "type": "string", + "format": "uuid", + "example": "12345678-1234-1234-1234-1234567890ab", + "x-go-name": "APIKeyID" + }, + "APIKey": { + "description": "API Key to interact with CloudQuery Platform", + "type": "object", "required": [ - "return_url", - "base_url" + "id", + "name", + "expires_at", + "expired", + "roles" ], "properties": { - "return_url": { + "name": { + "$ref": "#/components/schemas/APIKeyName" + }, + "created_by": { "type": "string", - "description": "URL the user was redirected to (including new parameter values) after the OAuth flow is complete", - "x-go-name": "ReturnURL" + "example": "user@example.com", + "description": "email of the user that created the API key" + }, + "id": { + "$ref": "#/components/schemas/APIKeyID" }, - "base_url": { + "key": { "type": "string", - "description": "Base of the URL the callback url was constructed from", - "example": "https://cloud.cloudquery.io/oauth", - "x-go-name": "BaseURL" + "description": "API key. Will be shown only in the response when creating the key.", + "example": "1234567890abcdef1234567890abcdef" }, - "spec": { - "type": "object", - "additionalProperties": true, - "format": "Plugin parameters, specific to each plugin" + "created_at": { + "type": "string", + "format": "date-time", + "example": "2017-07-14T16:53:42Z" }, - "env": { - "description": "Environment variables used in the spec.", + "expires_at": { + "type": "string", + "description": "Timestamp at which API key will stop working", + "format": "date-time", + "example": "2017-07-14T16:53:42Z" + }, + "last_access_at": { + "type": "string", + "format": "date-time", + "example": "2017-07-14T16:53:42Z", + "description": "Timestamp at which API key was last used - accurate to the day only." + }, + "expired": { + "type": "boolean", + "description": "Whether the API key has expired or not", + "example": false + }, + "roles": { "type": "array", "items": { - "$ref": "#/components/schemas/SyncEnvCreate" + "$ref": "#/components/schemas/Role" } } - }, - "type": "object", - "description": "OAuth connector authentication request, filled in after the user has authenticated through OAuth" + } + }, + "RoleID": { + "description": "The unique ID for the role.", + "type": "string", + "format": "uuid", + "x-go-name": "RoleID" }, "ConversationCreate": { "type": "object", @@ -18441,14 +15265,10 @@ "enum": [ "id", "description", - "table_name", "column_name", "label", - "column_type", - "value_type", "value_expr", "created_by", - "team_name", "created_at", "updated_at" ] @@ -18468,22 +15288,18 @@ "format": "uuid", "x-go-name": "CustomColumnID" }, - "CustomColumnColumnType": { + "CustomColumnColumnName": { "type": "string", - "enum": [ - "String", - "Integer", - "Float", - "Boolean", - "DateTime" - ] + "description": "The name for the custom column.", + "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", + "example": "tags_v1_region", + "x-pattern-message": "Letters, numbers, and underscores only. Must start with a letter.", + "minLength": 1, + "maxLength": 63 }, - "CustomColumnValueType": { + "CustomColumnValueExpr": { "type": "string", - "enum": [ - "expression", - "external" - ] + "description": "The SQL expression for the custom column." }, "CustomColumn": { "title": "Custom Column", @@ -18492,13 +15308,11 @@ "additionalProperties": false, "required": [ "id", - "table_name", "column_name", "label", - "value_type", + "value_expr", "created_by", - "created_at", - "team_name" + "created_at" ], "properties": { "id": { @@ -18507,136 +15321,49 @@ "description": { "type": "string" }, - "table_name": { - "type": "string", - "example": "cloud_assets", - "description": "Table this column applies to." - }, - "column_name": { - "type": "string", - "example": "environment" - }, - "label": { - "type": "string", - "example": "Environment name" - }, - "column_type": { - "description": "Data type of the column. Only needed for value_type=external.", - "$ref": "#/components/schemas/CustomColumnColumnType" - }, - "value_type": { - "$ref": "#/components/schemas/CustomColumnValueType" - }, - "value_expr": { - "description": "Value expression.\nFor value_type=expression, this is the actual SQL query.\nFor value_type=external this is the default value.\n", - "type": "string" - }, - "created_by": { - "$ref": "#/components/schemas/CreatedBy" - }, - "created_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", - "type": "string" - }, - "team_name": { - "$ref": "#/components/schemas/TeamName" - } - } - }, - "CustomColumnCreateOrUpdate": { - "title": "Custom Column Create or Update", - "type": "object", - "description": "Create or update a custom column", - "additionalProperties": false, - "required": [ - "table_name", - "column_name", - "label", - "value_type" - ], - "properties": { - "description": { - "type": "string" - }, - "table_name": { - "type": "string", - "example": "cloud_assets", - "description": "Table this column applies to." - }, "column_name": { - "type": "string", - "example": "environment" + "$ref": "#/components/schemas/CustomColumnColumnName" }, "label": { "type": "string", "example": "Environment name" }, - "column_type": { - "description": "Data type of the column. Only needed for value_type=external.", - "$ref": "#/components/schemas/CustomColumnColumnType" - }, - "value_type": { - "$ref": "#/components/schemas/CustomColumnValueType" - }, "value_expr": { - "description": "Value expression.\nFor value_type=expression, this is the actual SQL query.\nFor value_type=external this is the default value.\n", - "type": "string" - } - } - }, - "CustomColumnDataImport": { - "title": "Custom Column Data Import", - "type": "object", - "description": "Import data into the specified custom column", - "additionalProperties": false, - "required": [ - "data" - ], - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "title": "Filter selecting assets, and value which should be assigned to matches.", - "description": "Asset Filter and corresponding value assignment", - "additionalProperties": true - } - } - } - }, - "CustomColumnDataImportAccepted": { - "type": "object", - "required": [ - "id", - "created_at" - ], - "properties": { + "$ref": "#/components/schemas/CustomColumnValueExpr" + }, + "created_by": { + "$ref": "#/components/schemas/CreatedBy" + }, "created_at": { - "description": "The time the data import was created", - "type": "string", + "example": "2017-07-14T16:53:42Z", "format": "date-time", - "example": "2020-01-01T00:00:00Z" + "type": "string" } } }, - "CustomColumnDataValues": { - "title": "Custom Column Data Values", + "CustomColumnCreateOrUpdate": { + "title": "Custom Column Create or Update", "type": "object", - "description": "Edit one or more values within the specified custom column", + "description": "Create or update a custom column", "additionalProperties": false, "required": [ - "data" + "column_name", + "label", + "value_expr" ], "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "title": "The cq_id of the row and the value to set.", - "description": "CQ_ID and corresponding value assignment", - "additionalProperties": true - } + "description": { + "type": "string" + }, + "column_name": { + "$ref": "#/components/schemas/CustomColumnColumnName" + }, + "label": { + "type": "string", + "example": "Environment name" + }, + "value_expr": { + "$ref": "#/components/schemas/CustomColumnValueExpr" } } }, @@ -18736,146 +15463,120 @@ } } }, - "ContentType": { - "description": "The HTTP Content-Type of the image or asset", - "type": "string", - "example": "image/png", - "enum": [ - "image/jpeg", - "image/png", - "image/webp" - ] - }, - "TeamImageCreate": { + "NotificationDetail": { + "title": "Notification Detail", "type": "object", - "title": "Create Team Image Request", + "description": "A notification instance for a triggered alert, including one notification destination. Each notification destination for an alert will result in a separate notification item.", "additionalProperties": false, "required": [ - "name", - "checksum", - "content_type" + "id", + "query_id", + "policy_id", + "message", + "severity", + "state", + "total_violations", + "created_at", + "updated_at" ], "properties": { - "name": { + "id": { "type": "string", - "minLength": 1, - "maxLength": 64, - "description": "Name of image" + "format": "uuid", + "description": "Unique identifier for the alert", + "x-go-name": "ID" }, - "checksum": { + "query_id": { "type": "string", - "minLength": 40, - "maxLength": 40, - "pattern": "^[a-f0-9]+$", - "description": "SHA1 checksum of image", - "x-pattern-message": "can contain only lowercase hexadecimal characters" + "format": "uuid", + "description": "Reference to the associated query", + "x-go-name": "QueryID" }, - "content_type": { - "$ref": "#/components/schemas/ContentType" - } - } - }, - "TeamImage": { - "required": [ - "url", - "name", - "checksum", - "required_headers" - ], - "properties": { - "name": { + "policy_id": { "type": "string", - "description": "Name of image" + "format": "uuid", + "description": "Reference to the associated policy", + "x-go-name": "PolicyID" }, - "checksum": { + "message": { "type": "string", - "description": "SHA1 checksum of image" + "description": "Alert message content" }, - "url": { - "type": "string", - "description": "URL to download image", - "x-go-name": "URL" + "severity": { + "$ref": "#/components/schemas/AlertSeverity" }, - "upload_url": { - "type": "string", - "description": "URL to upload image", - "x-go-name": "UploadURL" + "state": { + "$ref": "#/components/schemas/AlertState" }, - "required_headers": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": "Required HTTP headers to include for the upload" - } - } - }, - "Email": { - "type": "string", - "example": "user@example.com", - "format": "email" - }, - "Invitation": { - "additionalProperties": false, - "required": [ - "role", - "email", - "team_name", - "created_at" - ], - "properties": { - "team_name": { - "$ref": "#/components/schemas/TeamName" + "total_violations": { + "type": "integer", + "format": "int64", + "description": "Number of violations that triggered the alert" }, - "email": { - "$ref": "#/components/schemas/Email" + "last_evaluated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the alert was last evaluated" }, - "role": { + "triggered_at": { "type": "string", - "example": "admin" + "format": "date-time", + "description": "Timestamp when the alert was triggered" }, "created_at": { - "example": "2017-07-14T16:53:42Z", + "type": "string", "format": "date-time", - "type": "string" - } - } - }, - "MembershipWithTeam": { - "additionalProperties": false, - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string", - "example": "admin:read" - } + "description": "Timestamp when the alert was created" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the alert was last updated" }, - "team": { - "$ref": "#/components/schemas/Team" + "notification_destination": { + "$ref": "#/components/schemas/NotificationDestinationListItem", + "description": "The notification destination for this notification item (null if no destinations configured)", + "nullable": true } - }, - "required": [ - "roles", - "team" - ], - "title": "CloudQuery Team Membership", - "type": "object" + } }, "NotificationDestinationData": { "title": "Notification Destination Data", "type": "object", "description": "Notification Destination Data", - "required": [ - "url" - ], "properties": { + "type": { + "type": "string", + "enum": [ + "webhook", + "slack" + ], + "default": "webhook", + "description": "Type of notification destination" + }, + "slack_connection_id": { + "type": "string", + "format": "uuid", + "description": "Slack connection ID (required for slack type)", + "x-go-name": "SlackConnectionID" + }, + "slack_channels": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Slack channel IDs to send notifications to (required for slack type)", + "x-go-name": "SlackChannels" + }, + "custom_message": { + "type": "string", + "description": "Optional custom message prepended to the alert when sending to Slack (only for slack type, must not be set for webhook)", + "x-go-name": "CustomMessage" + }, "url": { "type": "string", "example": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX", + "description": "Webhook URL (required for webhook type, must not be set for slack type)", "x-go-name": "URL" }, "http_headers": { @@ -18883,12 +15584,14 @@ "additionalProperties": { "type": "string" }, + "description": "HTTP headers (required for webhook type, must not be set for slack type)", "x-go-name": "HTTPHeaders", "x-go-type-skip-optional-pointer": true }, "http_body": { "type": "string", - "example": "{\"text\": \"Alert: {{alert.name}}\"}", + "example": "{\"text\": \"Alert: {{alert_message}}\"}", + "description": "HTTP body template (required for webhook type, must not be set for slack type). Supports simple variable interpolation using {{variable}} syntax. Available variables: {{query_name}}, {{query_url}}, {{alert_status}}, {{alert_message}}, {{alert_severity}}, {{alert_violations}}.", "x-go-name": "HTTPBody" } } @@ -18928,6 +15631,7 @@ "id", "name", "enabled", + "type", "url", "created_at", "updated_at" @@ -18943,6 +15647,14 @@ "enabled": { "type": "boolean" }, + "type": { + "type": "string", + "enum": [ + "webhook", + "slack" + ], + "description": "Type of notification destination" + }, "url": { "type": "string", "example": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX", @@ -18958,9 +15670,50 @@ }, "http_body": { "type": "string", - "example": "{\"text\": \"Alert: {{alert.name}}\"}", + "example": "{\"text\": \"Alert: {{alert_message}}\"}", + "description": "HTTP body template (required for webhook type, must not be set for slack type). Supports simple variable interpolation using {{variable}} syntax. Available variables: {{query_name}}, {{query_url}}, {{alert_status}}, {{alert_message}}, {{alert_severity}}, {{alert_violations}}.", "x-go-name": "HTTPBody" }, + "slack_connection_id": { + "type": "string", + "format": "uuid", + "nullable": true, + "description": "Slack connection ID (only for slack type)", + "x-go-name": "SlackConnectionID" + }, + "slack_channels": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Slack channel IDs (only for slack type)", + "x-go-name": "SlackChannels" + }, + "custom_message": { + "type": "string", + "nullable": true, + "description": "Optional custom message prepended to the alert when sending to Slack (only for slack type)", + "x-go-name": "CustomMessage" + }, + "last_notification_error_timestamp": { + "type": "string", + "format": "date-time", + "nullable": true, + "description": "Timestamp of the last notification error", + "x-go-name": "LastNotificationErrorTimestamp" + }, + "last_notification_error_code": { + "type": "string", + "nullable": true, + "description": "Error code of the last notification error", + "x-go-name": "LastNotificationErrorCode" + }, + "last_notification_error_message": { + "type": "string", + "nullable": true, + "description": "Error message of the last notification error", + "x-go-name": "LastNotificationErrorMessage" + }, "created_at": { "example": "2017-07-14T16:53:42Z", "format": "date-time", @@ -18979,29 +15732,138 @@ "description": "Update Notification Destination", "additionalProperties": false, "properties": { - "name": { + "name": { + "type": "string", + "example": "Send to Slack" + }, + "enabled": { + "type": "boolean" + }, + "url": { + "type": "string", + "example": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX", + "x-go-name": "URL" + }, + "http_headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-go-name": "HTTPHeaders" + }, + "http_body": { + "type": "string", + "example": "{\"text\": \"Alert: {{alert_message}}\"}", + "description": "HTTP body template (required for webhook type, must not be set for slack type). Supports simple variable interpolation using {{variable}} syntax. Available variables: {{query_name}}, {{query_url}}, {{alert_status}}, {{alert_message}}, {{alert_severity}}, {{alert_violations}}.", + "x-go-name": "HTTPBody" + }, + "custom_message": { + "type": "string", + "description": "Optional custom message prepended to the alert when sending to Slack (only for slack type, must not be set for webhook)", + "x-go-name": "CustomMessage" + }, + "slack_connection_id": { + "type": "string", + "format": "uuid", + "description": "Slack connection ID (only for slack type, must not be set for webhook)", + "x-go-name": "SlackConnectionID" + }, + "slack_channels": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of Slack channel IDs to send notifications to (only for slack type, must not be set for webhook)", + "x-go-name": "SlackChannels" + } + } + }, + "SlackConnectionCreate": { + "title": "Create Slack Connection", + "type": "object", + "description": "Create Slack Connection", + "additionalProperties": false, + "required": [ + "code" + ], + "properties": { + "code": { + "type": "string", + "description": "OAuth code from Slack authorization" + }, + "redirect_uri": { + "type": "string", + "description": "Redirect URI that was used when obtaining the OAuth code (required by Slack when exchanging the code)" + } + } + }, + "SlackConnection": { + "title": "Slack Connection", + "type": "object", + "description": "Slack Connection", + "additionalProperties": false, + "required": [ + "id", + "slack_workspace_id", + "team_name", + "created_at", + "updated_at" + ], + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Slack connection ID" + }, + "slack_workspace_id": { + "type": "string", + "description": "Slack workspace (team) ID", + "x-go-name": "SlackWorkspaceID" + }, + "team_name": { + "type": "string", + "description": "Slack workspace (team) name", + "x-go-name": "TeamName" + }, + "created_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string" + }, + "updated_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string" + } + } + }, + "SlackChannel": { + "title": "Slack Channel", + "type": "object", + "description": "Slack Channel", + "additionalProperties": false, + "required": [ + "id", + "name" + ], + "properties": { + "id": { "type": "string", - "example": "Send to Slack" - }, - "enabled": { - "type": "boolean" + "description": "Channel ID" }, - "url": { + "name": { "type": "string", - "example": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX", - "x-go-name": "URL" + "description": "Channel name" }, - "http_headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "HTTPHeaders" + "is_private": { + "type": "boolean", + "description": "Whether the channel is private", + "x-go-name": "IsPrivate" }, - "http_body": { - "type": "string", - "example": "{\"text\": \"Alert: {{alert.name}}\"}", - "x-go-name": "HTTPBody" + "is_archived": { + "type": "boolean", + "description": "Whether the channel is archived", + "x-go-name": "IsArchived" } } }, @@ -19434,285 +16296,206 @@ } } }, - "PlatformPolicySortBy": { - "title": "PlatformPolicySortBy", - "type": "string", - "enum": [ - "id", - "name", - "description", - "status", - "filter_id", - "evaluated_resources", - "rule_violations", - "created_by", - "created_at", - "updated_at" - ] - }, - "PlatformPolicySortDirection": { - "title": "CustomColumnSortDirection", - "type": "string", - "enum": [ - "asc", - "desc" - ], - "default": "asc" - }, - "PlatformPolicy": { + "OnboardingAWSCURCreateResponse": { "type": "object", + "description": "AWS CUR onboarding create response", + "additionalProperties": false, "required": [ "id", - "name", - "description", - "status", - "framework_ids", - "resource_categories" + "region", + "issuer_url", + "audience", + "subject", + "template_url", + "notify_path", + "notify_token" ], "properties": { "id": { - "type": "string", - "format": "uuid", - "x-go-name": "ID" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" + "$ref": "#/components/schemas/OnboardingID" }, - "status": { + "region": { "type": "string", - "enum": [ - "paused", - "active" - ] - }, - "framework_ids": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, - "x-go-name": "FrameworkIDs" + "description": "AWS region where the CUR stack must be deployed. Always 'us-east-1' because AWS Cost and Usage Reports are only available in that region." }, - "filter_id": { + "stack_name": { "type": "string", - "x-go-name": "FilterID" - }, - "evaluated_resources": { - "type": "integer" + "description": "Stack name that should be used", + "maxLength": 128 }, - "rule_violations": { - "type": "integer" + "issuer_url": { + "type": "string", + "description": "URL of the OpenID server to use when setting up a trust relationship", + "x-go-name": "IssuerURL" }, - "created_by": { + "audience": { "type": "string", - "description": "Deprecated: Use created_by2 instead" + "description": "OpenID audience claim for the trust relationship", + "x-go-name": "Audience" }, - "created_by2": { - "$ref": "#/components/schemas/CreatedBy" + "subject": { + "type": "string", + "description": "OpenID subject claim for the trust relationship", + "x-go-name": "Subject" }, - "updated_by": { - "$ref": "#/components/schemas/CreatedBy" + "notify_path": { + "type": "string", + "description": "Path of the notify endpoint to use for status updates", + "x-go-name": "NotifyPath" }, - "created_at": { + "template_url": { "type": "string", - "format": "date-time" + "description": "URL of the CloudFormation template to use for the CUR setup", + "x-go-name": "TemplateURL" }, - "updated_at": { + "notify_token": { "type": "string", - "format": "date-time" + "description": "An authentication token that should be used for notifications" } } }, - "PlatformCreateOrUpdatePolicy": { + "OnboardingAWSCUR": { "type": "object", + "description": "AWS CUR onboarding", + "additionalProperties": false, "required": [ - "name", - "description", - "framework_ids", - "status" + "id", + "stage", + "created_at", + "updated_at", + "issuer_url", + "audience", + "subject" ], "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "framework_ids": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, - "x-go-name": "FrameworkIDs" + "id": { + "$ref": "#/components/schemas/OnboardingID" }, - "filter_id": { + "stage": { "type": "string", - "x-go-name": "FilterID" + "description": "Stage of the onboarding process", + "x-go-name": "OnboardingStage" }, - "status": { - "type": "string", - "enum": [ - "paused", - "active" - ] - } - } - }, - "PlatformPolicyFramework": { - "type": "object", - "properties": { - "id": { + "created_at": { "type": "string", - "format": "uuid", - "x-go-name": "ID" - }, - "label": { - "type": "string" + "format": "date-time", + "example": "2017-07-14T16:53:42Z" }, - "description": { - "type": "string" - } - }, - "required": [ - "id", - "label" - ] - }, - "PlatformPolicyFrameworkSortBy": { - "title": "PlatformPolicyFrameworkSortBy", - "type": "string", - "enum": [ - "id", - "label", - "description" - ] - }, - "PlatformPolicyRuleSortBy": { - "title": "PlatformPolicyRuleSortBy", - "type": "string", - "enum": [ - "id", - "framework_id", - "name", - "description", - "risk", - "category", - "violations", - "version" - ] - }, - "PlatformPolicyRule": { - "type": "object", - "properties": { - "id": { + "updated_at": { "type": "string", - "format": "uuid", - "x-go-name": "ID" + "format": "date-time", + "example": "2017-07-14T16:53:42Z" }, - "framework_id": { + "issuer_url": { "type": "string", - "format": "uuid", - "x-go-name": "FrameworkID" - }, - "framework_name": { - "type": "string" + "description": "URL of the OpenID server to use when setting up a trust relationship", + "x-go-name": "IssuerURL" }, - "name": { - "type": "string" + "audience": { + "type": "string", + "description": "OpenID audience claim for the trust relationship", + "x-go-name": "Audience" }, - "risk": { + "subject": { "type": "string", - "enum": [ - "critical", - "high", - "medium", - "low" - ] + "description": "OpenID subject claim for the trust relationship", + "x-go-name": "Subject" }, - "category": { - "type": "string" + "sync_role_arn": { + "type": "string", + "description": "Role used to access the S3 bucket with CUR reports", + "x-go-name": "SyncRoleARN" }, - "violations": { - "type": "integer" + "s3_bucket_name": { + "type": "string", + "description": "Name of the S3 bucket containing CUR reports", + "x-go-name": "S3BucketName" }, - "description": { - "type": "string" + "s3_report_prefix": { + "type": "string", + "description": "Prefix path for CUR reports in the S3 bucket", + "x-go-name": "S3ReportPrefix" }, - "remediation": { - "type": "string" + "cur_report_name": { + "type": "string", + "description": "Name of the CUR report", + "x-go-name": "CURReportName" }, - "learn_more_link": { - "type": "string" + "failure_reason": { + "type": "string", + "description": "Error details if the onboarding failed", + "x-go-name": "FailureReason" } } }, - "PlatformPolicyRuleDetailSortBy": { - "title": "PlatformPolicyRuleDetailSortBy", - "type": "string", - "enum": [ - "name", - "cloud", - "account", - "region", - "tags" - ] - }, - "PlatformPolicyRuleDetail": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "account": { - "type": "string" - }, - "cloud": { - "type": "string" - }, - "region": { - "type": "string" + "DeployedCURNotification": { + "allOf": [ + { + "$ref": "#/components/schemas/BaseNotification" }, - "tags": { - "type": "array", - "items": { - "type": "string" + { + "type": "object", + "required": [ + "main_role_arn", + "sync_role_arn", + "s3_bucket_name", + "s3_report_prefix", + "cur_report_name", + "stack_id" + ], + "properties": { + "status": { + "enum": [ + "deployed_cur" + ] + }, + "main_role_arn": { + "type": "string" + }, + "sync_role_arn": { + "type": "string" + }, + "s3_bucket_name": { + "type": "string" + }, + "s3_report_prefix": { + "type": "string" + }, + "cur_report_name": { + "type": "string" + }, + "stack_id": { + "type": "string" + } } } - } + ] }, - "PlatformPolicyViolationHistory": { - "type": "object", - "required": [ - "id", - "rule_violations", - "created_at" - ], - "properties": { - "id": { - "type": "string", - "format": "uuid", - "x-go-name": "ID" + "OnboardingAWSCURNotification": { + "oneOf": [ + { + "$ref": "#/components/schemas/StartedNotification" }, - "rule_violations": { - "type": "integer", - "description": "Number of rule violations logged." + { + "$ref": "#/components/schemas/RevokedNotification" }, - "created_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", - "type": "string", - "description": "Time the rule violations were logged." + { + "$ref": "#/components/schemas/FailedNotification" + }, + { + "$ref": "#/components/schemas/DeployedCURNotification" + } + ], + "discriminator": { + "propertyName": "status", + "mapping": { + "started": "#/components/schemas/StartedNotification", + "revoked": "#/components/schemas/RevokedNotification", + "failed": "#/components/schemas/FailedNotification", + "deployed_cur": "#/components/schemas/DeployedCURNotification" } } }, - "QueryTag": { - "description": "A saved query tag.", - "type": "string" - }, "QueryExpression": { "title": "QueryExpression", "type": "string", @@ -19837,6 +16620,14 @@ }, "x-go-type-skip-optional-pointer": true }, + "columns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Columns returned by this query", + "x-go-type-skip-optional-pointer": true + }, "created_at": { "example": "2017-07-14T16:53:42Z", "format": "date-time", @@ -19917,199 +16708,711 @@ "QueryCreate": { "title": "Query Create", "type": "object", - "description": "Create a saved query", + "description": "Create a saved query", + "additionalProperties": false, + "required": [ + "name", + "query" + ], + "properties": { + "name": { + "type": "string", + "example": "Find all t2.micro EC2 instances" + }, + "query": { + "type": "string", + "example": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'" + }, + "public": { + "type": "boolean", + "default": true, + "x-omitempty": false, + "x-go-type-skip-optional-pointer": true + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/QueryTag" + }, + "x-go-type-skip-optional-pointer": true + }, + "description": { + "type": "string", + "example": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table" + }, + "view_name": { + "$ref": "#/components/schemas/QueryViewName" + }, + "alert": { + "$ref": "#/components/schemas/AlertCreate" + } + } + }, + "QueryDetail": { + "title": "Query Detail", + "type": "object", + "description": "Query Detail", + "additionalProperties": false, + "required": [ + "id", + "name", + "query", + "created_at", + "alert_configured" + ], + "properties": { + "id": { + "$ref": "#/components/schemas/QueryID" + }, + "name": { + "type": "string", + "example": "Find all t2.micro EC2 instances" + }, + "query": { + "$ref": "#/components/schemas/QueryExpression" + }, + "description": { + "type": "string", + "example": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table" + }, + "user_id": { + "$ref": "#/components/schemas/UserID" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/QueryTag" + }, + "x-go-type-skip-optional-pointer": true + }, + "columns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Columns returned by this query", + "x-go-type-skip-optional-pointer": true + }, + "created_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string" + }, + "alert_configured": { + "type": "boolean", + "description": "Indicates if the query has an alert configured. When this is set, the alert field will be populated with the alert details." + }, + "alert": { + "$ref": "#/components/schemas/AlertDetail" + }, + "view_name": { + "$ref": "#/components/schemas/QueryViewName" + } + } + }, + "AlertUpdate": { + "title": "Alert Update", + "description": "Alert Update Definition", + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "All resources need to be tagged" + }, + "severity": { + "$ref": "#/components/schemas/AlertSeverity" + }, + "enabled": { + "type": "boolean", + "description": "Indicates if the alert is enabled" + }, + "notification_destinations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NotificationDestinationID" + }, + "description": "List of notification destinations to send alerts to", + "allowEmptyValue": true, + "explode": true + } + } + }, + "QueryUpdate": { + "title": "Query Update", + "type": "object", + "description": "Update a saved query", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "example": "Find all t2.micro EC2 instances" + }, + "query": { + "type": "string", + "example": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instances WHERE instance_type = 't2.micro'" + }, + "public": { + "type": "boolean" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/QueryTag" + } + }, + "description": { + "type": "string", + "example": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instances raw table" + }, + "view_name": { + "$ref": "#/components/schemas/QueryViewName" + }, + "alert": { + "$ref": "#/components/schemas/AlertUpdate" + } + } + }, + "FilterCreate": { + "title": "Filter definition for creating a filter", + "type": "object", + "description": "Saved filter", + "additionalProperties": false, + "required": [ + "name", + "expression" + ], + "properties": { + "name": { + "type": "string", + "example": "t2.micro EC2 instances" + }, + "expression": { + "$ref": "#/components/schemas/FilterExpression" + }, + "public": { + "type": "boolean", + "default": true, + "x-omitempty": false, + "x-go-type-skip-optional-pointer": true, + "description": "Whether the filter is visible to all users, or only to the user who created it" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FilterTag" + }, + "x-go-type-skip-optional-pointer": true + }, + "description": { + "type": "string", + "example": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table" + } + } + }, + "InsightSeverity": { + "description": "Insight severity level", + "type": "string", + "enum": [ + "Low", + "Medium", + "High", + "Critical" + ], + "x-go-name": "InsightSeverity" + }, + "InsightID": { + "description": "Unique identifier for the insight", + "type": "string", + "x-go-name": "InsightID" + }, + "Insight": { + "title": "Insight", + "type": "object", + "description": "Security or compliance insight summary", "additionalProperties": false, "required": [ - "name", - "query" + "id", + "title", + "severity", + "insight_category", + "source", + "source_category", + "resource_types", + "resources_count", + "accounts_count", + "created_at", + "detected_at", + "last_synced_at" ], "properties": { - "name": { + "id": { + "$ref": "#/components/schemas/InsightID" + }, + "title": { "type": "string", - "example": "Find all t2.micro EC2 instances" + "description": "Title of the insight" }, - "query": { + "evidence": { "type": "string", - "example": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instance WHERE instance_type = 't2.micro'" + "description": "Detailed evidence (description) of the insight (Markdown)" }, - "public": { - "type": "boolean", - "default": true, - "x-omitempty": false, - "x-go-type-skip-optional-pointer": true + "mitigation": { + "type": "string", + "description": "Mitigation steps for the insight (Markdown)" + }, + "severity": { + "$ref": "#/components/schemas/InsightSeverity" + }, + "insight_category": { + "type": "string", + "description": "Category (e.g. Security, Cost Optimization)" + }, + "source": { + "type": "string", + "description": "Source (e.g. Platform, Wiz, Lacework)" + }, + "source_category": { + "type": "string", + "description": "Source category (e.g. Platform, Third Party, Custom)" + }, + "subcategory": { + "type": "string", + "nullable": true + }, + "resource_types": { + "type": "string", + "description": "Resource types affected" + }, + "resources_count": { + "type": "integer", + "format": "int64", + "description": "Number of resources affected" + }, + "accounts_count": { + "type": "integer", + "format": "int64", + "description": "Number of accounts affected" }, "tags": { "type": "array", "items": { - "$ref": "#/components/schemas/QueryTag" + "type": "string" }, - "x-go-type-skip-optional-pointer": true + "description": "Tags associated with the insight" }, - "description": { + "created_at": { "type": "string", - "example": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table" + "format": "date-time", + "description": "When the insight record was created" }, - "view_name": { - "$ref": "#/components/schemas/QueryViewName" + "detected_at": { + "type": "string", + "format": "date-time", + "description": "When the insight was first detected" }, - "alert": { - "$ref": "#/components/schemas/AlertCreate" + "last_synced_at": { + "type": "string", + "format": "date-time", + "description": "When the insight was last synced" } } }, - "QueryDetail": { - "title": "Query Detail", + "InsightsListMetadata": { + "required": [ + "page_size" + ], + "properties": { + "total_count": { + "type": "integer" + }, + "resource_count": { + "type": "integer" + }, + "resource_types": { + "type": "integer" + }, + "last_page": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "time_ms": { + "type": "integer" + } + } + }, + "PlatformInsightFilter": { + "title": "Insight Filter", "type": "object", - "description": "Query Detail", + "description": "Saved insight filter details", "additionalProperties": false, "required": [ "id", "name", - "query", "created_at", - "alert_configured" + "updated_at" ], "properties": { "id": { - "$ref": "#/components/schemas/QueryID" + "type": "string", + "format": "uuid", + "example": "12345678-1234-1234-1234-1234567890ab" }, "name": { "type": "string", - "example": "Find all t2.micro EC2 instances" - }, - "query": { - "$ref": "#/components/schemas/QueryExpression" + "example": "My Saved Security Filter" }, "description": { "type": "string", - "example": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table" + "example": "Filters for critical security insights in AWS" }, - "user_id": { - "$ref": "#/components/schemas/UserID" + "search": { + "type": "string", + "example": "s3 bucket" + }, + "insight_category": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "Security", + "Compliance" + ] + }, + "severities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InsightSeverity" + }, + "example": [ + "Critical", + "High" + ] + }, + "resource_types": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "aws_s3_bucket", + "aws_ec2_instance" + ] + }, + "source": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "Platform", + "Wiz" + ] + }, + "source_category": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "Platform", + "Third Party" + ] + }, + "clouds": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "aws", + "azure" + ] + }, + "accounts": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "prod-account", + "staging-account" + ] + }, + "regions": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "us-east-1", + "eu-west-1" + ] }, "tags": { "type": "array", "items": { - "$ref": "#/components/schemas/QueryTag" + "type": "string" }, - "x-go-type-skip-optional-pointer": true + "example": [ + "production", + "critical" + ] }, - "created_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", - "type": "string" + "ownership_tags": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Ownership tag filters keyed by tag name", + "example": { + "team": [ + "engineering", + "platform" + ], + "org": [ + "cloud" + ] + } }, - "alert_configured": { - "type": "boolean", - "description": "Indicates if the query has an alert configured. When this is set, the alert field will be populated with the alert details." + "group_by": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "severity" + ] }, - "alert": { - "$ref": "#/components/schemas/AlertDetail" + "user_id": { + "$ref": "#/components/schemas/UserID" }, - "view_name": { - "$ref": "#/components/schemas/QueryViewName" + "created_at": { + "type": "string", + "format": "date-time", + "example": "2017-07-14T16:53:42Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2017-07-14T16:53:42Z" } } }, - "AlertUpdate": { - "title": "Alert Update", - "description": "Alert Update Definition", + "PlatformInsightFilterCreate": { + "title": "Insight Filter Create", "type": "object", + "description": "Definition for creating a new saved insight filter", + "additionalProperties": false, + "required": [ + "name" + ], "properties": { - "message": { + "name": { "type": "string", - "example": "All resources need to be tagged" + "example": "My Saved Security Filter" }, - "severity": { - "$ref": "#/components/schemas/AlertSeverity" + "description": { + "type": "string", + "example": "Filters for critical security insights in AWS" + }, + "search": { + "type": "string", + "example": "s3 bucket" + }, + "insight_category": { + "type": "array", + "items": { + "type": "string" + } + }, + "severities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InsightSeverity" + } + }, + "resource_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_category": { + "type": "array", + "items": { + "type": "string" + } + }, + "clouds": { + "type": "array", + "items": { + "type": "string" + } + }, + "accounts": { + "type": "array", + "items": { + "type": "string" + } + }, + "regions": { + "type": "array", + "items": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } }, - "enabled": { - "type": "boolean", - "description": "Indicates if the alert is enabled" + "ownership_tags": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "Ownership tag filters keyed by tag name", + "example": { + "team": [ + "engineering", + "platform" + ], + "org": [ + "cloud" + ] + } }, - "notification_destinations": { + "group_by": { "type": "array", "items": { - "$ref": "#/components/schemas/NotificationDestinationID" - }, - "description": "List of notification destinations to send alerts to", - "allowEmptyValue": true, - "explode": true + "type": "string" + } } } }, - "QueryUpdate": { - "title": "Query Update", + "PlatformInsightFilterID": { + "description": "The unique ID for the insight filter", + "type": "string", + "format": "uuid", + "x-go-name": "InsightFilterID" + }, + "PlatformInsightFilterUpdate": { + "title": "Insight Filter Update", "type": "object", - "description": "Update a saved query", + "description": "Definition for updating an existing saved insight filter", "additionalProperties": false, "properties": { "name": { - "type": "string", - "example": "Find all t2.micro EC2 instances" + "type": "string" }, - "query": { - "type": "string", - "example": "SELECT account_id, instance_id, instance_type, region, name, tags FROM aws_ec2_instances WHERE instance_type = 't2.micro'" + "description": { + "type": "string" }, - "public": { - "type": "boolean" + "search": { + "type": "string" }, - "tags": { + "insight_category": { "type": "array", "items": { - "$ref": "#/components/schemas/QueryTag" + "type": "string" } }, - "description": { - "type": "string", - "example": "Query to find all EC2 instances of type t2.micro from the aws_ec2_instances raw table" + "severities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InsightSeverity" + } }, - "view_name": { - "$ref": "#/components/schemas/QueryViewName" + "resource_types": { + "type": "array", + "items": { + "type": "string" + } }, - "alert": { - "$ref": "#/components/schemas/AlertUpdate" - } - } - }, - "FilterCreate": { - "title": "Filter definition for creating a filter", - "type": "object", - "description": "Saved filter", - "additionalProperties": false, - "required": [ - "name", - "expression" - ], - "properties": { - "name": { - "type": "string", - "example": "t2.micro EC2 instances" + "source": { + "type": "array", + "items": { + "type": "string" + } }, - "expression": { - "$ref": "#/components/schemas/FilterExpression" + "source_category": { + "type": "array", + "items": { + "type": "string" + } }, - "public": { - "type": "boolean", - "default": true, - "x-omitempty": false, - "x-go-type-skip-optional-pointer": true, - "description": "Whether the filter is visible to all users in the team, or only to the user who created it" + "clouds": { + "type": "array", + "items": { + "type": "string" + } + }, + "accounts": { + "type": "array", + "items": { + "type": "string" + } + }, + "regions": { + "type": "array", + "items": { + "type": "string" + } }, "tags": { "type": "array", "items": { - "$ref": "#/components/schemas/FilterTag" + "type": "string" + } + }, + "ownership_tags": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } }, - "x-go-type-skip-optional-pointer": true + "description": "Ownership tag filters keyed by tag name", + "example": { + "team": [ + "engineering", + "platform" + ], + "org": [ + "cloud" + ] + } }, - "description": { - "type": "string", - "example": "Filter to find all EC2 instances of type t2.micro from the aws_ec2_instance raw table" + "group_by": { + "type": "array", + "items": { + "type": "string" + } } } }, + "TableRowID": { + "description": "ID of the Resource", + "type": "string", + "example": "table_12345678-1234-1234-1234-1234567890ab" + }, "ReportSortBy": { "title": "ReportSortBy", "type": "string", @@ -20329,6 +17632,23 @@ ], "default": "safe" }, + "SyncEnvCreate": { + "type": "object", + "description": "Environment variable. Environment variables are assumed to be secret.", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the environment variable" + }, + "value": { + "type": "string", + "description": "Value of the environment variable" + } + } + }, "SyncDestinationTestConnectionCreate": { "title": "Sync Destination Test Connection creation definition", "type": "object", @@ -20371,10 +17691,6 @@ "items": { "$ref": "#/components/schemas/SyncEnvCreate" } - }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the destination." } } }, @@ -20561,10 +17877,6 @@ "last_update_source": { "$ref": "#/components/schemas/SyncLastUpdateSource" }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the destination." - }, "transformers": { "type": "array", "items": { @@ -20828,7 +18140,8 @@ "enum": [ "error", "oom_killed", - "partial_success" + "partial_success", + "ingestion_failed" ] }, "ListSyncLastRun": { @@ -20996,10 +18309,6 @@ "$ref": "#/components/schemas/SyncEnvCreate" } }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the destination." - }, "onboarding_id": { "$ref": "#/components/schemas/OnboardingID", "description": "ID of the onboarding that will be used to authenticate the source." @@ -21061,6 +18370,14 @@ "example": "12345678-1234-1234-1234-1234567890ab", "x-go-name": "SyncSourceTestConnectionID" }, + "SyncDestinationName": { + "type": "string", + "example": "my-destination-definition", + "description": "Descriptive, unique name for the destination", + "pattern": "^[a-zA-Z0-9_-]+$", + "x-pattern-message": "can contain only alphanumerical characters, dashes, and underscores", + "x-go-name": "SyncDestinationNameField" + }, "PromoteSyncSourceTestConnection": { "title": "Sync Source definition for creating a new source", "description": "Sync Source Definition", @@ -21097,6 +18414,17 @@ "overwrite_source": { "type": "boolean", "description": "Set this to allow overwriting an existing sync source. Defaults to true to preserve compatibility." + }, + "destination_names": { + "type": "array", + "description": "List of sync destination names associated with this source", + "items": { + "$ref": "#/components/schemas/SyncDestinationName" + }, + "minItems": 0, + "default": [ + "cloudquery" + ] } } }, @@ -21159,10 +18487,6 @@ "last_update_source": { "$ref": "#/components/schemas/SyncLastUpdateSource" }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the source." - }, "onboarding_id": { "$ref": "#/components/schemas/OnboardingID", "description": "ID of the onboarding that will be used to authenticate the source." @@ -21227,8 +18551,7 @@ "title": "Sync Integration Test Connection creation definition", "type": "object", "required": [ - "path", - "version" + "path" ], "properties": { "path": { @@ -21256,10 +18579,6 @@ "$ref": "#/components/schemas/SyncEnvCreate" } }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the destination." - }, "onboarding_id": { "$ref": "#/components/schemas/OnboardingID", "description": "ID of the onboarding that will be used to authenticate the source." @@ -21341,45 +18660,213 @@ "description": "Version of the plugin", "example": "v1.2.3" }, - "tables": { + "tables": { + "type": "array", + "description": "Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified.", + "items": { + "type": "string" + } + }, + "skip_tables": { + "type": "array", + "description": "Tables matched by `tables` that should be skipped. Wildcards are supported.", + "items": { + "type": "string" + } + }, + "spec": { + "type": "object", + "additionalProperties": true, + "format": "Plugin parameters, specific to each plugin" + }, + "env": { + "description": "Environment variables for the plugin. All environment variables will be stored as secrets.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SyncEnv" + } + }, + "last_update_source": { + "$ref": "#/components/schemas/SyncLastUpdateSource" + }, + "onboarding_id": { + "$ref": "#/components/schemas/OnboardingID", + "description": "ID of the onboarding that will be used to authenticate the source." + } + } + }, + "SyncRunWorkerPhase": { + "description": "Phase of the worker in the sync run", + "type": "string", + "enum": [ + "Pending", + "Running", + "Succeeded", + "Failed", + "Unknown" + ] + }, + "SyncRunWorkerStatus": { + "description": "The worker information for a sync run", + "type": "object", + "required": [ + "phase" + ], + "properties": { + "phase": { + "$ref": "#/components/schemas/SyncRunWorkerPhase", + "description": "Phase that the worker is in" + }, + "reason": { + "type": "string", + "description": "The reason for the status of the worker" + } + } + }, + "SyncRun": { + "description": "Managed Sync Run definition", + "type": "object", + "required": [ + "created_at", + "sync_name", + "id", + "status", + "total_rows", + "warnings", + "errors", + "migrate", + "ingested" + ], + "properties": { + "sync_name": { + "type": "string", + "description": "Name of the sync" + }, + "id": { + "type": "string", + "format": "uuid", + "example": "12345678-1234-1234-1234-1234567890ab", + "description": "unique ID of the run", + "x-go-name": "ID" + }, + "status": { + "$ref": "#/components/schemas/SyncRunStatus", + "description": "Status of the sync run" + }, + "status_reason": { + "$ref": "#/components/schemas/SyncRunStatusReason", + "description": "Reason for the status of the sync run" + }, + "workers": { "type": "array", - "description": "Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified.", "items": { - "type": "string" - } + "$ref": "#/components/schemas/SyncRunWorkerStatus" + }, + "description": "Information about the workers used in the sync run" }, - "skip_tables": { - "type": "array", - "description": "Tables matched by `tables` that should be skipped. Wildcards are supported.", - "items": { - "type": "string" - } + "created_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string", + "description": "Time the sync run was created" }, - "spec": { - "type": "object", - "additionalProperties": true, - "format": "Plugin parameters, specific to each plugin" + "completed_at": { + "example": "2017-07-14T16:53:42Z", + "format": "date-time", + "type": "string", + "description": "Time the sync run was completed" }, - "env": { - "description": "Environment variables for the plugin. All environment variables will be stored as secrets.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SyncEnv" - } + "total_rows": { + "type": "integer", + "format": "int64", + "description": "Total number of rows in the sync" }, - "last_update_source": { - "$ref": "#/components/schemas/SyncLastUpdateSource" + "warnings": { + "type": "integer", + "format": "int64", + "description": "Number of warnings encountered during the sync" + }, + "errors": { + "type": "integer", + "format": "int64", + "description": "Number of errors encountered during the sync" }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the source." + "migration": { + "type": "boolean", + "description": "Whether the sync run is a migration" }, - "onboarding_id": { - "$ref": "#/components/schemas/OnboardingID", - "description": "ID of the onboarding that will be used to authenticate the source." + "ingested": { + "type": "boolean", + "description": "Whether the sync run's data has been ingested" } } }, + "SyncDestinationV2": { + "allOf": [ + { + "$ref": "#/components/schemas/SyncDestinationCreate" + }, + { + "type": "object", + "required": [ + "name", + "display_name", + "path", + "version", + "write_mode", + "migrate_mode", + "spec", + "env", + "created_at", + "updated_at", + "last_update_source", + "draft", + "transformers", + "disabled" + ], + "properties": { + "created_at": { + "type": "string", + "format": "date-time", + "example": "2023-07-14T16:53:42Z", + "description": "Time when the source was created" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2023-07-14T16:53:42Z", + "description": "Time when the source was last updated" + }, + "env": { + "description": "Environment variables for the plugin.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SyncEnv" + } + }, + "draft": { + "type": "boolean", + "description": "If a sync destination is in draft, it cannot be used in syncs. To get it out of draft, 'promote' it using a successful test connection ID." + }, + "previous_version": { + "type": "string", + "description": "Previous version of the plugin during a version upgrade", + "example": "v1.2.2" + }, + "disabled": { + "type": "boolean", + "description": "If true, the sync destination is disabled and cannot be used in syncs." + }, + "last_run": { + "$ref": "#/components/schemas/SyncRun" + }, + "plugin": { + "$ref": "#/components/schemas/Plugin" + } + } + } + ] + }, "SyncIntegrationV2": { "type": "object", "description": "An integration definition", @@ -21402,6 +18889,13 @@ "plugin": { "$ref": "#/components/schemas/Plugin" }, + "destinations": { + "type": "array", + "description": "List of sync destinations associated with this integration", + "items": { + "$ref": "#/components/schemas/SyncDestinationV2" + } + }, "schedule": { "type": "string", "description": "Cron schedule for the integration" @@ -21411,17 +18905,6 @@ "description": "Whether the integration is disabled", "default": false }, - "cpu": { - "type": "string", - "description": "CPU quota for the integration", - "default": "1", - "x-go-name": "CPU" - }, - "memory": { - "type": "string", - "description": "Memory quota for the integration", - "default": "2Gi" - }, "created_at": { "type": "string", "format": "date-time", @@ -21492,7 +18975,8 @@ "description": "Create a new sync integration", "required": [ "name", - "source" + "source", + "destination_names" ], "properties": { "name": { @@ -21516,16 +19000,16 @@ "description": "Whether the integration is disabled", "default": false }, - "cpu": { - "type": "string", - "description": "CPU quota for the integration", - "default": "1", - "x-go-name": "CPU" - }, - "memory": { - "type": "string", - "description": "Memory quota for the integration", - "default": "2Gi" + "destination_names": { + "type": "array", + "description": "List of sync destination names associated with this integration", + "items": { + "$ref": "#/components/schemas/SyncDestinationName" + }, + "minItems": 0, + "default": [ + "cloudquery" + ] } } }, @@ -21577,17 +19061,12 @@ "type": "boolean", "description": "Whether the integration is disabled" }, - "cpu": { - "type": "string", - "description": "CPU quota for the integration", - "x-go-name": "CPU" - }, - "memory": { - "type": "string", - "description": "Memory quota for the integration" - }, - "last_update_source": { - "$ref": "#/components/schemas/SyncLastUpdateSource" + "destination_names": { + "type": "array", + "description": "List of sync destinations associated with this integration", + "items": { + "$ref": "#/components/schemas/SyncDestinationName" + } } } }, @@ -21615,6 +19094,17 @@ }, "last_update_source": { "$ref": "#/components/schemas/SyncLastUpdateSource" + }, + "destination_names": { + "type": "array", + "description": "List of sync destination names associated with this source", + "items": { + "$ref": "#/components/schemas/SyncDestinationName" + }, + "minItems": 0, + "default": [ + "cloudquery" + ] } } }, @@ -21662,10 +19152,6 @@ }, "last_update_source": { "$ref": "#/components/schemas/SyncLastUpdateSource" - }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the transformer." } } }, @@ -21870,137 +19356,31 @@ "minItems": 1 }, "schedule": { - "type": "string", - "description": "Cron schedule for the sync" - }, - "disabled": { - "type": "boolean", - "description": "Whether the sync is disabled", - "default": false - }, - "env": { - "type": "array", - "description": "Environment variables for the sync", - "items": { - "$ref": "#/components/schemas/SyncEnv" - } - }, - "cpu": { - "type": "string", - "description": "CPU quota for the sync", - "default": "1", - "x-go-name": "CPU" - }, - "memory": { - "type": "string", - "description": "Memory quota for the sync", - "default": "2Gi" - } - } - }, - "SyncRunWorkerPhase": { - "description": "Phase of the worker in the sync run", - "type": "string", - "enum": [ - "Pending", - "Running", - "Succeeded", - "Failed", - "Unknown" - ] - }, - "SyncRunWorkerStatus": { - "description": "The worker information for a sync run", - "type": "object", - "required": [ - "phase" - ], - "properties": { - "phase": { - "$ref": "#/components/schemas/SyncRunWorkerPhase", - "description": "Phase that the worker is in" - }, - "reason": { - "type": "string", - "description": "The reason for the status of the worker" - } - } - }, - "SyncRun": { - "description": "Managed Sync Run definition", - "type": "object", - "required": [ - "created_at", - "sync_name", - "id", - "status", - "total_rows", - "warnings", - "errors", - "migrate", - "ingested" - ], - "properties": { - "sync_name": { - "type": "string", - "description": "Name of the sync" - }, - "id": { - "type": "string", - "format": "uuid", - "example": "12345678-1234-1234-1234-1234567890ab", - "description": "unique ID of the run", - "x-go-name": "ID" - }, - "status": { - "$ref": "#/components/schemas/SyncRunStatus", - "description": "Status of the sync run" + "type": "string", + "description": "Cron schedule for the sync" }, - "status_reason": { - "$ref": "#/components/schemas/SyncRunStatusReason", - "description": "Reason for the status of the sync run" + "disabled": { + "type": "boolean", + "description": "Whether the sync is disabled", + "default": false }, - "workers": { + "env": { "type": "array", + "description": "Environment variables for the sync", "items": { - "$ref": "#/components/schemas/SyncRunWorkerStatus" - }, - "description": "Information about the workers used in the sync run" + "$ref": "#/components/schemas/SyncEnv" + } }, - "created_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", + "cpu": { "type": "string", - "description": "Time the sync run was created" + "description": "CPU quota for the sync", + "default": "1", + "x-go-name": "CPU" }, - "completed_at": { - "example": "2017-07-14T16:53:42Z", - "format": "date-time", + "memory": { "type": "string", - "description": "Time the sync run was completed" - }, - "total_rows": { - "type": "integer", - "format": "int64", - "description": "Total number of rows in the sync" - }, - "warnings": { - "type": "integer", - "format": "int64", - "description": "Number of warnings encountered during the sync" - }, - "errors": { - "type": "integer", - "format": "int64", - "description": "Number of errors encountered during the sync" - }, - "migration": { - "type": "boolean", - "description": "Whether the sync run is a migration" - }, - "ingested": { - "type": "boolean", - "description": "Whether the sync run's data has been ingested" + "description": "Memory quota for the sync", + "default": "2Gi" } } }, @@ -22116,6 +19496,18 @@ } } }, + "SyncRunTableSortBy": { + "title": "TableSortBy", + "type": "string", + "enum": [ + "name", + "started_at", + "completed_at", + "runtime_seconds", + "resources", + "errors" + ] + }, "SyncRunTableStat": { "type": "object", "required": [ @@ -22168,94 +19560,132 @@ } } }, - "ConnectorCredentialsResponseAWS": { + "TableListItem": { "additionalProperties": false, - "required": [ - "access_key_id", - "secret_access_key", - "session_token", - "source", - "can_expire", - "expires" - ], "properties": { - "access_key_id": { - "type": "string" - }, - "secret_access_key": { - "type": "string" - }, - "session_token": { - "type": "string" - }, - "source": { - "type": "string" - }, - "can_expire": { - "type": "boolean" - }, - "expires": { - "type": "string", - "format": "date-time" + "name": { + "$ref": "#/components/schemas/TableName" } }, - "type": "object", - "description": "AWS connector credentials response" + "required": [ + "name" + ], + "title": "TableListItem", + "type": "object" }, - "ConnectorCredentialsResponseOAuth": { - "additionalProperties": false, + "TableDataListItem": { + "description": "Sync with its associated tables", + "type": "object", "required": [ - "access_token" + "source_name", + "tables" ], "properties": { - "access_token": { - "type": "string" + "source_name": { + "type": "string", + "description": "The unique name of the source (source_name from synced_tables)", + "example": "aws-integration" }, - "expires": { + "display_name": { "type": "string", - "format": "date-time" + "description": "Human-readable display name of the source", + "example": "AWS Integration" + }, + "plugin": { + "$ref": "#/components/schemas/SyncPluginPath", + "example": "cloudquery/aws" + }, + "tables": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "deletion_pending" + ], + "properties": { + "name": { + "type": "string", + "description": "The table name" + }, + "deletion_pending": { + "type": "boolean", + "description": "Whether this table's data is marked for deletion" + } + } + }, + "description": "List of tables synced by this integration with their deletion status", + "example": [ + { + "name": "aws_ec2_instances", + "deletion_pending": false + }, + { + "name": "aws_s3_buckets", + "deletion_pending": true + } + ] } }, - "type": "object", - "description": "OAuth connector credentials response" + "example": { + "source_name": "aws-integration", + "display_name": "AWS Integration", + "plugin": "cloudquery/aws", + "tables": [ + { + "name": "aws_ec2_instances", + "deletion_pending": false + }, + { + "name": "aws_s3_buckets", + "deletion_pending": false + }, + { + "name": "aws_iam_users", + "deletion_pending": true + } + ] + } }, - "ConnectorIdentityResponseAWS": { - "additionalProperties": false, + "TableDataAction": { + "description": "Request body for performing actions on table data", + "type": "object", "required": [ - "role_arn" + "action", + "sources" ], "properties": { - "role_arn": { + "action": { "type": "string", - "description": "Role ARN to assume", - "x-go-name": "RoleARN" - } - }, - "type": "object", - "description": "AWS connector identity response" - }, - "TableListItem": { - "additionalProperties": false, - "properties": { - "name": { - "$ref": "#/components/schemas/TableName" + "enum": [ + "delete" + ], + "description": "The action to perform on the table data" }, - "total_rows": { - "type": "integer", - "x-go-type": "uint64" + "sources": { + "type": "object", + "description": "Map of source names to arrays of table names", + "additionalProperties": { + "type": "array", + "items": { + "type": "string", + "description": "Table name to perform action on" + } + } } }, - "required": [ - "name", - "rows" - ], - "title": "TableListItem", - "type": "object" - }, - "TableRowID": { - "description": "ID of the Resource", - "type": "string", - "example": "table_12345678-1234-1234-1234-1234567890ab" + "example": { + "action": "delete", + "sources": { + "source_name_1": [ + "table_1", + "table_2" + ], + "source_name_2": [ + "table_3" + ] + } + } }, "TableRow": { "additionalProperties": true, @@ -22357,6 +19787,61 @@ "title": "TableSchema", "type": "array" }, + "RelationColumnDef": { + "type": "object", + "required": [ + "field", + "label" + ], + "properties": { + "field": { + "type": "string", + "description": "Column field name in the query result." + }, + "label": { + "type": "string", + "description": "Display label for the column." + }, + "type": { + "type": "string", + "description": "Column render type (e.g. text, tags, boolean, json, code)." + }, + "hidden": { + "type": "boolean", + "description": "Whether the column is present for navigation but not displayed." + } + } + }, + "RelationDef": { + "type": "object", + "required": [ + "title", + "resource_type", + "columns", + "sql_query" + ], + "properties": { + "title": { + "type": "string", + "description": "Display title for the relation tab/section." + }, + "resource_type": { + "type": "string", + "description": "Target CloudQuery table name." + }, + "columns": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RelationColumnDef" + }, + "description": "Column definitions for the relation view." + }, + "sql_query": { + "type": "string", + "description": "ClickHouse SQL template with {{field_name}} placeholders." + } + } + }, "BatchTableSchemaItem": { "title": "BatchTableSchemaItem", "type": "object", @@ -22426,31 +19911,6 @@ "title": "TableColumnValueListItem", "type": "object" }, - "TableRelation": { - "additionalProperties": false, - "properties": { - "table_name": { - "type": "string", - "example": "aws_ec2_images", - "x-go-name": "Table" - }, - "label": { - "type": "string", - "example": "EC2 Image" - }, - "query": { - "type": "string", - "example": "SELECT aws_ec2_images.* FROM aws_ec2_instances JOIN aws_ec2_images ON aws_ec2_instances.image_id = aws_ec2_images.image_id" - } - }, - "required": [ - "table_name", - "label", - "query" - ], - "title": "TableRelation", - "type": "object" - }, "UsageSummaryGroup": { "title": "CloudQuery Usage Summary Group", "description": "A usage summary group.", @@ -22618,91 +20078,231 @@ } } }, - "ImageURL": { + "SAMLConfig": { + "title": "SAML Configuration", + "type": "object", + "additionalProperties": false, + "required": [ + "platform_metadata_download_url", + "platform_certificate_download_url", + "platform_sso_url", + "platform_entity_id", + "enabled", + "can_enable" + ], "properties": { - "upload_url": { + "platform_sso_url": { + "type": "string", + "description": "SAML service URL.", + "format": "url", + "x-go-name": "PlatformSSOURL" + }, + "platform_entity_id": { + "type": "string", + "description": "SAML Entity ID.", + "x-go-name": "PlatformEntityID" + }, + "platform_metadata_download_url": { + "type": "string", + "description": "URL to download platform metadata.", + "format": "url", + "x-go-name": "PlatformMetadataDownloadURL" + }, + "platform_certificate_download_url": { + "type": "string", + "description": "Platform Certificate download URL", + "format": "url", + "x-go-name": "PlatformCertificateDownloadURL" + }, + "metadata_url": { + "type": "string", + "description": "Metadata URL from identity provider. Mutually exclusive with `metadata_xml`", + "format": "url", + "x-go-name": "MetadataURL" + }, + "metadata_xml": { "type": "string", - "example": "https://cloudquery.io/api/v1/upload/1234567890abcdef1234567890abcdef" + "description": "Metadata file contents from identity provider. Mutually exclusive with `metadata_url`", + "format": "url", + "x-go-name": "MetadataXML" + }, + "logout_url": { + "type": "string", + "description": "Logout URL from identity provider", + "format": "url", + "x-go-name": "LogoutURL" }, - "download_url": { + "role_group_key": { "type": "string", - "example": "https://cloudquery.io/api/v1/download/1234567890abcdef1234567890abcdef" + "description": "Role group key name", + "example": "groups" }, - "required_headers": { + "role_mappings": { "type": "object", + "description": "Mapping from IdP group names to roles. Each key is a potential IdP group value for the specified role_group_key, and each value is an array of roles to assign to users in that group.", "additionalProperties": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/Role" } }, - "description": "Required HTTP headers to include for the upload" + "x-go-type-skip-optional-pointer": true + }, + "default_roles": { + "type": "array", + "description": "Default roles for new users who are not in any group", + "items": { + "$ref": "#/components/schemas/Role" + }, + "x-go-type-skip-optional-pointer": true, + "x-omitempty": false + }, + "disable_access_if_no_role_group": { + "type": "boolean", + "description": "Whether to disable access if no role group is found in the SAML assertion. If true, users without a role group will not be able to log in." + }, + "enabled": { + "type": "boolean", + "description": "Whether SAML is enabled" + }, + "can_enable": { + "type": "boolean", + "description": "Whether SAML can be enabled" + }, + "certificate_fingerprint": { + "type": "string", + "description": "Fingerprint of the current SAML certificate" + }, + "certificate_expires_at": { + "type": "string", + "format": "date-time", + "description": "Expiration time of the current SAML certificate" + }, + "rollover_certificate_fingerprint": { + "type": "string", + "description": "Fingerprint of the SAML certificate that will be used after rollover" + }, + "rollover_certificate_expires_at": { + "type": "string", + "format": "date-time", + "description": "Expiration time of the SAML certificate that will be used after rollover" } - }, - "required": [ - "upload_url", - "download_url", - "required_headers" - ] + } }, - "InvitationWithToken": { + "SAMLConfigUpdate": { + "title": "SAML Configuration Update", + "type": "object", "additionalProperties": false, - "allOf": [ - { - "$ref": "#/components/schemas/Invitation" + "properties": { + "metadata_url": { + "type": "string", + "description": "Metadata URL from identity provider. Mutually exclusive with `metadata_xml`", + "format": "url", + "x-go-name": "MetadataURL" }, - { + "metadata_xml": { + "type": "string", + "description": "Metadata file contents from identity provider. Mutually exclusive with `metadata_url`", + "format": "url", + "x-go-name": "MetadataXML" + }, + "logout_url": { + "type": "string", + "description": "Logout URL from identity provider", + "format": "url", + "x-go-name": "LogoutURL" + }, + "role_group_key": { + "type": "string", + "description": "Role group key name" + }, + "role_mappings": { "type": "object", - "properties": { - "token": { - "type": "string", - "format": "uuid", - "description": "The token used to accept the invitation" + "description": "Mapping from IdP group names to roles. Each key is a potential IdP group value for the specified role_group_key, and each value is an array of roles to assign to users in that group.", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleID" } - }, - "required": [ - "token" - ] + } + }, + "default_roles": { + "type": "array", + "description": "Default roles for new users who are not in any group", + "items": { + "$ref": "#/components/schemas/RoleID" + } + }, + "disable_access_if_no_role_group": { + "type": "boolean", + "description": "Whether to disable access if no role group is found in the SAML assertion. If true, users without a role group will not be able to log in." + }, + "enabled": { + "type": "boolean", + "description": "Whether to enable or disable SAML" } - ] + } }, - "RegistryAuthToken": { + "PlatformSettings": { "type": "object", - "description": "JWT token for the image registry", - "additionalProperties": false, + "description": "Platform settings definition", + "required": [ + "enforce_mfa" + ], "properties": { - "access_token": { - "type": "string" - }, - "token": { - "type": "string" + "enforce_mfa": { + "type": "boolean", + "description": "Whether or not to require MFA for all users", + "default": false } - }, - "required": [ - "access_token", - "token" - ] + } }, - "DockerError": { - "additionalProperties": false, - "description": "Error Returned from the Docker Authorization Handler to the Docker Registry", + "PlatformSettingsUpdate": { + "type": "object", + "description": "Platform settings partial update", + "properties": { + "enforce_mfa": { + "type": "boolean", + "description": "Whether or not to require MFA for all users", + "default": false + } + } + }, + "PlatformDataSettings": { + "type": "object", + "description": "Platform data settings definition", "required": [ - "details" + "ownership_tags" ], "properties": { - "details": { - "type": "string" + "ownership_tags": { + "type": "array", + "description": "List of tag names for asset ownership", + "items": { + "type": "string" + }, + "default": [] } - }, - "title": "Docker Error", - "type": "object" + } + }, + "PlatformDataSettingsUpdate": { + "type": "object", + "description": "Platform data settings partial update", + "properties": { + "ownership_tags": { + "type": "array", + "description": "List of tag names for asset ownership", + "items": { + "type": "string" + } + } + } }, "CreateSyncDestinationTestConnectionV2": { "title": "Sync Destination Test Connection creation definition", "type": "object", "required": [ - "path", - "version" + "path" ], "properties": { "path": { @@ -22739,10 +20339,6 @@ "items": { "$ref": "#/components/schemas/SyncEnvCreate" } - }, - "connector_id": { - "$ref": "#/components/schemas/ConnectorID", - "description": "ID of the connector that will be used to authenticate the destination." } } }, @@ -22798,72 +20394,6 @@ } } }, - "SyncDestinationV2": { - "allOf": [ - { - "$ref": "#/components/schemas/SyncDestinationCreate" - }, - { - "type": "object", - "required": [ - "name", - "display_name", - "path", - "version", - "write_mode", - "migrate_mode", - "spec", - "env", - "created_at", - "updated_at", - "last_update_source", - "draft", - "transformers", - "disabled" - ], - "properties": { - "created_at": { - "type": "string", - "format": "date-time", - "example": "2023-07-14T16:53:42Z", - "description": "Time when the source was created" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "example": "2023-07-14T16:53:42Z", - "description": "Time when the source was last updated" - }, - "env": { - "description": "Environment variables for the plugin.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SyncEnv" - } - }, - "draft": { - "type": "boolean", - "description": "If a sync destination is in draft, it cannot be used in syncs. To get it out of draft, 'promote' it using a successful test connection ID." - }, - "previous_version": { - "type": "string", - "description": "Previous version of the plugin during a version upgrade", - "example": "v1.2.2" - }, - "disabled": { - "type": "boolean", - "description": "If true, the sync destination is disabled and cannot be used in syncs." - }, - "last_run": { - "$ref": "#/components/schemas/SyncRun" - }, - "plugin": { - "$ref": "#/components/schemas/Plugin" - } - } - } - ] - }, "CreateSyncDestinationV2": { "title": "Sync Destination definition for creating a new source", "description": "Sync Destination Definition", @@ -23054,6 +20584,20 @@ } } } + }, + "Team": { + "additionalProperties": false, + "description": "CloudQuery Team", + "properties": { + "name": { + "$ref": "#/components/schemas/TeamName" + } + }, + "required": [ + "name" + ], + "title": "Team", + "type": "object" } }, "responses": { @@ -23117,25 +20661,25 @@ }, "description": "Service unavailable" }, - "UnprocessableEntity": { + "TooManyRequests": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FieldError" + "$ref": "#/components/schemas/BasicError" } } }, - "description": "UnprocessableEntity" + "description": "Too Many Requests" }, - "TooManyRequests": { + "UnprocessableEntity": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BasicError" + "$ref": "#/components/schemas/FieldError" } } }, - "description": "Too Many Requests" + "description": "UnprocessableEntity" }, "MethodNotAllowed": { "content": { @@ -23151,21 +20695,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BasicError" + "$ref": "#/components/schemas/FieldError" } } }, "description": "Conflict" - }, - "DockerError": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DockerError" - } - } - }, - "description": "Error Returned from the Docker Authorization Handler to the Docker Registry" } } }