From d0b28199a79ae4ba0ad15a4a58ec286d7f762862 Mon Sep 17 00:00:00 2001 From: cq-bot Date: Tue, 18 Nov 2025 09:43:36 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- client.gen.go | 22685 +++++++++++++++--------------------------------- models.gen.go | 1966 +---- spec.json | 7950 +++++------------ 3 files changed, 9591 insertions(+), 23010 deletions(-) diff --git a/client.gen.go b/client.gen.go index 29637c3..da298df 100644 --- a/client.gen.go +++ b/client.gen.go @@ -337,59 +337,6 @@ type ClientInterface interface { // DeleteTeamAPIKey request DeleteTeamAPIKey(ctx context.Context, teamName TeamName, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListConnectors request - ListConnectors(ctx context.Context, teamName TeamName, params *ListConnectorsParams, 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) - - CreateConnector(ctx context.Context, teamName TeamName, body CreateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetConnector request - GetConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, 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) - - AuthenticateConnectorAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetConnectorAuthStatusGCP request - GetConnectorAuthStatusGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, 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) - - AuthenticateConnectorGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorGCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AuthenticateConnectorFinishGCP request - AuthenticateConnectorFinishGCP(ctx context.Context, teamName TeamName, connectorID ConnectorID, 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) - - AuthenticateConnectorFinishOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishOAuthJSONRequestBody, 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) - - AuthenticateConnectorOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody, 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) @@ -491,135 +438,6 @@ type ClientInterface interface { // GetSubscriptionOrderByTeam request GetSubscriptionOrderByTeam(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, 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) - - CreateSyncDestinationTestConnection(ctx context.Context, teamName TeamName, body CreateSyncDestinationTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSyncDestinationTestConnection request - GetSyncDestinationTestConnection(ctx context.Context, teamName TeamName, 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) - - // PromoteSyncDestinationTestConnectionWithBody request with any body - PromoteSyncDestinationTestConnectionWithBody(ctx context.Context, teamName TeamName, 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) - - // ListSyncDestinations request - ListSyncDestinations(ctx context.Context, teamName TeamName, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSyncDestination request - DeleteSyncDestination(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSyncDestination request - GetSyncDestination(ctx context.Context, teamName TeamName, 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) - - UpdateSyncDestination(ctx context.Context, teamName TeamName, 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) - - // GetTestConnectionForSyncDestination request - GetTestConnectionForSyncDestination(ctx context.Context, teamName TeamName, 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) - - CreateSyncSourceTestConnection(ctx context.Context, teamName TeamName, body CreateSyncSourceTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSyncSourceTestConnection request - GetSyncSourceTestConnection(ctx context.Context, teamName TeamName, 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) - - // PromoteSyncSourceTestConnectionWithBody request with any body - PromoteSyncSourceTestConnectionWithBody(ctx context.Context, teamName TeamName, 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) - - // ListSyncSources request - ListSyncSources(ctx context.Context, teamName TeamName, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSyncSource request - DeleteSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSyncSource request - GetSyncSource(ctx context.Context, teamName TeamName, 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) - - UpdateSyncSource(ctx context.Context, teamName TeamName, 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) - - // GetTestConnectionForSyncSource request - GetTestConnectionForSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ListSyncs request - ListSyncs(ctx context.Context, teamName TeamName, 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) - - // 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) - - // DeleteSync request - DeleteSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSync request - GetSync(ctx context.Context, teamName TeamName, 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) - - UpdateSync(ctx context.Context, teamName TeamName, 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) - - // CreateSyncRun request - CreateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSyncRun request - GetSyncRun(ctx context.Context, teamName TeamName, 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) - - // 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) - - // 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) - - CreateSyncRunProgress(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // ListTeamPluginUsage request ListTeamPluginUsage(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -1801,8 +1619,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) CreateTeamImagesWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTeamImagesRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -1813,8 +1631,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) CreateTeamImages(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTeamImagesRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -1825,8 +1643,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) DeleteTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTeamInvitationRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -1837,8 +1655,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) DeleteTeamInvitation(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTeamInvitationRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -1849,8 +1667,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) ListTeamInvitations(ctx context.Context, teamName TeamName, params *ListTeamInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListTeamInvitationsRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -1861,8 +1679,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) EmailTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEmailTeamInvitationRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -1873,8 +1691,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) EmailTeamInvitation(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEmailTeamInvitationRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -1885,8 +1703,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) AcceptTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAcceptTeamInvitationRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -1897,8 +1715,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) AcceptTeamInvitation(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAcceptTeamInvitationRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -1909,8 +1727,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) CancelTeamInvitation(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCancelTeamInvitationRequest(c.Server, teamName, email) if err != nil { return nil, err } @@ -1921,8 +1739,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) ListInvoicesByTeam(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListInvoicesByTeamRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -1933,8 +1751,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) GetManagedDatabases(ctx context.Context, teamName TeamName, params *GetManagedDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetManagedDatabasesRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -1945,8 +1763,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) CreateManagedDatabaseWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateManagedDatabaseRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -1957,8 +1775,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) CreateManagedDatabase(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateManagedDatabaseRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -1969,8 +1787,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) DeleteManagedDatabase(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteManagedDatabaseRequest(c.Server, teamName, managedDatabaseID) if err != nil { return nil, err } @@ -1981,8 +1799,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) GetManagedDatabase(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetManagedDatabaseRequest(c.Server, teamName, managedDatabaseID) if err != nil { return nil, err } @@ -1993,8 +1811,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) RemoveTeamMembershipWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveTeamMembershipRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -2005,8 +1823,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) RemoveTeamMembership(ctx context.Context, teamName TeamName, body RemoveTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveTeamMembershipRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -2017,8 +1835,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) GetTeamMemberships(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamMembershipsRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -2029,8 +1847,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) DeleteTeamMembership(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTeamMembershipRequest(c.Server, teamName, email) if err != nil { return nil, err } @@ -2041,8 +1859,8 @@ func (c *Client) AuthenticateConnectorOAuth(ctx context.Context, teamName TeamNa 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) DeletePluginsByTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeletePluginsByTeamRequest(c.Server, teamName) if err != nil { return nil, err } @@ -2053,8 +1871,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) ListPluginsByTeam(ctx context.Context, teamName TeamName, params *ListPluginsByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPluginsByTeamRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -2065,8 +1883,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) 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 } @@ -2077,8 +1895,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) GetSettings(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSettingsRequest(c.Server, teamName) if err != nil { return nil, err } @@ -2089,8 +1907,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) UpdateSettingsWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettingsRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -2101,8 +1919,8 @@ func (c *Client) ListTeamInvitations(ctx context.Context, teamName TeamName, par return c.Client.Do(req) } -func (c *Client) EmailTeamInvitationWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEmailTeamInvitationRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UpdateSettings(ctx context.Context, teamName TeamName, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettingsRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -2113,8 +1931,8 @@ func (c *Client) EmailTeamInvitationWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) EmailTeamInvitation(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEmailTeamInvitationRequest(c.Server, teamName, body) +func (c *Client) GetTeamSpend(ctx context.Context, teamName TeamName, params *GetTeamSpendParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamSpendRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -2125,8 +1943,8 @@ func (c *Client) EmailTeamInvitation(ctx context.Context, teamName TeamName, bod 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) DeleteSpendingLimit(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSpendingLimitRequest(c.Server, teamName) if err != nil { return nil, err } @@ -2137,8 +1955,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) GetSpendingLimit(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSpendingLimitRequest(c.Server, teamName) if err != nil { return nil, err } @@ -2149,8 +1967,8 @@ func (c *Client) AcceptTeamInvitation(ctx context.Context, teamName TeamName, bo return c.Client.Do(req) } -func (c *Client) CancelTeamInvitation(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCancelTeamInvitationRequest(c.Server, teamName, email) +func (c *Client) CreateSpendingLimitWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSpendingLimitRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -2161,8 +1979,8 @@ func (c *Client) CancelTeamInvitation(ctx context.Context, teamName TeamName, em return c.Client.Do(req) } -func (c *Client) ListInvoicesByTeam(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListInvoicesByTeamRequest(c.Server, teamName, params) +func (c *Client) CreateSpendingLimit(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSpendingLimitRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -2173,8 +1991,8 @@ func (c *Client) ListInvoicesByTeam(ctx context.Context, teamName TeamName, para return c.Client.Do(req) } -func (c *Client) GetManagedDatabases(ctx context.Context, teamName TeamName, params *GetManagedDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetManagedDatabasesRequest(c.Server, teamName, params) +func (c *Client) UpdateSpendingLimitWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSpendingLimitRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -2185,8 +2003,8 @@ func (c *Client) GetManagedDatabases(ctx context.Context, teamName TeamName, par return c.Client.Do(req) } -func (c *Client) CreateManagedDatabaseWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateManagedDatabaseRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) UpdateSpendingLimit(ctx context.Context, teamName TeamName, body UpdateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSpendingLimitRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -2197,8 +2015,8 @@ func (c *Client) CreateManagedDatabaseWithBody(ctx context.Context, teamName Tea return c.Client.Do(req) } -func (c *Client) CreateManagedDatabase(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateManagedDatabaseRequest(c.Server, teamName, body) +func (c *Client) ListSubscriptionOrdersByTeam(ctx context.Context, teamName TeamName, params *ListSubscriptionOrdersByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSubscriptionOrdersByTeamRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -2209,8 +2027,8 @@ func (c *Client) CreateManagedDatabase(ctx context.Context, teamName TeamName, b return c.Client.Do(req) } -func (c *Client) DeleteManagedDatabase(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteManagedDatabaseRequest(c.Server, teamName, managedDatabaseID) +func (c *Client) CreateSubscriptionOrderForTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionOrderForTeamRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -2221,8 +2039,8 @@ func (c *Client) DeleteManagedDatabase(ctx context.Context, teamName TeamName, m return c.Client.Do(req) } -func (c *Client) GetManagedDatabase(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetManagedDatabaseRequest(c.Server, teamName, managedDatabaseID) +func (c *Client) CreateSubscriptionOrderForTeam(ctx context.Context, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionOrderForTeamRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -2233,8 +2051,8 @@ func (c *Client) GetManagedDatabase(ctx context.Context, teamName TeamName, mana 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) GetSubscriptionOrderByTeam(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSubscriptionOrderByTeamRequest(c.Server, teamName, teamSubscriptionOrderID) if err != nil { return nil, err } @@ -2245,8 +2063,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) ListTeamPluginUsage(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListTeamPluginUsageRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -2257,8 +2075,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) IncreaseTeamPluginUsageWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewIncreaseTeamPluginUsageRequestWithBody(c.Server, teamName, contentType, body) if err != nil { return nil, err } @@ -2269,8 +2087,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) IncreaseTeamPluginUsage(ctx context.Context, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewIncreaseTeamPluginUsageRequest(c.Server, teamName, body) if err != nil { return nil, err } @@ -2281,8 +2099,8 @@ func (c *Client) DeleteTeamMembership(ctx context.Context, teamName TeamName, em 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) 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 } @@ -2293,8 +2111,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) 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 } @@ -2305,8 +2123,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) GetTeamPluginUsage(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamPluginUsageRequest(c.Server, teamName, pluginTeam, pluginKind, pluginName) if err != nil { return nil, err } @@ -2317,8 +2135,8 @@ func (c *Client) DownloadPluginAssetByTeam(ctx context.Context, teamName TeamNam return c.Client.Do(req) } -func (c *Client) GetSettings(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSettingsRequest(c.Server, teamName) +func (c *Client) ListUsersByTeam(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListUsersByTeamRequest(c.Server, teamName, params) if err != nil { return nil, err } @@ -2329,8 +2147,8 @@ func (c *Client) GetSettings(ctx context.Context, teamName TeamName, reqEditors return c.Client.Do(req) } -func (c *Client) UpdateSettingsWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSettingsRequestWithBody(c.Server, teamName, contentType, body) +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 } @@ -2341,8 +2159,8 @@ func (c *Client) UpdateSettingsWithBody(ctx context.Context, teamName TeamName, return c.Client.Do(req) } -func (c *Client) UpdateSettings(ctx context.Context, teamName TeamName, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSettingsRequest(c.Server, teamName, body) +func (c *Client) UploadImage(ctx context.Context, body UploadImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUploadImageRequest(c.Server, body) if err != nil { return nil, err } @@ -2353,8 +2171,8 @@ func (c *Client) UpdateSettings(ctx context.Context, teamName TeamName, body Upd return c.Client.Do(req) } -func (c *Client) GetTeamSpend(ctx context.Context, teamName TeamName, params *GetTeamSpendParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTeamSpendRequest(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 } @@ -2365,8 +2183,8 @@ func (c *Client) GetTeamSpend(ctx context.Context, teamName TeamName, params *Ge return c.Client.Do(req) } -func (c *Client) DeleteSpendingLimit(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSpendingLimitRequest(c.Server, teamName) +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 } @@ -2377,8 +2195,8 @@ func (c *Client) DeleteSpendingLimit(ctx context.Context, teamName TeamName, req return c.Client.Do(req) } -func (c *Client) GetSpendingLimit(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSpendingLimitRequest(c.Server, teamName) +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 } @@ -2389,8 +2207,8 @@ func (c *Client) GetSpendingLimit(ctx context.Context, teamName TeamName, reqEdi return c.Client.Do(req) } -func (c *Client) CreateSpendingLimitWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSpendingLimitRequestWithBody(c.Server, teamName, 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 } @@ -2401,8 +2219,8 @@ func (c *Client) CreateSpendingLimitWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) CreateSpendingLimit(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSpendingLimitRequest(c.Server, teamName, 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 } @@ -2413,8 +2231,8 @@ func (c *Client) CreateSpendingLimit(ctx context.Context, teamName TeamName, bod return c.Client.Do(req) } -func (c *Client) UpdateSpendingLimitWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSpendingLimitRequestWithBody(c.Server, teamName, contentType, body) +func (c *Client) CheckUserAuthStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCheckUserAuthStatusRequest(c.Server) if err != nil { return nil, err } @@ -2425,8 +2243,8 @@ func (c *Client) UpdateSpendingLimitWithBody(ctx context.Context, teamName TeamN return c.Client.Do(req) } -func (c *Client) UpdateSpendingLimit(ctx context.Context, teamName TeamName, body UpdateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSpendingLimitRequest(c.Server, teamName, body) +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 } @@ -2437,8 +2255,8 @@ func (c *Client) UpdateSpendingLimit(ctx context.Context, teamName TeamName, bod return c.Client.Do(req) } -func (c *Client) ListSubscriptionOrdersByTeam(ctx context.Context, teamName TeamName, params *ListSubscriptionOrdersByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSubscriptionOrdersByTeamRequest(c.Server, teamName, params) +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 } @@ -2449,8 +2267,8 @@ func (c *Client) ListSubscriptionOrdersByTeam(ctx context.Context, teamName Team return c.Client.Do(req) } -func (c *Client) CreateSubscriptionOrderForTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSubscriptionOrderForTeamRequestWithBody(c.Server, teamName, 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 } @@ -2461,8 +2279,8 @@ func (c *Client) CreateSubscriptionOrderForTeamWithBody(ctx context.Context, tea return c.Client.Do(req) } -func (c *Client) CreateSubscriptionOrderForTeam(ctx context.Context, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSubscriptionOrderForTeamRequest(c.Server, teamName, 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 } @@ -2473,8 +2291,8 @@ func (c *Client) CreateSubscriptionOrderForTeam(ctx context.Context, teamName Te return c.Client.Do(req) } -func (c *Client) GetSubscriptionOrderByTeam(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSubscriptionOrderByTeamRequest(c.Server, teamName, teamSubscriptionOrderID) +func (c *Client) ListCurrentUserInvitations(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListCurrentUserInvitationsRequest(c.Server, params) if err != nil { return nil, err } @@ -2485,9 +2303,9 @@ func (c *Client) GetSubscriptionOrderByTeam(ctx context.Context, teamName TeamNa 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) - if err != nil { +func (c *Client) LogoutUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLogoutUserRequest(c.Server) + if err != nil { return nil, err } req = req.WithContext(ctx) @@ -2497,8 +2315,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) 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 } @@ -2509,8 +2327,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) LoginUser(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLoginUserRequest(c.Server, body) if err != nil { return nil, err } @@ -2521,8 +2339,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) GetCurrentUserMemberships(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCurrentUserMembershipsRequest(c.Server, params) if err != nil { return nil, err } @@ -2533,8 +2351,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) RegisterUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRegisterUserRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -2545,8 +2363,8 @@ func (c *Client) UpdateSyncTestConnectionForSyncDestination(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) RegisterUser(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRegisterUserRequest(c.Server, body) if err != nil { return nil, err } @@ -2557,8 +2375,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) ResetUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewResetUserPasswordRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -2569,8 +2387,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) ResetUserPassword(ctx context.Context, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewResetUserPasswordRequest(c.Server, body) if err != nil { return nil, err } @@ -2581,8 +2399,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) DeterminePlatformTenantByEmail(ctx context.Context, params *DeterminePlatformTenantByEmailParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeterminePlatformTenantByEmailRequest(c.Server, params) if err != nil { return nil, err } @@ -2593,8 +2411,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) CreateUserToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateUserTokenRequest(c.Server) if err != nil { return nil, err } @@ -2605,8 +2423,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) UserTOTPDelete(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUserTOTPDeleteRequest(c.Server) if err != nil { return nil, err } @@ -2617,8 +2435,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) UserTOTPSetup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUserTOTPSetupRequest(c.Server) if err != nil { return nil, err } @@ -2629,8 +2447,8 @@ func (c *Client) UpdateSyncDestination(ctx context.Context, teamName TeamName, s 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) 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 } @@ -2641,8 +2459,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) 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 } @@ -2653,8 +2471,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) VerifyUserEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewVerifyUserEmailRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -2665,8 +2483,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) VerifyUserEmail(ctx context.Context, body VerifyUserEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewVerifyUserEmailRequest(c.Server, body) if err != nil { return nil, err } @@ -2677,8 +2495,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) DeleteUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserRequest(c.Server, userID) if err != nil { return nil, err } @@ -2689,812 +2507,892 @@ 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) +// 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 } - 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) UpdateSyncTestConnectionForSyncSource(ctx context.Context, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body UpdateSyncTestConnectionForSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncTestConnectionForSyncSourceRequest(c.Server, teamName, syncSourceTestConnectionID, 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 { + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { return nil, err } - return c.Client.Do(req) + + return req, nil } -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) +// NewListAddonsRequest generates requests for ListAddons +func NewListAddonsRequest(server string, params *ListAddonsParams) (*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("/addons") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + 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.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.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() } - 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) + 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) DeleteSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSyncSourceRequest(c.Server, teamName, syncSourceName) +// NewCreateAddonRequest calls the generic CreateAddon builder with application/json body +func NewCreateAddonRequest(server string, body CreateAddonJSONRequestBody) (*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 NewCreateAddonRequestWithBody(server, "application/json", bodyReader) } -func (c *Client) GetSyncSource(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncSourceRequest(c.Server, teamName, syncSourceName) +// NewCreateAddonRequestWithBody generates requests for CreateAddon with any type of body +func NewCreateAddonRequestWithBody(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("/addons") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { return nil, err } - return c.Client.Do(req) + + req.Header.Add("Content-Type", contentType) + + return req, nil } -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) +// NewDeleteAddonByTeamAndNameRequest generates requests for DeleteAddonByTeamAndName +func NewDeleteAddonByTeamAndNameRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName) (*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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - 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) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) + if err != nil { return nil, err } - 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) + 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("/addons/%s/%s/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { return nil, err } - return c.Client.Do(req) + + return req, nil } -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) +// NewGetAddonRequest generates requests for GetAddon +func NewGetAddonRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName) (*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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - 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) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) + if err != nil { return nil, err } - 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) + 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("/addons/%s/%s/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { return nil, err } - return c.Client.Do(req) + + return req, nil } -func (c *Client) DeleteSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSyncRequest(c.Server, teamName, syncName) +// NewUpdateAddonRequest calls the generic UpdateAddon builder with application/json body +func NewUpdateAddonRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, body UpdateAddonJSONRequestBody) (*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 NewUpdateAddonRequestWithBody(server, teamName, addonType, addonName, "application/json", bodyReader) } -func (c *Client) GetSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRequest(c.Server, teamName, syncName) +// NewUpdateAddonRequestWithBody generates requests for UpdateAddon with any type of body +func NewUpdateAddonRequestWithBody(server string, teamName TeamName, addonType AddonType, addonName AddonName, 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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - 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) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) + if err != nil { return nil, err } - 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) + 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("/addons/%s/%s/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { return nil, err } - return c.Client.Do(req) + + req.Header.Add("Content-Type", contentType) + + return req, nil } -func (c *Client) CreateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncRunRequest(c.Server, teamName, syncName) +// NewListAddonVersionsRequest generates requests for ListAddonVersions +func NewListAddonVersionsRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, params *ListAddonVersionsParams) (*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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - 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) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) + if err != nil { return nil, err } - 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) + 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("/addons/%s/%s/%s/versions", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + 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.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.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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() } - 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) + 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) 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) +// NewGetAddonVersionRequest generates requests for GetAddonVersion +func NewGetAddonVersionRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName) (*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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + if err != nil { return nil, err } - 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) + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if err != nil { return nil, err } - 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) + 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("/addons/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { return nil, err } - return c.Client.Do(req) + + return req, nil } -func (c *Client) ListTeamPluginUsage(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTeamPluginUsageRequest(c.Server, teamName, params) +// NewUpdateAddonVersionRequest calls the generic UpdateAddonVersion builder with application/json body +func NewUpdateAddonVersionRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body UpdateAddonVersionJSONRequestBody) (*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 { + bodyReader = bytes.NewReader(buf) + return NewUpdateAddonVersionRequestWithBody(server, teamName, addonType, addonName, versionName, "application/json", bodyReader) +} + +// NewUpdateAddonVersionRequestWithBody generates requests for UpdateAddonVersion with any type of body +func NewUpdateAddonVersionRequestWithBody(server string, teamName TeamName, addonType AddonType, addonName AddonName, 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 } - return c.Client.Do(req) -} -func (c *Client) IncreaseTeamPluginUsageWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIncreaseTeamPluginUsageRequestWithBody(c.Server, teamName, contentType, body) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) 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) IncreaseTeamPluginUsage(ctx context.Context, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIncreaseTeamPluginUsageRequest(c.Server, teamName, body) + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if 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) + 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("/addons/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -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) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { return nil, err } - return c.Client.Do(req) + + req.Header.Add("Content-Type", contentType) + + return req, nil } -func (c *Client) GetTeamPluginUsage(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTeamPluginUsageRequest(c.Server, teamName, pluginTeam, pluginKind, pluginName) +// NewCreateAddonVersionRequest calls the generic CreateAddonVersion builder with application/json body +func NewCreateAddonVersionRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body CreateAddonVersionJSONRequestBody) (*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 NewCreateAddonVersionRequestWithBody(server, teamName, addonType, addonName, versionName, "application/json", bodyReader) } -func (c *Client) ListUsersByTeam(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListUsersByTeamRequest(c.Server, teamName, params) +// NewCreateAddonVersionRequestWithBody generates requests for CreateAddonVersion with any type of body +func NewCreateAddonVersionRequestWithBody(server string, teamName TeamName, addonType AddonType, addonName AddonName, 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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + if 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) + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if err != nil { return nil, err } - 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) + 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("/addons/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCurrentUserRequest(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 { + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { return nil, err } - return c.Client.Do(req) + + req.Header.Add("Content-Type", contentType) + + return req, nil } -func (c *Client) UpdateCurrentUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCurrentUserRequestWithBody(c.Server, contentType, body) +// NewDownloadAddonAssetRequest generates requests for DownloadAddonAsset +func NewDownloadAddonAssetRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetParams) (*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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + if err != nil { return nil, err } - return c.Client.Do(req) -} -func (c *Client) UpdateCurrentUser(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCurrentUserRequest(c.Server, body) + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if err != nil { return nil, err } - return c.Client.Do(req) -} -func (c *Client) SendAnonymousEventWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendAnonymousEventRequestWithBody(c.Server, 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("/addons/%s/%s/%s/versions/%s/assets", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - 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) + 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) CheckUserAuthStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCheckUserAuthStatusRequest(c.Server) + 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 + + 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 c.Client.Do(req) + + return req, nil } -func (c *Client) UpdateCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCustomerRequestWithBody(c.Server, contentType, body) +// NewUploadAddonAssetRequest generates requests for UploadAddonAsset +func NewUploadAddonAssetRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName) (*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 } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + if 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) + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) if err != nil { return nil, err } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if err != nil { return nil, err } - 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) + 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("/addons/%s/%s/%s/versions/%s/assets", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) SendUserEvent(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSendUserEventRequest(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 { + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { return nil, err } - return c.Client.Do(req) + + return req, nil } -func (c *Client) ListCurrentUserInvitations(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListCurrentUserInvitationsRequest(c.Server, params) +// NewCQHealthCheckRequest generates requests for CQHealthCheck +func NewCQHealthCheckRequest(server string) (*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 - } - return c.Client.Do(req) -} -func (c *Client) LogoutUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLogoutUserRequest(c.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("/cq-healthcheck") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) LoginUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLoginUserRequestWithBody(c.Server, contentType, 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) LoginUser(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLoginUserRequest(c.Server, 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) -} -func (c *Client) GetCurrentUserMemberships(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCurrentUserMembershipsRequest(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) + return req, nil } -func (c *Client) RegisterUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegisterUserRequestWithBody(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) -} +// NewGetOpenAPIJSONRequest generates requests for GetOpenAPIJSON +func NewGetOpenAPIJSONRequest(server string) (*http.Request, error) { + var err error -func (c *Client) RegisterUser(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegisterUserRequest(c.Server, 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("/openapi.json") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) ResetUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewResetUserPasswordRequestWithBody(c.Server, contentType, 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) ResetUserPassword(ctx context.Context, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewResetUserPasswordRequest(c.Server, 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) DeterminePlatformTenantByEmail(ctx context.Context, params *DeterminePlatformTenantByEmailParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeterminePlatformTenantByEmailRequest(c.Server, params) +// NewActivatePlatformRequest calls the generic ActivatePlatform builder with application/json body +func NewActivatePlatformRequest(server string, body ActivatePlatformJSONRequestBody) (*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 NewActivatePlatformRequestWithBody(server, "application/json", bodyReader) } -func (c *Client) CreateUserToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateUserTokenRequest(c.Server) +// NewActivatePlatformRequestWithBody generates requests for ActivatePlatform with any type of body +func NewActivatePlatformRequestWithBody(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("/platform/activate") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) UserTOTPDelete(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPDeleteRequest(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) UserTOTPSetup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPSetupRequest(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) UserTOTPVerifyWithBody(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPVerifyRequestWithBody(c.Server, params, contentType, body) +// NewRenewPlatformActivationRequest calls the generic RenewPlatformActivation builder with application/json body +func NewRenewPlatformActivationRequest(server string, body RenewPlatformActivationJSONRequestBody) (*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 NewRenewPlatformActivationRequestWithBody(server, "application/json", bodyReader) } -func (c *Client) UserTOTPVerify(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserTOTPVerifyRequest(c.Server, params, body) +// NewRenewPlatformActivationRequestWithBody generates requests for RenewPlatformActivation with any type of body +func NewRenewPlatformActivationRequestWithBody(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("/platform/activate/renew") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return c.Client.Do(req) -} -func (c *Client) VerifyUserEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVerifyUserEmailRequestWithBody(c.Server, contentType, 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) VerifyUserEmail(ctx context.Context, body VerifyUserEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVerifyUserEmailRequest(c.Server, body) + 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) DeleteUser(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteUserRequest(c.Server, userID) +// NewReportPlatformDataRequest calls the generic ReportPlatformData builder with application/json body +func NewReportPlatformDataRequest(server string, body ReportPlatformDataJSONRequestBody) (*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 NewReportPlatformDataRequestWithBody(server, "application/json", bodyReader) } -// NewHealthCheckRequest generates requests for HealthCheck -func NewHealthCheckRequest(server string) (*http.Request, error) { +// NewReportPlatformDataRequestWithBody generates requests for ReportPlatformData with any type of body +func NewReportPlatformDataRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3502,7 +3400,7 @@ func NewHealthCheckRequest(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/") + operationPath := fmt.Sprintf("/platform/report") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3512,16 +3410,18 @@ func NewHealthCheckRequest(server string) (*http.Request, error) { 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 } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewListAddonsRequest generates requests for ListAddons -func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Request, error) { +// NewListPluginNotificationRequestsRequest generates requests for ListPluginNotificationRequests +func NewListPluginNotificationRequestsRequest(server string, params *ListPluginNotificationRequestsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3529,7 +3429,7 @@ func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Reques return nil, err } - operationPath := fmt.Sprintf("/addons") + operationPath := fmt.Sprintf("/plugin-notification-requests") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3542,22 +3442,6 @@ func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Reques if params != nil { queryValues := queryURL.Query() - 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.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -3601,19 +3485,19 @@ func NewListAddonsRequest(server string, params *ListAddonsParams) (*http.Reques return req, nil } -// NewCreateAddonRequest calls the generic CreateAddon builder with application/json body -func NewCreateAddonRequest(server string, body CreateAddonJSONRequestBody) (*http.Request, error) { +// NewCreatePluginNotificationRequestRequest calls the generic CreatePluginNotificationRequest builder with application/json body +func NewCreatePluginNotificationRequestRequest(server string, body CreatePluginNotificationRequestJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateAddonRequestWithBody(server, "application/json", bodyReader) + return NewCreatePluginNotificationRequestRequestWithBody(server, "application/json", bodyReader) } -// NewCreateAddonRequestWithBody generates requests for CreateAddon with any type of body -func NewCreateAddonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreatePluginNotificationRequestRequestWithBody generates requests for CreatePluginNotificationRequest with any type of body +func NewCreatePluginNotificationRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3621,7 +3505,7 @@ func NewCreateAddonRequestWithBody(server string, contentType string, body io.Re return nil, err } - operationPath := fmt.Sprintf("/addons") + operationPath := fmt.Sprintf("/plugin-notification-requests") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3641,27 +3525,27 @@ func NewCreateAddonRequestWithBody(server string, contentType string, body io.Re return req, nil } -// NewDeleteAddonByTeamAndNameRequest generates requests for DeleteAddonByTeamAndName -func NewDeleteAddonByTeamAndNameRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName) (*http.Request, error) { +// NewDeletePluginNotificationRequestRequest generates requests for DeletePluginNotificationRequest +func NewDeletePluginNotificationRequestRequest(server string, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*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, "plugin_team", runtime.ParamLocationPath, pluginTeam) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + 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, "addon_name", runtime.ParamLocationPath, addonName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -3671,7 +3555,7 @@ func NewDeleteAddonByTeamAndNameRequest(server string, teamName TeamName, addonT return nil, err } - operationPath := fmt.Sprintf("/addons/%s/%s/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugin-notification-requests/%s/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3689,27 +3573,27 @@ func NewDeleteAddonByTeamAndNameRequest(server string, teamName TeamName, addonT return req, nil } -// NewGetAddonRequest generates requests for GetAddon -func NewGetAddonRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName) (*http.Request, error) { +// NewGetPluginNotificationRequestRequest generates requests for GetPluginNotificationRequest +func NewGetPluginNotificationRequestRequest(server string, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*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, "plugin_team", runtime.ParamLocationPath, pluginTeam) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + 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, "addon_name", runtime.ParamLocationPath, addonName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -3719,7 +3603,7 @@ func NewGetAddonRequest(server string, teamName TeamName, addonType AddonType, a return nil, err } - operationPath := fmt.Sprintf("/addons/%s/%s/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugin-notification-requests/%s/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3737,98 +3621,16 @@ func NewGetAddonRequest(server string, teamName TeamName, addonType AddonType, a return req, nil } -// NewUpdateAddonRequest calls the generic UpdateAddon builder with application/json body -func NewUpdateAddonRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, body UpdateAddonJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateAddonRequestWithBody(server, teamName, addonType, addonName, "application/json", bodyReader) -} - -// NewUpdateAddonRequestWithBody generates requests for UpdateAddon with any type of body -func NewUpdateAddonRequestWithBody(server string, teamName TeamName, addonType AddonType, addonName AddonName, 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, "addon_type", runtime.ParamLocationPath, addonType) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/addons/%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 -} - -// NewListAddonVersionsRequest generates requests for ListAddonVersions -func NewListAddonVersionsRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, params *ListAddonVersionsParams) (*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, "addon_type", runtime.ParamLocationPath, addonType) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/addons/%s/%s/%s/versions", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3889,9 +3691,25 @@ func NewListAddonVersionsRequest(server string, teamName TeamName, addonType Add } - if params.IncludeDrafts != nil { + if params.IncludeReleaseStages != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_drafts", runtime.ParamLocationQuery, *params.IncludeDrafts); err != 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 @@ -3916,34 +3734,67 @@ func NewListAddonVersionsRequest(server string, teamName TeamName, addonType Add return req, nil } -// NewGetAddonVersionRequest generates requests for GetAddonVersion -func NewGetAddonVersionRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName) (*http.Request, error) { +// 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 - 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("/plugins") + 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 + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + 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 pathParam2 string + var pathParam1 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) if err != nil { return nil, err } - var pathParam3 string + var pathParam2 string - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -3953,7 +3804,7 @@ func NewGetAddonVersionRequest(server string, teamName TeamName, addonType Addon return nil, err } - operationPath := fmt.Sprintf("/addons/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3963,7 +3814,7 @@ func NewGetAddonVersionRequest(server string, teamName TeamName, addonType Addon 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 } @@ -3971,19 +3822,8 @@ func NewGetAddonVersionRequest(server string, teamName TeamName, addonType Addon return req, nil } -// NewUpdateAddonVersionRequest calls the generic UpdateAddonVersion builder with application/json body -func NewUpdateAddonVersionRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body UpdateAddonVersionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateAddonVersionRequestWithBody(server, teamName, addonType, addonName, versionName, "application/json", bodyReader) -} - -// NewUpdateAddonVersionRequestWithBody generates requests for UpdateAddonVersion with any type of body -func NewUpdateAddonVersionRequestWithBody(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPluginRequest generates requests for GetPlugin +func NewGetPluginRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { var err error var pathParam0 string @@ -3995,21 +3835,14 @@ func NewUpdateAddonVersionRequestWithBody(server string, teamName TeamName, addo var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + 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, "addon_name", runtime.ParamLocationPath, addonName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -4019,7 +3852,7 @@ func NewUpdateAddonVersionRequestWithBody(server string, teamName TeamName, addo return nil, err } - operationPath := fmt.Sprintf("/addons/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4029,29 +3862,27 @@ func NewUpdateAddonVersionRequestWithBody(server string, teamName TeamName, addo 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 } -// NewCreateAddonVersionRequest calls the generic CreateAddonVersion builder with application/json body -func NewCreateAddonVersionRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body CreateAddonVersionJSONRequestBody) (*http.Request, error) { +// 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 NewCreateAddonVersionRequestWithBody(server, teamName, addonType, addonName, versionName, "application/json", bodyReader) + return NewUpdatePluginRequestWithBody(server, teamName, pluginKind, pluginName, "application/json", bodyReader) } -// NewCreateAddonVersionRequestWithBody generates requests for CreateAddonVersion with any type of body -func NewCreateAddonVersionRequestWithBody(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader) (*http.Request, error) { +// 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 @@ -4063,21 +3894,14 @@ func NewCreateAddonVersionRequestWithBody(server string, teamName TeamName, addo var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + 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, "addon_name", runtime.ParamLocationPath, addonName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -4087,7 +3911,7 @@ func NewCreateAddonVersionRequestWithBody(server string, teamName TeamName, addo return nil, err } - operationPath := fmt.Sprintf("/addons/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4097,7 +3921,7 @@ func NewCreateAddonVersionRequestWithBody(server string, teamName TeamName, addo 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 } @@ -4107,8 +3931,8 @@ func NewCreateAddonVersionRequestWithBody(server string, teamName TeamName, addo return req, nil } -// NewDownloadAddonAssetRequest generates requests for DownloadAddonAsset -func NewDownloadAddonAssetRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetParams) (*http.Request, error) { +// NewDeletePluginUpcomingPriceChangesRequest generates requests for DeletePluginUpcomingPriceChanges +func NewDeletePluginUpcomingPriceChangesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { var err error var pathParam0 string @@ -4120,21 +3944,14 @@ func NewDownloadAddonAssetRequest(server string, teamName TeamName, addonType Ad var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + 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, "addon_name", runtime.ParamLocationPath, addonName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } @@ -4144,7 +3961,7 @@ func NewDownloadAddonAssetRequest(server string, teamName TeamName, addonType Ad return nil, err } - operationPath := fmt.Sprintf("/addons/%s/%s/%s/versions/%s/assets", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/upcoming-price-changes", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4154,31 +3971,16 @@ func NewDownloadAddonAssetRequest(server string, teamName TeamName, addonType Ad 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 } - 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 } -// NewUploadAddonAssetRequest generates requests for UploadAddonAsset -func NewUploadAddonAssetRequest(server string, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName) (*http.Request, error) { +// NewListPluginUpcomingPriceChangesRequest generates requests for ListPluginUpcomingPriceChanges +func NewListPluginUpcomingPriceChangesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { var err error var pathParam0 string @@ -4190,85 +3992,24 @@ func NewUploadAddonAssetRequest(server string, teamName TeamName, addonType Addo var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) + 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, "addon_name", runtime.ParamLocationPath, addonName) - 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("/addons/%s/%s/%s/versions/%s/assets", pathParam0, pathParam1, pathParam2, pathParam3) - 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 -} - -// NewCQHealthCheckRequest generates requests for CQHealthCheck -func NewCQHealthCheckRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/cq-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) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } - return req, nil -} - -// NewGetOpenAPIJSONRequest generates requests for GetOpenAPIJSON -func NewGetOpenAPIJSONRequest(server string) (*http.Request, error) { - var err error - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/openapi.json") + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/upcoming-price-changes", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4286,67 +4027,48 @@ func NewGetOpenAPIJSONRequest(server string) (*http.Request, error) { return req, nil } -// NewActivatePlatformRequest calls the generic ActivatePlatform builder with application/json body -func NewActivatePlatformRequest(server string, body ActivatePlatformJSONRequestBody) (*http.Request, error) { +// NewCreatePluginUpcomingPriceChangeRequest calls the generic CreatePluginUpcomingPriceChange builder with application/json body +func NewCreatePluginUpcomingPriceChangeRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body CreatePluginUpcomingPriceChangeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewActivatePlatformRequestWithBody(server, "application/json", bodyReader) + return NewCreatePluginUpcomingPriceChangeRequestWithBody(server, teamName, pluginKind, pluginName, "application/json", bodyReader) } -// NewActivatePlatformRequestWithBody generates requests for ActivatePlatform with any type of body -func NewActivatePlatformRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreatePluginUpcomingPriceChangeRequestWithBody generates requests for CreatePluginUpcomingPriceChange with any type of body +func NewCreatePluginUpcomingPriceChangeRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, 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("/platform/activate") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam0 string - queryURL, err := serverURL.Parse(operationPath) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} + var pathParam2 string -// NewRenewPlatformActivationRequest calls the generic RenewPlatformActivation builder with application/json body -func NewRenewPlatformActivationRequest(server string, body RenewPlatformActivationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewRenewPlatformActivationRequestWithBody(server, "application/json", bodyReader) -} - -// NewRenewPlatformActivationRequestWithBody generates requests for RenewPlatformActivation with any type of body -func NewRenewPlatformActivationRequestWithBody(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("/platform/activate/renew") + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/upcoming-price-changes", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4366,56 +4088,37 @@ func NewRenewPlatformActivationRequestWithBody(server string, contentType string return req, nil } -// NewReportPlatformDataRequest calls the generic ReportPlatformData builder with application/json body -func NewReportPlatformDataRequest(server string, body ReportPlatformDataJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewReportPlatformDataRequestWithBody(server, "application/json", bodyReader) -} - -// NewReportPlatformDataRequestWithBody generates requests for ReportPlatformData with any type of body -func NewReportPlatformDataRequestWithBody(server string, contentType string, body io.Reader) (*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 - serverURL, err := url.Parse(server) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/report") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam1 string - queryURL, err := serverURL.Parse(operationPath) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) if err != nil { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + var pathParam2 string + + 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 -} - -// NewListPluginNotificationRequestsRequest generates requests for ListPluginNotificationRequests -func NewListPluginNotificationRequestsRequest(server string, params *ListPluginNotificationRequestsParams) (*http.Request, error) { - var err error - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/plugin-notification-requests") + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4428,6 +4131,22 @@ func NewListPluginNotificationRequestsRequest(server string, params *ListPluginN if params != nil { queryValues := queryURL.Query() + 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.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -4460,6 +4179,70 @@ func NewListPluginNotificationRequestsRequest(server string, params *ListPluginN } + 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() } @@ -4471,27 +4254,44 @@ func NewListPluginNotificationRequestsRequest(server string, params *ListPluginN return req, nil } -// NewCreatePluginNotificationRequestRequest calls the generic CreatePluginNotificationRequest builder with application/json body -func NewCreatePluginNotificationRequestRequest(server string, body CreatePluginNotificationRequestJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// 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 + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreatePluginNotificationRequestRequestWithBody(server, "application/json", bodyReader) -} -// NewCreatePluginNotificationRequestRequestWithBody generates requests for CreatePluginNotificationRequest with any type of body -func NewCreatePluginNotificationRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + 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("/plugin-notification-requests") + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4501,23 +4301,32 @@ func NewCreatePluginNotificationRequestRequestWithBody(server string, contentTyp 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 } -// NewDeletePluginNotificationRequestRequest generates requests for DeletePluginNotificationRequest -func NewDeletePluginNotificationRequestRequest(server string, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { +// 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) +} + +// 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, "plugin_team", runtime.ParamLocationPath, pluginTeam) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -4536,12 +4345,19 @@ func NewDeletePluginNotificationRequestRequest(server string, pluginTeam PluginT 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("/plugin-notification-requests/%s/%s/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4551,21 +4367,34 @@ func NewDeletePluginNotificationRequestRequest(server string, pluginTeam PluginT 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 } -// NewGetPluginNotificationRequestRequest generates requests for GetPluginNotificationRequest -func NewGetPluginNotificationRequestRequest(server string, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { +// 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) +} + +// 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 var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -4584,12 +4413,19 @@ func NewGetPluginNotificationRequestRequest(server string, pluginTeam PluginTeam 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("/plugin-notification-requests/%s/%s/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4599,148 +4435,61 @@ func NewGetPluginNotificationRequestRequest(server string, pluginTeam PluginTeam 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 } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewListPluginsRequest generates requests for ListPlugins -func NewListPluginsRequest(server string, params *ListPluginsParams) (*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 - serverURL, err := url.Parse(server) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/plugins") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam1 string - queryURL, err := serverURL.Parse(operationPath) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) if err != nil { return nil, err } - if params != nil { - queryValues := queryURL.Query() - - 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.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) - } - } - } - - } + var pathParam2 string - queryURL.RawQuery = queryValues.Encode() + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if err != nil { + return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) if err != nil { return nil, err } - return req, nil -} + var pathParam4 string -// 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) + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) 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") + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4750,18 +4499,31 @@ func NewCreatePluginRequestWithBody(server string, contentType string, body io.R 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 } -// NewDeletePluginByTeamAndPluginNameRequest generates requests for DeletePluginByTeamAndPluginName -func NewDeletePluginByTeamAndPluginNameRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { +// 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 var pathParam0 string @@ -4785,22 +4547,36 @@ func NewDeletePluginByTeamAndPluginNameRequest(server string, teamName TeamName, return nil, err } - serverURL, err := url.Parse(server) + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam4 string - queryURL, err := serverURL.Parse(operationPath) + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) if err != nil { return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + 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 + } + + 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 } @@ -4808,8 +4584,19 @@ func NewDeletePluginByTeamAndPluginNameRequest(server string, teamName TeamName, return req, nil } -// NewGetPluginRequest generates requests for GetPlugin -func NewGetPluginRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { +// 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) +} + +// 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 @@ -4833,12 +4620,19 @@ func NewGetPluginRequest(server string, teamName TeamName, pluginKind PluginKind 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", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4848,27 +4642,18 @@ func NewGetPluginRequest(server string, teamName TeamName, pluginKind PluginKind return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// 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) + return req, nil } -// 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) { +// 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 @@ -4892,12 +4677,19 @@ func NewUpdatePluginRequestWithBody(server string, teamName TeamName, pluginKind 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", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4907,18 +4699,65 @@ func NewUpdatePluginRequestWithBody(server string, teamName TeamName, pluginKind return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + 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 } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeletePluginUpcomingPriceChangesRequest generates requests for DeletePluginUpcomingPriceChanges -func NewDeletePluginUpcomingPriceChangesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { +// 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) +} + +// 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 var pathParam0 string @@ -4942,12 +4781,19 @@ func NewDeletePluginUpcomingPriceChangesRequest(server string, teamName TeamName 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/upcoming-price-changes", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4957,16 +4803,29 @@ func NewDeletePluginUpcomingPriceChangesRequest(server string, teamName TeamName 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 } -// NewListPluginUpcomingPriceChangesRequest generates requests for ListPluginUpcomingPriceChanges -func NewListPluginUpcomingPriceChangesRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { +// 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) { var err error var pathParam0 string @@ -4990,12 +4849,19 @@ func NewListPluginUpcomingPriceChangesRequest(server string, teamName TeamName, 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/upcoming-price-changes", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5005,27 +4871,29 @@ func NewListPluginUpcomingPriceChangesRequest(server string, teamName TeamName, 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 } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewCreatePluginUpcomingPriceChangeRequest calls the generic CreatePluginUpcomingPriceChange builder with application/json body -func NewCreatePluginUpcomingPriceChangeRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body CreatePluginUpcomingPriceChangeJSONRequestBody) (*http.Request, error) { +// 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) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreatePluginUpcomingPriceChangeRequestWithBody(server, teamName, pluginKind, pluginName, "application/json", bodyReader) + return NewDeletePluginVersionTablesRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) } -// NewCreatePluginUpcomingPriceChangeRequestWithBody generates requests for CreatePluginUpcomingPriceChange with any type of body -func NewCreatePluginUpcomingPriceChangeRequestWithBody(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader) (*http.Request, error) { +// 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) { var err error var pathParam0 string @@ -5049,12 +4917,19 @@ func NewCreatePluginUpcomingPriceChangeRequestWithBody(server string, teamName T 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/upcoming-price-changes", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5064,7 +4939,7 @@ func NewCreatePluginUpcomingPriceChangeRequestWithBody(server string, teamName T return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -5074,8 +4949,8 @@ func NewCreatePluginUpcomingPriceChangeRequestWithBody(server string, teamName T return req, nil } -// NewListPluginVersionsRequest generates requests for ListPluginVersions -func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams) (*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 @@ -5099,12 +4974,19 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P 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", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5117,22 +4999,6 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P if params != nil { queryValues := queryURL.Query() - 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.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -5165,83 +5031,30 @@ func NewListPluginVersionsRequest(server string, teamName TeamName, pluginKind P } - if params.IncludeDrafts != nil { + queryURL.RawQuery = queryValues.Encode() + } - 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) - } - } - } + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - } + return req, nil +} - if params.IncludeFips != 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 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 - } - - return req, nil -} - -// NewGetPluginVersionRequest generates requests for GetPluginVersion -func NewGetPluginVersionRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName) (*http.Request, error) { +// 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 var pathParam0 string @@ -5277,7 +5090,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("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5287,27 +5100,18 @@ func NewGetPluginVersionRequest(server string, teamName TeamName, pluginKind Plu 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) -// 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) + return req, 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) { +// 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 @@ -5338,70 +5142,9 @@ func NewUpdatePluginVersionRequestWithBody(server string, teamName TeamName, plu 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) - - 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) -} - -// 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 - - 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 + var pathParam4 string - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) if err != nil { return nil, err } @@ -5411,7 +5154,7 @@ func NewCreatePluginVersionRequestWithBody(server string, teamName TeamName, plu return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5421,18 +5164,16 @@ func NewCreatePluginVersionRequestWithBody(server string, teamName TeamName, plu 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 } -// NewDownloadPluginAssetRequest generates requests for DownloadPluginAsset -func NewDownloadPluginAssetRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams) (*http.Request, error) { +// NewRemovePluginUIAssetsRequest generates requests for RemovePluginUIAssets +func NewRemovePluginUIAssetsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName) (*http.Request, error) { var err error var pathParam0 string @@ -5463,19 +5204,12 @@ func NewDownloadPluginAssetRequest(server string, teamName TeamName, pluginKind return nil, err } - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) - 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/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5485,31 +5219,27 @@ func NewDownloadPluginAssetRequest(server string, teamName TeamName, pluginKind 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 } - 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 +} +// 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 } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewUploadPluginUIAssetsRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) } -// NewUploadPluginAssetRequest generates requests for UploadPluginAsset -func NewUploadPluginAssetRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName) (*http.Request, error) { +// 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) { var err error var pathParam0 string @@ -5540,19 +5270,12 @@ func NewUploadPluginAssetRequest(server string, teamName TeamName, pluginKind Pl return nil, err } - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) - 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/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5562,27 +5285,29 @@ func NewUploadPluginAssetRequest(server string, teamName TeamName, pluginKind Pl 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 } -// 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) { +// 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) { 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) + return NewFinalizePluginUIAssetUploadRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) } -// 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) { +// 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) { var err error var pathParam0 string @@ -5618,7 +5343,7 @@ func NewDeletePluginVersionDocsRequestWithBody(server string, teamName TeamName, return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/docs", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5628,7 +5353,7 @@ func NewDeletePluginVersionDocsRequestWithBody(server string, teamName TeamName, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -5638,44 +5363,16 @@ func NewDeletePluginVersionDocsRequestWithBody(server string, teamName TeamName, return req, nil } -// NewListPluginVersionDocsRequest generates requests for ListPluginVersionDocs -func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionDocsParams) (*http.Request, error) { +// NewAuthRegistryRequestRequest generates requests for AuthRegistryRequest +func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestParams) (*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/docs", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/registry/auth") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5688,9 +5385,9 @@ func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKin if params != nil { queryValues := queryURL.Query() - if params.Page != nil { + if params.Account != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); 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 @@ -5704,9 +5401,25 @@ func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKin } - if params.PerPage != nil { + if params.Service != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "service", runtime.ParamLocationQuery, *params.Service); err != nil { + return nil, err + } else if 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.Scope != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -5728,58 +5441,121 @@ func NewListPluginVersionDocsRequest(server string, teamName TeamName, pluginKin return nil, err } - return req, nil -} + if params != nil { + + if params.XMetaPluginVersion != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Meta-Plugin-Version", runtime.ParamLocationHeader, *params.XMetaPluginVersion) + if err != nil { + return nil, err + } + + req.Header.Set("X-Meta-Plugin-Version", headerParam0) + } + + if params.XMetaUserTeamName != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Meta-User-Team-Name", runtime.ParamLocationHeader, *params.XMetaUserTeamName) + if err != nil { + return nil, err + } + + req.Header.Set("X-Meta-User-Team-Name", headerParam1) + } -// 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) + + return req, 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) { +// NewListTeamsRequest generates requests for ListTeams +func NewListTeamsRequest(server string, params *ListTeamsParams) (*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("/teams") + 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 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 } - var pathParam3 string + return req, nil +} - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) +// NewCreateTeamRequest calls the generic CreateTeam builder with application/json body +func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*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) +} + +// NewCreateTeamRequestWithBody generates requests for CreateTeam with any type of body +func NewCreateTeamRequestWithBody(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("/teams") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5799,19 +5575,8 @@ 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) { +// NewDeleteTeamRequest generates requests for DeleteTeam +func NewDeleteTeamRequest(server string, teamName TeamName) (*http.Request, error) { var err error var pathParam0 string @@ -5821,23 +5586,36 @@ func NewCreatePluginVersionDocsRequestWithBody(server string, teamName TeamName, 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("/teams/%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 +} + +// NewGetTeamByNameRequest generates requests for GetTeamByName +func NewGetTeamByNameRequest(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 } @@ -5847,7 +5625,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("/teams/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5857,29 +5635,27 @@ 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) { +// 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 NewDeletePluginVersionTablesRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) + return NewUpdateTeamRequestWithBody(server, teamName, "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) { +// NewUpdateTeamRequestWithBody generates requests for UpdateTeam with any type of body +func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -5889,33 +5665,12 @@ func NewDeletePluginVersionTablesRequestWithBody(server string, teamName TeamNam 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/tables", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/teams/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5925,7 +5680,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 } @@ -5935,8 +5690,8 @@ 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) { +// NewListAddonOrdersByTeamRequest generates requests for ListAddonOrdersByTeam +func NewListAddonOrdersByTeamRequest(server string, teamName TeamName, params *ListAddonOrdersByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -5946,33 +5701,12 @@ func NewListPluginVersionTablesRequest(server string, teamName TeamName, pluginK 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/tables", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/teams/%s/addon-orders", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6028,19 +5762,19 @@ func NewListPluginVersionTablesRequest(server string, teamName TeamName, pluginK 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) { +// NewCreateAddonOrderForTeamRequest calls the generic CreateAddonOrderForTeam builder with application/json body +func NewCreateAddonOrderForTeamRequest(server string, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody) (*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) + return NewCreateAddonOrderForTeamRequestWithBody(server, teamName, "application/json", bodyReader) } -// 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) { +// NewCreateAddonOrderForTeamRequestWithBody generates requests for CreateAddonOrderForTeam with any type of body +func NewCreateAddonOrderForTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6050,23 +5784,45 @@ func NewCreatePluginVersionTablesRequestWithBody(server string, teamName TeamNam 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("/teams/%s/addon-orders", 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 - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAddonOrderByTeamRequest generates requests for GetAddonOrderByTeam +func NewGetAddonOrderByTeamRequest(server string, teamName TeamName, addonOrderID AddonOrderID) (*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, "addon_order_id", runtime.ParamLocationPath, addonOrderID) if err != nil { return nil, err } @@ -6076,7 +5832,7 @@ func NewCreatePluginVersionTablesRequestWithBody(server string, teamName TeamNam return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/teams/%s/addon-orders/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6086,18 +5842,16 @@ func NewCreatePluginVersionTablesRequestWithBody(server string, teamName TeamNam 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 } -// NewGetPluginVersionTableRequest generates requests for GetPluginVersionTable -func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string) (*http.Request, error) { +// NewDeleteAddonsByTeamRequest generates requests for DeleteAddonsByTeam +func NewDeleteAddonsByTeamRequest(server string, teamName TeamName) (*http.Request, error) { var err error var pathParam0 string @@ -6107,30 +5861,36 @@ func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKin 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("/teams/%s/addons", 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 - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } - var pathParam4 string + return req, nil +} - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "table_name", runtime.ParamLocationPath, tableName) +// NewListAddonsByTeamRequest generates requests for ListAddonsByTeam +func NewListAddonsByTeamRequest(server string, teamName TeamName, params *ListAddonsByTeamParams) (*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 } @@ -6140,7 +5900,7 @@ func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKin return nil, err } - operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/tables/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) + operationPath := fmt.Sprintf("/teams/%s/addons", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6150,6 +5910,60 @@ func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKin return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IncludePrivate != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_private", runtime.ParamLocationQuery, *params.IncludePrivate); err != nil { + return nil, err + } else if 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 @@ -6158,8 +5972,8 @@ func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKin return req, nil } -// NewRemovePluginUIAssetsRequest generates requests for RemovePluginUIAssets -func NewRemovePluginUIAssetsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName) (*http.Request, error) { +// NewDownloadAddonAssetByTeamRequest generates requests for DownloadAddonAssetByTeam +func NewDownloadAddonAssetByTeamRequest(server string, teamName TeamName, addonTeam AddonTeam, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -6171,21 +5985,28 @@ func NewRemovePluginUIAssetsRequest(server string, teamName TeamName, pluginKind var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_team", runtime.ParamLocationPath, addonTeam) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "addon_type", runtime.ParamLocationPath, addonType) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) + 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 } @@ -6195,7 +6016,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("/teams/%s/addons/%s/%s/%s/versions/%s/assets", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6205,27 +6026,42 @@ func NewRemovePluginUIAssetsRequest(server string, teamName TeamName, pluginKind 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 } -// 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) { +// NewAIOnboardingChatRequest calls the generic AIOnboardingChat builder with application/json body +func NewAIOnboardingChatRequest(server string, teamName string, body AIOnboardingChatJSONRequestBody) (*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) + return NewAIOnboardingChatRequestWithBody(server, teamName, "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) { +// NewAIOnboardingChatRequestWithBody generates requests for AIOnboardingChat with any type of body +func NewAIOnboardingChatRequestWithBody(server string, teamName string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6235,23 +6071,38 @@ func NewUploadPluginUIAssetsRequestWithBody(server string, teamName TeamName, pl 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("/teams/%s/ai-onboarding/chat", 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("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAIOnboardingEndConversationRequest generates requests for AIOnboardingEndConversation +func NewAIOnboardingEndConversationRequest(server string, teamName 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 } @@ -6261,7 +6112,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("/teams/%s/ai-onboarding/conversations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6271,29 +6122,27 @@ func NewUploadPluginUIAssetsRequestWithBody(server string, teamName TeamName, pl 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 } -// 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) { +// NewAIOnboardingNewConversationRequest calls the generic AIOnboardingNewConversation builder with application/json body +func NewAIOnboardingNewConversationRequest(server string, teamName string, body AIOnboardingNewConversationJSONRequestBody) (*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 NewAIOnboardingNewConversationRequestWithBody(server, teamName, "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) { +// NewAIOnboardingNewConversationRequestWithBody generates requests for AIOnboardingNewConversation with any type of body +func NewAIOnboardingNewConversationRequestWithBody(server string, teamName string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6303,33 +6152,12 @@ func NewFinalizePluginUIAssetUploadRequestWithBody(server string, teamName TeamN 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/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/teams/%s/ai-onboarding/conversations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6339,7 +6167,7 @@ func NewFinalizePluginUIAssetUploadRequestWithBody(server string, teamName TeamN return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -6349,16 +6177,23 @@ func NewFinalizePluginUIAssetUploadRequestWithBody(server string, teamName TeamN return req, nil } -// NewAuthRegistryRequestRequest generates requests for AuthRegistryRequest -func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestParams) (*http.Request, error) { +// NewListTeamAPIKeysRequest generates requests for ListTeamAPIKeys +func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTeamAPIKeysParams) (*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("/registry/auth") + operationPath := fmt.Sprintf("/teams/%s/apikeys", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6371,9 +6206,9 @@ func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestPar if params != nil { queryValues := queryURL.Query() - if params.Account != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account", runtime.ParamLocationQuery, *params.Account); 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 @@ -6387,116 +6222,9 @@ func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestPar } - if params.Service != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "service", runtime.ParamLocationQuery, *params.Service); err != nil { - return nil, err - } else if 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.Scope != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != nil { - return nil, err - } else if 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 - } - - if params != nil { - - if params.XMetaPluginVersion != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Meta-Plugin-Version", runtime.ParamLocationHeader, *params.XMetaPluginVersion) - if err != nil { - return nil, err - } - - req.Header.Set("X-Meta-Plugin-Version", headerParam0) - } - - if params.XMetaUserTeamName != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Meta-User-Team-Name", runtime.ParamLocationHeader, *params.XMetaUserTeamName) - if err != nil { - return nil, err - } - - req.Header.Set("X-Meta-User-Team-Name", headerParam1) - } - - } - - 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") - 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 { + 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 @@ -6521,27 +6249,34 @@ 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) { +// NewCreateTeamAPIKeyRequest calls the generic CreateTeamAPIKey builder with application/json body +func NewCreateTeamAPIKeyRequest(server string, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody) (*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 NewCreateTeamAPIKeyRequestWithBody(server, teamName, "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) { +// NewCreateTeamAPIKeyRequestWithBody generates requests for CreateTeamAPIKey with any type of body +func NewCreateTeamAPIKeyRequestWithBody(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") + operationPath := fmt.Sprintf("/teams/%s/apikeys", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6561,8 +6296,8 @@ 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) { +// NewDeleteTeamAPIKeyRequest generates requests for DeleteTeamAPIKey +func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKeyID) (*http.Request, error) { var err error var pathParam0 string @@ -6572,12 +6307,19 @@ func NewDeleteTeamRequest(server string, teamName TeamName) (*http.Request, erro return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "apikey_id", runtime.ParamLocationPath, apiKeyID) + 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("/teams/%s/apikeys/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6595,8 +6337,19 @@ func NewDeleteTeamRequest(server string, teamName TeamName) (*http.Request, erro return req, nil } -// NewGetTeamByNameRequest generates requests for GetTeamByName -func NewGetTeamByNameRequest(server string, teamName TeamName) (*http.Request, error) { +// 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) { var err error var pathParam0 string @@ -6611,7 +6364,7 @@ func NewGetTeamByNameRequest(server string, teamName TeamName) (*http.Request, e return nil, err } - operationPath := fmt.Sprintf("/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/images", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6621,27 +6374,29 @@ 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 } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewUpdateTeamRequest calls the generic UpdateTeam builder with application/json body -func NewUpdateTeamRequest(server string, teamName TeamName, body UpdateTeamJSONRequestBody) (*http.Request, error) { +// 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 err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateTeamRequestWithBody(server, teamName, "application/json", bodyReader) + return NewDeleteTeamInvitationRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewUpdateTeamRequestWithBody generates requests for UpdateTeam with any type of body -func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteTeamInvitationRequestWithBody generates requests for DeleteTeamInvitation with any type of body +func NewDeleteTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6656,7 +6411,7 @@ func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType return nil, err } - operationPath := fmt.Sprintf("/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6666,7 +6421,7 @@ func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType 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 } @@ -6676,8 +6431,8 @@ func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType return req, nil } -// NewListAddonOrdersByTeamRequest generates requests for ListAddonOrdersByTeam -func NewListAddonOrdersByTeamRequest(server string, teamName TeamName, params *ListAddonOrdersByTeamParams) (*http.Request, error) { +// NewListTeamInvitationsRequest generates requests for ListTeamInvitations +func NewListTeamInvitationsRequest(server string, teamName TeamName, params *ListTeamInvitationsParams) (*http.Request, error) { var err error var pathParam0 string @@ -6692,7 +6447,7 @@ func NewListAddonOrdersByTeamRequest(server string, teamName TeamName, params *L return nil, err } - operationPath := fmt.Sprintf("/teams/%s/addon-orders", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6748,19 +6503,19 @@ func NewListAddonOrdersByTeamRequest(server string, teamName TeamName, params *L return req, nil } -// NewCreateAddonOrderForTeamRequest calls the generic CreateAddonOrderForTeam builder with application/json body -func NewCreateAddonOrderForTeamRequest(server string, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody) (*http.Request, error) { +// NewEmailTeamInvitationRequest calls the generic EmailTeamInvitation builder with application/json body +func NewEmailTeamInvitationRequest(server string, teamName TeamName, body EmailTeamInvitationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateAddonOrderForTeamRequestWithBody(server, teamName, "application/json", bodyReader) + return NewEmailTeamInvitationRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewCreateAddonOrderForTeamRequestWithBody generates requests for CreateAddonOrderForTeam with any type of body -func NewCreateAddonOrderForTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewEmailTeamInvitationRequestWithBody generates requests for EmailTeamInvitation with any type of body +func NewEmailTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6775,7 +6530,7 @@ func NewCreateAddonOrderForTeamRequestWithBody(server string, teamName TeamName, return nil, err } - operationPath := fmt.Sprintf("/teams/%s/addon-orders", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6795,20 +6550,24 @@ func NewCreateAddonOrderForTeamRequestWithBody(server string, teamName TeamName, return req, nil } -// NewGetAddonOrderByTeamRequest generates requests for GetAddonOrderByTeam -func NewGetAddonOrderByTeamRequest(server string, teamName TeamName, addonOrderID AddonOrderID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewAcceptTeamInvitationRequest calls the generic AcceptTeamInvitation builder with application/json body +func NewAcceptTeamInvitationRequest(server string, teamName TeamName, body AcceptTeamInvitationJSONRequestBody) (*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) +} - var pathParam1 string +// NewAcceptTeamInvitationRequestWithBody generates requests for AcceptTeamInvitation with any type of body +func NewAcceptTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_order_id", runtime.ParamLocationPath, addonOrderID) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -6818,7 +6577,7 @@ func NewGetAddonOrderByTeamRequest(server string, teamName TeamName, addonOrderI return nil, err } - operationPath := fmt.Sprintf("/teams/%s/addon-orders/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/invitations/accept", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6828,16 +6587,18 @@ func NewGetAddonOrderByTeamRequest(server string, teamName TeamName, addonOrderI 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 } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewDeleteAddonsByTeamRequest generates requests for DeleteAddonsByTeam -func NewDeleteAddonsByTeamRequest(server string, teamName TeamName) (*http.Request, error) { +// NewCancelTeamInvitationRequest generates requests for CancelTeamInvitation +func NewCancelTeamInvitationRequest(server string, teamName TeamName, email EmailBasic) (*http.Request, error) { var err error var pathParam0 string @@ -6847,12 +6608,19 @@ func NewDeleteAddonsByTeamRequest(server string, teamName TeamName) (*http.Reque return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "email", runtime.ParamLocationPath, email) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/addons", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/invitations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6870,8 +6638,8 @@ func NewDeleteAddonsByTeamRequest(server string, teamName TeamName) (*http.Reque return req, nil } -// NewListAddonsByTeamRequest generates requests for ListAddonsByTeam -func NewListAddonsByTeamRequest(server string, teamName TeamName, params *ListAddonsByTeamParams) (*http.Request, error) { +// NewListInvoicesByTeamRequest generates requests for ListInvoicesByTeam +func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *ListInvoicesByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -6886,7 +6654,7 @@ func NewListAddonsByTeamRequest(server string, teamName TeamName, params *ListAd return nil, err } - operationPath := fmt.Sprintf("/teams/%s/addons", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/invoices", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6931,22 +6699,6 @@ func NewListAddonsByTeamRequest(server string, teamName TeamName, params *ListAd } - if params.IncludePrivate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_private", runtime.ParamLocationQuery, *params.IncludePrivate); err != nil { - return nil, err - } else if 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() } @@ -6958,9 +6710,9 @@ func NewListAddonsByTeamRequest(server string, teamName TeamName, params *ListAd return req, nil } -// NewDownloadAddonAssetByTeamRequest generates requests for DownloadAddonAssetByTeam -func NewDownloadAddonAssetByTeamRequest(server string, teamName TeamName, addonTeam AddonTeam, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetByTeamParams) (*http.Request, error) { - var err error +// NewGetManagedDatabasesRequest generates requests for GetManagedDatabases +func NewGetManagedDatabasesRequest(server string, teamName TeamName, params *GetManagedDatabasesParams) (*http.Request, error) { + var err error var pathParam0 string @@ -6969,30 +6721,85 @@ func NewDownloadAddonAssetByTeamRequest(server string, teamName TeamName, addonT return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_team", runtime.ParamLocationPath, addonTeam) + operationPath := fmt.Sprintf("/teams/%s/managed-databases", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + 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, "addon_type", runtime.ParamLocationPath, addonType) + 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 } - var pathParam3 string + return req, nil +} - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "addon_name", runtime.ParamLocationPath, addonName) +// NewCreateManagedDatabaseRequest calls the generic CreateManagedDatabase builder with application/json body +func NewCreateManagedDatabaseRequest(server string, teamName TeamName, body CreateManagedDatabaseJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateManagedDatabaseRequestWithBody(server, teamName, "application/json", bodyReader) +} - var pathParam4 string +// NewCreateManagedDatabaseRequestWithBody generates requests for CreateManagedDatabase with any type of body +func NewCreateManagedDatabaseRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -7002,7 +6809,7 @@ func NewDownloadAddonAssetByTeamRequest(server string, teamName TeamName, addonT return nil, err } - operationPath := fmt.Sprintf("/teams/%s/addons/%s/%s/%s/versions/%s/assets", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) + operationPath := fmt.Sprintf("/teams/%s/managed-databases", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7012,42 +6819,18 @@ func NewDownloadAddonAssetByTeamRequest(server string, teamName TeamName, addonT 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 } - 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) - } - - } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewAIOnboardingChatRequest calls the generic AIOnboardingChat builder with application/json body -func NewAIOnboardingChatRequest(server string, teamName string, body AIOnboardingChatJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAIOnboardingChatRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewAIOnboardingChatRequestWithBody generates requests for AIOnboardingChat with any type of body -func NewAIOnboardingChatRequestWithBody(server string, teamName string, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteManagedDatabaseRequest generates requests for DeleteManagedDatabase +func NewDeleteManagedDatabaseRequest(server string, teamName TeamName, managedDatabaseID ManagedDatabaseID) (*http.Request, error) { var err error var pathParam0 string @@ -7057,12 +6840,19 @@ func NewAIOnboardingChatRequestWithBody(server string, teamName string, contentT return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "managed_database_id", runtime.ParamLocationPath, managedDatabaseID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/ai-onboarding/chat", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7072,18 +6862,16 @@ func NewAIOnboardingChatRequestWithBody(server string, teamName string, contentT 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 } -// NewAIOnboardingEndConversationRequest generates requests for AIOnboardingEndConversation -func NewAIOnboardingEndConversationRequest(server string, teamName string) (*http.Request, error) { +// NewGetManagedDatabaseRequest generates requests for GetManagedDatabase +func NewGetManagedDatabaseRequest(server string, teamName TeamName, managedDatabaseID ManagedDatabaseID) (*http.Request, error) { var err error var pathParam0 string @@ -7093,12 +6881,19 @@ func NewAIOnboardingEndConversationRequest(server string, teamName string) (*htt return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "managed_database_id", runtime.ParamLocationPath, managedDatabaseID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/ai-onboarding/conversations", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7108,7 +6903,7 @@ func NewAIOnboardingEndConversationRequest(server string, teamName string) (*htt 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 } @@ -7116,19 +6911,19 @@ func NewAIOnboardingEndConversationRequest(server string, teamName string) (*htt return req, nil } -// NewAIOnboardingNewConversationRequest calls the generic AIOnboardingNewConversation builder with application/json body -func NewAIOnboardingNewConversationRequest(server string, teamName string, body AIOnboardingNewConversationJSONRequestBody) (*http.Request, error) { +// 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 NewAIOnboardingNewConversationRequestWithBody(server, teamName, "application/json", bodyReader) + return NewRemoveTeamMembershipRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewAIOnboardingNewConversationRequestWithBody generates requests for AIOnboardingNewConversation with any type of body -func NewAIOnboardingNewConversationRequestWithBody(server string, teamName string, contentType string, body io.Reader) (*http.Request, error) { +// NewRemoveTeamMembershipRequestWithBody generates requests for RemoveTeamMembership with any type of body +func NewRemoveTeamMembershipRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7143,7 +6938,7 @@ func NewAIOnboardingNewConversationRequestWithBody(server string, teamName strin return nil, err } - operationPath := fmt.Sprintf("/teams/%s/ai-onboarding/conversations", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7153,7 +6948,7 @@ func NewAIOnboardingNewConversationRequestWithBody(server string, teamName strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -7163,8 +6958,8 @@ func NewAIOnboardingNewConversationRequestWithBody(server string, teamName strin return req, nil } -// NewListTeamAPIKeysRequest generates requests for ListTeamAPIKeys -func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTeamAPIKeysParams) (*http.Request, error) { +// NewGetTeamMembershipsRequest generates requests for GetTeamMemberships +func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetTeamMembershipsParams) (*http.Request, error) { var err error var pathParam0 string @@ -7179,7 +6974,7 @@ func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTea return nil, err } - operationPath := fmt.Sprintf("/teams/%s/apikeys", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7192,9 +6987,9 @@ func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTea if params != nil { queryValues := queryURL.Query() - 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 @@ -7208,9 +7003,9 @@ func NewListTeamAPIKeysRequest(server string, teamName TeamName, params *ListTea } - 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 @@ -7235,19 +7030,8 @@ 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) { - 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) -} - -// NewCreateTeamAPIKeyRequestWithBody generates requests for CreateTeamAPIKey with any type of body -func NewCreateTeamAPIKeyRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteTeamMembershipRequest generates requests for DeleteTeamMembership +func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email EmailBasic) (*http.Request, error) { var err error var pathParam0 string @@ -7257,12 +7041,19 @@ func NewCreateTeamAPIKeyRequestWithBody(server string, teamName TeamName, conten return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "email", runtime.ParamLocationPath, email) + 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("/teams/%s/memberships/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7272,18 +7063,16 @@ func NewCreateTeamAPIKeyRequestWithBody(server string, teamName TeamName, conten 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 } -// NewDeleteTeamAPIKeyRequest generates requests for DeleteTeamAPIKey -func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKeyID) (*http.Request, error) { +// NewDeletePluginsByTeamRequest generates requests for DeletePluginsByTeam +func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Request, error) { var err error var pathParam0 string @@ -7293,19 +7082,12 @@ func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKe return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "apikey_id", runtime.ParamLocationPath, apiKeyID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/apikeys/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7323,8 +7105,8 @@ 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) { +// NewListPluginsByTeamRequest generates requests for ListPluginsByTeam +func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListPluginsByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -7339,7 +7121,7 @@ func NewListConnectorsRequest(server string, teamName TeamName, params *ListConn return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7352,22 +7134,6 @@ func NewListConnectorsRequest(server string, teamName TeamName, params *ListConn 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 { @@ -7384,9 +7150,9 @@ func NewListConnectorsRequest(server string, teamName TeamName, params *ListConn } - if params.FilterType != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_type", runtime.ParamLocationQuery, *params.FilterType); 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 @@ -7400,9 +7166,9 @@ func NewListConnectorsRequest(server string, teamName TeamName, params *ListConn } - if params.FilterPlugin != nil { + if params.IncludePrivate != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_plugin", runtime.ParamLocationQuery, *params.FilterPlugin); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_private", runtime.ParamLocationQuery, *params.IncludePrivate); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7427,19 +7193,8 @@ 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) { - 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) -} - -// NewCreateConnectorRequestWithBody generates requests for CreateConnector with any type of body -func NewCreateConnectorRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*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 @@ -7449,45 +7204,86 @@ func NewCreateConnectorRequestWithBody(server string, teamName TeamName, content return nil, err } - serverURL, err := url.Parse(server) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam2 string - queryURL, err := serverURL.Parse(operationPath) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) if err != nil { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) + var pathParam4 string - return req, nil -} + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + if err != nil { + return nil, err + } -// NewGetConnectorRequest generates requests for GetConnector -func NewGetConnectorRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { - var err error + var pathParam5 string - var pathParam0 string + pathParam5, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) + if err != nil { + return nil, err + } - 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("/teams/%s/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) + 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 + } + + 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 +} + +// NewGetSettingsRequest generates requests for GetSettings +func NewGetSettingsRequest(server string, teamName TeamName) (*http.Request, error) { + var err error + + var pathParam0 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -7497,7 +7293,7 @@ func NewGetConnectorRequest(server string, teamName TeamName, connectorID Connec return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/settings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7515,19 +7311,19 @@ 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) { +// NewUpdateSettingsRequest calls the generic UpdateSettings builder with application/json body +func NewUpdateSettingsRequest(server string, teamName TeamName, 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 NewUpdateConnectorRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) + return NewUpdateSettingsRequestWithBody(server, teamName, "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) { +// NewUpdateSettingsRequestWithBody generates requests for UpdateSettings with any type of body +func NewUpdateSettingsRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7537,19 +7333,12 @@ func NewUpdateConnectorRequestWithBody(server string, teamName TeamName, connect 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", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/settings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7569,8 +7358,8 @@ 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) { +// NewGetTeamSpendRequest generates requests for GetTeamSpend +func NewGetTeamSpendRequest(server string, teamName TeamName, params *GetTeamSpendParams) (*http.Request, error) { var err error var pathParam0 string @@ -7580,9 +7369,74 @@ func NewRevokeConnectorRequest(server string, teamName TeamName, connectorID Con return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/teams/%s/spend", 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.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) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteSpendingLimitRequest generates requests for DeleteSpendingLimit +func NewDeleteSpendingLimitRequest(server string, teamName TeamName) (*http.Request, error) { + var err error + + var pathParam0 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -7592,7 +7446,7 @@ func NewRevokeConnectorRequest(server string, teamName TeamName, connectorID Con return nil, err } - operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/spending-limits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7610,8 +7464,8 @@ 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) { +// NewGetSpendingLimitRequest generates requests for GetSpendingLimit +func NewGetSpendingLimitRequest(server string, teamName TeamName) (*http.Request, error) { var err error var pathParam0 string @@ -7621,19 +7475,12 @@ func NewGetConnectorAuthStatusAWSRequest(server string, teamName TeamName, conne 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("/teams/%s/spending-limits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7651,19 +7498,19 @@ 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) { +// NewCreateSpendingLimitRequest calls the generic CreateSpendingLimit builder with application/json body +func NewCreateSpendingLimitRequest(server string, teamName TeamName, body CreateSpendingLimitJSONRequestBody) (*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) + return NewCreateSpendingLimitRequestWithBody(server, teamName, "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) { +// NewCreateSpendingLimitRequestWithBody generates requests for CreateSpendingLimit with any type of body +func NewCreateSpendingLimitRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7673,19 +7520,12 @@ func NewAuthenticateConnectorFinishAWSRequestWithBody(server string, teamName Te 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("/teams/%s/spending-limits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7695,7 +7535,7 @@ func NewAuthenticateConnectorFinishAWSRequestWithBody(server string, teamName Te 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 } @@ -7705,19 +7545,19 @@ func NewAuthenticateConnectorFinishAWSRequestWithBody(server string, teamName Te 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) { +// NewUpdateSpendingLimitRequest calls the generic UpdateSpendingLimit builder with application/json body +func NewUpdateSpendingLimitRequest(server string, teamName TeamName, body UpdateSpendingLimitJSONRequestBody) (*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) + return NewUpdateSpendingLimitRequestWithBody(server, teamName, "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) { +// NewUpdateSpendingLimitRequestWithBody generates requests for UpdateSpendingLimit with any type of body +func NewUpdateSpendingLimitRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7727,19 +7567,12 @@ func NewAuthenticateConnectorAWSRequestWithBody(server string, teamName TeamName 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("/teams/%s/spending-limits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7749,7 +7582,7 @@ func NewAuthenticateConnectorAWSRequestWithBody(server string, teamName TeamName 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 } @@ -7759,8 +7592,8 @@ func NewAuthenticateConnectorAWSRequestWithBody(server string, teamName TeamName return req, nil } -// NewGetConnectorAuthStatusGCPRequest generates requests for GetConnectorAuthStatusGCP -func NewGetConnectorAuthStatusGCPRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { +// NewListSubscriptionOrdersByTeamRequest generates requests for ListSubscriptionOrdersByTeam +func NewListSubscriptionOrdersByTeamRequest(server string, teamName TeamName, params *ListSubscriptionOrdersByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -7770,19 +7603,12 @@ func NewGetConnectorAuthStatusGCPRequest(server string, teamName TeamName, conne 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("/teams/%s/subscription-orders", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7792,6 +7618,44 @@ func NewGetConnectorAuthStatusGCPRequest(server string, teamName TeamName, conne 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 @@ -7800,19 +7664,19 @@ func NewGetConnectorAuthStatusGCPRequest(server string, teamName TeamName, conne return req, nil } -// NewAuthenticateConnectorGCPRequest calls the generic AuthenticateConnectorGCP builder with application/json body -func NewAuthenticateConnectorGCPRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorGCPJSONRequestBody) (*http.Request, error) { +// NewCreateSubscriptionOrderForTeamRequest calls the generic CreateSubscriptionOrderForTeam builder with application/json body +func NewCreateSubscriptionOrderForTeamRequest(server string, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody) (*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) + return NewCreateSubscriptionOrderForTeamRequestWithBody(server, teamName, "application/json", bodyReader) } -// 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) { +// NewCreateSubscriptionOrderForTeamRequestWithBody generates requests for CreateSubscriptionOrderForTeam with any type of body +func NewCreateSubscriptionOrderForTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7822,19 +7686,12 @@ func NewAuthenticateConnectorGCPRequestWithBody(server string, teamName TeamName 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("/teams/%s/subscription-orders", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7854,8 +7711,8 @@ func NewAuthenticateConnectorGCPRequestWithBody(server string, teamName TeamName return req, nil } -// NewAuthenticateConnectorFinishGCPRequest generates requests for AuthenticateConnectorFinishGCP -func NewAuthenticateConnectorFinishGCPRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { +// NewGetSubscriptionOrderByTeamRequest generates requests for GetSubscriptionOrderByTeam +func NewGetSubscriptionOrderByTeamRequest(server string, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID) (*http.Request, error) { var err error var pathParam0 string @@ -7867,7 +7724,7 @@ 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, "subscription_order_id", runtime.ParamLocationPath, teamSubscriptionOrderID) if err != nil { return nil, err } @@ -7877,7 +7734,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("/teams/%s/subscription-orders/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7887,7 +7744,7 @@ func NewAuthenticateConnectorFinishGCPRequest(server string, teamName TeamName, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7895,19 +7752,8 @@ func NewAuthenticateConnectorFinishGCPRequest(server string, teamName TeamName, return req, 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 err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAuthenticateConnectorFinishOAuthRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) -} - -// 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) { +// NewListTeamPluginUsageRequest generates requests for ListTeamPluginUsage +func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *ListTeamPluginUsageParams) (*http.Request, error) { var err error var pathParam0 string @@ -7917,19 +7763,12 @@ func NewAuthenticateConnectorFinishOAuthRequestWithBody(server string, teamName 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/oauth", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7939,29 +7778,65 @@ func NewAuthenticateConnectorFinishOAuthRequestWithBody(server string, teamName return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + 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 } - 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) { +// NewIncreaseTeamPluginUsageRequest calls the generic IncreaseTeamPluginUsage builder with application/json body +func NewIncreaseTeamPluginUsageRequest(server string, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody) (*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) + return NewIncreaseTeamPluginUsageRequestWithBody(server, teamName, "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) { +// NewIncreaseTeamPluginUsageRequestWithBody generates requests for IncreaseTeamPluginUsage with any type of body +func NewIncreaseTeamPluginUsageRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7971,19 +7846,12 @@ func NewAuthenticateConnectorOAuthRequestWithBody(server string, teamName TeamNa 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/oauth", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8003,19 +7871,8 @@ func NewAuthenticateConnectorOAuthRequestWithBody(server string, teamName TeamNa 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) { +// NewGetTeamUsageSummaryRequest generates requests for GetTeamUsageSummary +func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *GetTeamUsageSummaryParams) (*http.Request, error) { var err error var pathParam0 string @@ -8030,7 +7887,7 @@ func NewCreateTeamImagesRequestWithBody(server string, teamName TeamName, conten return nil, err } - operationPath := fmt.Sprintf("/teams/%s/images", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/usage-summary", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8040,65 +7897,86 @@ 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.Metrics != nil { - return req, 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) + } + } + } -// 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 err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDeleteTeamInvitationRequestWithBody(server, teamName, "application/json", bodyReader) -} + } -// NewDeleteTeamInvitationRequestWithBody generates requests for DeleteTeamInvitation with any type of body -func NewDeleteTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error + if params.Start != nil { - var pathParam0 string + 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) + } + } + } - 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 - } + if params.End != nil { - operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + 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) + } + } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + } + + 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("DELETE", 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 } -// NewListTeamInvitationsRequest generates requests for ListTeamInvitations -func NewListTeamInvitationsRequest(server string, teamName TeamName, params *ListTeamInvitationsParams) (*http.Request, error) { +// NewGetGroupedTeamUsageSummaryRequest generates requests for GetGroupedTeamUsageSummary +func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams) (*http.Request, error) { var err error var pathParam0 string @@ -8108,12 +7986,19 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group_by", runtime.ParamLocationPath, groupBy) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/usage-summary/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8126,9 +8011,9 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis if params != nil { queryValues := queryURL.Query() - if params.Page != nil { + if params.Metrics != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); 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 @@ -8142,9 +8027,41 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis } - 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 + } 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 @@ -8169,19 +8086,8 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis return req, nil } -// NewEmailTeamInvitationRequest calls the generic EmailTeamInvitation builder with application/json body -func NewEmailTeamInvitationRequest(server string, teamName TeamName, body EmailTeamInvitationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewEmailTeamInvitationRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewEmailTeamInvitationRequestWithBody generates requests for EmailTeamInvitation with any type of body -func NewEmailTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewGetTeamPluginUsageRequest generates requests for GetTeamPluginUsage +func NewGetTeamPluginUsageRequest(server string, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { var err error var pathParam0 string @@ -8191,102 +8097,33 @@ func NewEmailTeamInvitationRequestWithBody(server string, teamName TeamName, con return nil, err } - serverURL, err := url.Parse(server) + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err } - queryURL, err := serverURL.Parse(operationPath) + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) if err != nil { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAcceptTeamInvitationRequest calls the generic AcceptTeamInvitation builder with application/json body -func NewAcceptTeamInvitationRequest(server string, teamName TeamName, body AcceptTeamInvitationJSONRequestBody) (*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) -} - -// NewAcceptTeamInvitationRequestWithBody generates requests for AcceptTeamInvitation with any type of body -func NewAcceptTeamInvitationRequestWithBody(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/invitations/accept", 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 -} - -// NewCancelTeamInvitationRequest generates requests for CancelTeamInvitation -func NewCancelTeamInvitationRequest(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) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "email", runtime.ParamLocationPath, email) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/invitations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/usage/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8296,7 +8133,7 @@ func NewCancelTeamInvitationRequest(server string, teamName TeamName, email Emai 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 } @@ -8304,8 +8141,8 @@ func NewCancelTeamInvitationRequest(server string, teamName TeamName, email Emai return req, nil } -// NewListInvoicesByTeamRequest generates requests for ListInvoicesByTeam -func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *ListInvoicesByTeamParams) (*http.Request, error) { +// NewListUsersByTeamRequest generates requests for ListUsersByTeam +func NewListUsersByTeamRequest(server string, teamName TeamName, params *ListUsersByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -8320,7 +8157,7 @@ func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *List return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invoices", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/users", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8333,9 +8170,9 @@ func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *List 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 @@ -8349,9 +8186,9 @@ func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *List } - 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 @@ -8376,23 +8213,27 @@ func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *List return req, nil } -// NewGetManagedDatabasesRequest generates requests for GetManagedDatabases -func NewGetManagedDatabasesRequest(server string, teamName TeamName, params *GetManagedDatabasesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// 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) +} + +// 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 serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/managed-databases", pathParam0) + operationPath := fmt.Sprintf("/upload/image") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8402,42 +8243,33 @@ func NewGetManagedDatabasesRequest(server string, teamName TeamName, params *Get return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Page != nil { + req, err := http.NewRequest("POST", queryURL.String(), body) + 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) - } - } - } + req.Header.Add("Content-Type", contentType) - } + return req, nil +} - if params.PerPage != nil { +// NewGetCurrentUserRequest generates requests for GetCurrentUser +func NewGetCurrentUserRequest(server string) (*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) - } - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/user") + 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) @@ -8448,34 +8280,27 @@ func NewGetManagedDatabasesRequest(server string, teamName TeamName, params *Get return req, nil } -// NewCreateManagedDatabaseRequest calls the generic CreateManagedDatabase builder with application/json body -func NewCreateManagedDatabaseRequest(server string, teamName TeamName, body CreateManagedDatabaseJSONRequestBody) (*http.Request, 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 NewCreateManagedDatabaseRequestWithBody(server, teamName, "application/json", bodyReader) + return NewUpdateCurrentUserRequestWithBody(server, "application/json", bodyReader) } -// NewCreateManagedDatabaseRequestWithBody generates requests for CreateManagedDatabase with any type of body -func NewCreateManagedDatabaseRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, 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 - 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/managed-databases", pathParam0) + operationPath := fmt.Sprintf("/user") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8485,7 +8310,7 @@ func NewCreateManagedDatabaseRequestWithBody(server string, teamName TeamName, c 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 } @@ -8495,30 +8320,27 @@ func NewCreateManagedDatabaseRequestWithBody(server string, teamName TeamName, c return req, nil } -// NewDeleteManagedDatabaseRequest generates requests for DeleteManagedDatabase -func NewDeleteManagedDatabaseRequest(server string, teamName TeamName, managedDatabaseID ManagedDatabaseID) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// 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) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "managed_database_id", runtime.ParamLocationPath, managedDatabaseID) - if err != nil { - return nil, err - } +// 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 serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/user/anon-event") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8528,38 +8350,26 @@ func NewDeleteManagedDatabaseRequest(server string, teamName TeamName, managedDa 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 } -// NewGetManagedDatabaseRequest generates requests for GetManagedDatabase -func NewGetManagedDatabaseRequest(server string, teamName TeamName, managedDatabaseID ManagedDatabaseID) (*http.Request, error) { +// NewCheckUserAuthStatusRequest generates requests for CheckUserAuthStatus +func NewCheckUserAuthStatusRequest(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, "managed_database_id", runtime.ParamLocationPath, managedDatabaseID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/user/authenticated-status") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8577,34 +8387,27 @@ func NewGetManagedDatabaseRequest(server string, teamName TeamName, managedDatab return req, nil } -// NewRemoveTeamMembershipRequest calls the generic RemoveTeamMembership builder with application/json body -func NewRemoveTeamMembershipRequest(server string, teamName TeamName, body RemoveTeamMembershipJSONRequestBody) (*http.Request, 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 NewRemoveTeamMembershipRequestWithBody(server, teamName, "application/json", bodyReader) + return NewUpdateCustomerRequestWithBody(server, "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) { +// 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 - 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/memberships", pathParam0) + operationPath := fmt.Sprintf("/user/customer") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8614,7 +8417,7 @@ func NewRemoveTeamMembershipRequestWithBody(server string, teamName TeamName, co 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 } @@ -8624,23 +8427,56 @@ func NewRemoveTeamMembershipRequestWithBody(server string, teamName TeamName, co return req, nil } -// NewGetTeamMembershipsRequest generates requests for GetTeamMemberships -func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetTeamMembershipsParams) (*http.Request, 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) +} + +// 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 - 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("/user/event") + 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 +} + +// NewListCurrentUserInvitationsRequest generates requests for ListCurrentUserInvitations +func NewListCurrentUserInvitationsRequest(server string, params *ListCurrentUserInvitationsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) + operationPath := fmt.Sprintf("/user/invitations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8696,30 +8532,16 @@ 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) { +// NewLogoutUserRequest generates requests for LogoutUser +func NewLogoutUserRequest(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, "email", runtime.ParamLocationPath, email) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/memberships/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/user/login") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8737,23 +8559,27 @@ func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email Emai return req, nil } -// NewDeletePluginsByTeamRequest generates requests for DeletePluginsByTeam -func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// 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) +} + +// 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 serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) + operationPath := fmt.Sprintf("/user/login") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8763,31 +8589,26 @@ func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Requ 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 } -// NewListPluginsByTeamRequest generates requests for ListPluginsByTeam -func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListPluginsByTeamParams) (*http.Request, error) { +// NewGetCurrentUserMembershipsRequest generates requests for GetCurrentUserMemberships +func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMembershipsParams) (*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/plugins", pathParam0) + operationPath := fmt.Sprintf("/user/memberships") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8832,22 +8653,6 @@ func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListP } - if params.IncludePrivate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_private", runtime.ParamLocationQuery, *params.IncludePrivate); err != nil { - return nil, err - } else if 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() } @@ -8859,58 +8664,67 @@ 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) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// NewRegisterUserRequest calls the generic RegisterUser builder with application/json body +func NewRegisterUserRequest(server string, body RegisterUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewRegisterUserRequestWithBody(server, "application/json", bodyReader) +} - var pathParam1 string +// NewRegisterUserRequestWithBody generates requests for RegisterUser with any type of body +func NewRegisterUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error - 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 - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err + operationPath := fmt.Sprintf("/user/register") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - var pathParam5 string + req.Header.Add("Content-Type", contentType) - pathParam5, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) + return req, nil +} + +// NewResetUserPasswordRequest calls the generic ResetUserPassword builder with application/json body +func NewResetUserPasswordRequest(server string, body ResetUserPasswordJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewResetUserPasswordRequestWithBody(server, "application/json", bodyReader) +} + +// NewResetUserPasswordRequestWithBody generates requests for ResetUserPassword with any type of body +func NewResetUserPasswordRequestWithBody(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/plugins/%s/%s/%s/versions/%s/assets/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) + operationPath := fmt.Sprintf("/user/reset-password") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8920,46 +8734,26 @@ func NewDownloadPluginAssetByTeamRequest(server string, teamName TeamName, plugi 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 } - 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) - } - - } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetSettingsRequest generates requests for GetSettings -func NewGetSettingsRequest(server string, teamName TeamName) (*http.Request, error) { +// NewDeterminePlatformTenantByEmailRequest generates requests for DeterminePlatformTenantByEmail +func NewDeterminePlatformTenantByEmailRequest(server string, params *DeterminePlatformTenantByEmailParams) (*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/settings", pathParam0) + operationPath := fmt.Sprintf("/user/tenant") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8969,6 +8763,24 @@ func NewGetSettingsRequest(server string, teamName TeamName) (*http.Request, err return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, params.Email); err != nil { + return nil, err + } else if 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 @@ -8977,34 +8789,16 @@ func NewGetSettingsRequest(server string, teamName TeamName) (*http.Request, err return req, nil } -// NewUpdateSettingsRequest calls the generic UpdateSettings builder with application/json body -func NewUpdateSettingsRequest(server string, teamName TeamName, 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, teamName, "application/json", bodyReader) -} - -// NewUpdateSettingsRequestWithBody generates requests for UpdateSettings with any type of body -func NewUpdateSettingsRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateUserTokenRequest generates requests for CreateUserToken +func NewCreateUserTokenRequest(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/settings", pathParam0) + operationPath := fmt.Sprintf("/user/token") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9014,105 +8808,24 @@ func NewUpdateSettingsRequestWithBody(server string, teamName TeamName, contentT 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 } -// NewGetTeamSpendRequest generates requests for GetTeamSpend -func NewGetTeamSpendRequest(server string, teamName TeamName, params *GetTeamSpendParams) (*http.Request, error) { +// NewUserTOTPDeleteRequest generates requests for UserTOTPDelete +func NewUserTOTPDeleteRequest(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 } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/spend", 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.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) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSpendingLimitRequest generates requests for DeleteSpendingLimit -func NewDeleteSpendingLimitRequest(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/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/user/totp") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9130,23 +8843,16 @@ func NewDeleteSpendingLimitRequest(server string, teamName TeamName) (*http.Requ return req, nil } -// NewGetSpendingLimitRequest generates requests for GetSpendingLimit -func NewGetSpendingLimitRequest(server string, teamName TeamName) (*http.Request, error) { +// NewUserTOTPSetupRequest generates requests for UserTOTPSetup +func NewUserTOTPSetupRequest(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/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/user/totp") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9156,7 +8862,7 @@ func NewGetSpendingLimitRequest(server string, teamName TeamName) (*http.Request return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -9164,34 +8870,27 @@ func NewGetSpendingLimitRequest(server string, teamName TeamName) (*http.Request return req, nil } -// NewCreateSpendingLimitRequest calls the generic CreateSpendingLimit builder with application/json body -func NewCreateSpendingLimitRequest(server string, teamName TeamName, body CreateSpendingLimitJSONRequestBody) (*http.Request, 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 NewCreateSpendingLimitRequestWithBody(server, teamName, "application/json", bodyReader) + return NewUserTOTPVerifyRequestWithBody(server, params, "application/json", bodyReader) } -// NewCreateSpendingLimitRequestWithBody generates requests for CreateSpendingLimit with any type of body -func NewCreateSpendingLimitRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, 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 - 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/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/user/totp/verify") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9208,37 +8907,47 @@ func NewCreateSpendingLimitRequestWithBody(server string, teamName TeamName, con req.Header.Add("Content-Type", contentType) + if params != nil { + + if params.Session != nil { + var cookieParam0 string + + cookieParam0, err = runtime.StyleParamWithLocation("simple", true, "__session", runtime.ParamLocationCookie, *params.Session) + if err != nil { + return nil, err + } + + cookie0 := &http.Cookie{ + Name: "__session", + Value: cookieParam0, + } + req.AddCookie(cookie0) + } + } return req, nil } -// NewUpdateSpendingLimitRequest calls the generic UpdateSpendingLimit builder with application/json body -func NewUpdateSpendingLimitRequest(server string, teamName TeamName, body UpdateSpendingLimitJSONRequestBody) (*http.Request, error) { +// NewVerifyUserEmailRequest calls the generic VerifyUserEmail builder with application/json body +func NewVerifyUserEmailRequest(server string, body VerifyUserEmailJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSpendingLimitRequestWithBody(server, teamName, "application/json", bodyReader) + return NewVerifyUserEmailRequestWithBody(server, "application/json", bodyReader) } -// NewUpdateSpendingLimitRequestWithBody generates requests for UpdateSpendingLimit with any type of body -func NewUpdateSpendingLimitRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewVerifyUserEmailRequestWithBody generates requests for VerifyUserEmail with any type of body +func NewVerifyUserEmailRequestWithBody(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/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/user/verify-email") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9248,7 +8957,7 @@ func NewUpdateSpendingLimitRequestWithBody(server string, teamName TeamName, con return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9258,13 +8967,13 @@ func NewUpdateSpendingLimitRequestWithBody(server string, teamName TeamName, con return req, nil } -// NewListSubscriptionOrdersByTeamRequest generates requests for ListSubscriptionOrdersByTeam -func NewListSubscriptionOrdersByTeamRequest(server string, teamName TeamName, params *ListSubscriptionOrdersByTeamParams) (*http.Request, error) { +// 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, "team_name", runtime.ParamLocationPath, teamName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -9274,7 +8983,7 @@ func NewListSubscriptionOrdersByTeamRequest(server string, teamName TeamName, pa return nil, err } - operationPath := fmt.Sprintf("/teams/%s/subscription-orders", pathParam0) + operationPath := fmt.Sprintf("/users/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9284,45 +8993,7 @@ func NewListSubscriptionOrdersByTeamRequest(server string, teamName TeamName, pa 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) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -9330,12889 +9001,5015 @@ func NewListSubscriptionOrdersByTeamRequest(server string, teamName TeamName, pa return req, nil } -// NewCreateSubscriptionOrderForTeamRequest calls the generic CreateSubscriptionOrderForTeam builder with application/json body -func NewCreateSubscriptionOrderForTeamRequest(server string, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +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 + } } - bodyReader = bytes.NewReader(buf) - return NewCreateSubscriptionOrderForTeamRequestWithBody(server, teamName, "application/json", bodyReader) + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } + } + return nil } -// NewCreateSubscriptionOrderForTeamRequestWithBody generates requests for CreateSubscriptionOrderForTeam with any type of body -func NewCreateSubscriptionOrderForTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) +// 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 } + return &ClientWithResponses{client}, nil +} - serverURL, err := url.Parse(server) - 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 } +} - operationPath := fmt.Sprintf("/teams/%s/subscription-orders", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // HealthCheckWithResponse request + HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ListAddonsWithResponse request + ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // CreateAddonWithBodyWithResponse request with any body + CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) - req.Header.Add("Content-Type", contentType) + CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) - return req, nil -} + // DeleteAddonByTeamAndNameWithResponse request + DeleteAddonByTeamAndNameWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*DeleteAddonByTeamAndNameResponse, error) -// NewGetSubscriptionOrderByTeamRequest generates requests for GetSubscriptionOrderByTeam -func NewGetSubscriptionOrderByTeamRequest(server string, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID) (*http.Request, error) { - var err error + // GetAddonWithResponse request + GetAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*GetAddonResponse, error) - var pathParam0 string + // UpdateAddonWithBodyWithResponse request with any body + UpdateAddonWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + UpdateAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) - var pathParam1 string + // ListAddonVersionsWithResponse request + ListAddonVersionsWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, params *ListAddonVersionsParams, reqEditors ...RequestEditorFn) (*ListAddonVersionsResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscription_order_id", runtime.ParamLocationPath, teamSubscriptionOrderID) - if err != nil { - return nil, err - } + // GetAddonVersionWithResponse request + GetAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetAddonVersionResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // UpdateAddonVersionWithBodyWithResponse request with any body + UpdateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) - operationPath := fmt.Sprintf("/teams/%s/subscription-orders/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + UpdateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body UpdateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // CreateAddonVersionWithBodyWithResponse request with any body + CreateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + CreateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body CreateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) - return req, nil -} + // DownloadAddonAssetWithResponse request + DownloadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetResponse, error) -// 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) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateSyncDestinationTestConnectionRequestWithBody(server, teamName, "application/json", bodyReader) -} + // UploadAddonAssetWithResponse request + UploadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*UploadAddonAssetResponse, error) -// NewCreateSyncDestinationTestConnectionRequestWithBody generates requests for CreateSyncDestinationTestConnection with any type of body -func NewCreateSyncDestinationTestConnectionRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error + // CQHealthCheckWithResponse request + CQHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CQHealthCheckResponse, error) - var pathParam0 string + // GetOpenAPIJSONWithResponse request + GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // ActivatePlatformWithBodyWithResponse request with any body + ActivatePlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + ActivatePlatformWithResponse(ctx context.Context, body ActivatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // RenewPlatformActivationWithBodyWithResponse request with any body + RenewPlatformActivationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + RenewPlatformActivationWithResponse(ctx context.Context, body RenewPlatformActivationJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + // ReportPlatformDataWithBodyWithResponse request with any body + ReportPlatformDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) - req.Header.Add("Content-Type", contentType) + ReportPlatformDataWithResponse(ctx context.Context, body ReportPlatformDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) - return req, nil -} + // ListPluginNotificationRequestsWithResponse request + ListPluginNotificationRequestsWithResponse(ctx context.Context, params *ListPluginNotificationRequestsParams, reqEditors ...RequestEditorFn) (*ListPluginNotificationRequestsResponse, error) -// NewGetSyncDestinationTestConnectionRequest generates requests for GetSyncDestinationTestConnection -func NewGetSyncDestinationTestConnectionRequest(server string, teamName TeamName, syncDestinationTestConnectionID SyncDestinationTestConnectionID) (*http.Request, error) { - var err error + // CreatePluginNotificationRequestWithBodyWithResponse request with any body + CreatePluginNotificationRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) - var pathParam0 string + CreatePluginNotificationRequestWithResponse(ctx context.Context, body CreatePluginNotificationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // DeletePluginNotificationRequestWithResponse request + DeletePluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginNotificationRequestResponse, error) - var pathParam1 string + // GetPluginNotificationRequestWithResponse request + GetPluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginNotificationRequestResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) - if err != nil { - return nil, err - } + // ListPluginsWithResponse request + ListPluginsWithResponse(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*ListPluginsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // CreatePluginWithBodyWithResponse request with any body + CreatePluginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + CreatePluginWithResponse(ctx context.Context, body CreatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // DeletePluginByTeamAndPluginNameWithResponse request + DeletePluginByTeamAndPluginNameWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginByTeamAndPluginNameResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // GetPluginWithResponse request + GetPluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginResponse, error) - return req, nil -} + // UpdatePluginWithBodyWithResponse request with any body + UpdatePluginWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) -// NewUpdateSyncTestConnectionForSyncDestinationRequest calls the generic UpdateSyncTestConnectionForSyncDestination builder with application/json body -func NewUpdateSyncTestConnectionForSyncDestinationRequest(server string, teamName TeamName, 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 NewUpdateSyncTestConnectionForSyncDestinationRequestWithBody(server, teamName, syncDestinationTestConnectionID, "application/json", bodyReader) -} + UpdatePluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body UpdatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) -// 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) { - var err error + // DeletePluginUpcomingPriceChangesWithResponse request + DeletePluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginUpcomingPriceChangesResponse, error) - var pathParam0 string + // ListPluginUpcomingPriceChangesWithResponse request + ListPluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*ListPluginUpcomingPriceChangesResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // CreatePluginUpcomingPriceChangeWithBodyWithResponse request with any body + CreatePluginUpcomingPriceChangeWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) - var pathParam1 string + CreatePluginUpcomingPriceChangeWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body CreatePluginUpcomingPriceChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) - if err != nil { - return nil, err - } + // ListPluginVersionsWithResponse request + ListPluginVersionsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetPluginVersionWithResponse request + GetPluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetPluginVersionResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // 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) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + UpdatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UpdatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginVersionResponse, error) - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + // 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) - req.Header.Add("Content-Type", contentType) + CreatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionResponse, error) - return req, nil -} + // DownloadPluginAssetWithResponse request + DownloadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetResponse, error) -// 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) -} + // UploadPluginAssetWithResponse request + UploadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, reqEditors ...RequestEditorFn) (*UploadPluginAssetResponse, error) -// 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 + // 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) - var pathParam0 string + DeletePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionDocsResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // ListPluginVersionDocsWithResponse request + ListPluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionDocsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionDocsResponse, error) - var pathParam1 string + // 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) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_test_connection_id", runtime.ParamLocationPath, syncDestinationTestConnectionID) - if err != nil { - return nil, err - } + ReplacePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body ReplacePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplacePluginVersionDocsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // 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) - operationPath := fmt.Sprintf("/teams/%s/sync-destination-test-connections/%s/promote", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + CreatePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionDocsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // 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) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + DeletePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionTablesResponse, error) - req.Header.Add("Content-Type", contentType) + // ListPluginVersionTablesWithResponse request + ListPluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*ListPluginVersionTablesResponse, error) - return req, nil -} + // 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) -// NewListSyncDestinationsRequest generates requests for ListSyncDestinations -func NewListSyncDestinationsRequest(server string, teamName TeamName, params *ListSyncDestinationsParams) (*http.Request, error) { - var err error + CreatePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionTablesResponse, error) - var pathParam0 string + // GetPluginVersionTableWithResponse request + GetPluginVersionTableWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*GetPluginVersionTableResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // RemovePluginUIAssetsWithResponse request + RemovePluginUIAssetsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*RemovePluginUIAssetsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // 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) - operationPath := fmt.Sprintf("/teams/%s/sync-destinations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + UploadPluginUIAssetsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadPluginUIAssetsResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // 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) - if params != nil { - queryValues := queryURL.Query() + FinalizePluginUIAssetUploadWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*FinalizePluginUIAssetUploadResponse, error) - if params.PerPage != nil { + // AuthRegistryRequestWithResponse request + AuthRegistryRequestWithResponse(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*AuthRegistryRequestResponse, 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) - } - } - } + // 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) - if params.Page != nil { + CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, 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) - } - } - } + // DeleteTeamWithResponse request + DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error) - } + // GetTeamByNameWithResponse request + GetTeamByNameWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamByNameResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // UpdateTeamWithBodyWithResponse request with any body + UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) - return req, nil -} + // ListAddonOrdersByTeamWithResponse request + ListAddonOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonOrdersByTeamResponse, error) -// NewDeleteSyncDestinationRequest generates requests for DeleteSyncDestination -func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { - var err error + // CreateAddonOrderForTeamWithBodyWithResponse request with any body + CreateAddonOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) - var pathParam0 string + CreateAddonOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // GetAddonOrderByTeamWithResponse request + GetAddonOrderByTeamWithResponse(ctx context.Context, teamName TeamName, addonOrderID AddonOrderID, reqEditors ...RequestEditorFn) (*GetAddonOrderByTeamResponse, error) - var pathParam1 string + // DeleteAddonsByTeamWithResponse request + DeleteAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteAddonsByTeamResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } + // ListAddonsByTeamWithResponse request + ListAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonsByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonsByTeamResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // DownloadAddonAssetByTeamWithResponse request + DownloadAddonAssetByTeamWithResponse(ctx context.Context, teamName TeamName, addonTeam AddonTeam, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetByTeamResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // AIOnboardingChatWithBodyWithResponse request with any body + AIOnboardingChatWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + AIOnboardingChatWithResponse(ctx context.Context, teamName string, body AIOnboardingChatJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + // AIOnboardingEndConversationWithResponse request + AIOnboardingEndConversationWithResponse(ctx context.Context, teamName string, reqEditors ...RequestEditorFn) (*AIOnboardingEndConversationResponse, error) - return req, nil -} + // AIOnboardingNewConversationWithBodyWithResponse request with any body + AIOnboardingNewConversationWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, error) -// NewGetSyncDestinationRequest generates requests for GetSyncDestination -func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { - var err error + AIOnboardingNewConversationWithResponse(ctx context.Context, teamName string, body AIOnboardingNewConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, error) - var pathParam0 string + // ListTeamAPIKeysWithResponse request + ListTeamAPIKeysWithResponse(ctx context.Context, teamName TeamName, params *ListTeamAPIKeysParams, reqEditors ...RequestEditorFn) (*ListTeamAPIKeysResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // CreateTeamAPIKeyWithBodyWithResponse request with any body + CreateTeamAPIKeyWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) - var pathParam1 string + CreateTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } + // DeleteTeamAPIKeyWithResponse request + DeleteTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*DeleteTeamAPIKeyResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // CreateTeamImagesWithBodyWithResponse request with any body + CreateTeamImagesWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + CreateTeamImagesWithResponse(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // DeleteTeamInvitationWithBodyWithResponse request with any body + DeleteTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + DeleteTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) - return req, nil -} + // ListTeamInvitationsWithResponse request + ListTeamInvitationsWithResponse(ctx context.Context, teamName TeamName, params *ListTeamInvitationsParams, reqEditors ...RequestEditorFn) (*ListTeamInvitationsResponse, error) -// NewUpdateSyncDestinationRequest calls the generic UpdateSyncDestination builder with application/json body -func NewUpdateSyncDestinationRequest(server string, teamName TeamName, 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 NewUpdateSyncDestinationRequestWithBody(server, teamName, syncDestinationName, "application/json", bodyReader) -} + // EmailTeamInvitationWithBodyWithResponse request with any body + EmailTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) -// 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) { - var err error + EmailTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) - var pathParam0 string + // AcceptTeamInvitationWithBodyWithResponse request with any body + AcceptTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + AcceptTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) - var pathParam1 string + // CancelTeamInvitationWithResponse request + CancelTeamInvitationWithResponse(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*CancelTeamInvitationResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } + // ListInvoicesByTeamWithResponse request + ListInvoicesByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*ListInvoicesByTeamResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetManagedDatabasesWithResponse request + GetManagedDatabasesWithResponse(ctx context.Context, teamName TeamName, params *GetManagedDatabasesParams, reqEditors ...RequestEditorFn) (*GetManagedDatabasesResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CreateManagedDatabaseWithBodyWithResponse request with any body + CreateManagedDatabaseWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + CreateManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + // DeleteManagedDatabaseWithResponse request + DeleteManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*DeleteManagedDatabaseResponse, error) - req.Header.Add("Content-Type", contentType) + // GetManagedDatabaseWithResponse request + GetManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*GetManagedDatabaseResponse, error) - return req, nil -} + // RemoveTeamMembershipWithBodyWithResponse request with any body + RemoveTeamMembershipWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTeamMembershipResponse, error) -// NewListSyncDestinationSyncsRequest generates requests for ListSyncDestinationSyncs -func NewListSyncDestinationSyncsRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName, params *ListSyncDestinationSyncsParams) (*http.Request, error) { - var err error + RemoveTeamMembershipWithResponse(ctx context.Context, teamName TeamName, body RemoveTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTeamMembershipResponse, error) - var pathParam0 string + // GetTeamMembershipsWithResponse request + GetTeamMembershipsWithResponse(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*GetTeamMembershipsResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // DeleteTeamMembershipWithResponse request + DeleteTeamMembershipWithResponse(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*DeleteTeamMembershipResponse, error) - var pathParam1 string + // DeletePluginsByTeamWithResponse request + DeletePluginsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeletePluginsByTeamResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } + // ListPluginsByTeamWithResponse request + ListPluginsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListPluginsByTeamParams, reqEditors ...RequestEditorFn) (*ListPluginsByTeamResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s/syncs", pathParam0, pathParam1) - 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 - } + // GetSettingsWithResponse request + GetSettingsWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) - if params != nil { - queryValues := queryURL.Query() + // UpdateSettingsWithBodyWithResponse request with any body + UpdateSettingsWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) - if params.PerPage != nil { + UpdateSettingsWithResponse(ctx context.Context, teamName TeamName, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, 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) - } - } - } + // GetTeamSpendWithResponse request + GetTeamSpendWithResponse(ctx context.Context, teamName TeamName, params *GetTeamSpendParams, reqEditors ...RequestEditorFn) (*GetTeamSpendResponse, error) - } + // DeleteSpendingLimitWithResponse request + DeleteSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteSpendingLimitResponse, error) - if params.Page != nil { + // GetSpendingLimitWithResponse request + GetSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSpendingLimitResponse, 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) - } - } - } + // CreateSpendingLimitWithBodyWithResponse request with any body + CreateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) - } + CreateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) - queryURL.RawQuery = queryValues.Encode() - } + // UpdateSpendingLimitWithBodyWithResponse request with any body + UpdateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + UpdateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body UpdateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) - return req, nil -} + // ListSubscriptionOrdersByTeamWithResponse request + ListSubscriptionOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListSubscriptionOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListSubscriptionOrdersByTeamResponse, error) -// NewGetTestConnectionForSyncDestinationRequest generates requests for GetTestConnectionForSyncDestination -func NewGetTestConnectionForSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { - var err error + // CreateSubscriptionOrderForTeamWithBodyWithResponse request with any body + CreateSubscriptionOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) - var pathParam0 string + CreateSubscriptionOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // GetSubscriptionOrderByTeamWithResponse request + GetSubscriptionOrderByTeamWithResponse(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, reqEditors ...RequestEditorFn) (*GetSubscriptionOrderByTeamResponse, error) - var pathParam1 string + // ListTeamPluginUsageWithResponse request + ListTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*ListTeamPluginUsageResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } + // IncreaseTeamPluginUsageWithBodyWithResponse request with any body + IncreaseTeamPluginUsageWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, error) - var pathParam2 string + IncreaseTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, error) - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err - } + // GetTeamUsageSummaryWithResponse request + GetTeamUsageSummaryWithResponse(ctx context.Context, teamName TeamName, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetTeamUsageSummaryResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // GetGroupedTeamUsageSummaryWithResponse request + GetGroupedTeamUsageSummaryWithResponse(ctx context.Context, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetGroupedTeamUsageSummaryResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s/test-connections/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // GetTeamPluginUsageWithResponse request + GetTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetTeamPluginUsageResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ListUsersByTeamWithResponse request + ListUsersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*ListUsersByTeamResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + // UploadImageWithBodyWithResponse request with any body + UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) - return req, nil -} + UploadImageWithResponse(ctx context.Context, body UploadImageJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) -// 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) -} + // GetCurrentUserWithResponse request + GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) -// NewCreateSyncSourceTestConnectionRequestWithBody generates requests for CreateSyncSourceTestConnection with any type of body -func NewCreateSyncSourceTestConnectionRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error + // UpdateCurrentUserWithBodyWithResponse request with any body + UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) - var pathParam0 string + UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // SendAnonymousEventWithBodyWithResponse request with any body + SendAnonymousEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + SendAnonymousEventWithResponse(ctx context.Context, body SendAnonymousEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAnonymousEventResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // CheckUserAuthStatusWithResponse request + CheckUserAuthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckUserAuthStatusResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // UpdateCustomerWithBodyWithResponse request with any body + UpdateCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + UpdateCustomerWithResponse(ctx context.Context, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) - req.Header.Add("Content-Type", contentType) + // SendUserEventWithBodyWithResponse request with any body + SendUserEventWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) - return req, nil -} + SendUserEventWithResponse(ctx context.Context, body SendUserEventJSONRequestBody, reqEditors ...RequestEditorFn) (*SendUserEventResponse, error) -// NewGetSyncSourceTestConnectionRequest generates requests for GetSyncSourceTestConnection -func NewGetSyncSourceTestConnectionRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID) (*http.Request, error) { - var err error + // ListCurrentUserInvitationsWithResponse request + ListCurrentUserInvitationsWithResponse(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*ListCurrentUserInvitationsResponse, error) - var pathParam0 string + // LogoutUserWithResponse request + LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // LoginUserWithBodyWithResponse request with any body + LoginUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) - var pathParam1 string + LoginUserWithResponse(ctx context.Context, body LoginUserJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) - if err != nil { - return nil, err - } + // GetCurrentUserMembershipsWithResponse request + GetCurrentUserMembershipsWithResponse(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*GetCurrentUserMembershipsResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + // RegisterUserWithBodyWithResponse request with any body + RegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + RegisterUserWithResponse(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + // ResetUserPasswordWithBodyWithResponse request with any body + ResetUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + ResetUserPasswordWithResponse(ctx context.Context, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) - return req, nil -} + // DeterminePlatformTenantByEmailWithResponse request + DeterminePlatformTenantByEmailWithResponse(ctx context.Context, params *DeterminePlatformTenantByEmailParams, reqEditors ...RequestEditorFn) (*DeterminePlatformTenantByEmailResponse, error) -// NewUpdateSyncTestConnectionForSyncSourceRequest calls the generic UpdateSyncTestConnectionForSyncSource builder with application/json body -func NewUpdateSyncTestConnectionForSyncSourceRequest(server string, teamName TeamName, 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 NewUpdateSyncTestConnectionForSyncSourceRequestWithBody(server, teamName, syncSourceTestConnectionID, "application/json", bodyReader) -} + // CreateUserTokenWithResponse request + CreateUserTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateUserTokenResponse, error) -// 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) { - var err error + // UserTOTPDeleteWithResponse request + UserTOTPDeleteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPDeleteResponse, error) - var pathParam0 string + // UserTOTPSetupWithResponse request + UserTOTPSetupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserTOTPSetupResponse, error) - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + // UserTOTPVerifyWithBodyWithResponse request with any body + UserTOTPVerifyWithBodyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) - var pathParam1 string + UserTOTPVerifyWithResponse(ctx context.Context, params *UserTOTPVerifyParams, body UserTOTPVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*UserTOTPVerifyResponse, error) - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) - if err != nil { - return nil, err - } + // VerifyUserEmailWithBodyWithResponse request with any body + VerifyUserEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + VerifyUserEmailWithResponse(ctx context.Context, body VerifyUserEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + // DeleteUserWithResponse request + DeleteUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } +type HealthCheckResponse struct { + Body []byte + HTTPResponse *http.Response +} - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r HealthCheckResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return http.StatusText(0) } -// NewPromoteSyncSourceTestConnectionRequest calls the generic PromoteSyncSourceTestConnection builder with application/json body -func NewPromoteSyncSourceTestConnectionRequest(server string, teamName TeamName, syncSourceTestConnectionID SyncSourceTestConnectionID, body PromoteSyncSourceTestConnectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r HealthCheckResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - bodyReader = bytes.NewReader(buf) - return NewPromoteSyncSourceTestConnectionRequestWithBody(server, teamName, syncSourceTestConnectionID, "application/json", bodyReader) + return 0 } -// 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) { - var err error +type ListAddonsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListAddons200Response + JSON401 *RequiresAuthentication + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r ListAddonsResponse) 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 ListAddonsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type CreateAddonResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Addon + JSON400 *BadRequest + JSON403 *Forbidden + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_test_connection_id", runtime.ParamLocationPath, syncSourceTestConnectionID) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateAddonResponse) 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 CreateAddonResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/sync-source-test-connections/%s/promote", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type DeleteAddonByTeamAndNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteAddonByTeamAndNameResponse) 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 DeleteAddonByTeamAndNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewListSyncSourcesRequest generates requests for ListSyncSources -func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyncSourcesParams) (*http.Request, error) { - var err error - - var pathParam0 string +type GetAddonResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListAddon + JSON401 *RequiresAuthentication + JSON404 *NotFound + 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 GetAddonResponse) 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 GetAddonResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/sync-sources", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type UpdateAddonResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Addon + JSON400 *BadRequest + 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 UpdateAddonResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - 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) - } - } - } +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAddonResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - } +type ListAddonVersionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListAddonVersions200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL.RawQuery = queryValues.Encode() +// Status returns HTTPResponse.Status +func (r ListAddonVersionsResponse) 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 ListAddonVersionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewDeleteSyncSourceRequest generates requests for DeleteSyncSource -func NewDeleteSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { - var err error - - var pathParam0 string +type GetAddonVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonVersion + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 GetAddonVersionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetAddonVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type UpdateAddonVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonVersion + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateAddonVersionResponse) 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 UpdateAddonVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetSyncSourceRequest generates requests for GetSyncSource -func NewGetSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { - var err error +type CreateAddonVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonVersion + JSON201 *AddonVersion + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r CreateAddonVersionResponse) 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 CreateAddonVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type DownloadAddonAssetResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonAsset + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DownloadAddonAssetResponse) 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 DownloadAddonAssetResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type UploadAddonAssetResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ReleaseURL + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UploadAddonAssetResponse) 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 UploadAddonAssetResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return req, nil +type CQHealthCheckResponse struct { + Body []byte + HTTPResponse *http.Response + JSON500 *InternalError } -// NewUpdateSyncSourceRequest calls the generic UpdateSyncSource builder with application/json body -func NewUpdateSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName, body UpdateSyncSourceJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CQHealthCheckResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewUpdateSyncSourceRequestWithBody(server, teamName, syncSourceName, "application/json", bodyReader) + return http.StatusText(0) } -// 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) { - 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 CQHealthCheckResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type GetOpenAPIJSONResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetOpenAPIJSONResponse) 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 GetOpenAPIJSONResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type ActivatePlatformResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ActivatePlatform200Response + JSON205 *ActivatePlatform205Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ActivatePlatformResponse) 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 ActivatePlatformResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewListSyncSourceSyncsRequest generates requests for ListSyncSourceSyncs -func NewListSyncSourceSyncsRequest(server string, teamName TeamName, syncSourceName SyncSourceName, params *ListSyncSourceSyncsParams) (*http.Request, error) { - var err error +type RenewPlatformActivationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *RenewPlatformActivation200Response + JSON205 *ActivatePlatform205Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r RenewPlatformActivationResponse) 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 RenewPlatformActivationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type ReportPlatformDataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ReportPlatformDataResponse) 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 - } - - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s/syncs", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ReportPlatformDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - if params != nil { - queryValues := queryURL.Query() +type ListPluginNotificationRequestsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPluginNotificationRequests200Response + JSON401 *RequiresAuthentication + JSON500 *InternalError +} - if params.PerPage != nil { +// Status returns HTTPResponse.Status +func (r ListPluginNotificationRequestsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - 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) - } - } - } +// StatusCode returns HTTPResponse.StatusCode +func (r ListPluginNotificationRequestsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - } +type CreatePluginNotificationRequestResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *PluginNotificationRequest + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - if params.Page != nil { +// Status returns HTTPResponse.Status +func (r CreatePluginNotificationRequestResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - 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) - } - } - } +// StatusCode returns HTTPResponse.StatusCode +func (r CreatePluginNotificationRequestResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - } +type DeletePluginNotificationRequestResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - queryURL.RawQuery = queryValues.Encode() +// Status returns HTTPResponse.Status +func (r DeletePluginNotificationRequestResponse) 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 DeletePluginNotificationRequestResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetTestConnectionForSyncSourceRequest generates requests for GetTestConnectionForSyncSource -func NewGetTestConnectionForSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { - var err error - - var pathParam0 string +type GetPluginNotificationRequestResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPluginNotificationRequests200Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + 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 GetPluginNotificationRequestResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetPluginNotificationRequestResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string +type ListPluginsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPlugins200Response + JSON401 *RequiresAuthentication + JSON500 *InternalError +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListPluginsResponse) 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 ListPluginsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s/test-connections/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type CreatePluginResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Plugin + JSON400 *BadRequest + JSON403 *Forbidden + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreatePluginResponse) 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 CreatePluginResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewListSyncsRequest generates requests for ListSyncs -func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsParams) (*http.Request, error) { - var err error - - var pathParam0 string +type DeletePluginByTeamAndPluginNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 DeletePluginByTeamAndPluginNameResponse) 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 DeletePluginByTeamAndPluginNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath +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) +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetPluginResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - 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) - } - } - } - - } +type UpdatePluginResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Plugin + JSON400 *BadRequest + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL.RawQuery = queryValues.Encode() +// Status returns HTTPResponse.Status +func (r UpdatePluginResponse) 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 UpdatePluginResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return req, nil +type DeletePluginUpcomingPriceChangesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } -// NewCreateSyncRequest calls the generic CreateSync builder with application/json body -func NewCreateSyncRequest(server string, teamName TeamName, body CreateSyncJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeletePluginUpcomingPriceChangesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewCreateSyncRequestWithBody(server, teamName, "application/json", bodyReader) + return http.StatusText(0) } -// NewCreateSyncRequestWithBody generates requests for CreateSync with any type of body -func NewCreateSyncRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r DeletePluginUpcomingPriceChangesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type ListPluginUpcomingPriceChangesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPluginUpcomingPriceChanges200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 ListPluginUpcomingPriceChangesResponse) 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 ListPluginUpcomingPriceChangesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type CreatePluginUpcomingPriceChangeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *PluginPrice + 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 CreatePluginUpcomingPriceChangeResponse) 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 CreatePluginUpcomingPriceChangeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewGetTestConnectionConnectorCredentialsRequest generates requests for GetTestConnectionConnectorCredentials -func NewGetTestConnectionConnectorCredentialsRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID) (*http.Request, error) { - var err error - - var pathParam0 string +type ListPluginVersionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPluginVersions200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 ListPluginVersionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListPluginVersionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string +type GetPluginVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PluginVersionDetails + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetPluginVersionResponse) 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 GetPluginVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/connector/%s/credentials", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type UpdatePluginVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PluginVersion + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdatePluginVersionResponse) 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 UpdatePluginVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetTestConnectionConnectorIdentityRequest generates requests for GetTestConnectionConnectorIdentity -func NewGetTestConnectionConnectorIdentityRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID) (*http.Request, error) { - var err error - - var pathParam0 string +type CreatePluginVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PluginVersion + JSON201 *PluginVersion + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + 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 CreatePluginVersionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreatePluginVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err - } +type DownloadPluginAssetResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PluginAsset + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DownloadPluginAssetResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/connector/%s/identity", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadPluginAssetResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } +type UploadPluginAssetResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ReleaseURL + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UploadPluginAssetResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// NewDeleteSyncRequest generates requests for DeleteSync -func NewDeleteSyncRequest(server string, teamName TeamName, 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 +// StatusCode returns HTTPResponse.StatusCode +func (r UploadPluginAssetResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type DeletePluginVersionDocsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + 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 DeletePluginVersionDocsResponse) 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 DeletePluginVersionDocsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type ListPluginVersionDocsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPluginVersionDocs200Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListPluginVersionDocsResponse) 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 ListPluginVersionDocsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetSyncRequest generates requests for GetSync -func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { - var err error +type ReplacePluginVersionDocsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CreatePluginVersionDocs201Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r ReplacePluginVersionDocsResponse) 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 ReplacePluginVersionDocsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type CreatePluginVersionDocsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CreatePluginVersionDocs201Response + JSON400 *BadRequest + 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 CreatePluginVersionDocsResponse) 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 CreatePluginVersionDocsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type DeletePluginVersionTablesResponse struct { + Body []byte + HTTPResponse *http.Response + 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 DeletePluginVersionTablesResponse) 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 DeletePluginVersionTablesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return req, nil +type ListPluginVersionTablesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPluginVersionTables200Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// NewUpdateSyncRequest calls the generic UpdateSync builder with application/json body -func NewUpdateSyncRequest(server string, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListPluginVersionTablesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewUpdateSyncRequestWithBody(server, teamName, syncName, "application/json", bodyReader) + return http.StatusText(0) } -// 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) { - 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 ListPluginVersionTablesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type CreatePluginVersionTablesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CreatePluginVersionTables201Response + JSON400 *BadRequest + 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 CreatePluginVersionTablesResponse) 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 CreatePluginVersionTablesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type GetPluginVersionTableResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PluginTableDetails + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetPluginVersionTableResponse) 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 GetPluginVersionTableResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewListSyncRunsRequest generates requests for ListSyncRuns -func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, params *ListSyncRunsParams) (*http.Request, error) { - var err error - - var pathParam0 string +type RemovePluginUIAssetsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + 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 RemovePluginUIAssetsResponse) 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 RemovePluginUIAssetsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } +type UploadPluginUIAssetsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *UploadPluginUIAssets201Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath +// Status returns HTTPResponse.Status +func (r UploadPluginUIAssetsResponse) 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 UploadPluginUIAssetsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - 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() - } +type FinalizePluginUIAssetUploadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r FinalizePluginUIAssetUploadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// NewCreateSyncRunRequest generates requests for CreateSyncRun -func NewCreateSyncRunRequest(server string, teamName TeamName, 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 +// StatusCode returns HTTPResponse.StatusCode +func (r FinalizePluginUIAssetUploadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type AuthRegistryRequestResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *RegistryAuthToken + JSON400 *DockerError + JSON401 *DockerError + JSON404 *DockerError + JSON422 *DockerError + JSON500 *DockerError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AuthRegistryRequestResponse) 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 AuthRegistryRequestResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type ListTeamsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListTeams200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListTeamsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ListTeamsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetSyncRunRequest generates requests for GetSyncRun -func NewGetSyncRunRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId) (*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 CreateTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Team + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - var pathParam1 string +// Status returns HTTPResponse.Status +func (r CreateTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r CreateTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string +type DeleteTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteTeamResponse) 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 DeleteTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type GetTeamByNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Team + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTeamByNameResponse) 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 GetTeamByNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return req, nil +type UpdateTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Team + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } -// 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) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewUpdateSyncRunRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) + return http.StatusText(0) } -// 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) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type ListAddonOrdersByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListAddonOrdersByTeam200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 ListAddonOrdersByTeamResponse) 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 ListAddonOrdersByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string +type CreateAddonOrderForTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AddonOrder + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateAddonOrderForTeamResponse) 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 CreateAddonOrderForTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type GetAddonOrderByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonOrder + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetAddonOrderByTeamResponse) 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 GetAddonOrderByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewGetSyncRunConnectorCredentialsRequest generates requests for GetSyncRunConnectorCredentials -func NewGetSyncRunConnectorCredentialsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID) (*http.Request, error) { - var err error - - var pathParam0 string +type DeleteAddonsByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 DeleteAddonsByTeamResponse) 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 DeleteAddonsByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string +type ListAddonsByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListAddonsByTeam200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListAddonsByTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam3 string - - pathParam3, 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 +// StatusCode returns HTTPResponse.StatusCode +func (r ListAddonsByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/connector/%s/credentials", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type DownloadAddonAssetByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonAsset + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DownloadAddonAssetByTeamResponse) 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 DownloadAddonAssetByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetSyncRunConnectorIdentityRequest generates requests for GetSyncRunConnectorIdentity -func NewGetSyncRunConnectorIdentityRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID) (*http.Request, error) { - var err error +type AIOnboardingChatResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AIOnboardingChat200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r AIOnboardingChatResponse) 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 AIOnboardingChatResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type AIOnboardingEndConversationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AIOnboardingEndConversation200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + 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 AIOnboardingEndConversationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r AIOnboardingEndConversationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam3 string +type AIOnboardingNewConversationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AIOnboardingNewConversation200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError +} - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AIOnboardingNewConversationResponse) 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 AIOnboardingNewConversationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/connector/%s/identity", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type ListTeamAPIKeysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListTeamAPIKeys200Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListTeamAPIKeysResponse) 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 ListTeamAPIKeysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetSyncRunLogsRequest generates requests for GetSyncRunLogs -func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams) (*http.Request, error) { - var err error - - var pathParam0 string +type CreateTeamAPIKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *APIKey + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + 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 CreateTeamAPIKeyResponse) 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 CreateTeamAPIKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string +type DeleteTeamAPIKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteTeamAPIKeyResponse) 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 DeleteTeamAPIKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/logs", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type CreateTeamImagesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CreateTeamImages201Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateTeamImagesResponse) 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 CreateTeamImagesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - 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 - } +type DeleteTeamInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - req.Header.Set("Accept", headerParam0) - } +// 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 +} - return req, nil +type ListTeamInvitationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListTeamInvitations200Response + JSON403 *Forbidden + JSON500 *InternalError } -// 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) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListTeamInvitationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewCreateSyncRunProgressRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) + return http.StatusText(0) } -// 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) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r ListTeamInvitationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type EmailTeamInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Invitation + JSON202 *Invitation + JSON400 *BadRequest + JSON403 *Forbidden + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + 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 EmailTeamInvitationResponse) 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 EmailTeamInvitationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam2 string +type AcceptTeamInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *MembershipWithTeam + JSON303 *MembershipWithTeam + JSON403 *Forbidden + JSON500 *InternalError +} - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AcceptTeamInvitationResponse) 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 AcceptTeamInvitationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/progress", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type CancelTeamInvitationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CancelTeamInvitationResponse) 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 CancelTeamInvitationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - req.Header.Add("Content-Type", contentType) +type ListInvoicesByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListInvoicesByTeam200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - return req, nil +// Status returns HTTPResponse.Status +func (r ListInvoicesByTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// NewListTeamPluginUsageRequest generates requests for ListTeamPluginUsage -func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *ListTeamPluginUsageParams) (*http.Request, error) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r ListInvoicesByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type GetManagedDatabasesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *GetManagedDatabases200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 GetManagedDatabasesResponse) 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 GetManagedDatabasesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type CreateManagedDatabaseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ManagedDatabase + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateManagedDatabaseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - if params != nil { - queryValues := queryURL.Query() +// StatusCode returns HTTPResponse.StatusCode +func (r CreateManagedDatabaseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - if params.Page != nil { +type DeleteManagedDatabaseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - 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) - } - } - } +// Status returns HTTPResponse.Status +func (r DeleteManagedDatabaseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - } - - 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) - } - } - } +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteManagedDatabaseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - } +type GetManagedDatabaseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ManagedDatabase + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} - queryURL.RawQuery = queryValues.Encode() +// Status returns HTTPResponse.Status +func (r GetManagedDatabaseResponse) 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 GetManagedDatabaseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return req, nil +type RemoveTeamMembershipResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError } -// NewIncreaseTeamPluginUsageRequest calls the generic IncreaseTeamPluginUsage builder with application/json body -func NewIncreaseTeamPluginUsageRequest(server string, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r RemoveTeamMembershipResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewIncreaseTeamPluginUsageRequestWithBody(server, teamName, "application/json", bodyReader) + return http.StatusText(0) } -// NewIncreaseTeamPluginUsageRequestWithBody generates requests for IncreaseTeamPluginUsage with any type of body -func NewIncreaseTeamPluginUsageRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveTeamMembershipResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type GetTeamMembershipsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *GetTeamMemberships200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 GetTeamMembershipsResponse) 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 GetTeamMembershipsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type DeleteTeamMembershipResponse struct { + Body []byte + HTTPResponse *http.Response + 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 DeleteTeamMembershipResponse) 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 DeleteTeamMembershipResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - req.Header.Add("Content-Type", contentType) +type DeletePluginsByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - return req, nil +// Status returns HTTPResponse.Status +func (r DeletePluginsByTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// NewGetTeamUsageSummaryRequest generates requests for GetTeamUsageSummary -func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *GetTeamUsageSummaryParams) (*http.Request, error) { - var err error +// StatusCode returns HTTPResponse.StatusCode +func (r DeletePluginsByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - var pathParam0 string +type ListPluginsByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListPluginsByTeam200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + 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 ListPluginsByTeamResponse) 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 ListPluginsByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/usage-summary", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type DownloadPluginAssetByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PluginAsset + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DownloadPluginAssetByTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - if params != nil { - queryValues := queryURL.Query() +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadPluginAssetByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - if params.Metrics != nil { +type GetSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Settings + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - 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) - } - } - } +// Status returns HTTPResponse.Status +func (r GetSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - } - - if params.Start != nil { +// StatusCode returns HTTPResponse.StatusCode +func (r GetSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - 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) - } - } - } +type UpdateSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Settings + 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) +} - if params.End != nil { +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - 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) - } - } - } +type GetTeamSpendResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SpendSummary + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - } +// Status returns HTTPResponse.Status +func (r GetTeamSpendResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - if params.AggregationPeriod != nil { +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamSpendResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - 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) - } - } - } +type DeleteSpendingLimitResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - } +// Status returns HTTPResponse.Status +func (r DeleteSpendingLimitResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - queryURL.RawQuery = queryValues.Encode() +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSpendingLimitResponse) 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 GetSpendingLimitResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SpendingLimit + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetSpendingLimitResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - return req, nil +// StatusCode returns HTTPResponse.StatusCode +func (r GetSpendingLimitResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// NewGetGroupedTeamUsageSummaryRequest generates requests for GetGroupedTeamUsageSummary -func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams) (*http.Request, error) { - var err error +type CreateSpendingLimitResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *SpendingLimit + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r CreateSpendingLimitResponse) 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 CreateSpendingLimitResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type UpdateSpendingLimitResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SpendingLimit + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group_by", runtime.ParamLocationPath, groupBy) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateSpendingLimitResponse) 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 UpdateSpendingLimitResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/usage-summary/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath +type ListSubscriptionOrdersByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListSubscriptionOrdersByTeam200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListSubscriptionOrdersByTeamResponse) 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 ListSubscriptionOrdersByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - if params != nil { - queryValues := queryURL.Query() +type CreateSubscriptionOrderForTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TeamSubscriptionOrder + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - if params.Metrics != nil { +// Status returns HTTPResponse.Status +func (r CreateSubscriptionOrderForTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - 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) - } - } - } +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSubscriptionOrderForTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - } +type GetSubscriptionOrderByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TeamSubscriptionOrder + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - if params.End != nil { +// Status returns HTTPResponse.Status +func (r GetSubscriptionOrderByTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - 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) - } - } - } +// StatusCode returns HTTPResponse.StatusCode +func (r GetSubscriptionOrderByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - } +type ListTeamPluginUsageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListTeamPluginUsage200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - if params.AggregationPeriod != nil { +// Status returns HTTPResponse.Status +func (r ListTeamPluginUsageResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - 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) - } - } - } +// StatusCode returns HTTPResponse.StatusCode +func (r ListTeamPluginUsageResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - } +type IncreaseTeamPluginUsageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError + JSON503 *ServiceUnavailable +} - queryURL.RawQuery = queryValues.Encode() +// Status returns HTTPResponse.Status +func (r IncreaseTeamPluginUsageResponse) 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 IncreaseTeamPluginUsageResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewGetTeamPluginUsageRequest generates requests for GetTeamPluginUsage -func NewGetTeamPluginUsageRequest(server string, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { - var err error +type GetTeamUsageSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsageSummary + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - var pathParam0 string +// Status returns HTTPResponse.Status +func (r GetTeamUsageSummaryResponse) 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 GetTeamUsageSummaryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam1 string +type GetGroupedTeamUsageSummaryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsageSummary + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetGroupedTeamUsageSummaryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetGroupedTeamUsageSummaryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - var pathParam3 string +type GetTeamPluginUsageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsageCurrent + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetTeamPluginUsageResponse) 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 GetTeamPluginUsageResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - operationPath := fmt.Sprintf("/teams/%s/usage/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +type ListUsersByTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListUsersByTeam200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ListUsersByTeamResponse) 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 ListUsersByTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return req, nil + return 0 } -// NewListUsersByTeamRequest generates requests for ListUsersByTeam -func NewListUsersByTeamRequest(server string, teamName TeamName, params *ListUsersByTeamParams) (*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/users", 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 +type UploadImageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ImageURL + JSON500 *InternalError } -// 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 +// Status returns HTTPResponse.Status +func (r UploadImageResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - bodyReader = bytes.NewReader(buf) - return NewUploadImageRequestWithBody(server, "application/json", bodyReader) + return http.StatusText(0) } -// 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 - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/upload/image") - 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 +// StatusCode returns HTTPResponse.StatusCode +func (r UploadImageResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return 0 } -// NewGetCurrentUserRequest generates requests for GetCurrentUser -func NewGetCurrentUserRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } +type GetCurrentUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError +} - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetCurrentUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return req, nil + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r GetCurrentUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - bodyReader = bytes.NewReader(buf) - return NewUpdateCurrentUserRequestWithBody(server, "application/json", bodyReader) + return 0 } -// 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 +type UpdateCurrentUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON405 *MethodNotAllowed + JSON500 *InternalError +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateCurrentUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/user") - if operationPath[0] == '/' { - operationPath = "." + operationPath +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCurrentUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } +type SendAnonymousEventResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r SendAnonymousEventResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - req.Header.Add("Content-Type", contentType) - - return req, nil + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r SendAnonymousEventResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - bodyReader = bytes.NewReader(buf) - return NewSendAnonymousEventRequestWithBody(server, "application/json", bodyReader) + return 0 } -// 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 +type CheckUserAuthStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CheckUserAuthStatus200Response + JSON500 *InternalError +} - serverURL, err := url.Parse(server) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CheckUserAuthStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - operationPath := fmt.Sprintf("/user/anon-event") - 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 -} - -// NewCheckUserAuthStatusRequest generates requests for CheckUserAuthStatus -func NewCheckUserAuthStatusRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user/authenticated-status") - 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 -} - -// 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("/user/customer") - 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 -} - -// 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) -} - -// 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 - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user/event") - 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 -} - -// NewListCurrentUserInvitationsRequest generates requests for ListCurrentUserInvitations -func NewListCurrentUserInvitationsRequest(server string, params *ListCurrentUserInvitationsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user/invitations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PerPage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - 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("/user/login") - 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 -} - -// 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) -} - -// 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 - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user/login") - 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 -} - -// NewGetCurrentUserMembershipsRequest generates requests for GetCurrentUserMemberships -func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMembershipsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user/memberships") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PerPage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRegisterUserRequest calls the generic RegisterUser builder with application/json body -func NewRegisterUserRequest(server string, body RegisterUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRegisterUserRequestWithBody(server, "application/json", bodyReader) -} - -// NewRegisterUserRequestWithBody generates requests for RegisterUser with any type of body -func NewRegisterUserRequestWithBody(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("/user/register") - 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 -} - -// NewResetUserPasswordRequest calls the generic ResetUserPassword builder with application/json body -func NewResetUserPasswordRequest(server string, body ResetUserPasswordJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewResetUserPasswordRequestWithBody(server, "application/json", bodyReader) -} - -// NewResetUserPasswordRequestWithBody generates requests for ResetUserPassword with any type of body -func NewResetUserPasswordRequestWithBody(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("/user/reset-password") - 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 -} - -// NewDeterminePlatformTenantByEmailRequest generates requests for DeterminePlatformTenantByEmail -func NewDeterminePlatformTenantByEmailRequest(server string, params *DeterminePlatformTenantByEmailParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user/tenant") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, params.Email); err != nil { - return nil, err - } else if 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 -} - -// NewCreateUserTokenRequest generates requests for CreateUserToken -func NewCreateUserTokenRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/user/token") - 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 -} - -// 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("/user/totp") - 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 -} - -// 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 - } - - operationPath := fmt.Sprintf("/user/totp") - 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 -} - -// 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) -} - -// 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("/user/totp/verify") - 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) - - if params != nil { - - if params.Session != nil { - var cookieParam0 string - - cookieParam0, err = runtime.StyleParamWithLocation("simple", true, "__session", runtime.ParamLocationCookie, *params.Session) - if err != nil { - return nil, err - } - - cookie0 := &http.Cookie{ - Name: "__session", - Value: cookieParam0, - } - req.AddCookie(cookie0) - } - } - return req, nil -} - -// NewVerifyUserEmailRequest calls the generic VerifyUserEmail builder with application/json body -func NewVerifyUserEmailRequest(server string, body VerifyUserEmailJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVerifyUserEmailRequestWithBody(server, "application/json", bodyReader) -} - -// NewVerifyUserEmailRequestWithBody generates requests for VerifyUserEmail with any type of body -func NewVerifyUserEmailRequestWithBody(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("/user/verify-email") - 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 -} - -// 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 - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/users/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -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 - } - } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } - } - return nil -} - -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} - -// 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 - } - return &ClientWithResponses{client}, nil -} - -// 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 - } -} - -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // HealthCheckWithResponse request - HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) - - // ListAddonsWithResponse request - ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error) - - // CreateAddonWithBodyWithResponse request with any body - CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) - - CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) - - // DeleteAddonByTeamAndNameWithResponse request - DeleteAddonByTeamAndNameWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*DeleteAddonByTeamAndNameResponse, error) - - // GetAddonWithResponse request - GetAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*GetAddonResponse, error) - - // UpdateAddonWithBodyWithResponse request with any body - UpdateAddonWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) - - UpdateAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) - - // ListAddonVersionsWithResponse request - ListAddonVersionsWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, params *ListAddonVersionsParams, reqEditors ...RequestEditorFn) (*ListAddonVersionsResponse, error) - - // GetAddonVersionWithResponse request - GetAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetAddonVersionResponse, error) - - // UpdateAddonVersionWithBodyWithResponse request with any body - UpdateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) - - UpdateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body UpdateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) - - // CreateAddonVersionWithBodyWithResponse request with any body - CreateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) - - CreateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body CreateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) - - // DownloadAddonAssetWithResponse request - DownloadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetResponse, error) - - // UploadAddonAssetWithResponse request - UploadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*UploadAddonAssetResponse, error) - - // CQHealthCheckWithResponse request - CQHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CQHealthCheckResponse, error) - - // GetOpenAPIJSONWithResponse request - GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error) - - // ActivatePlatformWithBodyWithResponse request with any body - ActivatePlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) - - ActivatePlatformWithResponse(ctx context.Context, body ActivatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) - - // RenewPlatformActivationWithBodyWithResponse request with any body - RenewPlatformActivationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) - - RenewPlatformActivationWithResponse(ctx context.Context, body RenewPlatformActivationJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) - - // ReportPlatformDataWithBodyWithResponse request with any body - ReportPlatformDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) - - ReportPlatformDataWithResponse(ctx context.Context, body ReportPlatformDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) - - // ListPluginNotificationRequestsWithResponse request - ListPluginNotificationRequestsWithResponse(ctx context.Context, params *ListPluginNotificationRequestsParams, reqEditors ...RequestEditorFn) (*ListPluginNotificationRequestsResponse, error) - - // CreatePluginNotificationRequestWithBodyWithResponse request with any body - CreatePluginNotificationRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) - - CreatePluginNotificationRequestWithResponse(ctx context.Context, body CreatePluginNotificationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) - - // DeletePluginNotificationRequestWithResponse request - DeletePluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginNotificationRequestResponse, error) - - // GetPluginNotificationRequestWithResponse request - GetPluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginNotificationRequestResponse, 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) - - // DeletePluginUpcomingPriceChangesWithResponse request - DeletePluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginUpcomingPriceChangesResponse, error) - - // ListPluginUpcomingPriceChangesWithResponse request - ListPluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*ListPluginUpcomingPriceChangesResponse, error) - - // CreatePluginUpcomingPriceChangeWithBodyWithResponse request with any body - CreatePluginUpcomingPriceChangeWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) - - CreatePluginUpcomingPriceChangeWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body CreatePluginUpcomingPriceChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, 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) - - // ListAddonOrdersByTeamWithResponse request - ListAddonOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonOrdersByTeamResponse, error) - - // CreateAddonOrderForTeamWithBodyWithResponse request with any body - CreateAddonOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) - - CreateAddonOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) - - // GetAddonOrderByTeamWithResponse request - GetAddonOrderByTeamWithResponse(ctx context.Context, teamName TeamName, addonOrderID AddonOrderID, reqEditors ...RequestEditorFn) (*GetAddonOrderByTeamResponse, error) - - // DeleteAddonsByTeamWithResponse request - DeleteAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteAddonsByTeamResponse, error) - - // ListAddonsByTeamWithResponse request - ListAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonsByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonsByTeamResponse, error) - - // DownloadAddonAssetByTeamWithResponse request - DownloadAddonAssetByTeamWithResponse(ctx context.Context, teamName TeamName, addonTeam AddonTeam, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetByTeamResponse, error) - - // AIOnboardingChatWithBodyWithResponse request with any body - AIOnboardingChatWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) - - AIOnboardingChatWithResponse(ctx context.Context, teamName string, body AIOnboardingChatJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) - - // AIOnboardingEndConversationWithResponse request - AIOnboardingEndConversationWithResponse(ctx context.Context, teamName string, reqEditors ...RequestEditorFn) (*AIOnboardingEndConversationResponse, error) - - // AIOnboardingNewConversationWithBodyWithResponse request with any body - AIOnboardingNewConversationWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, error) - - AIOnboardingNewConversationWithResponse(ctx context.Context, teamName string, body AIOnboardingNewConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, 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) - - // 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) - - // EmailTeamInvitationWithBodyWithResponse request with any body - EmailTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) - - EmailTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, 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) - - // CancelTeamInvitationWithResponse request - CancelTeamInvitationWithResponse(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*CancelTeamInvitationResponse, error) - - // ListInvoicesByTeamWithResponse request - ListInvoicesByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*ListInvoicesByTeamResponse, error) - - // GetManagedDatabasesWithResponse request - GetManagedDatabasesWithResponse(ctx context.Context, teamName TeamName, params *GetManagedDatabasesParams, reqEditors ...RequestEditorFn) (*GetManagedDatabasesResponse, error) - - // CreateManagedDatabaseWithBodyWithResponse request with any body - CreateManagedDatabaseWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) - - CreateManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) - - // DeleteManagedDatabaseWithResponse request - DeleteManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*DeleteManagedDatabaseResponse, error) - - // GetManagedDatabaseWithResponse request - GetManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*GetManagedDatabaseResponse, 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) - - // 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) - - // GetSettingsWithResponse request - GetSettingsWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) - - // UpdateSettingsWithBodyWithResponse request with any body - UpdateSettingsWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) - - UpdateSettingsWithResponse(ctx context.Context, teamName TeamName, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) - - // GetTeamSpendWithResponse request - GetTeamSpendWithResponse(ctx context.Context, teamName TeamName, params *GetTeamSpendParams, reqEditors ...RequestEditorFn) (*GetTeamSpendResponse, error) - - // DeleteSpendingLimitWithResponse request - DeleteSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteSpendingLimitResponse, error) - - // GetSpendingLimitWithResponse request - GetSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSpendingLimitResponse, error) - - // CreateSpendingLimitWithBodyWithResponse request with any body - CreateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) - - CreateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) - - // UpdateSpendingLimitWithBodyWithResponse request with any body - UpdateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) - - UpdateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body UpdateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) - - // ListSubscriptionOrdersByTeamWithResponse request - ListSubscriptionOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListSubscriptionOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListSubscriptionOrdersByTeamResponse, error) - - // CreateSubscriptionOrderForTeamWithBodyWithResponse request with any body - CreateSubscriptionOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) - - CreateSubscriptionOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) - - // GetSubscriptionOrderByTeamWithResponse request - GetSubscriptionOrderByTeamWithResponse(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, reqEditors ...RequestEditorFn) (*GetSubscriptionOrderByTeamResponse, 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) - - // 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) - - // 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) - - // 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) - - // 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) - - // 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) - - // 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) - - // ListTeamPluginUsageWithResponse request - ListTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*ListTeamPluginUsageResponse, error) - - // IncreaseTeamPluginUsageWithBodyWithResponse request with any body - IncreaseTeamPluginUsageWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, error) - - IncreaseTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, 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) - - // GetTeamPluginUsageWithResponse request - GetTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetTeamPluginUsageResponse, 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) - - // CheckUserAuthStatusWithResponse request - CheckUserAuthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckUserAuthStatusResponse, 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) - - // 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) - - // RegisterUserWithBodyWithResponse request with any body - RegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) - - RegisterUserWithResponse(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) - - // ResetUserPasswordWithBodyWithResponse request with any body - ResetUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) - - ResetUserPasswordWithResponse(ctx context.Context, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) - - // DeterminePlatformTenantByEmailWithResponse request - DeterminePlatformTenantByEmailWithResponse(ctx context.Context, params *DeterminePlatformTenantByEmailParams, reqEditors ...RequestEditorFn) (*DeterminePlatformTenantByEmailResponse, 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) - - // VerifyUserEmailWithBodyWithResponse request with any body - VerifyUserEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) - - VerifyUserEmailWithResponse(ctx context.Context, body VerifyUserEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) - - // DeleteUserWithResponse request - DeleteUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) -} - -type HealthCheckResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// 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 ListAddonsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddons200Response - JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAddonsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAddonsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateAddonResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Addon - JSON400 *BadRequest - JSON403 *Forbidden - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAddonByTeamAndNameResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteAddonByTeamAndNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAddonByTeamAndNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAddonResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddon - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateAddonResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Addon - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAddonVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddonVersions200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAddonVersionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAddonVersionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAddonVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonVersion - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetAddonVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAddonVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateAddonVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonVersion - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateAddonVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateAddonVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateAddonVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonVersion - JSON201 *AddonVersion - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateAddonVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAddonVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DownloadAddonAssetResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonAsset - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DownloadAddonAssetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DownloadAddonAssetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UploadAddonAssetResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ReleaseURL - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UploadAddonAssetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UploadAddonAssetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CQHealthCheckResponse struct { - Body []byte - HTTPResponse *http.Response - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CQHealthCheckResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CQHealthCheckResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetOpenAPIJSONResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} -} - -// 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 ActivatePlatformResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ActivatePlatform200Response - JSON205 *ActivatePlatform205Response - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ActivatePlatformResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ActivatePlatformResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type RenewPlatformActivationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *RenewPlatformActivation200Response - JSON205 *ActivatePlatform205Response - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r RenewPlatformActivationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RenewPlatformActivationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ReportPlatformDataResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ReportPlatformDataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ReportPlatformDataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginNotificationRequestsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPluginNotificationRequests200Response - JSON401 *RequiresAuthentication - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPluginNotificationRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginNotificationRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreatePluginNotificationRequestResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *PluginNotificationRequest - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreatePluginNotificationRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginNotificationRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeletePluginNotificationRequestResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeletePluginNotificationRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginNotificationRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPluginNotificationRequestResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPluginNotificationRequests200Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetPluginNotificationRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPluginNotificationRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPlugins200Response - 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 DeletePluginUpcomingPriceChangesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeletePluginUpcomingPriceChangesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginUpcomingPriceChangesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginUpcomingPriceChangesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPluginUpcomingPriceChanges200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListPluginUpcomingPriceChangesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginUpcomingPriceChangesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreatePluginUpcomingPriceChangeResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *PluginPrice - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreatePluginUpcomingPriceChangeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginUpcomingPriceChangeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListPluginVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPluginVersions200Response - 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 *ListPluginVersionDocs200Response - 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 *CreatePluginVersionDocs201Response - 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 *CreatePluginVersionDocs201Response - 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 *ListPluginVersionTables200Response - 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 *CreatePluginVersionTables201Response - 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 *UploadPluginUIAssets201Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - 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 *ListTeams200Response - 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 ListAddonOrdersByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddonOrdersByTeam200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAddonOrdersByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAddonOrdersByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateAddonOrderForTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *AddonOrder - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateAddonOrderForTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAddonOrderForTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAddonOrderByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonOrder - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetAddonOrderByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAddonOrderByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAddonsByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteAddonsByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAddonsByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListAddonsByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddonsByTeam200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListAddonsByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListAddonsByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DownloadAddonAssetByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonAsset - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DownloadAddonAssetByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DownloadAddonAssetByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AIOnboardingChatResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AIOnboardingChat200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AIOnboardingChatResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AIOnboardingChatResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AIOnboardingEndConversationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AIOnboardingEndConversation200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AIOnboardingEndConversationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AIOnboardingEndConversationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type AIOnboardingNewConversationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AIOnboardingNewConversation200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r AIOnboardingNewConversationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AIOnboardingNewConversationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListTeamAPIKeysResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListTeamAPIKeys200Response - 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 - JSON403 *Forbidden - 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 - JSON403 *Forbidden - 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 *ListConnectors200Response - 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 *GetConnectorAuthStatusAWS200Response - 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 *GetConnectorAuthStatusGCP200Response - 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 CreateTeamImagesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *CreateTeamImages201Response - 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 *ListTeamInvitations200Response - 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 EmailTeamInvitationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Invitation - JSON202 *Invitation - JSON400 *BadRequest - JSON403 *Forbidden - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r EmailTeamInvitationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r EmailTeamInvitationResponse) 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 CancelTeamInvitationResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CancelTeamInvitationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CancelTeamInvitationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListInvoicesByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListInvoicesByTeam200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListInvoicesByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListInvoicesByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetManagedDatabasesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GetManagedDatabases200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetManagedDatabasesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetManagedDatabasesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateManagedDatabaseResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ManagedDatabase - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateManagedDatabaseResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateManagedDatabaseResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteManagedDatabaseResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteManagedDatabaseResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteManagedDatabaseResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetManagedDatabaseResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ManagedDatabase - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetManagedDatabaseResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetManagedDatabaseResponse) 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 *GetTeamMemberships200Response - 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 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 *ListPluginsByTeam200Response - 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 GetSettingsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Settings - 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 *Settings - 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 GetTeamSpendResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SpendSummary - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTeamSpendResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTeamSpendResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSpendingLimitResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteSpendingLimitResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSpendingLimitResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSpendingLimitResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SpendingLimit - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSpendingLimitResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSpendingLimitResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateSpendingLimitResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *SpendingLimit - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateSpendingLimitResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSpendingLimitResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSpendingLimitResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SpendingLimit - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSpendingLimitResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSpendingLimitResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSubscriptionOrdersByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSubscriptionOrdersByTeam200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSubscriptionOrdersByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSubscriptionOrdersByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateSubscriptionOrderForTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *TeamSubscriptionOrder - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateSubscriptionOrderForTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSubscriptionOrderForTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSubscriptionOrderByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *TeamSubscriptionOrder - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSubscriptionOrderByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSubscriptionOrderByTeamResponse) 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 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 *ListSyncDestinations200Response - 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 ListSyncDestinationSyncsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSyncSourceSyncs200Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - 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 { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncTestConnectionForSyncSourceResponse) 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 { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PromoteSyncSourceTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncSourcesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSyncSources200Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncSourcesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncSourcesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSyncSourceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - 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 { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSyncSourceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncSource - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSyncSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncSourceSyncsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSyncSourceSyncs200Response - 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 ListSyncsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSyncSourceSyncs200Response - 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 *GetSyncRunConnectorCredentials200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTestConnectionConnectorCredentialsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTestConnectionConnectorCredentialsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTestConnectionConnectorIdentityResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GetSyncRunConnectorIdentity200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTestConnectionConnectorIdentityResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTestConnectionConnectorIdentityResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Sync - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Sync - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListSyncRunsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSyncRuns200Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListSyncRunsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncRunsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateSyncRunResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *SyncRun - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateSyncRunResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncRunResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncRunResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncRunDetails - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncRunResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateSyncRunResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncRun - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateSyncRunResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncRunResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncRunConnectorCredentialsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GetSyncRunConnectorCredentials200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncRunConnectorCredentialsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunConnectorCredentialsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncRunConnectorIdentityResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GetSyncRunConnectorIdentity200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncRunConnectorIdentityResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunConnectorIdentityResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSyncRunLogsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncRunLogs - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetSyncRunLogsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunLogsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateSyncRunProgressResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CreateSyncRunProgressResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncRunProgressResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListTeamPluginUsageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListTeamPluginUsage200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListTeamPluginUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListTeamPluginUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type IncreaseTeamPluginUsageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError - JSON503 *ServiceUnavailable -} - -// Status returns HTTPResponse.Status -func (r IncreaseTeamPluginUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IncreaseTeamPluginUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTeamUsageSummaryResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UsageSummary - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTeamUsageSummaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTeamUsageSummaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetGroupedTeamUsageSummaryResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UsageSummary - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetGroupedTeamUsageSummaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetGroupedTeamUsageSummaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetTeamPluginUsageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UsageCurrent - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetTeamPluginUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetTeamPluginUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListUsersByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListUsersByTeam200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListUsersByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListUsersByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UploadImageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ImageURL - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UploadImageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UploadImageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCurrentUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetCurrentUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateCurrentUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON405 *MethodNotAllowed - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateCurrentUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateCurrentUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -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 http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SendAnonymousEventResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CheckUserAuthStatusResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *CheckUserAuthStatus200Response - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r CheckUserAuthStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CheckUserAuthStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UpdateCustomerResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UpdateCustomerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateCustomerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type SendUserEventResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r SendUserEventResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SendUserEventResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ListCurrentUserInvitationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListCurrentUserInvitations200Response - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ListCurrentUserInvitationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListCurrentUserInvitationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type LogoutUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r LogoutUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LogoutUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type LoginUserResponse 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 { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LoginUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCurrentUserMembershipsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GetCurrentUserMemberships200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r GetCurrentUserMembershipsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentUserMembershipsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type RegisterUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *RegisterUser201Response - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r RegisterUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RegisterUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type ResetUserPasswordResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r ResetUserPasswordResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ResetUserPasswordResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeterminePlatformTenantByEmailResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *DeterminePlatformTenantByEmail200Response - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeterminePlatformTenantByEmailResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeterminePlatformTenantByEmailResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type CreateUserTokenResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *CreateUserToken201Response - 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 -} - -// Status returns HTTPResponse.Status -func (r UserTOTPDeleteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserTOTPDeleteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UserTOTPSetupResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserTOTPSetup200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UserTOTPSetupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserTOTPSetupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type UserTOTPVerifyResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *UserTOTPVerify201Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON405 *MethodNotAllowed - JSON422 *UnprocessableEntity - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r UserTOTPVerifyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserTOTPVerifyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type VerifyUserEmailResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r VerifyUserEmailResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VerifyUserEmailResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} - -// Status returns HTTPResponse.Status -func (r DeleteUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// 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) -} - -// ListAddonsWithResponse request returning *ListAddonsResponse -func (c *ClientWithResponses) ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error) { - rsp, err := c.ListAddons(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAddonsResponse(rsp) -} - -// CreateAddonWithBodyWithResponse request with arbitrary body returning *CreateAddonResponse -func (c *ClientWithResponses) CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) { - rsp, err := c.CreateAddonWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAddonResponse(rsp) -} - -func (c *ClientWithResponses) CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) { - rsp, err := c.CreateAddon(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAddonResponse(rsp) -} - -// DeleteAddonByTeamAndNameWithResponse request returning *DeleteAddonByTeamAndNameResponse -func (c *ClientWithResponses) DeleteAddonByTeamAndNameWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*DeleteAddonByTeamAndNameResponse, error) { - rsp, err := c.DeleteAddonByTeamAndName(ctx, teamName, addonType, addonName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAddonByTeamAndNameResponse(rsp) -} - -// GetAddonWithResponse request returning *GetAddonResponse -func (c *ClientWithResponses) GetAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*GetAddonResponse, error) { - rsp, err := c.GetAddon(ctx, teamName, addonType, addonName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAddonResponse(rsp) -} - -// UpdateAddonWithBodyWithResponse request with arbitrary body returning *UpdateAddonResponse -func (c *ClientWithResponses) UpdateAddonWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) { - rsp, err := c.UpdateAddonWithBody(ctx, teamName, addonType, addonName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAddonResponse(rsp) -} - -func (c *ClientWithResponses) UpdateAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) { - rsp, err := c.UpdateAddon(ctx, teamName, addonType, addonName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAddonResponse(rsp) -} - -// ListAddonVersionsWithResponse request returning *ListAddonVersionsResponse -func (c *ClientWithResponses) ListAddonVersionsWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, params *ListAddonVersionsParams, reqEditors ...RequestEditorFn) (*ListAddonVersionsResponse, error) { - rsp, err := c.ListAddonVersions(ctx, teamName, addonType, addonName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAddonVersionsResponse(rsp) -} - -// GetAddonVersionWithResponse request returning *GetAddonVersionResponse -func (c *ClientWithResponses) GetAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetAddonVersionResponse, error) { - rsp, err := c.GetAddonVersion(ctx, teamName, addonType, addonName, versionName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAddonVersionResponse(rsp) -} - -// UpdateAddonVersionWithBodyWithResponse request with arbitrary body returning *UpdateAddonVersionResponse -func (c *ClientWithResponses) UpdateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) { - rsp, err := c.UpdateAddonVersionWithBody(ctx, teamName, addonType, addonName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAddonVersionResponse(rsp) -} - -func (c *ClientWithResponses) UpdateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body UpdateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) { - rsp, err := c.UpdateAddonVersion(ctx, teamName, addonType, addonName, versionName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAddonVersionResponse(rsp) -} - -// CreateAddonVersionWithBodyWithResponse request with arbitrary body returning *CreateAddonVersionResponse -func (c *ClientWithResponses) CreateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) { - rsp, err := c.CreateAddonVersionWithBody(ctx, teamName, addonType, addonName, versionName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAddonVersionResponse(rsp) -} - -func (c *ClientWithResponses) CreateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body CreateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) { - rsp, err := c.CreateAddonVersion(ctx, teamName, addonType, addonName, versionName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAddonVersionResponse(rsp) -} - -// DownloadAddonAssetWithResponse request returning *DownloadAddonAssetResponse -func (c *ClientWithResponses) DownloadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetResponse, error) { - rsp, err := c.DownloadAddonAsset(ctx, teamName, addonType, addonName, versionName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDownloadAddonAssetResponse(rsp) -} - -// UploadAddonAssetWithResponse request returning *UploadAddonAssetResponse -func (c *ClientWithResponses) UploadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*UploadAddonAssetResponse, error) { - rsp, err := c.UploadAddonAsset(ctx, teamName, addonType, addonName, versionName, reqEditors...) - if err != nil { - return nil, err - } - return ParseUploadAddonAssetResponse(rsp) -} - -// CQHealthCheckWithResponse request returning *CQHealthCheckResponse -func (c *ClientWithResponses) CQHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CQHealthCheckResponse, error) { - rsp, err := c.CQHealthCheck(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseCQHealthCheckResponse(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) -} - -// ActivatePlatformWithBodyWithResponse request with arbitrary body returning *ActivatePlatformResponse -func (c *ClientWithResponses) ActivatePlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) { - rsp, err := c.ActivatePlatformWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseActivatePlatformResponse(rsp) -} - -func (c *ClientWithResponses) ActivatePlatformWithResponse(ctx context.Context, body ActivatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) { - rsp, err := c.ActivatePlatform(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseActivatePlatformResponse(rsp) -} - -// RenewPlatformActivationWithBodyWithResponse request with arbitrary body returning *RenewPlatformActivationResponse -func (c *ClientWithResponses) RenewPlatformActivationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) { - rsp, err := c.RenewPlatformActivationWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRenewPlatformActivationResponse(rsp) -} - -func (c *ClientWithResponses) RenewPlatformActivationWithResponse(ctx context.Context, body RenewPlatformActivationJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) { - rsp, err := c.RenewPlatformActivation(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRenewPlatformActivationResponse(rsp) -} - -// ReportPlatformDataWithBodyWithResponse request with arbitrary body returning *ReportPlatformDataResponse -func (c *ClientWithResponses) ReportPlatformDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) { - rsp, err := c.ReportPlatformDataWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseReportPlatformDataResponse(rsp) -} - -func (c *ClientWithResponses) ReportPlatformDataWithResponse(ctx context.Context, body ReportPlatformDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) { - rsp, err := c.ReportPlatformData(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseReportPlatformDataResponse(rsp) -} - -// ListPluginNotificationRequestsWithResponse request returning *ListPluginNotificationRequestsResponse -func (c *ClientWithResponses) ListPluginNotificationRequestsWithResponse(ctx context.Context, params *ListPluginNotificationRequestsParams, reqEditors ...RequestEditorFn) (*ListPluginNotificationRequestsResponse, error) { - rsp, err := c.ListPluginNotificationRequests(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListPluginNotificationRequestsResponse(rsp) -} - -// CreatePluginNotificationRequestWithBodyWithResponse request with arbitrary body returning *CreatePluginNotificationRequestResponse -func (c *ClientWithResponses) CreatePluginNotificationRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) { - rsp, err := c.CreatePluginNotificationRequestWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginNotificationRequestResponse(rsp) -} - -func (c *ClientWithResponses) CreatePluginNotificationRequestWithResponse(ctx context.Context, body CreatePluginNotificationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) { - rsp, err := c.CreatePluginNotificationRequest(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginNotificationRequestResponse(rsp) -} - -// DeletePluginNotificationRequestWithResponse request returning *DeletePluginNotificationRequestResponse -func (c *ClientWithResponses) DeletePluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginNotificationRequestResponse, error) { - rsp, err := c.DeletePluginNotificationRequest(ctx, pluginTeam, pluginKind, pluginName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeletePluginNotificationRequestResponse(rsp) -} - -// GetPluginNotificationRequestWithResponse request returning *GetPluginNotificationRequestResponse -func (c *ClientWithResponses) GetPluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginNotificationRequestResponse, error) { - rsp, err := c.GetPluginNotificationRequest(ctx, pluginTeam, pluginKind, pluginName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPluginNotificationRequestResponse(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) -} - -// DeletePluginUpcomingPriceChangesWithResponse request returning *DeletePluginUpcomingPriceChangesResponse -func (c *ClientWithResponses) DeletePluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginUpcomingPriceChangesResponse, error) { - rsp, err := c.DeletePluginUpcomingPriceChanges(ctx, teamName, pluginKind, pluginName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeletePluginUpcomingPriceChangesResponse(rsp) -} - -// ListPluginUpcomingPriceChangesWithResponse request returning *ListPluginUpcomingPriceChangesResponse -func (c *ClientWithResponses) ListPluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*ListPluginUpcomingPriceChangesResponse, error) { - rsp, err := c.ListPluginUpcomingPriceChanges(ctx, teamName, pluginKind, pluginName, reqEditors...) - if err != nil { - return nil, err - } - return ParseListPluginUpcomingPriceChangesResponse(rsp) -} - -// CreatePluginUpcomingPriceChangeWithBodyWithResponse request with arbitrary body returning *CreatePluginUpcomingPriceChangeResponse -func (c *ClientWithResponses) CreatePluginUpcomingPriceChangeWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) { - rsp, err := c.CreatePluginUpcomingPriceChangeWithBody(ctx, teamName, pluginKind, pluginName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginUpcomingPriceChangeResponse(rsp) -} - -func (c *ClientWithResponses) CreatePluginUpcomingPriceChangeWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body CreatePluginUpcomingPriceChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) { - rsp, err := c.CreatePluginUpcomingPriceChange(ctx, teamName, pluginKind, pluginName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePluginUpcomingPriceChangeResponse(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 - } - return ParseUploadPluginAssetResponse(rsp) -} - -// 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) -} - -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 - } - return ParseDeletePluginVersionDocsResponse(rsp) -} - -// 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 - } - return ParseListPluginVersionDocsResponse(rsp) -} - -// 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 - } - return ParseReplacePluginVersionDocsResponse(rsp) -} - -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 - } - return ParseReplacePluginVersionDocsResponse(rsp) -} - -// 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 - } - return ParseCreatePluginVersionDocsResponse(rsp) -} - -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) -} - -// 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 - } - return ParseDeletePluginVersionTablesResponse(rsp) -} - -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 - } - return ParseDeletePluginVersionTablesResponse(rsp) -} - -// 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) -} - -// 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 - } - return ParseCreatePluginVersionTablesResponse(rsp) -} - -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 - } - return ParseCreatePluginVersionTablesResponse(rsp) -} - -// 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) -} - -// 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 - } - return ParseRemovePluginUIAssetsResponse(rsp) -} - -// 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 - } - return ParseUploadPluginUIAssetsResponse(rsp) -} - -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) -} - -// 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 - } - return ParseFinalizePluginUIAssetUploadResponse(rsp) -} - -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 - } - return ParseFinalizePluginUIAssetUploadResponse(rsp) -} - -// 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 - } - return ParseAuthRegistryRequestResponse(rsp) -} - -// 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) -} - -// 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 - } - return ParseCreateTeamResponse(rsp) -} - -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 - } - return ParseCreateTeamResponse(rsp) -} - -// 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 - } - return ParseDeleteTeamResponse(rsp) -} - -// 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 - } - return ParseGetTeamByNameResponse(rsp) -} - -// 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 - } - return ParseUpdateTeamResponse(rsp) -} - -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 - } - return ParseUpdateTeamResponse(rsp) -} - -// ListAddonOrdersByTeamWithResponse request returning *ListAddonOrdersByTeamResponse -func (c *ClientWithResponses) ListAddonOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonOrdersByTeamResponse, error) { - rsp, err := c.ListAddonOrdersByTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAddonOrdersByTeamResponse(rsp) -} - -// CreateAddonOrderForTeamWithBodyWithResponse request with arbitrary body returning *CreateAddonOrderForTeamResponse -func (c *ClientWithResponses) CreateAddonOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) { - rsp, err := c.CreateAddonOrderForTeamWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAddonOrderForTeamResponse(rsp) -} - -func (c *ClientWithResponses) CreateAddonOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) { - rsp, err := c.CreateAddonOrderForTeam(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAddonOrderForTeamResponse(rsp) -} - -// GetAddonOrderByTeamWithResponse request returning *GetAddonOrderByTeamResponse -func (c *ClientWithResponses) GetAddonOrderByTeamWithResponse(ctx context.Context, teamName TeamName, addonOrderID AddonOrderID, reqEditors ...RequestEditorFn) (*GetAddonOrderByTeamResponse, error) { - rsp, err := c.GetAddonOrderByTeam(ctx, teamName, addonOrderID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAddonOrderByTeamResponse(rsp) -} - -// DeleteAddonsByTeamWithResponse request returning *DeleteAddonsByTeamResponse -func (c *ClientWithResponses) DeleteAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteAddonsByTeamResponse, error) { - rsp, err := c.DeleteAddonsByTeam(ctx, teamName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAddonsByTeamResponse(rsp) -} - -// ListAddonsByTeamWithResponse request returning *ListAddonsByTeamResponse -func (c *ClientWithResponses) ListAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonsByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonsByTeamResponse, error) { - rsp, err := c.ListAddonsByTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListAddonsByTeamResponse(rsp) -} - -// DownloadAddonAssetByTeamWithResponse request returning *DownloadAddonAssetByTeamResponse -func (c *ClientWithResponses) DownloadAddonAssetByTeamWithResponse(ctx context.Context, teamName TeamName, addonTeam AddonTeam, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetByTeamResponse, error) { - rsp, err := c.DownloadAddonAssetByTeam(ctx, teamName, addonTeam, addonType, addonName, versionName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDownloadAddonAssetByTeamResponse(rsp) -} - -// AIOnboardingChatWithBodyWithResponse request with arbitrary body returning *AIOnboardingChatResponse -func (c *ClientWithResponses) AIOnboardingChatWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) { - rsp, err := c.AIOnboardingChatWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAIOnboardingChatResponse(rsp) -} - -func (c *ClientWithResponses) AIOnboardingChatWithResponse(ctx context.Context, teamName string, body AIOnboardingChatJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) { - rsp, err := c.AIOnboardingChat(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAIOnboardingChatResponse(rsp) -} - -// AIOnboardingEndConversationWithResponse request returning *AIOnboardingEndConversationResponse -func (c *ClientWithResponses) AIOnboardingEndConversationWithResponse(ctx context.Context, teamName string, reqEditors ...RequestEditorFn) (*AIOnboardingEndConversationResponse, error) { - rsp, err := c.AIOnboardingEndConversation(ctx, teamName, reqEditors...) - if err != nil { - return nil, err - } - return ParseAIOnboardingEndConversationResponse(rsp) -} - -// AIOnboardingNewConversationWithBodyWithResponse request with arbitrary body returning *AIOnboardingNewConversationResponse -func (c *ClientWithResponses) AIOnboardingNewConversationWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, error) { - rsp, err := c.AIOnboardingNewConversationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAIOnboardingNewConversationResponse(rsp) -} - -func (c *ClientWithResponses) AIOnboardingNewConversationWithResponse(ctx context.Context, teamName string, body AIOnboardingNewConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, error) { - rsp, err := c.AIOnboardingNewConversation(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAIOnboardingNewConversationResponse(rsp) -} - -// 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 - } - return ParseListTeamAPIKeysResponse(rsp) -} - -// 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) -} - -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 - } - return ParseCreateTeamAPIKeyResponse(rsp) -} - -// 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 - } - return ParseDeleteTeamAPIKeyResponse(rsp) -} - -// 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 - } - return ParseListConnectorsResponse(rsp) -} - -// 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 - } - return ParseCreateConnectorResponse(rsp) -} - -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 - } - return ParseCreateConnectorResponse(rsp) -} - -// 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 - } - return ParseGetConnectorResponse(rsp) -} - -// 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 - } - return ParseUpdateConnectorResponse(rsp) -} - -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 - } - return ParseUpdateConnectorResponse(rsp) -} - -// 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) -} - -// 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 - } - return ParseGetConnectorAuthStatusAWSResponse(rsp) -} - -// 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 - } - return ParseAuthenticateConnectorFinishAWSResponse(rsp) -} - -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 - } - return ParseAuthenticateConnectorFinishAWSResponse(rsp) -} - -// 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 - } - return ParseAuthenticateConnectorAWSResponse(rsp) -} - -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 - } - return ParseAuthenticateConnectorAWSResponse(rsp) -} - -// 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 - } - return ParseGetConnectorAuthStatusGCPResponse(rsp) -} - -// 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 - } - return ParseAuthenticateConnectorGCPResponse(rsp) -} - -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 - } - return ParseAuthenticateConnectorGCPResponse(rsp) -} - -// 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) -} - -// 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 - } - return ParseAuthenticateConnectorFinishOAuthResponse(rsp) -} - -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 - } - return ParseAuthenticateConnectorFinishOAuthResponse(rsp) -} - -// 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) -} - -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 - } - return ParseAuthenticateConnectorOAuthResponse(rsp) -} - -// 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 - } - return ParseCreateTeamImagesResponse(rsp) -} - -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 - } - return ParseCreateTeamImagesResponse(rsp) -} - -// 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 - } - return ParseDeleteTeamInvitationResponse(rsp) -} - -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 - } - return ParseDeleteTeamInvitationResponse(rsp) -} - -// 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 - } - return ParseListTeamInvitationsResponse(rsp) -} - -// EmailTeamInvitationWithBodyWithResponse request with arbitrary body returning *EmailTeamInvitationResponse -func (c *ClientWithResponses) EmailTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) { - rsp, err := c.EmailTeamInvitationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseEmailTeamInvitationResponse(rsp) -} - -func (c *ClientWithResponses) EmailTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) { - rsp, err := c.EmailTeamInvitation(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseEmailTeamInvitationResponse(rsp) -} - -// 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) -} - -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 - } - return ParseAcceptTeamInvitationResponse(rsp) -} - -// CancelTeamInvitationWithResponse request returning *CancelTeamInvitationResponse -func (c *ClientWithResponses) CancelTeamInvitationWithResponse(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*CancelTeamInvitationResponse, error) { - rsp, err := c.CancelTeamInvitation(ctx, teamName, email, reqEditors...) - if err != nil { - return nil, err - } - return ParseCancelTeamInvitationResponse(rsp) -} - -// ListInvoicesByTeamWithResponse request returning *ListInvoicesByTeamResponse -func (c *ClientWithResponses) ListInvoicesByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*ListInvoicesByTeamResponse, error) { - rsp, err := c.ListInvoicesByTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListInvoicesByTeamResponse(rsp) -} - -// GetManagedDatabasesWithResponse request returning *GetManagedDatabasesResponse -func (c *ClientWithResponses) GetManagedDatabasesWithResponse(ctx context.Context, teamName TeamName, params *GetManagedDatabasesParams, reqEditors ...RequestEditorFn) (*GetManagedDatabasesResponse, error) { - rsp, err := c.GetManagedDatabases(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetManagedDatabasesResponse(rsp) -} - -// CreateManagedDatabaseWithBodyWithResponse request with arbitrary body returning *CreateManagedDatabaseResponse -func (c *ClientWithResponses) CreateManagedDatabaseWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) { - rsp, err := c.CreateManagedDatabaseWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateManagedDatabaseResponse(rsp) -} - -func (c *ClientWithResponses) CreateManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) { - rsp, err := c.CreateManagedDatabase(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateManagedDatabaseResponse(rsp) -} - -// DeleteManagedDatabaseWithResponse request returning *DeleteManagedDatabaseResponse -func (c *ClientWithResponses) DeleteManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*DeleteManagedDatabaseResponse, error) { - rsp, err := c.DeleteManagedDatabase(ctx, teamName, managedDatabaseID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteManagedDatabaseResponse(rsp) -} - -// GetManagedDatabaseWithResponse request returning *GetManagedDatabaseResponse -func (c *ClientWithResponses) GetManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*GetManagedDatabaseResponse, error) { - rsp, err := c.GetManagedDatabase(ctx, teamName, managedDatabaseID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetManagedDatabaseResponse(rsp) -} - -// 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 - } - return ParseRemoveTeamMembershipResponse(rsp) -} - -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 - } - return ParseRemoveTeamMembershipResponse(rsp) -} - -// 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 - } - return ParseGetTeamMembershipsResponse(rsp) -} - -// 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 - } - return ParseDeleteTeamMembershipResponse(rsp) -} - -// 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 - } - return ParseDeletePluginsByTeamResponse(rsp) -} - -// 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) -} - -// 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) -} - -// GetSettingsWithResponse request returning *GetSettingsResponse -func (c *ClientWithResponses) GetSettingsWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) { - rsp, err := c.GetSettings(ctx, teamName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSettingsResponse(rsp) -} - -// UpdateSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSettingsResponse -func (c *ClientWithResponses) UpdateSettingsWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { - rsp, err := c.UpdateSettingsWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSettingsResponse(rsp) -} - -func (c *ClientWithResponses) UpdateSettingsWithResponse(ctx context.Context, teamName TeamName, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { - rsp, err := c.UpdateSettings(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSettingsResponse(rsp) -} - -// GetTeamSpendWithResponse request returning *GetTeamSpendResponse -func (c *ClientWithResponses) GetTeamSpendWithResponse(ctx context.Context, teamName TeamName, params *GetTeamSpendParams, reqEditors ...RequestEditorFn) (*GetTeamSpendResponse, error) { - rsp, err := c.GetTeamSpend(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetTeamSpendResponse(rsp) -} - -// DeleteSpendingLimitWithResponse request returning *DeleteSpendingLimitResponse -func (c *ClientWithResponses) DeleteSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteSpendingLimitResponse, error) { - rsp, err := c.DeleteSpendingLimit(ctx, teamName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSpendingLimitResponse(rsp) -} - -// GetSpendingLimitWithResponse request returning *GetSpendingLimitResponse -func (c *ClientWithResponses) GetSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSpendingLimitResponse, error) { - rsp, err := c.GetSpendingLimit(ctx, teamName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSpendingLimitResponse(rsp) -} - -// CreateSpendingLimitWithBodyWithResponse request with arbitrary body returning *CreateSpendingLimitResponse -func (c *ClientWithResponses) CreateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) { - rsp, err := c.CreateSpendingLimitWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSpendingLimitResponse(rsp) -} - -func (c *ClientWithResponses) CreateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) { - rsp, err := c.CreateSpendingLimit(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSpendingLimitResponse(rsp) -} - -// UpdateSpendingLimitWithBodyWithResponse request with arbitrary body returning *UpdateSpendingLimitResponse -func (c *ClientWithResponses) UpdateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) { - rsp, err := c.UpdateSpendingLimitWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSpendingLimitResponse(rsp) -} - -func (c *ClientWithResponses) UpdateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body UpdateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) { - rsp, err := c.UpdateSpendingLimit(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSpendingLimitResponse(rsp) -} - -// ListSubscriptionOrdersByTeamWithResponse request returning *ListSubscriptionOrdersByTeamResponse -func (c *ClientWithResponses) ListSubscriptionOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListSubscriptionOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListSubscriptionOrdersByTeamResponse, error) { - rsp, err := c.ListSubscriptionOrdersByTeam(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListSubscriptionOrdersByTeamResponse(rsp) -} - -// CreateSubscriptionOrderForTeamWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionOrderForTeamResponse -func (c *ClientWithResponses) CreateSubscriptionOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) { - rsp, err := c.CreateSubscriptionOrderForTeamWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSubscriptionOrderForTeamResponse(rsp) -} - -func (c *ClientWithResponses) CreateSubscriptionOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) { - rsp, err := c.CreateSubscriptionOrderForTeam(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSubscriptionOrderForTeamResponse(rsp) -} - -// GetSubscriptionOrderByTeamWithResponse request returning *GetSubscriptionOrderByTeamResponse -func (c *ClientWithResponses) GetSubscriptionOrderByTeamWithResponse(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, reqEditors ...RequestEditorFn) (*GetSubscriptionOrderByTeamResponse, error) { - rsp, err := c.GetSubscriptionOrderByTeam(ctx, teamName, teamSubscriptionOrderID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSubscriptionOrderByTeamResponse(rsp) -} - -// 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) -} - -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 - } - return ParseCreateSyncDestinationTestConnectionResponse(rsp) -} - -// 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 - } - return ParseGetSyncDestinationTestConnectionResponse(rsp) -} - -// 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) -} - -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 - } - return ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp) -} - -// 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 - } - return ParsePromoteSyncDestinationTestConnectionResponse(rsp) -} - -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) -} - -// 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 - } - return ParseListSyncDestinationsResponse(rsp) -} - -// 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 - } - return ParseDeleteSyncDestinationResponse(rsp) -} - -// 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) -} - -// 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 - } - return ParseUpdateSyncDestinationResponse(rsp) -} - -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 - } - return ParseUpdateSyncDestinationResponse(rsp) -} - -// 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 - } - return ParseListSyncDestinationSyncsResponse(rsp) -} - -// 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 - } - return ParseGetTestConnectionForSyncDestinationResponse(rsp) -} - -// 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) -} - -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 - } - return ParseCreateSyncSourceTestConnectionResponse(rsp) -} - -// 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 - } - return ParseGetSyncSourceTestConnectionResponse(rsp) -} - -// 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 - } - return ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp) -} - -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 - } - return ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp) -} - -// 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 - } - return ParsePromoteSyncSourceTestConnectionResponse(rsp) -} - -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) -} - -// 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 - } - return ParseListSyncSourcesResponse(rsp) -} - -// 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 - } - return ParseDeleteSyncSourceResponse(rsp) -} - -// 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 - } - return ParseGetSyncSourceResponse(rsp) -} - -// 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 - } - return ParseUpdateSyncSourceResponse(rsp) -} - -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 - } - return ParseUpdateSyncSourceResponse(rsp) -} - -// 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 - } - return ParseListSyncSourceSyncsResponse(rsp) -} - -// 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 - } - return ParseGetTestConnectionForSyncSourceResponse(rsp) -} - -// 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 - } - return ParseListSyncsResponse(rsp) -} - -// 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 - } - return ParseCreateSyncResponse(rsp) -} - -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 - } - return ParseCreateSyncResponse(rsp) -} - -// 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 - } - return ParseGetTestConnectionConnectorCredentialsResponse(rsp) -} - -// 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 - } - return ParseGetTestConnectionConnectorIdentityResponse(rsp) -} - -// 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 - } - return ParseDeleteSyncResponse(rsp) -} - -// 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 - } - return ParseGetSyncResponse(rsp) -} - -// 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 - } - return ParseUpdateSyncResponse(rsp) -} - -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 - } - return ParseUpdateSyncResponse(rsp) -} - -// 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 - } - return ParseListSyncRunsResponse(rsp) -} - -// 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 - } - return ParseCreateSyncRunResponse(rsp) -} - -// 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 - } - return ParseGetSyncRunResponse(rsp) -} - -// 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 - } - return ParseUpdateSyncRunResponse(rsp) -} - -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 - } - return ParseUpdateSyncRunResponse(rsp) -} - -// 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 - } - return ParseGetSyncRunConnectorCredentialsResponse(rsp) -} - -// 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 - } - return ParseGetSyncRunConnectorIdentityResponse(rsp) -} - -// 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 - } - return ParseGetSyncRunLogsResponse(rsp) -} - -// 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 - } - return ParseCreateSyncRunProgressResponse(rsp) -} - -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 - } - return ParseCreateSyncRunProgressResponse(rsp) -} - -// ListTeamPluginUsageWithResponse request returning *ListTeamPluginUsageResponse -func (c *ClientWithResponses) ListTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*ListTeamPluginUsageResponse, error) { - rsp, err := c.ListTeamPluginUsage(ctx, teamName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListTeamPluginUsageResponse(rsp) -} - -// IncreaseTeamPluginUsageWithBodyWithResponse request with arbitrary body returning *IncreaseTeamPluginUsageResponse -func (c *ClientWithResponses) IncreaseTeamPluginUsageWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, error) { - rsp, err := c.IncreaseTeamPluginUsageWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIncreaseTeamPluginUsageResponse(rsp) -} - -func (c *ClientWithResponses) IncreaseTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, error) { - rsp, err := c.IncreaseTeamPluginUsage(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIncreaseTeamPluginUsageResponse(rsp) -} - -// 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 - } - return ParseGetTeamUsageSummaryResponse(rsp) -} - -// 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) -} - -// GetTeamPluginUsageWithResponse request returning *GetTeamPluginUsageResponse -func (c *ClientWithResponses) GetTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetTeamPluginUsageResponse, error) { - rsp, err := c.GetTeamPluginUsage(ctx, teamName, pluginTeam, pluginKind, pluginName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetTeamPluginUsageResponse(rsp) -} - -// 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 - } - return ParseListUsersByTeamResponse(rsp) -} - -// 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 - } - return ParseUploadImageResponse(rsp) -} - -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) -} - -// 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) -} - -// 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) -} - -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) -} - -// 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) -} - -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) -} - -// CheckUserAuthStatusWithResponse request returning *CheckUserAuthStatusResponse -func (c *ClientWithResponses) CheckUserAuthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckUserAuthStatusResponse, error) { - rsp, err := c.CheckUserAuthStatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseCheckUserAuthStatusResponse(rsp) -} - -// 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) -} - -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) -} - -// 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) -} - -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) -} - -// 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 - } - return ParseListCurrentUserInvitationsResponse(rsp) -} - -// 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) -} - -// 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) -} - -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) -} - -// 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 - } - return ParseGetCurrentUserMembershipsResponse(rsp) -} - -// RegisterUserWithBodyWithResponse request with arbitrary body returning *RegisterUserResponse -func (c *ClientWithResponses) RegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) { - rsp, err := c.RegisterUserWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegisterUserResponse(rsp) -} - -func (c *ClientWithResponses) RegisterUserWithResponse(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) { - rsp, err := c.RegisterUser(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegisterUserResponse(rsp) -} - -// ResetUserPasswordWithBodyWithResponse request with arbitrary body returning *ResetUserPasswordResponse -func (c *ClientWithResponses) ResetUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) { - rsp, err := c.ResetUserPasswordWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseResetUserPasswordResponse(rsp) -} - -func (c *ClientWithResponses) ResetUserPasswordWithResponse(ctx context.Context, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) { - rsp, err := c.ResetUserPassword(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseResetUserPasswordResponse(rsp) -} - -// DeterminePlatformTenantByEmailWithResponse request returning *DeterminePlatformTenantByEmailResponse -func (c *ClientWithResponses) DeterminePlatformTenantByEmailWithResponse(ctx context.Context, params *DeterminePlatformTenantByEmailParams, reqEditors ...RequestEditorFn) (*DeterminePlatformTenantByEmailResponse, error) { - rsp, err := c.DeterminePlatformTenantByEmail(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeterminePlatformTenantByEmailResponse(rsp) -} - -// 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 - } - return ParseCreateUserTokenResponse(rsp) -} - -// 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) -} - -// 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) -} - -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) -} - -// VerifyUserEmailWithBodyWithResponse request with arbitrary body returning *VerifyUserEmailResponse -func (c *ClientWithResponses) VerifyUserEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) { - rsp, err := c.VerifyUserEmailWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVerifyUserEmailResponse(rsp) -} - -func (c *ClientWithResponses) VerifyUserEmailWithResponse(ctx context.Context, body VerifyUserEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) { - rsp, err := c.VerifyUserEmail(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVerifyUserEmailResponse(rsp) -} - -// 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) -} - -// 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 := &HealthCheckResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseListAddonsResponse parses an HTTP response from a ListAddonsWithResponse call -func ParseListAddonsResponse(rsp *http.Response) (*ListAddonsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListAddonsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddons200Response - 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseCreateAddonResponse parses an HTTP response from a CreateAddonWithResponse call -func ParseCreateAddonResponse(rsp *http.Response) (*CreateAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Addon - 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 == 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 - - 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 -} - -// ParseDeleteAddonByTeamAndNameResponse parses an HTTP response from a DeleteAddonByTeamAndNameWithResponse call -func ParseDeleteAddonByTeamAndNameResponse(rsp *http.Response) (*DeleteAddonByTeamAndNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteAddonByTeamAndNameResponse{ - 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 - 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 -} - -// ParseGetAddonResponse parses an HTTP response from a GetAddonWithResponse call -func ParseGetAddonResponse(rsp *http.Response) (*GetAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddon - 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 == 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 -} - -// ParseUpdateAddonResponse parses an HTTP response from a UpdateAddonWithResponse call -func ParseUpdateAddonResponse(rsp *http.Response) (*UpdateAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Addon - 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 { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseListAddonVersionsResponse parses an HTTP response from a ListAddonVersionsWithResponse call -func ParseListAddonVersionsResponse(rsp *http.Response) (*ListAddonVersionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListAddonVersionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddonVersions200Response - 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 -} - -// ParseGetAddonVersionResponse parses an HTTP response from a GetAddonVersionWithResponse call -func ParseGetAddonVersionResponse(rsp *http.Response) (*GetAddonVersionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAddonVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonVersion - 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 -} - -// ParseUpdateAddonVersionResponse parses an HTTP response from a UpdateAddonVersionWithResponse call -func ParseUpdateAddonVersionResponse(rsp *http.Response) (*UpdateAddonVersionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UpdateAddonVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonVersion - 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 - - 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 -} - -// ParseCreateAddonVersionResponse parses an HTTP response from a CreateAddonVersionWithResponse call -func ParseCreateAddonVersionResponse(rsp *http.Response) (*CreateAddonVersionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateAddonVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonVersion - 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 == 201: - var dest AddonVersion - 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 == 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 CheckUserAuthStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type UpdateCustomerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError } -// ParseDownloadAddonAssetResponse parses an HTTP response from a DownloadAddonAssetWithResponse call -func ParseDownloadAddonAssetResponse(rsp *http.Response) (*DownloadAddonAssetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateCustomerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &DownloadAddonAssetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCustomerResponse) 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 AddonAsset - 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 +type SendUserEventResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *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.JSON403 = &dest +// Status returns HTTPResponse.Status +func (r SendUserEventResponse) 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// StatusCode returns HTTPResponse.StatusCode +func (r SendUserEventResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - 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 +type ListCurrentUserInvitationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ListCurrentUserInvitations200Response + 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 ListCurrentUserInvitationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ListCurrentUserInvitationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type LogoutUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON500 *InternalError } -// ParseUploadAddonAssetResponse parses an HTTP response from a UploadAddonAssetWithResponse call -func ParseUploadAddonAssetResponse(rsp *http.Response) (*UploadAddonAssetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r LogoutUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UploadAddonAssetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r LogoutUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - 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 +type LoginUserResponse 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 == 401: - var dest RequiresAuthentication - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest +// Status returns HTTPResponse.Status +func (r LoginUserResponse) 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 LoginUserResponse) 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 GetCurrentUserMembershipsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *GetCurrentUserMemberships200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON500 *InternalError +} +// Status returns HTTPResponse.Status +func (r GetCurrentUserMembershipsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - return response, nil +// StatusCode returns HTTPResponse.StatusCode +func (r GetCurrentUserMembershipsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// ParseCQHealthCheckResponse parses an HTTP response from a CQHealthCheckWithResponse call -func ParseCQHealthCheckResponse(rsp *http.Response) (*CQHealthCheckResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +type RegisterUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *RegisterUser201Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r RegisterUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &CQHealthCheckResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r RegisterUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - 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 ResetUserPasswordResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} +// Status returns HTTPResponse.Status +func (r ResetUserPasswordResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r ResetUserPasswordResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &GetOpenAPIJSONResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +type DeterminePlatformTenantByEmailResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DeterminePlatformTenantByEmail200Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - 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 +// Status returns HTTPResponse.Status +func (r DeterminePlatformTenantByEmailResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r DeterminePlatformTenantByEmailResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type CreateUserTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CreateUserToken201Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON500 *InternalError } -// ParseActivatePlatformResponse parses an HTTP response from a ActivatePlatformWithResponse call -func ParseActivatePlatformResponse(rsp *http.Response) (*ActivatePlatformResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r CreateUserTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &ActivatePlatformResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r CreateUserTokenResponse) 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 ActivatePlatform200Response - 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 ActivatePlatform205Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON205 = &dest +type UserTOTPDeleteResponse 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 == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest +// Status returns HTTPResponse.Status +func (r UserTOTPDeleteResponse) 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 == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest +// StatusCode returns HTTPResponse.StatusCode +func (r UserTOTPDeleteResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - 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 +type UserTOTPSetupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserTOTPSetup200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + 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 UserTOTPSetupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r UserTOTPSetupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - return response, nil +type UserTOTPVerifyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *UserTOTPVerify201Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON405 *MethodNotAllowed + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests + JSON500 *InternalError } -// ParseRenewPlatformActivationResponse parses an HTTP response from a RenewPlatformActivationWithResponse call -func ParseRenewPlatformActivationResponse(rsp *http.Response) (*RenewPlatformActivationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UserTOTPVerifyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &RenewPlatformActivationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r UserTOTPVerifyResponse) 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 RenewPlatformActivation200Response - 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 ActivatePlatform205Response - 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 +type VerifyUserEmailResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON404 *NotFound + JSON429 *TooManyRequests + JSON500 *InternalError +} - 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 +// Status returns HTTPResponse.Status +func (r VerifyUserEmailResponse) 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest +// StatusCode returns HTTPResponse.StatusCode +func (r VerifyUserEmailResponse) 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 DeleteUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON500 *InternalError +} +// Status returns HTTPResponse.Status +func (r DeleteUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - return response, nil +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// ParseReportPlatformDataResponse parses an HTTP response from a ReportPlatformDataWithResponse call -func ParseReportPlatformDataResponse(rsp *http.Response) (*ReportPlatformDataResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// 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) +} - response := &ReportPlatformDataResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ListAddonsWithResponse request returning *ListAddonsResponse +func (c *ClientWithResponses) ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error) { + rsp, err := c.ListAddons(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListAddonsResponse(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 == 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 - +// CreateAddonWithBodyWithResponse request with arbitrary body returning *CreateAddonResponse +func (c *ClientWithResponses) CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) { + rsp, err := c.CreateAddonWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseCreateAddonResponse(rsp) } -// ParseListPluginNotificationRequestsResponse parses an HTTP response from a ListPluginNotificationRequestsWithResponse call -func ParseListPluginNotificationRequestsResponse(rsp *http.Response) (*ListPluginNotificationRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) { + rsp, err := c.CreateAddon(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateAddonResponse(rsp) +} - response := &ListPluginNotificationRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteAddonByTeamAndNameWithResponse request returning *DeleteAddonByTeamAndNameResponse +func (c *ClientWithResponses) DeleteAddonByTeamAndNameWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*DeleteAddonByTeamAndNameResponse, error) { + rsp, err := c.DeleteAddonByTeamAndName(ctx, teamName, addonType, addonName, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteAddonByTeamAndNameResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginNotificationRequests200Response - 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +// GetAddonWithResponse request returning *GetAddonResponse +func (c *ClientWithResponses) GetAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*GetAddonResponse, error) { + rsp, err := c.GetAddon(ctx, teamName, addonType, addonName, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetAddonResponse(rsp) } -// ParseCreatePluginNotificationRequestResponse parses an HTTP response from a CreatePluginNotificationRequestWithResponse call -func ParseCreatePluginNotificationRequestResponse(rsp *http.Response) (*CreatePluginNotificationRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// UpdateAddonWithBodyWithResponse request with arbitrary body returning *UpdateAddonResponse +func (c *ClientWithResponses) UpdateAddonWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) { + rsp, err := c.UpdateAddonWithBody(ctx, teamName, addonType, addonName, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseUpdateAddonResponse(rsp) +} - response := &CreatePluginNotificationRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) UpdateAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, body UpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) { + rsp, err := c.UpdateAddon(ctx, teamName, addonType, addonName, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateAddonResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest PluginNotificationRequest - 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 == 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 - +// ListAddonVersionsWithResponse request returning *ListAddonVersionsResponse +func (c *ClientWithResponses) ListAddonVersionsWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, params *ListAddonVersionsParams, reqEditors ...RequestEditorFn) (*ListAddonVersionsResponse, error) { + rsp, err := c.ListAddonVersions(ctx, teamName, addonType, addonName, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListAddonVersionsResponse(rsp) } -// ParseDeletePluginNotificationRequestResponse parses an HTTP response from a DeletePluginNotificationRequestWithResponse call -func ParseDeletePluginNotificationRequestResponse(rsp *http.Response) (*DeletePluginNotificationRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetAddonVersionWithResponse request returning *GetAddonVersionResponse +func (c *ClientWithResponses) GetAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetAddonVersionResponse, error) { + rsp, err := c.GetAddonVersion(ctx, teamName, addonType, addonName, versionName, reqEditors...) if err != nil { return nil, err } + return ParseGetAddonVersionResponse(rsp) +} - response := &DeletePluginNotificationRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateAddonVersionWithBodyWithResponse request with arbitrary body returning *UpdateAddonVersionResponse +func (c *ClientWithResponses) UpdateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) { + rsp, err := c.UpdateAddonVersionWithBody(ctx, teamName, addonType, addonName, versionName, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateAddonVersionResponse(rsp) +} - switch { - 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +func (c *ClientWithResponses) UpdateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body UpdateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) { + rsp, err := c.UpdateAddonVersion(ctx, teamName, addonType, addonName, versionName, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateAddonVersionResponse(rsp) } -// ParseGetPluginNotificationRequestResponse parses an HTTP response from a GetPluginNotificationRequestWithResponse call -func ParseGetPluginNotificationRequestResponse(rsp *http.Response) (*GetPluginNotificationRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateAddonVersionWithBodyWithResponse request with arbitrary body returning *CreateAddonVersionResponse +func (c *ClientWithResponses) CreateAddonVersionWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) { + rsp, err := c.CreateAddonVersionWithBody(ctx, teamName, addonType, addonName, versionName, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateAddonVersionResponse(rsp) +} - response := &GetPluginNotificationRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body CreateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) { + rsp, err := c.CreateAddonVersion(ctx, teamName, addonType, addonName, versionName, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateAddonVersionResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginNotificationRequests200Response - 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 == 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 - +// DownloadAddonAssetWithResponse request returning *DownloadAddonAssetResponse +func (c *ClientWithResponses) DownloadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetResponse, error) { + rsp, err := c.DownloadAddonAsset(ctx, teamName, addonType, addonName, versionName, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDownloadAddonAssetResponse(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() }() +// UploadAddonAssetWithResponse request returning *UploadAddonAssetResponse +func (c *ClientWithResponses) UploadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*UploadAddonAssetResponse, error) { + rsp, err := c.UploadAddonAsset(ctx, teamName, addonType, addonName, versionName, reqEditors...) if err != nil { return nil, err } + return ParseUploadAddonAssetResponse(rsp) +} - response := &ListPluginsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// CQHealthCheckWithResponse request returning *CQHealthCheckResponse +func (c *ClientWithResponses) CQHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CQHealthCheckResponse, error) { + rsp, err := c.CQHealthCheck(ctx, reqEditors...) + if err != nil { + return nil, err } + return ParseCQHealthCheckResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPlugins200Response - 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &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 response, nil + return ParseGetOpenAPIJSONResponse(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() }() +// ActivatePlatformWithBodyWithResponse request with arbitrary body returning *ActivatePlatformResponse +func (c *ClientWithResponses) ActivatePlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) { + rsp, err := c.ActivatePlatformWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseActivatePlatformResponse(rsp) +} - response := &CreatePluginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) ActivatePlatformWithResponse(ctx context.Context, body ActivatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivatePlatformResponse, error) { + rsp, err := c.ActivatePlatform(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseActivatePlatformResponse(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 - - 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 - - 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 - +// RenewPlatformActivationWithBodyWithResponse request with arbitrary body returning *RenewPlatformActivationResponse +func (c *ClientWithResponses) RenewPlatformActivationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) { + rsp, err := c.RenewPlatformActivationWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseRenewPlatformActivationResponse(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() }() +func (c *ClientWithResponses) RenewPlatformActivationWithResponse(ctx context.Context, body RenewPlatformActivationJSONRequestBody, reqEditors ...RequestEditorFn) (*RenewPlatformActivationResponse, error) { + rsp, err := c.RenewPlatformActivation(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseRenewPlatformActivationResponse(rsp) +} - response := &DeletePluginByTeamAndPluginNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ReportPlatformDataWithBodyWithResponse request with arbitrary body returning *ReportPlatformDataResponse +func (c *ClientWithResponses) ReportPlatformDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) { + rsp, err := c.ReportPlatformDataWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseReportPlatformDataResponse(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 +func (c *ClientWithResponses) ReportPlatformDataWithResponse(ctx context.Context, body ReportPlatformDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportPlatformDataResponse, error) { + rsp, err := c.ReportPlatformData(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReportPlatformDataResponse(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 +// ListPluginNotificationRequestsWithResponse request returning *ListPluginNotificationRequestsResponse +func (c *ClientWithResponses) ListPluginNotificationRequestsWithResponse(ctx context.Context, params *ListPluginNotificationRequestsParams, reqEditors ...RequestEditorFn) (*ListPluginNotificationRequestsResponse, error) { + rsp, err := c.ListPluginNotificationRequests(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPluginNotificationRequestsResponse(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 +// CreatePluginNotificationRequestWithBodyWithResponse request with arbitrary body returning *CreatePluginNotificationRequestResponse +func (c *ClientWithResponses) CreatePluginNotificationRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) { + rsp, err := c.CreatePluginNotificationRequestWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePluginNotificationRequestResponse(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) CreatePluginNotificationRequestWithResponse(ctx context.Context, body CreatePluginNotificationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) { + rsp, err := c.CreatePluginNotificationRequest(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePluginNotificationRequestResponse(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 +// DeletePluginNotificationRequestWithResponse request returning *DeletePluginNotificationRequestResponse +func (c *ClientWithResponses) DeletePluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginNotificationRequestResponse, error) { + rsp, err := c.DeletePluginNotificationRequest(ctx, pluginTeam, pluginKind, pluginName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeletePluginNotificationRequestResponse(rsp) +} +// GetPluginNotificationRequestWithResponse request returning *GetPluginNotificationRequestResponse +func (c *ClientWithResponses) GetPluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginNotificationRequestResponse, error) { + rsp, err := c.GetPluginNotificationRequest(ctx, pluginTeam, pluginKind, pluginName, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGetPluginNotificationRequestResponse(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() }() +// 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) +} - response := &GetPluginResponse{ - Body: bodyBytes, - HTTPResponse: 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) +} - 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 - - 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +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 response, nil + return ParseCreatePluginResponse(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() }() +// 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) +} - response := &UpdatePluginResponse{ - Body: bodyBytes, - HTTPResponse: 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) +} - 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 - - 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 - +// 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 response, nil + return ParseUpdatePluginResponse(rsp) } -// ParseDeletePluginUpcomingPriceChangesResponse parses an HTTP response from a DeletePluginUpcomingPriceChangesWithResponse call -func ParseDeletePluginUpcomingPriceChangesResponse(rsp *http.Response) (*DeletePluginUpcomingPriceChangesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +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) +} - response := &DeletePluginUpcomingPriceChangesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeletePluginUpcomingPriceChangesWithResponse request returning *DeletePluginUpcomingPriceChangesResponse +func (c *ClientWithResponses) DeletePluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginUpcomingPriceChangesResponse, error) { + rsp, err := c.DeletePluginUpcomingPriceChanges(ctx, teamName, pluginKind, pluginName, reqEditors...) + if err != nil { + return nil, err } + return ParseDeletePluginUpcomingPriceChangesResponse(rsp) +} - switch { - 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 - +// ListPluginUpcomingPriceChangesWithResponse request returning *ListPluginUpcomingPriceChangesResponse +func (c *ClientWithResponses) ListPluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*ListPluginUpcomingPriceChangesResponse, error) { + rsp, err := c.ListPluginUpcomingPriceChanges(ctx, teamName, pluginKind, pluginName, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseListPluginUpcomingPriceChangesResponse(rsp) } -// ParseListPluginUpcomingPriceChangesResponse parses an HTTP response from a ListPluginUpcomingPriceChangesWithResponse call -func ParseListPluginUpcomingPriceChangesResponse(rsp *http.Response) (*ListPluginUpcomingPriceChangesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreatePluginUpcomingPriceChangeWithBodyWithResponse request with arbitrary body returning *CreatePluginUpcomingPriceChangeResponse +func (c *ClientWithResponses) CreatePluginUpcomingPriceChangeWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) { + rsp, err := c.CreatePluginUpcomingPriceChangeWithBody(ctx, teamName, pluginKind, pluginName, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreatePluginUpcomingPriceChangeResponse(rsp) +} - response := &ListPluginUpcomingPriceChangesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +func (c *ClientWithResponses) CreatePluginUpcomingPriceChangeWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body CreatePluginUpcomingPriceChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) { + rsp, err := c.CreatePluginUpcomingPriceChange(ctx, teamName, pluginKind, pluginName, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreatePluginUpcomingPriceChangeResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginUpcomingPriceChanges200Response - 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 +// 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) +} - 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 +// 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 response, nil + return ParseUpdatePluginVersionResponse(rsp) } -// ParseCreatePluginUpcomingPriceChangeResponse parses an HTTP response from a CreatePluginUpcomingPriceChangeWithResponse call -func ParseCreatePluginUpcomingPriceChangeResponse(rsp *http.Response) (*CreatePluginUpcomingPriceChangeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +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) +} - response := &CreatePluginUpcomingPriceChangeResponse{ - Body: bodyBytes, - HTTPResponse: 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) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest PluginPrice - 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 == 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 - +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 response, nil + return ParseCreatePluginVersionResponse(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() }() +// 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) +} - response := &ListPluginVersionsResponse{ - Body: bodyBytes, - HTTPResponse: 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 } + return ParseUploadPluginAssetResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginVersions200Response - 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 +// 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) +} - 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) 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 + } + return ParseDeletePluginVersionDocsResponse(rsp) +} +// 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 } + return ParseListPluginVersionDocsResponse(rsp) +} - return response, nil +// 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 + } + return ParseReplacePluginVersionDocsResponse(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() }() +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 } + return ParseReplacePluginVersionDocsResponse(rsp) +} - response := &GetPluginVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseCreatePluginVersionDocsResponse(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) 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) +} - 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 +// 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 + } + return ParseDeletePluginVersionTablesResponse(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) 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 + } + return ParseDeletePluginVersionTablesResponse(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 +// 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// 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 + } + return ParseCreatePluginVersionTablesResponse(rsp) +} +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 } - - return response, nil + return ParseCreatePluginVersionTablesResponse(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() }() +// 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) +} - response := &UpdatePluginVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseRemovePluginUIAssetsResponse(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 - - 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - +// 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 } - - return response, nil + return ParseUploadPluginUIAssetsResponse(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() }() +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) +} - response := &CreatePluginVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseFinalizePluginUIAssetUploadResponse(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 - - 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 - - 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 +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 + } + return ParseFinalizePluginUIAssetUploadResponse(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 +// 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 + } + return ParseAuthRegistryRequestResponse(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 +// 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) +} - 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 +// 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 + } + return ParseCreateTeamResponse(rsp) +} +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 } + return ParseCreateTeamResponse(rsp) +} - return response, nil +// 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 + } + return ParseDeleteTeamResponse(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() }() +// 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 } + return ParseGetTeamByNameResponse(rsp) +} - response := &DownloadPluginAssetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseUpdateTeamResponse(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 +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 + } + return ParseUpdateTeamResponse(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 +// ListAddonOrdersByTeamWithResponse request returning *ListAddonOrdersByTeamResponse +func (c *ClientWithResponses) ListAddonOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonOrdersByTeamResponse, error) { + rsp, err := c.ListAddonOrdersByTeam(ctx, teamName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListAddonOrdersByTeamResponse(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 +// CreateAddonOrderForTeamWithBodyWithResponse request with arbitrary body returning *CreateAddonOrderForTeamResponse +func (c *ClientWithResponses) CreateAddonOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) { + rsp, err := c.CreateAddonOrderForTeamWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAddonOrderForTeamResponse(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 +func (c *ClientWithResponses) CreateAddonOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) { + rsp, err := c.CreateAddonOrderForTeam(ctx, teamName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAddonOrderForTeamResponse(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 +// GetAddonOrderByTeamWithResponse request returning *GetAddonOrderByTeamResponse +func (c *ClientWithResponses) GetAddonOrderByTeamWithResponse(ctx context.Context, teamName TeamName, addonOrderID AddonOrderID, reqEditors ...RequestEditorFn) (*GetAddonOrderByTeamResponse, error) { + rsp, err := c.GetAddonOrderByTeam(ctx, teamName, addonOrderID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAddonOrderByTeamResponse(rsp) +} +// DeleteAddonsByTeamWithResponse request returning *DeleteAddonsByTeamResponse +func (c *ClientWithResponses) DeleteAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteAddonsByTeamResponse, error) { + rsp, err := c.DeleteAddonsByTeam(ctx, teamName, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseDeleteAddonsByTeamResponse(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() }() +// ListAddonsByTeamWithResponse request returning *ListAddonsByTeamResponse +func (c *ClientWithResponses) ListAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonsByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonsByTeamResponse, error) { + rsp, err := c.ListAddonsByTeam(ctx, teamName, params, reqEditors...) if err != nil { return nil, err } + return ParseListAddonsByTeamResponse(rsp) +} - response := &UploadPluginAssetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DownloadAddonAssetByTeamWithResponse request returning *DownloadAddonAssetByTeamResponse +func (c *ClientWithResponses) DownloadAddonAssetByTeamWithResponse(ctx context.Context, teamName TeamName, addonTeam AddonTeam, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetByTeamResponse, error) { + rsp, err := c.DownloadAddonAssetByTeam(ctx, teamName, addonTeam, addonType, addonName, versionName, params, reqEditors...) + if err != nil { + return nil, err } + return ParseDownloadAddonAssetByTeamResponse(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 - +// AIOnboardingChatWithBodyWithResponse request with arbitrary body returning *AIOnboardingChatResponse +func (c *ClientWithResponses) AIOnboardingChatWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) { + rsp, err := c.AIOnboardingChatWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseAIOnboardingChatResponse(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() }() +func (c *ClientWithResponses) AIOnboardingChatWithResponse(ctx context.Context, teamName string, body AIOnboardingChatJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingChatResponse, error) { + rsp, err := c.AIOnboardingChat(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } + return ParseAIOnboardingChatResponse(rsp) +} - response := &DeletePluginVersionDocsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// AIOnboardingEndConversationWithResponse request returning *AIOnboardingEndConversationResponse +func (c *ClientWithResponses) AIOnboardingEndConversationWithResponse(ctx context.Context, teamName string, reqEditors ...RequestEditorFn) (*AIOnboardingEndConversationResponse, error) { + rsp, err := c.AIOnboardingEndConversation(ctx, teamName, reqEditors...) + if err != nil { + return nil, err } + return ParseAIOnboardingEndConversationResponse(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 - - 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 - +// AIOnboardingNewConversationWithBodyWithResponse request with arbitrary body returning *AIOnboardingNewConversationResponse +func (c *ClientWithResponses) AIOnboardingNewConversationWithBodyWithResponse(ctx context.Context, teamName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, error) { + rsp, err := c.AIOnboardingNewConversationWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseAIOnboardingNewConversationResponse(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) AIOnboardingNewConversationWithResponse(ctx context.Context, teamName string, body AIOnboardingNewConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*AIOnboardingNewConversationResponse, error) { + rsp, err := c.AIOnboardingNewConversation(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } + return ParseAIOnboardingNewConversationResponse(rsp) +} - response := &ListPluginVersionDocsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseListTeamAPIKeysResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginVersionDocs200Response - 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 == 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 - +// 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 response, nil + return ParseCreateTeamAPIKeyResponse(rsp) } -// ParseReplacePluginVersionDocsResponse parses an HTTP response from a ReplacePluginVersionDocsWithResponse call -func ParseReplacePluginVersionDocsResponse(rsp *http.Response) (*ReplacePluginVersionDocsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +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 } + return ParseCreateTeamAPIKeyResponse(rsp) +} - response := &ReplacePluginVersionDocsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseDeleteTeamAPIKeyResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CreatePluginVersionDocs201Response - 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 == 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 - +// 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 } + return ParseCreateTeamImagesResponse(rsp) +} - return response, nil +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 + } + return ParseCreateTeamImagesResponse(rsp) } -// ParseCreatePluginVersionDocsResponse parses an HTTP response from a CreatePluginVersionDocsWithResponse call -func ParseCreatePluginVersionDocsResponse(rsp *http.Response) (*CreatePluginVersionDocsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// 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 } + return ParseDeleteTeamInvitationResponse(rsp) +} - response := &CreatePluginVersionDocsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +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 } + return ParseDeleteTeamInvitationResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CreatePluginVersionDocs201Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest +// 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 + } + return ParseListTeamInvitationsResponse(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 +// EmailTeamInvitationWithBodyWithResponse request with arbitrary body returning *EmailTeamInvitationResponse +func (c *ClientWithResponses) EmailTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) { + rsp, err := c.EmailTeamInvitationWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEmailTeamInvitationResponse(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) EmailTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) { + rsp, err := c.EmailTeamInvitation(ctx, teamName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEmailTeamInvitationResponse(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 +// 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) +} - 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) 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 + } + return ParseAcceptTeamInvitationResponse(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 +// CancelTeamInvitationWithResponse request returning *CancelTeamInvitationResponse +func (c *ClientWithResponses) CancelTeamInvitationWithResponse(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*CancelTeamInvitationResponse, error) { + rsp, err := c.CancelTeamInvitation(ctx, teamName, email, reqEditors...) + if err != nil { + return nil, err + } + return ParseCancelTeamInvitationResponse(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 +// ListInvoicesByTeamWithResponse request returning *ListInvoicesByTeamResponse +func (c *ClientWithResponses) ListInvoicesByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*ListInvoicesByTeamResponse, error) { + rsp, err := c.ListInvoicesByTeam(ctx, teamName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListInvoicesByTeamResponse(rsp) +} +// GetManagedDatabasesWithResponse request returning *GetManagedDatabasesResponse +func (c *ClientWithResponses) GetManagedDatabasesWithResponse(ctx context.Context, teamName TeamName, params *GetManagedDatabasesParams, reqEditors ...RequestEditorFn) (*GetManagedDatabasesResponse, error) { + rsp, err := c.GetManagedDatabases(ctx, teamName, params, reqEditors...) + if err != nil { + return nil, err } + return ParseGetManagedDatabasesResponse(rsp) +} - return response, nil +// CreateManagedDatabaseWithBodyWithResponse request with arbitrary body returning *CreateManagedDatabaseResponse +func (c *ClientWithResponses) CreateManagedDatabaseWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) { + rsp, err := c.CreateManagedDatabaseWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateManagedDatabaseResponse(rsp) } -// ParseDeletePluginVersionTablesResponse parses an HTTP response from a DeletePluginVersionTablesWithResponse call -func ParseDeletePluginVersionTablesResponse(rsp *http.Response) (*DeletePluginVersionTablesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +func (c *ClientWithResponses) CreateManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) { + rsp, err := c.CreateManagedDatabase(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateManagedDatabaseResponse(rsp) +} - response := &DeletePluginVersionTablesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteManagedDatabaseWithResponse request returning *DeleteManagedDatabaseResponse +func (c *ClientWithResponses) DeleteManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*DeleteManagedDatabaseResponse, error) { + rsp, err := c.DeleteManagedDatabase(ctx, teamName, managedDatabaseID, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteManagedDatabaseResponse(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 +// GetManagedDatabaseWithResponse request returning *GetManagedDatabaseResponse +func (c *ClientWithResponses) GetManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*GetManagedDatabaseResponse, error) { + rsp, err := c.GetManagedDatabase(ctx, teamName, managedDatabaseID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetManagedDatabaseResponse(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 +// 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 + } + return ParseRemoveTeamMembershipResponse(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) 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 + } + return ParseRemoveTeamMembershipResponse(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 +// 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 + } + return ParseGetTeamMembershipsResponse(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 +// 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 + } + return ParseDeleteTeamMembershipResponse(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 +// 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 + } + return ParseDeletePluginsByTeamResponse(rsp) +} + +// 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) +} +// 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 response, nil + return ParseDownloadPluginAssetByTeamResponse(rsp) } -// 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() }() +// GetSettingsWithResponse request returning *GetSettingsResponse +func (c *ClientWithResponses) GetSettingsWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) { + rsp, err := c.GetSettings(ctx, teamName, reqEditors...) if err != nil { return nil, err } + return ParseGetSettingsResponse(rsp) +} - response := &ListPluginVersionTablesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// UpdateSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSettingsResponse +func (c *ClientWithResponses) UpdateSettingsWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { + rsp, err := c.UpdateSettingsWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseUpdateSettingsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginVersionTables200Response - 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 == 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 - +func (c *ClientWithResponses) UpdateSettingsWithResponse(ctx context.Context, teamName TeamName, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { + rsp, err := c.UpdateSettings(ctx, teamName, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseUpdateSettingsResponse(rsp) } -// ParseCreatePluginVersionTablesResponse parses an HTTP response from a CreatePluginVersionTablesWithResponse call -func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVersionTablesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GetTeamSpendWithResponse request returning *GetTeamSpendResponse +func (c *ClientWithResponses) GetTeamSpendWithResponse(ctx context.Context, teamName TeamName, params *GetTeamSpendParams, reqEditors ...RequestEditorFn) (*GetTeamSpendResponse, error) { + rsp, err := c.GetTeamSpend(ctx, teamName, params, reqEditors...) if err != nil { return nil, err } + return ParseGetTeamSpendResponse(rsp) +} - response := &CreatePluginVersionTablesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// DeleteSpendingLimitWithResponse request returning *DeleteSpendingLimitResponse +func (c *ClientWithResponses) DeleteSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteSpendingLimitResponse, error) { + rsp, err := c.DeleteSpendingLimit(ctx, teamName, reqEditors...) + if err != nil { + return nil, err } + return ParseDeleteSpendingLimitResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CreatePluginVersionTables201Response - 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 +// GetSpendingLimitWithResponse request returning *GetSpendingLimitResponse +func (c *ClientWithResponses) GetSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSpendingLimitResponse, error) { + rsp, err := c.GetSpendingLimit(ctx, teamName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSpendingLimitResponse(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 +// CreateSpendingLimitWithBodyWithResponse request with arbitrary body returning *CreateSpendingLimitResponse +func (c *ClientWithResponses) CreateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) { + rsp, err := c.CreateSpendingLimitWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSpendingLimitResponse(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) CreateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) { + rsp, err := c.CreateSpendingLimit(ctx, teamName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSpendingLimitResponse(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 +// UpdateSpendingLimitWithBodyWithResponse request with arbitrary body returning *UpdateSpendingLimitResponse +func (c *ClientWithResponses) UpdateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) { + rsp, err := c.UpdateSpendingLimitWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSpendingLimitResponse(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) UpdateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body UpdateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) { + rsp, err := c.UpdateSpendingLimit(ctx, teamName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSpendingLimitResponse(rsp) +} +// ListSubscriptionOrdersByTeamWithResponse request returning *ListSubscriptionOrdersByTeamResponse +func (c *ClientWithResponses) ListSubscriptionOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListSubscriptionOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListSubscriptionOrdersByTeamResponse, error) { + rsp, err := c.ListSubscriptionOrdersByTeam(ctx, teamName, params, reqEditors...) + if err != nil { + return nil, err } + return ParseListSubscriptionOrdersByTeamResponse(rsp) +} - return response, nil +// CreateSubscriptionOrderForTeamWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionOrderForTeamResponse +func (c *ClientWithResponses) CreateSubscriptionOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) { + rsp, err := c.CreateSubscriptionOrderForTeamWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSubscriptionOrderForTeamResponse(rsp) } -// 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() }() +func (c *ClientWithResponses) CreateSubscriptionOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) { + rsp, err := c.CreateSubscriptionOrderForTeam(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateSubscriptionOrderForTeamResponse(rsp) +} - response := &GetPluginVersionTableResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GetSubscriptionOrderByTeamWithResponse request returning *GetSubscriptionOrderByTeamResponse +func (c *ClientWithResponses) GetSubscriptionOrderByTeamWithResponse(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, reqEditors ...RequestEditorFn) (*GetSubscriptionOrderByTeamResponse, error) { + rsp, err := c.GetSubscriptionOrderByTeam(ctx, teamName, teamSubscriptionOrderID, reqEditors...) + if err != nil { + return nil, err } + return ParseGetSubscriptionOrderByTeamResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginTableDetails - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// ListTeamPluginUsageWithResponse request returning *ListTeamPluginUsageResponse +func (c *ClientWithResponses) ListTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*ListTeamPluginUsageResponse, error) { + rsp, err := c.ListTeamPluginUsage(ctx, teamName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListTeamPluginUsageResponse(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 +// IncreaseTeamPluginUsageWithBodyWithResponse request with arbitrary body returning *IncreaseTeamPluginUsageResponse +func (c *ClientWithResponses) IncreaseTeamPluginUsageWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, error) { + rsp, err := c.IncreaseTeamPluginUsageWithBody(ctx, teamName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseIncreaseTeamPluginUsageResponse(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) IncreaseTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*IncreaseTeamPluginUsageResponse, error) { + rsp, err := c.IncreaseTeamPluginUsage(ctx, teamName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseIncreaseTeamPluginUsageResponse(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 +// 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 + } + return ParseGetTeamUsageSummaryResponse(rsp) +} +// 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 response, nil + return ParseGetGroupedTeamUsageSummaryResponse(rsp) } -// 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() }() +// GetTeamPluginUsageWithResponse request returning *GetTeamPluginUsageResponse +func (c *ClientWithResponses) GetTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetTeamPluginUsageResponse, error) { + rsp, err := c.GetTeamPluginUsage(ctx, teamName, pluginTeam, pluginKind, pluginName, reqEditors...) if err != nil { return nil, err } + return ParseGetTeamPluginUsageResponse(rsp) +} - response := &RemovePluginUIAssetsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseListUsersByTeamResponse(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 - - 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 - +// 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 } - - return response, nil + return ParseUploadImageResponse(rsp) } -// ParseUploadPluginUIAssetsResponse parses an HTTP response from a UploadPluginUIAssetsWithResponse call -func ParseUploadPluginUIAssetsResponse(rsp *http.Response) (*UploadPluginUIAssetsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +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) +} - response := &UploadPluginUIAssetsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest UploadPluginUIAssets201Response - 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 == 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 - +// 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 response, nil + return ParseUpdateCurrentUserResponse(rsp) } -// ParseFinalizePluginUIAssetUploadResponse parses an HTTP response from a FinalizePluginUIAssetUploadWithResponse call -func ParseFinalizePluginUIAssetUploadResponse(rsp *http.Response) (*FinalizePluginUIAssetUploadResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +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) +} - response := &FinalizePluginUIAssetUploadResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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) +} - 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 - - 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 - +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 response, nil + return ParseSendAnonymousEventResponse(rsp) } -// ParseAuthRegistryRequestResponse parses an HTTP response from a AuthRegistryRequestWithResponse call -func ParseAuthRegistryRequestResponse(rsp *http.Response) (*AuthRegistryRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CheckUserAuthStatusWithResponse request returning *CheckUserAuthStatusResponse +func (c *ClientWithResponses) CheckUserAuthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CheckUserAuthStatusResponse, error) { + rsp, err := c.CheckUserAuthStatus(ctx, reqEditors...) if err != nil { return nil, err } + return ParseCheckUserAuthStatusResponse(rsp) +} - response := &AuthRegistryRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RegistryAuthToken - 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 - 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 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +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) +} +// 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 response, nil + return ParseSendUserEventResponse(rsp) } -// 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() }() +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) +} - response := &ListTeamsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// 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 } + return ParseListCurrentUserInvitationsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListTeams200Response - 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 - +// 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 response, nil + return ParseLogoutUserResponse(rsp) } -// 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() }() +// 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) +} - response := &CreateTeamResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +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) +} - 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 { - return nil, err - } - response.JSON400 = &dest +// 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 + } + return ParseGetCurrentUserMembershipsResponse(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 +// RegisterUserWithBodyWithResponse request with arbitrary body returning *RegisterUserResponse +func (c *ClientWithResponses) RegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) { + rsp, err := c.RegisterUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRegisterUserResponse(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) RegisterUserWithResponse(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error) { + rsp, err := c.RegisterUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRegisterUserResponse(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 +// ResetUserPasswordWithBodyWithResponse request with arbitrary body returning *ResetUserPasswordResponse +func (c *ClientWithResponses) ResetUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) { + rsp, err := c.ResetUserPasswordWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseResetUserPasswordResponse(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) ResetUserPasswordWithResponse(ctx context.Context, body ResetUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetUserPasswordResponse, error) { + rsp, err := c.ResetUserPassword(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseResetUserPasswordResponse(rsp) +} +// DeterminePlatformTenantByEmailWithResponse request returning *DeterminePlatformTenantByEmailResponse +func (c *ClientWithResponses) DeterminePlatformTenantByEmailWithResponse(ctx context.Context, params *DeterminePlatformTenantByEmailParams, reqEditors ...RequestEditorFn) (*DeterminePlatformTenantByEmailResponse, error) { + rsp, err := c.DeterminePlatformTenantByEmail(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseDeterminePlatformTenantByEmailResponse(rsp) +} - return response, nil +// 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 + } + return ParseCreateUserTokenResponse(rsp) } -// ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call -func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// 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) +} - response := &DeleteTeamResponse{ - Body: bodyBytes, - HTTPResponse: 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) +} - 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 +// 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) +} - 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) 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) +} - 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 +// VerifyUserEmailWithBodyWithResponse request with arbitrary body returning *VerifyUserEmailResponse +func (c *ClientWithResponses) VerifyUserEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) { + rsp, err := c.VerifyUserEmailWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseVerifyUserEmailResponse(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) VerifyUserEmailWithResponse(ctx context.Context, body VerifyUserEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserEmailResponse, error) { + rsp, err := c.VerifyUserEmail(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseVerifyUserEmailResponse(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 +// 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 == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest +// 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 := &HealthCheckResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } return response, nil } -// ParseGetTeamByNameResponse parses an HTTP response from a GetTeamByNameWithResponse call -func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, error) { +// ParseListAddonsResponse parses an HTTP response from a ListAddonsWithResponse call +func ParseListAddonsResponse(rsp *http.Response) (*ListAddonsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamByNameResponse{ + response := &ListAddonsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Team + var dest ListAddons200Response 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 { @@ -22220,20 +14017,6 @@ func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, 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 { @@ -22246,26 +14029,26 @@ 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) { +// ParseCreateAddonResponse parses an HTTP response from a CreateAddonWithResponse call +func ParseCreateAddonResponse(rsp *http.Response) (*CreateAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateTeamResponse{ + response := &CreateAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Team + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Addon 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 @@ -22274,13 +14057,6 @@ 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 if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22288,12 +14064,12 @@ func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, 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 == 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 @@ -22307,26 +14083,26 @@ func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error) { return response, nil } -// ParseListAddonOrdersByTeamResponse parses an HTTP response from a ListAddonOrdersByTeamWithResponse call -func ParseListAddonOrdersByTeamResponse(rsp *http.Response) (*ListAddonOrdersByTeamResponse, error) { +// ParseDeleteAddonByTeamAndNameResponse parses an HTTP response from a DeleteAddonByTeamAndNameWithResponse call +func ParseDeleteAddonByTeamAndNameResponse(rsp *http.Response) (*DeleteAddonByTeamAndNameResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAddonOrdersByTeamResponse{ + response := &DeleteAddonByTeamAndNameResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddonOrdersByTeam200Response + 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 @@ -22361,33 +14137,26 @@ func ParseListAddonOrdersByTeamResponse(rsp *http.Response) (*ListAddonOrdersByT return response, nil } -// ParseCreateAddonOrderForTeamResponse parses an HTTP response from a CreateAddonOrderForTeamWithResponse call -func ParseCreateAddonOrderForTeamResponse(rsp *http.Response) (*CreateAddonOrderForTeamResponse, error) { +// ParseGetAddonResponse parses an HTTP response from a GetAddonWithResponse call +func ParseGetAddonResponse(rsp *http.Response) (*GetAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateAddonOrderForTeamResponse{ + response := &GetAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AddonOrder - 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 ListAddon 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 @@ -22415,33 +14184,33 @@ func ParseCreateAddonOrderForTeamResponse(rsp *http.Response) (*CreateAddonOrder return response, nil } -// ParseGetAddonOrderByTeamResponse parses an HTTP response from a GetAddonOrderByTeamWithResponse call -func ParseGetAddonOrderByTeamResponse(rsp *http.Response) (*GetAddonOrderByTeamResponse, error) { +// ParseUpdateAddonResponse parses an HTTP response from a UpdateAddonWithResponse call +func ParseUpdateAddonResponse(rsp *http.Response) (*UpdateAddonResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAddonOrderByTeamResponse{ + response := &UpdateAddonResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonOrder + var dest Addon 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 == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden @@ -22457,6 +14226,13 @@ func ParseGetAddonOrderByTeamResponse(rsp *http.Response) (*GetAddonOrderByTeamR } 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 { @@ -22469,26 +14245,26 @@ func ParseGetAddonOrderByTeamResponse(rsp *http.Response) (*GetAddonOrderByTeamR return response, nil } -// ParseDeleteAddonsByTeamResponse parses an HTTP response from a DeleteAddonsByTeamWithResponse call -func ParseDeleteAddonsByTeamResponse(rsp *http.Response) (*DeleteAddonsByTeamResponse, error) { +// ParseListAddonVersionsResponse parses an HTTP response from a ListAddonVersionsWithResponse call +func ParseListAddonVersionsResponse(rsp *http.Response) (*ListAddonVersionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteAddonsByTeamResponse{ + response := &ListAddonVersionsResponse{ 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 ListAddonVersions200Response 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 @@ -22523,22 +14299,22 @@ func ParseDeleteAddonsByTeamResponse(rsp *http.Response) (*DeleteAddonsByTeamRes return response, nil } -// ParseListAddonsByTeamResponse parses an HTTP response from a ListAddonsByTeamWithResponse call -func ParseListAddonsByTeamResponse(rsp *http.Response) (*ListAddonsByTeamResponse, error) { +// ParseGetAddonVersionResponse parses an HTTP response from a GetAddonVersionWithResponse call +func ParseGetAddonVersionResponse(rsp *http.Response) (*GetAddonVersionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAddonsByTeamResponse{ + response := &GetAddonVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddonsByTeam200Response + var dest AddonVersion if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22577,27 +14353,34 @@ func ParseListAddonsByTeamResponse(rsp *http.Response) (*ListAddonsByTeamRespons return response, nil } -// ParseDownloadAddonAssetByTeamResponse parses an HTTP response from a DownloadAddonAssetByTeamWithResponse call -func ParseDownloadAddonAssetByTeamResponse(rsp *http.Response) (*DownloadAddonAssetByTeamResponse, error) { +// ParseUpdateAddonVersionResponse parses an HTTP response from a UpdateAddonVersionWithResponse call +func ParseUpdateAddonVersionResponse(rsp *http.Response) (*UpdateAddonVersionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DownloadAddonAssetByTeamResponse{ + response := &UpdateAddonVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonAsset + var dest AddonVersion 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 { @@ -22619,13 +14402,6 @@ func ParseDownloadAddonAssetByTeamResponse(rsp *http.Response) (*DownloadAddonAs } 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 { @@ -22638,27 +14414,34 @@ func ParseDownloadAddonAssetByTeamResponse(rsp *http.Response) (*DownloadAddonAs return response, nil } -// ParseAIOnboardingChatResponse parses an HTTP response from a AIOnboardingChatWithResponse call -func ParseAIOnboardingChatResponse(rsp *http.Response) (*AIOnboardingChatResponse, error) { +// ParseCreateAddonVersionResponse parses an HTTP response from a CreateAddonVersionWithResponse call +func ParseCreateAddonVersionResponse(rsp *http.Response) (*CreateAddonVersionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AIOnboardingChatResponse{ + response := &CreateAddonVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AIOnboardingChat200Response + var dest AddonVersion 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 == 201: + var dest AddonVersion + 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 { @@ -22687,13 +14470,6 @@ func ParseAIOnboardingChatResponse(rsp *http.Response) (*AIOnboardingChatRespons } 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 { @@ -22706,34 +14482,27 @@ func ParseAIOnboardingChatResponse(rsp *http.Response) (*AIOnboardingChatRespons return response, nil } -// ParseAIOnboardingEndConversationResponse parses an HTTP response from a AIOnboardingEndConversationWithResponse call -func ParseAIOnboardingEndConversationResponse(rsp *http.Response) (*AIOnboardingEndConversationResponse, error) { +// ParseDownloadAddonAssetResponse parses an HTTP response from a DownloadAddonAssetWithResponse call +func ParseDownloadAddonAssetResponse(rsp *http.Response) (*DownloadAddonAssetResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AIOnboardingEndConversationResponse{ + response := &DownloadAddonAssetResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AIOnboardingEndConversation200Response + var dest AddonAsset 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 { @@ -22755,12 +14524,12 @@ func ParseAIOnboardingEndConversationResponse(rsp *http.Response) (*AIOnboarding } 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 == 429: + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON405 = &dest + response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -22774,33 +14543,26 @@ func ParseAIOnboardingEndConversationResponse(rsp *http.Response) (*AIOnboarding return response, nil } -// ParseAIOnboardingNewConversationResponse parses an HTTP response from a AIOnboardingNewConversationWithResponse call -func ParseAIOnboardingNewConversationResponse(rsp *http.Response) (*AIOnboardingNewConversationResponse, error) { +// ParseUploadAddonAssetResponse parses an HTTP response from a UploadAddonAssetWithResponse call +func ParseUploadAddonAssetResponse(rsp *http.Response) (*UploadAddonAssetResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AIOnboardingNewConversationResponse{ + response := &UploadAddonAssetResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AIOnboardingNewConversation200Response - 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 == 201: + var dest ReleaseURL 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 @@ -22816,59 +14578,104 @@ func ParseAIOnboardingNewConversationResponse(rsp *http.Response) (*AIOnboarding } 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.JSON500 = &dest + + } + + return response, nil +} + +// ParseCQHealthCheckResponse parses an HTTP response from a CQHealthCheckWithResponse call +func ParseCQHealthCheckResponse(rsp *http.Response) (*CQHealthCheckResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CQHealthCheckResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + 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 - 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 + return response, nil +} + +// 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 := &GetOpenAPIJSONResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON200 = &dest } return response, nil } -// ParseListTeamAPIKeysResponse parses an HTTP response from a ListTeamAPIKeysWithResponse call -func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, error) { +// ParseActivatePlatformResponse parses an HTTP response from a ActivatePlatformWithResponse call +func ParseActivatePlatformResponse(rsp *http.Response) (*ActivatePlatformResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListTeamAPIKeysResponse{ + response := &ActivatePlatformResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListTeamAPIKeys200Response + var dest ActivatePlatform200Response 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 == 205: + var dest ActivatePlatform205Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + 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 @@ -22877,6 +14684,13 @@ func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, } 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 { @@ -22889,54 +14703,54 @@ 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) { +// ParseRenewPlatformActivationResponse parses an HTTP response from a RenewPlatformActivationWithResponse call +func ParseRenewPlatformActivationResponse(rsp *http.Response) (*RenewPlatformActivationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTeamAPIKeyResponse{ + response := &RenewPlatformActivationResponse{ 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 RenewPlatformActivation200Response 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 == 205: + var dest ActivatePlatform205Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON205 = &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 == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &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 == 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 + 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 @@ -22950,15 +14764,15 @@ 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) { +// ParseReportPlatformDataResponse parses an HTTP response from a ReportPlatformDataWithResponse call +func ParseReportPlatformDataResponse(rsp *http.Response) (*ReportPlatformDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamAPIKeyResponse{ + response := &ReportPlatformDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -22971,26 +14785,19 @@ func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyRespons } 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 == 429: + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -23004,34 +14811,27 @@ 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) { +// ParseListPluginNotificationRequestsResponse parses an HTTP response from a ListPluginNotificationRequestsWithResponse call +func ParseListPluginNotificationRequestsResponse(rsp *http.Response) (*ListPluginNotificationRequestsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListConnectorsResponse{ + response := &ListPluginNotificationRequestsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListConnectors200Response + var dest ListPluginNotificationRequests200Response 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 { @@ -23039,13 +14839,6 @@ func ParseListConnectorsResponse(rsp *http.Response) (*ListConnectorsResponse, e } 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 { @@ -23058,22 +14851,22 @@ 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) { +// ParseCreatePluginNotificationRequestResponse parses an HTTP response from a CreatePluginNotificationRequestWithResponse call +func ParseCreatePluginNotificationRequestResponse(rsp *http.Response) (*CreatePluginNotificationRequestResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateConnectorResponse{ + response := &CreatePluginNotificationRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Connector + var dest PluginNotificationRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23093,6 +14886,20 @@ func ParseCreateConnectorResponse(rsp *http.Response) (*CreateConnectorResponse, } 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 { @@ -23112,27 +14919,20 @@ 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) { +// ParseDeletePluginNotificationRequestResponse parses an HTTP response from a DeletePluginNotificationRequestWithResponse call +func ParseDeletePluginNotificationRequestResponse(rsp *http.Response) (*DeletePluginNotificationRequestResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetConnectorResponse{ + response := &DeletePluginNotificationRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Connector - 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 { @@ -23159,34 +14959,27 @@ 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) { +// ParseGetPluginNotificationRequestResponse parses an HTTP response from a GetPluginNotificationRequestWithResponse call +func ParseGetPluginNotificationRequestResponse(rsp *http.Response) (*GetPluginNotificationRequestResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateConnectorResponse{ + response := &GetPluginNotificationRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Connector + var dest ListPluginNotificationRequests200Response 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 { @@ -23213,40 +15006,33 @@ 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) { +// 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 := &RevokeConnectorResponse{ + response := &ListPluginsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - 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 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ListPlugins200Response 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 @@ -23260,26 +15046,26 @@ 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) { +// 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() }() if err != nil { return nil, err } - response := &GetConnectorAuthStatusAWSResponse{ + response := &CreatePluginResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetConnectorAuthStatusAWS200Response + 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.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -23288,19 +15074,12 @@ func ParseGetConnectorAuthStatusAWSResponse(rsp *http.Response) (*GetConnectorAu } 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 + 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 @@ -23321,15 +15100,15 @@ 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) { +// 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() }() if err != nil { return nil, err } - response := &AuthenticateConnectorFinishAWSResponse{ + response := &DeletePluginByTeamAndPluginNameResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23363,13 +15142,6 @@ func ParseAuthenticateConnectorFinishAWSResponse(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 { @@ -23382,34 +15154,27 @@ 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) { +// 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 := &AuthenticateConnectorAWSResponse{ + response := &GetPluginResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseAWS + 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 { @@ -23424,13 +15189,6 @@ func ParseAuthenticateConnectorAWSResponse(rsp *http.Response) (*AuthenticateCon } 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 { @@ -23443,22 +15201,22 @@ 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) { +// 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() }() if err != nil { return nil, err } - response := &GetConnectorAuthStatusGCPResponse{ + response := &UpdatePluginResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetConnectorAuthStatusGCP200Response + var dest Plugin if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23471,12 +15229,12 @@ 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 == 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 @@ -23504,34 +15262,20 @@ func ParseGetConnectorAuthStatusGCPResponse(rsp *http.Response) (*GetConnectorAu return response, nil } -// ParseAuthenticateConnectorGCPResponse parses an HTTP response from a AuthenticateConnectorGCPWithResponse call -func ParseAuthenticateConnectorGCPResponse(rsp *http.Response) (*AuthenticateConnectorGCPResponse, error) { +// ParseDeletePluginUpcomingPriceChangesResponse parses an HTTP response from a DeletePluginUpcomingPriceChangesWithResponse call +func ParseDeletePluginUpcomingPriceChangesResponse(rsp *http.Response) (*DeletePluginUpcomingPriceChangesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorGCPResponse{ + response := &DeletePluginUpcomingPriceChangesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseGCP - 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 { @@ -23539,19 +15283,19 @@ func ParseAuthenticateConnectorGCPResponse(rsp *http.Response) (*AuthenticateCon } 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 + 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 @@ -23565,26 +15309,26 @@ 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) { +// ParseListPluginUpcomingPriceChangesResponse parses an HTTP response from a ListPluginUpcomingPriceChangesWithResponse call +func ParseListPluginUpcomingPriceChangesResponse(rsp *http.Response) (*ListPluginUpcomingPriceChangesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorFinishGCPResponse{ + response := &ListPluginUpcomingPriceChangesResponse{ 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 ListPluginUpcomingPriceChanges200Response 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 @@ -23607,13 +15351,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 { @@ -23626,33 +15363,26 @@ 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) { +// ParseCreatePluginUpcomingPriceChangeResponse parses an HTTP response from a CreatePluginUpcomingPriceChangeWithResponse call +func ParseCreatePluginUpcomingPriceChangeResponse(rsp *http.Response) (*CreatePluginUpcomingPriceChangeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthenticateConnectorFinishOAuthResponse{ + response := &CreatePluginUpcomingPriceChangeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseOAuth - 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 == 201: + var dest PluginPrice 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 @@ -23694,22 +15424,22 @@ 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) { +// 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 := &AuthenticateConnectorOAuthResponse{ + response := &ListPluginVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ConnectorAuthResponseOAuth + var dest ListPluginVersions200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23729,19 +15459,19 @@ func ParseAuthenticateConnectorOAuthResponse(rsp *http.Response) (*AuthenticateC } 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 + 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 @@ -23755,26 +15485,26 @@ func ParseAuthenticateConnectorOAuthResponse(rsp *http.Response) (*AuthenticateC return response, nil } -// ParseCreateTeamImagesResponse parses an HTTP response from a CreateTeamImagesWithResponse call -func ParseCreateTeamImagesResponse(rsp *http.Response) (*CreateTeamImagesResponse, 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 := &CreateTeamImagesResponse{ + response := &GetPluginVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CreateTeamImages201Response + 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.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -23809,20 +15539,27 @@ 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) { +// 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() }() if err != nil { return nil, err } - response := &DeleteTeamInvitationResponse{ + response := &UpdatePluginVersionResponse{ Body: bodyBytes, HTTPResponse: 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 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23837,13 +15574,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 { @@ -23863,27 +15593,48 @@ 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) { +// 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() }() if err != nil { return nil, err } - response := &ListTeamInvitationsResponse{ + response := &CreatePluginVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListTeamInvitations200Response + var dest PluginVersion 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 == 201: + var dest PluginVersion + 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 == 403: var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23903,54 +15654,40 @@ func ParseListTeamInvitationsResponse(rsp *http.Response) (*ListTeamInvitationsR return response, nil } -// ParseEmailTeamInvitationResponse parses an HTTP response from a EmailTeamInvitationWithResponse call -func ParseEmailTeamInvitationResponse(rsp *http.Response) (*EmailTeamInvitationResponse, 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 := &EmailTeamInvitationResponse{ + response := &DownloadPluginAssetResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Invitation + 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 == 202: - var dest Invitation - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON202 = &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 + 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 == 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 == 429: var dest TooManyRequests @@ -23971,33 +15708,33 @@ func ParseEmailTeamInvitationResponse(rsp *http.Response) (*EmailTeamInvitationR return response, nil } -// ParseAcceptTeamInvitationResponse parses an HTTP response from a AcceptTeamInvitationWithResponse call -func ParseAcceptTeamInvitationResponse(rsp *http.Response) (*AcceptTeamInvitationResponse, error) { +// 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() }() if err != nil { return nil, err } - response := &AcceptTeamInvitationResponse{ + response := &UploadPluginAssetResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest MembershipWithTeam + 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 == 303: - var dest MembershipWithTeam + 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.JSON303 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden @@ -24018,15 +15755,15 @@ func ParseAcceptTeamInvitationResponse(rsp *http.Response) (*AcceptTeamInvitatio return response, nil } -// ParseCancelTeamInvitationResponse parses an HTTP response from a CancelTeamInvitationWithResponse call -func ParseCancelTeamInvitationResponse(rsp *http.Response) (*CancelTeamInvitationResponse, error) { +// 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() }() if err != nil { return nil, err } - response := &CancelTeamInvitationResponse{ + response := &DeletePluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -24060,6 +15797,13 @@ func ParseCancelTeamInvitationResponse(rsp *http.Response) (*CancelTeamInvitatio } 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 { @@ -24072,22 +15816,22 @@ func ParseCancelTeamInvitationResponse(rsp *http.Response) (*CancelTeamInvitatio return response, nil } -// ParseListInvoicesByTeamResponse parses an HTTP response from a ListInvoicesByTeamWithResponse call -func ParseListInvoicesByTeamResponse(rsp *http.Response) (*ListInvoicesByTeamResponse, error) { +// 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() }() if err != nil { return nil, err } - response := &ListInvoicesByTeamResponse{ + response := &ListPluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListInvoicesByTeam200Response + var dest ListPluginVersionDocs200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24100,13 +15844,6 @@ func ParseListInvoicesByTeamResponse(rsp *http.Response) (*ListInvoicesByTeamRes } 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 { @@ -24126,26 +15863,26 @@ func ParseListInvoicesByTeamResponse(rsp *http.Response) (*ListInvoicesByTeamRes return response, nil } -// ParseGetManagedDatabasesResponse parses an HTTP response from a GetManagedDatabasesWithResponse call -func ParseGetManagedDatabasesResponse(rsp *http.Response) (*GetManagedDatabasesResponse, error) { +// ParseReplacePluginVersionDocsResponse parses an HTTP response from a ReplacePluginVersionDocsWithResponse call +func ParseReplacePluginVersionDocsResponse(rsp *http.Response) (*ReplacePluginVersionDocsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetManagedDatabasesResponse{ + response := &ReplacePluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetManagedDatabases200Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CreatePluginVersionDocs201Response 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 @@ -24175,6 +15912,13 @@ func ParseGetManagedDatabasesResponse(rsp *http.Response) (*GetManagedDatabasesR } 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 { @@ -24187,22 +15931,22 @@ func ParseGetManagedDatabasesResponse(rsp *http.Response) (*GetManagedDatabasesR return response, nil } -// ParseCreateManagedDatabaseResponse parses an HTTP response from a CreateManagedDatabaseWithResponse call -func ParseCreateManagedDatabaseResponse(rsp *http.Response) (*CreateManagedDatabaseResponse, error) { +// ParseCreatePluginVersionDocsResponse parses an HTTP response from a CreatePluginVersionDocsWithResponse call +func ParseCreatePluginVersionDocsResponse(rsp *http.Response) (*CreatePluginVersionDocsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateManagedDatabaseResponse{ + response := &CreatePluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ManagedDatabase + var dest CreatePluginVersionDocs201Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24229,19 +15973,12 @@ func ParseCreateManagedDatabaseResponse(rsp *http.Response) (*CreateManagedDatab } 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 == 409: - var dest Conflict + 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.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity @@ -24262,20 +15999,27 @@ func ParseCreateManagedDatabaseResponse(rsp *http.Response) (*CreateManagedDatab return response, nil } -// ParseDeleteManagedDatabaseResponse parses an HTTP response from a DeleteManagedDatabaseWithResponse call -func ParseDeleteManagedDatabaseResponse(rsp *http.Response) (*DeleteManagedDatabaseResponse, error) { +// ParseDeletePluginVersionTablesResponse parses an HTTP response from a DeletePluginVersionTablesWithResponse call +func ParseDeletePluginVersionTablesResponse(rsp *http.Response) (*DeletePluginVersionTablesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteManagedDatabaseResponse{ + response := &DeletePluginVersionTablesResponse{ 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 { @@ -24283,6 +16027,13 @@ func ParseDeleteManagedDatabaseResponse(rsp *http.Response) (*DeleteManagedDatab } 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 { @@ -24309,22 +16060,22 @@ func ParseDeleteManagedDatabaseResponse(rsp *http.Response) (*DeleteManagedDatab return response, nil } -// ParseGetManagedDatabaseResponse parses an HTTP response from a GetManagedDatabaseWithResponse call -func ParseGetManagedDatabaseResponse(rsp *http.Response) (*GetManagedDatabaseResponse, 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 := &GetManagedDatabaseResponse{ + response := &ListPluginVersionTablesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ManagedDatabase + var dest ListPluginVersionTables200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24356,20 +16107,27 @@ func ParseGetManagedDatabaseResponse(rsp *http.Response) (*GetManagedDatabaseRes return response, nil } -// ParseRemoveTeamMembershipResponse parses an HTTP response from a RemoveTeamMembershipWithResponse call -func ParseRemoveTeamMembershipResponse(rsp *http.Response) (*RemoveTeamMembershipResponse, error) { +// ParseCreatePluginVersionTablesResponse parses an HTTP response from a CreatePluginVersionTablesWithResponse call +func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVersionTablesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &RemoveTeamMembershipResponse{ + response := &CreatePluginVersionTablesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CreatePluginVersionTables201Response + 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 { @@ -24417,34 +16175,27 @@ 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) { +// 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 := &GetTeamMembershipsResponse{ + response := &GetPluginVersionTableResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetTeamMemberships200Response + 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 { @@ -24452,13 +16203,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 { @@ -24478,15 +16222,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) { +// 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 := &DeleteTeamMembershipResponse{ + response := &RemovePluginUIAssetsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -24513,20 +16257,6 @@ func ParseDeleteTeamMembershipResponse(rsp *http.Response) (*DeleteTeamMembershi } 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 { @@ -24539,20 +16269,27 @@ func ParseDeleteTeamMembershipResponse(rsp *http.Response) (*DeleteTeamMembershi return response, nil } -// ParseDeletePluginsByTeamResponse parses an HTTP response from a DeletePluginsByTeamWithResponse call -func ParseDeletePluginsByTeamResponse(rsp *http.Response) (*DeletePluginsByTeamResponse, error) { +// ParseUploadPluginUIAssetsResponse parses an HTTP response from a UploadPluginUIAssetsWithResponse call +func ParseUploadPluginUIAssetsResponse(rsp *http.Response) (*UploadPluginUIAssetsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeletePluginsByTeamResponse{ + response := &UploadPluginUIAssetsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest UploadPluginUIAssets201Response + 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 { @@ -24574,13 +16311,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 { @@ -24593,26 +16323,26 @@ 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) { +// ParseFinalizePluginUIAssetUploadResponse parses an HTTP response from a FinalizePluginUIAssetUploadWithResponse call +func ParseFinalizePluginUIAssetUploadResponse(rsp *http.Response) (*FinalizePluginUIAssetUploadResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListPluginsByTeamResponse{ + response := &FinalizePluginUIAssetUploadResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginsByTeam200Response + 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 @@ -24628,12 +16358,12 @@ func ParseListPluginsByTeamResponse(rsp *http.Response) (*ListPluginsByTeamRespo } 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 @@ -24647,50 +16377,57 @@ 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) { +// ParseAuthRegistryRequestResponse parses an HTTP response from a AuthRegistryRequestWithResponse call +func ParseAuthRegistryRequestResponse(rsp *http.Response) (*AuthRegistryRequestResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DownloadPluginAssetByTeamResponse{ + response := &AuthRegistryRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginAsset + var dest RegistryAuthToken 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 + 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 + 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 NotFound + 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 == 429: - var dest TooManyRequests + 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.JSON429 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError + var dest DockerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24701,22 +16438,22 @@ func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPlugin return response, nil } -// ParseGetSettingsResponse parses an HTTP response from a GetSettingsWithResponse call -func ParseGetSettingsResponse(rsp *http.Response) (*GetSettingsResponse, error) { +// 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 := &GetSettingsResponse{ + response := &ListTeamsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Settings + var dest ListTeams200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24743,13 +16480,6 @@ func ParseGetSettingsResponse(rsp *http.Response) (*GetSettingsResponse, 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 { @@ -24762,26 +16492,33 @@ func ParseGetSettingsResponse(rsp *http.Response) (*GetSettingsResponse, error) return response, nil } -// ParseUpdateSettingsResponse parses an HTTP response from a UpdateSettingsWithResponse call -func ParseUpdateSettingsResponse(rsp *http.Response) (*UpdateSettingsResponse, error) { +// 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 := &UpdateSettingsResponse{ + response := &CreateTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Settings + 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.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 @@ -24797,13 +16534,6 @@ func ParseUpdateSettingsResponse(rsp *http.Response) (*UpdateSettingsResponse, 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 == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24823,27 +16553,20 @@ func ParseUpdateSettingsResponse(rsp *http.Response) (*UpdateSettingsResponse, e return response, nil } -// ParseGetTeamSpendResponse parses an HTTP response from a GetTeamSpendWithResponse call -func ParseGetTeamSpendResponse(rsp *http.Response) (*GetTeamSpendResponse, error) { +// ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call +func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamSpendResponse{ + response := &DeleteTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SpendSummary - 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 { @@ -24872,6 +16595,13 @@ func ParseGetTeamSpendResponse(rsp *http.Response) (*GetTeamSpendResponse, 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 { @@ -24884,20 +16614,34 @@ func ParseGetTeamSpendResponse(rsp *http.Response) (*GetTeamSpendResponse, error return response, nil } -// ParseDeleteSpendingLimitResponse parses an HTTP response from a DeleteSpendingLimitWithResponse call -func ParseDeleteSpendingLimitResponse(rsp *http.Response) (*DeleteSpendingLimitResponse, error) { +// ParseGetTeamByNameResponse parses an HTTP response from a GetTeamByNameWithResponse call +func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSpendingLimitResponse{ + response := &GetTeamByNameResponse{ Body: bodyBytes, HTTPResponse: 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 + + 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 { @@ -24931,27 +16675,34 @@ func ParseDeleteSpendingLimitResponse(rsp *http.Response) (*DeleteSpendingLimitR return response, nil } -// ParseGetSpendingLimitResponse parses an HTTP response from a GetSpendingLimitWithResponse call -func ParseGetSpendingLimitResponse(rsp *http.Response) (*GetSpendingLimitResponse, error) { +// ParseUpdateTeamResponse parses an HTTP response from a UpdateTeamWithResponse call +func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSpendingLimitResponse{ + response := &UpdateTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SpendingLimit + var dest Team 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 { @@ -24985,26 +16736,26 @@ func ParseGetSpendingLimitResponse(rsp *http.Response) (*GetSpendingLimitRespons return response, nil } -// ParseCreateSpendingLimitResponse parses an HTTP response from a CreateSpendingLimitWithResponse call -func ParseCreateSpendingLimitResponse(rsp *http.Response) (*CreateSpendingLimitResponse, error) { +// ParseListAddonOrdersByTeamResponse parses an HTTP response from a ListAddonOrdersByTeamWithResponse call +func ParseListAddonOrdersByTeamResponse(rsp *http.Response) (*ListAddonOrdersByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSpendingLimitResponse{ + response := &ListAddonOrdersByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SpendingLimit + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ListAddonOrdersByTeam200Response 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 == 401: var dest RequiresAuthentication @@ -25027,13 +16778,6 @@ func ParseCreateSpendingLimitResponse(rsp *http.Response) (*CreateSpendingLimitR } 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 { @@ -25046,26 +16790,26 @@ func ParseCreateSpendingLimitResponse(rsp *http.Response) (*CreateSpendingLimitR return response, nil } -// ParseUpdateSpendingLimitResponse parses an HTTP response from a UpdateSpendingLimitWithResponse call -func ParseUpdateSpendingLimitResponse(rsp *http.Response) (*UpdateSpendingLimitResponse, error) { +// ParseCreateAddonOrderForTeamResponse parses an HTTP response from a CreateAddonOrderForTeamWithResponse call +func ParseCreateAddonOrderForTeamResponse(rsp *http.Response) (*CreateAddonOrderForTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSpendingLimitResponse{ + response := &CreateAddonOrderForTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SpendingLimit + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest AddonOrder 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 @@ -25081,13 +16825,6 @@ func ParseUpdateSpendingLimitResponse(rsp *http.Response) (*UpdateSpendingLimitR } 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 { @@ -25107,22 +16844,22 @@ func ParseUpdateSpendingLimitResponse(rsp *http.Response) (*UpdateSpendingLimitR return response, nil } -// ParseListSubscriptionOrdersByTeamResponse parses an HTTP response from a ListSubscriptionOrdersByTeamWithResponse call -func ParseListSubscriptionOrdersByTeamResponse(rsp *http.Response) (*ListSubscriptionOrdersByTeamResponse, error) { +// ParseGetAddonOrderByTeamResponse parses an HTTP response from a GetAddonOrderByTeamWithResponse call +func ParseGetAddonOrderByTeamResponse(rsp *http.Response) (*GetAddonOrderByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSubscriptionOrdersByTeamResponse{ + response := &GetAddonOrderByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSubscriptionOrdersByTeam200Response + var dest AddonOrder if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25161,27 +16898,20 @@ func ParseListSubscriptionOrdersByTeamResponse(rsp *http.Response) (*ListSubscri return response, nil } -// ParseCreateSubscriptionOrderForTeamResponse parses an HTTP response from a CreateSubscriptionOrderForTeamWithResponse call -func ParseCreateSubscriptionOrderForTeamResponse(rsp *http.Response) (*CreateSubscriptionOrderForTeamResponse, error) { +// ParseDeleteAddonsByTeamResponse parses an HTTP response from a DeleteAddonsByTeamWithResponse call +func ParseDeleteAddonsByTeamResponse(rsp *http.Response) (*DeleteAddonsByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSubscriptionOrderForTeamResponse{ + response := &DeleteAddonsByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest TeamSubscriptionOrder - 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 { @@ -25210,13 +16940,6 @@ func ParseCreateSubscriptionOrderForTeamResponse(rsp *http.Response) (*CreateSub } 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 { @@ -25229,22 +16952,22 @@ func ParseCreateSubscriptionOrderForTeamResponse(rsp *http.Response) (*CreateSub return response, nil } -// ParseGetSubscriptionOrderByTeamResponse parses an HTTP response from a GetSubscriptionOrderByTeamWithResponse call -func ParseGetSubscriptionOrderByTeamResponse(rsp *http.Response) (*GetSubscriptionOrderByTeamResponse, error) { +// ParseListAddonsByTeamResponse parses an HTTP response from a ListAddonsByTeamWithResponse call +func ParseListAddonsByTeamResponse(rsp *http.Response) (*ListAddonsByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSubscriptionOrderByTeamResponse{ + response := &ListAddonsByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TeamSubscriptionOrder + var dest ListAddonsByTeam200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25283,33 +17006,26 @@ func ParseGetSubscriptionOrderByTeamResponse(rsp *http.Response) (*GetSubscripti return response, nil } -// ParseCreateSyncDestinationTestConnectionResponse parses an HTTP response from a CreateSyncDestinationTestConnectionWithResponse call -func ParseCreateSyncDestinationTestConnectionResponse(rsp *http.Response) (*CreateSyncDestinationTestConnectionResponse, error) { +// ParseDownloadAddonAssetByTeamResponse parses an HTTP response from a DownloadAddonAssetByTeamWithResponse call +func ParseDownloadAddonAssetByTeamResponse(rsp *http.Response) (*DownloadAddonAssetByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncDestinationTestConnectionResponse{ + response := &DownloadAddonAssetByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - 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.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 AddonAsset 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 @@ -25318,19 +17034,19 @@ func ParseCreateSyncDestinationTestConnectionResponse(rsp *http.Response) (*Crea } 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 + 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 == 429: var dest TooManyRequests @@ -25351,27 +17067,34 @@ 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) { +// ParseAIOnboardingChatResponse parses an HTTP response from a AIOnboardingChatWithResponse call +func ParseAIOnboardingChatResponse(rsp *http.Response) (*AIOnboardingChatResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncDestinationTestConnectionResponse{ + response := &AIOnboardingChatResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestinationTestConnection + var dest AIOnboardingChat200Response 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 { @@ -25393,6 +17116,13 @@ func ParseGetSyncDestinationTestConnectionResponse(rsp *http.Response) (*GetSync } 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 { @@ -25405,22 +17135,22 @@ 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) { +// ParseAIOnboardingEndConversationResponse parses an HTTP response from a AIOnboardingEndConversationWithResponse call +func ParseAIOnboardingEndConversationResponse(rsp *http.Response) (*AIOnboardingEndConversationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncTestConnectionForSyncDestinationResponse{ + response := &AIOnboardingEndConversationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestinationTestConnection + var dest AIOnboardingEndConversation200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25433,6 +17163,13 @@ func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) } 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 { @@ -25447,12 +17184,12 @@ func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) } 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 @@ -25466,34 +17203,27 @@ func ParseUpdateSyncTestConnectionForSyncDestinationResponse(rsp *http.Response) return response, nil } -// ParsePromoteSyncDestinationTestConnectionResponse parses an HTTP response from a PromoteSyncDestinationTestConnectionWithResponse call -func ParsePromoteSyncDestinationTestConnectionResponse(rsp *http.Response) (*PromoteSyncDestinationTestConnectionResponse, error) { +// ParseAIOnboardingNewConversationResponse parses an HTTP response from a AIOnboardingNewConversationWithResponse call +func ParseAIOnboardingNewConversationResponse(rsp *http.Response) (*AIOnboardingNewConversationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PromoteSyncDestinationTestConnectionResponse{ + response := &AIOnboardingNewConversationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestination + var dest AIOnboardingNewConversation200Response 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 == 201: - var dest SyncDestination - 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 { @@ -25508,6 +17238,13 @@ func ParsePromoteSyncDestinationTestConnectionResponse(rsp *http.Response) (*Pro } 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 { @@ -25515,12 +17252,12 @@ func ParsePromoteSyncDestinationTestConnectionResponse(rsp *http.Response) (*Pro } 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 @@ -25534,22 +17271,22 @@ func ParsePromoteSyncDestinationTestConnectionResponse(rsp *http.Response) (*Pro return response, nil } -// ParseListSyncDestinationsResponse parses an HTTP response from a ListSyncDestinationsWithResponse call -func ParseListSyncDestinationsResponse(rsp *http.Response) (*ListSyncDestinationsResponse, error) { +// ParseListTeamAPIKeysResponse parses an HTTP response from a ListTeamAPIKeysWithResponse call +func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncDestinationsResponse{ + response := &ListTeamAPIKeysResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncDestinations200Response + var dest ListTeamAPIKeys200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25581,20 +17318,34 @@ func ParseListSyncDestinationsResponse(rsp *http.Response) (*ListSyncDestination return response, nil } -// ParseDeleteSyncDestinationResponse parses an HTTP response from a DeleteSyncDestinationWithResponse call -func ParseDeleteSyncDestinationResponse(rsp *http.Response) (*DeleteSyncDestinationResponse, error) { +// ParseCreateTeamAPIKeyResponse parses an HTTP response from a CreateTeamAPIKeyWithResponse call +func ParseCreateTeamAPIKeyResponse(rsp *http.Response) (*CreateTeamAPIKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSyncDestinationResponse{ + response := &CreateTeamAPIKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest APIKey + 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 { @@ -25602,12 +17353,12 @@ func ParseDeleteSyncDestinationResponse(rsp *http.Response) (*DeleteSyncDestinat } 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 @@ -25628,26 +17379,26 @@ func ParseDeleteSyncDestinationResponse(rsp *http.Response) (*DeleteSyncDestinat return response, nil } -// ParseGetSyncDestinationResponse parses an HTTP response from a GetSyncDestinationWithResponse call -func ParseGetSyncDestinationResponse(rsp *http.Response) (*GetSyncDestinationResponse, error) { +// ParseDeleteTeamAPIKeyResponse parses an HTTP response from a DeleteTeamAPIKeyWithResponse call +func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncDestinationResponse{ + response := &DeleteTeamAPIKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestination + 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 @@ -25656,6 +17407,13 @@ func ParseGetSyncDestinationResponse(rsp *http.Response) (*GetSyncDestinationRes } 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 { @@ -25675,33 +17433,26 @@ func ParseGetSyncDestinationResponse(rsp *http.Response) (*GetSyncDestinationRes return response, nil } -// ParseUpdateSyncDestinationResponse parses an HTTP response from a UpdateSyncDestinationWithResponse call -func ParseUpdateSyncDestinationResponse(rsp *http.Response) (*UpdateSyncDestinationResponse, error) { +// ParseCreateTeamImagesResponse parses an HTTP response from a CreateTeamImagesWithResponse call +func ParseCreateTeamImagesResponse(rsp *http.Response) (*CreateTeamImagesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncDestinationResponse{ + response := &CreateTeamImagesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestination - 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 == 201: + var dest CreateTeamImages201Response 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 @@ -25710,19 +17461,19 @@ func ParseUpdateSyncDestinationResponse(rsp *http.Response) (*UpdateSyncDestinat } 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 + 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 @@ -25736,26 +17487,26 @@ func ParseUpdateSyncDestinationResponse(rsp *http.Response) (*UpdateSyncDestinat return response, nil } -// ParseListSyncDestinationSyncsResponse parses an HTTP response from a ListSyncDestinationSyncsWithResponse call -func ParseListSyncDestinationSyncsResponse(rsp *http.Response) (*ListSyncDestinationSyncsResponse, error) { +// ParseDeleteTeamInvitationResponse parses an HTTP response from a DeleteTeamInvitationWithResponse call +func ParseDeleteTeamInvitationResponse(rsp *http.Response) (*DeleteTeamInvitationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncDestinationSyncsResponse{ + response := &DeleteTeamInvitationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncSourceSyncs200Response + 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 @@ -25764,6 +17515,13 @@ func ParseListSyncDestinationSyncsResponse(rsp *http.Response) (*ListSyncDestina } 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 { @@ -25783,47 +17541,33 @@ func ParseListSyncDestinationSyncsResponse(rsp *http.Response) (*ListSyncDestina return response, nil } -// ParseGetTestConnectionForSyncDestinationResponse parses an HTTP response from a GetTestConnectionForSyncDestinationWithResponse call -func ParseGetTestConnectionForSyncDestinationResponse(rsp *http.Response) (*GetTestConnectionForSyncDestinationResponse, error) { +// ParseListTeamInvitationsResponse parses an HTTP response from a ListTeamInvitationsWithResponse call +func ParseListTeamInvitationsResponse(rsp *http.Response) (*ListTeamInvitationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTestConnectionForSyncDestinationResponse{ + response := &ListTeamInvitationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncTestConnection - 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 + var dest ListTeamInvitations200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest 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 @@ -25837,47 +17581,47 @@ func ParseGetTestConnectionForSyncDestinationResponse(rsp *http.Response) (*GetT return response, nil } -// ParseCreateSyncSourceTestConnectionResponse parses an HTTP response from a CreateSyncSourceTestConnectionWithResponse call -func ParseCreateSyncSourceTestConnectionResponse(rsp *http.Response) (*CreateSyncSourceTestConnectionResponse, error) { +// ParseEmailTeamInvitationResponse parses an HTTP response from a EmailTeamInvitationWithResponse call +func ParseEmailTeamInvitationResponse(rsp *http.Response) (*EmailTeamInvitationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncSourceTestConnectionResponse{ + response := &EmailTeamInvitationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SyncSourceTestConnection + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Invitation 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 == 202: + var dest Invitation if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON202 = &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 == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &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 == 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 @@ -25905,33 +17649,33 @@ func ParseCreateSyncSourceTestConnectionResponse(rsp *http.Response) (*CreateSyn return response, nil } -// ParseGetSyncSourceTestConnectionResponse parses an HTTP response from a GetSyncSourceTestConnectionWithResponse call -func ParseGetSyncSourceTestConnectionResponse(rsp *http.Response) (*GetSyncSourceTestConnectionResponse, error) { +// ParseAcceptTeamInvitationResponse parses an HTTP response from a AcceptTeamInvitationWithResponse call +func ParseAcceptTeamInvitationResponse(rsp *http.Response) (*AcceptTeamInvitationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncSourceTestConnectionResponse{ + response := &AcceptTeamInvitationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncSourceTestConnection + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest MembershipWithTeam 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 == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 303: + var dest MembershipWithTeam if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON303 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden @@ -25940,13 +17684,6 @@ func ParseGetSyncSourceTestConnectionResponse(rsp *http.Response) (*GetSyncSourc } 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 { @@ -25959,33 +17696,33 @@ func ParseGetSyncSourceTestConnectionResponse(rsp *http.Response) (*GetSyncSourc return response, nil } -// ParseUpdateSyncTestConnectionForSyncSourceResponse parses an HTTP response from a UpdateSyncTestConnectionForSyncSourceWithResponse call -func ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp *http.Response) (*UpdateSyncTestConnectionForSyncSourceResponse, error) { +// ParseCancelTeamInvitationResponse parses an HTTP response from a CancelTeamInvitationWithResponse call +func ParseCancelTeamInvitationResponse(rsp *http.Response) (*CancelTeamInvitationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncTestConnectionForSyncSourceResponse{ + response := &CancelTeamInvitationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncSourceTestConnection + 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 == 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 @@ -26001,13 +17738,6 @@ func ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp *http.Response) (*Up } 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 { @@ -26020,41 +17750,27 @@ func ParseUpdateSyncTestConnectionForSyncSourceResponse(rsp *http.Response) (*Up return response, nil } -// ParsePromoteSyncSourceTestConnectionResponse parses an HTTP response from a PromoteSyncSourceTestConnectionWithResponse call -func ParsePromoteSyncSourceTestConnectionResponse(rsp *http.Response) (*PromoteSyncSourceTestConnectionResponse, error) { +// ParseListInvoicesByTeamResponse parses an HTTP response from a ListInvoicesByTeamWithResponse call +func ParseListInvoicesByTeamResponse(rsp *http.Response) (*ListInvoicesByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PromoteSyncSourceTestConnectionResponse{ + response := &ListInvoicesByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncSource + var dest ListInvoicesByTeam200Response 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 == 201: - var dest SyncSource - 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 { @@ -26062,19 +17778,19 @@ func ParsePromoteSyncSourceTestConnectionResponse(rsp *http.Response) (*PromoteS } 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 + 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 @@ -26088,27 +17804,34 @@ func ParsePromoteSyncSourceTestConnectionResponse(rsp *http.Response) (*PromoteS return response, nil } -// ParseListSyncSourcesResponse parses an HTTP response from a ListSyncSourcesWithResponse call -func ParseListSyncSourcesResponse(rsp *http.Response) (*ListSyncSourcesResponse, error) { +// ParseGetManagedDatabasesResponse parses an HTTP response from a GetManagedDatabasesWithResponse call +func ParseGetManagedDatabasesResponse(rsp *http.Response) (*GetManagedDatabasesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncSourcesResponse{ + response := &GetManagedDatabasesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncSources200Response + var dest GetManagedDatabases200Response 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 { @@ -26116,6 +17839,13 @@ func ParseListSyncSourcesResponse(rsp *http.Response) (*ListSyncSourcesResponse, } 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 { @@ -26135,87 +17865,68 @@ func ParseListSyncSourcesResponse(rsp *http.Response) (*ListSyncSourcesResponse, return response, nil } -// ParseDeleteSyncSourceResponse parses an HTTP response from a DeleteSyncSourceWithResponse call -func ParseDeleteSyncSourceResponse(rsp *http.Response) (*DeleteSyncSourceResponse, error) { +// ParseCreateManagedDatabaseResponse parses an HTTP response from a CreateManagedDatabaseWithResponse call +func ParseCreateManagedDatabaseResponse(rsp *http.Response) (*CreateManagedDatabaseResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSyncSourceResponse{ + response := &CreateManagedDatabaseResponse{ 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 == 201: + var dest ManagedDatabase 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 == 404: - var dest NotFound + 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.JSON404 = &dest + response.JSON400 = &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 + 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 -} - -// ParseGetSyncSourceResponse parses an HTTP response from a GetSyncSourceWithResponse call -func ParseGetSyncSourceResponse(rsp *http.Response) (*GetSyncSourceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSyncSourceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON403 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncSource + 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 == 401: - var dest RequiresAuthentication + 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.JSON401 = &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 @@ -26229,34 +17940,20 @@ func ParseGetSyncSourceResponse(rsp *http.Response) (*GetSyncSourceResponse, err return response, nil } -// ParseUpdateSyncSourceResponse parses an HTTP response from a UpdateSyncSourceWithResponse call -func ParseUpdateSyncSourceResponse(rsp *http.Response) (*UpdateSyncSourceResponse, error) { +// ParseDeleteManagedDatabaseResponse parses an HTTP response from a DeleteManagedDatabaseWithResponse call +func ParseDeleteManagedDatabaseResponse(rsp *http.Response) (*DeleteManagedDatabaseResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncSourceResponse{ + response := &DeleteManagedDatabaseResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncSource - 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 { @@ -26290,22 +17987,22 @@ func ParseUpdateSyncSourceResponse(rsp *http.Response) (*UpdateSyncSourceRespons return response, nil } -// ParseListSyncSourceSyncsResponse parses an HTTP response from a ListSyncSourceSyncsWithResponse call -func ParseListSyncSourceSyncsResponse(rsp *http.Response) (*ListSyncSourceSyncsResponse, error) { +// ParseGetManagedDatabaseResponse parses an HTTP response from a GetManagedDatabaseWithResponse call +func ParseGetManagedDatabaseResponse(rsp *http.Response) (*GetManagedDatabaseResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncSourceSyncsResponse{ + response := &GetManagedDatabaseResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncSourceSyncs200Response + var dest ManagedDatabase if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26337,27 +18034,20 @@ func ParseListSyncSourceSyncsResponse(rsp *http.Response) (*ListSyncSourceSyncsR return response, nil } -// ParseGetTestConnectionForSyncSourceResponse parses an HTTP response from a GetTestConnectionForSyncSourceWithResponse call -func ParseGetTestConnectionForSyncSourceResponse(rsp *http.Response) (*GetTestConnectionForSyncSourceResponse, error) { +// ParseRemoveTeamMembershipResponse parses an HTTP response from a RemoveTeamMembershipWithResponse call +func ParseRemoveTeamMembershipResponse(rsp *http.Response) (*RemoveTeamMembershipResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTestConnectionForSyncSourceResponse{ + response := &RemoveTeamMembershipResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncTestConnection - 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 { @@ -26372,6 +18062,13 @@ func ParseGetTestConnectionForSyncSourceResponse(rsp *http.Response) (*GetTestCo } 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 { @@ -26379,6 +18076,13 @@ func ParseGetTestConnectionForSyncSourceResponse(rsp *http.Response) (*GetTestCo } 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 { @@ -26391,27 +18095,34 @@ func ParseGetTestConnectionForSyncSourceResponse(rsp *http.Response) (*GetTestCo return response, nil } -// ParseListSyncsResponse parses an HTTP response from a ListSyncsWithResponse call -func ParseListSyncsResponse(rsp *http.Response) (*ListSyncsResponse, error) { +// ParseGetTeamMembershipsResponse parses an HTTP response from a GetTeamMembershipsWithResponse call +func ParseGetTeamMembershipsResponse(rsp *http.Response) (*GetTeamMembershipsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncsResponse{ + response := &GetTeamMembershipsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncSourceSyncs200Response + var dest GetTeamMemberships200Response 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 { @@ -26419,6 +18130,13 @@ func ParseListSyncsResponse(rsp *http.Response) (*ListSyncsResponse, 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 { @@ -26438,27 +18156,20 @@ func ParseListSyncsResponse(rsp *http.Response) (*ListSyncsResponse, error) { return response, nil } -// ParseCreateSyncResponse parses an HTTP response from a CreateSyncWithResponse call -func ParseCreateSyncResponse(rsp *http.Response) (*CreateSyncResponse, error) { +// ParseDeleteTeamMembershipResponse parses an HTTP response from a DeleteTeamMembershipWithResponse call +func ParseDeleteTeamMembershipResponse(rsp *http.Response) (*DeleteTeamMembershipResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Sync - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest + response := &DeleteTeamMembershipResponse{ + 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 { @@ -26473,6 +18184,20 @@ func ParseCreateSyncResponse(rsp *http.Response) (*CreateSyncResponse, 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 { + 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 { @@ -26492,27 +18217,20 @@ 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) { +// ParseDeletePluginsByTeamResponse parses an HTTP response from a DeletePluginsByTeamWithResponse call +func ParseDeletePluginsByTeamResponse(rsp *http.Response) (*DeletePluginsByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTestConnectionConnectorCredentialsResponse{ + response := &DeletePluginsByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetSyncRunConnectorCredentials200Response - 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 { @@ -26527,19 +18245,19 @@ func ParseGetTestConnectionConnectorCredentialsResponse(rsp *http.Response) (*Ge } 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 + 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 @@ -26553,34 +18271,27 @@ func ParseGetTestConnectionConnectorCredentialsResponse(rsp *http.Response) (*Ge return response, nil } -// ParseGetTestConnectionConnectorIdentityResponse parses an HTTP response from a GetTestConnectionConnectorIdentityWithResponse call -func ParseGetTestConnectionConnectorIdentityResponse(rsp *http.Response) (*GetTestConnectionConnectorIdentityResponse, error) { +// ParseListPluginsByTeamResponse parses an HTTP response from a ListPluginsByTeamWithResponse call +func ParseListPluginsByTeamResponse(rsp *http.Response) (*ListPluginsByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTestConnectionConnectorIdentityResponse{ + response := &ListPluginsByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetSyncRunConnectorIdentity200Response + var dest ListPluginsByTeam200Response 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 { @@ -26588,19 +18299,19 @@ func ParseGetTestConnectionConnectorIdentityResponse(rsp *http.Response) (*GetTe } 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 + 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 @@ -26614,26 +18325,26 @@ func ParseGetTestConnectionConnectorIdentityResponse(rsp *http.Response) (*GetTe return response, nil } -// ParseDeleteSyncResponse parses an HTTP response from a DeleteSyncWithResponse call -func ParseDeleteSyncResponse(rsp *http.Response) (*DeleteSyncResponse, error) { +// 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 := &DeleteSyncResponse{ + response := &DownloadPluginAssetByTeamResponse{ 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 PluginAsset 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 @@ -26649,12 +18360,12 @@ func ParseDeleteSyncResponse(rsp *http.Response) (*DeleteSyncResponse, 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 == 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 @@ -26668,40 +18379,40 @@ func ParseDeleteSyncResponse(rsp *http.Response) (*DeleteSyncResponse, error) { return response, nil } -// ParseGetSyncResponse parses an HTTP response from a GetSyncWithResponse call -func ParseGetSyncResponse(rsp *http.Response) (*GetSyncResponse, 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 := &GetSyncResponse{ + response := &GetSettingsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Sync + var dest Settings 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 @@ -26710,6 +18421,13 @@ func ParseGetSyncResponse(rsp *http.Response) (*GetSyncResponse, 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 { @@ -26722,33 +18440,33 @@ func ParseGetSyncResponse(rsp *http.Response) (*GetSyncResponse, error) { return response, nil } -// ParseUpdateSyncResponse parses an HTTP response from a UpdateSyncWithResponse call -func ParseUpdateSyncResponse(rsp *http.Response) (*UpdateSyncResponse, error) { +// 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 := &UpdateSyncResponse{ + response := &UpdateSettingsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Sync + var dest Settings 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 @@ -26783,27 +18501,34 @@ func ParseUpdateSyncResponse(rsp *http.Response) (*UpdateSyncResponse, error) { return response, nil } -// ParseListSyncRunsResponse parses an HTTP response from a ListSyncRunsWithResponse call -func ParseListSyncRunsResponse(rsp *http.Response) (*ListSyncRunsResponse, error) { +// ParseGetTeamSpendResponse parses an HTTP response from a GetTeamSpendWithResponse call +func ParseGetTeamSpendResponse(rsp *http.Response) (*GetTeamSpendResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncRunsResponse{ + response := &GetTeamSpendResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncRuns200Response + var dest SpendSummary 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 { @@ -26811,6 +18536,13 @@ func ParseListSyncRunsResponse(rsp *http.Response) (*ListSyncRunsResponse, 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 { @@ -26830,47 +18562,40 @@ func ParseListSyncRunsResponse(rsp *http.Response) (*ListSyncRunsResponse, error return response, nil } -// ParseCreateSyncRunResponse parses an HTTP response from a CreateSyncRunWithResponse call -func ParseCreateSyncRunResponse(rsp *http.Response) (*CreateSyncRunResponse, error) { +// ParseDeleteSpendingLimitResponse parses an HTTP response from a DeleteSpendingLimitWithResponse call +func ParseDeleteSpendingLimitResponse(rsp *http.Response) (*DeleteSpendingLimitResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncRunResponse{ + response := &DeleteSpendingLimitResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SyncRun - 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 == 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 @@ -26884,22 +18609,22 @@ func ParseCreateSyncRunResponse(rsp *http.Response) (*CreateSyncRunResponse, err return response, nil } -// ParseGetSyncRunResponse parses an HTTP response from a GetSyncRunWithResponse call -func ParseGetSyncRunResponse(rsp *http.Response) (*GetSyncRunResponse, error) { +// ParseGetSpendingLimitResponse parses an HTTP response from a GetSpendingLimitWithResponse call +func ParseGetSpendingLimitResponse(rsp *http.Response) (*GetSpendingLimitResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunResponse{ + response := &GetSpendingLimitResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncRunDetails + var dest SpendingLimit if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26912,6 +18637,13 @@ func ParseGetSyncRunResponse(rsp *http.Response) (*GetSyncRunResponse, 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 { @@ -26931,33 +18663,33 @@ func ParseGetSyncRunResponse(rsp *http.Response) (*GetSyncRunResponse, error) { return response, nil } -// ParseUpdateSyncRunResponse parses an HTTP response from a UpdateSyncRunWithResponse call -func ParseUpdateSyncRunResponse(rsp *http.Response) (*UpdateSyncRunResponse, error) { +// ParseCreateSpendingLimitResponse parses an HTTP response from a CreateSpendingLimitWithResponse call +func ParseCreateSpendingLimitResponse(rsp *http.Response) (*CreateSpendingLimitResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncRunResponse{ + response := &CreateSpendingLimitResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncRun + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest SpendingLimit 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 + 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 @@ -26992,22 +18724,22 @@ 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) { +// ParseUpdateSpendingLimitResponse parses an HTTP response from a UpdateSpendingLimitWithResponse call +func ParseUpdateSpendingLimitResponse(rsp *http.Response) (*UpdateSpendingLimitResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunConnectorCredentialsResponse{ + response := &UpdateSpendingLimitResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetSyncRunConnectorCredentials200Response + var dest SpendingLimit if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -27027,19 +18759,19 @@ func ParseGetSyncRunConnectorCredentialsResponse(rsp *http.Response) (*GetSyncRu } 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 + 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 @@ -27053,34 +18785,27 @@ 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) { +// ParseListSubscriptionOrdersByTeamResponse parses an HTTP response from a ListSubscriptionOrdersByTeamWithResponse call +func ParseListSubscriptionOrdersByTeamResponse(rsp *http.Response) (*ListSubscriptionOrdersByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunConnectorIdentityResponse{ + response := &ListSubscriptionOrdersByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetSyncRunConnectorIdentity200Response + var dest ListSubscriptionOrdersByTeam200Response 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 { @@ -27088,19 +18813,19 @@ func ParseGetSyncRunConnectorIdentityResponse(rsp *http.Response) (*GetSyncRunCo } 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 + 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 @@ -27114,26 +18839,26 @@ func ParseGetSyncRunConnectorIdentityResponse(rsp *http.Response) (*GetSyncRunCo return response, nil } -// ParseGetSyncRunLogsResponse parses an HTTP response from a GetSyncRunLogsWithResponse call -func ParseGetSyncRunLogsResponse(rsp *http.Response) (*GetSyncRunLogsResponse, error) { +// ParseCreateSubscriptionOrderForTeamResponse parses an HTTP response from a CreateSubscriptionOrderForTeamWithResponse call +func ParseCreateSubscriptionOrderForTeamResponse(rsp *http.Response) (*CreateSubscriptionOrderForTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncRunLogsResponse{ + response := &CreateSubscriptionOrderForTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncRunLogs + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TeamSubscriptionOrder 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 @@ -27149,6 +18874,13 @@ func ParseGetSyncRunLogsResponse(rsp *http.Response) (*GetSyncRunLogsResponse, 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 { @@ -27170,34 +18902,31 @@ func ParseGetSyncRunLogsResponse(rsp *http.Response) (*GetSyncRunLogsResponse, e } 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) { +// ParseGetSubscriptionOrderByTeamResponse parses an HTTP response from a GetSubscriptionOrderByTeamWithResponse call +func ParseGetSubscriptionOrderByTeamResponse(rsp *http.Response) (*GetSubscriptionOrderByTeamResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncRunProgressResponse{ + response := &GetSubscriptionOrderByTeamResponse{ 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 TeamSubscriptionOrder 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 @@ -27206,19 +18935,19 @@ func ParseCreateSyncRunProgressResponse(rsp *http.Response) (*CreateSyncRunProgr } 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 + 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 diff --git a/models.gen.go b/models.gen.go index b906fee..b9e8799 100644 --- a/models.gen.go +++ b/models.gen.go @@ -56,14 +56,6 @@ const ( AddonTypeVisualization AddonType = "visualization" ) -// 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" @@ -161,61 +153,6 @@ const ( PluginTierPaid PluginTier = "paid" ) -// Defines values for SyncDestinationMigrateMode. -const ( - SyncDestinationMigrateModeForced SyncDestinationMigrateMode = "forced" - SyncDestinationMigrateModeSafe SyncDestinationMigrateMode = "safe" -) - -// Defines values for SyncDestinationMigrateModeUpdate. -const ( - SyncDestinationMigrateModeUpdateForced SyncDestinationMigrateModeUpdate = "forced" - SyncDestinationMigrateModeUpdateSafe SyncDestinationMigrateModeUpdate = "safe" -) - -// Defines values for SyncDestinationWriteMode. -const ( - SyncDestinationWriteModeAppend SyncDestinationWriteMode = "append" - SyncDestinationWriteModeOverwrite SyncDestinationWriteMode = "overwrite" - SyncDestinationWriteModeOverwriteDeleteStale SyncDestinationWriteMode = "overwrite-delete-stale" -) - -// Defines values for SyncDestinationWriteModeUpdate. -const ( - SyncDestinationWriteModeUpdateAppend SyncDestinationWriteModeUpdate = "append" - SyncDestinationWriteModeUpdateOverwrite SyncDestinationWriteModeUpdate = "overwrite" - SyncDestinationWriteModeUpdateOverwriteDeleteStale SyncDestinationWriteModeUpdate = "overwrite-delete-stale" -) - -// Defines values for SyncLastUpdateSource. -const ( - SyncLastUpdateSourceUi SyncLastUpdateSource = "ui" - SyncLastUpdateSourceYaml SyncLastUpdateSource = "yaml" -) - -// Defines values for SyncRunStatus. -const ( - SyncRunStatusCancelled SyncRunStatus = "cancelled" - SyncRunStatusCompleted SyncRunStatus = "completed" - SyncRunStatusCreated SyncRunStatus = "created" - SyncRunStatusFailed SyncRunStatus = "failed" - SyncRunStatusStarted SyncRunStatus = "started" -) - -// Defines values for SyncRunStatusReason. -const ( - SyncRunStatusReasonError SyncRunStatusReason = "error" - SyncRunStatusReasonOomKilled SyncRunStatusReason = "oom_killed" -) - -// Defines values for SyncTestConnectionStatus. -const ( - SyncTestConnectionStatusCompleted SyncTestConnectionStatus = "completed" - SyncTestConnectionStatusCreated SyncTestConnectionStatus = "created" - SyncTestConnectionStatusFailed SyncTestConnectionStatus = "failed" - SyncTestConnectionStatusStarted SyncTestConnectionStatus = "started" -) - // Defines values for TeamPlan. const ( TeamPlanEnterprise TeamPlan = "enterprise" @@ -686,193 +623,6 @@ type CheckUserAuthStatus200Response struct { Authenticated bool `json:"authenticated"` } -// 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 interface{} `json:"base_url"` - - // Env Environment variables used in the spec. - Env *interface{} `json:"env,omitempty"` - - // ReturnURL URL the user was redirected to (including new parameter values) after the OAuth flow is complete - ReturnURL interface{} `json:"return_url"` - Spec *map[string]interface{} `json:"spec,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// ConnectorAuthRequestAWS AWS connector authentication request to start the authentication process -type ConnectorAuthRequestAWS struct { - // Env Environment variables used in the spec. - Env *interface{} `json:"env,omitempty"` - - // PluginKind Kind of the plugin - PluginKind interface{} `json:"plugin_kind"` - - // PluginName Name of the plugin - PluginName interface{} `json:"plugin_name"` - - // PluginTeam Team that owns the plugin we are authenticating the connector for - PluginTeam interface{} `json:"plugin_team"` - - // PluginVersion Version of the plugin - PluginVersion *interface{} `json:"plugin_version,omitempty"` - - // SkipDependentTables Whether to skip dependent tables, setting from the outer spec - SkipDependentTables *interface{} `json:"skip_dependent_tables,omitempty"` - - // SkipTables Tables to skip authentication, setting from the outer spec - SkipTables *interface{} `json:"skip_tables,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Tables Tables to authenticate, setting from the outer spec - Tables *interface{} `json:"tables,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// 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 interface{} `json:"base_url"` - - // Env Environment variables used in the spec. - Env *interface{} `json:"env,omitempty"` - - // Flavor Override default flavor - Flavor *interface{} `json:"flavor,omitempty"` - - // PluginKind Kind of the plugin - PluginKind interface{} `json:"plugin_kind"` - - // PluginName Name of the plugin - PluginName interface{} `json:"plugin_name"` - - // PluginTeam Team that owns the plugin we are authenticating the connector for - PluginTeam interface{} `json:"plugin_team"` - - // PluginVersion Version of the plugin - PluginVersion *interface{} `json:"plugin_version,omitempty"` - - // SkipDependentTables Whether to skip dependent tables, setting from the outer spec - SkipDependentTables *interface{} `json:"skip_dependent_tables,omitempty"` - - // SkipTables Tables to skip authentication, setting from the outer spec - SkipTables *interface{} `json:"skip_tables,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Tables Tables to authenticate, setting from the outer spec - Tables *interface{} `json:"tables,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// 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 @@ -939,30 +689,6 @@ type CreatePluginVersionRequest struct { SupportedTargets []string `json:"supported_targets"` } -// CreateSyncRunProgressRequest defines model for CreateSyncRunProgress_request. -type CreateSyncRunProgressRequest 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"` -} - // CreateTeamAPIKeyRequest defines model for CreateTeamAPIKey_request. type CreateTeamAPIKeyRequest struct { ExpiresAt time.Time `json:"expires_at"` @@ -1025,9 +751,6 @@ type DeterminePlatformTenantByEmail200Response struct { Items []TenantUser `json:"items,omitempty"` } -// 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"` @@ -1075,21 +798,6 @@ type FunctionCallOutput struct { AdditionalProperties map[string]interface{} `json:"-"` } -// GetConnectorAuthStatusAWS200Response defines model for GetConnectorAuthStatusAWS_200_response. -type GetConnectorAuthStatusAWS200Response 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"` -} - -// GetConnectorAuthStatusGCP200Response defines model for GetConnectorAuthStatusGCP_200_response. -type GetConnectorAuthStatusGCP200Response struct { - // ServiceAccount CloudQuery GCP Service Account to grant access to - ServiceAccount *string `json:"service_account,omitempty"` -} - // GetCurrentUserMemberships200Response defines model for GetCurrentUserMemberships_200_response. type GetCurrentUserMemberships200Response struct { Items []MembershipWithTeam `json:"items"` @@ -1102,21 +810,6 @@ type GetManagedDatabases200Response struct { Metadata ListMetadata `json:"metadata"` } -// GetSyncRunConnectorCredentials200Response defines model for GetSyncRunConnectorCredentials_200_response. -type GetSyncRunConnectorCredentials200Response struct { - // Aws AWS connector credentials response - Aws *ConnectorCredentialsResponseAWS `json:"aws,omitempty"` - - // Oauth OAuth connector credentials response - Oauth *ConnectorCredentialsResponseOAuth `json:"oauth,omitempty"` -} - -// GetSyncRunConnectorIdentity200Response defines model for GetSyncRunConnectorIdentity_200_response. -type GetSyncRunConnectorIdentity200Response struct { - // Aws AWS connector identity response - Aws *ConnectorIdentityResponseAWS `json:"aws,omitempty"` -} - // GetTeamMemberships200Response defines model for GetTeamMemberships_200_response. type GetTeamMemberships200Response struct { Items []MembershipWithUser `json:"items"` @@ -1235,12 +928,6 @@ type ListAddons200Response struct { Metadata ListMetadata `json:"metadata"` } -// ListConnectors200Response defines model for ListConnectors_200_response. -type ListConnectors200Response struct { - Items []Connector `json:"items"` - Metadata ListMetadata `json:"metadata"` -} - // ListCurrentUserInvitations200Response defines model for ListCurrentUserInvitations_200_response. type ListCurrentUserInvitations200Response struct { Items []InvitationWithToken `json:"items"` @@ -1371,30 +1058,6 @@ type ListSubscriptionOrdersByTeam200Response struct { Metadata ListMetadata `json:"metadata"` } -// ListSyncDestinations200Response defines model for ListSyncDestinations_200_response. -type ListSyncDestinations200Response struct { - Items []SyncDestination `json:"items"` - Metadata ListMetadata `json:"metadata"` -} - -// ListSyncRuns200Response defines model for ListSyncRuns_200_response. -type ListSyncRuns200Response struct { - Items []SyncRun `json:"items"` - Metadata ListMetadata `json:"metadata"` -} - -// ListSyncSourceSyncs200Response defines model for ListSyncSourceSyncs_200_response. -type ListSyncSourceSyncs200Response struct { - Items []Sync `json:"items"` - Metadata ListMetadata `json:"metadata"` -} - -// ListSyncSources200Response defines model for ListSyncSources_200_response. -type ListSyncSources200Response struct { - Items []SyncSource `json:"items"` - Metadata ListMetadata `json:"metadata"` -} - // ListTeamAPIKeys200Response defines model for ListTeamAPIKeys_200_response. type ListTeamAPIKeys200Response struct { Items []APIKey `json:"items"` @@ -2072,42 +1735,6 @@ type PriceCategorySpend struct { Total string `json:"total"` } -// PromoteSyncDestinationTestConnection Sync Destination Definition -type PromoteSyncDestinationTestConnection struct { - // DisplayName A human-readable display name - DisplayName *DisplayName `json:"display_name,omitempty"` - - // MigrateMode Migrate mode for the destination - MigrateMode *SyncDestinationMigrateMode `json:"migrate_mode,omitempty"` - - // Name Descriptive, unique name for the destination. The name can only contain ASCII letters, digits, - and _. - Name string `json:"name"` - - // OverwriteDestination Set this to allow overwriting an existing sync destination. Defaults to true to preserve compatibility. - OverwriteDestination *bool `json:"overwrite_destination,omitempty"` - - // WriteMode Write mode for the destination - WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` -} - -// PromoteSyncSourceTestConnection Sync Source Definition -type PromoteSyncSourceTestConnection struct { - // DisplayName A human-readable display name - DisplayName *DisplayName `json:"display_name,omitempty"` - - // Name Descriptive, unique name for the source. The name can only contain ASCII letters, digits, - and _. - Name string `json:"name"` - - // OverwriteSource Set this to allow overwriting an existing sync source. Defaults to true to preserve compatibility. - OverwriteSource *bool `json:"overwrite_source,omitempty"` - - // SkipTables Tables matched by `tables` that should be skipped. Wildcards are supported. - SkipTables *[]string `json:"skip_tables,omitempty"` - - // Tables Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified. - Tables []string `json:"tables"` -} - // RegisterUser201Response defines model for RegisterUser_201_response. type RegisterUser201Response struct { // CustomToken Token to exchange for ID token @@ -2267,668 +1894,115 @@ type SpendingLimitUpdate struct { USD int `json:"usd"` } -// Sync Managed Sync definition -type Sync struct { - // CPU CPU quota for the sync - CPU string `json:"cpu"` - - // CreatedAt Time when the sync was created - CreatedAt time.Time `json:"created_at"` - CreatedBy *string `json:"created_by,omitempty"` - - // Destinations List of destinations for the sync - Destinations []string `json:"destinations"` +// Team CloudQuery Team +type Team struct { + CreatedAt *time.Time `json:"created_at,omitempty"` - // Disabled Whether the sync is disabled - Disabled bool `json:"disabled"` + // DisplayName The team's display name + DisplayName string `json:"display_name"` + Internal bool `json:"internal"` + IsTrialActive bool `json:"is_trial_active"` - // DisplayName A human-readable display name - DisplayName DisplayName `json:"display_name"` + // Name The unique name for the team. + Name TeamName `json:"name"` - // Incremental Managed Sync Incremental Options definition - Incremental *SyncIncremental `json:"incremental,omitempty"` + // 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"` +} - // Memory Memory quota for the sync - Memory string `json:"memory"` +// TeamImage defines model for TeamImage. +type TeamImage struct { + // Checksum SHA1 checksum of image + Checksum string `json:"checksum"` - // Name Descriptive, unique name for the sync. The name can only contain ASCII letters, digits, - and _. + // Name Name of image Name string `json:"name"` - // Schedule Cron schedule for the sync - Schedule string `json:"schedule"` + // RequiredHeaders Required HTTP headers to include for the upload + RequiredHeaders map[string]interface{} `json:"required_headers"` - // Source Unique name of the source - Source string `json:"source"` + // UploadURL URL to upload image + UploadURL *string `json:"upload_url,omitempty"` - // UpdatedAt Time when the sync was updated - UpdatedAt time.Time `json:"updated_at"` + // URL URL to download image + URL string `json:"url"` } -// SyncCreate Managed Sync definition -type SyncCreate struct { - // CPU CPU quota for the sync - CPU *string `json:"cpu,omitempty"` - Destinations []string `json:"destinations"` - - // Disabled Whether the sync is disabled - Disabled *bool `json:"disabled,omitempty"` - - // DisplayName A human-readable display name - DisplayName *DisplayName `json:"display_name,omitempty"` - - // Incremental Managed Sync Incremental Options definition - Incremental *SyncIncremental `json:"incremental,omitempty"` +// TeamImageCreate defines model for TeamImageCreate. +type TeamImageCreate struct { + // Checksum SHA1 checksum of image + Checksum string `json:"checksum"` - // Memory Memory quota for the sync - Memory *string `json:"memory,omitempty"` + // ContentType The HTTP Content-Type of the image or asset + ContentType ContentType `json:"content_type"` - // Name Descriptive, unique name for the sync. The name can only contain ASCII letters, digits, - and _. + // Name Name of image Name string `json:"name"` - - // Schedule Cron schedule for the sync - Schedule *string `json:"schedule,omitempty"` - - // Source Unique name of the source - Source string `json:"source"` } -// 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"` - - // DisplayName A human-readable display name - DisplayName *DisplayName `json:"display_name,omitempty"` - - // Draft 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. - Draft bool `json:"draft"` +// TeamName The unique name for the team. +type TeamName = string - // Env Environment variables for the plugin. - Env []SyncEnv `json:"env"` +// TeamPlan The plan the team is on (trial is deprecated) +type TeamPlan string - // LastUpdateSource How was the source or destination been created or updated last - LastUpdateSource *SyncLastUpdateSource `json:"last_update_source,omitempty"` +// TeamSubscriptionOrder Team subscription order +type TeamSubscriptionOrder struct { + CompletedAt *time.Time `json:"completed_at,omitempty"` - // MigrateMode Migrate mode for the destination - MigrateMode *SyncDestinationMigrateMode `json:"migrate_mode,omitempty"` + // CompletionURL Stripe URL for completing purchase. Only shown in response to POST request when a paid plan is selected. + CompletionURL *string `json:"completion_url,omitempty"` + CreatedAt time.Time `json:"created_at"` - // Name Descriptive, unique name for the destination. The name can only contain ASCII letters, digits, - and _. - Name string `json:"name"` + // TeamSubscriptionOrderID ID of the team subscription order + TeamSubscriptionOrderID TeamSubscriptionOrderID `json:"id"` - // Path Plugin path in CloudQuery registry - Path SyncPluginPath `json:"path"` - Spec *map[string]interface{} `json:"spec,omitempty"` + // Plan The plan the team is on (trial is deprecated) + Plan TeamPlan `json:"plan"` + Status TeamSubscriptionOrderStatus `json:"status"` - // UpdatedAt Time when the source was last updated + // TeamName The unique name for the team. + TeamName TeamName `json:"team_name"` UpdatedAt time.Time `json:"updated_at"` - - // Version Version of the plugin - Version string `json:"version"` - - // WriteMode Write mode for the destination - WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` } -// 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"` - - // Env Environment variables for the plugin. All environment variables will be stored as secrets. - Env *[]SyncEnvCreate `json:"env,omitempty"` - - // LastUpdateSource How was the source or destination been created or updated last - LastUpdateSource *SyncLastUpdateSource `json:"last_update_source,omitempty"` - - // MigrateMode Migrate mode for the destination - MigrateMode *SyncDestinationMigrateMode `json:"migrate_mode,omitempty"` - - // Name Descriptive, unique name for the destination. The name can only contain ASCII letters, digits, - and _. - Name string `json:"name"` - - // Path Plugin path in CloudQuery registry - Path SyncPluginPath `json:"path"` - Spec *map[string]interface{} `json:"spec,omitempty"` +// TeamSubscriptionOrderCreate Create team subscription order +type TeamSubscriptionOrderCreate struct { + // CancelUrl URL to redirect to after order cancellation + CancelUrl string `json:"cancel_url"` - // Version Version of the plugin - Version string `json:"version"` + // Plan The plan the team is on (trial is deprecated) + Plan TeamPlan `json:"plan"` - // WriteMode Write mode for the destination - WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` + // SuccessUrl URL to redirect to after successful order completion + SuccessUrl string `json:"success_url"` } -// SyncDestinationMigrateMode Migrate mode for the destination -type SyncDestinationMigrateMode string - -// SyncDestinationMigrateModeUpdate Migrate mode for the destination, for updating -type SyncDestinationMigrateModeUpdate string - -// SyncDestinationTestConnection defines model for SyncDestinationTestConnection. -type SyncDestinationTestConnection struct { - // CompletedAt Time the test connection was completed - CompletedAt *time.Time `json:"completed_at,omitempty"` - - // CreatedAt Time the test connection was created - CreatedAt time.Time `json:"created_at"` - - // FailureCode Code for failure - FailureCode *string `json:"failure_code,omitempty"` - - // FailureReason Reason for failure - FailureReason *string `json:"failure_reason,omitempty"` - - // ID unique ID of the test connection - ID ID `json:"id"` +// TeamSubscriptionOrderID ID of the team subscription order +type TeamSubscriptionOrderID = openapi_types.UUID - // PluginPath Plugin path in CloudQuery registry - PluginPath *SyncPluginPath `json:"plugin_path,omitempty"` +// TeamSubscriptionOrderStatus defines model for TeamSubscriptionOrderStatus. +type TeamSubscriptionOrderStatus string - // PluginVersion The version in semantic version format. - PluginVersion *VersionName `json:"plugin_version,omitempty"` +// TenantUser Tenant information of a platform user +type TenantUser struct { + // Provider Login provider of the tenant + Provider *string `json:"provider,omitempty"` - // Status The status of the sync run - Status SyncTestConnectionStatus `json:"status"` + // TenantURL URL of the tenant + TenantURL string `json:"tenant_url"` } -// 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"` - - // Env Environment variables for the plugin. All environment variables will be stored as secrets. - Env *[]SyncEnvCreate `json:"env,omitempty"` - - // MigrateMode Migrate mode for the destination - MigrateMode *SyncDestinationMigrateMode `json:"migrate_mode,omitempty"` - - // Path Plugin path in CloudQuery registry - Path SyncPluginPath `json:"path"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Version Version of the plugin - Version string `json:"version"` +// UpdateCurrentUserRequest defines model for UpdateCurrentUser_request. +type UpdateCurrentUserRequest struct { + // Name The unique name for the user. + Name *UserName `json:"name,omitempty"` - // WriteMode Write mode for the destination - WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` -} - -// SyncDestinationTestConnectionID ID of the Sync Destination Test Connection -type SyncDestinationTestConnectionID = openapi_types.UUID - -// SyncDestinationUpdate Sync Destination Update Definition -type SyncDestinationUpdate 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"` - - // MigrateMode Migrate mode for the destination, for updating - MigrateMode *SyncDestinationMigrateModeUpdate `json:"migrate_mode,omitempty"` - - // WriteMode Write mode for the destination, for updating - WriteMode *SyncDestinationWriteModeUpdate `json:"write_mode,omitempty"` -} - -// SyncDestinationWriteMode Write mode for the destination -type SyncDestinationWriteMode string - -// SyncDestinationWriteModeUpdate Write mode for the destination, for updating -type SyncDestinationWriteModeUpdate string - -// SyncEnv Environment variable. Environment variables are assumed to be secret. -type SyncEnv struct { - // Name Name of the environment variable - Name string `json:"name"` -} - -// SyncEnvCreate Environment variable. Environment variables are assumed to be secret. -type SyncEnvCreate struct { - // Name Name of the environment variable - Name string `json:"name"` - - // Value Value of the environment variable - Value *string `json:"value,omitempty"` -} - -// SyncIncremental Managed Sync Incremental Options definition -type SyncIncremental struct { - // Destination Name of the destination in which to store incremental sync data - Destination string `json:"destination"` - - // Table Name of the table in which to store incremental sync data - Table string `json:"table"` -} - -// SyncIncrementalUpdate Managed Sync Incremental Options Update definition -type SyncIncrementalUpdate struct { - // Destination Name of the destination in which to store incremental sync data - Destination *string `json:"destination,omitempty"` - - // Table Name of the table in which to store incremental sync data - Table *string `json:"table,omitempty"` -} - -// SyncLastUpdateSource How was the source or destination been created or updated last -type SyncLastUpdateSource string - -// SyncPluginPath Plugin path in CloudQuery registry -type SyncPluginPath = string - -// SyncRun Managed Sync Run definition -type SyncRun struct { - // CompletedAt Time the sync run was completed - CompletedAt *time.Time `json:"completed_at,omitempty"` - - // CreatedAt Time the sync run was created - CreatedAt time.Time `json:"created_at"` - - // Errors Number of errors encountered during the sync - Errors int64 `json:"errors"` - - // ID unique ID of the run - ID openapi_types.UUID `json:"id"` - - // Status The status of the sync run - Status SyncRunStatus `json:"status"` - - // StatusReason The reason for the status - StatusReason *SyncRunStatusReason `json:"status_reason,omitempty"` - - // SyncName Name of the sync - SyncName string `json:"sync_name"` - - // TotalRows Total number of rows in the sync - TotalRows int64 `json:"total_rows"` - - // Warnings Number of warnings encountered during the sync - Warnings int64 `json:"warnings"` -} - -// SyncRunDetails defines model for SyncRunDetails. -type SyncRunDetails struct { - // CompletedAt Time the sync run was completed - CompletedAt *time.Time `json:"completed_at,omitempty"` - - // CPUSeconds Total CPU seconds utilized during this sync run - CPUSeconds *float64 `json:"cpu_seconds,omitempty"` - - // CreatedAt Time the sync run was created - CreatedAt time.Time `json:"created_at"` - - // Errors Number of errors encountered during the sync - Errors int64 `json:"errors"` - - // ID unique ID of the run - ID openapi_types.UUID `json:"id"` - - // MemoryByteSeconds Total memory byte seconds utilized during this sync run - MemoryByteSeconds *float64 `json:"memory_byte_seconds,omitempty"` - - // NetworkEgressBytes Total network egress bytes during this sync run - NetworkEgressBytes *float64 `json:"network_egress_bytes,omitempty"` - - // Status The status of the sync run - Status SyncRunStatus `json:"status"` - - // StatusReason The reason for the status - StatusReason *SyncRunStatusReason `json:"status_reason,omitempty"` - - // SyncName Name of the sync - SyncName string `json:"sync_name"` - - // TotalRows Total number of rows in the sync - TotalRows int64 `json:"total_rows"` - - // Warnings Number of warnings encountered during the sync - Warnings int64 `json:"warnings"` -} - -// SyncRunID ID of the SyncRun -type SyncRunID = openapi_types.UUID - -// SyncRunStatus The status of the sync run -type SyncRunStatus string - -// SyncRunStatusReason The reason for the status -type SyncRunStatusReason string - -// SyncRunTableProgress Table-specific progress information for a sync run -type SyncRunTableProgress map[string]SyncRunTableProgressValue - -// SyncRunTableProgressValue defines model for SyncRunTableProgress_value. -type SyncRunTableProgressValue struct { - // Errors Number of errors for this table - Errors int64 `json:"errors"` - - // Rows Number of rows processed for this table - Rows int64 `json:"rows"` -} - -// 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"` - - // DisplayName A human-readable display name - DisplayName *DisplayName `json:"display_name,omitempty"` - - // Draft If a sync source is in draft, it cannot be used in syncs. To get it out of draft, 'promote' it using a successful test connection ID. - Draft bool `json:"draft"` - - // Env Environment variables for the plugin. - Env []SyncEnv `json:"env"` - - // LastUpdateSource How was the source or destination been created or updated last - LastUpdateSource *SyncLastUpdateSource `json:"last_update_source,omitempty"` - - // Name Descriptive, unique name for the source. The name can only contain ASCII letters, digits, - and _. - Name string `json:"name"` - - // Path Plugin path in CloudQuery registry - Path SyncPluginPath `json:"path"` - - // SkipTables Tables matched by `tables` that should be skipped. Wildcards are supported. - SkipTables *[]string `json:"skip_tables,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Tables Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified. - Tables []string `json:"tables"` - - // UpdatedAt Time when the source was last updated - UpdatedAt time.Time `json:"updated_at"` - - // Version Version of the plugin - Version string `json:"version"` -} - -// 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"` - - // Env Environment variables for the plugin. All environment variables will be stored as secrets. - Env *[]SyncEnvCreate `json:"env,omitempty"` - - // LastUpdateSource How was the source or destination been created or updated last - LastUpdateSource *SyncLastUpdateSource `json:"last_update_source,omitempty"` - - // Name Descriptive, unique name for the source. The name can only contain ASCII letters, digits, - and _. - Name string `json:"name"` - - // Path Plugin path in CloudQuery registry - Path SyncPluginPath `json:"path"` - - // SkipTables Tables matched by `tables` that should be skipped. Wildcards are supported. - SkipTables *[]string `json:"skip_tables,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Tables Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified. - Tables []string `json:"tables"` - - // Version Version of the plugin - Version string `json:"version"` -} - -// SyncSourceTestConnection defines model for SyncSourceTestConnection. -type SyncSourceTestConnection struct { - // CompletedAt Time the test connection was completed - CompletedAt *time.Time `json:"completed_at,omitempty"` - - // CreatedAt Time the test connection was created - CreatedAt time.Time `json:"created_at"` - - // FailureCode Code for failure - FailureCode *string `json:"failure_code,omitempty"` - - // FailureReason Reason for failure - FailureReason *string `json:"failure_reason,omitempty"` - - // ID unique ID of the test connection - ID ID `json:"id"` - - // PluginPath Plugin path in CloudQuery registry - PluginPath *SyncPluginPath `json:"plugin_path,omitempty"` - - // PluginVersion The version in semantic version format. - PluginVersion *VersionName `json:"plugin_version,omitempty"` - - // Status The status of the sync run - Status SyncTestConnectionStatus `json:"status"` -} - -// 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"` - - // Path Plugin path in CloudQuery registry - Path SyncPluginPath `json:"path"` - - // SourceName Name of an existing source - SourceName *string `json:"source_name,omitempty"` - Spec *map[string]interface{} `json:"spec,omitempty"` - - // Version Version of the plugin - Version string `json:"version"` -} - -// SyncSourceTestConnectionID ID of the Sync Source Test Connection -type SyncSourceTestConnectionID = openapi_types.UUID - -// SyncSourceUpdate Sync Source Update Definition -type SyncSourceUpdate 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"` - - // SkipTables Tables matched by `tables` that should be skipped. Wildcards are supported. - SkipTables *[]string `json:"skip_tables,omitempty"` - - // Tables Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified. - Tables *[]string `json:"tables,omitempty"` -} - -// SyncTestConnection defines model for SyncTestConnection. -type SyncTestConnection struct { - // CompletedAt Time the test connection was completed - CompletedAt *time.Time `json:"completed_at,omitempty"` - - // CreatedAt Time the test connection was created - CreatedAt time.Time `json:"created_at"` - - // FailureCode Code for failure - FailureCode *string `json:"failure_code,omitempty"` - - // FailureReason Reason for failure - FailureReason *string `json:"failure_reason,omitempty"` - - // ID unique ID of the test connection - ID ID `json:"id"` - - // PluginKind The kind of plugin, ie. source or destination. - PluginKind *PluginKind `json:"plugin_kind,omitempty"` - - // PluginPath Plugin path in CloudQuery registry - PluginPath *SyncPluginPath `json:"plugin_path,omitempty"` - - // PluginVersion The version in semantic version format. - PluginVersion *VersionName `json:"plugin_version,omitempty"` - - // Status The status of the sync run - Status SyncTestConnectionStatus `json:"status"` -} - -// ID unique ID of the test connection -type ID = openapi_types.UUID - -// SyncTestConnectionStatus The status of the sync run -type SyncTestConnectionStatus string - -// SyncUpdate Managed Sync definition -type SyncUpdate struct { - // CPU CPU quota for the sync - CPU *string `json:"cpu,omitempty"` - Destinations *[]string `json:"destinations,omitempty"` - - // Disabled Whether the sync is disabled - Disabled *bool `json:"disabled,omitempty"` - - // DisplayName A human-readable display name - DisplayName *DisplayName `json:"display_name,omitempty"` - - // Env Environment variables for the sync - Env *[]SyncEnv `json:"env,omitempty"` - - // Incremental Managed Sync Incremental Options Update definition - Incremental *SyncIncrementalUpdate `json:"incremental,omitempty"` - - // Memory Memory quota for the sync - Memory *string `json:"memory,omitempty"` - - // Schedule Cron schedule for the sync - Schedule *string `json:"schedule,omitempty"` - - // Source Unique name of the source - Source *string `json:"source,omitempty"` -} - -// SyncRunLogs defines model for Sync_Run_Logs. -type SyncRunLogs struct { - // Location The location to download the sync run logs from - Location interface{} `json:"location"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// 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]interface{} `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 - -// TeamSubscriptionOrder Team subscription order -type TeamSubscriptionOrder struct { - CompletedAt *time.Time `json:"completed_at,omitempty"` - - // CompletionURL Stripe URL for completing purchase. Only shown in response to POST request when a paid plan is selected. - CompletionURL *string `json:"completion_url,omitempty"` - CreatedAt time.Time `json:"created_at"` - - // TeamSubscriptionOrderID ID of the team subscription order - TeamSubscriptionOrderID TeamSubscriptionOrderID `json:"id"` - - // Plan The plan the team is on (trial is deprecated) - Plan TeamPlan `json:"plan"` - Status TeamSubscriptionOrderStatus `json:"status"` - - // TeamName The unique name for the team. - TeamName TeamName `json:"team_name"` - UpdatedAt time.Time `json:"updated_at"` -} - -// TeamSubscriptionOrderCreate Create team subscription order -type TeamSubscriptionOrderCreate struct { - // CancelUrl URL to redirect to after order cancellation - CancelUrl string `json:"cancel_url"` - - // Plan The plan the team is on (trial is deprecated) - Plan TeamPlan `json:"plan"` - - // SuccessUrl URL to redirect to after successful order completion - SuccessUrl string `json:"success_url"` -} - -// TeamSubscriptionOrderID ID of the team subscription order -type TeamSubscriptionOrderID = openapi_types.UUID - -// TeamSubscriptionOrderStatus defines model for TeamSubscriptionOrderStatus. -type TeamSubscriptionOrderStatus string - -// TenantUser Tenant information of a platform user -type TenantUser struct { - // Provider Login provider of the tenant - Provider *string `json:"provider,omitempty"` - - // TenantURL URL of the tenant - TenantURL string `json:"tenant_url"` -} - -// UpdateCurrentUserRequest defines model for UpdateCurrentUser_request. -type UpdateCurrentUserRequest struct { - // Name The unique name for the user. - Name *UserName `json:"name,omitempty"` - - // Onboarded Whether the user has completed onboarding - Onboarded *UserOnboarded `json:"onboarded,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` + // Onboarded Whether the user has completed onboarding + Onboarded *UserOnboarded `json:"onboarded,omitempty"` + AdditionalProperties map[string]interface{} `json:"-"` } // UpdateCustomerRequest defines model for UpdateCustomer_request. @@ -2942,27 +2016,6 @@ type UpdateCustomerRequest struct { AdditionalProperties map[string]interface{} `json:"-"` } -// UpdateSyncRunRequest defines model for UpdateSyncRun_request. -type UpdateSyncRunRequest struct { - // Status The status of the sync run - Status *SyncRunStatus `json:"status,omitempty"` - - // StatusReason The reason for the status - StatusReason *SyncRunStatusReason `json:"status_reason,omitempty"` -} - -// UpdateSyncTestConnectionForSyncSourceRequest defines model for UpdateSyncTestConnectionForSyncSource_request. -type UpdateSyncTestConnectionForSyncSourceRequest 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"` -} - // UpdateTeamRequest defines model for UpdateTeam_request. type UpdateTeamRequest struct { // DisplayName The team's display name @@ -3205,23 +2258,8 @@ type PluginSortBy string // PluginTeam The unique name for the team. type PluginTeam = TeamName -// SyncDestinationName Unique name of the sync destination -type SyncDestinationName = string - -// SyncName Unique name of the sync -type SyncName = string - -// SyncRunId ID of the SyncRun -type SyncRunId = SyncRunID - -// SyncSourceName Unique name of the sync source -type SyncSourceName = string - -// SyncTestConnectionId unique ID of the test connection -type SyncTestConnectionId = ID - -// TargetName defines model for target_name. -type TargetName = string +// TargetName defines model for target_name. +type TargetName = string // VersionSortBy defines model for version_sort_by. type VersionSortBy string @@ -3434,21 +2472,6 @@ type ListTeamAPIKeysParams struct { Page *Page `form:"page,omitempty" json:"page,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"` -} - // ListTeamInvitationsParams defines parameters for ListTeamInvitations. type ListTeamInvitationsParams struct { // Page Page number of the results to fetch @@ -3520,65 +2543,6 @@ type ListSubscriptionOrdersByTeamParams struct { PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"` } -// ListSyncDestinationsParams defines parameters for ListSyncDestinations. -type ListSyncDestinationsParams 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"` -} - -// ListSyncDestinationSyncsParams defines parameters for ListSyncDestinationSyncs. -type ListSyncDestinationSyncsParams 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"` -} - -// ListSyncSourcesParams defines parameters for ListSyncSources. -type ListSyncSourcesParams 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"` -} - -// ListSyncSourceSyncsParams defines parameters for ListSyncSourceSyncs. -type ListSyncSourceSyncsParams 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"` -} - -// ListSyncsParams defines parameters for ListSyncs. -type ListSyncsParams 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"` -} - -// ListSyncRunsParams defines parameters for ListSyncRuns. -type ListSyncRunsParams 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"` -} - -// GetSyncRunLogsParams defines parameters for GetSyncRunLogs. -type GetSyncRunLogsParams struct { - Accept *string `json:"Accept,omitempty"` -} - // ListTeamPluginUsageParams defines parameters for ListTeamPluginUsage. type ListTeamPluginUsageParams struct { // Page Page number of the results to fetch @@ -3738,27 +2702,6 @@ type AIOnboardingNewConversationJSONRequestBody = AIOnboardingNewConversationReq // CreateTeamAPIKeyJSONRequestBody defines body for CreateTeamAPIKey for application/json ContentType. type CreateTeamAPIKeyJSONRequestBody = CreateTeamAPIKeyRequest -// CreateConnectorJSONRequestBody defines body for CreateConnector for application/json ContentType. -type CreateConnectorJSONRequestBody = ConnectorCreate - -// UpdateConnectorJSONRequestBody defines body for UpdateConnector for application/json ContentType. -type UpdateConnectorJSONRequestBody = ConnectorUpdate - -// AuthenticateConnectorFinishAWSJSONRequestBody defines body for AuthenticateConnectorFinishAWS for application/json ContentType. -type AuthenticateConnectorFinishAWSJSONRequestBody = ConnectorAuthFinishRequestAWS - -// 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 - // CreateTeamImagesJSONRequestBody defines body for CreateTeamImages for application/json ContentType. type CreateTeamImagesJSONRequestBody = CreateTeamImagesRequest @@ -3789,42 +2732,6 @@ type UpdateSpendingLimitJSONRequestBody = SpendingLimitUpdate // CreateSubscriptionOrderForTeamJSONRequestBody defines body for CreateSubscriptionOrderForTeam for application/json ContentType. type CreateSubscriptionOrderForTeamJSONRequestBody = TeamSubscriptionOrderCreate -// CreateSyncDestinationTestConnectionJSONRequestBody defines body for CreateSyncDestinationTestConnection for application/json ContentType. -type CreateSyncDestinationTestConnectionJSONRequestBody = SyncDestinationTestConnectionCreate - -// UpdateSyncTestConnectionForSyncDestinationJSONRequestBody defines body for UpdateSyncTestConnectionForSyncDestination for application/json ContentType. -type UpdateSyncTestConnectionForSyncDestinationJSONRequestBody = UpdateSyncTestConnectionForSyncSourceRequest - -// PromoteSyncDestinationTestConnectionJSONRequestBody defines body for PromoteSyncDestinationTestConnection for application/json ContentType. -type PromoteSyncDestinationTestConnectionJSONRequestBody = PromoteSyncDestinationTestConnection - -// UpdateSyncDestinationJSONRequestBody defines body for UpdateSyncDestination for application/json ContentType. -type UpdateSyncDestinationJSONRequestBody = SyncDestinationUpdate - -// CreateSyncSourceTestConnectionJSONRequestBody defines body for CreateSyncSourceTestConnection for application/json ContentType. -type CreateSyncSourceTestConnectionJSONRequestBody = SyncSourceTestConnectionCreate - -// UpdateSyncTestConnectionForSyncSourceJSONRequestBody defines body for UpdateSyncTestConnectionForSyncSource for application/json ContentType. -type UpdateSyncTestConnectionForSyncSourceJSONRequestBody = UpdateSyncTestConnectionForSyncSourceRequest - -// PromoteSyncSourceTestConnectionJSONRequestBody defines body for PromoteSyncSourceTestConnection for application/json ContentType. -type PromoteSyncSourceTestConnectionJSONRequestBody = PromoteSyncSourceTestConnection - -// UpdateSyncSourceJSONRequestBody defines body for UpdateSyncSource for application/json ContentType. -type UpdateSyncSourceJSONRequestBody = SyncSourceUpdate - -// CreateSyncJSONRequestBody defines body for CreateSync for application/json ContentType. -type CreateSyncJSONRequestBody = SyncCreate - -// UpdateSyncJSONRequestBody defines body for UpdateSync for application/json ContentType. -type UpdateSyncJSONRequestBody = SyncUpdate - -// UpdateSyncRunJSONRequestBody defines body for UpdateSyncRun for application/json ContentType. -type UpdateSyncRunJSONRequestBody = UpdateSyncRunRequest - -// CreateSyncRunProgressJSONRequestBody defines body for CreateSyncRunProgress for application/json ContentType. -type CreateSyncRunProgressJSONRequestBody = CreateSyncRunProgressRequest - // IncreaseTeamPluginUsageJSONRequestBody defines body for IncreaseTeamPluginUsage for application/json ContentType. type IncreaseTeamPluginUsageJSONRequestBody = UsageIncrease @@ -4272,274 +3179,7 @@ func (a AIOnboardingNewConversationRequest) MarshalJSON() ([]byte, error) { object["try_resume"], err = json.Marshal(a.TryResume) if err != nil { return nil, fmt.Errorf("error marshaling 'try_resume': %w", err) - } - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ActivatePlatform200Response. Returns the specified -// element and whether it was found -func (a ActivatePlatform200Response) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ActivatePlatform200Response -func (a *ActivatePlatform200Response) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ActivatePlatform200Response to handle AdditionalProperties -func (a *ActivatePlatform200Response) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["activation_id"]; found { - err = json.Unmarshal(raw, &a.ActivationID) - if err != nil { - return fmt.Errorf("error reading 'activation_id': %w", err) - } - delete(object, "activation_id") - } - - if raw, found := object["next_check_in_seconds"]; found { - err = json.Unmarshal(raw, &a.NextCheckInSeconds) - if err != nil { - return fmt.Errorf("error reading 'next_check_in_seconds': %w", err) - } - delete(object, "next_check_in_seconds") - } - - if raw, found := object["team_name"]; found { - err = json.Unmarshal(raw, &a.TeamName) - if err != nil { - return fmt.Errorf("error reading 'team_name': %w", err) - } - delete(object, "team_name") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ActivatePlatform200Response to handle AdditionalProperties -func (a ActivatePlatform200Response) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - object["activation_id"], err = json.Marshal(a.ActivationID) - if err != nil { - return nil, fmt.Errorf("error marshaling 'activation_id': %w", err) - } - - object["next_check_in_seconds"], err = json.Marshal(a.NextCheckInSeconds) - if err != nil { - return nil, fmt.Errorf("error marshaling 'next_check_in_seconds': %w", err) - } - - object["team_name"], err = json.Marshal(a.TeamName) - if err != nil { - return nil, fmt.Errorf("error marshaling 'team_name': %w", err) - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ActivatePlatform205Response. Returns the specified -// element and whether it was found -func (a ActivatePlatform205Response) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ActivatePlatform205Response -func (a *ActivatePlatform205Response) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ActivatePlatform205Response to handle AdditionalProperties -func (a *ActivatePlatform205Response) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["button_text"]; found { - err = json.Unmarshal(raw, &a.ButtonText) - if err != nil { - return fmt.Errorf("error reading 'button_text': %w", err) - } - delete(object, "button_text") - } - - if raw, found := object["button_url"]; found { - err = json.Unmarshal(raw, &a.ButtonURL) - if err != nil { - return fmt.Errorf("error reading 'button_url': %w", err) - } - delete(object, "button_url") - } - - if raw, found := object["error"]; found { - err = json.Unmarshal(raw, &a.Error) - if err != nil { - return fmt.Errorf("error reading 'error': %w", err) - } - delete(object, "error") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ActivatePlatform205Response to handle AdditionalProperties -func (a ActivatePlatform205Response) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.ButtonText != nil { - object["button_text"], err = json.Marshal(a.ButtonText) - if err != nil { - return nil, fmt.Errorf("error marshaling 'button_text': %w", err) - } - } - - if a.ButtonURL != nil { - object["button_url"], err = json.Marshal(a.ButtonURL) - if err != nil { - return nil, fmt.Errorf("error marshaling 'button_url': %w", err) - } - } - - object["error"], err = json.Marshal(a.Error) - if err != nil { - return nil, fmt.Errorf("error marshaling 'error': %w", err) - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - -// Getter for additional properties for ActivatePlatformRequest. Returns the specified -// element and whether it was found -func (a ActivatePlatformRequest) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for ActivatePlatformRequest -func (a *ActivatePlatformRequest) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for ActivatePlatformRequest to handle AdditionalProperties -func (a *ActivatePlatformRequest) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["api_key"]; found { - err = json.Unmarshal(raw, &a.APIKey) - if err != nil { - return fmt.Errorf("error reading 'api_key': %w", err) - } - delete(object, "api_key") - } - - if raw, found := object["installation_id"]; found { - err = json.Unmarshal(raw, &a.InstallationID) - if err != nil { - return fmt.Errorf("error reading 'installation_id': %w", err) - } - delete(object, "installation_id") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for ActivatePlatformRequest to handle AdditionalProperties -func (a ActivatePlatformRequest) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - object["api_key"], err = json.Marshal(a.APIKey) - if err != nil { - return nil, fmt.Errorf("error marshaling 'api_key': %w", err) - } - - object["installation_id"], err = json.Marshal(a.InstallationID) - if err != nil { - return nil, fmt.Errorf("error marshaling 'installation_id': %w", err) + } } for fieldName, field := range a.AdditionalProperties { @@ -4551,61 +3191,53 @@ func (a ActivatePlatformRequest) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for ConnectorAuthFinishRequestOAuth. Returns the specified +// Getter for additional properties for ActivatePlatform200Response. Returns the specified // element and whether it was found -func (a ConnectorAuthFinishRequestOAuth) Get(fieldName string) (value interface{}, found bool) { +func (a ActivatePlatform200Response) Get(fieldName string) (value interface{}, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ConnectorAuthFinishRequestOAuth -func (a *ConnectorAuthFinishRequestOAuth) Set(fieldName string, value interface{}) { +// Setter for additional properties for ActivatePlatform200Response +func (a *ActivatePlatform200Response) Set(fieldName string, value interface{}) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]interface{}) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ConnectorAuthFinishRequestOAuth to handle AdditionalProperties -func (a *ConnectorAuthFinishRequestOAuth) UnmarshalJSON(b []byte) error { +// Override default JSON handling for ActivatePlatform200Response to handle AdditionalProperties +func (a *ActivatePlatform200Response) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { return err } - if raw, found := object["base_url"]; found { - err = json.Unmarshal(raw, &a.BaseURL) - if err != nil { - return fmt.Errorf("error reading 'base_url': %w", err) - } - delete(object, "base_url") - } - - if raw, found := object["env"]; found { - err = json.Unmarshal(raw, &a.Env) + if raw, found := object["activation_id"]; found { + err = json.Unmarshal(raw, &a.ActivationID) if err != nil { - return fmt.Errorf("error reading 'env': %w", err) + return fmt.Errorf("error reading 'activation_id': %w", err) } - delete(object, "env") + delete(object, "activation_id") } - if raw, found := object["return_url"]; found { - err = json.Unmarshal(raw, &a.ReturnURL) + if raw, found := object["next_check_in_seconds"]; found { + err = json.Unmarshal(raw, &a.NextCheckInSeconds) if err != nil { - return fmt.Errorf("error reading 'return_url': %w", err) + return fmt.Errorf("error reading 'next_check_in_seconds': %w", err) } - delete(object, "return_url") + delete(object, "next_check_in_seconds") } - if raw, found := object["spec"]; found { - err = json.Unmarshal(raw, &a.Spec) + if raw, found := object["team_name"]; found { + err = json.Unmarshal(raw, &a.TeamName) if err != nil { - return fmt.Errorf("error reading 'spec': %w", err) + return fmt.Errorf("error reading 'team_name': %w", err) } - delete(object, "spec") + delete(object, "team_name") } if len(object) != 0 { @@ -4622,33 +3254,24 @@ func (a *ConnectorAuthFinishRequestOAuth) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for ConnectorAuthFinishRequestOAuth to handle AdditionalProperties -func (a ConnectorAuthFinishRequestOAuth) MarshalJSON() ([]byte, error) { +// Override default JSON handling for ActivatePlatform200Response to handle AdditionalProperties +func (a ActivatePlatform200Response) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) - object["base_url"], err = json.Marshal(a.BaseURL) + object["activation_id"], err = json.Marshal(a.ActivationID) if err != nil { - return nil, fmt.Errorf("error marshaling 'base_url': %w", err) - } - - if a.Env != nil { - object["env"], err = json.Marshal(a.Env) - if err != nil { - return nil, fmt.Errorf("error marshaling 'env': %w", err) - } + return nil, fmt.Errorf("error marshaling 'activation_id': %w", err) } - object["return_url"], err = json.Marshal(a.ReturnURL) + object["next_check_in_seconds"], err = json.Marshal(a.NextCheckInSeconds) if err != nil { - return nil, fmt.Errorf("error marshaling 'return_url': %w", err) + return nil, fmt.Errorf("error marshaling 'next_check_in_seconds': %w", err) } - if a.Spec != nil { - object["spec"], err = json.Marshal(a.Spec) - if err != nil { - return nil, fmt.Errorf("error marshaling 'spec': %w", err) - } + object["team_name"], err = json.Marshal(a.TeamName) + if err != nil { + return nil, fmt.Errorf("error marshaling 'team_name': %w", err) } for fieldName, field := range a.AdditionalProperties { @@ -4660,101 +3283,53 @@ func (a ConnectorAuthFinishRequestOAuth) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for ConnectorAuthRequestAWS. Returns the specified +// Getter for additional properties for ActivatePlatform205Response. Returns the specified // element and whether it was found -func (a ConnectorAuthRequestAWS) Get(fieldName string) (value interface{}, found bool) { +func (a ActivatePlatform205Response) Get(fieldName string) (value interface{}, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ConnectorAuthRequestAWS -func (a *ConnectorAuthRequestAWS) Set(fieldName string, value interface{}) { +// Setter for additional properties for ActivatePlatform205Response +func (a *ActivatePlatform205Response) Set(fieldName string, value interface{}) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]interface{}) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ConnectorAuthRequestAWS to handle AdditionalProperties -func (a *ConnectorAuthRequestAWS) UnmarshalJSON(b []byte) error { +// Override default JSON handling for ActivatePlatform205Response to handle AdditionalProperties +func (a *ActivatePlatform205Response) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { return err } - if raw, found := object["env"]; found { - err = json.Unmarshal(raw, &a.Env) - if err != nil { - return fmt.Errorf("error reading 'env': %w", err) - } - delete(object, "env") - } - - if raw, found := object["plugin_kind"]; found { - err = json.Unmarshal(raw, &a.PluginKind) - if err != nil { - return fmt.Errorf("error reading 'plugin_kind': %w", err) - } - delete(object, "plugin_kind") - } - - if raw, found := object["plugin_name"]; found { - err = json.Unmarshal(raw, &a.PluginName) - if err != nil { - return fmt.Errorf("error reading 'plugin_name': %w", err) - } - delete(object, "plugin_name") - } - - if raw, found := object["plugin_team"]; found { - err = json.Unmarshal(raw, &a.PluginTeam) - if err != nil { - return fmt.Errorf("error reading 'plugin_team': %w", err) - } - delete(object, "plugin_team") - } - - if raw, found := object["plugin_version"]; found { - err = json.Unmarshal(raw, &a.PluginVersion) - if err != nil { - return fmt.Errorf("error reading 'plugin_version': %w", err) - } - delete(object, "plugin_version") - } - - if raw, found := object["skip_dependent_tables"]; found { - err = json.Unmarshal(raw, &a.SkipDependentTables) - if err != nil { - return fmt.Errorf("error reading 'skip_dependent_tables': %w", err) - } - delete(object, "skip_dependent_tables") - } - - if raw, found := object["skip_tables"]; found { - err = json.Unmarshal(raw, &a.SkipTables) + if raw, found := object["button_text"]; found { + err = json.Unmarshal(raw, &a.ButtonText) if err != nil { - return fmt.Errorf("error reading 'skip_tables': %w", err) + return fmt.Errorf("error reading 'button_text': %w", err) } - delete(object, "skip_tables") + delete(object, "button_text") } - if raw, found := object["spec"]; found { - err = json.Unmarshal(raw, &a.Spec) + if raw, found := object["button_url"]; found { + err = json.Unmarshal(raw, &a.ButtonURL) if err != nil { - return fmt.Errorf("error reading 'spec': %w", err) + return fmt.Errorf("error reading 'button_url': %w", err) } - delete(object, "spec") + delete(object, "button_url") } - if raw, found := object["tables"]; found { - err = json.Unmarshal(raw, &a.Tables) + if raw, found := object["error"]; found { + err = json.Unmarshal(raw, &a.Error) if err != nil { - return fmt.Errorf("error reading 'tables': %w", err) + return fmt.Errorf("error reading 'error': %w", err) } - delete(object, "tables") + delete(object, "error") } if len(object) != 0 { @@ -4771,66 +3346,28 @@ func (a *ConnectorAuthRequestAWS) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for ConnectorAuthRequestAWS to handle AdditionalProperties -func (a ConnectorAuthRequestAWS) MarshalJSON() ([]byte, error) { +// Override default JSON handling for ActivatePlatform205Response to handle AdditionalProperties +func (a ActivatePlatform205Response) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) - if a.Env != nil { - object["env"], err = json.Marshal(a.Env) - if err != nil { - return nil, fmt.Errorf("error marshaling 'env': %w", err) - } - } - - object["plugin_kind"], err = json.Marshal(a.PluginKind) - if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_kind': %w", err) - } - - object["plugin_name"], err = json.Marshal(a.PluginName) - if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_name': %w", err) - } - - object["plugin_team"], err = json.Marshal(a.PluginTeam) - if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_team': %w", err) - } - - if a.PluginVersion != nil { - object["plugin_version"], err = json.Marshal(a.PluginVersion) - if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_version': %w", err) - } - } - - if a.SkipDependentTables != nil { - object["skip_dependent_tables"], err = json.Marshal(a.SkipDependentTables) - if err != nil { - return nil, fmt.Errorf("error marshaling 'skip_dependent_tables': %w", err) - } - } - - if a.SkipTables != nil { - object["skip_tables"], err = json.Marshal(a.SkipTables) + if a.ButtonText != nil { + object["button_text"], err = json.Marshal(a.ButtonText) if err != nil { - return nil, fmt.Errorf("error marshaling 'skip_tables': %w", err) + return nil, fmt.Errorf("error marshaling 'button_text': %w", err) } } - if a.Spec != nil { - object["spec"], err = json.Marshal(a.Spec) + if a.ButtonURL != nil { + object["button_url"], err = json.Marshal(a.ButtonURL) if err != nil { - return nil, fmt.Errorf("error marshaling 'spec': %w", err) + return nil, fmt.Errorf("error marshaling 'button_url': %w", err) } } - if a.Tables != nil { - object["tables"], err = json.Marshal(a.Tables) - if err != nil { - return nil, fmt.Errorf("error marshaling 'tables': %w", err) - } + object["error"], err = json.Marshal(a.Error) + if err != nil { + return nil, fmt.Errorf("error marshaling 'error': %w", err) } for fieldName, field := range a.AdditionalProperties { @@ -4842,117 +3379,45 @@ func (a ConnectorAuthRequestAWS) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for ConnectorAuthRequestOAuth. Returns the specified +// Getter for additional properties for ActivatePlatformRequest. Returns the specified // element and whether it was found -func (a ConnectorAuthRequestOAuth) Get(fieldName string) (value interface{}, found bool) { +func (a ActivatePlatformRequest) Get(fieldName string) (value interface{}, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for ConnectorAuthRequestOAuth -func (a *ConnectorAuthRequestOAuth) Set(fieldName string, value interface{}) { +// Setter for additional properties for ActivatePlatformRequest +func (a *ActivatePlatformRequest) Set(fieldName string, value interface{}) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]interface{}) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for ConnectorAuthRequestOAuth to handle AdditionalProperties -func (a *ConnectorAuthRequestOAuth) UnmarshalJSON(b []byte) error { +// Override default JSON handling for ActivatePlatformRequest to handle AdditionalProperties +func (a *ActivatePlatformRequest) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { return err } - if raw, found := object["base_url"]; found { - err = json.Unmarshal(raw, &a.BaseURL) - if err != nil { - return fmt.Errorf("error reading 'base_url': %w", err) - } - delete(object, "base_url") - } - - if raw, found := object["env"]; found { - err = json.Unmarshal(raw, &a.Env) - if err != nil { - return fmt.Errorf("error reading 'env': %w", err) - } - delete(object, "env") - } - - if raw, found := object["flavor"]; found { - err = json.Unmarshal(raw, &a.Flavor) - if err != nil { - return fmt.Errorf("error reading 'flavor': %w", err) - } - delete(object, "flavor") - } - - if raw, found := object["plugin_kind"]; found { - err = json.Unmarshal(raw, &a.PluginKind) - if err != nil { - return fmt.Errorf("error reading 'plugin_kind': %w", err) - } - delete(object, "plugin_kind") - } - - if raw, found := object["plugin_name"]; found { - err = json.Unmarshal(raw, &a.PluginName) - if err != nil { - return fmt.Errorf("error reading 'plugin_name': %w", err) - } - delete(object, "plugin_name") - } - - if raw, found := object["plugin_team"]; found { - err = json.Unmarshal(raw, &a.PluginTeam) - if err != nil { - return fmt.Errorf("error reading 'plugin_team': %w", err) - } - delete(object, "plugin_team") - } - - if raw, found := object["plugin_version"]; found { - err = json.Unmarshal(raw, &a.PluginVersion) - if err != nil { - return fmt.Errorf("error reading 'plugin_version': %w", err) - } - delete(object, "plugin_version") - } - - if raw, found := object["skip_dependent_tables"]; found { - err = json.Unmarshal(raw, &a.SkipDependentTables) - if err != nil { - return fmt.Errorf("error reading 'skip_dependent_tables': %w", err) - } - delete(object, "skip_dependent_tables") - } - - if raw, found := object["skip_tables"]; found { - err = json.Unmarshal(raw, &a.SkipTables) - if err != nil { - return fmt.Errorf("error reading 'skip_tables': %w", err) - } - delete(object, "skip_tables") - } - - if raw, found := object["spec"]; found { - err = json.Unmarshal(raw, &a.Spec) + if raw, found := object["api_key"]; found { + err = json.Unmarshal(raw, &a.APIKey) if err != nil { - return fmt.Errorf("error reading 'spec': %w", err) + return fmt.Errorf("error reading 'api_key': %w", err) } - delete(object, "spec") + delete(object, "api_key") } - if raw, found := object["tables"]; found { - err = json.Unmarshal(raw, &a.Tables) + if raw, found := object["installation_id"]; found { + err = json.Unmarshal(raw, &a.InstallationID) if err != nil { - return fmt.Errorf("error reading 'tables': %w", err) + return fmt.Errorf("error reading 'installation_id': %w", err) } - delete(object, "tables") + delete(object, "installation_id") } if len(object) != 0 { @@ -4969,78 +3434,19 @@ func (a *ConnectorAuthRequestOAuth) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for ConnectorAuthRequestOAuth to handle AdditionalProperties -func (a ConnectorAuthRequestOAuth) MarshalJSON() ([]byte, error) { +// Override default JSON handling for ActivatePlatformRequest to handle AdditionalProperties +func (a ActivatePlatformRequest) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) - object["base_url"], err = json.Marshal(a.BaseURL) - if err != nil { - return nil, fmt.Errorf("error marshaling 'base_url': %w", err) - } - - if a.Env != nil { - object["env"], err = json.Marshal(a.Env) - if err != nil { - return nil, fmt.Errorf("error marshaling 'env': %w", err) - } - } - - if a.Flavor != nil { - object["flavor"], err = json.Marshal(a.Flavor) - if err != nil { - return nil, fmt.Errorf("error marshaling 'flavor': %w", err) - } - } - - object["plugin_kind"], err = json.Marshal(a.PluginKind) - if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_kind': %w", err) - } - - object["plugin_name"], err = json.Marshal(a.PluginName) + object["api_key"], err = json.Marshal(a.APIKey) if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_name': %w", err) + return nil, fmt.Errorf("error marshaling 'api_key': %w", err) } - object["plugin_team"], err = json.Marshal(a.PluginTeam) + object["installation_id"], err = json.Marshal(a.InstallationID) if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_team': %w", err) - } - - if a.PluginVersion != nil { - object["plugin_version"], err = json.Marshal(a.PluginVersion) - if err != nil { - return nil, fmt.Errorf("error marshaling 'plugin_version': %w", err) - } - } - - if a.SkipDependentTables != nil { - object["skip_dependent_tables"], err = json.Marshal(a.SkipDependentTables) - if err != nil { - return nil, fmt.Errorf("error marshaling 'skip_dependent_tables': %w", err) - } - } - - if a.SkipTables != nil { - object["skip_tables"], err = json.Marshal(a.SkipTables) - if err != nil { - return nil, fmt.Errorf("error marshaling 'skip_tables': %w", err) - } - } - - if a.Spec != nil { - object["spec"], err = json.Marshal(a.Spec) - if err != nil { - return nil, fmt.Errorf("error marshaling 'spec': %w", err) - } - } - - if a.Tables != nil { - object["tables"], err = json.Marshal(a.Tables) - if err != nil { - return nil, fmt.Errorf("error marshaling 'tables': %w", err) - } + return nil, fmt.Errorf("error marshaling 'installation_id': %w", err) } for fieldName, field := range a.AdditionalProperties { @@ -5957,72 +4363,6 @@ func (a SpendSummary) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for SyncRunLogs. Returns the specified -// element and whether it was found -func (a SyncRunLogs) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SyncRunLogs -func (a *SyncRunLogs) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SyncRunLogs to handle AdditionalProperties -func (a *SyncRunLogs) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err - } - - if raw, found := object["location"]; found { - err = json.Unmarshal(raw, &a.Location) - if err != nil { - return fmt.Errorf("error reading 'location': %w", err) - } - delete(object, "location") - } - - if len(object) != 0 { - a.AdditionalProperties = make(map[string]interface{}) - for fieldName, fieldBuf := range object { - var fieldVal interface{} - err := json.Unmarshal(fieldBuf, &fieldVal) - if err != nil { - return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err) - } - a.AdditionalProperties[fieldName] = fieldVal - } - } - return nil -} - -// Override default JSON handling for SyncRunLogs to handle AdditionalProperties -func (a SyncRunLogs) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - object["location"], err = json.Marshal(a.Location) - if err != nil { - return nil, fmt.Errorf("error marshaling 'location': %w", err) - } - - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) - if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) - } - } - return json.Marshal(object) -} - // Getter for additional properties for UpdateCurrentUserRequest. Returns the specified // element and whether it was found func (a UpdateCurrentUserRequest) Get(fieldName string) (value interface{}, found bool) { diff --git a/spec.json b/spec.json index 8ce2417..70fe722 100644 --- a/spec.json +++ b/spec.json @@ -38,8 +38,6 @@ "name" : "addons" }, { "name" : "registry" - }, { - "name" : "syncs" }, { "name" : "managed-databases" }, { @@ -4606,10 +4604,50 @@ "tags" : [ "registry" ] } }, - "/teams/{team_name}/sync-source-test-connections" : { + "/teams/{team_name}/managed-databases" : { + "get" : { + "description" : "Get a paginated list of managed databases", + "operationId" : "GetManagedDatabases", + "parameters" : [ { + "$ref" : "#/components/parameters/team_name" + }, { + "$ref" : "#/components/parameters/page" + }, { + "$ref" : "#/components/parameters/per_page" + } ], + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetManagedDatabases_200_response" + } + } + }, + "description" : "Response" + }, + "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" + } + }, + "tags" : [ "managed-databases" ], + "x-internal" : true + }, "post" : { - "description" : "Create a test source connection.", - "operationId" : "CreateSyncSourceTestConnection", + "description" : "Create a new managed database", + "operationId" : "CreateManagedDatabase", "parameters" : [ { "$ref" : "#/components/parameters/team_name" } ], @@ -4617,7 +4655,7 @@ "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncSourceTestConnectionCreate" + "$ref" : "#/components/schemas/ManagedDatabaseCreate" } } }, @@ -4628,7 +4666,7 @@ "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncSourceTestConnection" + "$ref" : "#/components/schemas/ManagedDatabase" } } }, @@ -4640,37 +4678,69 @@ "401" : { "$ref" : "#/components/responses/RequiresAuthentication" }, + "403" : { + "$ref" : "#/components/responses/Forbidden" + }, "404" : { "$ref" : "#/components/responses/NotFound" }, + "409" : { + "$ref" : "#/components/responses/Conflict" + }, "422" : { "$ref" : "#/components/responses/UnprocessableEntity" }, - "429" : { - "$ref" : "#/components/responses/TooManyRequests" - }, "500" : { "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "syncs" ] + "tags" : [ "managed-databases" ], + "x-internal" : true } }, - "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}" : { + "/teams/{team_name}/managed-databases/{managed_database_id}" : { + "delete" : { + "description" : "Delete this managed database. Any syncs relying on this database must be deleted first.", + "operationId" : "DeleteManagedDatabase", + "parameters" : [ { + "$ref" : "#/components/parameters/team_name" + }, { + "$ref" : "#/components/parameters/managed_database_id" + } ], + "responses" : { + "204" : { + "description" : "Deleted" + }, + "401" : { + "$ref" : "#/components/responses/RequiresAuthentication" + }, + "404" : { + "$ref" : "#/components/responses/NotFound" + }, + "422" : { + "$ref" : "#/components/responses/UnprocessableEntity" + }, + "500" : { + "$ref" : "#/components/responses/InternalError" + } + }, + "tags" : [ "managed-databases" ], + "x-internal" : true + }, "get" : { - "description" : "Get a sync source test connection.", - "operationId" : "GetSyncSourceTestConnection", + "description" : "Get a single managed database.", + "operationId" : "GetManagedDatabase", "parameters" : [ { "$ref" : "#/components/parameters/team_name" }, { - "$ref" : "#/components/parameters/sync_source_test_connection_id" + "$ref" : "#/components/parameters/managed_database_id" } ], "responses" : { "200" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncSourceTestConnection" + "$ref" : "#/components/schemas/ManagedDatabase" } } }, @@ -4679,9 +4749,6 @@ "401" : { "$ref" : "#/components/responses/RequiresAuthentication" }, - "403" : { - "$ref" : "#/components/responses/Forbidden" - }, "404" : { "$ref" : "#/components/responses/NotFound" }, @@ -4689,69 +4756,72 @@ "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "syncs" ] - }, - "patch" : { - "description" : "Update a sync source test connection.", - "operationId" : "UpdateSyncTestConnectionForSyncSource", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_source_test_connection_id" - } ], + "tags" : [ "managed-databases" ], + "x-internal" : true + } + }, + "/platform/activate" : { + "post" : { + "description" : "Activate platform usage by API key", + "operationId" : "ActivatePlatform", "requestBody" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/UpdateSyncTestConnectionForSyncSource_request" + "$ref" : "#/components/schemas/ActivatePlatform_request" } } - } + }, + "required" : true }, "responses" : { "200" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncSourceTestConnection" + "$ref" : "#/components/schemas/ActivatePlatform_200_response" + } + } + }, + "description" : "Success" + }, + "205" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ActivatePlatform_205_response" } } }, - "description" : "Updated" + "description" : "Activation method is no longer valid" }, "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" } }, - "tags" : [ "syncs" ] + "security" : [ ], + "tags" : [ "platform" ], + "x-internal" : true } }, - "/teams/{team_name}/sync-source-test-connections/{sync_source_test_connection_id}/promote" : { + "/platform/activate/renew" : { "post" : { - "description" : "Promote a sync source test connection to a sync source.", - "operationId" : "PromoteSyncSourceTestConnection", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_source_test_connection_id" - } ], + "description" : "Renew platform activation", + "operationId" : "RenewPlatformActivation", "requestBody" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/PromoteSyncSourceTestConnection" + "$ref" : "#/components/schemas/RenewPlatformActivation_request" } } }, @@ -4762,81 +4832,64 @@ "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncSource" + "$ref" : "#/components/schemas/RenewPlatformActivation_200_response" } } }, - "description" : "Successful response indicating that an existing sync source was replaced." + "description" : "Success" }, - "201" : { + "205" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncSource" + "$ref" : "#/components/schemas/ActivatePlatform_205_response" } } }, - "description" : "Successful response indicating that a new sync source was created." + "description" : "Activation method is no longer valid" }, "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" : [ "syncs" ] + "security" : [ ], + "tags" : [ "platform" ], + "x-internal" : true } }, - "/teams/{team_name}/sync-destination-test-connections" : { + "/platform/report" : { "post" : { - "description" : "Create a test destination connection.", - "operationId" : "CreateSyncDestinationTestConnection", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - } ], + "description" : "Report platform data", + "operationId" : "ReportPlatformData", "requestBody" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncDestinationTestConnectionCreate" + "$ref" : "#/components/schemas/ReportPlatformData_request" } } }, "required" : true }, "responses" : { - "201" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncDestinationTestConnection" - } - } - }, - "description" : "Response" + "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" }, @@ -4844,28 +4897,47 @@ "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "syncs" ] + "tags" : [ "platform" ], + "x-internal" : true } }, - "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}" : { - "get" : { - "description" : "Get a sync destination test connection.", - "operationId" : "GetSyncDestinationTestConnection", + "/teams/{team_name}/ai-onboarding/chat" : { + "post" : { + "description" : "Send a chat message to the AI onboarding assistant", + "operationId" : "AIOnboardingChat", "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_destination_test_connection_id" + "explode" : false, + "in" : "path", + "name" : "team_name", + "required" : true, + "schema" : { + "type" : "string" + }, + "style" : "simple", + "x-go-name" : "TeamName" } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AIOnboardingChat_request" + } + } + } + }, "responses" : { "200" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncDestinationTestConnection" + "$ref" : "#/components/schemas/AIOnboardingChat_200_response" } } }, - "description" : "Response" + "description" : "Chat response from the AI assistant" + }, + "400" : { + "$ref" : "#/components/responses/BadRequest" }, "401" : { "$ref" : "#/components/responses/RequiresAuthentication" @@ -4876,98 +4948,96 @@ "404" : { "$ref" : "#/components/responses/NotFound" }, + "405" : { + "$ref" : "#/components/responses/MethodNotAllowed" + }, "500" : { "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "syncs" ] - }, - "patch" : { - "description" : "Update a sync destination test connection.", - "operationId" : "UpdateSyncTestConnectionForSyncDestination", + "tags" : [ "ai-onboarding" ] + } + }, + "/teams/{team_name}/ai-onboarding/conversations" : { + "delete" : { + "description" : "End the current AI onboarding conversation", + "operationId" : "AIOnboardingEndConversation", "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_destination_test_connection_id" + "explode" : false, + "in" : "path", + "name" : "team_name", + "required" : true, + "schema" : { + "type" : "string" + }, + "style" : "simple", + "x-go-name" : "TeamName" } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateSyncTestConnectionForSyncSource_request" - } - } - } - }, "responses" : { "200" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncDestinationTestConnection" + "$ref" : "#/components/schemas/AIOnboardingEndConversation_200_response" } } }, - "description" : "Updated" + "description" : "Conversation ended successfully" }, "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" + "405" : { + "$ref" : "#/components/responses/MethodNotAllowed" }, "500" : { "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/sync-destination-test-connections/{sync_destination_test_connection_id}/promote" : { + "tags" : [ "ai-onboarding" ] + }, "post" : { - "description" : "Promote a sync destination test connection to a sync destination.", - "operationId" : "PromoteSyncDestinationTestConnection", + "description" : "Start a new conversation with the AI onboarding assistant", + "operationId" : "AIOnboardingNewConversation", "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_destination_test_connection_id" + "explode" : false, + "in" : "path", + "name" : "team_name", + "required" : true, + "schema" : { + "type" : "string" + }, + "style" : "simple", + "x-go-name" : "TeamName" } ], "requestBody" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/PromoteSyncDestinationTestConnection" + "$ref" : "#/components/schemas/AIOnboardingNewConversation_request" } } - }, - "required" : true + } }, "responses" : { "200" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/SyncDestination" - } - } - }, - "description" : "Successful response indicating that an existing sync destination was replaced." - }, - "201" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncDestination" + "$ref" : "#/components/schemas/AIOnboardingNewConversation_200_response" } } }, - "description" : "Response" + "description" : "New conversation started successfully" }, "400" : { "$ref" : "#/components/responses/BadRequest" @@ -4975,4073 +5045,632 @@ "401" : { "$ref" : "#/components/responses/RequiresAuthentication" }, + "403" : { + "$ref" : "#/components/responses/Forbidden" + }, "404" : { "$ref" : "#/components/responses/NotFound" }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" + "405" : { + "$ref" : "#/components/responses/MethodNotAllowed" }, "500" : { "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "syncs" ] + "tags" : [ "ai-onboarding" ] } - }, - "/teams/{team_name}/sync-sources" : { - "get" : { - "description" : "List all sync source definitions.", - "operationId" : "ListSyncSources", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/per_page" - }, { - "$ref" : "#/components/parameters/page" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListSyncSources_200_response" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } + } + }, + "components" : { + "parameters" : { + "page" : { + "description" : "Page number of the results to fetch", + "explode" : true, + "in" : "query", + "name" : "page", + "required" : false, + "schema" : { + "default" : 1, + "format" : "int64", + "minimum" : 1, + "type" : "integer" }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/sync-sources/{sync_source_name}" : { - "delete" : { - "description" : "Delete a Sync Source definition. Any syncs relying on this source must be deleted first.", - "operationId" : "DeleteSyncSource", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_source_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" - } + "style" : "form" + }, + "per_page" : { + "description" : "The number of results per page (max 1000).", + "explode" : true, + "in" : "query", + "name" : "per_page", + "required" : false, + "schema" : { + "default" : 100, + "format" : "int64", + "maximum" : 1000, + "minimum" : 1, + "type" : "integer" }, - "tags" : [ "syncs" ] + "style" : "form" }, - "get" : { - "description" : "Get a single sync source definition.", - "operationId" : "GetSyncSource", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_source_name" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncSource" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } + "plugin_team" : { + "explode" : false, + "in" : "path", + "name" : "plugin_team", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/TeamName" }, - "tags" : [ "syncs" ] + "style" : "simple" }, - "patch" : { - "description" : "Update a Sync Source definition.", - "operationId" : "UpdateSyncSource", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_source_name" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncSourceUpdate" - } - } - }, - "required" : true + "plugin_kind" : { + "explode" : false, + "in" : "path", + "name" : "plugin_kind", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/PluginKind" }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncSource" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" + "style" : "simple" + }, + "plugin_name" : { + "explode" : false, + "in" : "path", + "name" : "plugin_name", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/PluginName" + }, + "style" : "simple" + }, + "plugin_sort_by" : { + "description" : "The field to sort by", + "explode" : true, + "in" : "query", + "name" : "sort_by", + "required" : false, + "schema" : { + "enum" : [ "created_at", "updated_at", "name", "downloads" ], + "type" : "string" + }, + "style" : "form" + }, + "plugin_include_release_stages" : { + "allowEmptyValue" : true, + "description" : "Include these release stages in the response", + "explode" : true, + "in" : "query", + "name" : "include_release_stages", + "required" : false, + "schema" : { + "items" : { + "$ref" : "#/components/schemas/PluginReleaseStage" }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" + "type" : "array" + }, + "style" : "form" + }, + "plugin_exclude_release_stages" : { + "allowEmptyValue" : true, + "description" : "Exclude these release stages from the response", + "explode" : true, + "in" : "query", + "name" : "exclude_release_stages", + "required" : false, + "schema" : { + "default" : [ "deprecated" ], + "items" : { + "$ref" : "#/components/schemas/PluginReleaseStage" }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } + "type" : "array" }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/sync-sources/{sync_source_name}/test-connections/{sync_test_connection_id}" : { - "get" : { - "description" : "Get test connection details for sync source.", - "operationId" : "GetTestConnectionForSyncSource", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_source_name" - }, { - "$ref" : "#/components/parameters/sync_test_connection_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncTestConnection" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/sync-sources/{sync_source_name}/syncs" : { - "get" : { - "description" : "List all Syncs for a given sync source.", - "operationId" : "ListSyncSourceSyncs", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_source_name" - }, { - "$ref" : "#/components/parameters/per_page" - }, { - "$ref" : "#/components/parameters/page" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListSyncSourceSyncs_200_response" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/sync-destinations" : { - "get" : { - "description" : "List all sync destination definitions.", - "operationId" : "ListSyncDestinations", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/per_page" - }, { - "$ref" : "#/components/parameters/page" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListSyncDestinations_200_response" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/sync-destinations/{sync_destination_name}" : { - "delete" : { - "description" : "Delete a Sync Destination definition. Any syncs relying on this destination must be deleted first.", - "operationId" : "DeleteSyncDestination", - "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" - } - }, - "tags" : [ "syncs" ] - }, - "get" : { - "description" : "Get a single sync destination definition.", - "operationId" : "GetSyncDestination", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_destination_name" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncDestination" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - }, - "patch" : { - "description" : "Update a Sync Destination definition.", - "operationId" : "UpdateSyncDestination", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_destination_name" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncDestinationUpdate" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncDestination" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ] - } - }, - "/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", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_destination_name" - }, { - "$ref" : "#/components/parameters/sync_test_connection_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncTestConnection" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/sync-destinations/{sync_destination_name}/syncs" : { - "get" : { - "description" : "List all Syncs for a given sync destination.", - "operationId" : "ListSyncDestinationSyncs", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_destination_name" - }, { - "$ref" : "#/components/parameters/per_page" - }, { - "$ref" : "#/components/parameters/page" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListSyncSourceSyncs_200_response" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/syncs" : { - "get" : { - "description" : "List all Syncs.", - "operationId" : "ListSyncs", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/per_page" - }, { - "$ref" : "#/components/parameters/page" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListSyncSourceSyncs_200_response" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - }, - "post" : { - "description" : "Create new Sync definition. Sync runs can be scheduled automatically, or triggered manually after sync is created.", - "operationId" : "CreateSync", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncCreate" - } - } - }, - "required" : true - }, - "responses" : { - "201" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Sync" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/syncs/{sync_name}" : { - "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", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - } ], - "responses" : { - "204" : { - "description" : "Deleted" - }, - "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" - } - }, - "tags" : [ "syncs" ] - }, - "get" : { - "description" : "Get a Sync", - "operationId" : "GetSync", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Sync" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - }, - "patch" : { - "description" : "Update a Sync", - "operationId" : "UpdateSync", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncUpdate" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Sync" - } - } - }, - "description" : "Updated" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "403" : { - "$ref" : "#/components/responses/Forbidden" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs" : { - "get" : { - "description" : "List all Sync Runs.", - "operationId" : "ListSyncRuns", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - }, { - "$ref" : "#/components/parameters/per_page" - }, { - "$ref" : "#/components/parameters/page" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListSyncRuns_200_response" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - }, - "post" : { - "description" : "Create new SyncRun. This will trigger a manual job run.", - "operationId" : "CreateSyncRun", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - } ], - "responses" : { - "201" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncRun" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}" : { - "get" : { - "description" : "Get a Sync Run.", - "operationId" : "GetSyncRun", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - }, { - "$ref" : "#/components/parameters/sync_run_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncRunDetails" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - }, - "patch" : { - "description" : "Update a SyncRun", - "operationId" : "UpdateSyncRun", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - }, { - "$ref" : "#/components/parameters/sync_run_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateSyncRun_request" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncRun" - } - } - }, - "description" : "Updated" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "403" : { - "$ref" : "#/components/responses/Forbidden" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/progress" : { - "post" : { - "description" : "Create a new sync run progress update.", - "operationId" : "CreateSyncRunProgress", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - }, { - "$ref" : "#/components/parameters/sync_run_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CreateSyncRunProgress_request" - } - } - }, - "required" : true - }, - "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" - } - }, - "tags" : [ "syncs" ], - "x-internal" : true - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/logs" : { - "get" : { - "description" : "Get logs for a sync run.", - "operationId" : "GetSyncRunLogs", - "parameters" : [ { - "explode" : false, - "in" : "header", - "name" : "Accept", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "simple" - }, { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - }, { - "$ref" : "#/components/parameters/sync_run_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Sync_Run_Logs" - } - }, - "text/plain" : { - "schema" : { - "description" : "Chunked response logs for a sync run that is in progress.", - "type" : "string" - } - } - }, - "description" : "Response" - }, - "204" : { - "description" : "No logs available for a sync run that has not started." - }, - "302" : { - "description" : "Redirect to the logs download URL for a sync run that has completed.", - "headers" : { - "Location" : { - "explode" : false, - "schema" : { - "description" : "URL to download logs", - "type" : "string" - }, - "style" : "simple" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/syncs/{sync_name}/runs/{sync_run_id}/connector/{connector_id}/identity" : { - "get" : { - "description" : "Get connector identity for a sync run.", - "operationId" : "GetSyncRunConnectorIdentity", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - }, { - "$ref" : "#/components/parameters/sync_run_id" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetSyncRunConnectorIdentity_200_response" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ], - "x-internal" : true - } - }, - "/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", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_name" - }, { - "$ref" : "#/components/parameters/sync_run_id" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetSyncRunConnectorCredentials_200_response" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ], - "x-internal" : true - } - }, - "/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", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_test_connection_id" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetSyncRunConnectorIdentity_200_response" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ], - "x-internal" : true - } - }, - "/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", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/sync_test_connection_id" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetSyncRunConnectorCredentials_200_response" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ], - "x-internal" : true - } - }, - "/teams/{team_name}/managed-databases" : { - "get" : { - "description" : "Get a paginated list of managed databases", - "operationId" : "GetManagedDatabases", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/page" - }, { - "$ref" : "#/components/parameters/per_page" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetManagedDatabases_200_response" - } - } - }, - "description" : "Response" - }, - "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" - } - }, - "tags" : [ "managed-databases" ], - "x-internal" : true - }, - "post" : { - "description" : "Create a new managed database", - "operationId" : "CreateManagedDatabase", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ManagedDatabaseCreate" - } - } - }, - "required" : true - }, - "responses" : { - "201" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ManagedDatabase" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "403" : { - "$ref" : "#/components/responses/Forbidden" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "409" : { - "$ref" : "#/components/responses/Conflict" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "managed-databases" ], - "x-internal" : true - } - }, - "/teams/{team_name}/managed-databases/{managed_database_id}" : { - "delete" : { - "description" : "Delete this managed database. Any syncs relying on this database must be deleted first.", - "operationId" : "DeleteManagedDatabase", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/managed_database_id" - } ], - "responses" : { - "204" : { - "description" : "Deleted" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "managed-databases" ], - "x-internal" : true - }, - "get" : { - "description" : "Get a single managed database.", - "operationId" : "GetManagedDatabase", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/managed_database_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ManagedDatabase" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "managed-databases" ], - "x-internal" : true - } - }, - "/teams/{team_name}/connectors" : { - "get" : { - "description" : "List all configured connectors", - "operationId" : "ListConnectors", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/per_page" - }, { - "$ref" : "#/components/parameters/page" - }, { - "description" : "Filter connectors by a given type.", - "explode" : true, - "in" : "query", - "name" : "filter_type", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - }, { - "description" : "Filter connectors by a given plugin reference. Mutually exclusive with `type`.", - "example" : "cloudquery/source/googleanalytics", - "explode" : true, - "in" : "query", - "name" : "filter_plugin", - "required" : false, - "schema" : { - "type" : "string" - }, - "style" : "form" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListConnectors_200_response" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - }, - "post" : { - "description" : "Create new connector", - "operationId" : "CreateConnector", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorCreate" - } - } - }, - "required" : true - }, - "responses" : { - "201" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Connector" - } - } - }, - "description" : "Response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/connectors/{connector_id}" : { - "get" : { - "description" : "Get a configured connector", - "operationId" : "GetConnector", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Connector" - } - } - }, - "description" : "Response" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - }, - "patch" : { - "description" : "Update a connector", - "operationId" : "UpdateConnector", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorUpdate" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/Connector" - } - } - }, - "description" : "Update response" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/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", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "204" : { - "description" : "Deleted" - }, - "401" : { - "$ref" : "#/components/responses/RequiresAuthentication" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "422" : { - "$ref" : "#/components/responses/UnprocessableEntity" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/aws" : { - "get" : { - "description" : "Get authentication status for the given AWS connector", - "operationId" : "GetConnectorAuthStatusAWS", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetConnectorAuthStatusAWS_200_response" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ] - }, - "patch" : { - "description" : "Complete authentication for the given AWS connector", - "operationId" : "AuthenticateConnectorFinishAWS", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthFinishRequestAWS" - } - } - }, - "required" : true - }, - "responses" : { - "204" : { - "description" : "Authentication is complete." - }, - "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" : [ "syncs" ] - }, - "post" : { - "description" : "Authenticate or reauthenticate the given AWS connector", - "operationId" : "AuthenticateConnectorAWS", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthRequestAWS" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthResponseAWS" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/gcp" : { - "get" : { - "description" : "Get authentication status for the given GCP connector", - "operationId" : "GetConnectorAuthStatusGCP", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetConnectorAuthStatusGCP_200_response" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ] - }, - "post" : { - "description" : "Authenticate or reauthenticate the given GCP connector", - "operationId" : "AuthenticateConnectorGCP", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthRequestGCP" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthResponseGCP" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ] - } - }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/gcp/finish" : { - "post" : { - "description" : "Complete authentication for the given GCP connector", - "operationId" : "AuthenticateConnectorFinishGCP", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "responses" : { - "204" : { - "description" : "Authentication is complete." - }, - "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" : [ "syncs" ] - } - }, - "/teams/{team_name}/connectors/{connector_id}/authenticate/oauth" : { - "patch" : { - "description" : "Complete authentication for the given OAuth connector", - "operationId" : "AuthenticateConnectorFinishOAuth", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthFinishRequestOAuth" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthResponseOAuth" - } - } - }, - "description" : "First part of authentication is complete, follow redirect to continue" - }, - "204" : { - "description" : "Authentication is complete." - }, - "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" : [ "syncs" ] - }, - "post" : { - "description" : "Authenticate or reauthenticate the given OAuth connector", - "operationId" : "AuthenticateConnectorOAuth", - "parameters" : [ { - "$ref" : "#/components/parameters/team_name" - }, { - "$ref" : "#/components/parameters/connector_id" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthRequestOAuth" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ConnectorAuthResponseOAuth" - } - } - }, - "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" - } - }, - "tags" : [ "syncs" ] - } - }, - "/platform/activate" : { - "post" : { - "description" : "Activate platform usage by API key", - "operationId" : "ActivatePlatform", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ActivatePlatform_request" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ActivatePlatform_200_response" - } - } - }, - "description" : "Success" - }, - "205" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ActivatePlatform_205_response" - } - } - }, - "description" : "Activation method is no longer valid" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "429" : { - "$ref" : "#/components/responses/TooManyRequests" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "security" : [ ], - "tags" : [ "platform" ], - "x-internal" : true - } - }, - "/platform/activate/renew" : { - "post" : { - "description" : "Renew platform activation", - "operationId" : "RenewPlatformActivation", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RenewPlatformActivation_request" - } - } - }, - "required" : true - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RenewPlatformActivation_200_response" - } - } - }, - "description" : "Success" - }, - "205" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ActivatePlatform_205_response" - } - } - }, - "description" : "Activation method is no longer valid" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "429" : { - "$ref" : "#/components/responses/TooManyRequests" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "security" : [ ], - "tags" : [ "platform" ], - "x-internal" : true - } - }, - "/platform/report" : { - "post" : { - "description" : "Report platform data", - "operationId" : "ReportPlatformData", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ReportPlatformData_request" - } - } - }, - "required" : true - }, - "responses" : { - "204" : { - "description" : "Success" - }, - "400" : { - "$ref" : "#/components/responses/BadRequest" - }, - "404" : { - "$ref" : "#/components/responses/NotFound" - }, - "429" : { - "$ref" : "#/components/responses/TooManyRequests" - }, - "500" : { - "$ref" : "#/components/responses/InternalError" - } - }, - "tags" : [ "platform" ], - "x-internal" : true - } - }, - "/teams/{team_name}/ai-onboarding/chat" : { - "post" : { - "description" : "Send a chat message to the AI onboarding assistant", - "operationId" : "AIOnboardingChat", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "team_name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple", - "x-go-name" : "TeamName" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AIOnboardingChat_request" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AIOnboardingChat_200_response" - } - } - }, - "description" : "Chat response from the AI assistant" - }, - "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" : [ "ai-onboarding" ] - } - }, - "/teams/{team_name}/ai-onboarding/conversations" : { - "delete" : { - "description" : "End the current AI onboarding conversation", - "operationId" : "AIOnboardingEndConversation", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "team_name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple", - "x-go-name" : "TeamName" - } ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AIOnboardingEndConversation_200_response" - } - } - }, - "description" : "Conversation ended successfully" - }, - "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" : [ "ai-onboarding" ] - }, - "post" : { - "description" : "Start a new conversation with the AI onboarding assistant", - "operationId" : "AIOnboardingNewConversation", - "parameters" : [ { - "explode" : false, - "in" : "path", - "name" : "team_name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple", - "x-go-name" : "TeamName" - } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AIOnboardingNewConversation_request" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AIOnboardingNewConversation_200_response" - } - } - }, - "description" : "New conversation started successfully" - }, - "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" : [ "ai-onboarding" ] - } - } - }, - "components" : { - "parameters" : { - "page" : { - "description" : "Page number of the results to fetch", - "explode" : true, - "in" : "query", - "name" : "page", - "required" : false, - "schema" : { - "default" : 1, - "format" : "int64", - "minimum" : 1, - "type" : "integer" - }, - "style" : "form" - }, - "per_page" : { - "description" : "The number of results per page (max 1000).", - "explode" : true, - "in" : "query", - "name" : "per_page", - "required" : false, - "schema" : { - "default" : 100, - "format" : "int64", - "maximum" : 1000, - "minimum" : 1, - "type" : "integer" - }, - "style" : "form" - }, - "plugin_team" : { - "explode" : false, - "in" : "path", - "name" : "plugin_team", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/TeamName" - }, - "style" : "simple" - }, - "plugin_kind" : { - "explode" : false, - "in" : "path", - "name" : "plugin_kind", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/PluginKind" - }, - "style" : "simple" - }, - "plugin_name" : { - "explode" : false, - "in" : "path", - "name" : "plugin_name", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/PluginName" - }, - "style" : "simple" - }, - "plugin_sort_by" : { - "description" : "The field to sort by", - "explode" : true, - "in" : "query", - "name" : "sort_by", - "required" : false, - "schema" : { - "enum" : [ "created_at", "updated_at", "name", "downloads" ], - "type" : "string" - }, - "style" : "form" - }, - "plugin_include_release_stages" : { - "allowEmptyValue" : true, - "description" : "Include these release stages in the response", - "explode" : true, - "in" : "query", - "name" : "include_release_stages", - "required" : false, - "schema" : { - "items" : { - "$ref" : "#/components/schemas/PluginReleaseStage" - }, - "type" : "array" - }, - "style" : "form" - }, - "plugin_exclude_release_stages" : { - "allowEmptyValue" : true, - "description" : "Exclude these release stages from the response", - "explode" : true, - "in" : "query", - "name" : "exclude_release_stages", - "required" : false, - "schema" : { - "default" : [ "deprecated" ], - "items" : { - "$ref" : "#/components/schemas/PluginReleaseStage" - }, - "type" : "array" - }, - "style" : "form" - }, - "team_name" : { - "explode" : false, - "in" : "path", - "name" : "team_name", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/TeamName" - }, - "style" : "simple" - }, - "version_sort_by" : { - "description" : "The field to sort by", - "explode" : true, - "in" : "query", - "name" : "sort_by", - "required" : false, - "schema" : { - "enum" : [ "created_at" ], - "type" : "string" - }, - "style" : "form" - }, - "include_drafts" : { - "description" : "Whether to include draft versions", - "explode" : true, - "in" : "query", - "name" : "include_drafts", - "required" : false, - "schema" : { - "type" : "boolean" - }, - "style" : "form" - }, - "include_fips" : { - "description" : "Whether to include fips versions", - "explode" : true, - "in" : "query", - "name" : "include_fips", - "required" : false, - "schema" : { - "type" : "boolean" - }, - "style" : "form" - }, - "include_prereleases" : { - "description" : "Whether to include prerelease versions", - "explode" : true, - "in" : "query", - "name" : "include_prereleases", - "required" : false, - "schema" : { - "type" : "boolean" - }, - "style" : "form" - }, - "version_filter" : { - "explode" : true, - "in" : "query", - "name" : "version_filter", - "required" : false, - "schema" : { - "$ref" : "#/components/schemas/VersionFilter" - }, - "style" : "form" - }, - "version_name" : { - "explode" : false, - "in" : "path", - "name" : "version_name", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/VersionName" - }, - "style" : "simple" - }, - "target_name" : { - "explode" : false, - "in" : "path", - "name" : "target_name", - "required" : true, - "schema" : { - "type" : "string" - }, - "style" : "simple" - }, - "addon_sort_by" : { - "description" : "The field to sort by", - "explode" : true, - "in" : "query", - "name" : "sort_by", - "required" : false, - "schema" : { - "enum" : [ "created_at", "updated_at", "name", "downloads" ], - "type" : "string" - }, - "style" : "form" - }, - "addon_type" : { - "explode" : false, - "in" : "path", - "name" : "addon_type", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/AddonType" - }, - "style" : "simple" - }, - "addon_name" : { - "explode" : false, - "in" : "path", - "name" : "addon_name", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/AddonName" - }, - "style" : "simple" - }, - "include_private" : { - "description" : "Whether to include private plugins", - "explode" : true, - "in" : "query", - "name" : "include_private", - "required" : false, - "schema" : { - "type" : "boolean" - }, - "style" : "form" - }, - "addon_order_id" : { - "explode" : false, - "in" : "path", - "name" : "addon_order_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/AddonOrderID" - }, - "style" : "simple", - "x-go-name" : "AddonOrderID" - }, - "email_basic" : { - "explode" : false, - "in" : "path", - "name" : "email", - "required" : true, - "schema" : { - "example" : "user@example.com", - "type" : "string" - }, - "style" : "simple" - }, - "addon_team" : { - "explode" : false, - "in" : "path", - "name" : "addon_team", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/TeamName" - }, - "style" : "simple" - }, - "team_subscription_order_id" : { - "explode" : false, - "in" : "path", - "name" : "subscription_order_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/TeamSubscriptionOrderID" - }, - "style" : "simple", - "x-go-name" : "TeamSubscriptionOrderID" - }, - "user_id" : { - "explode" : false, - "in" : "path", - "name" : "user_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/UserID" - }, - "style" : "simple", - "x-go-name" : "UserID" - }, - "apikey_id" : { - "explode" : false, - "in" : "path", - "name" : "apikey_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/APIKeyID" - }, - "style" : "simple", - "x-go-name" : "APIKeyID" - }, - "sync_source_test_connection_id" : { - "explode" : false, - "in" : "path", - "name" : "sync_source_test_connection_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SyncSourceTestConnectionID" - }, - "style" : "simple", - "x-go-name" : "SyncSourceTestConnectionID" - }, - "sync_destination_test_connection_id" : { - "explode" : false, - "in" : "path", - "name" : "sync_destination_test_connection_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SyncDestinationTestConnectionID" - }, - "style" : "simple", - "x-go-name" : "SyncDestinationTestConnectionID" - }, - "sync_source_name" : { - "explode" : false, - "in" : "path", - "name" : "sync_source_name", - "required" : true, - "schema" : { - "description" : "Unique name of the sync source", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string", - "x-go-name" : "SyncSourceName" - }, - "style" : "simple" - }, - "sync_test_connection_id" : { - "explode" : false, - "in" : "path", - "name" : "sync_test_connection_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SyncTestConnectionID" - }, - "style" : "simple" - }, - "sync_destination_name" : { - "explode" : false, - "in" : "path", - "name" : "sync_destination_name", - "required" : true, - "schema" : { - "description" : "Unique name of the sync destination", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string", - "x-go-name" : "SyncDestinationName" - }, - "style" : "simple" - }, - "sync_name" : { - "explode" : false, - "in" : "path", - "name" : "sync_name", - "required" : true, - "schema" : { - "description" : "Unique name of the sync", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string", - "x-go-name" : "SyncName" - }, - "style" : "simple" - }, - "sync_run_id" : { - "explode" : false, - "in" : "path", - "name" : "sync_run_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SyncRunID" - }, - "style" : "simple" - }, - "connector_id" : { - "explode" : false, - "in" : "path", - "name" : "connector_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/ConnectorID" - }, - "style" : "simple", - "x-go-name" : "ConnectorID" - }, - "managed_database_id" : { - "explode" : false, - "in" : "path", - "name" : "managed_database_id", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/ManagedDatabaseID" - }, - "style" : "simple", - "x-go-name" : "ManagedDatabaseID" - } - }, - "responses" : { - "InternalError" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BasicError" - } - } - }, - "description" : "Internal Error" - }, - "RequiresAuthentication" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BasicError" - } - } - }, - "description" : "Requires authentication" - }, - "BadRequest" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/FieldError" - } - } - }, - "description" : "Bad request" - }, - "Forbidden" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/FieldError" - } - } - }, - "description" : "Forbidden" - }, - "NotFound" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BasicError" - } - } - }, - "description" : "Resource not found" - }, - "UnprocessableEntity" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/FieldError" - } - } - }, - "description" : "UnprocessableEntity" - }, - "TooManyRequests" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BasicError" - } - } - }, - "description" : "Too Many Requests" - }, - "ServiceUnavailable" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BasicError" - } - } - }, - "description" : "Service unavailable" - }, - "MethodNotAllowed" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BasicError" - } - } - }, - "description" : "Method not allowed" - }, - "DockerError" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/DockerError" - } - } - }, - "description" : "Error Returned from the Docker Authorization Handler to the Docker Registry" - }, - "Conflict" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BasicError" - } - } - }, - "description" : "Conflict" - } - }, - "schemas" : { - "BasicError" : { - "additionalProperties" : false, - "description" : "Basic Error", - "properties" : { - "message" : { - "type" : "string" - }, - "status" : { - "type" : "integer" - } - }, - "required" : [ "message", "status" ], - "title" : "Basic Error" - }, - "ContentType" : { - "description" : "The HTTP Content-Type of the image or asset", - "enum" : [ "image/jpeg", "image/png", "image/webp" ], - "example" : "image/png", - "type" : "string" - }, - "ImageURL" : { - "properties" : { - "upload_url" : { - "example" : "https://cloudquery.io/api/v1/upload/1234567890abcdef1234567890abcdef", - "type" : "string" - }, - "download_url" : { - "example" : "https://cloudquery.io/api/v1/download/1234567890abcdef1234567890abcdef", - "type" : "string" - }, - "required_headers" : { - "additionalProperties" : { - "items" : { - "type" : "string" - } - }, - "description" : "Required HTTP headers to include for the upload" - } - }, - "required" : [ "download_url", "required_headers", "upload_url" ] - }, - "TeamName" : { - "description" : "The unique name for the team.", - "example" : "cloudquery", - "maxLength" : 255, - "pattern" : "^[a-z](-?[a-z0-9]+)+$", - "type" : "string" - }, - "PluginKind" : { - "description" : "The kind of plugin, ie. source or destination.", - "enum" : [ "source", "destination", "transformer" ], - "example" : "source", - "type" : "string" - }, - "PluginName" : { - "description" : "The unique name for the plugin.", - "example" : "aws-source", - "maxLength" : 255, - "pattern" : "^[a-z](-?[a-z0-9]+)+$", - "type" : "string" - }, - "PluginNotificationRequestStatus" : { - "default" : "pending", - "description" : "Status of a plugin notification request", - "enum" : [ "pending", "sent" ], - "type" : "string" - }, - "PluginNotificationRequest" : { - "additionalProperties" : false, - "description" : "Plugin Notification Request", - "properties" : { - "plugin_team" : { - "$ref" : "#/components/schemas/TeamName" - }, - "plugin_kind" : { - "$ref" : "#/components/schemas/PluginKind" - }, - "plugin_name" : { - "$ref" : "#/components/schemas/PluginName" - }, - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "sent_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "status" : { - "$ref" : "#/components/schemas/PluginNotificationRequestStatus" - } - }, - "required" : [ "created_at", "plugin_kind", "plugin_name", "plugin_team" ] - }, - "ListMetadata" : { - "properties" : { - "total_count" : { - "type" : "integer" - }, - "last_page" : { - "type" : "integer" - }, - "page_size" : { - "type" : "integer" - }, - "time_ms" : { - "type" : "integer" - } - }, - "required" : [ "page_size" ] - }, - "PluginNotificationRequestCreate" : { - "additionalProperties" : false, - "description" : "Create a Plugin Notification Request", - "properties" : { - "plugin_team" : { - "$ref" : "#/components/schemas/TeamName" - }, - "plugin_kind" : { - "$ref" : "#/components/schemas/PluginKind" - }, - "plugin_name" : { - "$ref" : "#/components/schemas/PluginName" - } - }, - "required" : [ "plugin_kind", "plugin_name", "plugin_team" ] - }, - "FieldError" : { - "allOf" : [ { - "$ref" : "#/components/schemas/BasicError" - }, { - "properties" : { - "errors" : { - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "field_errors" : { - "additionalProperties" : { - "type" : "string" - } - } - } - } ] - }, - "PluginReleaseStage" : { - "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.", - "enum" : [ "coming-soon", "preview", "ga", "deprecated" ], - "type" : "string" - }, - "PluginCategory" : { - "description" : "Supported categories for plugins", - "enum" : [ "cloud-infrastructure", "databases", "sales-marketing", "engineering-analytics", "marketing-analytics", "shipment-tracking", "product-analytics", "cloud-finops", "project-management", "fleet-management", "security", "data-warehouses", "human-resources", "finance", "customer-support", "other" ], - "type" : "string" - }, - "PluginPriceCategory" : { - "description" : "Supported price categories for billing", - "enum" : [ "api", "database", "free" ], - "type" : "string" - }, - "PluginTier" : { - "deprecated" : true, - "description" : "This field is deprecated, refer to `price_category` instead.\nThis field is only kept for backward compatibility and may be removed in a future release.\nSupported tiers for plugins.\n - free: Free tier, with no paid tables.\n - paid: Paid tier. These plugins may have paid tables, but can also have free tables. They require login to access.\n - open-core: This option is deprecated, values will either be free or paid.\n", - "enum" : [ "free", "paid", "open-core" ], - "type" : "string" - }, - "Plugin" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin", - "properties" : { - "team_name" : { - "$ref" : "#/components/schemas/TeamName" - }, - "name" : { - "$ref" : "#/components/schemas/PluginName" - }, - "kind" : { - "$ref" : "#/components/schemas/PluginKind" - }, - "category" : { - "$ref" : "#/components/schemas/PluginCategory" - }, - "price_category" : { - "$ref" : "#/components/schemas/PluginPriceCategory" - }, - "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" - }, - "homepage" : { - "example" : "https://cloudquery.io", - "type" : "string" - }, - "logo" : { - "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "type" : "string" - }, - "display_name" : { - "description" : "The plugin's display name", - "example" : "AWS Source Plugin", - "maxLength" : 50, - "minLength" : 1, - "type" : "string" - }, - "official" : { - "description" : "True if the plugin is maintained by CloudQuery, false otherwise", - "type" : "boolean" - }, - "release_stage" : { - "$ref" : "#/components/schemas/PluginReleaseStage" - }, - "repository" : { - "example" : "https://github.com/cloudquery/cloudquery", - "type" : "string" - }, - "short_description" : { - "example" : "Sync data from AWS to any destination", - "maxLength" : 512, - "minLength" : 1, - "type" : "string" - }, - "tier" : { - "$ref" : "#/components/schemas/PluginTier" - }, - "public" : { - "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 plugin's team.", - "type" : "boolean" - }, - "usd_per_row" : { - "deprecated" : true, - "description" : "Deprecated. Refer to `price_category` instead.", - "example" : "0.0001", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "USDPerRow" - }, - "free_rows_per_month" : { - "deprecated" : true, - "description" : "Deprecated. Refer to `price_category` instead.", - "example" : 1000, - "format" : "int64", - "type" : "integer" - }, - "minimum_cloud_version" : { - "description" : "Minimum plugin version that is supported in CloudQuery managed syncs.", - "example" : "v1.2.3", - "maxLength" : 64, - "type" : "string" - } - }, - "required" : [ "category", "created_at", "display_name", "free_rows_per_month", "kind", "logo", "name", "official", "release_stage", "short_description", "team_name", "tier", "updated_at", "usd_per_row" ], - "title" : "CloudQuery Plugin" - }, - "VersionName" : { - "description" : "The version 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-]+)*)?$", - "type" : "string" - }, - "ListPlugin" : { - "allOf" : [ { - "$ref" : "#/components/schemas/Plugin" - }, { - "properties" : { - "latest_version" : { - "$ref" : "#/components/schemas/VersionName" - } - } - } ] - }, - "PluginReleaseStageCreate" : { - "default" : "coming-soon", - "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.", - "enum" : [ "coming-soon", "preview", "ga" ], - "type" : "string" - }, - "PluginCreate" : { - "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" : { - "description" : "The plugin's display name, as shown in the CloudQuery Hub.", - "example" : "AWS Source Plugin", - "maxLength" : 50, - "minLength" : 1, - "type" : "string" - }, - "short_description" : { - "description" : "Short description of the plugin. This will be shown in the CloudQuery Hub.", - "example" : "Sync data from AWS to any destination", - "maxLength" : 512, - "minLength" : 1, - "type" : "string" - }, - "homepage" : { - "example" : "https://cloudquery.io", - "type" : "string" - }, - "public" : { - "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, - "type" : "boolean" - }, - "repository" : { - "example" : "https://github.com/cloudquery/cloudquery", - "type" : "string" - }, - "release_stage" : { - "$ref" : "#/components/schemas/PluginReleaseStageCreate" - }, - "logo" : { - "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", - "pattern" : "^https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+$", - "type" : "string" - }, - "usd_per_row" : { - "deprecated" : true, - "description" : "Deprecated. Use `price_category` instead.", - "example" : "0.00001", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "USDPerRow" - }, - "free_rows_per_month" : { - "deprecated" : true, - "description" : "Deprecated. Use `price_category` instead.", - "example" : 10000, - "format" : "int64", - "type" : "integer" - } - }, - "required" : [ "category", "display_name", "kind", "name", "public", "short_description", "team_name" ] - }, - "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.", - "enum" : [ "coming-soon", "preview", "ga", "deprecated" ], - "type" : "string" - }, - "PluginUpdate" : { - "properties" : { - "category" : { - "$ref" : "#/components/schemas/PluginCategory" - }, - "price_category" : { - "$ref" : "#/components/schemas/PluginPriceCategory" - }, - "tier" : { - "$ref" : "#/components/schemas/PluginTier" - }, - "display_name" : { - "description" : "The plugin's display name, as shown in the CloudQuery Hub.", - "example" : "AWS Source Plugin", - "maxLength" : 50, - "minLength" : 1, - "type" : "string" - }, - "short_description" : { - "description" : "Short description of the plugin. This will be shown in the CloudQuery Hub.", - "example" : "Sync data from AWS to any destination", - "maxLength" : 512, - "minLength" : 1, - "type" : "string" - }, - "homepage" : { - "example" : "https://cloudquery.io", - "type" : "string" - }, - "repository" : { - "example" : "https://github.com/cloudquery/cloudquery", - "type" : "string" - }, - "logo" : { - "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", - "pattern" : "^(https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+)?$", - "type" : "string" - }, - "public" : { - "description" : "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub.", - "type" : "boolean" - }, - "release_stage" : { - "$ref" : "#/components/schemas/PluginReleaseStageUpdate" - }, - "usd_per_row" : { - "deprecated" : true, - "description" : "Deprecated. Update `price_category` instead.", - "example" : "0.0001", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "USDPerRow" - }, - "free_rows_per_month" : { - "deprecated" : true, - "description" : "Deprecated. Update `price_category` instead.", - "example" : 1000, - "format" : "int64", - "type" : "integer" - } - } + "style" : "form" }, - "PluginPrice" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Price", - "properties" : { - "id" : { - "description" : "ID of the price change", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "ID" - }, - "usd_per_row" : { - "description" : "The price per row in USD. This is used to calculate the price of a sync.", - "example" : "0.0001", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "USDPerRow" - }, - "free_rows_per_month" : { - "description" : "The number of rows that can be synced for free each month.", - "example" : 1000, - "format" : "int64", - "type" : "integer" - }, - "effective_from" : { - "description" : "The date and time the price came (or will come) into effect.", - "example" : "2024-01-02T00:00:00Z", - "format" : "date-time", - "type" : "string" - } + "team_name" : { + "explode" : false, + "in" : "path", + "name" : "team_name", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/TeamName" }, - "required" : [ "effective_from", "free_rows_per_month", "id", "usd_per_row" ], - "title" : "CloudQuery Plugin Price" + "style" : "simple" }, - "PluginPriceCreate" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Price Create", - "properties" : { - "usd_per_row" : { - "description" : "The price per row in USD. This is used to calculate the price of a sync.", - "example" : "0.0001", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "USDPerRow" - }, - "free_rows_per_month" : { - "description" : "The number of rows that can be synced for free each month.", - "example" : 1000, - "format" : "int64", - "type" : "integer" - }, - "effective_from" : { - "description" : "The date and time the price came (or will come) into effect.", - "example" : "2024-01-02T00:00:00Z", - "format" : "date-time", - "type" : "string" - } + "version_sort_by" : { + "description" : "The field to sort by", + "explode" : true, + "in" : "query", + "name" : "sort_by", + "required" : false, + "schema" : { + "enum" : [ "created_at" ], + "type" : "string" }, - "required" : [ "effective_from", "free_rows_per_month", "usd_per_row" ], - "title" : "CloudQuery Plugin Price Create" - }, - "VersionFilter" : { - "description" : "A version filter in semantic version format with prefix ranges.", - "pattern" : "^[^~]?v[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$", - "type" : "string" + "style" : "form" }, - "PluginProtocols" : { - "description" : "The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins).", - "items" : { - "enum" : [ 3 ], - "type" : "integer" + "include_drafts" : { + "description" : "Whether to include draft versions", + "explode" : true, + "in" : "query", + "name" : "include_drafts", + "required" : false, + "schema" : { + "type" : "boolean" }, - "type" : "array" - }, - "PluginPackageType" : { - "description" : "The package type of the plugin assets", - "enum" : [ "native", "docker" ], - "type" : "string" + "style" : "form" }, - "PluginVersionBase" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Version", - "properties" : { - "created_at" : { - "description" : "The date and time the plugin version was created.", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "published_at" : { - "description" : "The date and time the plugin version was set to non-draft (published).", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "name" : { - "$ref" : "#/components/schemas/VersionName" - }, - "message" : { - "description" : "Description of what's new or changed in this version (supports markdown)", - "example" : "- Added support for AWS S3 - Added support for AWS EC2", - "type" : "string" - }, - "draft" : { - "description" : "If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.", - "type" : "boolean" - }, - "retracted" : { - "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.", - "type" : "boolean" - }, - "protocols" : { - "$ref" : "#/components/schemas/PluginProtocols" - }, - "supported_targets" : { - "description" : "The targets supported by this plugin version, formatted as _", - "example" : [ "linux_arm64", "darwin_amd64", "windows_amd64" ], - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "checksums" : { - "description" : "The checksums of the plugin assets", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "package_type" : { - "$ref" : "#/components/schemas/PluginPackageType" - } + "include_fips" : { + "description" : "Whether to include fips versions", + "explode" : true, + "in" : "query", + "name" : "include_fips", + "required" : false, + "schema" : { + "type" : "boolean" }, - "required" : [ "checksums", "created_at", "draft", "message", "name", "package_type", "protocols", "retracted", "supported_targets" ], - "title" : "CloudQuery Plugin Version" - }, - "PluginVersionList" : { - "allOf" : [ { - "$ref" : "#/components/schemas/PluginVersionBase" - } ] - }, - "PluginSpecJSONSchema" : { - "description" : "The specification of the plugin. This is a JSON schema that describes the configuration of the plugin.", - "type" : "string" - }, - "PluginVersion" : { - "allOf" : [ { - "$ref" : "#/components/schemas/PluginVersionBase" - }, { - "properties" : { - "spec_json_schema" : { - "$ref" : "#/components/schemas/PluginSpecJSONSchema" - }, - "connector_required" : { - "description" : "Whether a connector is required for this plugin version", - "type" : "boolean" - }, - "connector_types" : { - "description" : "List of connector types available for this plugin version", - "items" : { - "type" : "string" - }, - "type" : "array" - } - } - } ] - }, - "PluginVersionDetails" : { - "allOf" : [ { - "$ref" : "#/components/schemas/PluginVersion" - }, { - "properties" : { - "example_config" : { - "description" : "Example configuration for the plugin. This can be used in generated quickstart guides, for example. Markdown format.", - "type" : "string" - }, - "ui_base_url" : { - "description" : "Base URL for the plugin's UI. Only available for plugins with a UI and for logged in users.", - "type" : "string", - "x-go-name" : "UIBaseURL" - }, - "ui_base_url_v2" : { - "description" : "Base URL for the plugin's UI. Only available for plugins with a UI and for logged in users.", - "type" : "string", - "x-go-name" : "UIBaseURLv2" - }, - "ui_id" : { - "description" : "ID of the plugin's UI.", - "format" : "uuid", - "type" : "string", - "x-go-name" : "UIID" - } - }, - "required" : [ "example_config" ] - } ] - }, - "PluginVersionUpdate" : { - "properties" : { - "message" : { - "description" : "Description of what's new or changed in this version (supports markdown)", - "example" : "- Added support for *AWS S3* - Added support for *AWS EC2*", - "type" : "string" - }, - "draft" : { - "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.", - "type" : "boolean" - }, - "retracted" : { - "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.", - "type" : "boolean" - }, - "protocols" : { - "$ref" : "#/components/schemas/PluginProtocols" - }, - "supported_targets" : { - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "checksums" : { - "description" : "The SHA-256 checksums of the plugin binaries, one per supported target.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "package_type" : { - "description" : "The package type of the plugin binaries", - "type" : "string" - }, - "spec_json_schema" : { - "$ref" : "#/components/schemas/PluginSpecJSONSchema" - } - } - }, - "PluginDocsPageName" : { - "description" : "The unique name for the plugin documentation page.", - "example" : "overview", - "maxLength" : 255, - "pattern" : "^[\\w,\\s-]+$", - "type" : "string" + "style" : "form" }, - "PluginDocsPage" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Documentation Page", - "properties" : { - "name" : { - "$ref" : "#/components/schemas/PluginDocsPageName" - }, - "content" : { - "description" : "The content of the documentation page. Supports markdown.", - "example" : "# Getting Started\n\nThis is the getting started page.", - "type" : "string" - } + "include_prereleases" : { + "description" : "Whether to include prerelease versions", + "explode" : true, + "in" : "query", + "name" : "include_prereleases", + "required" : false, + "schema" : { + "type" : "boolean" }, - "required" : [ "content", "name" ], - "title" : "CloudQuery Plugin Documentation Page" + "style" : "form" }, - "PluginDocsPageCreate" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Documentation Page", - "properties" : { - "name" : { - "$ref" : "#/components/schemas/PluginDocsPageName" - }, - "content" : { - "description" : "The content of the documentation page. Supports markdown.", - "example" : "# Getting Started\n\nThis is the getting started page.", - "minLength" : 1, - "type" : "string" - } + "version_filter" : { + "explode" : true, + "in" : "query", + "name" : "version_filter", + "required" : false, + "schema" : { + "$ref" : "#/components/schemas/VersionFilter" }, - "required" : [ "content", "name" ], - "title" : "CloudQuery Plugin Documentation Page" - }, - "PluginTableName" : { - "description" : "Name of the table", - "example" : "aws_ec2_instances", - "maxLength" : 255, - "pattern" : "^[a-z](_?[a-z0-9]+)+$", - "type" : "string" + "style" : "form" }, - "PluginTable" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Table", - "properties" : { - "description" : { - "description" : "Description of the table", - "example" : "AWS S3 Buckets", - "type" : "string" - }, - "is_incremental" : { - "description" : "Whether the table is incremental", - "type" : "boolean" - }, - "name" : { - "$ref" : "#/components/schemas/PluginTableName" - }, - "parent" : { - "description" : "Name of the parent table, if any", - "example" : "nil", - "type" : "string" - }, - "relations" : { - "description" : "Names of the tables that depend on this table", - "example" : [ "aws_s3_bucket_cors_rules" ], - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "title" : { - "description" : "Title of the table", - "example" : "AWS S3 Buckets", - "type" : "string" - }, - "is_paid" : { - "description" : "Whether the table is paid", - "type" : "boolean" - } + "version_name" : { + "explode" : false, + "in" : "path", + "name" : "version_name", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/VersionName" }, - "required" : [ "description", "is_incremental", "name", "relations", "title" ], - "title" : "CloudQuery Plugin Table" + "style" : "simple" }, - "PluginTableColumn" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Column", - "properties" : { - "description" : { - "description" : "Description of the column", - "type" : "string" - }, - "incremental_key" : { - "description" : "Whether the column is used as an incremental key", - "type" : "boolean" - }, - "name" : { - "description" : "Name of the column", - "type" : "string" - }, - "not_null" : { - "description" : "Whether the column is nullable", - "type" : "boolean" - }, - "primary_key" : { - "description" : "Whether the column is part of the primary key", - "type" : "boolean" - }, - "type" : { - "description" : "Arrow Type of the column", - "type" : "string" - }, - "type_schema" : { - "description" : "For columns of type JSON, the schema of the JSON object", - "type" : "string" - }, - "unique" : { - "description" : "Whether the column has a unique constraint", - "type" : "boolean" - } + "target_name" : { + "explode" : false, + "in" : "path", + "name" : "target_name", + "required" : true, + "schema" : { + "type" : "string" }, - "required" : [ "description", "incremental_key", "name", "not_null", "primary_key", "type", "unique" ], - "title" : "CloudQuery Plugin Table Column" + "style" : "simple" }, - "PluginTableCreate" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Table", - "properties" : { - "description" : { - "description" : "Description of the table", - "example" : "AWS S3 Buckets", - "type" : "string" - }, - "is_incremental" : { - "description" : "Whether the table is incremental", - "type" : "boolean" - }, - "name" : { - "$ref" : "#/components/schemas/PluginTableName" - }, - "parent" : { - "description" : "Name of the parent table, if any", - "example" : "nil", - "type" : "string" - }, - "relations" : { - "description" : "Names of the tables that depend on this table", - "example" : [ "aws_s3_bucket_cors_rules" ], - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "permissions_needed" : { - "description" : "List of permissions needed to access this table, if any", - "example" : [ "storage.buckets.list" ], - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "sensitive_columns" : { - "description" : "List of columns within this table that can contain sensitive/secret data", - "example" : [ "secret_key" ], - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "title" : { - "description" : "Title of the table", - "example" : "AWS S3 Buckets", - "type" : "string" - }, - "is_paid" : { - "description" : "Whether the table is paid", - "type" : "boolean" - }, - "columns" : { - "items" : { - "$ref" : "#/components/schemas/PluginTableColumn" - }, - "type" : "array" - } + "addon_sort_by" : { + "description" : "The field to sort by", + "explode" : true, + "in" : "query", + "name" : "sort_by", + "required" : false, + "schema" : { + "enum" : [ "created_at", "updated_at", "name", "downloads" ], + "type" : "string" }, - "required" : [ "name" ], - "title" : "CloudQuery Plugin Table" + "style" : "form" }, - "PluginTableDetails" : { - "additionalProperties" : false, - "properties" : { - "columns" : { - "description" : "List of columns", - "items" : { - "$ref" : "#/components/schemas/PluginTableColumn" - }, - "type" : "array" - }, - "description" : { - "description" : "Description of the table", - "type" : "string" - }, - "is_incremental" : { - "description" : "Whether the table is incremental", - "type" : "boolean" - }, - "name" : { - "description" : "Name of the table", - "type" : "string" - }, - "parent" : { - "description" : "Name of the parent table, if any", - "type" : "string" - }, - "relations" : { - "description" : "Names of the tables that depend on this table", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "title" : { - "description" : "Title of the table", - "type" : "string" - }, - "is_paid" : { - "description" : "Whether the table is paid", - "type" : "boolean" - }, - "permissions_needed" : { - "description" : "List of permissions needed to access this table, if any", - "example" : [ "storage.buckets.list" ], - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "sensitive_columns" : { - "description" : "List of columns within this table that can contain sensitive/secret data", - "example" : [ "secret_key" ], - "items" : { - "type" : "string" - }, - "type" : "array" - } + "addon_type" : { + "explode" : false, + "in" : "path", + "name" : "addon_type", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/AddonType" }, - "required" : [ "columns", "description", "is_incremental", "name", "permissions_needed", "relations", "title" ] + "style" : "simple" }, - "PluginAsset" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin Asset", - "properties" : { - "checksum" : { - "description" : "The checksum of the plugin asset", - "type" : "string" - }, - "location" : { - "description" : "The location to download the plugin asset from", - "format" : "uri", - "type" : "string" - } + "addon_name" : { + "explode" : false, + "in" : "path", + "name" : "addon_name", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/AddonName" }, - "required" : [ "checksum", "location" ], - "title" : "CloudQuery Plugin Asset" + "style" : "simple" }, - "ReleaseURL" : { - "properties" : { - "url" : { - "type" : "string" - } + "include_private" : { + "description" : "Whether to include private plugins", + "explode" : true, + "in" : "query", + "name" : "include_private", + "required" : false, + "schema" : { + "type" : "boolean" }, - "required" : [ "url" ] + "style" : "form" }, - "PluginUIAssetUploadRequest" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin UI Asset Upload Request", - "properties" : { - "name" : { - "description" : "The path and name of the asset", - "example" : "scripts/main.js", - "type" : "string" - }, - "content_type" : { - "description" : "Content-type of the asset", - "example" : "application/json", - "type" : "string" - } + "addon_order_id" : { + "explode" : false, + "in" : "path", + "name" : "addon_order_id", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/AddonOrderID" }, - "required" : [ "name" ], - "title" : "CloudQuery Plugin UI Asset Upload Request" + "style" : "simple", + "x-go-name" : "AddonOrderID" }, - "PluginUIAsset" : { - "additionalProperties" : false, - "description" : "CloudQuery Plugin UI Asset", - "properties" : { - "name" : { - "description" : "The path and name of the asset", - "type" : "string" - }, - "upload_url" : { - "description" : "URL to upload the asset to", - "type" : "string", - "x-go-name" : "UploadURL" - } + "email_basic" : { + "explode" : false, + "in" : "path", + "name" : "email", + "required" : true, + "schema" : { + "example" : "user@example.com", + "type" : "string" }, - "required" : [ "name", "upload_url" ], - "title" : "CloudQuery Plugin UI Asset" + "style" : "simple" }, - "AddonName" : { - "description" : "The unique name for the addon.", - "example" : "aws-policy", - "maxLength" : 255, - "pattern" : "^[a-z](-?[a-z0-9]+)+$", - "type" : "string" + "addon_team" : { + "explode" : false, + "in" : "path", + "name" : "addon_team", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/TeamName" + }, + "style" : "simple" }, - "AddonCategory" : { - "description" : "Supported categories for addons", - "enum" : [ "cloud-infrastructure", "databases", "sales-marketing", "engineering-analytics", "other" ], - "type" : "string" + "team_subscription_order_id" : { + "explode" : false, + "in" : "path", + "name" : "subscription_order_id", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/TeamSubscriptionOrderID" + }, + "style" : "simple", + "x-go-name" : "TeamSubscriptionOrderID" }, - "AddonType" : { - "description" : "Supported types for addons", - "enum" : [ "transformation", "visualization" ], - "type" : "string" + "user_id" : { + "explode" : false, + "in" : "path", + "name" : "user_id", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/UserID" + }, + "style" : "simple", + "x-go-name" : "UserID" }, - "AddonFormat" : { - "description" : "Supported formats for addons", - "enum" : [ "zip" ], - "type" : "string" + "apikey_id" : { + "explode" : false, + "in" : "path", + "name" : "apikey_id", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/APIKeyID" + }, + "style" : "simple", + "x-go-name" : "APIKeyID" }, - "AddonTier" : { - "description" : "Supported tiers for addons", - "enum" : [ "free", "paid" ], - "type" : "string" + "managed_database_id" : { + "explode" : false, + "in" : "path", + "name" : "managed_database_id", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/ManagedDatabaseID" + }, + "style" : "simple", + "x-go-name" : "ManagedDatabaseID" + } + }, + "responses" : { + "InternalError" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BasicError" + } + } + }, + "description" : "Internal Error" }, - "Addon" : { - "additionalProperties" : false, - "description" : "CloudQuery Addon", - "properties" : { - "team_name" : { - "$ref" : "#/components/schemas/TeamName" - }, - "name" : { - "$ref" : "#/components/schemas/AddonName" - }, - "official" : { - "description" : "True if the addon is maintained by CloudQuery, false otherwise", - "type" : "boolean" - }, - "category" : { - "$ref" : "#/components/schemas/AddonCategory" - }, - "addon_type" : { - "$ref" : "#/components/schemas/AddonType" - }, - "addon_format" : { - "$ref" : "#/components/schemas/AddonFormat" - }, - "tier" : { - "$ref" : "#/components/schemas/AddonTier" - }, - "price_usd" : { - "description" : "The price for 6 months", - "example" : "50", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "PriceUSD" - }, - "short_description" : { - "example" : "AWS Asset inventory dashboard for grafana", - "maxLength" : 512, - "minLength" : 1, - "type" : "string" - }, - "display_name" : { - "description" : "The addon's display name", - "example" : "AWS Asset inventory", - "maxLength" : 50, - "minLength" : 1, - "type" : "string" - }, - "homepage" : { - "example" : "https://cloudquery.io", - "type" : "string" - }, - "repository" : { - "example" : "https://github.com/cloudquery/cloudquery", - "type" : "string" - }, - "logo" : { - "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "type" : "string" - }, - "public" : { - "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 plugin's team.", - "type" : "boolean" - }, - "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" + "RequiresAuthentication" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BasicError" + } } }, - "required" : [ "addon_format", "addon_type", "category", "created_at", "display_name", "logo", "name", "official", "price_usd", "short_description", "team_name", "tier", "updated_at" ], - "title" : "CloudQuery Addon" + "description" : "Requires authentication" }, - "ListAddon" : { - "allOf" : [ { - "$ref" : "#/components/schemas/Addon" - }, { - "properties" : { - "latest_version" : { - "$ref" : "#/components/schemas/VersionName" + "BadRequest" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FieldError" } } - } ] + }, + "description" : "Bad request" }, - "AddonCreate" : { - "additionalProperties" : false, - "description" : "CloudQuery AddonCreate", - "properties" : { - "team_name" : { - "$ref" : "#/components/schemas/TeamName" - }, - "name" : { - "$ref" : "#/components/schemas/AddonName" - }, - "category" : { - "$ref" : "#/components/schemas/AddonCategory" - }, - "addon_type" : { - "$ref" : "#/components/schemas/AddonType" - }, - "addon_format" : { - "$ref" : "#/components/schemas/AddonFormat" - }, - "tier" : { - "$ref" : "#/components/schemas/AddonTier" - }, - "price_usd" : { - "description" : "The price for 6 months", - "example" : "50", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "PriceUSD" - }, - "short_description" : { - "example" : "AWS Asset inventory dashboard for grafana", - "maxLength" : 512, - "minLength" : 1, - "type" : "string" - }, - "display_name" : { - "description" : "The addon's display name", - "example" : "AWS Asset inventory", - "maxLength" : 50, - "minLength" : 1, - "type" : "string" - }, - "homepage" : { - "example" : "https://cloudquery.io", - "type" : "string" - }, - "repository" : { - "example" : "https://github.com/cloudquery/cloudquery", - "type" : "string" - }, - "logo" : { - "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "pattern" : "^https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+$", - "type" : "string" - }, - "public" : { - "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 plugin's team.", - "type" : "boolean" + "Forbidden" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FieldError" + } } }, - "required" : [ "addon_format", "addon_type", "category", "display_name", "name", "public", "short_description", "team_name", "tier" ], - "title" : "CloudQuery Addon" + "description" : "Forbidden" }, - "AddonUpdate" : { - "additionalProperties" : false, - "description" : "CloudQuery AddonUpdate", - "properties" : { - "category" : { - "$ref" : "#/components/schemas/AddonCategory" - }, - "addon_format" : { - "$ref" : "#/components/schemas/AddonFormat" - }, - "tier" : { - "$ref" : "#/components/schemas/AddonTier" - }, - "price_usd" : { - "description" : "The price for 6 months in USD", - "example" : "50", - "pattern" : "^\\d+(?:\\.\\d{1,10})?$", - "type" : "string", - "x-go-name" : "PriceUSD" - }, - "short_description" : { - "example" : "AWS Asset inventory dashboard for grafana", - "maxLength" : 512, - "minLength" : 1, - "type" : "string" - }, - "display_name" : { - "description" : "The addon's display name", - "example" : "AWS Asset inventory", - "maxLength" : 50, - "minLength" : 1, - "type" : "string" - }, - "homepage" : { - "example" : "https://cloudquery.io", - "type" : "string" - }, - "repository" : { - "example" : "https://github.com/cloudquery/cloudquery", - "type" : "string" - }, - "logo" : { - "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", - "pattern" : "^(https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+)?$", - "type" : "string" - }, - "public" : { - "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 plugin's team.", - "type" : "boolean" - }, - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" + "NotFound" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BasicError" + } } }, - "title" : "CloudQuery Addon" + "description" : "Resource not found" }, - "AddonVersion" : { - "additionalProperties" : false, - "description" : "CloudQuery Addon Version", - "properties" : { - "created_at" : { - "description" : "The date and time the plugin version was created.", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "published_at" : { - "description" : "The date and time the plugin version was set to non-draft (published).", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "name" : { - "$ref" : "#/components/schemas/VersionName" - }, - "message" : { - "description" : "Description of what's new or changed in this version (supports markdown)", - "example" : "- Added support for *AWS S3* - Added support for *AWS EC2*", - "type" : "string" - }, - "doc" : { - "description" : "Main README in MD format", - "type" : "string" - }, - "draft" : { - "description" : "If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.", - "type" : "boolean" - }, - "plugin_deps" : { - "description" : "list of plugins the addon depends on in the format of team_name/kind/name@version", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "addon_deps" : { - "description" : "list of other addons this addon depends on in the format of team_name/type/name@version", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "retracted" : { - "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.", - "type" : "boolean" - }, - "checksum" : { - "description" : "The checksum of the addon asset", - "type" : "string" + "UnprocessableEntity" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FieldError" + } } }, - "required" : [ "checksum", "created_at", "doc", "draft", "message", "name", "retracted" ], - "title" : "CloudQuery Addon Version" + "description" : "UnprocessableEntity" }, - "AddonVersionUpdate" : { + "TooManyRequests" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BasicError" + } + } + }, + "description" : "Too Many Requests" + }, + "ServiceUnavailable" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BasicError" + } + } + }, + "description" : "Service unavailable" + }, + "MethodNotAllowed" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BasicError" + } + } + }, + "description" : "Method not allowed" + }, + "DockerError" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DockerError" + } + } + }, + "description" : "Error Returned from the Docker Authorization Handler to the Docker Registry" + }, + "Conflict" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BasicError" + } + } + }, + "description" : "Conflict" + } + }, + "schemas" : { + "BasicError" : { + "additionalProperties" : false, + "description" : "Basic Error", "properties" : { "message" : { - "description" : "Description of what's new or changed in this version (supports markdown)", - "example" : "- Added support for *AWS S3* - Added support for *AWS EC2*", - "type" : "string" - }, - "doc" : { - "description" : "Main README in MD format", "type" : "string" }, - "draft" : { - "description" : "If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.", - "type" : "boolean" - }, - "plugin_deps" : { - "description" : "list of plugins the addon depends on in the format of team_name/kind/name@version", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "addon_deps" : { - "description" : "list of other addons this addon depends on in the format of team_name/type/name@version", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "retracted" : { - "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.", - "type" : "boolean" - }, - "checksum" : { - "description" : "The checksum of the addon asset", - "type" : "string" + "status" : { + "type" : "integer" } - } + }, + "required" : [ "message", "status" ], + "title" : "Basic Error" }, - "AddonAsset" : { - "additionalProperties" : false, - "description" : "CloudQuery Addon Asset", + "ContentType" : { + "description" : "The HTTP Content-Type of the image or asset", + "enum" : [ "image/jpeg", "image/png", "image/webp" ], + "example" : "image/png", + "type" : "string" + }, + "ImageURL" : { "properties" : { - "checksum" : { - "description" : "The checksum of the addon asset", + "upload_url" : { + "example" : "https://cloudquery.io/api/v1/upload/1234567890abcdef1234567890abcdef", "type" : "string" }, - "location" : { - "description" : "The location to download the addon asset from", - "format" : "uri", + "download_url" : { + "example" : "https://cloudquery.io/api/v1/download/1234567890abcdef1234567890abcdef", "type" : "string" + }, + "required_headers" : { + "additionalProperties" : { + "items" : { + "type" : "string" + } + }, + "description" : "Required HTTP headers to include for the upload" } }, - "required" : [ "checksum", "location" ], - "title" : "CloudQuery Addon Asset" + "required" : [ "download_url", "required_headers", "upload_url" ] }, - "TeamPlan" : { - "description" : "The plan the team is on (trial is deprecated)", - "enum" : [ "free", "paid", "enterprise", "trial" ], + "TeamName" : { + "description" : "The unique name for the team.", + "example" : "cloudquery", + "maxLength" : 255, + "pattern" : "^[a-z](-?[a-z0-9]+)+$", "type" : "string" }, - "Team" : { + "PluginKind" : { + "description" : "The kind of plugin, ie. source or destination.", + "enum" : [ "source", "destination", "transformer" ], + "example" : "source", + "type" : "string" + }, + "PluginName" : { + "description" : "The unique name for the plugin.", + "example" : "aws-source", + "maxLength" : 255, + "pattern" : "^[a-z](-?[a-z0-9]+)+$", + "type" : "string" + }, + "PluginNotificationRequestStatus" : { + "default" : "pending", + "description" : "Status of a plugin notification request", + "enum" : [ "pending", "sent" ], + "type" : "string" + }, + "PluginNotificationRequest" : { "additionalProperties" : false, - "description" : "CloudQuery Team", + "description" : "Plugin Notification Request", "properties" : { - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "name" : { + "plugin_team" : { "$ref" : "#/components/schemas/TeamName" }, - "plan" : { - "$ref" : "#/components/schemas/TeamPlan" + "plugin_kind" : { + "$ref" : "#/components/schemas/PluginKind" }, - "plan_end_time" : { + "plugin_name" : { + "$ref" : "#/components/schemas/PluginName" + }, + "created_at" : { "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "is_trial_active" : { - "example" : false, - "type" : "boolean" - }, - "trial_end_time" : { + "sent_at" : { "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "display_name" : { - "description" : "The team's display name", - "example" : "CloudQuery", - "maxLength" : 255, - "type" : "string" - }, - "internal" : { - "example" : false, - "type" : "boolean" + "status" : { + "$ref" : "#/components/schemas/PluginNotificationRequestStatus" } }, - "required" : [ "display_name", "internal", "is_trial_active", "name", "plan" ], - "title" : "Team" + "required" : [ "created_at", "plugin_kind", "plugin_name", "plugin_team" ] }, - "TeamImageCreate" : { - "additionalProperties" : false, + "ListMetadata" : { "properties" : { - "name" : { - "description" : "Name of image", - "maxLength" : 64, - "minLength" : 1, - "type" : "string" + "total_count" : { + "type" : "integer" }, - "checksum" : { - "description" : "SHA1 checksum of image", - "maxLength" : 40, - "minLength" : 40, - "pattern" : "^[a-f0-9]+$", - "type" : "string" + "last_page" : { + "type" : "integer" }, - "content_type" : { - "$ref" : "#/components/schemas/ContentType" + "page_size" : { + "type" : "integer" + }, + "time_ms" : { + "type" : "integer" } }, - "required" : [ "checksum", "content_type", "name" ], - "title" : "Create Team Image Request" + "required" : [ "page_size" ] }, - "TeamImage" : { + "PluginNotificationRequestCreate" : { + "additionalProperties" : false, + "description" : "Create a Plugin Notification Request", "properties" : { - "name" : { - "description" : "Name of image", - "type" : "string" - }, - "checksum" : { - "description" : "SHA1 checksum of image", - "type" : "string" - }, - "url" : { - "description" : "URL to download image", - "type" : "string", - "x-go-name" : "URL" + "plugin_team" : { + "$ref" : "#/components/schemas/TeamName" }, - "upload_url" : { - "description" : "URL to upload image", - "type" : "string", - "x-go-name" : "UploadURL" + "plugin_kind" : { + "$ref" : "#/components/schemas/PluginKind" }, - "required_headers" : { - "additionalProperties" : { + "plugin_name" : { + "$ref" : "#/components/schemas/PluginName" + } + }, + "required" : [ "plugin_kind", "plugin_name", "plugin_team" ] + }, + "FieldError" : { + "allOf" : [ { + "$ref" : "#/components/schemas/BasicError" + }, { + "properties" : { + "errors" : { "items" : { "type" : "string" - } + }, + "type" : "array" }, - "description" : "Required HTTP headers to include for the upload" + "field_errors" : { + "additionalProperties" : { + "type" : "string" + } + } } - }, - "required" : [ "checksum", "name", "required_headers", "url" ] + } ] }, - "AddonOrderID" : { - "description" : "ID of the addon order", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "AddonOrderID" + "PluginReleaseStage" : { + "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.", + "enum" : [ "coming-soon", "preview", "ga", "deprecated" ], + "type" : "string" }, - "AddonOrderStatus" : { - "enum" : [ "pending", "completed", "cancelled" ], + "PluginCategory" : { + "description" : "Supported categories for plugins", + "enum" : [ "cloud-infrastructure", "databases", "sales-marketing", "engineering-analytics", "marketing-analytics", "shipment-tracking", "product-analytics", "cloud-finops", "project-management", "fleet-management", "security", "data-warehouses", "human-resources", "finance", "customer-support", "other" ], "type" : "string" }, - "AddonOrder" : { + "PluginPriceCategory" : { + "description" : "Supported price categories for billing", + "enum" : [ "api", "database", "free" ], + "type" : "string" + }, + "PluginTier" : { + "deprecated" : true, + "description" : "This field is deprecated, refer to `price_category` instead.\nThis field is only kept for backward compatibility and may be removed in a future release.\nSupported tiers for plugins.\n - free: Free tier, with no paid tables.\n - paid: Paid tier. These plugins may have paid tables, but can also have free tables. They require login to access.\n - open-core: This option is deprecated, values will either be free or paid.\n", + "enum" : [ "free", "paid", "open-core" ], + "type" : "string" + }, + "Plugin" : { "additionalProperties" : false, - "description" : "CloudQuery Addon Order", + "description" : "CloudQuery Plugin", "properties" : { - "id" : { - "$ref" : "#/components/schemas/AddonOrderID" - }, "team_name" : { "$ref" : "#/components/schemas/TeamName" }, - "addon_team" : { - "$ref" : "#/components/schemas/TeamName" + "name" : { + "$ref" : "#/components/schemas/PluginName" }, - "addon_type" : { - "$ref" : "#/components/schemas/AddonType" + "kind" : { + "$ref" : "#/components/schemas/PluginKind" }, - "addon_name" : { - "$ref" : "#/components/schemas/AddonName" + "category" : { + "$ref" : "#/components/schemas/PluginCategory" }, - "status" : { - "$ref" : "#/components/schemas/AddonOrderStatus" + "price_category" : { + "$ref" : "#/components/schemas/PluginPriceCategory" }, "created_at" : { "example" : "2017-07-14T16:53:42Z", @@ -9053,1940 +5682,2022 @@ "format" : "date-time", "type" : "string" }, - "completed_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "homepage" : { + "example" : "https://cloudquery.io", "type" : "string" }, - "completion_url" : { - "description" : "Stripe URL for completing purchase. Only shown in response to POST request.", - "format" : "uri", - "type" : "string", - "x-go-name" : "CompletionURL" - } - }, - "required" : [ "addon_name", "addon_team", "addon_type", "created_at", "id", "status", "team_name", "updated_at" ], - "title" : "CloudQuery Addon" - }, - "AddonOrderCreate" : { - "additionalProperties" : false, - "description" : "Create CloudQuery Addon Order", - "properties" : { - "addon_team" : { - "$ref" : "#/components/schemas/TeamName" + "logo" : { + "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", + "type" : "string" }, - "addon_type" : { - "$ref" : "#/components/schemas/AddonType" + "display_name" : { + "description" : "The plugin's display name", + "example" : "AWS Source Plugin", + "maxLength" : 50, + "minLength" : 1, + "type" : "string" }, - "addon_name" : { - "$ref" : "#/components/schemas/AddonName" + "official" : { + "description" : "True if the plugin is maintained by CloudQuery, false otherwise", + "type" : "boolean" }, - "success_url" : { - "description" : "URL to redirect to after successful order completion", - "example" : "https://cloud.cloudquery.io/order-completion", + "release_stage" : { + "$ref" : "#/components/schemas/PluginReleaseStage" + }, + "repository" : { + "example" : "https://github.com/cloudquery/cloudquery", "type" : "string" }, - "cancel_url" : { - "description" : "URL to redirect to after order cancellation", - "example" : "https://cloud.cloudquery.io/order-cancelled", + "short_description" : { + "example" : "Sync data from AWS to any destination", + "maxLength" : 512, + "minLength" : 1, + "type" : "string" + }, + "tier" : { + "$ref" : "#/components/schemas/PluginTier" + }, + "public" : { + "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 plugin's team.", + "type" : "boolean" + }, + "usd_per_row" : { + "deprecated" : true, + "description" : "Deprecated. Refer to `price_category` instead.", + "example" : "0.0001", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", + "type" : "string", + "x-go-name" : "USDPerRow" + }, + "free_rows_per_month" : { + "deprecated" : true, + "description" : "Deprecated. Refer to `price_category` instead.", + "example" : 1000, + "format" : "int64", + "type" : "integer" + }, + "minimum_cloud_version" : { + "description" : "Minimum plugin version that is supported in CloudQuery managed syncs.", + "example" : "v1.2.3", + "maxLength" : 64, "type" : "string" } }, - "required" : [ "addon_name", "addon_team", "addon_type", "cancel_url", "success_url" ], - "title" : "Create CloudQuery Addon Order" + "required" : [ "category", "created_at", "display_name", "free_rows_per_month", "kind", "logo", "name", "official", "release_stage", "short_description", "team_name", "tier", "updated_at", "usd_per_row" ], + "title" : "CloudQuery Plugin" }, - "UserName" : { - "description" : "The unique name for the user.", - "example" : "Sarah O'Connor", - "maxLength" : 255, - "minLength" : 1, - "pattern" : "^[a-zA-Z\\p{L}][a-zA-Z\\p{L} \\-']*$", + "VersionName" : { + "description" : "The version 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-]+)*)?$", "type" : "string" }, - "UserOnboarded" : { - "description" : "Whether the user has completed onboarding", - "type" : "boolean" + "ListPlugin" : { + "allOf" : [ { + "$ref" : "#/components/schemas/Plugin" + }, { + "properties" : { + "latest_version" : { + "$ref" : "#/components/schemas/VersionName" + } + } + } ] }, - "User" : { - "additionalProperties" : false, - "description" : "CloudQuery User", + "PluginReleaseStageCreate" : { + "default" : "coming-soon", + "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.", + "enum" : [ "coming-soon", "preview", "ga" ], + "type" : "string" + }, + "PluginCreate" : { "properties" : { - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "id" : { - "description" : "ID of the User", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "ID" + "team_name" : { + "$ref" : "#/components/schemas/TeamName" }, - "email" : { - "example" : "user@example.com", - "type" : "string" + "kind" : { + "$ref" : "#/components/schemas/PluginKind" }, "name" : { - "$ref" : "#/components/schemas/UserName" - }, - "onboarded" : { - "$ref" : "#/components/schemas/UserOnboarded" + "$ref" : "#/components/schemas/PluginName" }, - "updated_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" + "category" : { + "$ref" : "#/components/schemas/PluginCategory" }, - "profile_image_url" : { - "description" : "Profile image URL of user", - "type" : "string", - "x-go-name" : "ProfileImageURL" - } - }, - "required" : [ "email", "id" ], - "title" : "CloudQuery User" - }, - "MembershipWithUser" : { - "additionalProperties" : false, - "properties" : { - "role" : { - "example" : "admin", - "type" : "string" + "price_category" : { + "$ref" : "#/components/schemas/PluginPriceCategory" }, - "user" : { - "$ref" : "#/components/schemas/User" - } - }, - "required" : [ "role", "user" ], - "title" : "CloudQuery User Membership" - }, - "SpendingLimit" : { - "additionalProperties" : false, - "description" : "A configurable spending limit for the team. Empty values indicate no limit.", - "properties" : { - "created_at" : { - "description" : "The date and time the team limit was created.", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" + "tier" : { + "$ref" : "#/components/schemas/PluginTier" }, - "updated_at" : { - "description" : "The date and time the team limit was last updated.", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "display_name" : { + "description" : "The plugin's display name, as shown in the CloudQuery Hub.", + "example" : "AWS Source Plugin", + "maxLength" : 50, + "minLength" : 1, "type" : "string" }, - "usd" : { - "description" : "The maximum USD amount the team is allowed to use within a calendar month.", - "example" : 1000, - "maximum" : 1000000000, - "minimum" : 0, - "type" : "integer", - "x-go-name" : "USD" - } - }, - "title" : "Team Spending Limit" - }, - "SpendingLimitUpdate" : { - "additionalProperties" : false, - "description" : "A configurable spending limit for the team.", - "properties" : { - "usd" : { - "description" : "The maximum USD amount the team is allowed to use within a calendar month.", - "example" : 1000, - "maximum" : 1000000000, - "minimum" : 0, - "type" : "integer", - "x-go-name" : "USD" - } - }, - "required" : [ "usd" ], - "title" : "Team Spending Limit" - }, - "SpendingLimitCreate" : { - "additionalProperties" : false, - "description" : "A configurable monthly limit for team usage.", - "properties" : { - "usd" : { - "description" : "The maximum USD amount the team is allowed to use within a calendar month.", - "example" : 1000, - "maximum" : 1000000000, - "minimum" : 0, - "type" : "integer", - "x-go-name" : "USD" - } - }, - "required" : [ "usd" ], - "title" : "Team Spending Limit" - }, - "Invoice" : { - "additionalProperties" : false, - "description" : "Invoice details", - "properties" : { - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "short_description" : { + "description" : "Short description of the plugin. This will be shown in the CloudQuery Hub.", + "example" : "Sync data from AWS to any destination", + "maxLength" : 512, + "minLength" : 1, "type" : "string" }, - "amount_due" : { - "description" : "Amount due in cents. This is the amount that will be charged, unless there are pending invoice items. If the invoice’s total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due may be 0. The charge that gets generated for the invoice will be for the amount specified in amount_due.", - "example" : 1000, - "format" : "int64", - "type" : "integer" + "homepage" : { + "example" : "https://cloudquery.io", + "type" : "string" }, - "currency" : { - "example" : "usd", + "public" : { + "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, + "type" : "boolean" + }, + "repository" : { + "example" : "https://github.com/cloudquery/cloudquery", "type" : "string" }, - "invoice_pdf" : { - "description" : "The link to download the PDF for the invoice.", - "format" : "uri", + "release_stage" : { + "$ref" : "#/components/schemas/PluginReleaseStageCreate" + }, + "logo" : { + "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", + "pattern" : "^https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+$", + "type" : "string" + }, + "usd_per_row" : { + "deprecated" : true, + "description" : "Deprecated. Use `price_category` instead.", + "example" : "0.00001", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", "type" : "string", - "x-go-name" : "InvoicePDF" + "x-go-name" : "USDPerRow" }, - "paid" : { - "description" : "Whether or not payment was successfully collected for this invoice.", - "example" : true, - "type" : "boolean" + "free_rows_per_month" : { + "deprecated" : true, + "description" : "Deprecated. Use `price_category` instead.", + "example" : 10000, + "format" : "int64", + "type" : "integer" } }, - "required" : [ "amount_due", "created_at", "currency", "invoice_pdf", "paid" ], - "title" : "Invoice" + "required" : [ "category", "display_name", "kind", "name", "public", "short_description", "team_name" ] }, - "UsageCurrent" : { - "additionalProperties" : false, - "description" : "The usage of a plugin within the current calendar month.", + "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.", + "enum" : [ "coming-soon", "preview", "ga", "deprecated" ], + "type" : "string" + }, + "PluginUpdate" : { "properties" : { - "plugin_team" : { - "$ref" : "#/components/schemas/TeamName" + "category" : { + "$ref" : "#/components/schemas/PluginCategory" }, - "plugin_kind" : { - "$ref" : "#/components/schemas/PluginKind" + "price_category" : { + "$ref" : "#/components/schemas/PluginPriceCategory" }, - "plugin_name" : { - "$ref" : "#/components/schemas/PluginName" + "tier" : { + "$ref" : "#/components/schemas/PluginTier" }, - "rows" : { - "description" : "The number of rows used by the plugin in the calendar month.", - "example" : 1000000, - "format" : "int64", - "minimum" : 0, - "type" : "integer" + "display_name" : { + "description" : "The plugin's display name, as shown in the CloudQuery Hub.", + "example" : "AWS Source Plugin", + "maxLength" : 50, + "minLength" : 1, + "type" : "string" }, - "usd" : { - "deprecated" : true, - "description" : "The USD amount used by the plugin in the calendar month, rounded to two decimal places.", - "example" : "43.95", - "type" : "string", - "x-go-name" : "USD" + "short_description" : { + "description" : "Short description of the plugin. This will be shown in the CloudQuery Hub.", + "example" : "Sync data from AWS to any destination", + "maxLength" : 512, + "minLength" : 1, + "type" : "string" }, - "remaining_usd" : { + "homepage" : { + "example" : "https://cloudquery.io", + "type" : "string" + }, + "repository" : { + "example" : "https://github.com/cloudquery/cloudquery", + "type" : "string" + }, + "logo" : { + "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", + "pattern" : "^(https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+)?$", + "type" : "string" + }, + "public" : { + "description" : "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub.", + "type" : "boolean" + }, + "release_stage" : { + "$ref" : "#/components/schemas/PluginReleaseStageUpdate" + }, + "usd_per_row" : { "deprecated" : true, - "description" : "The remaining USD amount in the plugin's quota for the calendar month.", - "example" : "56.05", + "description" : "Deprecated. Update `price_category` instead.", + "example" : "0.0001", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", "type" : "string", - "x-go-name" : "RemainingUSD" + "x-go-name" : "USDPerRow" }, - "remaining_rows" : { + "free_rows_per_month" : { "deprecated" : true, - "description" : "Deprecated - this field used to contain the estimated remaining rows but now returns 1 to indicate rows are remaining or 0 if there are no more remaining rows.", - "example" : 1, + "description" : "Deprecated. Update `price_category` instead.", + "example" : 1000, "format" : "int64", - "minimum" : 0, "type" : "integer" } - }, - "required" : [ "plugin_kind", "plugin_name", "plugin_team", "rows", "usd" ], - "title" : "CloudQuery Plugin Usage" + } }, - "UsageIncrease" : { + "PluginPrice" : { "additionalProperties" : false, - "description" : "Increase the usage of a plugin. This can incur billing costs and should be used only by plugins.", + "description" : "CloudQuery Plugin Price", "properties" : { - "plugin_team" : { - "$ref" : "#/components/schemas/TeamName" - }, - "plugin_kind" : { - "$ref" : "#/components/schemas/PluginKind" - }, - "plugin_name" : { - "$ref" : "#/components/schemas/PluginName" + "id" : { + "description" : "ID of the price change", + "example" : "12345678-1234-1234-1234-1234567890ab", + "format" : "uuid", + "type" : "string", + "x-go-name" : "ID" }, - "tables" : { - "items" : { - "$ref" : "#/components/schemas/UsageIncrease_tables_inner" - }, - "type" : "array" + "usd_per_row" : { + "description" : "The price per row in USD. This is used to calculate the price of a sync.", + "example" : "0.0001", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", + "type" : "string", + "x-go-name" : "USDPerRow" }, - "rows" : { - "description" : "The total number of additional rows used by the plugin.", - "example" : 1000000, - "minimum" : 0, + "free_rows_per_month" : { + "description" : "The number of rows that can be synced for free each month.", + "example" : 1000, + "format" : "int64", "type" : "integer" }, - "request_id" : { - "description" : "A unique ID associated with the usage increase.", - "example" : "123e4567-e89b-12d3-a456-426614174000", - "format" : "uuid", + "effective_from" : { + "description" : "The date and time the price came (or will come) into effect.", + "example" : "2024-01-02T00:00:00Z", + "format" : "date-time", "type" : "string" - }, - "installation_id" : { - "description" : "Installation ID associated with the platform, for platform syncs.", - "pattern" : "^[a-z0-9]{64}$", - "type" : "string", - "x-go-name" : "InstallationID" } }, - "required" : [ "plugin_kind", "plugin_name", "plugin_team", "request_id", "rows" ], - "title" : "CloudQuery Plugin Usage Increase" + "required" : [ "effective_from", "free_rows_per_month", "id", "usd_per_row" ], + "title" : "CloudQuery Plugin Price" }, - "UsageSummaryGroup" : { - "description" : "A usage summary group.", + "PluginPriceCreate" : { + "additionalProperties" : false, + "description" : "CloudQuery Plugin Price Create", "properties" : { - "name" : { - "description" : "The name of the group.", - "example" : "plugin", - "type" : "string" + "usd_per_row" : { + "description" : "The price per row in USD. This is used to calculate the price of a sync.", + "example" : "0.0001", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", + "type" : "string", + "x-go-name" : "USDPerRow" }, - "value" : { - "description" : "The value of the group at this index.", - "example" : "cloudquery/source/aws", + "free_rows_per_month" : { + "description" : "The number of rows that can be synced for free each month.", + "example" : 1000, + "format" : "int64", + "type" : "integer" + }, + "effective_from" : { + "description" : "The date and time the price came (or will come) into effect.", + "example" : "2024-01-02T00:00:00Z", + "format" : "date-time", "type" : "string" } }, - "required" : [ "name", "value" ], - "title" : "CloudQuery Usage Summary Group" + "required" : [ "effective_from", "free_rows_per_month", "usd_per_row" ], + "title" : "CloudQuery Plugin Price Create" }, - "UsageSummaryValue" : { - "description" : "A usage summary value.", + "VersionFilter" : { + "description" : "A version filter in semantic version format with prefix ranges.", + "pattern" : "^[^~]?v[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$", + "type" : "string" + }, + "PluginProtocols" : { + "description" : "The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins).", + "items" : { + "enum" : [ 3 ], + "type" : "integer" + }, + "type" : "array" + }, + "PluginPackageType" : { + "description" : "The package type of the plugin assets", + "enum" : [ "native", "docker" ], + "type" : "string" + }, + "PluginVersionBase" : { + "additionalProperties" : false, + "description" : "CloudQuery Plugin Version", "properties" : { - "timestamp" : { - "description" : "The timestamp marking the start of a period.", + "created_at" : { + "description" : "The date and time the plugin version was created.", + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" + }, + "published_at" : { + "description" : "The date and time the plugin version was set to non-draft (published).", + "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "paid_rows" : { - "description" : "The paid rows that were synced in this period, one per group.", + "name" : { + "$ref" : "#/components/schemas/VersionName" + }, + "message" : { + "description" : "Description of what's new or changed in this version (supports markdown)", + "example" : "- Added support for AWS S3 - Added support for AWS EC2", + "type" : "string" + }, + "draft" : { + "description" : "If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.", + "type" : "boolean" + }, + "retracted" : { + "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.", + "type" : "boolean" + }, + "protocols" : { + "$ref" : "#/components/schemas/PluginProtocols" + }, + "supported_targets" : { + "description" : "The targets supported by this plugin version, formatted as _", + "example" : [ "linux_arm64", "darwin_amd64", "windows_amd64" ], "items" : { - "format" : "int64", - "type" : "integer" + "type" : "string" }, "type" : "array" }, - "cloud_vcpu_seconds" : { - "description" : "vCPU/seconds consumed in this period, one per group.", + "checksums" : { + "description" : "The checksums of the plugin assets", "items" : { - "format" : "int64", - "type" : "integer" + "type" : "string" }, "type" : "array" }, - "cloud_vram_byte_seconds" : { - "description" : "vRAM/byte-seconds consumed in this period, one per group.", + "package_type" : { + "$ref" : "#/components/schemas/PluginPackageType" + } + }, + "required" : [ "checksums", "created_at", "draft", "message", "name", "package_type", "protocols", "retracted", "supported_targets" ], + "title" : "CloudQuery Plugin Version" + }, + "PluginVersionList" : { + "allOf" : [ { + "$ref" : "#/components/schemas/PluginVersionBase" + } ] + }, + "PluginSpecJSONSchema" : { + "description" : "The specification of the plugin. This is a JSON schema that describes the configuration of the plugin.", + "type" : "string" + }, + "PluginVersion" : { + "allOf" : [ { + "$ref" : "#/components/schemas/PluginVersionBase" + }, { + "properties" : { + "spec_json_schema" : { + "$ref" : "#/components/schemas/PluginSpecJSONSchema" + }, + "connector_required" : { + "description" : "Whether a connector is required for this plugin version", + "type" : "boolean" + }, + "connector_types" : { + "description" : "List of connector types available for this plugin version", + "items" : { + "type" : "string" + }, + "type" : "array" + } + } + } ] + }, + "PluginVersionDetails" : { + "allOf" : [ { + "$ref" : "#/components/schemas/PluginVersion" + }, { + "properties" : { + "example_config" : { + "description" : "Example configuration for the plugin. This can be used in generated quickstart guides, for example. Markdown format.", + "type" : "string" + }, + "ui_base_url" : { + "description" : "Base URL for the plugin's UI. Only available for plugins with a UI and for logged in users.", + "type" : "string", + "x-go-name" : "UIBaseURL" + }, + "ui_base_url_v2" : { + "description" : "Base URL for the plugin's UI. Only available for plugins with a UI and for logged in users.", + "type" : "string", + "x-go-name" : "UIBaseURLv2" + }, + "ui_id" : { + "description" : "ID of the plugin's UI.", + "format" : "uuid", + "type" : "string", + "x-go-name" : "UIID" + } + }, + "required" : [ "example_config" ] + } ] + }, + "PluginVersionUpdate" : { + "properties" : { + "message" : { + "description" : "Description of what's new or changed in this version (supports markdown)", + "example" : "- Added support for *AWS S3* - Added support for *AWS EC2*", + "type" : "string" + }, + "draft" : { + "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.", + "type" : "boolean" + }, + "retracted" : { + "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.", + "type" : "boolean" + }, + "protocols" : { + "$ref" : "#/components/schemas/PluginProtocols" + }, + "supported_targets" : { "items" : { - "format" : "int64", - "type" : "integer" + "type" : "string" }, "type" : "array" }, - "cloud_egress_bytes" : { - "description" : "Egress bytes consumed in this period, one per group.", + "checksums" : { + "description" : "The SHA-256 checksums of the plugin binaries, one per supported target.", "items" : { - "format" : "int64", - "type" : "integer" + "type" : "string" }, "type" : "array" + }, + "package_type" : { + "description" : "The package type of the plugin binaries", + "type" : "string" + }, + "spec_json_schema" : { + "$ref" : "#/components/schemas/PluginSpecJSONSchema" } - }, - "required" : [ "timestamp" ], - "title" : "CloudQuery Usage Summary Value" + } }, - "UsageSummary" : { - "additionalProperties" : { }, - "description" : "A usage summary for a team, summarizing the paid rows synced and/or cloud resource usage over a given time range.\nNote that empty or all-zero values are not included in the response.\n", + "PluginDocsPageName" : { + "description" : "The unique name for the plugin documentation page.", + "example" : "overview", + "maxLength" : 255, + "pattern" : "^[\\w,\\s-]+$", + "type" : "string" + }, + "PluginDocsPage" : { + "additionalProperties" : false, + "description" : "CloudQuery Plugin Documentation Page", "properties" : { - "groups" : { - "description" : "The groups of the usage summary. Every group will have a corresponding value at the same index in the values array.", - "example" : [ { - "name" : "plugin", - "value" : "cloudquery/source/aws" - }, { - "name" : "plugin", - "value" : "cloudquery/source/gcp" - } ], - "items" : { - "$ref" : "#/components/schemas/UsageSummaryGroup" - } - }, - "values" : { - "example" : [ { - "timestamp" : "2021-01-01T00:00:00Z", - "paid_rows" : [ 100, 200 ] - }, { - "timestamp" : "2021-01-02T00:00:00Z", - "paid_rows" : [ 150, 300 ] - } ], - "items" : { - "$ref" : "#/components/schemas/UsageSummaryValue" - } + "name" : { + "$ref" : "#/components/schemas/PluginDocsPageName" }, - "metadata" : { - "$ref" : "#/components/schemas/UsageSummary_metadata" + "content" : { + "description" : "The content of the documentation page. Supports markdown.", + "example" : "# Getting Started\n\nThis is the getting started page.", + "type" : "string" } }, - "required" : [ "groups", "metadata", "values" ], - "title" : "CloudQuery Usage Summary" + "required" : [ "content", "name" ], + "title" : "CloudQuery Plugin Documentation Page" }, - "PriceCategorySpend" : { + "PluginDocsPageCreate" : { "additionalProperties" : false, - "description" : "Spend by price category for a defined period.", + "description" : "CloudQuery Plugin Documentation Page", "properties" : { - "category" : { - "$ref" : "#/components/schemas/PluginPriceCategory" + "name" : { + "$ref" : "#/components/schemas/PluginDocsPageName" }, - "total" : { + "content" : { + "description" : "The content of the documentation page. Supports markdown.", + "example" : "# Getting Started\n\nThis is the getting started page.", + "minLength" : 1, "type" : "string" } }, - "required" : [ "category", "total" ], - "title" : "Spend by price category" + "required" : [ "content", "name" ], + "title" : "CloudQuery Plugin Documentation Page" }, - "SpendSummaryValue" : { + "PluginTableName" : { + "description" : "Name of the table", + "example" : "aws_ec2_instances", + "maxLength" : 255, + "pattern" : "^[a-z](_?[a-z0-9]+)+$", + "type" : "string" + }, + "PluginTable" : { "additionalProperties" : false, - "description" : "A spend summary value.", + "description" : "CloudQuery Plugin Table", "properties" : { - "date" : { - "description" : "The timestamp for the spend summary.", - "format" : "date-time", + "description" : { + "description" : "Description of the table", + "example" : "AWS S3 Buckets", "type" : "string" }, - "by_category" : { - "items" : { - "$ref" : "#/components/schemas/PriceCategorySpend" - }, - "type" : "array" + "is_incremental" : { + "description" : "Whether the table is incremental", + "type" : "boolean" }, - "total" : { - "description" : "Total spend for the period in USD.", + "name" : { + "$ref" : "#/components/schemas/PluginTableName" + }, + "parent" : { + "description" : "Name of the parent table, if any", + "example" : "nil", "type" : "string" - } - }, - "required" : [ "by_category", "date", "total" ], - "title" : "CloudQuery Spend Summary Value" - }, - "SpendSummary" : { - "additionalProperties" : { }, - "description" : "A spend summary for a team, summarizing the spend by each price category over a given time range.\nNote that empty or all-zero values are not included in the response.\n", - "properties" : { - "values" : { + }, + "relations" : { + "description" : "Names of the tables that depend on this table", + "example" : [ "aws_s3_bucket_cors_rules" ], "items" : { - "$ref" : "#/components/schemas/SpendSummaryValue" - } + "type" : "string" + }, + "type" : "array" }, - "metadata" : { - "$ref" : "#/components/schemas/SpendSummary_metadata" + "title" : { + "description" : "Title of the table", + "example" : "AWS S3 Buckets", + "type" : "string" + }, + "is_paid" : { + "description" : "Whether the table is paid", + "type" : "boolean" } }, - "required" : [ "metadata", "values" ], - "title" : "CloudQuery Spend Summary" - }, - "Email" : { - "example" : "user@example.com", - "format" : "email", - "type" : "string" + "required" : [ "description", "is_incremental", "name", "relations", "title" ], + "title" : "CloudQuery Plugin Table" }, - "Invitation" : { + "PluginTableColumn" : { "additionalProperties" : false, + "description" : "CloudQuery Plugin Column", "properties" : { - "team_name" : { - "$ref" : "#/components/schemas/TeamName" + "description" : { + "description" : "Description of the column", + "type" : "string" }, - "email" : { - "$ref" : "#/components/schemas/Email" + "incremental_key" : { + "description" : "Whether the column is used as an incremental key", + "type" : "boolean" }, - "role" : { - "example" : "admin", + "name" : { + "description" : "Name of the column", "type" : "string" }, - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "not_null" : { + "description" : "Whether the column is nullable", + "type" : "boolean" + }, + "primary_key" : { + "description" : "Whether the column is part of the primary key", + "type" : "boolean" + }, + "type" : { + "description" : "Arrow Type of the column", "type" : "string" + }, + "type_schema" : { + "description" : "For columns of type JSON, the schema of the JSON object", + "type" : "string" + }, + "unique" : { + "description" : "Whether the column has a unique constraint", + "type" : "boolean" } }, - "required" : [ "created_at", "email", "role", "team_name" ] + "required" : [ "description", "incremental_key", "name", "not_null", "primary_key", "type", "unique" ], + "title" : "CloudQuery Plugin Table Column" }, - "MembershipWithTeam" : { + "PluginTableCreate" : { "additionalProperties" : false, + "description" : "CloudQuery Plugin Table", "properties" : { - "role" : { - "example" : "admin", + "description" : { + "description" : "Description of the table", + "example" : "AWS S3 Buckets", "type" : "string" }, - "team" : { - "$ref" : "#/components/schemas/Team" + "is_incremental" : { + "description" : "Whether the table is incremental", + "type" : "boolean" + }, + "name" : { + "$ref" : "#/components/schemas/PluginTableName" + }, + "parent" : { + "description" : "Name of the parent table, if any", + "example" : "nil", + "type" : "string" + }, + "relations" : { + "description" : "Names of the tables that depend on this table", + "example" : [ "aws_s3_bucket_cors_rules" ], + "items" : { + "type" : "string" + }, + "type" : "array" + }, + "permissions_needed" : { + "description" : "List of permissions needed to access this table, if any", + "example" : [ "storage.buckets.list" ], + "items" : { + "type" : "string" + }, + "type" : "array" + }, + "sensitive_columns" : { + "description" : "List of columns within this table that can contain sensitive/secret data", + "example" : [ "secret_key" ], + "items" : { + "type" : "string" + }, + "type" : "array" + }, + "title" : { + "description" : "Title of the table", + "example" : "AWS S3 Buckets", + "type" : "string" + }, + "is_paid" : { + "description" : "Whether the table is paid", + "type" : "boolean" + }, + "columns" : { + "items" : { + "$ref" : "#/components/schemas/PluginTableColumn" + }, + "type" : "array" } }, - "required" : [ "role", "team" ], - "title" : "CloudQuery Team Membership" - }, - "TeamSubscriptionOrderID" : { - "description" : "ID of the team subscription order", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "TeamSubscriptionOrderID" - }, - "TeamSubscriptionOrderStatus" : { - "enum" : [ "pending", "completed", "cancelled" ], - "type" : "string" + "required" : [ "name" ], + "title" : "CloudQuery Plugin Table" }, - "TeamSubscriptionOrder" : { + "PluginTableDetails" : { "additionalProperties" : false, - "description" : "Team subscription order", "properties" : { - "id" : { - "$ref" : "#/components/schemas/TeamSubscriptionOrderID" - }, - "team_name" : { - "$ref" : "#/components/schemas/TeamName" + "columns" : { + "description" : "List of columns", + "items" : { + "$ref" : "#/components/schemas/PluginTableColumn" + }, + "type" : "array" }, - "plan" : { - "$ref" : "#/components/schemas/TeamPlan" + "description" : { + "description" : "Description of the table", + "type" : "string" }, - "status" : { - "$ref" : "#/components/schemas/TeamSubscriptionOrderStatus" + "is_incremental" : { + "description" : "Whether the table is incremental", + "type" : "boolean" }, - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "name" : { + "description" : "Name of the table", "type" : "string" }, - "updated_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "parent" : { + "description" : "Name of the parent table, if any", "type" : "string" }, - "completed_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "relations" : { + "description" : "Names of the tables that depend on this table", + "items" : { + "type" : "string" + }, + "type" : "array" + }, + "title" : { + "description" : "Title of the table", "type" : "string" }, - "completion_url" : { - "description" : "Stripe URL for completing purchase. Only shown in response to POST request when a paid plan is selected.", - "format" : "uri", - "type" : "string", - "x-go-name" : "CompletionURL" + "is_paid" : { + "description" : "Whether the table is paid", + "type" : "boolean" + }, + "permissions_needed" : { + "description" : "List of permissions needed to access this table, if any", + "example" : [ "storage.buckets.list" ], + "items" : { + "type" : "string" + }, + "type" : "array" + }, + "sensitive_columns" : { + "description" : "List of columns within this table that can contain sensitive/secret data", + "example" : [ "secret_key" ], + "items" : { + "type" : "string" + }, + "type" : "array" } }, - "required" : [ "created_at", "id", "plan", "status", "team_name", "updated_at" ], - "title" : "Team subscription order" + "required" : [ "columns", "description", "is_incremental", "name", "permissions_needed", "relations", "title" ] }, - "TeamSubscriptionOrderCreate" : { + "PluginAsset" : { "additionalProperties" : false, - "description" : "Create team subscription order", + "description" : "CloudQuery Plugin Asset", "properties" : { - "plan" : { - "$ref" : "#/components/schemas/TeamPlan" - }, - "success_url" : { - "description" : "URL to redirect to after successful order completion", - "example" : "https://cloud.cloudquery.io/order-completion", + "checksum" : { + "description" : "The checksum of the plugin asset", "type" : "string" }, - "cancel_url" : { - "description" : "URL to redirect to after order cancellation", - "example" : "https://cloud.cloudquery.io/order-cancelled", + "location" : { + "description" : "The location to download the plugin asset from", + "format" : "uri", "type" : "string" } }, - "required" : [ "cancel_url", "plan", "success_url" ], - "title" : "Create team subscription order" - }, - "Settings" : { - "description" : "Platform settings definition", - "properties" : { - "enforce_mfa" : { - "default" : false, - "description" : "Whether or not to require MFA for all users", - "type" : "boolean" - } - }, - "required" : [ "enforce_mfa" ] + "required" : [ "checksum", "location" ], + "title" : "CloudQuery Plugin Asset" }, - "SettingsUpdate" : { - "description" : "Platform settings partial update", - "properties" : { - "enforce_mfa" : { - "default" : false, - "description" : "Whether or not to require MFA for all users", - "type" : "boolean" + "ReleaseURL" : { + "properties" : { + "url" : { + "type" : "string" } - } + }, + "required" : [ "url" ] }, - "InvitationWithToken" : { + "PluginUIAssetUploadRequest" : { "additionalProperties" : false, - "allOf" : [ { - "$ref" : "#/components/schemas/Invitation" - }, { - "properties" : { - "token" : { - "description" : "The token used to accept the invitation", - "format" : "uuid", - "type" : "string" - } + "description" : "CloudQuery Plugin UI Asset Upload Request", + "properties" : { + "name" : { + "description" : "The path and name of the asset", + "example" : "scripts/main.js", + "type" : "string" }, - "required" : [ "token" ] - } ] + "content_type" : { + "description" : "Content-type of the asset", + "example" : "application/json", + "type" : "string" + } + }, + "required" : [ "name" ], + "title" : "CloudQuery Plugin UI Asset Upload Request" }, - "TenantUser" : { + "PluginUIAsset" : { "additionalProperties" : false, - "description" : "Tenant information of a platform user", + "description" : "CloudQuery Plugin UI Asset", "properties" : { - "tenant_url" : { - "description" : "URL of the tenant", - "format" : "url", - "type" : "string", - "x-go-name" : "TenantURL" - }, - "provider" : { - "description" : "Login provider of the tenant", + "name" : { + "description" : "The path and name of the asset", "type" : "string" + }, + "upload_url" : { + "description" : "URL to upload the asset to", + "type" : "string", + "x-go-name" : "UploadURL" } }, - "required" : [ "tenant_url" ] - }, - "UserID" : { - "description" : "ID of the User", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "UserID" + "required" : [ "name", "upload_url" ], + "title" : "CloudQuery Plugin UI Asset" }, - "APIKeyName" : { - "description" : "Name of the API key", - "example" : "cli-api-key", + "AddonName" : { + "description" : "The unique name for the addon.", + "example" : "aws-policy", "maxLength" : 255, - "minLength" : 1, - "pattern" : "^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$", + "pattern" : "^[a-z](-?[a-z0-9]+)+$", "type" : "string" }, - "APIKeyID" : { - "description" : "ID of the API key", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "APIKeyID" + "AddonCategory" : { + "description" : "Supported categories for addons", + "enum" : [ "cloud-infrastructure", "databases", "sales-marketing", "engineering-analytics", "other" ], + "type" : "string" }, - "APIKeyScope" : { - "description" : "Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins", - "enum" : [ "read-and-write", "syncs-operations-only" ], + "AddonType" : { + "description" : "Supported types for addons", + "enum" : [ "transformation", "visualization" ], "type" : "string" }, - "APIKey" : { - "description" : "API Key to interact with CloudQuery Cloud under specific team", + "AddonFormat" : { + "description" : "Supported formats for addons", + "enum" : [ "zip" ], + "type" : "string" + }, + "AddonTier" : { + "description" : "Supported tiers for addons", + "enum" : [ "free", "paid" ], + "type" : "string" + }, + "Addon" : { + "additionalProperties" : false, + "description" : "CloudQuery Addon", "properties" : { + "team_name" : { + "$ref" : "#/components/schemas/TeamName" + }, "name" : { - "$ref" : "#/components/schemas/APIKeyName" + "$ref" : "#/components/schemas/AddonName" }, - "created_by" : { - "description" : "email of the user that created the API key", - "example" : "user@example.com", + "official" : { + "description" : "True if the addon is maintained by CloudQuery, false otherwise", + "type" : "boolean" + }, + "category" : { + "$ref" : "#/components/schemas/AddonCategory" + }, + "addon_type" : { + "$ref" : "#/components/schemas/AddonType" + }, + "addon_format" : { + "$ref" : "#/components/schemas/AddonFormat" + }, + "tier" : { + "$ref" : "#/components/schemas/AddonTier" + }, + "price_usd" : { + "description" : "The price for 6 months", + "example" : "50", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", + "type" : "string", + "x-go-name" : "PriceUSD" + }, + "short_description" : { + "example" : "AWS Asset inventory dashboard for grafana", + "maxLength" : 512, + "minLength" : 1, "type" : "string" }, - "id" : { - "$ref" : "#/components/schemas/APIKeyID" + "display_name" : { + "description" : "The addon's display name", + "example" : "AWS Asset inventory", + "maxLength" : 50, + "minLength" : 1, + "type" : "string" }, - "key" : { - "description" : "API key. Will be shown only in the response when creating the key.", - "example" : "1234567890abcdef1234567890abcdef", + "homepage" : { + "example" : "https://cloudquery.io", "type" : "string" }, - "created_at" : { - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "repository" : { + "example" : "https://github.com/cloudquery/cloudquery", "type" : "string" }, - "expires_at" : { - "description" : "Timestamp at which API key will stop working", + "logo" : { + "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", + "type" : "string" + }, + "public" : { + "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 plugin's team.", + "type" : "boolean" + }, + "created_at" : { "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "last_access_at" : { - "description" : "Timestamp at which API key was last used - accurate to the day only.", + "updated_at" : { "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" - }, - "expired" : { - "description" : "Whether the API key has expired or not", - "example" : false, - "type" : "boolean" - }, - "scope" : { - "$ref" : "#/components/schemas/APIKeyScope" } }, - "required" : [ "expired", "expires_at", "id", "name", "scope" ] + "required" : [ "addon_format", "addon_type", "category", "created_at", "display_name", "logo", "name", "official", "price_usd", "short_description", "team_name", "tier", "updated_at" ], + "title" : "CloudQuery Addon" }, - "RegistryAuthToken" : { + "ListAddon" : { + "allOf" : [ { + "$ref" : "#/components/schemas/Addon" + }, { + "properties" : { + "latest_version" : { + "$ref" : "#/components/schemas/VersionName" + } + } + } ] + }, + "AddonCreate" : { "additionalProperties" : false, - "description" : "JWT token for the image registry", + "description" : "CloudQuery AddonCreate", "properties" : { - "access_token" : { + "team_name" : { + "$ref" : "#/components/schemas/TeamName" + }, + "name" : { + "$ref" : "#/components/schemas/AddonName" + }, + "category" : { + "$ref" : "#/components/schemas/AddonCategory" + }, + "addon_type" : { + "$ref" : "#/components/schemas/AddonType" + }, + "addon_format" : { + "$ref" : "#/components/schemas/AddonFormat" + }, + "tier" : { + "$ref" : "#/components/schemas/AddonTier" + }, + "price_usd" : { + "description" : "The price for 6 months", + "example" : "50", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", + "type" : "string", + "x-go-name" : "PriceUSD" + }, + "short_description" : { + "example" : "AWS Asset inventory dashboard for grafana", + "maxLength" : 512, + "minLength" : 1, "type" : "string" }, - "token" : { + "display_name" : { + "description" : "The addon's display name", + "example" : "AWS Asset inventory", + "maxLength" : 50, + "minLength" : 1, "type" : "string" - } - }, - "required" : [ "access_token", "token" ] - }, - "DockerError" : { - "additionalProperties" : false, - "description" : "Error Returned from the Docker Authorization Handler to the Docker Registry", - "properties" : { - "details" : { + }, + "homepage" : { + "example" : "https://cloudquery.io", + "type" : "string" + }, + "repository" : { + "example" : "https://github.com/cloudquery/cloudquery", + "type" : "string" + }, + "logo" : { + "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", + "pattern" : "^https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+$", "type" : "string" + }, + "public" : { + "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 plugin's team.", + "type" : "boolean" } }, - "required" : [ "details" ], - "title" : "Docker Error" - }, - "SyncPluginPath" : { - "description" : "Plugin path in CloudQuery registry", - "pattern" : "^cloudquery/[^/]+", - "type" : "string" + "required" : [ "addon_format", "addon_type", "category", "display_name", "name", "public", "short_description", "team_name", "tier" ], + "title" : "CloudQuery Addon" }, - "SyncEnvCreate" : { - "description" : "Environment variable. Environment variables are assumed to be secret.", + "AddonUpdate" : { + "additionalProperties" : false, + "description" : "CloudQuery AddonUpdate", "properties" : { - "name" : { - "description" : "Name of the environment variable", + "category" : { + "$ref" : "#/components/schemas/AddonCategory" + }, + "addon_format" : { + "$ref" : "#/components/schemas/AddonFormat" + }, + "tier" : { + "$ref" : "#/components/schemas/AddonTier" + }, + "price_usd" : { + "description" : "The price for 6 months in USD", + "example" : "50", + "pattern" : "^\\d+(?:\\.\\d{1,10})?$", + "type" : "string", + "x-go-name" : "PriceUSD" + }, + "short_description" : { + "example" : "AWS Asset inventory dashboard for grafana", + "maxLength" : 512, + "minLength" : 1, "type" : "string" }, - "value" : { - "description" : "Value of the environment variable", + "display_name" : { + "description" : "The addon's display name", + "example" : "AWS Asset inventory", + "maxLength" : 50, + "minLength" : 1, "type" : "string" - } - }, - "required" : [ "name" ] - }, - "ConnectorID" : { - "description" : "ID of the Connector", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "ConnectorID" - }, - "SyncSourceTestConnectionCreate" : { - "properties" : { - "path" : { - "$ref" : "#/components/schemas/SyncPluginPath" }, - "source_name" : { - "description" : "Name of an existing source", + "homepage" : { + "example" : "https://cloudquery.io", "type" : "string" }, - "version" : { - "description" : "Version of the plugin", - "example" : "v1.2.3", + "repository" : { + "example" : "https://github.com/cloudquery/cloudquery", "type" : "string" }, - "spec" : { - "additionalProperties" : false, - "format" : "Plugin parameters, specific to each plugin", - "type" : "object" + "logo" : { + "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", + "pattern" : "^(https:\\/\\/storage\\.googleapis\\.com\\/cq-cloud-images\\/[a-z0-9-]+)?$", + "type" : "string" }, - "env" : { - "description" : "Environment variables for the plugin. All environment variables will be stored as secrets.", - "items" : { - "$ref" : "#/components/schemas/SyncEnvCreate" - }, - "type" : "array" + "public" : { + "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 plugin's team.", + "type" : "boolean" }, - "connector_id" : { - "$ref" : "#/components/schemas/ConnectorID" + "created_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" } }, - "required" : [ "path", "version" ], - "title" : "Sync Source Test Connection creation definition" - }, - "SyncTestConnectionID" : { - "description" : "unique ID of the test connection", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "ID" - }, - "SyncTestConnectionStatus" : { - "description" : "The status of the sync run", - "enum" : [ "completed", "failed", "started", "created" ], - "type" : "string" + "title" : "CloudQuery Addon" }, - "SyncSourceTestConnection" : { + "AddonVersion" : { + "additionalProperties" : false, + "description" : "CloudQuery Addon Version", "properties" : { - "id" : { - "$ref" : "#/components/schemas/SyncTestConnectionID" - }, - "status" : { - "$ref" : "#/components/schemas/SyncTestConnectionStatus" - }, - "failure_reason" : { - "description" : "Reason for failure", - "example" : "password authentication failed for user \"exampleuser\"", - "type" : "string" - }, - "failure_code" : { - "description" : "Code for failure", - "example" : "INVALID_CREDENTIALS", - "type" : "string" - }, "created_at" : { - "description" : "Time the test connection was created", + "description" : "The date and time the plugin version was created.", "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "completed_at" : { - "description" : "Time the test connection was completed", + "published_at" : { + "description" : "The date and time the plugin version was set to non-draft (published).", "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "plugin_path" : { - "$ref" : "#/components/schemas/SyncPluginPath" - }, - "plugin_version" : { - "$ref" : "#/components/schemas/VersionName" - } - }, - "required" : [ "created_at", "id", "status" ] - }, - "SyncSourceTestConnectionID" : { - "description" : "ID of the Sync Source Test Connection", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "SyncSourceTestConnectionID" - }, - "DisplayName" : { - "description" : "A human-readable display name", - "example" : "Human Readable Name", - "maxLength" : 255, - "minLength" : 1, - "pattern" : "^[a-zA-Z\\p{L}\\p{N}_][a-zA-Z\\p{L}\\p{N}_ \\-'\\(\\)\\[\\]]*$", - "type" : "string", - "x-pattern-message" : "can contain only letters, numbers, spaces, hyphens, underscores, brackets and apostrophes" - }, - "PromoteSyncSourceTestConnection" : { - "description" : "Sync Source Definition", - "properties" : { "name" : { - "description" : "Descriptive, unique name for the source. The name can only contain ASCII letters, digits, - and _.", - "example" : "my-source-definition", - "pattern" : "^[a-zA-Z0-9_-]+$", + "$ref" : "#/components/schemas/VersionName" + }, + "message" : { + "description" : "Description of what's new or changed in this version (supports markdown)", + "example" : "- Added support for *AWS S3* - Added support for *AWS EC2*", "type" : "string" }, - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" + "doc" : { + "description" : "Main README in MD format", + "type" : "string" }, - "tables" : { - "description" : "Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified.", + "draft" : { + "description" : "If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.", + "type" : "boolean" + }, + "plugin_deps" : { + "description" : "list of plugins the addon depends on in the format of team_name/kind/name@version", "items" : { "type" : "string" }, "type" : "array" }, - "skip_tables" : { - "description" : "Tables matched by `tables` that should be skipped. Wildcards are supported.", + "addon_deps" : { + "description" : "list of other addons this addon depends on in the format of team_name/type/name@version", "items" : { "type" : "string" }, "type" : "array" }, - "overwrite_source" : { - "type" : "boolean", - "Description" : "Set this to allow overwriting an existing sync source. Defaults to true to preserve compatibility." + "retracted" : { + "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.", + "type" : "boolean" + }, + "checksum" : { + "description" : "The checksum of the addon asset", + "type" : "string" } }, - "required" : [ "name", "tables" ], - "title" : "Sync Source definition for creating a new source" - }, - "SyncLastUpdateSource" : { - "description" : "How was the source or destination been created or updated last", - "enum" : [ "yaml", "ui" ], - "type" : "string" + "required" : [ "checksum", "created_at", "doc", "draft", "message", "name", "retracted" ], + "title" : "CloudQuery Addon Version" }, - "SyncSourceCreate" : { - "description" : "Sync Source Definition", + "AddonVersionUpdate" : { "properties" : { - "name" : { - "description" : "Descriptive, unique name for the source. The name can only contain ASCII letters, digits, - and _.", - "example" : "my-source-definition", - "pattern" : "^[a-zA-Z0-9_-]+$", + "message" : { + "description" : "Description of what's new or changed in this version (supports markdown)", + "example" : "- Added support for *AWS S3* - Added support for *AWS EC2*", "type" : "string" }, - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" - }, - "path" : { - "$ref" : "#/components/schemas/SyncPluginPath" - }, - "version" : { - "description" : "Version of the plugin", - "example" : "v1.2.3", + "doc" : { + "description" : "Main README in MD format", "type" : "string" }, - "tables" : { - "description" : "Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified.", + "draft" : { + "description" : "If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.", + "type" : "boolean" + }, + "plugin_deps" : { + "description" : "list of plugins the addon depends on in the format of team_name/kind/name@version", "items" : { "type" : "string" }, "type" : "array" }, - "skip_tables" : { - "description" : "Tables matched by `tables` that should be skipped. Wildcards are supported.", + "addon_deps" : { + "description" : "list of other addons this addon depends on in the format of team_name/type/name@version", "items" : { "type" : "string" }, "type" : "array" }, - "spec" : { - "additionalProperties" : false, - "format" : "Plugin parameters, specific to each plugin", - "type" : "object" - }, - "env" : { - "description" : "Environment variables for the plugin. All environment variables will be stored as secrets.", - "items" : { - "$ref" : "#/components/schemas/SyncEnvCreate" - }, - "type" : "array" + "retracted" : { + "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.", + "type" : "boolean" }, - "last_update_source" : { - "$ref" : "#/components/schemas/SyncLastUpdateSource" + "checksum" : { + "description" : "The checksum of the addon asset", + "type" : "string" + } + } + }, + "AddonAsset" : { + "additionalProperties" : false, + "description" : "CloudQuery Addon Asset", + "properties" : { + "checksum" : { + "description" : "The checksum of the addon asset", + "type" : "string" }, - "connector_id" : { - "$ref" : "#/components/schemas/ConnectorID" + "location" : { + "description" : "The location to download the addon asset from", + "format" : "uri", + "type" : "string" } }, - "required" : [ "name", "path", "tables", "version" ], - "title" : "Sync Source definition for creating a new source" + "required" : [ "checksum", "location" ], + "title" : "CloudQuery Addon Asset" + }, + "TeamPlan" : { + "description" : "The plan the team is on (trial is deprecated)", + "enum" : [ "free", "paid", "enterprise", "trial" ], + "type" : "string" }, - "SyncEnv" : { - "description" : "Environment variable. Environment variables are assumed to be secret.", + "Team" : { + "additionalProperties" : false, + "description" : "CloudQuery Team", "properties" : { + "created_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" + }, "name" : { - "description" : "Name of the environment variable", + "$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" : { + "example" : false, + "type" : "boolean" + }, + "trial_end_time" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", "type" : "string" + }, + "display_name" : { + "description" : "The team's display name", + "example" : "CloudQuery", + "maxLength" : 255, + "type" : "string" + }, + "internal" : { + "example" : false, + "type" : "boolean" } }, - "required" : [ "name" ] + "required" : [ "display_name", "internal", "is_trial_active", "name", "plan" ], + "title" : "Team" }, - "SyncSource" : { - "allOf" : [ { - "$ref" : "#/components/schemas/SyncSourceCreate" - }, { - "properties" : { - "created_at" : { - "description" : "Time when the source was created", - "example" : "2023-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "updated_at" : { - "description" : "Time when the source was last updated", - "example" : "2023-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "env" : { - "description" : "Environment variables for the plugin.", - "items" : { - "$ref" : "#/components/schemas/SyncEnv" - }, - "type" : "array" - }, - "draft" : { - "description" : "If a sync source is in draft, it cannot be used in syncs. To get it out of draft, 'promote' it using a successful test connection ID.", - "type" : "boolean" - } + "TeamImageCreate" : { + "additionalProperties" : false, + "properties" : { + "name" : { + "description" : "Name of image", + "maxLength" : 64, + "minLength" : 1, + "type" : "string" }, - "required" : [ "created_at", "draft", "env", "updated_at" ] - } ] - }, - "SyncDestinationWriteMode" : { - "default" : "overwrite-delete-stale", - "description" : "Write mode for the destination", - "enum" : [ "append", "overwrite", "overwrite-delete-stale" ], - "type" : "string" - }, - "SyncDestinationMigrateMode" : { - "default" : "safe", - "description" : "Migrate mode for the destination", - "enum" : [ "safe", "forced" ], - "type" : "string" + "checksum" : { + "description" : "SHA1 checksum of image", + "maxLength" : 40, + "minLength" : 40, + "pattern" : "^[a-f0-9]+$", + "type" : "string" + }, + "content_type" : { + "$ref" : "#/components/schemas/ContentType" + } + }, + "required" : [ "checksum", "content_type", "name" ], + "title" : "Create Team Image Request" }, - "SyncDestinationTestConnectionCreate" : { + "TeamImage" : { "properties" : { - "path" : { - "$ref" : "#/components/schemas/SyncPluginPath" - }, - "destination_name" : { - "description" : "Name of an existing destination", + "name" : { + "description" : "Name of image", "type" : "string" }, - "version" : { - "description" : "Version of the plugin", - "example" : "v1.2.3", + "checksum" : { + "description" : "SHA1 checksum of image", "type" : "string" }, - "write_mode" : { - "$ref" : "#/components/schemas/SyncDestinationWriteMode" - }, - "migrate_mode" : { - "$ref" : "#/components/schemas/SyncDestinationMigrateMode" + "url" : { + "description" : "URL to download image", + "type" : "string", + "x-go-name" : "URL" }, - "spec" : { - "additionalProperties" : false, - "format" : "Plugin parameters, specific to each plugin", - "type" : "object" + "upload_url" : { + "description" : "URL to upload image", + "type" : "string", + "x-go-name" : "UploadURL" }, - "env" : { - "description" : "Environment variables for the plugin. All environment variables will be stored as secrets.", - "items" : { - "$ref" : "#/components/schemas/SyncEnvCreate" + "required_headers" : { + "additionalProperties" : { + "items" : { + "type" : "string" + } }, - "type" : "array" - }, - "connector_id" : { - "$ref" : "#/components/schemas/ConnectorID" + "description" : "Required HTTP headers to include for the upload" } }, - "required" : [ "path", "version" ], - "title" : "Sync Destination Test Connection creation definition" + "required" : [ "checksum", "name", "required_headers", "url" ] + }, + "AddonOrderID" : { + "description" : "ID of the addon order", + "example" : "12345678-1234-1234-1234-1234567890ab", + "format" : "uuid", + "type" : "string", + "x-go-name" : "AddonOrderID" + }, + "AddonOrderStatus" : { + "enum" : [ "pending", "completed", "cancelled" ], + "type" : "string" }, - "SyncDestinationTestConnection" : { + "AddonOrder" : { + "additionalProperties" : false, + "description" : "CloudQuery Addon Order", "properties" : { "id" : { - "$ref" : "#/components/schemas/SyncTestConnectionID" + "$ref" : "#/components/schemas/AddonOrderID" }, - "status" : { - "$ref" : "#/components/schemas/SyncTestConnectionStatus" + "team_name" : { + "$ref" : "#/components/schemas/TeamName" }, - "failure_reason" : { - "description" : "Reason for failure", - "example" : "password authentication failed for user \"exampleuser\"", - "type" : "string" + "addon_team" : { + "$ref" : "#/components/schemas/TeamName" }, - "failure_code" : { - "description" : "Code for failure", - "example" : "INVALID_CREDENTIALS", - "type" : "string" + "addon_type" : { + "$ref" : "#/components/schemas/AddonType" + }, + "addon_name" : { + "$ref" : "#/components/schemas/AddonName" + }, + "status" : { + "$ref" : "#/components/schemas/AddonOrderStatus" }, "created_at" : { - "description" : "Time the test connection was created", "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "completed_at" : { - "description" : "Time the test connection was completed", + "updated_at" : { "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "plugin_path" : { - "$ref" : "#/components/schemas/SyncPluginPath" + "completed_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" }, - "plugin_version" : { - "$ref" : "#/components/schemas/VersionName" + "completion_url" : { + "description" : "Stripe URL for completing purchase. Only shown in response to POST request.", + "format" : "uri", + "type" : "string", + "x-go-name" : "CompletionURL" } }, - "required" : [ "created_at", "id", "status" ] - }, - "SyncDestinationTestConnectionID" : { - "description" : "ID of the Sync Destination Test Connection", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "SyncDestinationTestConnectionID" + "required" : [ "addon_name", "addon_team", "addon_type", "created_at", "id", "status", "team_name", "updated_at" ], + "title" : "CloudQuery Addon" }, - "PromoteSyncDestinationTestConnection" : { - "description" : "Sync Destination Definition", + "AddonOrderCreate" : { + "additionalProperties" : false, + "description" : "Create CloudQuery Addon Order", "properties" : { - "name" : { - "description" : "Descriptive, unique name for the destination. The name can only contain ASCII letters, digits, - and _.", - "example" : "my-destination-definition", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string" + "addon_team" : { + "$ref" : "#/components/schemas/TeamName" }, - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" + "addon_type" : { + "$ref" : "#/components/schemas/AddonType" }, - "write_mode" : { - "$ref" : "#/components/schemas/SyncDestinationWriteMode" + "addon_name" : { + "$ref" : "#/components/schemas/AddonName" }, - "migrate_mode" : { - "$ref" : "#/components/schemas/SyncDestinationMigrateMode" + "success_url" : { + "description" : "URL to redirect to after successful order completion", + "example" : "https://cloud.cloudquery.io/order-completion", + "type" : "string" }, - "overwrite_destination" : { - "type" : "boolean", - "Description" : "Set this to allow overwriting an existing sync destination. Defaults to true to preserve compatibility." + "cancel_url" : { + "description" : "URL to redirect to after order cancellation", + "example" : "https://cloud.cloudquery.io/order-cancelled", + "type" : "string" } }, - "required" : [ "name" ], - "title" : "Sync Destination definition for creating a new source" + "required" : [ "addon_name", "addon_team", "addon_type", "cancel_url", "success_url" ], + "title" : "Create CloudQuery Addon Order" + }, + "UserName" : { + "description" : "The unique name for the user.", + "example" : "Sarah O'Connor", + "maxLength" : 255, + "minLength" : 1, + "pattern" : "^[a-zA-Z\\p{L}][a-zA-Z\\p{L} \\-']*$", + "type" : "string" + }, + "UserOnboarded" : { + "description" : "Whether the user has completed onboarding", + "type" : "boolean" }, - "SyncDestinationCreate" : { - "description" : "Sync Destination Definition", + "User" : { + "additionalProperties" : false, + "description" : "CloudQuery User", "properties" : { - "name" : { - "description" : "Descriptive, unique name for the destination. The name can only contain ASCII letters, digits, - and _.", - "example" : "my-destination-definition", - "pattern" : "^[a-zA-Z0-9_-]+$", + "created_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", "type" : "string" }, - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" - }, - "path" : { - "$ref" : "#/components/schemas/SyncPluginPath" + "id" : { + "description" : "ID of the User", + "example" : "12345678-1234-1234-1234-1234567890ab", + "format" : "uuid", + "type" : "string", + "x-go-name" : "ID" }, - "version" : { - "description" : "Version of the plugin", - "example" : "v1.2.3", + "email" : { + "example" : "user@example.com", "type" : "string" }, - "write_mode" : { - "$ref" : "#/components/schemas/SyncDestinationWriteMode" - }, - "migrate_mode" : { - "$ref" : "#/components/schemas/SyncDestinationMigrateMode" - }, - "spec" : { - "additionalProperties" : false, - "format" : "Plugin parameters, specific to each plugin", - "type" : "object" + "name" : { + "$ref" : "#/components/schemas/UserName" }, - "env" : { - "description" : "Environment variables for the plugin. All environment variables will be stored as secrets.", - "items" : { - "$ref" : "#/components/schemas/SyncEnvCreate" - }, - "type" : "array" + "onboarded" : { + "$ref" : "#/components/schemas/UserOnboarded" }, - "last_update_source" : { - "$ref" : "#/components/schemas/SyncLastUpdateSource" + "updated_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" }, - "connector_id" : { - "$ref" : "#/components/schemas/ConnectorID" + "profile_image_url" : { + "description" : "Profile image URL of user", + "type" : "string", + "x-go-name" : "ProfileImageURL" } }, - "required" : [ "name", "path", "version" ], - "title" : "Sync Destination definition for creating a new destination" - }, - "SyncDestination" : { - "allOf" : [ { - "$ref" : "#/components/schemas/SyncDestinationCreate" - }, { - "properties" : { - "created_at" : { - "description" : "Time when the source was created", - "example" : "2023-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "updated_at" : { - "description" : "Time when the source was last updated", - "example" : "2023-07-14T16:53:42Z", - "format" : "date-time", - "type" : "string" - }, - "env" : { - "description" : "Environment variables for the plugin.", - "items" : { - "$ref" : "#/components/schemas/SyncEnv" - }, - "type" : "array" - }, - "draft" : { - "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.", - "type" : "boolean" - } - }, - "required" : [ "created_at", "draft", "env", "updated_at" ] - } ] + "required" : [ "email", "id" ], + "title" : "CloudQuery User" }, - "SyncSourceUpdate" : { - "description" : "Sync Source Update Definition", + "MembershipWithUser" : { + "additionalProperties" : false, "properties" : { - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" - }, - "tables" : { - "description" : "Tables to sync. Wildcards are supported. Note that child tables are excluded by default, and need to be explicitly specified.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "skip_tables" : { - "description" : "Tables matched by `tables` that should be skipped. Wildcards are supported.", - "items" : { - "type" : "string" - }, - "type" : "array" + "role" : { + "example" : "admin", + "type" : "string" }, - "last_update_source" : { - "$ref" : "#/components/schemas/SyncLastUpdateSource" + "user" : { + "$ref" : "#/components/schemas/User" } }, - "title" : "Sync Source definition for updating a source" + "required" : [ "role", "user" ], + "title" : "CloudQuery User Membership" }, - "SyncTestConnection" : { + "SpendingLimit" : { + "additionalProperties" : false, + "description" : "A configurable spending limit for the team. Empty values indicate no limit.", "properties" : { - "id" : { - "$ref" : "#/components/schemas/SyncTestConnectionID" - }, - "status" : { - "$ref" : "#/components/schemas/SyncTestConnectionStatus" - }, - "failure_reason" : { - "description" : "Reason for failure", - "example" : "password authentication failed for user \"exampleuser\"", - "type" : "string" - }, - "failure_code" : { - "description" : "Code for failure", - "example" : "INVALID_CREDENTIALS", - "type" : "string" - }, "created_at" : { - "description" : "Time the test connection was created", + "description" : "The date and time the team limit was created.", "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "completed_at" : { - "description" : "Time the test connection was completed", + "updated_at" : { + "description" : "The date and time the team limit was last updated.", "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "plugin_path" : { - "$ref" : "#/components/schemas/SyncPluginPath" - }, - "plugin_version" : { - "$ref" : "#/components/schemas/VersionName" - }, - "plugin_kind" : { - "$ref" : "#/components/schemas/PluginKind" + "usd" : { + "description" : "The maximum USD amount the team is allowed to use within a calendar month.", + "example" : 1000, + "maximum" : 1000000000, + "minimum" : 0, + "type" : "integer", + "x-go-name" : "USD" } }, - "required" : [ "created_at", "id", "status" ] + "title" : "Team Spending Limit" }, - "SyncIncremental" : { - "description" : "Managed Sync Incremental Options definition", + "SpendingLimitUpdate" : { + "additionalProperties" : false, + "description" : "A configurable spending limit for the team.", "properties" : { - "table" : { - "description" : "Name of the table in which to store incremental sync data", - "pattern" : "^([a-zA-Z_][a-zA-Z0-9_]*)?$", - "type" : "string" - }, - "destination" : { - "description" : "Name of the destination in which to store incremental sync data", - "pattern" : "^([a-zA-Z][a-zA-Z0-9_-]*)?$", - "type" : "string" + "usd" : { + "description" : "The maximum USD amount the team is allowed to use within a calendar month.", + "example" : 1000, + "maximum" : 1000000000, + "minimum" : 0, + "type" : "integer", + "x-go-name" : "USD" } }, - "required" : [ "destination", "table" ] + "required" : [ "usd" ], + "title" : "Team Spending Limit" }, - "Sync" : { - "description" : "Managed Sync definition", + "SpendingLimitCreate" : { + "additionalProperties" : false, + "description" : "A configurable monthly limit for team usage.", "properties" : { - "name" : { - "description" : "Descriptive, unique name for the sync. The name can only contain ASCII letters, digits, - and _.", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string" - }, - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" - }, - "source" : { - "description" : "Unique name of the source", + "usd" : { + "description" : "The maximum USD amount the team is allowed to use within a calendar month.", + "example" : 1000, + "maximum" : 1000000000, + "minimum" : 0, + "type" : "integer", + "x-go-name" : "USD" + } + }, + "required" : [ "usd" ], + "title" : "Team Spending Limit" + }, + "Invoice" : { + "additionalProperties" : false, + "description" : "Invoice details", + "properties" : { + "created_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", "type" : "string" }, - "destinations" : { - "description" : "List of destinations for the sync", - "items" : { - "description" : "Unique name of the destination", - "type" : "string" - }, - "type" : "array" - }, - "disabled" : { - "description" : "Whether the sync is disabled", - "type" : "boolean" + "amount_due" : { + "description" : "Amount due in cents. This is the amount that will be charged, unless there are pending invoice items. If the invoice’s total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due may be 0. The charge that gets generated for the invoice will be for the amount specified in amount_due.", + "example" : 1000, + "format" : "int64", + "type" : "integer" }, - "schedule" : { - "description" : "Cron schedule for the sync", + "currency" : { + "example" : "usd", "type" : "string" }, - "cpu" : { - "description" : "CPU quota for the sync", - "example" : "1", + "invoice_pdf" : { + "description" : "The link to download the PDF for the invoice.", + "format" : "uri", "type" : "string", - "x-go-name" : "CPU" - }, - "memory" : { - "description" : "Memory quota for the sync", - "example" : "2Gi", - "type" : "string" - }, - "incremental" : { - "$ref" : "#/components/schemas/SyncIncremental" - }, - "created_at" : { - "description" : "Time when the sync was created", - "format" : "date-time", - "type" : "string" - }, - "updated_at" : { - "description" : "Time when the sync was updated", - "format" : "date-time", - "type" : "string" + "x-go-name" : "InvoicePDF" }, - "created_by" : { - "type" : "string" + "paid" : { + "description" : "Whether or not payment was successfully collected for this invoice.", + "example" : true, + "type" : "boolean" } }, - "required" : [ "cpu", "created_at", "destinations", "disabled", "display_name", "memory", "name", "schedule", "source", "updated_at" ] - }, - "SyncDestinationWriteModeUpdate" : { - "description" : "Write mode for the destination, for updating", - "enum" : [ "append", "overwrite", "overwrite-delete-stale" ], - "type" : "string" - }, - "SyncDestinationMigrateModeUpdate" : { - "description" : "Migrate mode for the destination, for updating", - "enum" : [ "safe", "forced" ], - "type" : "string" + "required" : [ "amount_due", "created_at", "currency", "invoice_pdf", "paid" ], + "title" : "Invoice" }, - "SyncDestinationUpdate" : { - "description" : "Sync Destination Update Definition", + "UsageCurrent" : { + "additionalProperties" : false, + "description" : "The usage of a plugin within the current calendar month.", "properties" : { - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" + "plugin_team" : { + "$ref" : "#/components/schemas/TeamName" + }, + "plugin_kind" : { + "$ref" : "#/components/schemas/PluginKind" + }, + "plugin_name" : { + "$ref" : "#/components/schemas/PluginName" + }, + "rows" : { + "description" : "The number of rows used by the plugin in the calendar month.", + "example" : 1000000, + "format" : "int64", + "minimum" : 0, + "type" : "integer" }, - "write_mode" : { - "$ref" : "#/components/schemas/SyncDestinationWriteModeUpdate" + "usd" : { + "deprecated" : true, + "description" : "The USD amount used by the plugin in the calendar month, rounded to two decimal places.", + "example" : "43.95", + "type" : "string", + "x-go-name" : "USD" }, - "migrate_mode" : { - "$ref" : "#/components/schemas/SyncDestinationMigrateModeUpdate" + "remaining_usd" : { + "deprecated" : true, + "description" : "The remaining USD amount in the plugin's quota for the calendar month.", + "example" : "56.05", + "type" : "string", + "x-go-name" : "RemainingUSD" }, - "last_update_source" : { - "$ref" : "#/components/schemas/SyncLastUpdateSource" + "remaining_rows" : { + "deprecated" : true, + "description" : "Deprecated - this field used to contain the estimated remaining rows but now returns 1 to indicate rows are remaining or 0 if there are no more remaining rows.", + "example" : 1, + "format" : "int64", + "minimum" : 0, + "type" : "integer" } }, - "title" : "Sync Destination definition for updating a destination" + "required" : [ "plugin_kind", "plugin_name", "plugin_team", "rows", "usd" ], + "title" : "CloudQuery Plugin Usage" }, - "SyncCreate" : { - "description" : "Managed Sync definition", + "UsageIncrease" : { + "additionalProperties" : false, + "description" : "Increase the usage of a plugin. This can incur billing costs and should be used only by plugins.", "properties" : { - "name" : { - "description" : "Descriptive, unique name for the sync. The name can only contain ASCII letters, digits, - and _.", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string" + "plugin_team" : { + "$ref" : "#/components/schemas/TeamName" }, - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" + "plugin_kind" : { + "$ref" : "#/components/schemas/PluginKind" }, - "source" : { - "description" : "Unique name of the source", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string" + "plugin_name" : { + "$ref" : "#/components/schemas/PluginName" }, - "destinations" : { + "tables" : { "items" : { - "description" : "Unique name of the destination", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string" + "$ref" : "#/components/schemas/UsageIncrease_tables_inner" }, - "minItems" : 1, "type" : "array" }, - "schedule" : { - "description" : "Cron schedule for the sync", - "type" : "string" - }, - "disabled" : { - "default" : false, - "description" : "Whether the sync is disabled", - "type" : "boolean" - }, - "cpu" : { - "default" : "1", - "description" : "CPU quota for the sync", - "type" : "string", - "x-go-name" : "CPU" + "rows" : { + "description" : "The total number of additional rows used by the plugin.", + "example" : 1000000, + "minimum" : 0, + "type" : "integer" }, - "memory" : { - "default" : "2Gi", - "description" : "Memory quota for the sync", + "request_id" : { + "description" : "A unique ID associated with the usage increase.", + "example" : "123e4567-e89b-12d3-a456-426614174000", + "format" : "uuid", "type" : "string" }, - "incremental" : { - "$ref" : "#/components/schemas/SyncIncremental" + "installation_id" : { + "description" : "Installation ID associated with the platform, for platform syncs.", + "pattern" : "^[a-z0-9]{64}$", + "type" : "string", + "x-go-name" : "InstallationID" } }, - "required" : [ "destinations", "name", "source" ] + "required" : [ "plugin_kind", "plugin_name", "plugin_team", "request_id", "rows" ], + "title" : "CloudQuery Plugin Usage Increase" }, - "SyncIncrementalUpdate" : { - "description" : "Managed Sync Incremental Options Update definition", + "UsageSummaryGroup" : { + "description" : "A usage summary group.", "properties" : { - "table" : { - "description" : "Name of the table in which to store incremental sync data", - "pattern" : "^([a-zA-Z_][a-zA-Z0-9_]*)?$", + "name" : { + "description" : "The name of the group.", + "example" : "plugin", "type" : "string" }, - "destination" : { - "description" : "Name of the destination in which to store incremental sync data", - "pattern" : "^([a-zA-Z][a-zA-Z0-9_-]*)?$", + "value" : { + "description" : "The value of the group at this index.", + "example" : "cloudquery/source/aws", "type" : "string" } - } + }, + "required" : [ "name", "value" ], + "title" : "CloudQuery Usage Summary Group" }, - "SyncUpdate" : { - "description" : "Managed Sync definition", + "UsageSummaryValue" : { + "description" : "A usage summary value.", "properties" : { - "display_name" : { - "$ref" : "#/components/schemas/DisplayName" - }, - "source" : { - "description" : "Unique name of the source", - "pattern" : "^[a-zA-Z0-9_-]+$", + "timestamp" : { + "description" : "The timestamp marking the start of a period.", + "format" : "date-time", "type" : "string" }, - "destinations" : { + "paid_rows" : { + "description" : "The paid rows that were synced in this period, one per group.", "items" : { - "description" : "Unique name of the destination", - "pattern" : "^[a-zA-Z0-9_-]+$", - "type" : "string" + "format" : "int64", + "type" : "integer" }, - "minItems" : 1, "type" : "array" }, - "schedule" : { - "description" : "Cron schedule for the sync", - "type" : "string" - }, - "disabled" : { - "default" : false, - "description" : "Whether the sync is disabled", - "type" : "boolean" - }, - "env" : { - "description" : "Environment variables for the sync", + "cloud_vcpu_seconds" : { + "description" : "vCPU/seconds consumed in this period, one per group.", "items" : { - "$ref" : "#/components/schemas/SyncEnv" + "format" : "int64", + "type" : "integer" }, "type" : "array" }, - "cpu" : { - "default" : "1", - "description" : "CPU quota for the sync", - "type" : "string", - "x-go-name" : "CPU" - }, - "memory" : { - "default" : "2Gi", - "description" : "Memory quota for the sync", - "type" : "string" + "cloud_vram_byte_seconds" : { + "description" : "vRAM/byte-seconds consumed in this period, one per group.", + "items" : { + "format" : "int64", + "type" : "integer" + }, + "type" : "array" }, - "incremental" : { - "$ref" : "#/components/schemas/SyncIncrementalUpdate" + "cloud_egress_bytes" : { + "description" : "Egress bytes consumed in this period, one per group.", + "items" : { + "format" : "int64", + "type" : "integer" + }, + "type" : "array" } - } - }, - "SyncRunStatus" : { - "description" : "The status of the sync run", - "enum" : [ "completed", "failed", "started", "cancelled", "created" ], - "type" : "string" - }, - "SyncRunStatusReason" : { - "description" : "The reason for the status", - "enum" : [ "error", "oom_killed" ], - "type" : "string" + }, + "required" : [ "timestamp" ], + "title" : "CloudQuery Usage Summary Value" }, - "SyncRun" : { - "description" : "Managed Sync Run definition", + "UsageSummary" : { + "additionalProperties" : { }, + "description" : "A usage summary for a team, summarizing the paid rows synced and/or cloud resource usage over a given time range.\nNote that empty or all-zero values are not included in the response.\n", "properties" : { - "sync_name" : { - "description" : "Name of the sync", - "type" : "string" - }, - "id" : { - "description" : "unique ID of the run", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "ID" + "groups" : { + "description" : "The groups of the usage summary. Every group will have a corresponding value at the same index in the values array.", + "example" : [ { + "name" : "plugin", + "value" : "cloudquery/source/aws" + }, { + "name" : "plugin", + "value" : "cloudquery/source/gcp" + } ], + "items" : { + "$ref" : "#/components/schemas/UsageSummaryGroup" + } }, - "status" : { - "$ref" : "#/components/schemas/SyncRunStatus" + "values" : { + "example" : [ { + "timestamp" : "2021-01-01T00:00:00Z", + "paid_rows" : [ 100, 200 ] + }, { + "timestamp" : "2021-01-02T00:00:00Z", + "paid_rows" : [ 150, 300 ] + } ], + "items" : { + "$ref" : "#/components/schemas/UsageSummaryValue" + } }, - "status_reason" : { - "$ref" : "#/components/schemas/SyncRunStatusReason" + "metadata" : { + "$ref" : "#/components/schemas/UsageSummary_metadata" + } + }, + "required" : [ "groups", "metadata", "values" ], + "title" : "CloudQuery Usage Summary" + }, + "PriceCategorySpend" : { + "additionalProperties" : false, + "description" : "Spend by price category for a defined period.", + "properties" : { + "category" : { + "$ref" : "#/components/schemas/PluginPriceCategory" }, - "created_at" : { - "description" : "Time the sync run was created", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "total" : { "type" : "string" - }, - "completed_at" : { - "description" : "Time the sync run was completed", - "example" : "2017-07-14T16:53:42Z", + } + }, + "required" : [ "category", "total" ], + "title" : "Spend by price category" + }, + "SpendSummaryValue" : { + "additionalProperties" : false, + "description" : "A spend summary value.", + "properties" : { + "date" : { + "description" : "The timestamp for the spend summary.", "format" : "date-time", "type" : "string" }, - "total_rows" : { - "description" : "Total number of rows in the sync", - "format" : "int64", - "type" : "integer" - }, - "warnings" : { - "description" : "Number of warnings encountered during the sync", - "format" : "int64", - "type" : "integer" + "by_category" : { + "items" : { + "$ref" : "#/components/schemas/PriceCategorySpend" + }, + "type" : "array" }, - "errors" : { - "description" : "Number of errors encountered during the sync", - "format" : "int64", - "type" : "integer" + "total" : { + "description" : "Total spend for the period in USD.", + "type" : "string" } }, - "required" : [ "created_at", "errors", "id", "status", "sync_name", "total_rows", "warnings" ] - }, - "SyncRunID" : { - "description" : "ID of the SyncRun", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "SyncRunID" + "required" : [ "by_category", "date", "total" ], + "title" : "CloudQuery Spend Summary Value" }, - "SyncRunDetails" : { - "allOf" : [ { - "$ref" : "#/components/schemas/SyncRun" - }, { - "properties" : { - "cpu_seconds" : { - "description" : "Total CPU seconds utilized during this sync run", - "format" : "double", - "type" : "number", - "x-go-name" : "CPUSeconds" - }, - "memory_byte_seconds" : { - "description" : "Total memory byte seconds utilized during this sync run", - "format" : "double", - "type" : "number" - }, - "network_egress_bytes" : { - "description" : "Total network egress bytes during this sync run", - "format" : "double", - "type" : "number" + "SpendSummary" : { + "additionalProperties" : { }, + "description" : "A spend summary for a team, summarizing the spend by each price category over a given time range.\nNote that empty or all-zero values are not included in the response.\n", + "properties" : { + "values" : { + "items" : { + "$ref" : "#/components/schemas/SpendSummaryValue" } + }, + "metadata" : { + "$ref" : "#/components/schemas/SpendSummary_metadata" } - } ] - }, - "SyncRunTableProgress" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/SyncRunTableProgress_value" }, - "description" : "Table-specific progress information for a sync run" + "required" : [ "metadata", "values" ], + "title" : "CloudQuery Spend Summary" }, - "ConnectorIdentityResponseAWS" : { - "additionalProperties" : false, - "description" : "AWS connector identity response", - "properties" : { - "role_arn" : { - "description" : "Role ARN to assume", - "type" : "string", - "x-go-name" : "RoleARN" - } - }, - "required" : [ "role_arn" ] + "Email" : { + "example" : "user@example.com", + "format" : "email", + "type" : "string" }, - "ConnectorCredentialsResponseAWS" : { + "Invitation" : { "additionalProperties" : false, - "description" : "AWS connector credentials response", "properties" : { - "access_key_id" : { - "type" : "string" - }, - "secret_access_key" : { - "type" : "string" + "team_name" : { + "$ref" : "#/components/schemas/TeamName" }, - "session_token" : { - "type" : "string" + "email" : { + "$ref" : "#/components/schemas/Email" }, - "source" : { + "role" : { + "example" : "admin", "type" : "string" }, - "can_expire" : { - "type" : "boolean" - }, - "expires" : { + "created_at" : { + "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" } }, - "required" : [ "access_key_id", "can_expire", "expires", "secret_access_key", "session_token", "source" ] + "required" : [ "created_at", "email", "role", "team_name" ] }, - "ConnectorCredentialsResponseOAuth" : { + "MembershipWithTeam" : { "additionalProperties" : false, - "description" : "OAuth connector credentials response", "properties" : { - "access_token" : { + "role" : { + "example" : "admin", "type" : "string" }, - "expires" : { - "format" : "date-time", - "type" : "string" + "team" : { + "$ref" : "#/components/schemas/Team" } }, - "required" : [ "access_token" ] + "required" : [ "role", "team" ], + "title" : "CloudQuery Team Membership" }, - "ManagedDatabaseID" : { - "description" : "The identifier for the managed database", + "TeamSubscriptionOrderID" : { + "description" : "ID of the team subscription order", "example" : "12345678-1234-1234-1234-1234567890ab", "format" : "uuid", "type" : "string", - "x-go-name" : "ManagedDatabaseID" + "x-go-name" : "TeamSubscriptionOrderID" }, - "ManagedDatabaseStatus" : { - "description" : "The status of the managed database", - "enum" : [ "pending", "ready", "failed", "expired" ], + "TeamSubscriptionOrderStatus" : { + "enum" : [ "pending", "completed", "cancelled" ], "type" : "string" }, - "ManagedDatabase" : { - "description" : "Managed Database definition", + "TeamSubscriptionOrder" : { + "additionalProperties" : false, + "description" : "Team subscription order", "properties" : { + "id" : { + "$ref" : "#/components/schemas/TeamSubscriptionOrderID" + }, + "team_name" : { + "$ref" : "#/components/schemas/TeamName" + }, + "plan" : { + "$ref" : "#/components/schemas/TeamPlan" + }, + "status" : { + "$ref" : "#/components/schemas/TeamSubscriptionOrderStatus" + }, "created_at" : { - "description" : "Time the managed database was created", "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "connection_string" : { - "description" : "The connection string to the database", + "updated_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", "type" : "string" }, - "expiration" : { - "description" : "Time the managed database should expire", + "completed_at" : { "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, - "id" : { - "$ref" : "#/components/schemas/ManagedDatabaseID" - }, - "status" : { - "$ref" : "#/components/schemas/ManagedDatabaseStatus" + "completion_url" : { + "description" : "Stripe URL for completing purchase. Only shown in response to POST request when a paid plan is selected.", + "format" : "uri", + "type" : "string", + "x-go-name" : "CompletionURL" } }, - "required" : [ "created_at", "id", "status" ] - }, - "ManagedDatabaseCreate" : { - "description" : "Managed Database creation", - "type" : "object" - }, - "ConnectorStatus" : { - "description" : "The status of the connector", - "enum" : [ "created", "authenticated", "failed", "revoked" ], - "type" : "string" + "required" : [ "created_at", "id", "plan", "status", "team_name", "updated_at" ], + "title" : "Team subscription order" }, - "Connector" : { - "description" : "Connector definition", + "TeamSubscriptionOrderCreate" : { + "additionalProperties" : false, + "description" : "Create team subscription order", "properties" : { - "id" : { - "description" : "unique ID of the connector", - "example" : "12345678-1234-1234-1234-1234567890ab", - "format" : "uuid", - "type" : "string", - "x-go-name" : "ID" - }, - "type" : { - "description" : "Type of the connector", - "type" : "string" + "plan" : { + "$ref" : "#/components/schemas/TeamPlan" }, - "name" : { - "description" : "Name of the connector", + "success_url" : { + "description" : "URL to redirect to after successful order completion", + "example" : "https://cloud.cloudquery.io/order-completion", "type" : "string" }, - "status" : { - "$ref" : "#/components/schemas/ConnectorStatus" - }, - "created_at" : { - "description" : "Time the connector was created", - "example" : "2017-07-14T16:53:42Z", - "format" : "date-time", + "cancel_url" : { + "description" : "URL to redirect to after order cancellation", + "example" : "https://cloud.cloudquery.io/order-cancelled", "type" : "string" } }, - "required" : [ "created_at", "id", "name", "status", "type" ] + "required" : [ "cancel_url", "plan", "success_url" ], + "title" : "Create team subscription order" }, - "ConnectorCreate" : { - "description" : "Connector creation request", + "Settings" : { + "description" : "Platform settings definition", "properties" : { - "type" : { - "description" : "Type of the connector", - "type" : "string" - }, - "name" : { - "description" : "Name of the connector", - "type" : "string" + "enforce_mfa" : { + "default" : false, + "description" : "Whether or not to require MFA for all users", + "type" : "boolean" } }, - "required" : [ "name", "type" ] + "required" : [ "enforce_mfa" ] }, - "ConnectorUpdate" : { - "additionalProperties" : false, + "SettingsUpdate" : { + "description" : "Platform settings partial update", "properties" : { - "name" : { - "description" : "Name of the connector", - "type" : "string" + "enforce_mfa" : { + "default" : false, + "description" : "Whether or not to require MFA for all users", + "type" : "boolean" } } }, - "ConnectorAuthRequestAWS" : { - "additionalProperties" : { }, - "description" : "AWS connector authentication request to start the authentication process", - "properties" : { - "plugin_team" : { - "description" : "Team that owns the plugin we are authenticating the connector for", - "example" : "cloudquery" - }, - "plugin_kind" : { - "description" : "Kind of the plugin", - "example" : "source" - }, - "plugin_name" : { - "description" : "Name of the plugin", - "example" : "aws" - }, - "plugin_version" : { - "description" : "Version of the plugin", - "example" : "v27.1.0" - }, - "spec" : { - "additionalProperties" : false, - "format" : "Plugin parameters, specific to each plugin", - "type" : "object" - }, - "env" : { - "description" : "Environment variables used in the spec.", - "items" : { - "$ref" : "#/components/schemas/SyncEnvCreate" - } - }, - "tables" : { - "description" : "Tables to authenticate, setting from the outer spec", - "items" : { - "example" : "aws_s3_buckets" + "InvitationWithToken" : { + "additionalProperties" : false, + "allOf" : [ { + "$ref" : "#/components/schemas/Invitation" + }, { + "properties" : { + "token" : { + "description" : "The token used to accept the invitation", + "format" : "uuid", + "type" : "string" } }, - "skip_tables" : { - "description" : "Tables to skip authentication, setting from the outer spec", - "items" : { - "example" : "aws_s3_buckets" - } + "required" : [ "token" ] + } ] + }, + "TenantUser" : { + "additionalProperties" : false, + "description" : "Tenant information of a platform user", + "properties" : { + "tenant_url" : { + "description" : "URL of the tenant", + "format" : "url", + "type" : "string", + "x-go-name" : "TenantURL" }, - "skip_dependent_tables" : { - "description" : "Whether to skip dependent tables, setting from the outer spec" + "provider" : { + "description" : "Login provider of the tenant", + "type" : "string" } }, - "required" : [ "plugin_kind", "plugin_name", "plugin_team" ] + "required" : [ "tenant_url" ] }, - "ConnectorAuthResponseAWS" : { - "additionalProperties" : false, - "description" : "AWS connector authentication response to start the authentication process", + "UserID" : { + "description" : "ID of the User", + "example" : "12345678-1234-1234-1234-1234567890ab", + "format" : "uuid", + "type" : "string", + "x-go-name" : "UserID" + }, + "APIKeyName" : { + "description" : "Name of the API key", + "example" : "cli-api-key", + "maxLength" : 255, + "minLength" : 1, + "pattern" : "^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$", + "type" : "string" + }, + "APIKeyID" : { + "description" : "ID of the API key", + "example" : "12345678-1234-1234-1234-1234567890ab", + "format" : "uuid", + "type" : "string", + "x-go-name" : "APIKeyID" + }, + "APIKeyScope" : { + "description" : "Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins", + "enum" : [ "read-and-write", "syncs-operations-only" ], + "type" : "string" + }, + "APIKey" : { + "description" : "API Key to interact with CloudQuery Cloud under specific team", "properties" : { - "redirect_url" : { - "description" : "URL to redirect the user to, to authenticate", - "type" : "string", - "x-go-name" : "RedirectURL" + "name" : { + "$ref" : "#/components/schemas/APIKeyName" + }, + "created_by" : { + "description" : "email of the user that created the API key", + "example" : "user@example.com", + "type" : "string" + }, + "id" : { + "$ref" : "#/components/schemas/APIKeyID" + }, + "key" : { + "description" : "API key. Will be shown only in the response when creating the key.", + "example" : "1234567890abcdef1234567890abcdef", + "type" : "string" }, - "role_template_url" : { - "description" : "URL to the role template, to present to the user", - "type" : "string", - "x-go-name" : "RoleTemplateURL" + "created_at" : { + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" }, - "suggested_external_id" : { - "description" : "External ID suggested to enter into the role definition", - "type" : "string", - "x-go-name" : "SuggestedExternalID" + "expires_at" : { + "description" : "Timestamp at which API key will stop working", + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" }, - "suggested_policy_arns" : { - "description" : "List of AWS policy ARNs suggested to grant inside the role definition", - "items" : { - "type" : "string" - }, - "type" : "array", - "x-go-name" : "SuggestedPolicyARNs" - } - }, - "required" : [ "redirect_url", "role_template_url", "suggested_external_id", "suggested_policy_arns" ] - }, - "ConnectorAuthFinishRequestAWS" : { - "additionalProperties" : false, - "description" : "AWS connector authentication request, filled in after the user has authenticated through AWS", - "properties" : { - "role_arn" : { - "description" : "ARN of role created by the user", - "type" : "string", - "x-go-name" : "RoleARN" + "last_access_at" : { + "description" : "Timestamp at which API key was last used - accurate to the day only.", + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" }, - "external_id" : { - "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.", - "type" : "string", - "x-go-name" : "ExternalID" + "expired" : { + "description" : "Whether the API key has expired or not", + "example" : false, + "type" : "boolean" + }, + "scope" : { + "$ref" : "#/components/schemas/APIKeyScope" } }, - "required" : [ "role_arn" ] + "required" : [ "expired", "expires_at", "id", "name", "scope" ] }, - "ConnectorAuthRequestGCP" : { + "RegistryAuthToken" : { "additionalProperties" : false, - "description" : "GCP connector authentication request to start the authentication process", + "description" : "JWT token for the image registry", "properties" : { - "plugin_team" : { - "description" : "Team that owns the plugin we are authenticating the connector for", - "example" : "cloudquery", - "type" : "string" - }, - "plugin_kind" : { - "description" : "Kind of the plugin", - "example" : "source", + "access_token" : { "type" : "string" }, - "plugin_name" : { - "description" : "Name of the plugin", - "example" : "aws", + "token" : { "type" : "string" } }, - "required" : [ "plugin_kind", "plugin_name", "plugin_team" ] + "required" : [ "access_token", "token" ] }, - "ConnectorAuthResponseGCP" : { + "DockerError" : { "additionalProperties" : false, - "description" : "GCP connector authentication response to start the authentication process", + "description" : "Error Returned from the Docker Authorization Handler to the Docker Registry", "properties" : { - "service_account" : { - "description" : "CloudQuery GCP Service Account to grant access to", + "details" : { "type" : "string" } }, - "required" : [ "service_account" ] + "required" : [ "details" ], + "title" : "Docker Error" }, - "ConnectorAuthRequestOAuth" : { - "additionalProperties" : { }, - "description" : "OAuth connector authentication request to start the authentication process", - "properties" : { - "plugin_team" : { - "description" : "Team that owns the plugin we are authenticating the connector for", - "example" : "cloudquery" - }, - "plugin_kind" : { - "description" : "Kind of the plugin", - "example" : "source" - }, - "plugin_name" : { - "description" : "Name of the plugin", - "example" : "googleanalytics" - }, - "plugin_version" : { - "description" : "Version of the plugin", - "example" : "v3.0.0" - }, - "base_url" : { - "description" : "Base of the URL the callback url will be constructed from", - "example" : "https://cloud.cloudquery.io/oauth", - "x-go-name" : "BaseURL" - }, - "spec" : { - "additionalProperties" : false, - "format" : "Plugin parameters, specific to each plugin", - "type" : "object" - }, - "env" : { - "description" : "Environment variables used in the spec.", - "items" : { - "$ref" : "#/components/schemas/SyncEnvCreate" - } - }, - "tables" : { - "description" : "Tables to authenticate, setting from the outer spec", - "items" : { - "example" : "github_organizations" - } - }, - "skip_tables" : { - "description" : "Tables to skip authentication, setting from the outer spec", - "items" : { - "example" : "github_organizations" - } - }, - "skip_dependent_tables" : { - "description" : "Whether to skip dependent tables, setting from the outer spec" - }, - "flavor" : { - "description" : "Override default flavor" - } - }, - "required" : [ "base_url", "plugin_kind", "plugin_name", "plugin_team" ] + "ManagedDatabaseID" : { + "description" : "The identifier for the managed database", + "example" : "12345678-1234-1234-1234-1234567890ab", + "format" : "uuid", + "type" : "string", + "x-go-name" : "ManagedDatabaseID" }, - "ConnectorAuthResponseOAuth" : { - "additionalProperties" : false, - "description" : "OAuth connector authentication response to start the authentication process", - "properties" : { - "redirect_url" : { - "description" : "URL to redirect the user to, to authenticate", - "type" : "string", - "x-go-name" : "RedirectURL" - } - }, - "required" : [ "redirect_url" ] + "ManagedDatabaseStatus" : { + "description" : "The status of the managed database", + "enum" : [ "pending", "ready", "failed", "expired" ], + "type" : "string" }, - "ConnectorAuthFinishRequestOAuth" : { - "additionalProperties" : { }, - "description" : "OAuth connector authentication request, filled in after the user has authenticated through OAuth", + "ManagedDatabase" : { + "description" : "Managed Database definition", "properties" : { - "return_url" : { - "description" : "URL the user was redirected to (including new parameter values) after the OAuth flow is complete", - "x-go-name" : "ReturnURL" + "created_at" : { + "description" : "Time the managed database was created", + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" }, - "base_url" : { - "description" : "Base of the URL the callback url was constructed from", - "example" : "https://cloud.cloudquery.io/oauth", - "x-go-name" : "BaseURL" + "connection_string" : { + "description" : "The connection string to the database", + "type" : "string" }, - "spec" : { - "additionalProperties" : false, - "format" : "Plugin parameters, specific to each plugin", - "type" : "object" + "expiration" : { + "description" : "Time the managed database should expire", + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" }, - "env" : { - "description" : "Environment variables used in the spec.", - "items" : { - "$ref" : "#/components/schemas/SyncEnvCreate" - } + "id" : { + "$ref" : "#/components/schemas/ManagedDatabaseID" + }, + "status" : { + "$ref" : "#/components/schemas/ManagedDatabaseStatus" } }, - "required" : [ "base_url", "return_url" ] + "required" : [ "created_at", "id", "status" ] + }, + "ManagedDatabaseCreate" : { + "description" : "Managed Database creation", + "type" : "object" }, "FunctionCallOutput" : { "additionalProperties" : { }, @@ -11871,154 +8582,6 @@ }, "required" : [ "expires_at", "name" ] }, - "UpdateSyncTestConnectionForSyncSource_request" : { - "properties" : { - "status" : { - "$ref" : "#/components/schemas/SyncTestConnectionStatus" - }, - "failure_reason" : { - "description" : "Reason for failure", - "example" : "password authentication failed for user \"exampleuser\"", - "type" : "string" - }, - "failure_code" : { - "description" : "Code for failure", - "example" : "INVALID_CREDENTIALS", - "type" : "string" - } - }, - "required" : [ "status" ] - }, - "ListSyncSources_200_response" : { - "properties" : { - "items" : { - "items" : { - "$ref" : "#/components/schemas/SyncSource" - }, - "type" : "array" - }, - "metadata" : { - "$ref" : "#/components/schemas/ListMetadata" - } - }, - "required" : [ "items", "metadata" ] - }, - "ListSyncSourceSyncs_200_response" : { - "properties" : { - "items" : { - "items" : { - "$ref" : "#/components/schemas/Sync" - }, - "type" : "array" - }, - "metadata" : { - "$ref" : "#/components/schemas/ListMetadata" - } - }, - "required" : [ "items", "metadata" ] - }, - "ListSyncDestinations_200_response" : { - "properties" : { - "items" : { - "items" : { - "$ref" : "#/components/schemas/SyncDestination" - }, - "type" : "array" - }, - "metadata" : { - "$ref" : "#/components/schemas/ListMetadata" - } - }, - "required" : [ "items", "metadata" ] - }, - "ListSyncRuns_200_response" : { - "properties" : { - "items" : { - "items" : { - "$ref" : "#/components/schemas/SyncRun" - }, - "type" : "array" - }, - "metadata" : { - "$ref" : "#/components/schemas/ListMetadata" - } - }, - "required" : [ "items", "metadata" ] - }, - "UpdateSyncRun_request" : { - "properties" : { - "status" : { - "$ref" : "#/components/schemas/SyncRunStatus" - }, - "status_reason" : { - "$ref" : "#/components/schemas/SyncRunStatusReason" - } - } - }, - "CreateSyncRunProgress_request" : { - "properties" : { - "rows" : { - "description" : "Number of rows synced so far", - "format" : "int64", - "type" : "integer" - }, - "warnings" : { - "description" : "Number of warnings encountered so far", - "format" : "int64", - "type" : "integer" - }, - "errors" : { - "description" : "Number of errors encountered so far", - "format" : "int64", - "type" : "integer" - }, - "status" : { - "$ref" : "#/components/schemas/SyncRunStatus" - }, - "shard_num" : { - "description" : "The shard number that this progress update is for", - "format" : "int32", - "type" : "integer" - }, - "shard_total" : { - "description" : "The total number of shards for this sync run", - "format" : "int32", - "type" : "integer" - }, - "table_progress" : { - "$ref" : "#/components/schemas/SyncRunTableProgress" - } - }, - "required" : [ "errors", "rows", "warnings" ] - }, - "Sync_Run_Logs" : { - "additionalProperties" : { }, - "properties" : { - "location" : { - "description" : "The location to download the sync run logs from", - "format" : "uri" - } - }, - "required" : [ "location" ], - "title" : "Sync Run Logs" - }, - "GetSyncRunConnectorIdentity_200_response" : { - "properties" : { - "aws" : { - "$ref" : "#/components/schemas/ConnectorIdentityResponseAWS" - } - } - }, - "GetSyncRunConnectorCredentials_200_response" : { - "properties" : { - "aws" : { - "$ref" : "#/components/schemas/ConnectorCredentialsResponseAWS" - }, - "oauth" : { - "$ref" : "#/components/schemas/ConnectorCredentialsResponseOAuth" - } - } - }, "GetManagedDatabases_200_response" : { "properties" : { "items" : { @@ -12033,42 +8596,6 @@ }, "required" : [ "items", "metadata" ] }, - "ListConnectors_200_response" : { - "properties" : { - "items" : { - "items" : { - "$ref" : "#/components/schemas/Connector" - }, - "type" : "array" - }, - "metadata" : { - "$ref" : "#/components/schemas/ListMetadata" - } - }, - "required" : [ "items", "metadata" ] - }, - "GetConnectorAuthStatusAWS_200_response" : { - "properties" : { - "role_arn" : { - "description" : "ARN of role created by the user", - "type" : "string", - "x-go-name" : "RoleARN" - }, - "external_id" : { - "description" : "External ID used for the role", - "type" : "string", - "x-go-name" : "ExternalID" - } - } - }, - "GetConnectorAuthStatusGCP_200_response" : { - "properties" : { - "service_account" : { - "description" : "CloudQuery GCP Service Account to grant access to", - "type" : "string" - } - } - }, "ActivatePlatform_request" : { "additionalProperties" : { }, "properties" : { @@ -12295,21 +8822,6 @@ } }, "required" : [ "end", "start" ] - }, - "SyncRunTableProgress_value" : { - "properties" : { - "errors" : { - "description" : "Number of errors for this table", - "format" : "int64", - "type" : "integer" - }, - "rows" : { - "description" : "Number of rows processed for this table", - "format" : "int64", - "type" : "integer" - } - }, - "required" : [ "errors", "rows" ] } }, "securitySchemes" : {