diff --git a/CHANGELOG.md b/CHANGELOG.md index 74a7649..63233a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## [1.12.0](https://github.com/cloudquery/cloudquery-api-go/compare/v1.11.3...v1.12.0) (2024-07-03) + + +### Features + +* Upgrade oapi-codegen version ([#189](https://github.com/cloudquery/cloudquery-api-go/issues/189)) ([b478180](https://github.com/cloudquery/cloudquery-api-go/commit/b478180b847da753d6283533479381ae008bd974)) + + +### Bug Fixes + +* Generate CloudQuery Go API Client from `spec.json` ([#170](https://github.com/cloudquery/cloudquery-api-go/issues/170)) ([cfc4eed](https://github.com/cloudquery/cloudquery-api-go/commit/cfc4eed76e9122d702c6e249cb9ab5acaca17ee3)) +* Generate CloudQuery Go API Client from `spec.json` ([#172](https://github.com/cloudquery/cloudquery-api-go/issues/172)) ([0557f6e](https://github.com/cloudquery/cloudquery-api-go/commit/0557f6e7c60b1cdf45d65005046af2a282f957da)) +* Generate CloudQuery Go API Client from `spec.json` ([#173](https://github.com/cloudquery/cloudquery-api-go/issues/173)) ([ded4693](https://github.com/cloudquery/cloudquery-api-go/commit/ded46932fad761ed5e8ecee8a05170e111c302d4)) +* Generate CloudQuery Go API Client from `spec.json` ([#174](https://github.com/cloudquery/cloudquery-api-go/issues/174)) ([f42ea7f](https://github.com/cloudquery/cloudquery-api-go/commit/f42ea7f7c639fe22dff6b90cc7c4b4fb92550dc4)) +* Generate CloudQuery Go API Client from `spec.json` ([#175](https://github.com/cloudquery/cloudquery-api-go/issues/175)) ([e7930cc](https://github.com/cloudquery/cloudquery-api-go/commit/e7930cc35a92f93527e916c2b0bd4d5cf04ce11f)) +* Generate CloudQuery Go API Client from `spec.json` ([#176](https://github.com/cloudquery/cloudquery-api-go/issues/176)) ([58bf785](https://github.com/cloudquery/cloudquery-api-go/commit/58bf785bbb8ca97a1f604cabd7ffd7b5d4b3afec)) +* Generate CloudQuery Go API Client from `spec.json` ([#177](https://github.com/cloudquery/cloudquery-api-go/issues/177)) ([fd9a4ef](https://github.com/cloudquery/cloudquery-api-go/commit/fd9a4efb75db2ab775257ce98e84547c70889556)) +* Generate CloudQuery Go API Client from `spec.json` ([#178](https://github.com/cloudquery/cloudquery-api-go/issues/178)) ([99ac21b](https://github.com/cloudquery/cloudquery-api-go/commit/99ac21b8ad9747624e74864b454b50a75fe9fa23)) +* Generate CloudQuery Go API Client from `spec.json` ([#179](https://github.com/cloudquery/cloudquery-api-go/issues/179)) ([0386cad](https://github.com/cloudquery/cloudquery-api-go/commit/0386cad9556e21bb60bf5435fef27d1e00507fa4)) +* Generate CloudQuery Go API Client from `spec.json` ([#180](https://github.com/cloudquery/cloudquery-api-go/issues/180)) ([a6ad886](https://github.com/cloudquery/cloudquery-api-go/commit/a6ad88671b21578349f4c8c359b02fa187cb0043)) +* Generate CloudQuery Go API Client from `spec.json` ([#181](https://github.com/cloudquery/cloudquery-api-go/issues/181)) ([03c7442](https://github.com/cloudquery/cloudquery-api-go/commit/03c744269ff40f8babfd670508a7f773417d8637)) +* Generate CloudQuery Go API Client from `spec.json` ([#182](https://github.com/cloudquery/cloudquery-api-go/issues/182)) ([4c194a7](https://github.com/cloudquery/cloudquery-api-go/commit/4c194a72ebda5dd0f5412ab1e4d0af4d7c0ccf83)) +* Generate CloudQuery Go API Client from `spec.json` ([#183](https://github.com/cloudquery/cloudquery-api-go/issues/183)) ([6ac8600](https://github.com/cloudquery/cloudquery-api-go/commit/6ac86009d72e9884ae48284ae428aba43d0eeb53)) +* Generate CloudQuery Go API Client from `spec.json` ([#184](https://github.com/cloudquery/cloudquery-api-go/issues/184)) ([bef70d4](https://github.com/cloudquery/cloudquery-api-go/commit/bef70d4b346f1361de5bac3110eee4c567118594)) +* Generate CloudQuery Go API Client from `spec.json` ([#185](https://github.com/cloudquery/cloudquery-api-go/issues/185)) ([e2b4aba](https://github.com/cloudquery/cloudquery-api-go/commit/e2b4aba01a86951a9ee955beb32d1ce2bd11fd6e)) +* Generate CloudQuery Go API Client from `spec.json` ([#186](https://github.com/cloudquery/cloudquery-api-go/issues/186)) ([170ae88](https://github.com/cloudquery/cloudquery-api-go/commit/170ae888837baaec7559710390801f0b1bf22822)) +* Generate CloudQuery Go API Client from `spec.json` ([#187](https://github.com/cloudquery/cloudquery-api-go/issues/187)) ([63205b9](https://github.com/cloudquery/cloudquery-api-go/commit/63205b94db002ba554b7924d2469cde5d29a0096)) +* Generate CloudQuery Go API Client from `spec.json` ([#188](https://github.com/cloudquery/cloudquery-api-go/issues/188)) ([3ebded6](https://github.com/cloudquery/cloudquery-api-go/commit/3ebded6d6ca274eb8a7e0538ce94fd3851f77ecf)) + ## [1.11.3](https://github.com/cloudquery/cloudquery-api-go/compare/v1.11.2...v1.11.3) (2024-05-30) diff --git a/client.gen.go b/client.gen.go index e2cd80d..69766d6 100644 --- a/client.gen.go +++ b/client.gen.go @@ -1,6 +1,6 @@ // Package cloudquery_api provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/deepmap/oapi-codegen version v1.13.3 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT. package cloudquery_api import ( @@ -13,8 +13,8 @@ import ( "net/url" "strings" - "github.com/deepmap/oapi-codegen/pkg/runtime" "github.com/hashicorp/go-retryablehttp" + "github.com/oapi-codegen/runtime" ) // RequestEditorFn is the function signature for the RequestEditor callback function @@ -240,6 +240,16 @@ type ClientInterface interface { // GetPluginVersionTable request GetPluginVersionTable(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*http.Response, error) + // UploadPluginUIAssetsWithBody request with any body + UploadPluginUIAssetsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UploadPluginUIAssets(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FinalizePluginUIAssetUploadWithBody request with any body + FinalizePluginUIAssetUploadWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + FinalizePluginUIAssetUpload(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // AuthRegistryRequest request AuthRegistryRequest(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -291,7 +301,46 @@ type ClientInterface interface { CreateTeamAPIKey(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteTeamAPIKey request - DeleteTeamAPIKey(ctx context.Context, teamName TeamName, aPIKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) + 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) + + // 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) + + // 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) @@ -317,7 +366,7 @@ type ClientInterface interface { AcceptTeamInvitation(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // CancelTeamInvitation request - CancelTeamInvitation(ctx context.Context, teamName TeamName, email Email, reqEditors ...RequestEditorFn) (*http.Response, error) + CancelTeamInvitation(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*http.Response, error) // ListInvoicesByTeam request ListInvoicesByTeam(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -336,11 +385,16 @@ type ClientInterface interface { // GetManagedDatabase request GetManagedDatabase(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*http.Response, error) + // RemoveTeamMembershipWithBody request with any body + RemoveTeamMembershipWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + RemoveTeamMembership(ctx context.Context, teamName TeamName, body RemoveTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetTeamMemberships request GetTeamMemberships(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteTeamMembership request - DeleteTeamMembership(ctx context.Context, teamName TeamName, email Email, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteTeamMembership(ctx context.Context, teamName TeamName, email EmailBasic, reqEditors ...RequestEditorFn) (*http.Response, error) // DeletePluginsByTeam request DeletePluginsByTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -445,6 +499,32 @@ type ClientInterface interface { UpdateSyncTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body UpdateSyncTestConnectionJSONRequestBody, 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) + + // CreateSyncDestinationFromTestConnectionWithBody request with any body + CreateSyncDestinationFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSyncDestinationFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSyncSourceFromTestConnectionWithBody request with any body + CreateSyncSourceFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSyncSourceFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSyncDestinationFromTestConnectionWithBody request with any body + UpdateSyncDestinationFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSyncDestinationFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, body UpdateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSyncSourceFromTestConnectionWithBody request with any body + UpdateSyncSourceFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSyncSourceFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, body UpdateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteSync request DeleteSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -470,6 +550,12 @@ type ClientInterface interface { 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) @@ -1167,6 +1253,54 @@ func (c *Client) GetPluginVersionTable(ctx context.Context, teamName TeamName, p return c.Client.Do(req) } +func (c *Client) UploadPluginUIAssetsWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUploadPluginUIAssetsRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) + 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) UploadPluginUIAssets(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUploadPluginUIAssetsRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) + 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) FinalizePluginUIAssetUploadWithBody(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFinalizePluginUIAssetUploadRequestWithBody(c.Server, teamName, pluginKind, pluginName, versionName, contentType, body) + 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) FinalizePluginUIAssetUpload(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body FinalizePluginUIAssetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFinalizePluginUIAssetUploadRequest(c.Server, teamName, pluginKind, pluginName, versionName, body) + 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) AuthRegistryRequest(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewAuthRegistryRequestRequest(c.Server, params) if err != nil { @@ -1383,8 +1517,188 @@ func (c *Client) CreateTeamAPIKey(ctx context.Context, teamName TeamName, body C return c.Client.Do(req) } -func (c *Client) DeleteTeamAPIKey(ctx context.Context, teamName TeamName, aPIKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTeamAPIKeyRequest(c.Server, teamName, aPIKeyID) +func (c *Client) DeleteTeamAPIKey(ctx context.Context, teamName TeamName, apiKeyID APIKeyID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTeamAPIKeyRequest(c.Server, teamName, apiKeyID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListConnectors(ctx context.Context, teamName TeamName, params *ListConnectorsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListConnectorsRequest(c.Server, teamName, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateConnectorWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateConnectorRequestWithBody(c.Server, teamName, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateConnector(ctx context.Context, teamName TeamName, body CreateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateConnectorRequest(c.Server, teamName, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetConnectorRequest(c.Server, teamName, connectorID) + 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) 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) + 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) UpdateConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, body UpdateConnectorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateConnectorRequest(c.Server, teamName, connectorID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RevokeConnector(ctx context.Context, teamName TeamName, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRevokeConnectorRequest(c.Server, teamName, connectorID) + 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) 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) + 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) AuthenticateConnectorFinishAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthenticateConnectorFinishAWSRequest(c.Server, teamName, connectorID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) 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) + 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) AuthenticateConnectorAWS(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthenticateConnectorAWSRequest(c.Server, teamName, connectorID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) 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) + 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) AuthenticateConnectorFinishOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthenticateConnectorFinishOAuthRequest(c.Server, teamName, connectorID, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) 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) + 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) AuthenticateConnectorOAuth(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthenticateConnectorOAuthRequest(c.Server, teamName, connectorID, body) if err != nil { return nil, err } @@ -1503,7 +1817,7 @@ 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 Email, reqEditors ...RequestEditorFn) (*http.Response, error) { +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 @@ -1587,6 +1901,30 @@ 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) + 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) 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 + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + 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) if err != nil { @@ -1599,7 +1937,7 @@ 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 Email, reqEditors ...RequestEditorFn) (*http.Response, error) { +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 @@ -2067,8 +2405,8 @@ func (c *Client) UpdateSyncTestConnection(ctx context.Context, teamName TeamName return c.Client.Do(req) } -func (c *Client) DeleteSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSyncRequest(c.Server, teamName, syncName) +func (c *Client) GetTestConnectionConnectorCredentials(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTestConnectionConnectorCredentialsRequest(c.Server, teamName, syncTestConnectionId, connectorID) if err != nil { return nil, err } @@ -2079,8 +2417,8 @@ func (c *Client) DeleteSync(ctx context.Context, teamName TeamName, syncName Syn return c.Client.Do(req) } -func (c *Client) GetSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSyncRequest(c.Server, teamName, syncName) +func (c *Client) GetTestConnectionConnectorIdentity(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTestConnectionConnectorIdentityRequest(c.Server, teamName, syncTestConnectionId, connectorID) if err != nil { return nil, err } @@ -2091,8 +2429,8 @@ func (c *Client) GetSync(ctx context.Context, teamName TeamName, syncName SyncNa return c.Client.Do(req) } -func (c *Client) UpdateSyncWithBody(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncRequestWithBody(c.Server, teamName, syncName, contentType, body) +func (c *Client) CreateSyncDestinationFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncDestinationFromTestConnectionRequestWithBody(c.Server, teamName, syncTestConnectionId, contentType, body) if err != nil { return nil, err } @@ -2103,8 +2441,8 @@ func (c *Client) UpdateSyncWithBody(ctx context.Context, teamName TeamName, sync return c.Client.Do(req) } -func (c *Client) UpdateSync(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSyncRequest(c.Server, teamName, syncName, body) +func (c *Client) CreateSyncDestinationFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncDestinationFromTestConnectionRequest(c.Server, teamName, syncTestConnectionId, body) if err != nil { return nil, err } @@ -2115,8 +2453,8 @@ func (c *Client) UpdateSync(ctx context.Context, teamName TeamName, syncName Syn return c.Client.Do(req) } -func (c *Client) ListSyncRuns(ctx context.Context, teamName TeamName, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSyncRunsRequest(c.Server, teamName, syncName, params) +func (c *Client) CreateSyncSourceFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncSourceFromTestConnectionRequestWithBody(c.Server, teamName, syncTestConnectionId, contentType, body) if err != nil { return nil, err } @@ -2127,8 +2465,8 @@ func (c *Client) ListSyncRuns(ctx context.Context, teamName TeamName, syncName S return c.Client.Do(req) } -func (c *Client) CreateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSyncRunRequest(c.Server, teamName, syncName) +func (c *Client) CreateSyncSourceFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncSourceFromTestConnectionRequest(c.Server, teamName, syncTestConnectionId, body) if err != nil { return nil, err } @@ -2139,7 +2477,127 @@ func (c *Client) CreateSyncRun(ctx context.Context, teamName TeamName, syncName return c.Client.Do(req) } -func (c *Client) GetSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) { +func (c *Client) UpdateSyncDestinationFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncDestinationFromTestConnectionRequestWithBody(c.Server, teamName, syncTestConnectionId, syncDestinationName, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSyncDestinationFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, body UpdateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncDestinationFromTestConnectionRequest(c.Server, teamName, syncTestConnectionId, syncDestinationName, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSyncSourceFromTestConnectionWithBody(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncSourceFromTestConnectionRequestWithBody(c.Server, teamName, syncTestConnectionId, syncSourceName, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSyncSourceFromTestConnection(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, body UpdateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncSourceFromTestConnectionRequest(c.Server, teamName, syncTestConnectionId, syncSourceName, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSyncRequest(c.Server, teamName, syncName) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetSync(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRequest(c.Server, teamName, syncName) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) 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) + 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) UpdateSync(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSyncRequest(c.Server, teamName, syncName, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +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) + 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) CreateSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSyncRunRequest(c.Server, teamName, syncName) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetSyncRun(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetSyncRunRequest(c.Server, teamName, syncName, syncRunId) if err != nil { return nil, err @@ -2175,6 +2633,30 @@ func (c *Client) UpdateSyncRun(ctx context.Context, teamName TeamName, syncName return c.Client.Do(req) } +func (c *Client) GetSyncRunConnectorCredentials(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSyncRunConnectorCredentialsRequest(c.Server, teamName, syncName, syncRunId, connectorID) + 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) 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) + 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) 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) if err != nil { @@ -4833,123 +5315,55 @@ func NewGetPluginVersionTableRequest(server string, teamName TeamName, pluginKin return req, nil } -// NewAuthRegistryRequestRequest generates requests for AuthRegistryRequest -func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +// NewUploadPluginUIAssetsRequest calls the generic UploadPluginUIAssets builder with application/json body +func NewUploadPluginUIAssetsRequest(server string, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UploadPluginUIAssetsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewUploadPluginUIAssetsRequestWithBody(server, teamName, pluginKind, pluginName, versionName, "application/json", bodyReader) +} - operationPath := fmt.Sprintf("/registry/auth") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +// 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 - queryURL, err := serverURL.Parse(operationPath) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Account != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account", runtime.ParamLocationQuery, *params.Account); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Service != nil { - - if 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() - } + var pathParam1 string - req, err := http.NewRequest("GET", queryURL.String(), nil) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) 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) - } + var pathParam2 string + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if err != nil { + return nil, err } - return req, nil -} + var pathParam3 string -// NewListTeamsRequest generates requests for ListTeams -func NewListTeamsRequest(server string, params *ListTeamsParams) (*http.Request, error) { - var err error + 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("/teams") + operationPath := fmt.Sprintf("/plugins/%s/%s/%s/versions/%s/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4959,14 +5373,218 @@ func NewListTeamsRequest(server string, params *ListTeamsParams) (*http.Request, return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.PerPage != nil { + req.Header.Add("Content-Type", contentType) - 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 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) { + 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) +} + +// 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 + + 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/uiassets", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAuthRegistryRequestRequest generates requests for AuthRegistryRequest +func NewAuthRegistryRequestRequest(server string, params *AuthRegistryRequestParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/registry/auth") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Account != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "account", runtime.ParamLocationQuery, *params.Account); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Service != nil { + + if 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 { @@ -5639,7 +6257,7 @@ func NewCreateTeamAPIKeyRequestWithBody(server string, teamName TeamName, conten } // NewDeleteTeamAPIKeyRequest generates requests for DeleteTeamAPIKey -func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, aPIKeyID APIKeyID) (*http.Request, error) { +func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, apiKeyID APIKeyID) (*http.Request, error) { var err error var pathParam0 string @@ -5651,7 +6269,7 @@ func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, aPIKeyID APIKe var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "apikey_id", runtime.ParamLocationPath, aPIKeyID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "apikey_id", runtime.ParamLocationPath, apiKeyID) if err != nil { return nil, err } @@ -5679,19 +6297,8 @@ func NewDeleteTeamAPIKeyRequest(server string, teamName TeamName, aPIKeyID APIKe 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) { +// NewListConnectorsRequest generates requests for ListConnectors +func NewListConnectorsRequest(server string, teamName TeamName, params *ListConnectorsParams) (*http.Request, error) { var err error var pathParam0 string @@ -5706,7 +6313,7 @@ func NewCreateTeamImagesRequestWithBody(server string, teamName TeamName, conten return nil, err } - operationPath := fmt.Sprintf("/teams/%s/images", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/connectors", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5716,95 +6323,44 @@ func NewCreateTeamImagesRequestWithBody(server string, teamName TeamName, conten 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 -} + if params != nil { + queryValues := queryURL.Query() -// 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) -} + if params.PerPage != nil { -// NewDeleteTeamInvitationRequestWithBody generates requests for DeleteTeamInvitation with any type of body -func NewDeleteTeamInvitationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - var pathParam0 string + } - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } + if params.Page != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - 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) { - 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", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - 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) + } + } + } - if params != nil { - queryValues := queryURL.Query() + } - if params.Page != nil { + if params.FilterType != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_type", runtime.ParamLocationQuery, *params.FilterType); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -5818,9 +6374,9 @@ func NewListTeamInvitationsRequest(server string, teamName TeamName, params *Lis } - if params.PerPage != nil { + if params.FilterPlugin != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_plugin", runtime.ParamLocationQuery, *params.FilterPlugin); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -5845,19 +6401,19 @@ 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) { +// 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 NewEmailTeamInvitationRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreateConnectorRequestWithBody(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) { +// NewCreateConnectorRequestWithBody generates requests for CreateConnector with any type of body +func NewCreateConnectorRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -5872,7 +6428,7 @@ func NewEmailTeamInvitationRequestWithBody(server string, teamName TeamName, con return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invitations", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/connectors", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5892,19 +6448,8 @@ func NewEmailTeamInvitationRequestWithBody(server string, teamName TeamName, con 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) { +// NewGetConnectorRequest generates requests for GetConnector +func NewGetConnectorRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { var err error var pathParam0 string @@ -5914,12 +6459,19 @@ func NewAcceptTeamInvitationRequestWithBody(server string, teamName TeamName, co 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/invitations/accept", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/connectors/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5929,18 +6481,27 @@ func NewAcceptTeamInvitationRequestWithBody(server string, teamName TeamName, co 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 } -// NewCancelTeamInvitationRequest generates requests for CancelTeamInvitation -func NewCancelTeamInvitationRequest(server string, teamName TeamName, email Email) (*http.Request, error) { +// NewUpdateConnectorRequest calls the generic UpdateConnector builder with application/json body +func NewUpdateConnectorRequest(server string, teamName TeamName, connectorID ConnectorID, body UpdateConnectorJSONRequestBody) (*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) +} + +// 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) { var err error var pathParam0 string @@ -5952,7 +6513,7 @@ func NewCancelTeamInvitationRequest(server string, teamName TeamName, email Emai var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "email", runtime.ParamLocationPath, email) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) if err != nil { return nil, err } @@ -5962,7 +6523,7 @@ func NewCancelTeamInvitationRequest(server string, teamName TeamName, email Emai return nil, err } - operationPath := fmt.Sprintf("/teams/%s/invitations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/connectors/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5972,16 +6533,18 @@ func NewCancelTeamInvitationRequest(server string, teamName TeamName, email Emai 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 } -// NewListInvoicesByTeamRequest generates requests for ListInvoicesByTeam -func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *ListInvoicesByTeamParams) (*http.Request, error) { +// NewRevokeConnectorRequest generates requests for RevokeConnector +func NewRevokeConnectorRequest(server string, teamName TeamName, connectorID ConnectorID) (*http.Request, error) { var err error var pathParam0 string @@ -5991,12 +6554,19 @@ func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *List 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/invoices", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6006,45 +6576,7 @@ func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *List 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 } @@ -6052,8 +6584,19 @@ 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) { +// NewAuthenticateConnectorFinishAWSRequest calls the generic AuthenticateConnectorFinishAWS builder with application/json body +func NewAuthenticateConnectorFinishAWSRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorFinishAWSJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAuthenticateConnectorFinishAWSRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) +} + +// NewAuthenticateConnectorFinishAWSRequestWithBody generates requests for AuthenticateConnectorFinishAWS with any type of body +func NewAuthenticateConnectorFinishAWSRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6063,12 +6606,19 @@ func NewGetManagedDatabasesRequest(server string, teamName TeamName, params *Get 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/managed-databases", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/aws", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6078,65 +6628,29 @@ func NewGetManagedDatabasesRequest(server string, teamName TeamName, params *Get 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("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewCreateManagedDatabaseRequest calls the generic CreateManagedDatabase builder with application/json body -func NewCreateManagedDatabaseRequest(server string, teamName TeamName, body CreateManagedDatabaseJSONRequestBody) (*http.Request, error) { +// NewAuthenticateConnectorAWSRequest calls the generic AuthenticateConnectorAWS builder with application/json body +func NewAuthenticateConnectorAWSRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorAWSJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateManagedDatabaseRequestWithBody(server, teamName, "application/json", bodyReader) + return NewAuthenticateConnectorAWSRequestWithBody(server, teamName, connectorID, "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) { +// NewAuthenticateConnectorAWSRequestWithBody generates requests for AuthenticateConnectorAWS with any type of body +func NewAuthenticateConnectorAWSRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6146,12 +6660,19 @@ func NewCreateManagedDatabaseRequestWithBody(server string, teamName TeamName, c 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/managed-databases", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/aws", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6171,8 +6692,19 @@ 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) { +// 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) { var err error var pathParam0 string @@ -6184,7 +6716,7 @@ func NewDeleteManagedDatabaseRequest(server string, teamName TeamName, managedDa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "managed_database_id", runtime.ParamLocationPath, managedDatabaseID) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) if err != nil { return nil, err } @@ -6194,7 +6726,7 @@ func NewDeleteManagedDatabaseRequest(server string, teamName TeamName, managedDa return nil, err } - operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/oauth", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6204,28 +6736,41 @@ func NewDeleteManagedDatabaseRequest(server string, teamName TeamName, managedDa 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 } -// NewGetManagedDatabaseRequest generates requests for GetManagedDatabase -func NewGetManagedDatabaseRequest(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) +// NewAuthenticateConnectorOAuthRequest calls the generic AuthenticateConnectorOAuth builder with application/json body +func NewAuthenticateConnectorOAuthRequest(server string, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAuthenticateConnectorOAuthRequestWithBody(server, teamName, connectorID, "application/json", bodyReader) +} + +// NewAuthenticateConnectorOAuthRequestWithBody generates requests for AuthenticateConnectorOAuth with any type of body +func NewAuthenticateConnectorOAuthRequestWithBody(server string, teamName TeamName, connectorID ConnectorID, contentType string, body io.Reader) (*http.Request, error) { + 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) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) if err != nil { return nil, err } @@ -6235,7 +6780,7 @@ func NewGetManagedDatabaseRequest(server string, teamName TeamName, managedDatab return nil, err } - operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/connectors/%s/authenticate/oauth", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6245,16 +6790,29 @@ func NewGetManagedDatabaseRequest(server string, teamName TeamName, managedDatab 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 } -// NewGetTeamMembershipsRequest generates requests for GetTeamMemberships -func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetTeamMembershipsParams) (*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 @@ -6269,7 +6827,90 @@ func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetT return nil, err } - operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/images", 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 +} + +// 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 + + 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", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + 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) { + 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", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6325,8 +6966,19 @@ func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetT return req, nil } -// NewDeleteTeamMembershipRequest generates requests for DeleteTeamMembership -func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email Email) (*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 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) { var err error var pathParam0 string @@ -6336,9 +6988,49 @@ func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email Emai return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "email", runtime.ParamLocationPath, email) + operationPath := fmt.Sprintf("/teams/%s/invitations", 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 +} + +// 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 } @@ -6348,7 +7040,7 @@ func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email Emai return nil, err } - operationPath := fmt.Sprintf("/teams/%s/memberships/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/invitations/accept", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6358,16 +7050,18 @@ func NewDeleteTeamMembershipRequest(server string, teamName TeamName, email Emai 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 } -// NewDeletePluginsByTeamRequest generates requests for DeletePluginsByTeam -func NewDeletePluginsByTeamRequest(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 @@ -6377,12 +7071,19 @@ func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Requ 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/plugins", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/invitations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6400,8 +7101,8 @@ func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Requ return req, nil } -// NewListPluginsByTeamRequest generates requests for ListPluginsByTeam -func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListPluginsByTeamParams) (*http.Request, error) { +// NewListInvoicesByTeamRequest generates requests for ListInvoicesByTeam +func NewListInvoicesByTeamRequest(server string, teamName TeamName, params *ListInvoicesByTeamParams) (*http.Request, error) { var err error var pathParam0 string @@ -6416,7 +7117,7 @@ func NewListPluginsByTeamRequest(server string, teamName TeamName, params *ListP return nil, err } - operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/invoices", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6461,22 +7162,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() } @@ -6488,8 +7173,8 @@ 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) { +// NewGetManagedDatabasesRequest generates requests for GetManagedDatabases +func NewGetManagedDatabasesRequest(server string, teamName TeamName, params *GetManagedDatabasesParams) (*http.Request, error) { var err error var pathParam0 string @@ -6499,111 +7184,27 @@ func NewDownloadPluginAssetByTeamRequest(server string, teamName TeamName, plugi return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) - if err != nil { - return nil, err + operationPath := fmt.Sprintf("/teams/%s/managed-databases", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "version_name", runtime.ParamLocationPath, versionName) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam5 string + if params != nil { + queryValues := queryURL.Query() - pathParam5, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) - if err != nil { - return nil, err - } + if params.Page != nil { - 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) - 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 -} - -// NewGetTeamSpendRequest generates requests for GetTeamSpend -func NewGetTeamSpendRequest(server string, teamName TeamName, params *GetTeamSpendParams) (*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/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 { + 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 @@ -6617,9 +7218,9 @@ func NewGetTeamSpendRequest(server string, teamName TeamName, params *GetTeamSpe } - if params.End != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); 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 @@ -6644,8 +7245,19 @@ func NewGetTeamSpendRequest(server string, teamName TeamName, params *GetTeamSpe return req, nil } -// NewDeleteSpendingLimitRequest generates requests for DeleteSpendingLimit -func NewDeleteSpendingLimitRequest(server string, teamName TeamName) (*http.Request, error) { +// 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) +} + +// 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 var pathParam0 string @@ -6660,7 +7272,7 @@ func NewDeleteSpendingLimitRequest(server string, teamName TeamName) (*http.Requ return nil, err } - operationPath := fmt.Sprintf("/teams/%s/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/managed-databases", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6670,16 +7282,18 @@ func NewDeleteSpendingLimitRequest(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 } -// NewGetSpendingLimitRequest generates requests for GetSpendingLimit -func NewGetSpendingLimitRequest(server string, teamName TeamName) (*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 @@ -6689,12 +7303,19 @@ func NewGetSpendingLimitRequest(server string, teamName TeamName) (*http.Request 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/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6704,7 +7325,7 @@ func NewGetSpendingLimitRequest(server string, teamName TeamName) (*http.Request 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 } @@ -6712,19 +7333,8 @@ 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) { - 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) -} - -// NewCreateSpendingLimitRequestWithBody generates requests for CreateSpendingLimit with any type of body -func NewCreateSpendingLimitRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*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 @@ -6734,12 +7344,19 @@ func NewCreateSpendingLimitRequestWithBody(server string, teamName TeamName, con 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/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/managed-databases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6749,29 +7366,27 @@ func NewCreateSpendingLimitRequestWithBody(server string, teamName TeamName, con 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 } -// NewUpdateSpendingLimitRequest calls the generic UpdateSpendingLimit builder with application/json body -func NewUpdateSpendingLimitRequest(server string, teamName TeamName, body UpdateSpendingLimitJSONRequestBody) (*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 NewUpdateSpendingLimitRequestWithBody(server, teamName, "application/json", bodyReader) + return NewRemoveTeamMembershipRequestWithBody(server, teamName, "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) { +// 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 @@ -6786,7 +7401,7 @@ func NewUpdateSpendingLimitRequestWithBody(server string, teamName TeamName, con return nil, err } - operationPath := fmt.Sprintf("/teams/%s/spending-limits", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6796,7 +7411,7 @@ func NewUpdateSpendingLimitRequestWithBody(server string, teamName TeamName, con return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -6806,8 +7421,8 @@ 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) { +// NewGetTeamMembershipsRequest generates requests for GetTeamMemberships +func NewGetTeamMembershipsRequest(server string, teamName TeamName, params *GetTeamMembershipsParams) (*http.Request, error) { var err error var pathParam0 string @@ -6822,7 +7437,7 @@ func NewListSubscriptionOrdersByTeamRequest(server string, teamName TeamName, pa return nil, err } - operationPath := fmt.Sprintf("/teams/%s/subscription-orders", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/memberships", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6878,19 +7493,8 @@ 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 - } - bodyReader = bytes.NewReader(buf) - return NewCreateSubscriptionOrderForTeamRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewCreateSubscriptionOrderForTeamRequestWithBody generates requests for CreateSubscriptionOrderForTeam with any type of body -func NewCreateSubscriptionOrderForTeamRequestWithBody(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 @@ -6900,12 +7504,19 @@ func NewCreateSubscriptionOrderForTeamRequestWithBody(server string, teamName Te 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/subscription-orders", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/memberships/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6915,18 +7526,16 @@ func NewCreateSubscriptionOrderForTeamRequestWithBody(server string, teamName Te 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 } -// NewGetSubscriptionOrderByTeamRequest generates requests for GetSubscriptionOrderByTeam -func NewGetSubscriptionOrderByTeamRequest(server string, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID) (*http.Request, error) { +// NewDeletePluginsByTeamRequest generates requests for DeletePluginsByTeam +func NewDeletePluginsByTeamRequest(server string, teamName TeamName) (*http.Request, error) { var err error var pathParam0 string @@ -6936,19 +7545,12 @@ func NewGetSubscriptionOrderByTeamRequest(server string, teamName TeamName, team return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscription_order_id", runtime.ParamLocationPath, teamSubscriptionOrderID) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/subscription-orders/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6958,7 +7560,7 @@ func NewGetSubscriptionOrderByTeamRequest(server string, teamName TeamName, team 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 } @@ -6966,8 +7568,8 @@ func NewGetSubscriptionOrderByTeamRequest(server string, teamName TeamName, team return req, nil } -// NewListSyncDestinationsRequest generates requests for ListSyncDestinations -func NewListSyncDestinationsRequest(server string, teamName TeamName, params *ListSyncDestinationsParams) (*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 @@ -6982,7 +7584,7 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/plugins", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6995,6 +7597,22 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li 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 { @@ -7011,9 +7629,9 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li } - if params.Page != nil { + if params.IncludePrivate != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); 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 @@ -7038,19 +7656,8 @@ func NewListSyncDestinationsRequest(server string, teamName TeamName, params *Li return req, nil } -// NewCreateSyncDestinationRequest calls the generic CreateSyncDestination builder with application/json body -func NewCreateSyncDestinationRequest(server string, teamName TeamName, body CreateSyncDestinationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateSyncDestinationRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewCreateSyncDestinationRequestWithBody generates requests for CreateSyncDestination with any type of body -func NewCreateSyncDestinationRequestWithBody(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 @@ -7060,44 +7667,81 @@ func NewCreateSyncDestinationRequestWithBody(server string, teamName TeamName, c 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/sync-destinations", 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 + } -// NewTestSyncDestinationRequest calls the generic TestSyncDestination builder with application/json body -func NewTestSyncDestinationRequest(server string, teamName TeamName, body TestSyncDestinationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + var pathParam5 string + + pathParam5, err = runtime.StyleParamWithLocation("simple", false, "target_name", runtime.ParamLocationPath, targetName) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewTestSyncDestinationRequestWithBody(server, teamName, "application/json", bodyReader) + + 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) + 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 } -// NewTestSyncDestinationRequestWithBody generates requests for TestSyncDestination with any type of body -func NewTestSyncDestinationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*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 @@ -7112,7 +7756,7 @@ func NewTestSyncDestinationRequestWithBody(server string, teamName TeamName, con return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/test", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/spend", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7122,18 +7766,54 @@ func NewTestSyncDestinationRequestWithBody(server string, teamName TeamName, con return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + 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 } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteSyncDestinationRequest generates requests for DeleteSyncDestination -func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { +// NewDeleteSpendingLimitRequest generates requests for DeleteSpendingLimit +func NewDeleteSpendingLimitRequest(server string, teamName TeamName) (*http.Request, error) { var err error var pathParam0 string @@ -7143,19 +7823,12 @@ func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDesti return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/spending-limits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7173,8 +7846,8 @@ func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDesti return req, nil } -// NewGetSyncDestinationRequest generates requests for GetSyncDestination -func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { +// NewGetSpendingLimitRequest generates requests for GetSpendingLimit +func NewGetSpendingLimitRequest(server string, teamName TeamName) (*http.Request, error) { var err error var pathParam0 string @@ -7184,19 +7857,12 @@ func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinat return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/spending-limits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7214,19 +7880,19 @@ func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinat return req, nil } -// NewUpdateSyncDestinationRequest calls the generic UpdateSyncDestination builder with application/json body -func NewUpdateSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody) (*http.Request, error) { +// 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 NewUpdateSyncDestinationRequestWithBody(server, teamName, syncDestinationName, "application/json", bodyReader) + return NewCreateSpendingLimitRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewUpdateSyncDestinationRequestWithBody generates requests for UpdateSyncDestination with any type of body -func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader) (*http.Request, error) { +// 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 @@ -7236,9 +7902,49 @@ func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, s return nil, err } - var pathParam1 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + operationPath := fmt.Sprintf("/teams/%s/spending-limits", 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 +} + +// 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 NewUpdateSpendingLimitRequestWithBody(server, teamName, "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) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -7248,7 +7954,7 @@ func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, s return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/spending-limits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7258,7 +7964,7 @@ func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, s return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -7268,8 +7974,8 @@ func NewUpdateSyncDestinationRequestWithBody(server string, teamName TeamName, s return req, nil } -// NewListSyncSourcesRequest generates requests for ListSyncSources -func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyncSourcesParams) (*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 @@ -7284,7 +7990,7 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/subscription-orders", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7297,9 +8003,9 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn 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 @@ -7313,9 +8019,9 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn } - 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 @@ -7340,19 +8046,19 @@ func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyn return req, nil } -// NewCreateSyncSourceRequest calls the generic CreateSyncSource builder with application/json body -func NewCreateSyncSourceRequest(server string, teamName TeamName, body CreateSyncSourceJSONRequestBody) (*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 NewCreateSyncSourceRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreateSubscriptionOrderForTeamRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewCreateSyncSourceRequestWithBody generates requests for CreateSyncSource with any type of body -func NewCreateSyncSourceRequestWithBody(server string, teamName TeamName, 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 @@ -7367,7 +8073,7 @@ func NewCreateSyncSourceRequestWithBody(server string, teamName TeamName, conten return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/subscription-orders", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7387,19 +8093,8 @@ func NewCreateSyncSourceRequestWithBody(server string, teamName TeamName, conten return req, nil } -// NewTestSyncSourceRequest calls the generic TestSyncSource builder with application/json body -func NewTestSyncSourceRequest(server string, teamName TeamName, body TestSyncSourceJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTestSyncSourceRequestWithBody(server, teamName, "application/json", bodyReader) -} - -// NewTestSyncSourceRequestWithBody generates requests for TestSyncSource with any type of body -func NewTestSyncSourceRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*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 @@ -7409,12 +8104,19 @@ func NewTestSyncSourceRequestWithBody(server string, teamName TeamName, contentT return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscription_order_id", runtime.ParamLocationPath, teamSubscriptionOrderID) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources/test", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/subscription-orders/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7424,18 +8126,16 @@ func NewTestSyncSourceRequestWithBody(server string, teamName TeamName, contentT return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteSyncSourceRequest generates requests for DeleteSyncSource -func NewDeleteSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { +// NewListSyncDestinationsRequest generates requests for ListSyncDestinations +func NewListSyncDestinationsRequest(server string, teamName TeamName, params *ListSyncDestinationsParams) (*http.Request, error) { var err error var pathParam0 string @@ -7445,19 +8145,12 @@ func NewDeleteSyncSourceRequest(server string, teamName TeamName, syncSourceName return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-destinations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7467,139 +8160,10 @@ func NewDeleteSyncSourceRequest(server string, teamName TeamName, syncSourceName return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} - -// NewGetSyncSourceRequest generates requests for GetSyncSource -func NewGetSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) - 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 -} - -// 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 - } - bodyReader = bytes.NewReader(buf) - return NewUpdateSyncSourceRequestWithBody(server, teamName, syncSourceName, "application/json", bodyReader) -} - -// NewUpdateSyncSourceRequestWithBody generates requests for UpdateSyncSource with any type of body -func NewUpdateSyncSourceRequestWithBody(server string, teamName TeamName, syncSourceName SyncSourceName, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) - 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 -} - -// NewListSyncsRequest generates requests for ListSyncs -func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.PerPage != nil { + if params.PerPage != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { return nil, err @@ -7642,19 +8206,19 @@ func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsPara return req, nil } -// NewCreateSyncRequest calls the generic CreateSync builder with application/json body -func NewCreateSyncRequest(server string, teamName TeamName, body CreateSyncJSONRequestBody) (*http.Request, error) { +// NewCreateSyncDestinationRequest calls the generic CreateSyncDestination builder with application/json body +func NewCreateSyncDestinationRequest(server string, teamName TeamName, body CreateSyncDestinationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateSyncRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreateSyncDestinationRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewCreateSyncRequestWithBody generates requests for CreateSync with any type of body -func NewCreateSyncRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSyncDestinationRequestWithBody generates requests for CreateSyncDestination with any type of body +func NewCreateSyncDestinationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7669,7 +8233,7 @@ func NewCreateSyncRequestWithBody(server string, teamName TeamName, contentType return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/sync-destinations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7689,60 +8253,19 @@ func NewCreateSyncRequestWithBody(server string, teamName TeamName, contentType return req, nil } -// NewGetSyncTestConnectionRequest generates requests for GetSyncTestConnection -func NewGetSyncTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUpdateSyncTestConnectionRequest calls the generic UpdateSyncTestConnection builder with application/json body -func NewUpdateSyncTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body UpdateSyncTestConnectionJSONRequestBody) (*http.Request, error) { +// NewTestSyncDestinationRequest calls the generic TestSyncDestination builder with application/json body +func NewTestSyncDestinationRequest(server string, teamName TeamName, body TestSyncDestinationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSyncTestConnectionRequestWithBody(server, teamName, syncTestConnectionId, "application/json", bodyReader) + return NewTestSyncDestinationRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewUpdateSyncTestConnectionRequestWithBody generates requests for UpdateSyncTestConnection with any type of body -func NewUpdateSyncTestConnectionRequestWithBody(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader) (*http.Request, error) { +// NewTestSyncDestinationRequestWithBody generates requests for TestSyncDestination with any type of body +func NewTestSyncDestinationRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7752,19 +8275,12 @@ func NewUpdateSyncTestConnectionRequestWithBody(server string, teamName TeamName return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-destinations/test", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7774,7 +8290,7 @@ func NewUpdateSyncTestConnectionRequestWithBody(server string, teamName TeamName 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 } @@ -7784,8 +8300,8 @@ func NewUpdateSyncTestConnectionRequestWithBody(server string, teamName TeamName return req, nil } -// NewDeleteSyncRequest generates requests for DeleteSync -func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { +// NewDeleteSyncDestinationRequest generates requests for DeleteSyncDestination +func NewDeleteSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { var err error var pathParam0 string @@ -7797,7 +8313,7 @@ func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) ( var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -7807,7 +8323,7 @@ func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) ( return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7825,8 +8341,8 @@ func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) ( return req, nil } -// NewGetSyncRequest generates requests for GetSync -func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { +// NewGetSyncDestinationRequest generates requests for GetSyncDestination +func NewGetSyncDestinationRequest(server string, teamName TeamName, syncDestinationName SyncDestinationName) (*http.Request, error) { var err error var pathParam0 string @@ -7838,7 +8354,7 @@ func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*ht var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -7848,7 +8364,7 @@ func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*ht return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7866,19 +8382,19 @@ func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*ht return req, nil } -// NewUpdateSyncRequest calls the generic UpdateSync builder with application/json body -func NewUpdateSyncRequest(server string, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody) (*http.Request, error) { +// 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 NewUpdateSyncRequestWithBody(server, teamName, syncName, "application/json", bodyReader) + return NewUpdateSyncDestinationRequestWithBody(server, teamName, syncDestinationName, "application/json", bodyReader) } -// NewUpdateSyncRequestWithBody generates requests for UpdateSync with any type of body -func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName SyncName, contentType string, body io.Reader) (*http.Request, error) { +// 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 var pathParam0 string @@ -7890,7 +8406,7 @@ func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName Syn var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) if err != nil { return nil, err } @@ -7900,7 +8416,7 @@ func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName Syn return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-destinations/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7920,8 +8436,8 @@ func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName Syn return req, nil } -// NewListSyncRunsRequest generates requests for ListSyncRuns -func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, params *ListSyncRunsParams) (*http.Request, error) { +// NewListSyncSourcesRequest generates requests for ListSyncSources +func NewListSyncSourcesRequest(server string, teamName TeamName, params *ListSyncSourcesParams) (*http.Request, error) { var err error var pathParam0 string @@ -7931,19 +8447,12 @@ func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-sources", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7999,8 +8508,19 @@ func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, return req, nil } -// NewCreateSyncRunRequest generates requests for CreateSyncRun -func NewCreateSyncRunRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { +// NewCreateSyncSourceRequest calls the generic CreateSyncSource builder with application/json body +func NewCreateSyncSourceRequest(server string, teamName TeamName, body CreateSyncSourceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncSourceRequestWithBody(server, teamName, "application/json", bodyReader) +} + +// NewCreateSyncSourceRequestWithBody generates requests for CreateSyncSource with any type of body +func NewCreateSyncSourceRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8010,19 +8530,12 @@ func NewCreateSyncRunRequest(server string, teamName TeamName, syncName SyncName return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/sync-sources", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8032,35 +8545,34 @@ func NewCreateSyncRunRequest(server string, teamName TeamName, syncName SyncName 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 } -// 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) +// NewTestSyncSourceRequest calls the generic TestSyncSource builder with application/json body +func NewTestSyncSourceRequest(server string, teamName TeamName, body TestSyncSourceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewTestSyncSourceRequestWithBody(server, teamName, "application/json", bodyReader) +} - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err - } +// NewTestSyncSourceRequestWithBody generates requests for TestSyncSource with any type of body +func NewTestSyncSourceRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { + var err error - var pathParam2 string + var pathParam0 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } @@ -8070,7 +8582,7 @@ func NewGetSyncRunRequest(server string, teamName TeamName, syncName SyncName, s return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/teams/%s/sync-sources/test", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8080,27 +8592,18 @@ func NewGetSyncRunRequest(server string, teamName TeamName, syncName SyncName, s return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// 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 - } - bodyReader = bytes.NewReader(buf) - return NewUpdateSyncRunRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) + return req, nil } -// 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) { +// NewDeleteSyncSourceRequest generates requests for DeleteSyncSource +func NewDeleteSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { var err error var pathParam0 string @@ -8112,14 +8615,7 @@ func NewUpdateSyncRunRequestWithBody(server string, teamName TeamName, syncName var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } @@ -8129,7 +8625,7 @@ func NewUpdateSyncRunRequestWithBody(server string, teamName TeamName, syncName return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8139,18 +8635,16 @@ func NewUpdateSyncRunRequestWithBody(server string, teamName TeamName, syncName return nil, err } - req, err := http.NewRequest("PATCH", 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 } -// NewGetSyncRunLogsRequest generates requests for GetSyncRunLogs -func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams) (*http.Request, error) { +// NewGetSyncSourceRequest generates requests for GetSyncSource +func NewGetSyncSourceRequest(server string, teamName TeamName, syncSourceName SyncSourceName) (*http.Request, error) { var err error var pathParam0 string @@ -8162,14 +8656,7 @@ func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncNam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } @@ -8179,7 +8666,7 @@ func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncNam return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/logs", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8194,37 +8681,22 @@ func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncNam return nil, err } - if params != nil { - - if params.Accept != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) - if err != nil { - return nil, err - } - - req.Header.Set("Accept", headerParam0) - } - - } - return req, nil } -// NewCreateSyncRunProgressRequest calls the generic CreateSyncRunProgress builder with application/json body -func NewCreateSyncRunProgressRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody) (*http.Request, error) { +// 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 } bodyReader = bytes.NewReader(buf) - return NewCreateSyncRunProgressRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) + return NewUpdateSyncSourceRequestWithBody(server, teamName, syncSourceName, "application/json", bodyReader) } -// NewCreateSyncRunProgressRequestWithBody generates requests for CreateSyncRunProgress with any type of body -func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader) (*http.Request, error) { +// 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 @@ -8236,14 +8708,7 @@ func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, s var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) if err != nil { return nil, err } @@ -8253,7 +8718,7 @@ func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, s return nil, err } - operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/progress", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/teams/%s/sync-sources/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8263,7 +8728,7 @@ func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, s 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 } @@ -8273,8 +8738,8 @@ func NewCreateSyncRunProgressRequestWithBody(server string, teamName TeamName, s return req, nil } -// NewListTeamPluginUsageRequest generates requests for ListTeamPluginUsage -func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *ListTeamPluginUsageParams) (*http.Request, error) { +// NewListSyncsRequest generates requests for ListSyncs +func NewListSyncsRequest(server string, teamName TeamName, params *ListSyncsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8289,7 +8754,7 @@ func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *Lis return nil, err } - operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8302,9 +8767,9 @@ func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *Lis 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 @@ -8318,9 +8783,9 @@ func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *Lis } - if params.PerPage != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -8345,19 +8810,19 @@ func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *Lis return req, nil } -// NewIncreaseTeamPluginUsageRequest calls the generic IncreaseTeamPluginUsage builder with application/json body -func NewIncreaseTeamPluginUsageRequest(server string, teamName TeamName, body IncreaseTeamPluginUsageJSONRequestBody) (*http.Request, error) { +// 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 } bodyReader = bytes.NewReader(buf) - return NewIncreaseTeamPluginUsageRequestWithBody(server, teamName, "application/json", bodyReader) + return NewCreateSyncRequestWithBody(server, teamName, "application/json", bodyReader) } -// NewIncreaseTeamPluginUsageRequestWithBody generates requests for IncreaseTeamPluginUsage with any type of body -func NewIncreaseTeamPluginUsageRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error) { +// 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 var pathParam0 string @@ -8372,7 +8837,7 @@ func NewIncreaseTeamPluginUsageRequestWithBody(server string, teamName TeamName, return nil, err } - operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/syncs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8392,8 +8857,8 @@ func NewIncreaseTeamPluginUsageRequestWithBody(server string, teamName TeamName, return req, nil } -// NewGetTeamUsageSummaryRequest generates requests for GetTeamUsageSummary -func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *GetTeamUsageSummaryParams) (*http.Request, error) { +// NewGetSyncTestConnectionRequest generates requests for GetSyncTestConnection +func NewGetSyncTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId) (*http.Request, error) { var err error var pathParam0 string @@ -8403,12 +8868,19 @@ func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *Get return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/usage-summary", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8418,76 +8890,6 @@ func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *Get return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Metrics != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metrics", runtime.ParamLocationQuery, *params.Metrics); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Start != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.End != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AggregationPeriod != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aggregation_period", runtime.ParamLocationQuery, *params.AggregationPeriod); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -8496,8 +8898,19 @@ func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *Get return req, nil } -// NewGetGroupedTeamUsageSummaryRequest generates requests for GetGroupedTeamUsageSummary -func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams) (*http.Request, error) { +// NewUpdateSyncTestConnectionRequest calls the generic UpdateSyncTestConnection builder with application/json body +func NewUpdateSyncTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body UpdateSyncTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSyncTestConnectionRequestWithBody(server, teamName, syncTestConnectionId, "application/json", bodyReader) +} + +// NewUpdateSyncTestConnectionRequestWithBody generates requests for UpdateSyncTestConnection with any type of body +func NewUpdateSyncTestConnectionRequestWithBody(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8509,7 +8922,7 @@ func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, grou var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group_by", runtime.ParamLocationPath, groupBy) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) if err != nil { return nil, err } @@ -8519,7 +8932,7 @@ func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, grou return nil, err } - operationPath := fmt.Sprintf("/teams/%s/usage-summary/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8529,74 +8942,54 @@ func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, grou return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Metrics != nil { + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - 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) - } - } - } + req.Header.Add("Content-Type", contentType) - } + return req, nil +} - if params.Start != nil { +// NewGetTestConnectionConnectorCredentialsRequest generates requests for GetTestConnectionConnectorCredentials +func NewGetTestConnectionConnectorCredentialsRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID) (*http.Request, error) { + var err error - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + var pathParam0 string - } + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - if params.End != nil { + var pathParam1 string - 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) - } - } - } + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) + if err != nil { + return nil, err + } - } + var pathParam2 string - if params.AggregationPeriod != nil { + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + if err != nil { + return nil, err + } - 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) - } - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/connector/%s/credentials", pathParam0, pathParam1, pathParam2) + 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) @@ -8607,8 +9000,8 @@ func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, grou return req, nil } -// NewGetTeamPluginUsageRequest generates requests for GetTeamPluginUsage -func NewGetTeamPluginUsageRequest(server string, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { +// NewGetTestConnectionConnectorIdentityRequest generates requests for GetTestConnectionConnectorIdentity +func NewGetTestConnectionConnectorIdentityRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, connectorID ConnectorID) (*http.Request, error) { var err error var pathParam0 string @@ -8620,21 +9013,14 @@ func NewGetTeamPluginUsageRequest(server string, teamName TeamName, pluginTeam P var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) if err != nil { return nil, err } @@ -8644,7 +9030,7 @@ func NewGetTeamPluginUsageRequest(server string, teamName TeamName, pluginTeam P return nil, err } - operationPath := fmt.Sprintf("/teams/%s/usage/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/connector/%s/identity", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8662,8 +9048,19 @@ func NewGetTeamPluginUsageRequest(server string, teamName TeamName, pluginTeam P return req, nil } -// NewListUsersByTeamRequest generates requests for ListUsersByTeam -func NewListUsersByTeamRequest(server string, teamName TeamName, params *ListUsersByTeamParams) (*http.Request, error) { +// NewCreateSyncDestinationFromTestConnectionRequest calls the generic CreateSyncDestinationFromTestConnection builder with application/json body +func NewCreateSyncDestinationFromTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncDestinationFromTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncDestinationFromTestConnectionRequestWithBody(server, teamName, syncTestConnectionId, "application/json", bodyReader) +} + +// NewCreateSyncDestinationFromTestConnectionRequestWithBody generates requests for CreateSyncDestinationFromTestConnection with any type of body +func NewCreateSyncDestinationFromTestConnectionRequestWithBody(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8673,12 +9070,19 @@ func NewListUsersByTeamRequest(server string, teamName TeamName, params *ListUse return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/teams/%s/users", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/new-destination", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8688,62 +9092,51 @@ func NewListUsersByTeamRequest(server string, teamName TeamName, params *ListUse return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.PerPage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - } + req.Header.Add("Content-Type", contentType) - if params.Page != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } +// NewCreateSyncSourceFromTestConnectionRequest calls the generic CreateSyncSourceFromTestConnection builder with application/json body +func NewCreateSyncSourceFromTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncSourceFromTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncSourceFromTestConnectionRequestWithBody(server, teamName, syncTestConnectionId, "application/json", bodyReader) +} - } +// NewCreateSyncSourceFromTestConnectionRequestWithBody generates requests for CreateSyncSourceFromTestConnection with any type of body +func NewCreateSyncSourceFromTestConnectionRequestWithBody(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader) (*http.Request, error) { + var err error - queryURL.RawQuery = queryValues.Encode() - } + var pathParam0 string - req, err := http.NewRequest("GET", queryURL.String(), nil) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) if err != nil { return nil, err } - return req, nil -} + var pathParam1 string -// NewUploadImageRequest generates requests for UploadImage -func NewUploadImageRequest(server string) (*http.Request, error) { - var err error + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) + if err != nil { + return nil, err + } serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/upload/image") + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/new-source", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8753,24 +9146,58 @@ func NewUploadImageRequest(server string) (*http.Request, error) { 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 } -// NewGetCurrentUserRequest generates requests for GetCurrentUser -func NewGetCurrentUserRequest(server string) (*http.Request, error) { +// NewUpdateSyncDestinationFromTestConnectionRequest calls the generic UpdateSyncDestinationFromTestConnection builder with application/json body +func NewUpdateSyncDestinationFromTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, body UpdateSyncDestinationFromTestConnectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSyncDestinationFromTestConnectionRequestWithBody(server, teamName, syncTestConnectionId, syncDestinationName, "application/json", bodyReader) +} + +// NewUpdateSyncDestinationFromTestConnectionRequestWithBody generates requests for UpdateSyncDestinationFromTestConnection with any type of body +func NewUpdateSyncDestinationFromTestConnectionRequestWithBody(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_destination_name", runtime.ParamLocationPath, syncDestinationName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/user") + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/update-destination/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8780,35 +9207,58 @@ func NewGetCurrentUserRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewUpdateCurrentUserRequest calls the generic UpdateCurrentUser builder with application/json body -func NewUpdateCurrentUserRequest(server string, body UpdateCurrentUserJSONRequestBody) (*http.Request, error) { +// NewUpdateSyncSourceFromTestConnectionRequest calls the generic UpdateSyncSourceFromTestConnection builder with application/json body +func NewUpdateSyncSourceFromTestConnectionRequest(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, body UpdateSyncSourceFromTestConnectionJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateCurrentUserRequestWithBody(server, "application/json", bodyReader) + return NewUpdateSyncSourceFromTestConnectionRequestWithBody(server, teamName, syncTestConnectionId, syncSourceName, "application/json", bodyReader) } -// NewUpdateCurrentUserRequestWithBody generates requests for UpdateCurrentUser with any type of body -func NewUpdateCurrentUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSyncSourceFromTestConnectionRequestWithBody generates requests for UpdateSyncSourceFromTestConnection with any type of body +func NewUpdateSyncSourceFromTestConnectionRequestWithBody(server string, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_test_connection_id", runtime.ParamLocationPath, syncTestConnectionId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_source_name", runtime.ParamLocationPath, syncSourceName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/user") + operationPath := fmt.Sprintf("/teams/%s/syncs/test-connections/%s/update-source/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8828,17 +9278,31 @@ func NewUpdateCurrentUserRequestWithBody(server string, contentType string, body return req, nil } -// NewListCurrentUserInvitationsRequest generates requests for ListCurrentUserInvitations -func NewListCurrentUserInvitationsRequest(server string, params *ListCurrentUserInvitationsParams) (*http.Request, error) { +// NewDeleteSyncRequest generates requests for DeleteSync +func NewDeleteSyncRequest(server string, teamName TeamName, syncName SyncName) (*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("/user/invitations") - if operationPath[0] == '/' { + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8847,42 +9311,45 @@ func NewListCurrentUserInvitationsRequest(server string, params *ListCurrentUser return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Page != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } +// NewGetSyncRequest generates requests for GetSync +func NewGetSyncRequest(server string, teamName TeamName, syncName SyncName) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.PerPage != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + var pathParam1 string - } + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } - queryURL.RawQuery = queryValues.Encode() + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -8893,16 +9360,84 @@ func NewListCurrentUserInvitationsRequest(server string, params *ListCurrentUser return req, nil } -// NewGetCurrentUserMembershipsRequest generates requests for GetCurrentUserMemberships -func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMembershipsParams) (*http.Request, error) { +// 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 + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSyncRequestWithBody(server, teamName, syncName, "application/json", bodyReader) +} + +// NewUpdateSyncRequestWithBody generates requests for UpdateSync with any type of body +func NewUpdateSyncRequestWithBody(server string, teamName TeamName, syncName SyncName, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/user/memberships") + operationPath := fmt.Sprintf("/teams/%s/syncs/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewListSyncRunsRequest generates requests for ListSyncRuns +func NewListSyncRunsRequest(server string, teamName TeamName, syncName SyncName, params *ListSyncRunsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8915,9 +9450,9 @@ func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMe 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 @@ -8931,9 +9466,9 @@ func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMe } - 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 @@ -8958,13 +9493,20 @@ func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMe return req, nil } -// NewDeleteUserRequest generates requests for DeleteUser -func NewDeleteUserRequest(server string, userID UserID) (*http.Request, error) { +// 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, "user_id", runtime.ParamLocationPath, userID) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) if err != nil { return nil, err } @@ -8974,7 +9516,7 @@ func NewDeleteUserRequest(server string, userID UserID) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/users/%s", pathParam0) + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8984,7 +9526,7 @@ func NewDeleteUserRequest(server string, userID UserID) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8992,1115 +9534,3314 @@ func NewDeleteUserRequest(server string, userID UserID) (*http.Request, error) { 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 -} +// NewGetSyncRunRequest generates requests for GetSyncRun +func NewGetSyncRunRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId) (*http.Request, error) { + var err error -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} + var pathParam0 string -// 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...) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) 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 + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err } -} -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // HealthCheckWithResponse request - HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) + var pathParam2 string - // ListAddonsWithResponse request - ListAddonsWithResponse(ctx context.Context, params *ListAddonsParams, reqEditors ...RequestEditorFn) (*ListAddonsResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + if err != nil { + return nil, err + } - // CreateAddonWithBodyWithResponse request with any body - CreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteAddonByTeamAndNameWithResponse request - DeleteAddonByTeamAndNameWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*DeleteAddonByTeamAndNameResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetAddonWithResponse request - GetAddonWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, reqEditors ...RequestEditorFn) (*GetAddonResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // UpdateAddonWithBodyWithResponse request with any body - UpdateAddonWithBodyWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAddonResponse, error) + return req, nil +} - 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) +// 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 + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSyncRunRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) +} - // GetAddonVersionWithResponse request - GetAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetAddonVersionResponse, error) +// 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 - // 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) + var pathParam0 string - UpdateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body UpdateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAddonVersionResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + 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) + var pathParam1 string - CreateAddonVersionWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, body CreateAddonVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonVersionResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } - // DownloadAddonAssetWithResponse request - DownloadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetResponse, error) + var pathParam2 string - // UploadAddonAssetWithResponse request - UploadAddonAssetWithResponse(ctx context.Context, teamName TeamName, addonType AddonType, addonName AddonName, versionName VersionName, reqEditors ...RequestEditorFn) (*UploadAddonAssetResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + if err != nil { + return nil, err + } - // CQHealthCheckWithResponse request - CQHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CQHealthCheckResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListPluginNotificationRequestsWithResponse request - ListPluginNotificationRequestsWithResponse(ctx context.Context, params *ListPluginNotificationRequestsParams, reqEditors ...RequestEditorFn) (*ListPluginNotificationRequestsResponse, error) + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // CreatePluginNotificationRequestWithBodyWithResponse request with any body - CreatePluginNotificationRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - CreatePluginNotificationRequestWithResponse(ctx context.Context, body CreatePluginNotificationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - // DeletePluginNotificationRequestWithResponse request - DeletePluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginNotificationRequestResponse, error) + req.Header.Add("Content-Type", contentType) - // GetPluginNotificationRequestWithResponse request - GetPluginNotificationRequestWithResponse(ctx context.Context, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginNotificationRequestResponse, error) + return req, nil +} - // ListPluginsWithResponse request - ListPluginsWithResponse(ctx context.Context, params *ListPluginsParams, reqEditors ...RequestEditorFn) (*ListPluginsResponse, error) +// NewGetSyncRunConnectorCredentialsRequest generates requests for GetSyncRunConnectorCredentials +func NewGetSyncRunConnectorCredentialsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID) (*http.Request, error) { + var err error - // CreatePluginWithBodyWithResponse request with any body - CreatePluginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) + var pathParam0 string - CreatePluginWithResponse(ctx context.Context, body CreatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - // DeletePluginByTeamAndPluginNameWithResponse request - DeletePluginByTeamAndPluginNameWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginByTeamAndPluginNameResponse, error) + var pathParam1 string - // GetPluginWithResponse request - GetPluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*GetPluginResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } - // UpdatePluginWithBodyWithResponse request with any body - UpdatePluginWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) + var pathParam2 string - UpdatePluginWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body UpdatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + if err != nil { + return nil, err + } - // DeletePluginUpcomingPriceChangesWithResponse request - DeletePluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*DeletePluginUpcomingPriceChangesResponse, error) + var pathParam3 string - // ListPluginUpcomingPriceChangesWithResponse request - ListPluginUpcomingPriceChangesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, reqEditors ...RequestEditorFn) (*ListPluginUpcomingPriceChangesResponse, error) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + 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) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreatePluginUpcomingPriceChangeWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, body CreatePluginUpcomingPriceChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginUpcomingPriceChangeResponse, error) + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/connector/%s/credentials", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ListPluginVersionsWithResponse request - ListPluginVersionsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, params *ListPluginVersionsParams, reqEditors ...RequestEditorFn) (*ListPluginVersionsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetPluginVersionWithResponse request - GetPluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, reqEditors ...RequestEditorFn) (*GetPluginVersionResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // 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) + return req, nil +} - UpdatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body UpdatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePluginVersionResponse, error) +// NewGetSyncRunConnectorIdentityRequest generates requests for GetSyncRunConnectorIdentity +func NewGetSyncRunConnectorIdentityRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, connectorID ConnectorID) (*http.Request, error) { + var err 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) + var pathParam0 string - CreatePluginVersionWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - // DownloadPluginAssetWithResponse request - DownloadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetResponse, error) + var pathParam1 string - // UploadPluginAssetWithResponse request - UploadPluginAssetWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, reqEditors ...RequestEditorFn) (*UploadPluginAssetResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } - // 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 pathParam2 string - DeletePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionDocsResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + 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 pathParam3 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) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "connector_id", runtime.ParamLocationPath, connectorID) + 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/syncs/%s/runs/%s/connector/%s/identity", pathParam0, pathParam1, pathParam2, pathParam3) + 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("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - DeletePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionTablesResponse, error) + return req, nil +} - // ListPluginVersionTablesWithResponse request - ListPluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, params *ListPluginVersionTablesParams, reqEditors ...RequestEditorFn) (*ListPluginVersionTablesResponse, error) +// NewGetSyncRunLogsRequest generates requests for GetSyncRunLogs +func NewGetSyncRunLogsRequest(server string, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams) (*http.Request, error) { + var err 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) + var pathParam0 string - CreatePluginVersionTablesWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body CreatePluginVersionTablesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginVersionTablesResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - // GetPluginVersionTableWithResponse request - GetPluginVersionTableWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, tableName string, reqEditors ...RequestEditorFn) (*GetPluginVersionTableResponse, error) + var pathParam1 string - // AuthRegistryRequestWithResponse request - AuthRegistryRequestWithResponse(ctx context.Context, params *AuthRegistryRequestParams, reqEditors ...RequestEditorFn) (*AuthRegistryRequestResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + if err != nil { + return nil, err + } - // ListTeamsWithResponse request - ListTeamsWithResponse(ctx context.Context, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error) + var pathParam2 string - // CreateTeamWithBodyWithResponse request with any body - CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + if err != nil { + return nil, err + } - CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteTeamWithResponse request - DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error) + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/logs", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetTeamByNameWithResponse request - GetTeamByNameWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamByNameResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // 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) + if params != nil { - // ListAddonOrdersByTeamWithResponse request - ListAddonOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonOrdersByTeamResponse, error) + if params.Accept != nil { + var headerParam0 string - // CreateAddonOrderForTeamWithBodyWithResponse request with any body - CreateAddonOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { + return nil, err + } - CreateAddonOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) + req.Header.Set("Accept", headerParam0) + } - // 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) + return req, nil +} - // ListAddonsByTeamWithResponse request - ListAddonsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListAddonsByTeamParams, reqEditors ...RequestEditorFn) (*ListAddonsByTeamResponse, error) +// 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 + } + bodyReader = bytes.NewReader(buf) + return NewCreateSyncRunProgressRequestWithBody(server, teamName, syncName, syncRunId, "application/json", bodyReader) +} - // DownloadAddonAssetByTeamWithResponse request - DownloadAddonAssetByTeamWithResponse(ctx context.Context, teamName TeamName, addonTeam AddonTeam, addonType AddonType, addonName AddonName, versionName VersionName, params *DownloadAddonAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadAddonAssetByTeamResponse, error) +// 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 - // ListTeamAPIKeysWithResponse request - ListTeamAPIKeysWithResponse(ctx context.Context, teamName TeamName, params *ListTeamAPIKeysParams, reqEditors ...RequestEditorFn) (*ListTeamAPIKeysResponse, error) + var pathParam0 string - // CreateTeamAPIKeyWithBodyWithResponse request with any body - CreateTeamAPIKeyWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - CreateTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) + var pathParam1 string - // DeleteTeamAPIKeyWithResponse request - DeleteTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, aPIKeyID APIKeyID, reqEditors ...RequestEditorFn) (*DeleteTeamAPIKeyResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "sync_name", runtime.ParamLocationPath, syncName) + 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) + var pathParam2 string - CreateTeamImagesWithResponse(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "sync_run_id", runtime.ParamLocationPath, syncRunId) + 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) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - DeleteTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) + operationPath := fmt.Sprintf("/teams/%s/syncs/%s/runs/%s/progress", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ListTeamInvitationsWithResponse request - ListTeamInvitationsWithResponse(ctx context.Context, teamName TeamName, params *ListTeamInvitationsParams, reqEditors ...RequestEditorFn) (*ListTeamInvitationsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // EmailTeamInvitationWithBodyWithResponse request with any body - EmailTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - EmailTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) + req.Header.Add("Content-Type", contentType) - // AcceptTeamInvitationWithBodyWithResponse request with any body - AcceptTeamInvitationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) + return req, nil +} - AcceptTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) +// NewListTeamPluginUsageRequest generates requests for ListTeamPluginUsage +func NewListTeamPluginUsageRequest(server string, teamName TeamName, params *ListTeamPluginUsageParams) (*http.Request, error) { + var err error - // CancelTeamInvitationWithResponse request - CancelTeamInvitationWithResponse(ctx context.Context, teamName TeamName, email Email, reqEditors ...RequestEditorFn) (*CancelTeamInvitationResponse, error) + var pathParam0 string - // ListInvoicesByTeamWithResponse request - ListInvoicesByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListInvoicesByTeamParams, reqEditors ...RequestEditorFn) (*ListInvoicesByTeamResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - // GetManagedDatabasesWithResponse request - GetManagedDatabasesWithResponse(ctx context.Context, teamName TeamName, params *GetManagedDatabasesParams, reqEditors ...RequestEditorFn) (*GetManagedDatabasesResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // CreateManagedDatabaseWithBodyWithResponse request with any body - CreateManagedDatabaseWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) + operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - CreateManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DeleteManagedDatabaseWithResponse request - DeleteManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*DeleteManagedDatabaseResponse, error) + if params != nil { + queryValues := queryURL.Query() - // GetManagedDatabaseWithResponse request - GetManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, managedDatabaseID ManagedDatabaseID, reqEditors ...RequestEditorFn) (*GetManagedDatabaseResponse, error) + if params.Page != nil { - // GetTeamMembershipsWithResponse request - GetTeamMembershipsWithResponse(ctx context.Context, teamName TeamName, params *GetTeamMembershipsParams, reqEditors ...RequestEditorFn) (*GetTeamMembershipsResponse, 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) + } + } + } - // DeleteTeamMembershipWithResponse request - DeleteTeamMembershipWithResponse(ctx context.Context, teamName TeamName, email Email, reqEditors ...RequestEditorFn) (*DeleteTeamMembershipResponse, error) + } - // DeletePluginsByTeamWithResponse request - DeletePluginsByTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeletePluginsByTeamResponse, error) + if params.PerPage != nil { - // ListPluginsByTeamWithResponse request - ListPluginsByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListPluginsByTeamParams, reqEditors ...RequestEditorFn) (*ListPluginsByTeamResponse, 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) + } + } + } - // DownloadPluginAssetByTeamWithResponse request - DownloadPluginAssetByTeamWithResponse(ctx context.Context, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName, versionName VersionName, targetName TargetName, params *DownloadPluginAssetByTeamParams, reqEditors ...RequestEditorFn) (*DownloadPluginAssetByTeamResponse, error) + } - // GetTeamSpendWithResponse request - GetTeamSpendWithResponse(ctx context.Context, teamName TeamName, params *GetTeamSpendParams, reqEditors ...RequestEditorFn) (*GetTeamSpendResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // DeleteSpendingLimitWithResponse request - DeleteSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteSpendingLimitResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // GetSpendingLimitWithResponse request - GetSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetSpendingLimitResponse, error) + return req, nil +} - // CreateSpendingLimitWithBodyWithResponse request with any body - CreateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, 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 NewIncreaseTeamPluginUsageRequestWithBody(server, teamName, "application/json", bodyReader) +} - CreateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, 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 - // UpdateSpendingLimitWithBodyWithResponse request with any body - UpdateSpendingLimitWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) + var pathParam0 string - UpdateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body UpdateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSpendingLimitResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - // ListSubscriptionOrdersByTeamWithResponse request - ListSubscriptionOrdersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListSubscriptionOrdersByTeamParams, reqEditors ...RequestEditorFn) (*ListSubscriptionOrdersByTeamResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // CreateSubscriptionOrderForTeamWithBodyWithResponse request with any body - CreateSubscriptionOrderForTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) + operationPath := fmt.Sprintf("/teams/%s/usage", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - CreateSubscriptionOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateSubscriptionOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionOrderForTeamResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetSubscriptionOrderByTeamWithResponse request - GetSubscriptionOrderByTeamWithResponse(ctx context.Context, teamName TeamName, teamSubscriptionOrderID TeamSubscriptionOrderID, reqEditors ...RequestEditorFn) (*GetSubscriptionOrderByTeamResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // ListSyncDestinationsWithResponse request - ListSyncDestinationsWithResponse(ctx context.Context, teamName TeamName, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationsResponse, error) + req.Header.Add("Content-Type", contentType) - // CreateSyncDestinationWithBodyWithResponse request with any body - CreateSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) + return req, nil +} - CreateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) +// NewGetTeamUsageSummaryRequest generates requests for GetTeamUsageSummary +func NewGetTeamUsageSummaryRequest(server string, teamName TeamName, params *GetTeamUsageSummaryParams) (*http.Request, error) { + var err error - // TestSyncDestinationWithBodyWithResponse request with any body - TestSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, error) + var pathParam0 string - TestSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body TestSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - // DeleteSyncDestinationWithResponse request - DeleteSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*DeleteSyncDestinationResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // GetSyncDestinationWithResponse request - GetSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, reqEditors ...RequestEditorFn) (*GetSyncDestinationResponse, error) + operationPath := fmt.Sprintf("/teams/%s/usage-summary", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // UpdateSyncDestinationWithBodyWithResponse request with any body - UpdateSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - UpdateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, syncDestinationName SyncDestinationName, body UpdateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationResponse, error) + if params != nil { + queryValues := queryURL.Query() - // ListSyncSourcesWithResponse request - ListSyncSourcesWithResponse(ctx context.Context, teamName TeamName, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*ListSyncSourcesResponse, error) - - // CreateSyncSourceWithBodyWithResponse request with any body - CreateSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) - - CreateSyncSourceWithResponse(ctx context.Context, teamName TeamName, body CreateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) + if params.Metrics != nil { - // TestSyncSourceWithBodyWithResponse request with any body - TestSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metrics", runtime.ParamLocationQuery, *params.Metrics); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - TestSyncSourceWithResponse(ctx context.Context, teamName TeamName, body TestSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, error) + } - // DeleteSyncSourceWithResponse request - DeleteSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*DeleteSyncSourceResponse, error) + if params.Start != nil { - // GetSyncSourceWithResponse request - GetSyncSourceWithResponse(ctx context.Context, teamName TeamName, syncSourceName SyncSourceName, reqEditors ...RequestEditorFn) (*GetSyncSourceResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // 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) + if params.End != nil { - // ListSyncsWithResponse request - ListSyncsWithResponse(ctx context.Context, teamName TeamName, params *ListSyncsParams, reqEditors ...RequestEditorFn) (*ListSyncsResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // 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) + if params.AggregationPeriod != nil { - // GetSyncTestConnectionWithResponse request - GetSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetSyncTestConnectionResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aggregation_period", runtime.ParamLocationQuery, *params.AggregationPeriod); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // UpdateSyncTestConnectionWithBodyWithResponse request with any body - UpdateSyncTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, error) + } - UpdateSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body UpdateSyncTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // DeleteSyncWithResponse request - DeleteSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*DeleteSyncResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // GetSyncWithResponse request - GetSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*GetSyncResponse, error) + return req, nil +} - // UpdateSyncWithBodyWithResponse request with any body - UpdateSyncWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) +// NewGetGroupedTeamUsageSummaryRequest generates requests for GetGroupedTeamUsageSummary +func NewGetGroupedTeamUsageSummaryRequest(server string, teamName TeamName, groupBy GetGroupedTeamUsageSummaryParamsGroupBy, params *GetGroupedTeamUsageSummaryParams) (*http.Request, error) { + var err error - UpdateSyncWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, body UpdateSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncResponse, error) + var pathParam0 string - // ListSyncRunsWithResponse request - ListSyncRunsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, params *ListSyncRunsParams, reqEditors ...RequestEditorFn) (*ListSyncRunsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err + } - // CreateSyncRunWithResponse request - CreateSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, reqEditors ...RequestEditorFn) (*CreateSyncRunResponse, error) + var pathParam1 string - // GetSyncRunWithResponse request - GetSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, reqEditors ...RequestEditorFn) (*GetSyncRunResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "group_by", runtime.ParamLocationPath, groupBy) + if err != nil { + return nil, err + } - // UpdateSyncRunWithBodyWithResponse request with any body - UpdateSyncRunWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - UpdateSyncRunWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body UpdateSyncRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncRunResponse, error) + operationPath := fmt.Sprintf("/teams/%s/usage-summary/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetSyncRunLogsWithResponse request - GetSyncRunLogsWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, params *GetSyncRunLogsParams, reqEditors ...RequestEditorFn) (*GetSyncRunLogsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // CreateSyncRunProgressWithBodyWithResponse request with any body - CreateSyncRunProgressWithBodyWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) + if params != nil { + queryValues := queryURL.Query() - CreateSyncRunProgressWithResponse(ctx context.Context, teamName TeamName, syncName SyncName, syncRunId SyncRunId, body CreateSyncRunProgressJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncRunProgressResponse, error) + if params.Metrics != nil { - // ListTeamPluginUsageWithResponse request - ListTeamPluginUsageWithResponse(ctx context.Context, teamName TeamName, params *ListTeamPluginUsageParams, reqEditors ...RequestEditorFn) (*ListTeamPluginUsageResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metrics", runtime.ParamLocationQuery, *params.Metrics); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // 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) + if params.Start != nil { - // GetTeamUsageSummaryWithResponse request - GetTeamUsageSummaryWithResponse(ctx context.Context, teamName TeamName, params *GetTeamUsageSummaryParams, reqEditors ...RequestEditorFn) (*GetTeamUsageSummaryResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // 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) + if params.End != nil { - // ListUsersByTeamWithResponse request - ListUsersByTeamWithResponse(ctx context.Context, teamName TeamName, params *ListUsersByTeamParams, reqEditors ...RequestEditorFn) (*ListUsersByTeamResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - // UploadImageWithResponse request - UploadImageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) + } - // GetCurrentUserWithResponse request - GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) + if params.AggregationPeriod != nil { - // UpdateCurrentUserWithBodyWithResponse request with any body - UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "aggregation_period", runtime.ParamLocationQuery, *params.AggregationPeriod); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error) + } - // ListCurrentUserInvitationsWithResponse request - ListCurrentUserInvitationsWithResponse(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*ListCurrentUserInvitationsResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // GetCurrentUserMembershipsWithResponse request - GetCurrentUserMembershipsWithResponse(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*GetCurrentUserMembershipsResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // DeleteUserWithResponse request - DeleteUserWithResponse(ctx context.Context, userID UserID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) + return req, nil } -type HealthCheckResponse struct { - Body []byte - HTTPResponse *http.Response -} +// NewGetTeamPluginUsageRequest generates requests for GetTeamPluginUsage +func NewGetTeamPluginUsageRequest(server string, teamName TeamName, pluginTeam PluginTeam, pluginKind PluginKind, pluginName PluginName) (*http.Request, error) { + var err error -// Status returns HTTPResponse.Status -func (r HealthCheckResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r HealthCheckResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "plugin_team", runtime.ParamLocationPath, pluginTeam) + if err != nil { + return nil, err } - return 0 -} -type ListAddonsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddons200Response - JSON401 *RequiresAuthentication - JSON500 *InternalError -} + var pathParam2 string -// 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 + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "plugin_kind", runtime.ParamLocationPath, pluginKind) + if err != nil { + return nil, err } - return 0 -} -type CreateAddonResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Addon - JSON400 *BadRequest - JSON403 *Forbidden - JSON422 *UnprocessableEntity - JSON500 *InternalError -} + var pathParam3 string -// Status returns HTTPResponse.Status -func (r CreateAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "plugin_name", runtime.ParamLocationPath, pluginName) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type DeleteAddonByTeamAndNameResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} + operationPath := fmt.Sprintf("/teams/%s/usage/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r DeleteAddonByTeamAndNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAddonByTeamAndNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type GetAddonResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddon - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r GetAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewListUsersByTeamRequest generates requests for ListUsersByTeam +func NewListUsersByTeamRequest(server string, teamName TeamName, params *ListUsersByTeamParams) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r GetAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "team_name", runtime.ParamLocationPath, teamName) + if err != nil { + return nil, err } - return 0 -} -type UpdateAddonResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Addon - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } -// Status returns HTTPResponse.Status -func (r UpdateAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + operationPath := fmt.Sprintf("/teams/%s/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} -type ListAddonVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListAddonVersions200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} + if params != nil { + queryValues := queryURL.Query() -// Status returns HTTPResponse.Status -func (r ListAddonVersionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListAddonVersionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type GetAddonVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonVersion - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r GetAddonVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewUploadImageRequest generates requests for UploadImage +func NewUploadImageRequest(server string) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r GetAddonVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type UpdateAddonVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonVersion - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} + operationPath := fmt.Sprintf("/upload/image") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r UpdateAddonVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateAddonVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type CreateAddonVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonVersion - JSON201 *AddonVersion - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r CreateAddonVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewGetCurrentUserRequest generates requests for GetCurrentUser +func NewGetCurrentUserRequest(server string) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r CreateAddonVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type DownloadAddonAssetResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *AddonAsset - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON429 *TooManyRequests - JSON500 *InternalError -} + operationPath := fmt.Sprintf("/user") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r DownloadAddonAssetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DownloadAddonAssetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type UploadAddonAssetResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ReleaseURL - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r UploadAddonAssetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) + bodyReader = bytes.NewReader(buf) + return NewUpdateCurrentUserRequestWithBody(server, "application/json", bodyReader) } -// StatusCode returns HTTPResponse.StatusCode -func (r UploadAddonAssetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// NewUpdateCurrentUserRequestWithBody generates requests for UpdateCurrentUser with any type of body +func NewUpdateCurrentUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type CQHealthCheckResponse struct { - Body []byte - HTTPResponse *http.Response -} + operationPath := fmt.Sprintf("/user") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r CQHealthCheckResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CQHealthCheckResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err } - return 0 -} -type ListPluginNotificationRequestsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPluginNotificationRequests200Response - JSON401 *RequiresAuthentication - JSON500 *InternalError -} + req.Header.Add("Content-Type", contentType) -// Status returns HTTPResponse.Status -func (r ListPluginNotificationRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) + return req, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginNotificationRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} +// NewListCurrentUserInvitationsRequest generates requests for ListCurrentUserInvitations +func NewListCurrentUserInvitationsRequest(server string, params *ListCurrentUserInvitationsParams) (*http.Request, error) { + var err error -type CreatePluginNotificationRequestResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *PluginNotificationRequest - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError -} + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } -// Status returns HTTPResponse.Status -func (r CreatePluginNotificationRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + operationPath := fmt.Sprintf("/user/invitations") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginNotificationRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} -type DeletePluginNotificationRequestResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError -} + if params != nil { + queryValues := queryURL.Query() -// Status returns HTTPResponse.Status -func (r DeletePluginNotificationRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + if params.Page != nil { -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginNotificationRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 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) + } + } + } -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 + 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 http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetPluginNotificationRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type ListPluginsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPlugins200Response - JSON401 *RequiresAuthentication - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r ListPluginsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewGetCurrentUserMembershipsRequest generates requests for GetCurrentUserMemberships +func NewGetCurrentUserMembershipsRequest(server string, params *GetCurrentUserMembershipsParams) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - 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 + operationPath := fmt.Sprintf("/user/memberships") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} -type DeletePluginByTeamAndPluginNameResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} + if params != nil { + queryValues := queryURL.Query() -// Status returns HTTPResponse.Status -func (r DeletePluginByTeamAndPluginNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} + if params.Page != nil { -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginByTeamAndPluginNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 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) + } + } + } -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 + 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 http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r GetPluginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type UpdatePluginResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Plugin - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r UpdatePluginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r UpdatePluginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return 0 -} -type DeletePluginUpcomingPriceChangesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError -} + operationPath := fmt.Sprintf("/users/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r DeletePluginUpcomingPriceChangesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginUpcomingPriceChangesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type ListPluginUpcomingPriceChangesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListPluginUpcomingPriceChanges200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r ListPluginUpcomingPriceChangesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 + } } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ListPluginUpcomingPriceChangesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } } - return 0 + return nil } -type CreatePluginUpcomingPriceChangeResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *PluginPrice - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface } -// Status returns HTTPResponse.Status -func (r CreatePluginUpcomingPriceChangeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return &ClientWithResponses{client}, nil } -// StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginUpcomingPriceChangeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } +// 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) + + // 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) + + // 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) + + // 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) + + // 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) + + // 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) + + // 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) + + // ListSyncDestinationsWithResponse request + ListSyncDestinationsWithResponse(ctx context.Context, teamName TeamName, params *ListSyncDestinationsParams, reqEditors ...RequestEditorFn) (*ListSyncDestinationsResponse, error) + + // CreateSyncDestinationWithBodyWithResponse request with any body + CreateSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) + + CreateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) + + // TestSyncDestinationWithBodyWithResponse request with any body + TestSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, error) + + TestSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body TestSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, 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) + + // ListSyncSourcesWithResponse request + ListSyncSourcesWithResponse(ctx context.Context, teamName TeamName, params *ListSyncSourcesParams, reqEditors ...RequestEditorFn) (*ListSyncSourcesResponse, error) + + // CreateSyncSourceWithBodyWithResponse request with any body + CreateSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) + + CreateSyncSourceWithResponse(ctx context.Context, teamName TeamName, body CreateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) + + // TestSyncSourceWithBodyWithResponse request with any body + TestSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, error) + + TestSyncSourceWithResponse(ctx context.Context, teamName TeamName, body TestSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, 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) + + // 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) + + // GetSyncTestConnectionWithResponse request + GetSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetSyncTestConnectionResponse, error) + + // UpdateSyncTestConnectionWithBodyWithResponse request with any body + UpdateSyncTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, error) + + UpdateSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body UpdateSyncTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, 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) + + // CreateSyncDestinationFromTestConnectionWithBodyWithResponse request with any body + CreateSyncDestinationFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationFromTestConnectionResponse, error) + + CreateSyncDestinationFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationFromTestConnectionResponse, error) + + // CreateSyncSourceFromTestConnectionWithBodyWithResponse request with any body + CreateSyncSourceFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceFromTestConnectionResponse, error) + + CreateSyncSourceFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceFromTestConnectionResponse, error) + + // UpdateSyncDestinationFromTestConnectionWithBodyWithResponse request with any body + UpdateSyncDestinationFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationFromTestConnectionResponse, error) + + UpdateSyncDestinationFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, body UpdateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationFromTestConnectionResponse, error) + + // UpdateSyncSourceFromTestConnectionWithBodyWithResponse request with any body + UpdateSyncSourceFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncSourceFromTestConnectionResponse, error) + + UpdateSyncSourceFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, body UpdateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncSourceFromTestConnectionResponse, 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) + + // UploadImageWithResponse request + UploadImageWithResponse(ctx context.Context, 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) + + // ListCurrentUserInvitationsWithResponse request + ListCurrentUserInvitationsWithResponse(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*ListCurrentUserInvitationsResponse, error) + + // GetCurrentUserMembershipsWithResponse request + GetCurrentUserMembershipsWithResponse(ctx context.Context, params *GetCurrentUserMembershipsParams, reqEditors ...RequestEditorFn) (*GetCurrentUserMembershipsResponse, 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 +} + +// 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 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 + 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 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 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 + JSON422 *UnprocessableEntity + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateTeamAPIKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateTeamAPIKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteTeamAPIKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteTeamAPIKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteTeamAPIKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListConnectorsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *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 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 AuthenticateConnectorFinishOAuthResponse struct { + Body []byte + HTTPResponse *http.Response + 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 ListPluginVersionsResponse struct { +type AuthenticateConnectorOAuthResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListPluginVersions200Response + 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 @@ -10108,7 +12849,7 @@ type ListPluginVersionsResponse struct { } // Status returns HTTPResponse.Status -func (r ListPluginVersionsResponse) Status() string { +func (r CreateTeamImagesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10116,17 +12857,17 @@ func (r ListPluginVersionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListPluginVersionsResponse) StatusCode() int { +func (r CreateTeamImagesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetPluginVersionResponse struct { +type DeleteTeamInvitationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PluginVersionDetails + JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound @@ -10134,7 +12875,216 @@ type GetPluginVersionResponse struct { } // Status returns HTTPResponse.Status -func (r GetPluginVersionResponse) Status() string { +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 + 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 } @@ -10142,25 +13092,24 @@ func (r GetPluginVersionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetPluginVersionResponse) StatusCode() int { +func (r DeleteManagedDatabaseResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdatePluginVersionResponse struct { +type GetManagedDatabaseResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PluginVersion - JSON400 *BadRequest + JSON200 *ManagedDatabase JSON401 *RequiresAuthentication JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdatePluginVersionResponse) Status() string { +func (r GetManagedDatabaseResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10168,26 +13117,25 @@ func (r UpdatePluginVersionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdatePluginVersionResponse) StatusCode() int { +func (r GetManagedDatabaseResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreatePluginVersionResponse struct { +type RemoveTeamMembershipResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PluginVersion - JSON201 *PluginVersion JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreatePluginVersionResponse) Status() string { +func (r RemoveTeamMembershipResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10195,25 +13143,26 @@ func (r CreatePluginVersionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginVersionResponse) StatusCode() int { +func (r RemoveTeamMembershipResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DownloadPluginAssetResponse struct { +type GetTeamMembershipsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PluginAsset + JSON200 *GetTeamMemberships200Response + JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound - JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DownloadPluginAssetResponse) Status() string { +func (r GetTeamMembershipsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10221,24 +13170,25 @@ func (r DownloadPluginAssetResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DownloadPluginAssetResponse) StatusCode() int { +func (r GetTeamMembershipsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UploadPluginAssetResponse struct { +type DeleteTeamMembershipResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ReleaseURL + JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UploadPluginAssetResponse) Status() string { +func (r DeleteTeamMembershipResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10246,26 +13196,25 @@ func (r UploadPluginAssetResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UploadPluginAssetResponse) StatusCode() int { +func (r DeleteTeamMembershipResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeletePluginVersionDocsResponse struct { +type DeletePluginsByTeamResponse 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 { +func (r DeletePluginsByTeamResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10273,24 +13222,25 @@ func (r DeletePluginVersionDocsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginVersionDocsResponse) StatusCode() int { +func (r DeletePluginsByTeamResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListPluginVersionDocsResponse struct { +type ListPluginsByTeamResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListPluginVersionDocs200Response + JSON200 *ListPluginsByTeam200Response JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListPluginVersionDocsResponse) Status() string { +func (r ListPluginsByTeamResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10298,27 +13248,25 @@ func (r ListPluginVersionDocsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListPluginVersionDocsResponse) StatusCode() int { +func (r ListPluginsByTeamResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ReplacePluginVersionDocsResponse struct { +type DownloadPluginAssetByTeamResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *CreatePluginVersionDocs201Response - JSON400 *BadRequest + JSON200 *PluginAsset JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity + JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ReplacePluginVersionDocsResponse) Status() string { +func (r DownloadPluginAssetByTeamResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10326,27 +13274,26 @@ func (r ReplacePluginVersionDocsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ReplacePluginVersionDocsResponse) StatusCode() int { +func (r DownloadPluginAssetByTeamResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreatePluginVersionDocsResponse struct { +type GetTeamSpendResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *CreatePluginVersionDocs201Response + JSON200 *SpendSummary JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreatePluginVersionDocsResponse) Status() string { +func (r GetTeamSpendResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10354,26 +13301,24 @@ func (r CreatePluginVersionDocsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginVersionDocsResponse) StatusCode() int { +func (r GetTeamSpendResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeletePluginVersionTablesResponse struct { +type DeleteSpendingLimitResponse 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 { +func (r DeleteSpendingLimitResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10381,24 +13326,25 @@ func (r DeletePluginVersionTablesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginVersionTablesResponse) StatusCode() int { +func (r DeleteSpendingLimitResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListPluginVersionTablesResponse struct { +type GetSpendingLimitResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListPluginVersionTables200Response + JSON200 *SpendingLimit JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListPluginVersionTablesResponse) Status() string { +func (r GetSpendingLimitResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10406,18 +13352,17 @@ func (r ListPluginVersionTablesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListPluginVersionTablesResponse) StatusCode() int { +func (r GetSpendingLimitResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreatePluginVersionTablesResponse struct { +type CreateSpendingLimitResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *CreatePluginVersionTables201Response - JSON400 *BadRequest + JSON201 *SpendingLimit JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound @@ -10426,7 +13371,7 @@ type CreatePluginVersionTablesResponse struct { } // Status returns HTTPResponse.Status -func (r CreatePluginVersionTablesResponse) Status() string { +func (r CreateSpendingLimitResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10434,24 +13379,26 @@ func (r CreatePluginVersionTablesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreatePluginVersionTablesResponse) StatusCode() int { +func (r CreateSpendingLimitResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetPluginVersionTableResponse struct { +type UpdateSpendingLimitResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PluginTableDetails + JSON200 *SpendingLimit + JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetPluginVersionTableResponse) Status() string { +func (r UpdateSpendingLimitResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10459,26 +13406,25 @@ func (r GetPluginVersionTableResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetPluginVersionTableResponse) StatusCode() int { +func (r UpdateSpendingLimitResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type AuthRegistryRequestResponse struct { +type ListSubscriptionOrdersByTeamResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *RegistryAuthToken - JSON400 *DockerError - JSON401 *DockerError - JSON404 *DockerError - JSON422 *DockerError - JSON500 *DockerError + JSON200 *ListSubscriptionOrdersByTeam200Response + JSON401 *RequiresAuthentication + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r AuthRegistryRequestResponse) Status() string { +func (r ListSubscriptionOrdersByTeamResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10486,25 +13432,27 @@ func (r AuthRegistryRequestResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AuthRegistryRequestResponse) StatusCode() int { +func (r ListSubscriptionOrdersByTeamResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListTeamsResponse struct { +type CreateSubscriptionOrderForTeamResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListTeams200Response + JSON201 *TeamSubscriptionOrder + JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListTeamsResponse) Status() string { +func (r CreateSubscriptionOrderForTeamResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10512,26 +13460,25 @@ func (r ListTeamsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListTeamsResponse) StatusCode() int { +func (r CreateSubscriptionOrderForTeamResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateTeamResponse struct { +type GetSubscriptionOrderByTeamResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *Team - JSON400 *BadRequest + JSON200 *TeamSubscriptionOrder JSON401 *RequiresAuthentication JSON403 *Forbidden - JSON422 *UnprocessableEntity + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateTeamResponse) Status() string { +func (r GetSubscriptionOrderByTeamResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10539,26 +13486,24 @@ func (r CreateTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamResponse) StatusCode() int { +func (r GetSubscriptionOrderByTeamResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteTeamResponse struct { +type ListSyncDestinationsResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON200 *ListSyncDestinations200Response JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteTeamResponse) Status() string { +func (r ListSyncDestinationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10566,26 +13511,26 @@ func (r DeleteTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamResponse) StatusCode() int { +func (r ListSyncDestinationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetTeamByNameResponse struct { +type CreateSyncDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Team + JSON201 *SyncDestination JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetTeamByNameResponse) Status() string { +func (r CreateSyncDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10593,26 +13538,27 @@ func (r GetTeamByNameResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamByNameResponse) StatusCode() int { +func (r CreateSyncDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateTeamResponse struct { +type TestSyncDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Team + JSON201 *SyncTestConnection JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity + JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateTeamResponse) Status() string { +func (r TestSyncDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10620,25 +13566,24 @@ func (r UpdateTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateTeamResponse) StatusCode() int { +func (r TestSyncDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListAddonOrdersByTeamResponse struct { +type DeleteSyncDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListAddonOrdersByTeam200Response JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListAddonOrdersByTeamResponse) Status() string { +func (r DeleteSyncDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10646,25 +13591,24 @@ func (r ListAddonOrdersByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListAddonOrdersByTeamResponse) StatusCode() int { +func (r DeleteSyncDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateAddonOrderForTeamResponse struct { +type GetSyncDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *AddonOrder - JSON400 *BadRequest + JSON200 *SyncDestination JSON401 *RequiresAuthentication JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateAddonOrderForTeamResponse) Status() string { +func (r GetSyncDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10672,25 +13616,26 @@ func (r CreateAddonOrderForTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateAddonOrderForTeamResponse) StatusCode() int { +func (r GetSyncDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetAddonOrderByTeamResponse struct { +type UpdateSyncDestinationResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AddonOrder + JSON200 *SyncDestination + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetAddonOrderByTeamResponse) Status() string { +func (r UpdateSyncDestinationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10698,25 +13643,24 @@ func (r GetAddonOrderByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAddonOrderByTeamResponse) StatusCode() int { +func (r UpdateSyncDestinationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteAddonsByTeamResponse struct { +type ListSyncSourcesResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON200 *ListSyncSources200Response JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteAddonsByTeamResponse) Status() string { +func (r ListSyncSourcesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10724,25 +13668,26 @@ func (r DeleteAddonsByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteAddonsByTeamResponse) StatusCode() int { +func (r ListSyncSourcesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListAddonsByTeamResponse struct { +type CreateSyncSourceResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListAddonsByTeam200Response + JSON201 *SyncSource + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListAddonsByTeamResponse) Status() string { +func (r CreateSyncSourceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10750,26 +13695,27 @@ func (r ListAddonsByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListAddonsByTeamResponse) StatusCode() int { +func (r CreateSyncSourceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DownloadAddonAssetByTeamResponse struct { +type TestSyncSourceResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AddonAsset + JSON201 *SyncTestConnection + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DownloadAddonAssetByTeamResponse) Status() string { +func (r TestSyncSourceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10777,24 +13723,24 @@ func (r DownloadAddonAssetByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DownloadAddonAssetByTeamResponse) StatusCode() int { +func (r TestSyncSourceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListTeamAPIKeysResponse struct { +type DeleteSyncSourceResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListTeamAPIKeys200Response JSON401 *RequiresAuthentication JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListTeamAPIKeysResponse) Status() string { +func (r DeleteSyncSourceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10802,25 +13748,24 @@ func (r ListTeamAPIKeysResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListTeamAPIKeysResponse) StatusCode() int { +func (r DeleteSyncSourceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateTeamAPIKeyResponse struct { +type GetSyncSourceResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *APIKey - JSON400 *BadRequest + JSON200 *SyncSource JSON401 *RequiresAuthentication - JSON422 *UnprocessableEntity + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateTeamAPIKeyResponse) Status() string { +func (r GetSyncSourceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10828,24 +13773,26 @@ func (r CreateTeamAPIKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamAPIKeyResponse) StatusCode() int { +func (r GetSyncSourceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteTeamAPIKeyResponse struct { +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 DeleteTeamAPIKeyResponse) Status() string { +func (r UpdateSyncSourceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10853,25 +13800,24 @@ func (r DeleteTeamAPIKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamAPIKeyResponse) StatusCode() int { +func (r UpdateSyncSourceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateTeamImagesResponse struct { +type ListSyncsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *CreateTeamImages201Response + JSON200 *ListSyncs200Response JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateTeamImagesResponse) Status() string { +func (r ListSyncsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10879,25 +13825,25 @@ func (r CreateTeamImagesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamImagesResponse) StatusCode() int { +func (r ListSyncsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteTeamInvitationResponse struct { +type CreateSyncResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *Sync JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteTeamInvitationResponse) Status() string { +func (r CreateSyncResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10905,23 +13851,24 @@ func (r DeleteTeamInvitationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamInvitationResponse) StatusCode() int { +func (r CreateSyncResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListTeamInvitationsResponse struct { +type GetSyncTestConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListTeamInvitations200Response - JSON403 *Forbidden + JSON200 *SyncTestConnection + JSON401 *RequiresAuthentication + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListTeamInvitationsResponse) Status() string { +func (r GetSyncTestConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10929,26 +13876,26 @@ func (r ListTeamInvitationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListTeamInvitationsResponse) StatusCode() int { +func (r GetSyncTestConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type EmailTeamInvitationResponse struct { +type UpdateSyncTestConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *Invitation - JSON202 *Invitation + JSON200 *SyncTestConnection JSON400 *BadRequest JSON403 *Forbidden + JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r EmailTeamInvitationResponse) Status() string { +func (r UpdateSyncTestConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10956,24 +13903,26 @@ func (r EmailTeamInvitationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r EmailTeamInvitationResponse) StatusCode() int { +func (r UpdateSyncTestConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type AcceptTeamInvitationResponse struct { +type GetTestConnectionConnectorCredentialsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *MembershipWithTeam - JSON303 *MembershipWithTeam - JSON403 *Forbidden + JSON200 *GetSyncRunConnectorCredentials200Response + JSON400 *BadRequest + JSON401 *RequiresAuthentication + JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r AcceptTeamInvitationResponse) Status() string { +func (r GetTestConnectionConnectorCredentialsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -10981,25 +13930,26 @@ func (r AcceptTeamInvitationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r AcceptTeamInvitationResponse) StatusCode() int { +func (r GetTestConnectionConnectorCredentialsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CancelTeamInvitationResponse struct { +type GetTestConnectionConnectorIdentityResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *GetSyncRunConnectorIdentity200Response JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CancelTeamInvitationResponse) Status() string { +func (r GetTestConnectionConnectorIdentityResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11007,25 +13957,26 @@ func (r CancelTeamInvitationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CancelTeamInvitationResponse) StatusCode() int { +func (r GetTestConnectionConnectorIdentityResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListInvoicesByTeamResponse struct { +type CreateSyncDestinationFromTestConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListInvoicesByTeam200Response + JSON201 *SyncDestination + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListInvoicesByTeamResponse) Status() string { +func (r CreateSyncDestinationFromTestConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11033,26 +13984,26 @@ func (r ListInvoicesByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListInvoicesByTeamResponse) StatusCode() int { +func (r CreateSyncDestinationFromTestConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetManagedDatabasesResponse struct { +type CreateSyncSourceFromTestConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *GetManagedDatabases200Response + JSON201 *SyncSource JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetManagedDatabasesResponse) Status() string { +func (r CreateSyncSourceFromTestConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11060,28 +14011,26 @@ func (r GetManagedDatabasesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetManagedDatabasesResponse) StatusCode() int { +func (r CreateSyncSourceFromTestConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateManagedDatabaseResponse struct { +type UpdateSyncDestinationFromTestConnectionResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ManagedDatabase + JSON200 *SyncDestination JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateManagedDatabaseResponse) Status() string { +func (r UpdateSyncDestinationFromTestConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11089,16 +14038,18 @@ func (r CreateManagedDatabaseResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateManagedDatabaseResponse) StatusCode() int { +func (r UpdateSyncDestinationFromTestConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteManagedDatabaseResponse struct { +type UpdateSyncSourceFromTestConnectionResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *SyncSource + JSON400 *BadRequest JSON401 *RequiresAuthentication JSON404 *NotFound JSON422 *UnprocessableEntity @@ -11106,7 +14057,7 @@ type DeleteManagedDatabaseResponse struct { } // Status returns HTTPResponse.Status -func (r DeleteManagedDatabaseResponse) Status() string { +func (r UpdateSyncSourceFromTestConnectionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11114,24 +14065,24 @@ func (r DeleteManagedDatabaseResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteManagedDatabaseResponse) StatusCode() int { +func (r UpdateSyncSourceFromTestConnectionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetManagedDatabaseResponse struct { +type DeleteSyncResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ManagedDatabase + JSON400 *BadRequest JSON401 *RequiresAuthentication JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetManagedDatabaseResponse) Status() string { +func (r DeleteSyncResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11139,26 +14090,25 @@ func (r GetManagedDatabaseResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetManagedDatabaseResponse) StatusCode() int { +func (r DeleteSyncResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetTeamMembershipsResponse struct { +type GetSyncResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *GetTeamMemberships200Response + JSON200 *Sync JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetTeamMembershipsResponse) Status() string { +func (r GetSyncResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11166,25 +14116,26 @@ func (r GetTeamMembershipsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamMembershipsResponse) StatusCode() int { +func (r GetSyncResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteTeamMembershipResponse struct { +type UpdateSyncResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *Sync JSON400 *BadRequest - JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteTeamMembershipResponse) Status() string { +func (r UpdateSyncResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11192,25 +14143,24 @@ func (r DeleteTeamMembershipResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamMembershipResponse) StatusCode() int { +func (r UpdateSyncResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeletePluginsByTeamResponse struct { +type ListSyncRunsResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *BadRequest + JSON200 *ListSyncRuns200Response JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeletePluginsByTeamResponse) Status() string { +func (r ListSyncRunsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11218,25 +14168,25 @@ func (r DeletePluginsByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeletePluginsByTeamResponse) StatusCode() int { +func (r ListSyncRunsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListPluginsByTeamResponse struct { +type CreateSyncRunResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListPluginsByTeam200Response + JSON201 *SyncRun + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListPluginsByTeamResponse) Status() string { +func (r CreateSyncRunResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11244,25 +14194,24 @@ func (r ListPluginsByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListPluginsByTeamResponse) StatusCode() int { +func (r CreateSyncRunResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DownloadPluginAssetByTeamResponse struct { +type GetSyncRunResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PluginAsset + JSON200 *SyncRunDetails JSON401 *RequiresAuthentication JSON404 *NotFound - JSON429 *TooManyRequests JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DownloadPluginAssetByTeamResponse) Status() string { +func (r GetSyncRunResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11270,26 +14219,26 @@ func (r DownloadPluginAssetByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DownloadPluginAssetByTeamResponse) StatusCode() int { +func (r GetSyncRunResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetTeamSpendResponse struct { +type UpdateSyncRunResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SpendSummary + JSON200 *SyncRun JSON400 *BadRequest - JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetTeamSpendResponse) Status() string { +func (r UpdateSyncRunResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11297,24 +14246,26 @@ func (r GetTeamSpendResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamSpendResponse) StatusCode() int { +func (r UpdateSyncRunResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteSpendingLimitResponse struct { +type GetSyncRunConnectorCredentialsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *GetSyncRunConnectorCredentials200Response + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteSpendingLimitResponse) Status() string { +func (r GetSyncRunConnectorCredentialsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11322,25 +14273,26 @@ func (r DeleteSpendingLimitResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSpendingLimitResponse) StatusCode() int { +func (r GetSyncRunConnectorCredentialsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSpendingLimitResponse struct { +type GetSyncRunConnectorIdentityResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SpendingLimit + JSON200 *GetSyncRunConnectorIdentity200Response + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSpendingLimitResponse) Status() string { +func (r GetSyncRunConnectorIdentityResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11348,26 +14300,26 @@ func (r GetSpendingLimitResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSpendingLimitResponse) StatusCode() int { +func (r GetSyncRunConnectorIdentityResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateSpendingLimitResponse struct { +type GetSyncRunLogsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SpendingLimit + JSON200 *SyncRunLogs + JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateSpendingLimitResponse) Status() string { +func (r GetSyncRunLogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11375,26 +14327,25 @@ func (r CreateSpendingLimitResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSpendingLimitResponse) StatusCode() int { +func (r GetSyncRunLogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateSpendingLimitResponse struct { +type CreateSyncRunProgressResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SpendingLimit JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateSpendingLimitResponse) Status() string { +func (r CreateSyncRunProgressResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11402,17 +14353,17 @@ func (r UpdateSpendingLimitResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSpendingLimitResponse) StatusCode() int { +func (r CreateSyncRunProgressResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListSubscriptionOrdersByTeamResponse struct { +type ListTeamPluginUsageResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListSubscriptionOrdersByTeam200Response + JSON200 *ListTeamPluginUsage200Response JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound @@ -11420,7 +14371,7 @@ type ListSubscriptionOrdersByTeamResponse struct { } // Status returns HTTPResponse.Status -func (r ListSubscriptionOrdersByTeamResponse) Status() string { +func (r ListTeamPluginUsageResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11428,27 +14379,26 @@ func (r ListSubscriptionOrdersByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListSubscriptionOrdersByTeamResponse) StatusCode() int { +func (r ListTeamPluginUsageResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateSubscriptionOrderForTeamResponse struct { +type IncreaseTeamPluginUsageResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *TeamSubscriptionOrder - JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError + JSON503 *ServiceUnavailable } // Status returns HTTPResponse.Status -func (r CreateSubscriptionOrderForTeamResponse) Status() string { +func (r IncreaseTeamPluginUsageResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11456,25 +14406,27 @@ func (r CreateSubscriptionOrderForTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSubscriptionOrderForTeamResponse) StatusCode() int { +func (r IncreaseTeamPluginUsageResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSubscriptionOrderByTeamResponse struct { +type GetTeamUsageSummaryResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *TeamSubscriptionOrder + JSON200 *UsageSummary + JSON400 *BadRequest JSON401 *RequiresAuthentication JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSubscriptionOrderByTeamResponse) Status() string { +func (r GetTeamUsageSummaryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11482,24 +14434,27 @@ func (r GetSubscriptionOrderByTeamResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSubscriptionOrderByTeamResponse) StatusCode() int { +func (r GetTeamUsageSummaryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListSyncDestinationsResponse struct { +type GetGroupedTeamUsageSummaryResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListSyncDestinations200Response + JSON200 *UsageSummary + JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListSyncDestinationsResponse) Status() string { +func (r GetGroupedTeamUsageSummaryResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11507,26 +14462,25 @@ func (r ListSyncDestinationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListSyncDestinationsResponse) StatusCode() int { +func (r GetGroupedTeamUsageSummaryResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateSyncDestinationResponse struct { +type GetTeamPluginUsageResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncDestination - JSON400 *BadRequest + JSON200 *UsageCurrent JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateSyncDestinationResponse) Status() string { +func (r GetTeamPluginUsageResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11534,26 +14488,26 @@ func (r CreateSyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncDestinationResponse) StatusCode() int { +func (r GetTeamPluginUsageResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TestSyncDestinationResponse struct { +type ListUsersByTeamResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncTestConnection + JSON200 *ListUsersByTeam200Response JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound - JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TestSyncDestinationResponse) Status() string { +func (r ListUsersByTeamResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11561,24 +14515,22 @@ func (r TestSyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TestSyncDestinationResponse) StatusCode() int { +func (r ListUsersByTeamResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteSyncDestinationResponse struct { +type UploadImageResponse struct { Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity + HTTPResponse *http.Response + JSON200 *ImageURL JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteSyncDestinationResponse) Status() string { +func (r UploadImageResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11586,24 +14538,24 @@ func (r DeleteSyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncDestinationResponse) StatusCode() int { +func (r UploadImageResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSyncDestinationResponse struct { +type GetCurrentUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncDestination + JSON200 *User JSON401 *RequiresAuthentication - JSON404 *NotFound + JSON403 *Forbidden JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetSyncDestinationResponse) Status() string { +func (r GetCurrentUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11611,26 +14563,26 @@ func (r GetSyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSyncDestinationResponse) StatusCode() int { +func (r GetCurrentUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateSyncDestinationResponse struct { +type UpdateCurrentUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *SyncDestination + JSON200 *User JSON400 *BadRequest JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity + JSON403 *Forbidden + JSON405 *MethodNotAllowed JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateSyncDestinationResponse) Status() string { +func (r UpdateCurrentUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11638,24 +14590,22 @@ func (r UpdateSyncDestinationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncDestinationResponse) StatusCode() int { +func (r UpdateCurrentUserResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListSyncSourcesResponse struct { +type ListCurrentUserInvitationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ListSyncSources200Response - JSON401 *RequiresAuthentication - JSON404 *NotFound + JSON200 *ListCurrentUserInvitations200Response JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListSyncSourcesResponse) Status() string { +func (r ListCurrentUserInvitationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11663,26 +14613,24 @@ func (r ListSyncSourcesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListSyncSourcesResponse) StatusCode() int { +func (r ListCurrentUserInvitationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateSyncSourceResponse struct { +type GetCurrentUserMembershipsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncSource - JSON400 *BadRequest + JSON200 *GetCurrentUserMemberships200Response JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity + JSON403 *Forbidden JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateSyncSourceResponse) Status() string { +func (r GetCurrentUserMembershipsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11690,26 +14638,26 @@ func (r CreateSyncSourceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncSourceResponse) StatusCode() int { +func (r GetCurrentUserMembershipsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type TestSyncSourceResponse struct { +type DeleteUserResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SyncTestConnection JSON400 *BadRequest JSON401 *RequiresAuthentication + JSON403 *Forbidden JSON404 *NotFound JSON422 *UnprocessableEntity JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r TestSyncSourceResponse) Status() string { +func (r DeleteUserResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -11717,2126 +14665,2496 @@ func (r TestSyncSourceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r TestSyncSourceResponse) StatusCode() int { +func (r DeleteUserResponse) 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 +// 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) } -// Status returns HTTPResponse.Status -func (r DeleteSyncSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseListAddonsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseCreateAddonResponse(rsp) } -type GetSyncSourceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncSource - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError +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) } -// Status returns HTTPResponse.Status -func (r GetSyncSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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) +} + +// 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 http.StatusText(0) + return ParseDeletePluginNotificationRequestResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 -} - -type UpdateSyncSourceResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncSource - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError + return ParseGetPluginNotificationRequestResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateSyncSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseListPluginsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseCreatePluginResponse(rsp) } -type ListSyncsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSyncs200Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError +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) } -// Status returns HTTPResponse.Status -func (r ListSyncsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseDeletePluginByTeamAndPluginNameResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseGetPluginResponse(rsp) } -type CreateSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Sync - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON422 *UnprocessableEntity - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r CreateSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseUpdatePluginResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseDeletePluginUpcomingPriceChangesResponse(rsp) } -type GetSyncTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncTestConnection - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r GetSyncTestConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseCreatePluginUpcomingPriceChangeResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +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 0 + return ParseCreatePluginUpcomingPriceChangeResponse(rsp) } -type UpdateSyncTestConnectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncTestConnection - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r UpdateSyncTestConnectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseGetPluginVersionResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncTestConnectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseUpdatePluginVersionResponse(rsp) } -type DeleteSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError +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) } -// Status returns HTTPResponse.Status -func (r DeleteSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseCreatePluginVersionResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +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 0 + return ParseCreatePluginVersionResponse(rsp) } -type GetSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Sync - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r GetSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseUploadPluginAssetResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseDeletePluginVersionDocsResponse(rsp) } -type UpdateSyncResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Sync - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +func (c *ClientWithResponses) DeletePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body DeletePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePluginVersionDocsResponse, error) { + rsp, err := c.DeletePluginVersionDocs(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeletePluginVersionDocsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateSyncResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseListPluginVersionDocsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseReplacePluginVersionDocsResponse(rsp) } -type ListSyncRunsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListSyncRuns200Response - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError +func (c *ClientWithResponses) ReplacePluginVersionDocsWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, body ReplacePluginVersionDocsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplacePluginVersionDocsResponse, error) { + rsp, err := c.ReplacePluginVersionDocs(ctx, teamName, pluginKind, pluginName, versionName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReplacePluginVersionDocsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListSyncRunsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseCreatePluginVersionDocsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListSyncRunsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +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 0 + return ParseCreatePluginVersionDocsResponse(rsp) } -type CreateSyncRunResponse struct { - Body []byte - HTTPResponse *http.Response - JSON201 *SyncRun - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON422 *UnprocessableEntity - JSON500 *InternalError +// DeletePluginVersionTablesWithBodyWithResponse request with arbitrary body returning *DeletePluginVersionTablesResponse +func (c *ClientWithResponses) DeletePluginVersionTablesWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePluginVersionTablesResponse, error) { + rsp, err := c.DeletePluginVersionTablesWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeletePluginVersionTablesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r CreateSyncRunResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseDeletePluginVersionTablesResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncRunResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseListPluginVersionTablesResponse(rsp) } -type GetSyncRunResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncRunDetails - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON500 *InternalError +// CreatePluginVersionTablesWithBodyWithResponse request with arbitrary body returning *CreatePluginVersionTablesResponse +func (c *ClientWithResponses) CreatePluginVersionTablesWithBodyWithResponse(ctx context.Context, teamName TeamName, pluginKind PluginKind, pluginName PluginName, versionName VersionName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePluginVersionTablesResponse, error) { + rsp, err := c.CreatePluginVersionTablesWithBody(ctx, teamName, pluginKind, pluginName, versionName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePluginVersionTablesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetSyncRunResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseCreatePluginVersionTablesResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseGetPluginVersionTableResponse(rsp) } -type UpdateSyncRunResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncRun - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r UpdateSyncRunResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseUploadPluginUIAssetsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSyncRunResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseFinalizePluginUIAssetUploadResponse(rsp) } -type GetSyncRunLogsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SyncRunLogs - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +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) } -// Status returns HTTPResponse.Status -func (r GetSyncRunLogsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseAuthRegistryRequestResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetSyncRunLogsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseListTeamsResponse(rsp) } -type CreateSyncRunProgressResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r CreateSyncRunProgressResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseCreateTeamResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSyncRunProgressResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseDeleteTeamResponse(rsp) } -type ListTeamPluginUsageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListTeamPluginUsage200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r ListTeamPluginUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseUpdateTeamResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListTeamPluginUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +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 0 + return ParseUpdateTeamResponse(rsp) } -type IncreaseTeamPluginUsageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError - JSON503 *ServiceUnavailable +// 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) } -// Status returns HTTPResponse.Status -func (r IncreaseTeamPluginUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseCreateAddonOrderForTeamResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r IncreaseTeamPluginUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +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 0 + return ParseCreateAddonOrderForTeamResponse(rsp) } -type GetTeamUsageSummaryResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UsageSummary - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r GetTeamUsageSummaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseDeleteAddonsByTeamResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetTeamUsageSummaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseListAddonsByTeamResponse(rsp) } -type GetGroupedTeamUsageSummaryResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UsageSummary - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r GetGroupedTeamUsageSummaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseListTeamAPIKeysResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetGroupedTeamUsageSummaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseCreateTeamAPIKeyResponse(rsp) } -type GetTeamPluginUsageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UsageCurrent - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +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) } -// Status returns HTTPResponse.Status -func (r GetTeamPluginUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseDeleteTeamAPIKeyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetTeamPluginUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseListConnectorsResponse(rsp) } -type ListUsersByTeamResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListUsersByTeam200Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r ListUsersByTeamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseCreateConnectorResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListUsersByTeamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseGetConnectorResponse(rsp) } -type UploadImageResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ImageURL - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r UploadImageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseUpdateConnectorResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UploadImageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseRevokeConnectorResponse(rsp) } -type GetCurrentUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r GetCurrentUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseAuthenticateConnectorFinishAWSResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseAuthenticateConnectorAWSResponse(rsp) } -type UpdateCurrentUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *User - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON405 *MethodNotAllowed - JSON500 *InternalError +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) +} + +// 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) } -// Status returns HTTPResponse.Status -func (r UpdateCurrentUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseAuthenticateConnectorFinishOAuthResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateCurrentUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseAuthenticateConnectorOAuthResponse(rsp) } -type ListCurrentUserInvitationsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ListCurrentUserInvitations200Response - JSON500 *InternalError +func (c *ClientWithResponses) AuthenticateConnectorOAuthWithResponse(ctx context.Context, teamName TeamName, connectorID ConnectorID, body AuthenticateConnectorOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateConnectorOAuthResponse, error) { + rsp, err := c.AuthenticateConnectorOAuth(ctx, teamName, connectorID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthenticateConnectorOAuthResponse(rsp) } -// Status returns HTTPResponse.Status -func (r ListCurrentUserInvitationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// 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 http.StatusText(0) + return ParseCreateTeamImagesResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListCurrentUserInvitationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +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 0 + return ParseCreateTeamImagesResponse(rsp) } -type GetCurrentUserMembershipsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GetCurrentUserMemberships200Response - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r GetCurrentUserMembershipsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseDeleteTeamInvitationResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentUserMembershipsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseListTeamInvitationsResponse(rsp) } -type DeleteUserResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *BadRequest - JSON401 *RequiresAuthentication - JSON403 *Forbidden - JSON404 *NotFound - JSON422 *UnprocessableEntity - JSON500 *InternalError +// 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) } -// Status returns HTTPResponse.Status -func (r DeleteUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +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 http.StatusText(0) + return ParseEmailTeamInvitationResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// 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 0 + return ParseAcceptTeamInvitationResponse(rsp) } -// HealthCheckWithResponse request returning *HealthCheckResponse -func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error) { - rsp, err := c.HealthCheck(ctx, reqEditors...) +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 ParseHealthCheckResponse(rsp) + return ParseAcceptTeamInvitationResponse(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...) +// 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 ParseListAddonsResponse(rsp) + return ParseCancelTeamInvitationResponse(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...) +// 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 ParseCreateAddonResponse(rsp) + return ParseListInvoicesByTeamResponse(rsp) } -func (c *ClientWithResponses) CreateAddonWithResponse(ctx context.Context, body CreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonResponse, error) { - rsp, err := c.CreateAddon(ctx, body, reqEditors...) +// 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 ParseCreateAddonResponse(rsp) + return ParseGetManagedDatabasesResponse(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...) +// 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 ParseDeleteAddonByTeamAndNameResponse(rsp) + return ParseCreateManagedDatabaseResponse(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...) +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 ParseGetAddonResponse(rsp) + return ParseCreateManagedDatabaseResponse(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...) +// 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 ParseUpdateAddonResponse(rsp) + return ParseDeleteManagedDatabaseResponse(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...) +// 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 ParseUpdateAddonResponse(rsp) + return ParseGetManagedDatabaseResponse(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...) +// 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 ParseListAddonVersionsResponse(rsp) + return ParseRemoveTeamMembershipResponse(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...) +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 ParseGetAddonVersionResponse(rsp) + return ParseRemoveTeamMembershipResponse(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...) +// 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 ParseUpdateAddonVersionResponse(rsp) + return ParseGetTeamMembershipsResponse(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...) +// 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 ParseUpdateAddonVersionResponse(rsp) + return ParseDeleteTeamMembershipResponse(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...) +// 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 ParseCreateAddonVersionResponse(rsp) + return ParseDeletePluginsByTeamResponse(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...) +// 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 ParseCreateAddonVersionResponse(rsp) + return ParseListPluginsByTeamResponse(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...) +// 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 ParseDownloadAddonAssetResponse(rsp) + return ParseDownloadPluginAssetByTeamResponse(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...) +// 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 ParseUploadAddonAssetResponse(rsp) + return ParseGetTeamSpendResponse(rsp) } -// CQHealthCheckWithResponse request returning *CQHealthCheckResponse -func (c *ClientWithResponses) CQHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CQHealthCheckResponse, error) { - rsp, err := c.CQHealthCheck(ctx, reqEditors...) +// 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 ParseCQHealthCheckResponse(rsp) + return ParseCreateSpendingLimitResponse(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...) +// 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 ParseListPluginNotificationRequestsResponse(rsp) + return ParseUpdateSpendingLimitResponse(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...) +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 ParseCreatePluginNotificationRequestResponse(rsp) + return ParseUpdateSpendingLimitResponse(rsp) } -func (c *ClientWithResponses) CreatePluginNotificationRequestWithResponse(ctx context.Context, body CreatePluginNotificationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginNotificationRequestResponse, error) { - rsp, err := c.CreatePluginNotificationRequest(ctx, body, reqEditors...) +// 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 ParseCreatePluginNotificationRequestResponse(rsp) + return ParseListSubscriptionOrdersByTeamResponse(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...) +// 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 ParseDeletePluginNotificationRequestResponse(rsp) + return ParseCreateSubscriptionOrderForTeamResponse(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...) +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 ParseGetPluginNotificationRequestResponse(rsp) + return ParseCreateSubscriptionOrderForTeamResponse(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...) +// 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 ParseListPluginsResponse(rsp) + return ParseGetSubscriptionOrderByTeamResponse(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...) +// 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 ParseCreatePluginResponse(rsp) + return ParseListSyncDestinationsResponse(rsp) } -func (c *ClientWithResponses) CreatePluginWithResponse(ctx context.Context, body CreatePluginJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePluginResponse, error) { - rsp, err := c.CreatePlugin(ctx, body, reqEditors...) +// CreateSyncDestinationWithBodyWithResponse request with arbitrary body returning *CreateSyncDestinationResponse +func (c *ClientWithResponses) CreateSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) { + rsp, err := c.CreateSyncDestinationWithBody(ctx, teamName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreatePluginResponse(rsp) + return ParseCreateSyncDestinationResponse(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...) +func (c *ClientWithResponses) CreateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) { + rsp, err := c.CreateSyncDestination(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } - return ParseDeletePluginByTeamAndPluginNameResponse(rsp) + return ParseCreateSyncDestinationResponse(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...) +// TestSyncDestinationWithBodyWithResponse request with arbitrary body returning *TestSyncDestinationResponse +func (c *ClientWithResponses) TestSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, error) { + rsp, err := c.TestSyncDestinationWithBody(ctx, teamName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetPluginResponse(rsp) + return ParseTestSyncDestinationResponse(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...) +func (c *ClientWithResponses) TestSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body TestSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, error) { + rsp, err := c.TestSyncDestination(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdatePluginResponse(rsp) + return ParseTestSyncDestinationResponse(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...) +// 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 ParseUpdatePluginResponse(rsp) + return ParseDeleteSyncDestinationResponse(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...) +// 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 ParseDeletePluginUpcomingPriceChangesResponse(rsp) + return ParseGetSyncDestinationResponse(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...) +// 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 ParseListPluginUpcomingPriceChangesResponse(rsp) + return ParseUpdateSyncDestinationResponse(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...) +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 ParseCreatePluginUpcomingPriceChangeResponse(rsp) + return ParseUpdateSyncDestinationResponse(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...) +// 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 ParseCreatePluginUpcomingPriceChangeResponse(rsp) + return ParseListSyncSourcesResponse(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...) +// CreateSyncSourceWithBodyWithResponse request with arbitrary body returning *CreateSyncSourceResponse +func (c *ClientWithResponses) CreateSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) { + rsp, err := c.CreateSyncSourceWithBody(ctx, teamName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListPluginVersionsResponse(rsp) + return ParseCreateSyncSourceResponse(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...) +func (c *ClientWithResponses) CreateSyncSourceWithResponse(ctx context.Context, teamName TeamName, body CreateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) { + rsp, err := c.CreateSyncSource(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } - return ParseGetPluginVersionResponse(rsp) + return ParseCreateSyncSourceResponse(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...) +// TestSyncSourceWithBodyWithResponse request with arbitrary body returning *TestSyncSourceResponse +func (c *ClientWithResponses) TestSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, error) { + rsp, err := c.TestSyncSourceWithBody(ctx, teamName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdatePluginVersionResponse(rsp) + return ParseTestSyncSourceResponse(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...) +func (c *ClientWithResponses) TestSyncSourceWithResponse(ctx context.Context, teamName TeamName, body TestSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, error) { + rsp, err := c.TestSyncSource(ctx, teamName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdatePluginVersionResponse(rsp) + return ParseTestSyncSourceResponse(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...) +// 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 ParseCreatePluginVersionResponse(rsp) + return ParseDeleteSyncSourceResponse(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...) +// 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 ParseCreatePluginVersionResponse(rsp) + return ParseGetSyncSourceResponse(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...) +// 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 ParseDownloadPluginAssetResponse(rsp) + return ParseUpdateSyncSourceResponse(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...) +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 ParseUploadPluginAssetResponse(rsp) + return ParseUpdateSyncSourceResponse(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...) +// 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 ParseDeletePluginVersionDocsResponse(rsp) + return ParseListSyncsResponse(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...) +// 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 ParseDeletePluginVersionDocsResponse(rsp) + return ParseCreateSyncResponse(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...) +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 ParseListPluginVersionDocsResponse(rsp) + return ParseCreateSyncResponse(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...) +// GetSyncTestConnectionWithResponse request returning *GetSyncTestConnectionResponse +func (c *ClientWithResponses) GetSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetSyncTestConnectionResponse, error) { + rsp, err := c.GetSyncTestConnection(ctx, teamName, syncTestConnectionId, reqEditors...) if err != nil { return nil, err } - return ParseReplacePluginVersionDocsResponse(rsp) + return ParseGetSyncTestConnectionResponse(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...) +// UpdateSyncTestConnectionWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionResponse +func (c *ClientWithResponses) UpdateSyncTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, error) { + rsp, err := c.UpdateSyncTestConnectionWithBody(ctx, teamName, syncTestConnectionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseReplacePluginVersionDocsResponse(rsp) + return ParseUpdateSyncTestConnectionResponse(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...) +func (c *ClientWithResponses) UpdateSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body UpdateSyncTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, error) { + rsp, err := c.UpdateSyncTestConnection(ctx, teamName, syncTestConnectionId, body, reqEditors...) if err != nil { return nil, err } - return ParseCreatePluginVersionDocsResponse(rsp) + return ParseUpdateSyncTestConnectionResponse(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...) +// 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 ParseCreatePluginVersionDocsResponse(rsp) + return ParseGetTestConnectionConnectorCredentialsResponse(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...) +// 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 ParseDeletePluginVersionTablesResponse(rsp) + return ParseGetTestConnectionConnectorIdentityResponse(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...) +// CreateSyncDestinationFromTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateSyncDestinationFromTestConnectionResponse +func (c *ClientWithResponses) CreateSyncDestinationFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationFromTestConnectionResponse, error) { + rsp, err := c.CreateSyncDestinationFromTestConnectionWithBody(ctx, teamName, syncTestConnectionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeletePluginVersionTablesResponse(rsp) + return ParseCreateSyncDestinationFromTestConnectionResponse(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...) +func (c *ClientWithResponses) CreateSyncDestinationFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationFromTestConnectionResponse, error) { + rsp, err := c.CreateSyncDestinationFromTestConnection(ctx, teamName, syncTestConnectionId, body, reqEditors...) if err != nil { return nil, err } - return ParseListPluginVersionTablesResponse(rsp) + return ParseCreateSyncDestinationFromTestConnectionResponse(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...) +// CreateSyncSourceFromTestConnectionWithBodyWithResponse request with arbitrary body returning *CreateSyncSourceFromTestConnectionResponse +func (c *ClientWithResponses) CreateSyncSourceFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceFromTestConnectionResponse, error) { + rsp, err := c.CreateSyncSourceFromTestConnectionWithBody(ctx, teamName, syncTestConnectionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreatePluginVersionTablesResponse(rsp) + return ParseCreateSyncSourceFromTestConnectionResponse(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...) +func (c *ClientWithResponses) CreateSyncSourceFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body CreateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceFromTestConnectionResponse, error) { + rsp, err := c.CreateSyncSourceFromTestConnection(ctx, teamName, syncTestConnectionId, body, reqEditors...) if err != nil { return nil, err } - return ParseCreatePluginVersionTablesResponse(rsp) + return ParseCreateSyncSourceFromTestConnectionResponse(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...) +// UpdateSyncDestinationFromTestConnectionWithBodyWithResponse request with arbitrary body returning *UpdateSyncDestinationFromTestConnectionResponse +func (c *ClientWithResponses) UpdateSyncDestinationFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationFromTestConnectionResponse, error) { + rsp, err := c.UpdateSyncDestinationFromTestConnectionWithBody(ctx, teamName, syncTestConnectionId, syncDestinationName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetPluginVersionTableResponse(rsp) + return ParseUpdateSyncDestinationFromTestConnectionResponse(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...) +func (c *ClientWithResponses) UpdateSyncDestinationFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncDestinationName SyncDestinationName, body UpdateSyncDestinationFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncDestinationFromTestConnectionResponse, error) { + rsp, err := c.UpdateSyncDestinationFromTestConnection(ctx, teamName, syncTestConnectionId, syncDestinationName, body, reqEditors...) if err != nil { return nil, err } - return ParseAuthRegistryRequestResponse(rsp) + return ParseUpdateSyncDestinationFromTestConnectionResponse(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...) +// UpdateSyncSourceFromTestConnectionWithBodyWithResponse request with arbitrary body returning *UpdateSyncSourceFromTestConnectionResponse +func (c *ClientWithResponses) UpdateSyncSourceFromTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncSourceFromTestConnectionResponse, error) { + rsp, err := c.UpdateSyncSourceFromTestConnectionWithBody(ctx, teamName, syncTestConnectionId, syncSourceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListTeamsResponse(rsp) + return ParseUpdateSyncSourceFromTestConnectionResponse(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...) +func (c *ClientWithResponses) UpdateSyncSourceFromTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, syncSourceName SyncSourceName, body UpdateSyncSourceFromTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncSourceFromTestConnectionResponse, error) { + rsp, err := c.UpdateSyncSourceFromTestConnection(ctx, teamName, syncTestConnectionId, syncSourceName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateTeamResponse(rsp) + return ParseUpdateSyncSourceFromTestConnectionResponse(rsp) } -func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) { - rsp, err := c.CreateTeam(ctx, body, reqEditors...) +// 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 ParseCreateTeamResponse(rsp) + return ParseDeleteSyncResponse(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...) +// 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 ParseDeleteTeamResponse(rsp) + return ParseGetSyncResponse(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...) +// 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 ParseGetTeamByNameResponse(rsp) + return ParseUpdateSyncResponse(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...) +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 ParseUpdateTeamResponse(rsp) + return ParseUpdateSyncResponse(rsp) } -func (c *ClientWithResponses) UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) { - rsp, err := c.UpdateTeam(ctx, teamName, body, reqEditors...) +// 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 ParseUpdateTeamResponse(rsp) + return ParseListSyncRunsResponse(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...) +// 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 ParseListAddonOrdersByTeamResponse(rsp) + return ParseCreateSyncRunResponse(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...) +// 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 ParseCreateAddonOrderForTeamResponse(rsp) + return ParseGetSyncRunResponse(rsp) } -func (c *ClientWithResponses) CreateAddonOrderForTeamWithResponse(ctx context.Context, teamName TeamName, body CreateAddonOrderForTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAddonOrderForTeamResponse, error) { - rsp, err := c.CreateAddonOrderForTeam(ctx, teamName, body, reqEditors...) +// 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 ParseCreateAddonOrderForTeamResponse(rsp) + return ParseUpdateSyncRunResponse(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...) +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 ParseGetAddonOrderByTeamResponse(rsp) + return ParseUpdateSyncRunResponse(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...) +// 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 ParseDeleteAddonsByTeamResponse(rsp) + return ParseGetSyncRunConnectorCredentialsResponse(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...) +// 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 ParseListAddonsByTeamResponse(rsp) + return ParseGetSyncRunConnectorIdentityResponse(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...) +// 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 ParseDownloadAddonAssetByTeamResponse(rsp) + return ParseGetSyncRunLogsResponse(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...) +// 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 ParseListTeamAPIKeysResponse(rsp) + return ParseCreateSyncRunProgressResponse(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...) +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 ParseCreateTeamAPIKeyResponse(rsp) + return ParseCreateSyncRunProgressResponse(rsp) } -func (c *ClientWithResponses) CreateTeamAPIKeyWithResponse(ctx context.Context, teamName TeamName, body CreateTeamAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamAPIKeyResponse, error) { - rsp, err := c.CreateTeamAPIKey(ctx, teamName, body, reqEditors...) +// 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 ParseCreateTeamAPIKeyResponse(rsp) + return ParseListTeamPluginUsageResponse(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...) +// 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 ParseDeleteTeamAPIKeyResponse(rsp) + return ParseIncreaseTeamPluginUsageResponse(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...) +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 ParseCreateTeamImagesResponse(rsp) + return ParseIncreaseTeamPluginUsageResponse(rsp) } -func (c *ClientWithResponses) CreateTeamImagesWithResponse(ctx context.Context, teamName TeamName, body CreateTeamImagesJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamImagesResponse, error) { - rsp, err := c.CreateTeamImages(ctx, teamName, body, reqEditors...) +// 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 ParseCreateTeamImagesResponse(rsp) + return ParseGetTeamUsageSummaryResponse(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...) +// 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 ParseDeleteTeamInvitationResponse(rsp) + return ParseGetGroupedTeamUsageSummaryResponse(rsp) } -func (c *ClientWithResponses) DeleteTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body DeleteTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTeamInvitationResponse, error) { - rsp, err := c.DeleteTeamInvitation(ctx, teamName, body, reqEditors...) +// 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 ParseDeleteTeamInvitationResponse(rsp) + return ParseGetTeamPluginUsageResponse(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...) +// 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 ParseListTeamInvitationsResponse(rsp) + return ParseListUsersByTeamResponse(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...) +// UploadImageWithResponse request returning *UploadImageResponse +func (c *ClientWithResponses) UploadImageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) { + rsp, err := c.UploadImage(ctx, reqEditors...) if err != nil { return nil, err } - return ParseEmailTeamInvitationResponse(rsp) + return ParseUploadImageResponse(rsp) } -func (c *ClientWithResponses) EmailTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body EmailTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*EmailTeamInvitationResponse, error) { - rsp, err := c.EmailTeamInvitation(ctx, teamName, body, reqEditors...) +// 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 ParseEmailTeamInvitationResponse(rsp) + return ParseGetCurrentUserResponse(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...) +// 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 ParseAcceptTeamInvitationResponse(rsp) + return ParseUpdateCurrentUserResponse(rsp) } -func (c *ClientWithResponses) AcceptTeamInvitationWithResponse(ctx context.Context, teamName TeamName, body AcceptTeamInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptTeamInvitationResponse, error) { - rsp, err := c.AcceptTeamInvitation(ctx, teamName, body, reqEditors...) +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 ParseAcceptTeamInvitationResponse(rsp) + return ParseUpdateCurrentUserResponse(rsp) } -// CancelTeamInvitationWithResponse request returning *CancelTeamInvitationResponse -func (c *ClientWithResponses) CancelTeamInvitationWithResponse(ctx context.Context, teamName TeamName, email Email, reqEditors ...RequestEditorFn) (*CancelTeamInvitationResponse, error) { - rsp, err := c.CancelTeamInvitation(ctx, teamName, email, reqEditors...) +// 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 ParseCancelTeamInvitationResponse(rsp) + return ParseListCurrentUserInvitationsResponse(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...) +// 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 ParseListInvoicesByTeamResponse(rsp) + return ParseGetCurrentUserMembershipsResponse(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...) +// 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 ParseGetManagedDatabasesResponse(rsp) + return ParseDeleteUserResponse(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...) +// 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 } - return ParseCreateManagedDatabaseResponse(rsp) + + response := &HealthCheckResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil } -func (c *ClientWithResponses) CreateManagedDatabaseWithResponse(ctx context.Context, teamName TeamName, body CreateManagedDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagedDatabaseResponse, error) { - rsp, err := c.CreateManagedDatabase(ctx, teamName, body, reqEditors...) +// 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 } - 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 + 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 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) + return response, nil } -// 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...) +// 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 } - return ParseGetTeamMembershipsResponse(rsp) -} -// DeleteTeamMembershipWithResponse request returning *DeleteTeamMembershipResponse -func (c *ClientWithResponses) DeleteTeamMembershipWithResponse(ctx context.Context, teamName TeamName, email Email, reqEditors ...RequestEditorFn) (*DeleteTeamMembershipResponse, error) { - rsp, err := c.DeleteTeamMembership(ctx, teamName, email, reqEditors...) - if err != nil { - return nil, err + response := &CreateAddonResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + 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 ParseDeletePluginsByTeamResponse(rsp) + + return response, nil } -// 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...) +// 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 } - 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 + response := &DeleteAddonByTeamAndNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDownloadPluginAssetByTeamResponse(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 + 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 ParseGetTeamSpendResponse(rsp) + + return response, nil } -// DeleteSpendingLimitWithResponse request returning *DeleteSpendingLimitResponse -func (c *ClientWithResponses) DeleteSpendingLimitWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteSpendingLimitResponse, error) { - rsp, err := c.DeleteSpendingLimit(ctx, teamName, reqEditors...) +// 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 } - 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 + response := &GetAddonResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + 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 ParseCreateSpendingLimitResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateSpendingLimitWithResponse(ctx context.Context, teamName TeamName, body CreateSpendingLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSpendingLimitResponse, error) { - rsp, err := c.CreateSpendingLimit(ctx, teamName, body, reqEditors...) +// 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 } - 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 + response := &UpdateAddonResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + 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 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...) +// 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 } - 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 + response := &ListAddonVersionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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) -} + 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 -// 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) -} + 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 -// CreateSyncDestinationWithBodyWithResponse request with arbitrary body returning *CreateSyncDestinationResponse -func (c *ClientWithResponses) CreateSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) { - rsp, err := c.CreateSyncDestinationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSyncDestinationResponse(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) CreateSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body CreateSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncDestinationResponse, error) { - rsp, err := c.CreateSyncDestination(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSyncDestinationResponse(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 -// TestSyncDestinationWithBodyWithResponse request with arbitrary body returning *TestSyncDestinationResponse -func (c *ClientWithResponses) TestSyncDestinationWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, error) { - rsp, err := c.TestSyncDestinationWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTestSyncDestinationResponse(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) TestSyncDestinationWithResponse(ctx context.Context, teamName TeamName, body TestSyncDestinationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncDestinationResponse, error) { - rsp, err := c.TestSyncDestination(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err } - return ParseTestSyncDestinationResponse(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) + return response, nil } -// 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...) +// 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 } - 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 + response := &GetAddonVersionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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) -} + 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 -// 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) -} + 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 -// CreateSyncSourceWithBodyWithResponse request with arbitrary body returning *CreateSyncSourceResponse -func (c *ClientWithResponses) CreateSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) { - rsp, err := c.CreateSyncSourceWithBody(ctx, teamName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateSyncSourceResponse(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 + + 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) CreateSyncSourceWithResponse(ctx context.Context, teamName TeamName, body CreateSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSyncSourceResponse, error) { - rsp, err := c.CreateSyncSource(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err } - return ParseCreateSyncSourceResponse(rsp) + + return response, nil } -// TestSyncSourceWithBodyWithResponse request with arbitrary body returning *TestSyncSourceResponse -func (c *ClientWithResponses) TestSyncSourceWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, error) { - rsp, err := c.TestSyncSourceWithBody(ctx, teamName, contentType, body, reqEditors...) +// 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 } - return ParseTestSyncSourceResponse(rsp) -} -func (c *ClientWithResponses) TestSyncSourceWithResponse(ctx context.Context, teamName TeamName, body TestSyncSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSyncSourceResponse, error) { - rsp, err := c.TestSyncSource(ctx, teamName, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateAddonVersionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseTestSyncSourceResponse(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) -} + 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 -// 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) + return response, nil } -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...) +// 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 } - return ParseUpdateSyncSourceResponse(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 + response := &CreateAddonVersionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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) -} + 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 -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) -} + 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 -// GetSyncTestConnectionWithResponse request returning *GetSyncTestConnectionResponse -func (c *ClientWithResponses) GetSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, reqEditors ...RequestEditorFn) (*GetSyncTestConnectionResponse, error) { - rsp, err := c.GetSyncTestConnection(ctx, teamName, syncTestConnectionId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSyncTestConnectionResponse(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 -// UpdateSyncTestConnectionWithBodyWithResponse request with arbitrary body returning *UpdateSyncTestConnectionResponse -func (c *ClientWithResponses) UpdateSyncTestConnectionWithBodyWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, error) { - rsp, err := c.UpdateSyncTestConnectionWithBody(ctx, teamName, syncTestConnectionId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSyncTestConnectionResponse(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) UpdateSyncTestConnectionWithResponse(ctx context.Context, teamName TeamName, syncTestConnectionId SyncTestConnectionId, body UpdateSyncTestConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSyncTestConnectionResponse, error) { - rsp, err := c.UpdateSyncTestConnection(ctx, teamName, syncTestConnectionId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateSyncTestConnectionResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -// DeleteSyncWithResponse request returning *DeleteSyncResponse -func (c *ClientWithResponses) DeleteSyncWithResponse(ctx context.Context, 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) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// GetSyncWithResponse request returning *GetSyncResponse -func (c *ClientWithResponses) GetSyncWithResponse(ctx context.Context, 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) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// UpdateSyncWithBodyWithResponse request with arbitrary body returning *UpdateSyncResponse -func (c *ClientWithResponses) UpdateSyncWithBodyWithResponse(ctx context.Context, 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) + return response, nil } -// 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...) +// 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 } - 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 + response := &DownloadAddonAssetResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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) -} + 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 -// 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) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -func (c *ClientWithResponses) UpdateSyncRunWithResponse(ctx context.Context, 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) -} + 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 -// 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) -} + 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 -// 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) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -func (c *ClientWithResponses) 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) + + return response, nil } -// 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...) +// 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 } - 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 + response := &UploadAddonAssetResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + 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 + } - return ParseIncreaseTeamPluginUsageResponse(rsp) + + return response, nil } -// 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...) +// 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 } - 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 + response := &CQHealthCheckResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetGroupedTeamUsageSummaryResponse(rsp) + + return response, nil } -// 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...) +// 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 } - 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 + response := &ListPluginNotificationRequestsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListUsersByTeamResponse(rsp) -} -// UploadImageWithResponse request returning *UploadImageResponse -func (c *ClientWithResponses) UploadImageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) { - rsp, err := c.UploadImage(ctx, reqEditors...) - if err != nil { - return nil, err + 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 + } - return ParseUploadImageResponse(rsp) + + return response, nil } -// GetCurrentUserWithResponse request returning *GetCurrentUserResponse -func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) { - rsp, err := c.GetCurrentUser(ctx, reqEditors...) +// 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 } - 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 + response := &CreatePluginNotificationRequestResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + 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 + } - return ParseUpdateCurrentUserResponse(rsp) + + return response, nil } -// ListCurrentUserInvitationsWithResponse request returning *ListCurrentUserInvitationsResponse -func (c *ClientWithResponses) ListCurrentUserInvitationsWithResponse(ctx context.Context, params *ListCurrentUserInvitationsParams, reqEditors ...RequestEditorFn) (*ListCurrentUserInvitationsResponse, error) { - rsp, err := c.ListCurrentUserInvitations(ctx, params, reqEditors...) +// 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 } - return ParseListCurrentUserInvitationsResponse(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 + response := &DeletePluginNotificationRequestResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetCurrentUserMembershipsResponse(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 + 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 + } - return ParseDeleteUserResponse(rsp) + + return response, nil } -// ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call -func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, 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 := &HealthCheckResponse{ + response := &GetPluginNotificationRequestResponse{ Body: bodyBytes, HTTPResponse: 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 + + } + return response, nil } -// ParseListAddonsResponse parses an HTTP response from a ListAddonsWithResponse call -func ParseListAddonsResponse(rsp *http.Response) (*ListAddonsResponse, 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 := &ListAddonsResponse{ + response := &ListPluginsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddons200Response + var dest ListPlugins200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13861,22 +17179,22 @@ func ParseListAddonsResponse(rsp *http.Response) (*ListAddonsResponse, error) { return response, nil } -// ParseCreateAddonResponse parses an HTTP response from a CreateAddonWithResponse call -func ParseCreateAddonResponse(rsp *http.Response) (*CreateAddonResponse, 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 := &CreateAddonResponse{ + response := &CreatePluginResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Addon + var dest Plugin if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -13915,15 +17233,15 @@ func ParseCreateAddonResponse(rsp *http.Response) (*CreateAddonResponse, error) return response, nil } -// ParseDeleteAddonByTeamAndNameResponse parses an HTTP response from a DeleteAddonByTeamAndNameWithResponse call -func ParseDeleteAddonByTeamAndNameResponse(rsp *http.Response) (*DeleteAddonByTeamAndNameResponse, 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 := &DeleteAddonByTeamAndNameResponse{ + response := &DeletePluginByTeamAndPluginNameResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -13969,22 +17287,22 @@ func ParseDeleteAddonByTeamAndNameResponse(rsp *http.Response) (*DeleteAddonByTe return response, nil } -// ParseGetAddonResponse parses an HTTP response from a GetAddonWithResponse call -func ParseGetAddonResponse(rsp *http.Response) (*GetAddonResponse, 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 := &GetAddonResponse{ + response := &GetPluginResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddon + var dest ListPlugin if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -14016,22 +17334,22 @@ func ParseGetAddonResponse(rsp *http.Response) (*GetAddonResponse, error) { return response, nil } -// ParseUpdateAddonResponse parses an HTTP response from a UpdateAddonWithResponse call -func ParseUpdateAddonResponse(rsp *http.Response) (*UpdateAddonResponse, 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 := &UpdateAddonResponse{ + response := &UpdatePluginResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Addon + var dest Plugin if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -14077,27 +17395,20 @@ func ParseUpdateAddonResponse(rsp *http.Response) (*UpdateAddonResponse, error) return response, nil } -// ParseListAddonVersionsResponse parses an HTTP response from a ListAddonVersionsWithResponse call -func ParseListAddonVersionsResponse(rsp *http.Response) (*ListAddonVersionsResponse, 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 := &ListAddonVersionsResponse{ + response := &DeletePluginUpcomingPriceChangesResponse{ 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 { @@ -14131,22 +17442,22 @@ func ParseListAddonVersionsResponse(rsp *http.Response) (*ListAddonVersionsRespo return response, nil } -// ParseGetAddonVersionResponse parses an HTTP response from a GetAddonVersionWithResponse call -func ParseGetAddonVersionResponse(rsp *http.Response) (*GetAddonVersionResponse, 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 := &GetAddonVersionResponse{ + response := &ListPluginUpcomingPriceChangesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonVersion + var dest ListPluginUpcomingPriceChanges200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -14185,33 +17496,26 @@ func ParseGetAddonVersionResponse(rsp *http.Response) (*GetAddonVersionResponse, return response, nil } -// ParseUpdateAddonVersionResponse parses an HTTP response from a UpdateAddonVersionWithResponse call -func ParseUpdateAddonVersionResponse(rsp *http.Response) (*UpdateAddonVersionResponse, 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 := &UpdateAddonVersionResponse{ + response := &CreatePluginUpcomingPriceChangeResponse{ 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 + 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 @@ -14234,6 +17538,13 @@ func ParseUpdateAddonVersionResponse(rsp *http.Response) (*UpdateAddonVersionRes } 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 { @@ -14246,40 +17557,80 @@ func ParseUpdateAddonVersionResponse(rsp *http.Response) (*UpdateAddonVersionRes return response, nil } -// ParseCreateAddonVersionResponse parses an HTTP response from a CreateAddonVersionWithResponse call -func ParseCreateAddonVersionResponse(rsp *http.Response) (*CreateAddonVersionResponse, 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 := &CreateAddonVersionResponse{ + response := &ListPluginVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonVersion + 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 == 201: - var dest AddonVersion + 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.JSON201 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 +} + +// 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 := &GetPluginVersionResponse{ + Body: bodyBytes, + HTTPResponse: 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 case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -14314,40 +17665,40 @@ func ParseCreateAddonVersionResponse(rsp *http.Response) (*CreateAddonVersionRes return response, nil } -// ParseDownloadAddonAssetResponse parses an HTTP response from a DownloadAddonAssetWithResponse call -func ParseDownloadAddonAssetResponse(rsp *http.Response) (*DownloadAddonAssetResponse, 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 := &DownloadAddonAssetResponse{ + response := &UpdatePluginVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonAsset + 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 == 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 == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -14356,12 +17707,66 @@ func ParseDownloadAddonAssetResponse(rsp *http.Response) (*DownloadAddonAssetRes } 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 == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// 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 := &CreatePluginVersionResponse{ + 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 == 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 { return nil, err } - response.JSON429 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -14375,26 +17780,26 @@ func ParseDownloadAddonAssetResponse(rsp *http.Response) (*DownloadAddonAssetRes return response, nil } -// ParseUploadAddonAssetResponse parses an HTTP response from a UploadAddonAssetWithResponse call -func ParseUploadAddonAssetResponse(rsp *http.Response) (*UploadAddonAssetResponse, 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 := &UploadAddonAssetResponse{ + response := &DownloadPluginAssetResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ReleaseURL + 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.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -14403,12 +17808,19 @@ func ParseUploadAddonAssetResponse(rsp *http.Response) (*UploadAddonAssetRespons } 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 == 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 @@ -14422,42 +17834,26 @@ func ParseUploadAddonAssetResponse(rsp *http.Response) (*UploadAddonAssetRespons 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, - } - - return response, nil -} - -// ParseListPluginNotificationRequestsResponse parses an HTTP response from a ListPluginNotificationRequestsWithResponse call -func ParseListPluginNotificationRequestsResponse(rsp *http.Response) (*ListPluginNotificationRequestsResponse, 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 := &ListPluginNotificationRequestsResponse{ + response := &UploadPluginAssetResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginNotificationRequests200Response + 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.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -14466,6 +17862,13 @@ func ParseListPluginNotificationRequestsResponse(rsp *http.Response) (*ListPlugi } 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 { @@ -14478,27 +17881,20 @@ func ParseListPluginNotificationRequestsResponse(rsp *http.Response) (*ListPlugi return response, nil } -// ParseCreatePluginNotificationRequestResponse parses an HTTP response from a CreatePluginNotificationRequestWithResponse call -func ParseCreatePluginNotificationRequestResponse(rsp *http.Response) (*CreatePluginNotificationRequestResponse, 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 := &CreatePluginNotificationRequestResponse{ + response := &DeletePluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: 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 { @@ -14546,20 +17942,27 @@ func ParseCreatePluginNotificationRequestResponse(rsp *http.Response) (*CreatePl return response, nil } -// ParseDeletePluginNotificationRequestResponse parses an HTTP response from a DeletePluginNotificationRequestWithResponse call -func ParseDeletePluginNotificationRequestResponse(rsp *http.Response) (*DeletePluginNotificationRequestResponse, 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 := &DeletePluginNotificationRequestResponse{ + response := &ListPluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: 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 { @@ -14586,26 +17989,33 @@ func ParseDeletePluginNotificationRequestResponse(rsp *http.Response) (*DeletePl return response, nil } -// ParseGetPluginNotificationRequestResponse parses an HTTP response from a GetPluginNotificationRequestWithResponse call -func ParseGetPluginNotificationRequestResponse(rsp *http.Response) (*GetPluginNotificationRequestResponse, 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 := &GetPluginNotificationRequestResponse{ + response := &ReplacePluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginNotificationRequests200Response + 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 + 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 @@ -14614,6 +18024,13 @@ func ParseGetPluginNotificationRequestResponse(rsp *http.Response) (*GetPluginNo } 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 { @@ -14621,6 +18038,13 @@ func ParseGetPluginNotificationRequestResponse(rsp *http.Response) (*GetPluginNo } 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 { @@ -14633,26 +18057,33 @@ func ParseGetPluginNotificationRequestResponse(rsp *http.Response) (*GetPluginNo return response, nil } -// ParseListPluginsResponse parses an HTTP response from a ListPluginsWithResponse call -func ParseListPluginsResponse(rsp *http.Response) (*ListPluginsResponse, 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 := &ListPluginsResponse{ + response := &CreatePluginVersionDocsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPlugins200Response + 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 + 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 @@ -14661,6 +18092,27 @@ func ParseListPluginsResponse(rsp *http.Response) (*ListPluginsResponse, 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 { + 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 { @@ -14673,33 +18125,33 @@ func ParseListPluginsResponse(rsp *http.Response) (*ListPluginsResponse, error) return response, nil } -// ParseCreatePluginResponse parses an HTTP response from a CreatePluginWithResponse call -func ParseCreatePluginResponse(rsp *http.Response) (*CreatePluginResponse, 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 := &CreatePluginResponse{ + response := &DeletePluginVersionTablesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Plugin + 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.JSON201 = &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 @@ -14708,6 +18160,13 @@ func ParseCreatePluginResponse(rsp *http.Response) (*CreatePluginResponse, error } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -14727,26 +18186,26 @@ func ParseCreatePluginResponse(rsp *http.Response) (*CreatePluginResponse, error return response, nil } -// ParseDeletePluginByTeamAndPluginNameResponse parses an HTTP response from a DeletePluginByTeamAndPluginNameWithResponse call -func ParseDeletePluginByTeamAndPluginNameResponse(rsp *http.Response) (*DeletePluginByTeamAndPluginNameResponse, 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 := &DeletePluginByTeamAndPluginNameResponse{ + response := &ListPluginVersionTablesResponse{ 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 ListPluginVersionTables200Response 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 @@ -14755,13 +18214,6 @@ func ParseDeletePluginByTeamAndPluginNameResponse(rsp *http.Response) (*DeletePl } 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 { @@ -14781,26 +18233,33 @@ func ParseDeletePluginByTeamAndPluginNameResponse(rsp *http.Response) (*DeletePl return response, nil } -// ParseGetPluginResponse parses an HTTP response from a GetPluginWithResponse call -func ParseGetPluginResponse(rsp *http.Response) (*GetPluginResponse, 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 := &GetPluginResponse{ + response := &CreatePluginVersionTablesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPlugin + 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.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 @@ -14809,6 +18268,13 @@ func ParseGetPluginResponse(rsp *http.Response) (*GetPluginResponse, 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 { @@ -14816,6 +18282,13 @@ func ParseGetPluginResponse(rsp *http.Response) (*GetPluginResponse, 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 { @@ -14828,40 +18301,33 @@ func ParseGetPluginResponse(rsp *http.Response) (*GetPluginResponse, error) { return response, nil } -// ParseUpdatePluginResponse parses an HTTP response from a UpdatePluginWithResponse call -func ParseUpdatePluginResponse(rsp *http.Response) (*UpdatePluginResponse, 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 := &UpdatePluginResponse{ + response := &GetPluginVersionTableResponse{ Body: bodyBytes, HTTPResponse: 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 + 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.JSON400 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -14870,13 +18336,6 @@ func ParseUpdatePluginResponse(rsp *http.Response) (*UpdatePluginResponse, 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 { @@ -14889,20 +18348,34 @@ func ParseUpdatePluginResponse(rsp *http.Response) (*UpdatePluginResponse, error return response, nil } -// ParseDeletePluginUpcomingPriceChangesResponse parses an HTTP response from a DeletePluginUpcomingPriceChangesWithResponse call -func ParseDeletePluginUpcomingPriceChangesResponse(rsp *http.Response) (*DeletePluginUpcomingPriceChangesResponse, 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 := &DeletePluginUpcomingPriceChangesResponse{ + 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 { + 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 { @@ -14917,13 +18390,6 @@ func ParseDeletePluginUpcomingPriceChangesResponse(rsp *http.Response) (*DeleteP } 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 { @@ -14936,26 +18402,26 @@ func ParseDeletePluginUpcomingPriceChangesResponse(rsp *http.Response) (*DeleteP return response, nil } -// ParseListPluginUpcomingPriceChangesResponse parses an HTTP response from a ListPluginUpcomingPriceChangesWithResponse call -func ParseListPluginUpcomingPriceChangesResponse(rsp *http.Response) (*ListPluginUpcomingPriceChangesResponse, 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 := &ListPluginUpcomingPriceChangesResponse{ + response := &FinalizePluginUIAssetUploadResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginUpcomingPriceChanges200Response + 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 @@ -14971,12 +18437,12 @@ func ParseListPluginUpcomingPriceChangesResponse(rsp *http.Response) (*ListPlugi } 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 @@ -14990,57 +18456,57 @@ func ParseListPluginUpcomingPriceChangesResponse(rsp *http.Response) (*ListPlugi return response, nil } -// ParseCreatePluginUpcomingPriceChangeResponse parses an HTTP response from a CreatePluginUpcomingPriceChangeWithResponse call -func ParseCreatePluginUpcomingPriceChangeResponse(rsp *http.Response) (*CreatePluginUpcomingPriceChangeResponse, 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 := &CreatePluginUpcomingPriceChangeResponse{ + response := &AuthRegistryRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest PluginPrice + 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.JSON201 = &dest + 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 DockerError 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 == 401: + var dest DockerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + 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 UnprocessableEntity + 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 InternalError + var dest DockerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15051,22 +18517,22 @@ func ParseCreatePluginUpcomingPriceChangeResponse(rsp *http.Response) (*CreatePl return response, nil } -// ParseListPluginVersionsResponse parses an HTTP response from a ListPluginVersionsWithResponse call -func ParseListPluginVersionsResponse(rsp *http.Response) (*ListPluginVersionsResponse, 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 := &ListPluginVersionsResponse{ + response := &ListTeamsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginVersions200Response + var dest ListTeams200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15105,26 +18571,33 @@ func ParseListPluginVersionsResponse(rsp *http.Response) (*ListPluginVersionsRes return response, nil } -// ParseGetPluginVersionResponse parses an HTTP response from a GetPluginVersionWithResponse call -func ParseGetPluginVersionResponse(rsp *http.Response) (*GetPluginVersionResponse, 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 := &GetPluginVersionResponse{ + response := &CreateTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginVersionDetails + 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 @@ -15140,12 +18613,12 @@ func ParseGetPluginVersionResponse(rsp *http.Response) (*GetPluginVersionRespons } 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 @@ -15159,27 +18632,20 @@ func ParseGetPluginVersionResponse(rsp *http.Response) (*GetPluginVersionRespons return response, nil } -// ParseUpdatePluginVersionResponse parses an HTTP response from a UpdatePluginVersionWithResponse call -func ParseUpdatePluginVersionResponse(rsp *http.Response) (*UpdatePluginVersionResponse, 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 := &UpdatePluginVersionResponse{ + response := &DeleteTeamResponse{ 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 { @@ -15194,6 +18660,13 @@ func ParseUpdatePluginVersionResponse(rsp *http.Response) (*UpdatePluginVersionR } 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 { @@ -15201,6 +18674,13 @@ func ParseUpdatePluginVersionResponse(rsp *http.Response) (*UpdatePluginVersionR } 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 { @@ -15213,34 +18693,27 @@ func ParseUpdatePluginVersionResponse(rsp *http.Response) (*UpdatePluginVersionR return response, nil } -// ParseCreatePluginVersionResponse parses an HTTP response from a CreatePluginVersionWithResponse call -func ParseCreatePluginVersionResponse(rsp *http.Response) (*CreatePluginVersionResponse, 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 := &CreatePluginVersionResponse{ + response := &GetTeamByNameResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginVersion + 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 == 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 { @@ -15262,6 +18735,13 @@ func ParseCreatePluginVersionResponse(rsp *http.Response) (*CreatePluginVersionR } 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 { @@ -15274,27 +18754,34 @@ func ParseCreatePluginVersionResponse(rsp *http.Response) (*CreatePluginVersionR return response, nil } -// ParseDownloadPluginAssetResponse parses an HTTP response from a DownloadPluginAssetWithResponse call -func ParseDownloadPluginAssetResponse(rsp *http.Response) (*DownloadPluginAssetResponse, 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 := &DownloadPluginAssetResponse{ + response := &UpdateTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginAsset + 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 { @@ -15302,19 +18789,19 @@ func ParseDownloadPluginAssetResponse(rsp *http.Response) (*DownloadPluginAssetR } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -15328,26 +18815,26 @@ func ParseDownloadPluginAssetResponse(rsp *http.Response) (*DownloadPluginAssetR return response, nil } -// ParseUploadPluginAssetResponse parses an HTTP response from a UploadPluginAssetWithResponse call -func ParseUploadPluginAssetResponse(rsp *http.Response) (*UploadPluginAssetResponse, 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 := &UploadPluginAssetResponse{ + response := &ListAddonOrdersByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ReleaseURL + 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 @@ -15363,6 +18850,13 @@ func ParseUploadPluginAssetResponse(rsp *http.Response) (*UploadPluginAssetRespo } 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 { @@ -15375,20 +18869,27 @@ func ParseUploadPluginAssetResponse(rsp *http.Response) (*UploadPluginAssetRespo return response, nil } -// ParseDeletePluginVersionDocsResponse parses an HTTP response from a DeletePluginVersionDocsWithResponse call -func ParseDeletePluginVersionDocsResponse(rsp *http.Response) (*DeletePluginVersionDocsResponse, 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 := &DeletePluginVersionDocsResponse{ + response := &CreateAddonOrderForTeamResponse{ 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 if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -15403,13 +18904,6 @@ func ParseDeletePluginVersionDocsResponse(rsp *http.Response) (*DeletePluginVers } 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 { @@ -15417,13 +18911,6 @@ func ParseDeletePluginVersionDocsResponse(rsp *http.Response) (*DeletePluginVers } 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 { @@ -15436,22 +18923,22 @@ func ParseDeletePluginVersionDocsResponse(rsp *http.Response) (*DeletePluginVers return response, nil } -// ParseListPluginVersionDocsResponse parses an HTTP response from a ListPluginVersionDocsWithResponse call -func ParseListPluginVersionDocsResponse(rsp *http.Response) (*ListPluginVersionDocsResponse, 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 := &ListPluginVersionDocsResponse{ + response := &GetAddonOrderByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginVersionDocs200Response + var dest AddonOrder if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15462,7 +18949,14 @@ func ParseListPluginVersionDocsResponse(rsp *http.Response) (*ListPluginVersionD if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -15483,27 +18977,20 @@ func ParseListPluginVersionDocsResponse(rsp *http.Response) (*ListPluginVersionD return response, nil } -// ParseReplacePluginVersionDocsResponse parses an HTTP response from a ReplacePluginVersionDocsWithResponse call -func ParseReplacePluginVersionDocsResponse(rsp *http.Response) (*ReplacePluginVersionDocsResponse, 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 := &ReplacePluginVersionDocsResponse{ + response := &DeleteAddonsByTeamResponse{ Body: bodyBytes, HTTPResponse: 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 { @@ -15532,13 +19019,6 @@ func ParseReplacePluginVersionDocsResponse(rsp *http.Response) (*ReplacePluginVe } 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 { @@ -15551,33 +19031,26 @@ func ParseReplacePluginVersionDocsResponse(rsp *http.Response) (*ReplacePluginVe return response, nil } -// ParseCreatePluginVersionDocsResponse parses an HTTP response from a CreatePluginVersionDocsWithResponse call -func ParseCreatePluginVersionDocsResponse(rsp *http.Response) (*CreatePluginVersionDocsResponse, 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 := &CreatePluginVersionDocsResponse{ + response := &ListAddonsByTeamResponse{ Body: bodyBytes, HTTPResponse: 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 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ListAddonsByTeam200Response 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 @@ -15600,13 +19073,6 @@ func ParseCreatePluginVersionDocsResponse(rsp *http.Response) (*CreatePluginVers } 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 { @@ -15619,26 +19085,26 @@ func ParseCreatePluginVersionDocsResponse(rsp *http.Response) (*CreatePluginVers return response, nil } -// ParseDeletePluginVersionTablesResponse parses an HTTP response from a DeletePluginVersionTablesWithResponse call -func ParseDeletePluginVersionTablesResponse(rsp *http.Response) (*DeletePluginVersionTablesResponse, error) { +// 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 := &DeletePluginVersionTablesResponse{ + response := &DownloadAddonAssetByTeamResponse{ 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 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 @@ -15661,12 +19127,12 @@ func ParseDeletePluginVersionTablesResponse(rsp *http.Response) (*DeletePluginVe } 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 @@ -15680,22 +19146,22 @@ func ParseDeletePluginVersionTablesResponse(rsp *http.Response) (*DeletePluginVe return response, nil } -// ParseListPluginVersionTablesResponse parses an HTTP response from a ListPluginVersionTablesWithResponse call -func ParseListPluginVersionTablesResponse(rsp *http.Response) (*ListPluginVersionTablesResponse, error) { +// 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 := &ListPluginVersionTablesResponse{ + response := &ListTeamAPIKeysResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginVersionTables200Response + var dest ListTeamAPIKeys200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15727,22 +19193,22 @@ func ParseListPluginVersionTablesResponse(rsp *http.Response) (*ListPluginVersio return response, nil } -// ParseCreatePluginVersionTablesResponse parses an HTTP response from a CreatePluginVersionTablesWithResponse call -func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVersionTablesResponse, error) { +// 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 := &CreatePluginVersionTablesResponse{ + response := &CreateTeamAPIKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest CreatePluginVersionTables201Response + var dest APIKey if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15762,20 +19228,6 @@ func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVe } 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 { @@ -15795,26 +19247,26 @@ func ParseCreatePluginVersionTablesResponse(rsp *http.Response) (*CreatePluginVe return response, nil } -// ParseGetPluginVersionTableResponse parses an HTTP response from a GetPluginVersionTableWithResponse call -func ParseGetPluginVersionTableResponse(rsp *http.Response) (*GetPluginVersionTableResponse, error) { +// 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 := &GetPluginVersionTableResponse{ + response := &DeleteTeamAPIKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginTableDetails + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -15842,57 +19294,104 @@ func ParseGetPluginVersionTableResponse(rsp *http.Response) (*GetPluginVersionTa return response, nil } -// ParseAuthRegistryRequestResponse parses an HTTP response from a AuthRegistryRequestWithResponse call -func ParseAuthRegistryRequestResponse(rsp *http.Response) (*AuthRegistryRequestResponse, error) { +// ParseListConnectorsResponse parses an HTTP response from a ListConnectorsWithResponse call +func ParseListConnectorsResponse(rsp *http.Response) (*ListConnectorsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &AuthRegistryRequestResponse{ + response := &ListConnectorsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RegistryAuthToken + var dest ListConnectors200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest DockerError + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest DockerError + 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 DockerError + 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 +} + +// ParseCreateConnectorResponse parses an HTTP response from a CreateConnectorWithResponse call +func ParseCreateConnectorResponse(rsp *http.Response) (*CreateConnectorResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateConnectorResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Connector + 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 == 422: - var dest DockerError + 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 DockerError + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15903,22 +19402,22 @@ func ParseAuthRegistryRequestResponse(rsp *http.Response) (*AuthRegistryRequestR return response, nil } -// ParseListTeamsResponse parses an HTTP response from a ListTeamsWithResponse call -func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error) { +// ParseGetConnectorResponse parses an HTTP response from a GetConnectorWithResponse call +func ParseGetConnectorResponse(rsp *http.Response) (*GetConnectorResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListTeamsResponse{ + response := &GetConnectorResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListTeams200Response + var dest Connector if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -15931,13 +19430,6 @@ func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, 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 { @@ -15957,26 +19449,26 @@ func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error) { return response, nil } -// ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call -func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error) { +// ParseUpdateConnectorResponse parses an HTTP response from a UpdateConnectorWithResponse call +func ParseUpdateConnectorResponse(rsp *http.Response) (*UpdateConnectorResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTeamResponse{ + response := &UpdateConnectorResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Team + 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.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -15992,19 +19484,12 @@ func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, 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 == 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 @@ -16018,27 +19503,20 @@ func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error) { return response, nil } -// ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call -func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { +// ParseRevokeConnectorResponse parses an HTTP response from a RevokeConnectorWithResponse call +func ParseRevokeConnectorResponse(rsp *http.Response) (*RevokeConnectorResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamResponse{ + response := &RevokeConnectorResponse{ 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 { @@ -16046,13 +19524,6 @@ func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, 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 { @@ -16079,27 +19550,20 @@ func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { return response, nil } -// ParseGetTeamByNameResponse parses an HTTP response from a GetTeamByNameWithResponse call -func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, error) { +// ParseAuthenticateConnectorFinishAWSResponse parses an HTTP response from a AuthenticateConnectorFinishAWSWithResponse call +func ParseAuthenticateConnectorFinishAWSResponse(rsp *http.Response) (*AuthenticateConnectorFinishAWSResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamByNameResponse{ + response := &AuthenticateConnectorFinishAWSResponse{ 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 { @@ -16128,6 +19592,13 @@ func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, 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 { @@ -16140,22 +19611,22 @@ func ParseGetTeamByNameResponse(rsp *http.Response) (*GetTeamByNameResponse, err return response, nil } -// ParseUpdateTeamResponse parses an HTTP response from a UpdateTeamWithResponse call -func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error) { +// ParseAuthenticateConnectorAWSResponse parses an HTTP response from a AuthenticateConnectorAWSWithResponse call +func ParseAuthenticateConnectorAWSResponse(rsp *http.Response) (*AuthenticateConnectorAWSResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateTeamResponse{ + response := &AuthenticateConnectorAWSResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Team + var dest ConnectorAuthResponseAWS if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -16175,19 +19646,19 @@ func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error) { } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -16201,26 +19672,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) { +// ParseAuthenticateConnectorFinishOAuthResponse parses an HTTP response from a AuthenticateConnectorFinishOAuthWithResponse call +func ParseAuthenticateConnectorFinishOAuthResponse(rsp *http.Response) (*AuthenticateConnectorFinishOAuthResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListAddonOrdersByTeamResponse{ + response := &AuthenticateConnectorFinishOAuthResponse{ 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 @@ -16243,6 +19714,13 @@ func ParseListAddonOrdersByTeamResponse(rsp *http.Response) (*ListAddonOrdersByT } 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 { @@ -16255,26 +19733,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) { +// ParseAuthenticateConnectorOAuthResponse parses an HTTP response from a AuthenticateConnectorOAuthWithResponse call +func ParseAuthenticateConnectorOAuthResponse(rsp *http.Response) (*AuthenticateConnectorOAuthResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateAddonOrderForTeamResponse{ + response := &AuthenticateConnectorOAuthResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AddonOrder + 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.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -16297,6 +19775,13 @@ func ParseCreateAddonOrderForTeamResponse(rsp *http.Response) (*CreateAddonOrder } 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 { @@ -16309,26 +19794,26 @@ 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) { +// 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 := &GetAddonOrderByTeamResponse{ + response := &CreateTeamImagesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonOrder + 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.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -16363,15 +19848,15 @@ 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) { +// 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 := &DeleteAddonsByTeamResponse{ + response := &DeleteTeamInvitationResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -16417,34 +19902,27 @@ 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) { +// 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 := &ListAddonsByTeamResponse{ + response := &ListTeamInvitationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAddonsByTeam200Response + var dest ListTeamInvitations200Response 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 { @@ -16452,13 +19930,6 @@ func ParseListAddonsByTeamResponse(rsp *http.Response) (*ListAddonsByTeamRespons } 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 { @@ -16471,54 +19942,54 @@ 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) { +// 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 := &DownloadAddonAssetByTeamResponse{ + response := &EmailTeamInvitationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AddonAsset + var dest Invitation 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 == 202: + var dest Invitation if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON202 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -16532,40 +20003,40 @@ func ParseDownloadAddonAssetByTeamResponse(rsp *http.Response) (*DownloadAddonAs return response, nil } -// ParseListTeamAPIKeysResponse parses an HTTP response from a ListTeamAPIKeysWithResponse call -func ParseListTeamAPIKeysResponse(rsp *http.Response) (*ListTeamAPIKeysResponse, 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 := &ListTeamAPIKeysResponse{ + response := &AcceptTeamInvitationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListTeamAPIKeys200Response + 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 == 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 @@ -16579,27 +20050,20 @@ 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) { +// 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 := &CreateTeamAPIKeyResponse{ + response := &CancelTeamInvitationResponse{ 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 { @@ -16614,12 +20078,19 @@ func ParseCreateTeamAPIKeyResponse(rsp *http.Response) (*CreateTeamAPIKeyRespons } 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 == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 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 @@ -16633,26 +20104,26 @@ 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) { +// 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 := &DeleteTeamAPIKeyResponse{ + response := &ListInvoicesByTeamResponse{ 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 ListInvoicesByTeam200Response 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 @@ -16661,6 +20132,13 @@ func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyRespons } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -16680,26 +20158,33 @@ func ParseDeleteTeamAPIKeyResponse(rsp *http.Response) (*DeleteTeamAPIKeyRespons return response, nil } -// ParseCreateTeamImagesResponse parses an HTTP response from a CreateTeamImagesWithResponse call -func ParseCreateTeamImagesResponse(rsp *http.Response) (*CreateTeamImagesResponse, 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 := &CreateTeamImagesResponse{ + response := &GetManagedDatabasesResponse{ 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 GetManagedDatabases200Response 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 + 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 @@ -16734,20 +20219,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) { +// 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 := &DeleteTeamInvitationResponse{ + response := &CreateManagedDatabaseResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + 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.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 { @@ -16776,45 +20268,19 @@ func ParseDeleteTeamInvitationResponse(rsp *http.Response) (*DeleteTeamInvitatio } 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 -} - -// 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 := &ListTeamInvitationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListTeamInvitations200Response + 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.JSON200 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -16828,47 +20294,33 @@ 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) { +// 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 := &EmailTeamInvitationResponse{ + response := &DeleteManagedDatabaseResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - 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.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 + 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 + 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 @@ -16889,40 +20341,40 @@ 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) { +// 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 := &AcceptTeamInvitationResponse{ + response := &GetManagedDatabaseResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest MembershipWithTeam + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ManagedDatabase 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 == 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 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -16936,15 +20388,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) { +// 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 := &CancelTeamInvitationResponse{ + response := &RemoveTeamMembershipResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -16990,27 +20442,34 @@ 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) { +// 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 := &ListInvoicesByTeamResponse{ + response := &GetTeamMembershipsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListInvoicesByTeam200Response + 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 { @@ -17044,27 +20503,20 @@ 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) { +// 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 := &GetManagedDatabasesResponse{ + response := &DeleteTeamMembershipResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - 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 { @@ -17105,27 +20557,20 @@ 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) { +// 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 := &CreateManagedDatabaseResponse{ + response := &DeletePluginsByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - 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.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 { @@ -17154,20 +20599,6 @@ func ParseCreateManagedDatabaseResponse(rsp *http.Response) (*CreateManagedDatab } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 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 { @@ -17180,20 +20611,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) { +// 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 := &DeleteManagedDatabaseResponse{ + response := &ListPluginsByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + 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 == 401: var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -17201,19 +20639,19 @@ func ParseDeleteManagedDatabaseResponse(rsp *http.Response) (*DeleteManagedDatab } 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 @@ -17227,22 +20665,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) { +// 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 := &GetManagedDatabaseResponse{ + response := &DownloadPluginAssetByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ManagedDatabase + var dest PluginAsset if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -17262,6 +20700,13 @@ func ParseGetManagedDatabaseResponse(rsp *http.Response) (*GetManagedDatabaseRes } 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 { @@ -17274,22 +20719,22 @@ func ParseGetManagedDatabaseResponse(rsp *http.Response) (*GetManagedDatabaseRes return response, nil } -// ParseGetTeamMembershipsResponse parses an HTTP response from a GetTeamMembershipsWithResponse call -func ParseGetTeamMembershipsResponse(rsp *http.Response) (*GetTeamMembershipsResponse, 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 := &GetTeamMembershipsResponse{ + response := &GetTeamSpendResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetTeamMemberships200Response + var dest SpendSummary if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -17335,26 +20780,73 @@ 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) { +// 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 := &DeleteTeamMembershipResponse{ + response := &DeleteSpendingLimitResponse{ 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 == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// 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 := &GetSpendingLimitResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SpendingLimit + 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 @@ -17389,26 +20881,26 @@ 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) { +// 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 := &DeletePluginsByTeamResponse{ + response := &CreateSpendingLimitResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest SpendingLimit 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 @@ -17431,6 +20923,13 @@ func ParseDeletePluginsByTeamResponse(rsp *http.Response) (*DeletePluginsByTeamR } 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 { @@ -17443,27 +20942,34 @@ 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) { +// 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 := &ListPluginsByTeamResponse{ + response := &UpdateSpendingLimitResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPluginsByTeam200Response + var dest SpendingLimit 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 { @@ -17497,22 +21003,22 @@ func ParseListPluginsByTeamResponse(rsp *http.Response) (*ListPluginsByTeamRespo return response, nil } -// ParseDownloadPluginAssetByTeamResponse parses an HTTP response from a DownloadPluginAssetByTeamWithResponse call -func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPluginAssetByTeamResponse, error) { +// 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 := &DownloadPluginAssetByTeamResponse{ + response := &ListSubscriptionOrdersByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PluginAsset + var dest ListSubscriptionOrdersByTeam200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -17525,19 +21031,19 @@ func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPlugin } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -17551,26 +21057,26 @@ func ParseDownloadPluginAssetByTeamResponse(rsp *http.Response) (*DownloadPlugin return response, nil } -// ParseGetTeamSpendResponse parses an HTTP response from a GetTeamSpendWithResponse call -func ParseGetTeamSpendResponse(rsp *http.Response) (*GetTeamSpendResponse, 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 := &GetTeamSpendResponse{ + response := &CreateSubscriptionOrderForTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SpendSummary + 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 @@ -17600,6 +21106,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 { @@ -17612,20 +21125,27 @@ 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) { +// 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 := &DeleteSpendingLimitResponse{ + response := &GetSubscriptionOrderByTeamResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + 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.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 { @@ -17659,22 +21179,22 @@ 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) { +// ParseListSyncDestinationsResponse parses an HTTP response from a ListSyncDestinationsWithResponse call +func ParseListSyncDestinationsResponse(rsp *http.Response) (*ListSyncDestinationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSpendingLimitResponse{ + response := &ListSyncDestinationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SpendingLimit + var dest ListSyncDestinations200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -17687,13 +21207,6 @@ func ParseGetSpendingLimitResponse(rsp *http.Response) (*GetSpendingLimitRespons } 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 { @@ -17713,40 +21226,40 @@ 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) { +// ParseCreateSyncDestinationResponse parses an HTTP response from a CreateSyncDestinationWithResponse call +func ParseCreateSyncDestinationResponse(rsp *http.Response) (*CreateSyncDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSpendingLimitResponse{ + response := &CreateSyncDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SpendingLimit + 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 == 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 == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -17774,26 +21287,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) { +// ParseTestSyncDestinationResponse parses an HTTP response from a TestSyncDestinationWithResponse call +func ParseTestSyncDestinationResponse(rsp *http.Response) (*TestSyncDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSpendingLimitResponse{ + response := &TestSyncDestinationResponse{ 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 SyncTestConnection 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 @@ -17809,19 +21322,26 @@ func ParseUpdateSpendingLimitResponse(rsp *http.Response) (*UpdateSpendingLimitR } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 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 @@ -17835,27 +21355,20 @@ 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) { +// ParseDeleteSyncDestinationResponse parses an HTTP response from a DeleteSyncDestinationWithResponse call +func ParseDeleteSyncDestinationResponse(rsp *http.Response) (*DeleteSyncDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSubscriptionOrdersByTeamResponse{ + response := &DeleteSyncDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - 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 == 401: var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -17863,19 +21376,19 @@ func ParseListSubscriptionOrdersByTeamResponse(rsp *http.Response) (*ListSubscri } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -17889,33 +21402,26 @@ 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) { +// ParseGetSyncDestinationResponse parses an HTTP response from a GetSyncDestinationWithResponse call +func ParseGetSyncDestinationResponse(rsp *http.Response) (*GetSyncDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSubscriptionOrderForTeamResponse{ + response := &GetSyncDestinationResponse{ 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 + 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.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -17924,13 +21430,6 @@ func ParseCreateSubscriptionOrderForTeamResponse(rsp *http.Response) (*CreateSub } 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 { @@ -17938,13 +21437,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 { @@ -17957,40 +21449,40 @@ 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) { +// ParseUpdateSyncDestinationResponse parses an HTTP response from a UpdateSyncDestinationWithResponse call +func ParseUpdateSyncDestinationResponse(rsp *http.Response) (*UpdateSyncDestinationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSubscriptionOrderByTeamResponse{ + response := &UpdateSyncDestinationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TeamSubscriptionOrder + 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 == 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 == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -17999,6 +21491,13 @@ func ParseGetSubscriptionOrderByTeamResponse(rsp *http.Response) (*GetSubscripti } 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 { @@ -18011,22 +21510,22 @@ func ParseGetSubscriptionOrderByTeamResponse(rsp *http.Response) (*GetSubscripti return response, nil } -// ParseListSyncDestinationsResponse parses an HTTP response from a ListSyncDestinationsWithResponse call -func ParseListSyncDestinationsResponse(rsp *http.Response) (*ListSyncDestinationsResponse, error) { +// ParseListSyncSourcesResponse parses an HTTP response from a ListSyncSourcesWithResponse call +func ParseListSyncSourcesResponse(rsp *http.Response) (*ListSyncSourcesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncDestinationsResponse{ + response := &ListSyncSourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncDestinations200Response + var dest ListSyncSources200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18058,22 +21557,22 @@ func ParseListSyncDestinationsResponse(rsp *http.Response) (*ListSyncDestination return response, nil } -// ParseCreateSyncDestinationResponse parses an HTTP response from a CreateSyncDestinationWithResponse call -func ParseCreateSyncDestinationResponse(rsp *http.Response) (*CreateSyncDestinationResponse, error) { +// ParseCreateSyncSourceResponse parses an HTTP response from a CreateSyncSourceWithResponse call +func ParseCreateSyncSourceResponse(rsp *http.Response) (*CreateSyncSourceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncDestinationResponse{ + response := &CreateSyncSourceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SyncDestination + var dest SyncSource if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18119,15 +21618,15 @@ func ParseCreateSyncDestinationResponse(rsp *http.Response) (*CreateSyncDestinat return response, nil } -// ParseTestSyncDestinationResponse parses an HTTP response from a TestSyncDestinationWithResponse call -func ParseTestSyncDestinationResponse(rsp *http.Response) (*TestSyncDestinationResponse, error) { +// ParseTestSyncSourceResponse parses an HTTP response from a TestSyncSourceWithResponse call +func ParseTestSyncSourceResponse(rsp *http.Response) (*TestSyncSourceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TestSyncDestinationResponse{ + response := &TestSyncSourceResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -18168,6 +21667,13 @@ func ParseTestSyncDestinationResponse(rsp *http.Response) (*TestSyncDestinationR } response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18180,15 +21686,15 @@ func ParseTestSyncDestinationResponse(rsp *http.Response) (*TestSyncDestinationR return response, nil } -// ParseDeleteSyncDestinationResponse parses an HTTP response from a DeleteSyncDestinationWithResponse call -func ParseDeleteSyncDestinationResponse(rsp *http.Response) (*DeleteSyncDestinationResponse, error) { +// ParseDeleteSyncSourceResponse parses an HTTP response from a DeleteSyncSourceWithResponse call +func ParseDeleteSyncSourceResponse(rsp *http.Response) (*DeleteSyncSourceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSyncDestinationResponse{ + response := &DeleteSyncSourceResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -18227,22 +21733,22 @@ 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) { +// 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 := &GetSyncDestinationResponse{ + response := &GetSyncSourceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestination + var dest SyncSource if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18274,22 +21780,22 @@ 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) { +// ParseUpdateSyncSourceResponse parses an HTTP response from a UpdateSyncSourceWithResponse call +func ParseUpdateSyncSourceResponse(rsp *http.Response) (*UpdateSyncSourceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncDestinationResponse{ + response := &UpdateSyncSourceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncDestination + var dest SyncSource if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18335,22 +21841,22 @@ func ParseUpdateSyncDestinationResponse(rsp *http.Response) (*UpdateSyncDestinat return response, nil } -// ParseListSyncSourcesResponse parses an HTTP response from a ListSyncSourcesWithResponse call -func ParseListSyncSourcesResponse(rsp *http.Response) (*ListSyncSourcesResponse, error) { +// ParseListSyncsResponse parses an HTTP response from a ListSyncsWithResponse call +func ParseListSyncsResponse(rsp *http.Response) (*ListSyncsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncSourcesResponse{ + response := &ListSyncsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncSources200Response + var dest ListSyncs200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18382,22 +21888,22 @@ func ParseListSyncSourcesResponse(rsp *http.Response) (*ListSyncSourcesResponse, return response, nil } -// ParseCreateSyncSourceResponse parses an HTTP response from a CreateSyncSourceWithResponse call -func ParseCreateSyncSourceResponse(rsp *http.Response) (*CreateSyncSourceResponse, error) { +// ParseCreateSyncResponse parses an HTTP response from a CreateSyncWithResponse call +func ParseCreateSyncResponse(rsp *http.Response) (*CreateSyncResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncSourceResponse{ + response := &CreateSyncResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SyncSource + var dest Sync if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18409,20 +21915,13 @@ func ParseCreateSyncSourceResponse(rsp *http.Response) (*CreateSyncSourceRespons 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 + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity @@ -18443,33 +21942,26 @@ func ParseCreateSyncSourceResponse(rsp *http.Response) (*CreateSyncSourceRespons return response, nil } -// ParseTestSyncSourceResponse parses an HTTP response from a TestSyncSourceWithResponse call -func ParseTestSyncSourceResponse(rsp *http.Response) (*TestSyncSourceResponse, error) { +// ParseGetSyncTestConnectionResponse parses an HTTP response from a GetSyncTestConnectionWithResponse call +func ParseGetSyncTestConnectionResponse(rsp *http.Response) (*GetSyncTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &TestSyncSourceResponse{ + response := &GetSyncTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest SyncTestConnection 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 + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest RequiresAuthentication @@ -18485,13 +21977,6 @@ func ParseTestSyncSourceResponse(rsp *http.Response) (*TestSyncSourceResponse, e } 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 { @@ -18504,26 +21989,40 @@ func ParseTestSyncSourceResponse(rsp *http.Response) (*TestSyncSourceResponse, e return response, nil } -// ParseDeleteSyncSourceResponse parses an HTTP response from a DeleteSyncSourceWithResponse call -func ParseDeleteSyncSourceResponse(rsp *http.Response) (*DeleteSyncSourceResponse, error) { +// ParseUpdateSyncTestConnectionResponse parses an HTTP response from a UpdateSyncTestConnectionWithResponse call +func ParseUpdateSyncTestConnectionResponse(rsp *http.Response) (*UpdateSyncTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSyncSourceResponse{ + response := &UpdateSyncTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest RequiresAuthentication + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SyncTestConnection 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 == 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 @@ -18551,27 +22050,34 @@ func ParseDeleteSyncSourceResponse(rsp *http.Response) (*DeleteSyncSourceRespons return response, nil } -// ParseGetSyncSourceResponse parses an HTTP response from a GetSyncSourceWithResponse call -func ParseGetSyncSourceResponse(rsp *http.Response) (*GetSyncSourceResponse, error) { +// ParseGetTestConnectionConnectorCredentialsResponse parses an HTTP response from a GetTestConnectionConnectorCredentialsWithResponse call +func ParseGetTestConnectionConnectorCredentialsResponse(rsp *http.Response) (*GetTestConnectionConnectorCredentialsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncSourceResponse{ + response := &GetTestConnectionConnectorCredentialsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncSource + 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 { + 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 { @@ -18586,6 +22092,13 @@ func ParseGetSyncSourceResponse(rsp *http.Response) (*GetSyncSourceResponse, 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 { @@ -18598,22 +22111,22 @@ 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) { +// ParseGetTestConnectionConnectorIdentityResponse parses an HTTP response from a GetTestConnectionConnectorIdentityWithResponse call +func ParseGetTestConnectionConnectorIdentityResponse(rsp *http.Response) (*GetTestConnectionConnectorIdentityResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncSourceResponse{ + response := &GetTestConnectionConnectorIdentityResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncSource + var dest GetSyncRunConnectorIdentity200Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18659,26 +22172,33 @@ func ParseUpdateSyncSourceResponse(rsp *http.Response) (*UpdateSyncSourceRespons return response, nil } -// ParseListSyncsResponse parses an HTTP response from a ListSyncsWithResponse call -func ParseListSyncsResponse(rsp *http.Response) (*ListSyncsResponse, error) { +// ParseCreateSyncDestinationFromTestConnectionResponse parses an HTTP response from a CreateSyncDestinationFromTestConnectionWithResponse call +func ParseCreateSyncDestinationFromTestConnectionResponse(rsp *http.Response) (*CreateSyncDestinationFromTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSyncsResponse{ + response := &CreateSyncDestinationFromTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSyncs200Response + 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.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 @@ -18694,6 +22214,13 @@ func ParseListSyncsResponse(rsp *http.Response) (*ListSyncsResponse, 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 { @@ -18706,22 +22233,22 @@ 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) { +// ParseCreateSyncSourceFromTestConnectionResponse parses an HTTP response from a CreateSyncSourceFromTestConnectionWithResponse call +func ParseCreateSyncSourceFromTestConnectionResponse(rsp *http.Response) (*CreateSyncSourceFromTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSyncResponse{ + response := &CreateSyncSourceFromTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Sync + var dest SyncSource if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18741,6 +22268,13 @@ func ParseCreateSyncResponse(rsp *http.Response) (*CreateSyncResponse, error) { } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18760,27 +22294,34 @@ func ParseCreateSyncResponse(rsp *http.Response) (*CreateSyncResponse, error) { return response, nil } -// ParseGetSyncTestConnectionResponse parses an HTTP response from a GetSyncTestConnectionWithResponse call -func ParseGetSyncTestConnectionResponse(rsp *http.Response) (*GetSyncTestConnectionResponse, error) { +// ParseUpdateSyncDestinationFromTestConnectionResponse parses an HTTP response from a UpdateSyncDestinationFromTestConnectionWithResponse call +func ParseUpdateSyncDestinationFromTestConnectionResponse(rsp *http.Response) (*UpdateSyncDestinationFromTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSyncTestConnectionResponse{ + response := &UpdateSyncDestinationFromTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncTestConnection + 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 + 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 { @@ -18795,6 +22336,13 @@ func ParseGetSyncTestConnectionResponse(rsp *http.Response) (*GetSyncTestConnect } 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 { @@ -18807,22 +22355,22 @@ func ParseGetSyncTestConnectionResponse(rsp *http.Response) (*GetSyncTestConnect return response, nil } -// ParseUpdateSyncTestConnectionResponse parses an HTTP response from a UpdateSyncTestConnectionWithResponse call -func ParseUpdateSyncTestConnectionResponse(rsp *http.Response) (*UpdateSyncTestConnectionResponse, error) { +// ParseUpdateSyncSourceFromTestConnectionResponse parses an HTTP response from a UpdateSyncSourceFromTestConnectionWithResponse call +func ParseUpdateSyncSourceFromTestConnectionResponse(rsp *http.Response) (*UpdateSyncSourceFromTestConnectionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSyncTestConnectionResponse{ + response := &UpdateSyncSourceFromTestConnectionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SyncTestConnection + var dest SyncSource if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18835,12 +22383,12 @@ func ParseUpdateSyncTestConnectionResponse(rsp *http.Response) (*UpdateSyncTestC } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest NotFound @@ -19239,6 +22787,128 @@ 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) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSyncRunConnectorCredentialsResponse{ + 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 { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseGetSyncRunConnectorIdentityResponse parses an HTTP response from a GetSyncRunConnectorIdentityWithResponse call +func ParseGetSyncRunConnectorIdentityResponse(rsp *http.Response) (*GetSyncRunConnectorIdentityResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSyncRunConnectorIdentityResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetSyncRunConnectorIdentity200Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest RequiresAuthentication + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + // ParseGetSyncRunLogsResponse parses an HTTP response from a GetSyncRunLogsWithResponse call func ParseGetSyncRunLogsResponse(rsp *http.Response) (*GetSyncRunLogsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) diff --git a/client.go b/client.go index 50d8c5e..f4165f4 100644 --- a/client.go +++ b/client.go @@ -1,3 +1,3 @@ -//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.13.3 --config=./models.yaml ./spec.json -//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.13.3 --config=./client.yaml ./spec.json +//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.3.0 --config=./models.yaml ./spec.json +//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.3.0 --config=./client.yaml ./spec.json package cloudquery_api diff --git a/go.mod b/go.mod index f5118f9..f7512df 100644 --- a/go.mod +++ b/go.mod @@ -4,79 +4,19 @@ go 1.21.0 require ( github.com/adrg/xdg v0.4.0 - github.com/deepmap/oapi-codegen v1.15.0 github.com/hashicorp/go-retryablehttp v0.7.5 + github.com/oapi-codegen/runtime v1.1.1 github.com/stretchr/testify v1.8.4 ) require ( - github.com/BurntSushi/toml v1.3.2 // indirect - github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53 // indirect - github.com/CloudyKit/jet/v6 v6.2.0 // indirect - github.com/Joker/jade v1.1.3 // indirect - github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06 // indirect - github.com/andybalholm/brotli v1.0.5 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect - github.com/aymerick/douceur v0.2.0 // indirect - github.com/bytedance/sonic v1.9.1 // indirect - github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/fatih/structs v1.1.0 // indirect - github.com/flosch/pongo2/v4 v4.0.2 // indirect - github.com/gabriel-vasile/mimetype v1.4.2 // indirect - github.com/gin-contrib/sse v0.1.0 // indirect - github.com/gin-gonic/gin v1.9.1 // indirect - github.com/go-playground/locales v0.14.1 // indirect - github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.14.0 // indirect - github.com/goccy/go-json v0.10.2 // indirect - github.com/golang/snappy v0.0.4 // indirect - github.com/gomarkdown/markdown v0.0.0-20230716120725-531d2d74bc12 // indirect - github.com/google/uuid v1.3.1 // indirect - github.com/gorilla/css v1.0.0 // indirect + github.com/google/uuid v1.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/iris-contrib/schema v0.0.6 // indirect - github.com/josharian/intern v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/kataras/blocks v0.0.7 // indirect - github.com/kataras/golog v0.1.9 // indirect - github.com/kataras/iris/v12 v12.2.6-0.20230908161203-24ba4e8933b9 // indirect - github.com/kataras/pio v0.0.12 // indirect - github.com/kataras/sitemap v0.0.6 // indirect - github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.16.7 // indirect - github.com/klauspost/cpuid/v2 v2.2.4 // indirect - github.com/labstack/echo/v4 v4.11.1 // indirect - github.com/labstack/gommon v0.4.0 // indirect - github.com/leodido/go-urn v1.2.4 // indirect - github.com/mailgun/raymond/v2 v2.0.48 // indirect - github.com/mailru/easyjson v0.7.7 // indirect - github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect - github.com/microcosm-cc/bluemonday v1.0.25 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/russross/blackfriday/v2 v2.1.0 // indirect - github.com/schollz/closestmatch v2.1.0+incompatible // indirect - github.com/sirupsen/logrus v1.8.1 // indirect - github.com/tdewolff/minify/v2 v2.12.9 // indirect - github.com/tdewolff/parse/v2 v2.6.8 // indirect - github.com/twitchyliquid64/golang-asm v0.15.1 // indirect - github.com/ugorji/go/codec v1.2.11 // indirect - github.com/valyala/bytebufferpool v1.0.0 // indirect - github.com/valyala/fasttemplate v1.2.2 // indirect - github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect - github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/yosssi/ace v0.0.5 // indirect - golang.org/x/arch v0.3.0 // indirect - golang.org/x/crypto v0.13.0 // indirect - golang.org/x/net v0.15.0 // indirect - golang.org/x/sys v0.12.0 // indirect - golang.org/x/text v0.13.0 // indirect - golang.org/x/time v0.3.0 // indirect - google.golang.org/protobuf v1.31.0 // indirect - gopkg.in/ini.v1 v1.67.0 // indirect + golang.org/x/sys v0.15.0 // indirect + gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index def0426..c6d51f1 100644 --- a/go.sum +++ b/go.sum @@ -1,267 +1,43 @@ -github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= -github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53 h1:sR+/8Yb4slttB4vD+b9btVEnWgL3Q00OBTzVT8B9C0c= -github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno= -github.com/CloudyKit/jet/v6 v6.2.0 h1:EpcZ6SR9n28BUGtNJSvlBqf90IpjeFr36Tizxhn/oME= -github.com/CloudyKit/jet/v6 v6.2.0/go.mod h1:d3ypHeIRNo2+XyqnGA8s+aphtcVpjP5hPwP/Lzo7Ro4= -github.com/Joker/hpp v1.0.0 h1:65+iuJYdRXv/XyN62C1uEmmOx3432rNG/rKlX6V7Kkc= -github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= -github.com/Joker/jade v1.1.3 h1:Qbeh12Vq6BxURXT1qZBRHsDxeURB8ztcL6f3EXSGeHk= -github.com/Joker/jade v1.1.3/go.mod h1:T+2WLyt7VH6Lp0TRxQrUYEs64nRc83wkMQrfeIQKduM= github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk= -github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06 h1:KkH3I3sJuOLP3TjA/dfr4NAY8bghDwnXiU7cTKxQqo0= -github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06/go.mod h1:7erjKLwalezA0k99cWs5L11HWOAPNjdUZ6RxH1BXbbM= github.com/adrg/xdg v0.4.0 h1:RzRqFcjH4nE5C6oTAxhBtoE2IRyjBSa62SCbyPidvls= github.com/adrg/xdg v0.4.0/go.mod h1:N6ag73EX4wyxeaoeHctc1mas01KZgsj5tYiAIwqJE/E= -github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU= -github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= -github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= -github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= -github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= -github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= -github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= -github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s= -github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= -github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= -github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= -github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/deepmap/oapi-codegen v1.15.0 h1:SQqViaeb4k2vMul8gx12oDOIadEtoRqTdLkxjzqtQ90= -github.com/deepmap/oapi-codegen v1.15.0/go.mod h1:a6KoHV7lMRwsPoEg2C6NDHiXYV3EQfiFocOlJ8dgJQE= -github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= -github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= -github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= -github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= -github.com/flosch/pongo2/v4 v4.0.2 h1:gv+5Pe3vaSVmiJvh/BZa82b7/00YUGm0PIyVVLop0Hw= -github.com/flosch/pongo2/v4 v4.0.2/go.mod h1:B5ObFANs/36VwxxlgKpdchIJHMvHB562PW+BWPhwZD8= -github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= -github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= -github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= -github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= -github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= -github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= -github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= -github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= -github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= -github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= -github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= -github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= -github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= -github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/gomarkdown/markdown v0.0.0-20230716120725-531d2d74bc12 h1:uK3X/2mt4tbSGoHvbLBHUny7CKiuwUip3MArtukol4E= -github.com/gomarkdown/markdown v0.0.0-20230716120725-531d2d74bc12/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= -github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY= -github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M= github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= -github.com/imkira/go-interpol v1.1.0 h1:KIiKr0VSG2CUW1hl1jpiyuzuJeKUUpC8iM1AIE7N1Vk= -github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= -github.com/iris-contrib/httpexpect/v2 v2.15.2 h1:T9THsdP1woyAqKHwjkEsbCnMefsAFvk8iJJKokcJ3Go= -github.com/iris-contrib/httpexpect/v2 v2.15.2/go.mod h1:JLDgIqnFy5loDSUv1OA2j0mb6p/rDhiCqigP22Uq9xE= -github.com/iris-contrib/schema v0.0.6 h1:CPSBLyx2e91H2yJzPuhGuifVRnZBBJ3pCOMbOvPZaTw= -github.com/iris-contrib/schema v0.0.6/go.mod h1:iYszG0IOsuIsfzjymw1kMzTL8YQcCWlm65f3wX8J5iA= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= -github.com/kataras/blocks v0.0.7 h1:cF3RDY/vxnSRezc7vLFlQFTYXG/yAr1o7WImJuZbzC4= -github.com/kataras/blocks v0.0.7/go.mod h1:UJIU97CluDo0f+zEjbnbkeMRlvYORtmc1304EeyXf4I= -github.com/kataras/golog v0.1.9 h1:vLvSDpP7kihFGKFAvBSofYo7qZNULYSHOH2D7rPTKJk= -github.com/kataras/golog v0.1.9/go.mod h1:jlpk/bOaYCyqDqH18pgDHdaJab72yBE6i0O3s30hpWY= -github.com/kataras/iris/v12 v12.2.6-0.20230908161203-24ba4e8933b9 h1:Vx8kDVhO2qepK8w44lBtp+RzN3ld743i+LYPzODJSpQ= -github.com/kataras/iris/v12 v12.2.6-0.20230908161203-24ba4e8933b9/go.mod h1:ldkoR3iXABBeqlTibQ3MYaviA1oSlPvim6f55biwBh4= -github.com/kataras/pio v0.0.12 h1:o52SfVYauS3J5X08fNjlGS5arXHjW/ItLkyLcKjoH6w= -github.com/kataras/pio v0.0.12/go.mod h1:ODK/8XBhhQ5WqrAhKy+9lTPS7sBf6O3KcLhc9klfRcY= -github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY= -github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= -github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= -github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.16.7 h1:2mk3MPGNzKyxErAw8YaohYh69+pa4sIQSC0fPGCFR9I= -github.com/klauspost/compress v1.16.7/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= -github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk= -github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/labstack/echo/v4 v4.11.1 h1:dEpLU2FLg4UVmvCGPuk/APjlH6GDpbEPti61srUUUs4= -github.com/labstack/echo/v4 v4.11.1/go.mod h1:YuYRTSM3CHs2ybfrL8Px48bO6BAnYIN4l8wSTMP6BDQ= -github.com/labstack/gommon v0.4.0 h1:y7cvthEAEbU0yHOf4axH8ZG2NH8knB9iNSoTO8dyIk8= -github.com/labstack/gommon v0.4.0/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= -github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= -github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= -github.com/mailgun/raymond/v2 v2.0.48 h1:5dmlB680ZkFG2RN/0lvTAghrSxIESeu9/2aeDqACtjw= -github.com/mailgun/raymond/v2 v2.0.48/go.mod h1:lsgvL50kgt1ylcFJYZiULi5fjPBkkhNfj4KA0W54Z18= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/microcosm-cc/bluemonday v1.0.25 h1:4NEwSfiJ+Wva0VxN5B8OwMicaJvD8r9tlJWm9rtloEg= -github.com/microcosm-cc/bluemonday v1.0.25/go.mod h1:ZIOjCQp1OrzBBPIJmfX4qDYFuhU02nx4bn030ixfHLE= -github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= -github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= +github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sanity-io/litter v1.5.5 h1:iE+sBxPBzoK6uaEP5Lt3fHNgpKcHXc/A2HGETy0uJQo= -github.com/sanity-io/litter v1.5.5/go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U= -github.com/schollz/closestmatch v2.1.0+incompatible h1:Uel2GXEpJqOWBrlyI+oY9LTiyyjYS17cCYRqP13/SHk= -github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g= -github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.12.9 h1:dvn5MtmuQ/DFMwqf5j8QhEVpPX6fi3WGImhv8RUB4zA= -github.com/tdewolff/minify/v2 v2.12.9/go.mod h1:qOqdlDfL+7v0/fyymB+OP497nIxJYSvX4MQWA8OoiXU= -github.com/tdewolff/parse/v2 v2.6.8 h1:mhNZXYCx//xG7Yq2e/kVLNZw4YfYmeHbhx+Zc0OvFMA= -github.com/tdewolff/parse/v2 v2.6.8/go.mod h1:XHDhaU6IBgsryfdnpzUXBlT6leW/l25yrFBTEb4eIyM= -github.com/tdewolff/test v1.0.9 h1:SswqJCmeN4B+9gEAi/5uqT0qpi1y2/2O47V/1hhGZT0= -github.com/tdewolff/test v1.0.9/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= -github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= -github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= -github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= -github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= -github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= -github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= -github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= -github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 h1:6fRhSjgLCkTD3JnJxvaJ4Sj+TYblw757bqYgZaOq5ZY= -github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= -github.com/yosssi/ace v0.0.5 h1:tUkIP/BLdKqrlrPwcmH0shwEEhTRHoGnc1wFIWmaBUA= -github.com/yosssi/ace v0.0.5/go.mod h1:ALfIzm2vT7t5ZE7uoIZqF3TQ7SAOyupFZnkrF5id+K0= -github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA= -github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= -github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M= -github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= -golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= -golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= -golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b h1:QRR6H1YWRnHb4Y/HeNFCTJLFVxaq6wH4YuVdsUOr75U= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= -gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -moul.io/http2curl/v2 v2.3.0 h1:9r3JfDzWPcbIklMOs2TnIFzDYvfAZvjeavG6EzP7jYs= -moul.io/http2curl/v2 v2.3.0/go.mod h1:RW4hyBjTWSYDOxapodpNEtX0g5Eb16sxklBqmd2RHcE= -rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= diff --git a/models.gen.go b/models.gen.go index 5797270..8120949 100644 --- a/models.gen.go +++ b/models.gen.go @@ -1,6 +1,6 @@ // Package cloudquery_api provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/deepmap/oapi-codegen version v1.13.3 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT. package cloudquery_api import ( @@ -8,7 +8,7 @@ import ( "fmt" "time" - openapi_types "github.com/deepmap/oapi-codegen/pkg/types" + openapi_types "github.com/oapi-codegen/runtime/types" ) const ( @@ -54,6 +54,14 @@ const ( AddonTypeVisualization AddonType = "visualization" ) +// Defines values for ConnectorStatus. +const ( + ConnectorStatusAuthenticated ConnectorStatus = "authenticated" + ConnectorStatusCreated ConnectorStatus = "created" + ConnectorStatusFailed ConnectorStatus = "failed" + ConnectorStatusRevoked ConnectorStatus = "revoked" +) + // Defines values for EmailTeamInvitationRequestRole. const ( EmailTeamInvitationRequestRoleAdmin EmailTeamInvitationRequestRole = "admin" @@ -196,6 +204,12 @@ const ( TeamSubscriptionOrderStatusPending TeamSubscriptionOrderStatus = "pending" ) +// Defines values for UsageSummaryMetadataAggregationPeriod. +const ( + UsageSummaryMetadataAggregationPeriodDay UsageSummaryMetadataAggregationPeriod = "day" + UsageSummaryMetadataAggregationPeriodMonth UsageSummaryMetadataAggregationPeriod = "month" +) + // Defines values for AddonSortBy. const ( AddonSortByCreatedAt AddonSortBy = "created_at" @@ -281,7 +295,9 @@ const ( // APIKey API Key to interact with CloudQuery Cloud under specific team type APIKey struct { CreatedAt *time.Time `json:"created_at,omitempty"` - CreatedBy *Email `json:"created_by,omitempty"` + + // CreatedBy email of the user that created the API key + CreatedBy *string `json:"created_by,omitempty"` // Expired Whether the API key has expired or not Expired bool `json:"expired"` @@ -289,7 +305,7 @@ type APIKey struct { // ExpiresAt Timestamp at which API key will stop working ExpiresAt time.Time `json:"expires_at"` - // Id ID of the API key + // APIKeyID ID of the API key APIKeyID APIKeyID `json:"id"` // Key API key. Will be shown only in the response when creating the key. @@ -339,7 +355,7 @@ type Addon struct { // Official True if the addon is maintained by CloudQuery, false otherwise Official bool `json:"official"` - // PriceUsd The price for 6 months + // PriceUSD The price for 6 months PriceUSD string `json:"price_usd"` // Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team. @@ -386,7 +402,7 @@ type AddonCreate struct { // Name The unique name for the addon. Name AddonName `json:"name"` - // PriceUsd The price for 6 months + // PriceUSD The price for 6 months PriceUSD *string `json:"price_usd,omitempty"` // Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team. @@ -419,11 +435,11 @@ type AddonOrder struct { AddonType AddonType `json:"addon_type"` CompletedAt *time.Time `json:"completed_at,omitempty"` - // CompletionUrl Stripe URL for completing purchase. Only shown in response to POST request. + // CompletionURL Stripe URL for completing purchase. Only shown in response to POST request. CompletionURL *string `json:"completion_url,omitempty"` CreatedAt time.Time `json:"created_at"` - // Id ID of the addon order + // AddonOrderID ID of the addon order AddonOrderID AddonOrderID `json:"id"` Status AddonOrderStatus `json:"status"` @@ -476,7 +492,7 @@ type AddonUpdate struct { Homepage *string `json:"homepage,omitempty"` Logo *string `json:"logo,omitempty"` - // PriceUsd The price for 6 months in USD + // PriceUSD The price for 6 months in USD PriceUSD *string `json:"price_usd,omitempty"` // Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team. @@ -551,6 +567,152 @@ type BasicError struct { Status int `json:"status"` } +// 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 { + // AuthCode Auth code received from the OAuth provider + AuthCode interface{} `json:"auth_code"` + + // 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"` + Spec *map[string]interface{} `json:"spec,omitempty"` + + // State State value received from the OAuth provider + State *interface{} `json:"state,omitempty"` + AdditionalProperties map[string]interface{} `json:"-"` +} + +// ConnectorAuthRequestAWS AWS connector authentication request to start the authentication process +type ConnectorAuthRequestAWS struct { + // AccountIDs List of AWS account IDs to authenticate + AccountIDs *[]string `json:"account_ids,omitempty"` + + // PluginKind Kind of the plugin + PluginKind string `json:"plugin_kind"` + + // PluginName Name of the plugin + PluginName string `json:"plugin_name"` + + // PluginTeam Team that owns the plugin we are authenticating the connector for + PluginTeam string `json:"plugin_team"` +} + +// 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"` + + // 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"` + Spec *map[string]interface{} `json:"spec,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"` +} + +// 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 { + // AccountIDs List of AWS account IDs + AccountIDs []string `json:"account_ids"` + + // 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"` +} + // CreateAddonVersionRequest defines model for CreateAddonVersion_request. type CreateAddonVersionRequest struct { // AddonDeps addon dependencies in the format of ['team_name/type/addon_name@version'] @@ -650,12 +812,10 @@ type CreateTeamImagesRequest struct { // CreateTeamRequest defines model for CreateTeam_request. type CreateTeamRequest struct { - // DisplayName The team's display name DisplayName interface{} `json:"display_name"` // Name The unique name for the team. - Name TeamName `json:"name"` - AdditionalProperties map[string]interface{} `json:"-"` + Name TeamName `json:"name"` } // DeletePluginVersionDocsRequest defines model for DeletePluginVersionDocs_request. @@ -698,6 +858,12 @@ type FieldError struct { Status int `json:"status"` } +// FinalizePluginUIAssetUploadRequest defines model for FinalizePluginUIAssetUpload_request. +type FinalizePluginUIAssetUploadRequest struct { + // UIID ID representing the finished upload + UIID string `json:"ui_id"` +} + // GetCurrentUserMemberships200Response defines model for GetCurrentUserMemberships_200_response. type GetCurrentUserMemberships200Response struct { Items []MembershipWithTeam `json:"items"` @@ -710,6 +876,21 @@ 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"` @@ -752,7 +933,7 @@ type Invoice struct { CreatedAt time.Time `json:"created_at"` Currency string `json:"currency"` - // InvoicePdf The link to download the PDF for the invoice. + // InvoicePDF The link to download the PDF for the invoice. InvoicePDF string `json:"invoice_pdf"` // Paid Whether or not payment was successfully collected for this invoice. @@ -785,7 +966,7 @@ type ListAddon struct { // Official True if the addon is maintained by CloudQuery, false otherwise Official bool `json:"official"` - // PriceUsd The price for 6 months + // PriceUSD The price for 6 months PriceUSD string `json:"price_usd"` // Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team. @@ -825,6 +1006,12 @@ 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"` @@ -900,7 +1087,7 @@ type ListPlugin struct { Tier PluginTier `json:"tier"` UpdatedAt time.Time `json:"updated_at"` - // UsdPerRow Deprecated. Refer to `price_category` instead. + // USDPerRow Deprecated. Refer to `price_category` instead. // Deprecated: USDPerRow string `json:"usd_per_row"` } @@ -1018,7 +1205,7 @@ type ManagedDatabase struct { // Expiration Time the managed database should expire Expiration *time.Time `json:"expiration,omitempty"` - // Id The identifier for the managed database + // ManagedDatabaseID The identifier for the managed database ManagedDatabaseID ManagedDatabaseID `json:"id"` // Status The status of the managed database @@ -1104,7 +1291,7 @@ type Plugin struct { Tier PluginTier `json:"tier"` UpdatedAt time.Time `json:"updated_at"` - // UsdPerRow Deprecated. Refer to `price_category` instead. + // USDPerRow Deprecated. Refer to `price_category` instead. // Deprecated: USDPerRow string `json:"usd_per_row"` } @@ -1137,7 +1324,7 @@ type PluginCreate struct { // Kind The kind of plugin, ie. source or destination. Kind PluginKind `json:"kind"` - // Logo URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/... + // Logo URL to the plugin's logo. This will be shown in the CloudQuery Hub. Logo string `json:"logo"` // Name The unique name for the plugin. @@ -1171,7 +1358,7 @@ type PluginCreate struct { // Deprecated: Tier *PluginTier `json:"tier,omitempty"` - // UsdPerRow Deprecated. Use `price_category` instead. + // USDPerRow Deprecated. Use `price_category` instead. // Deprecated: USDPerRow *string `json:"usd_per_row,omitempty"` } @@ -1247,10 +1434,10 @@ type PluginPrice struct { // FreeRowsPerMonth The number of rows that can be synced for free each month. FreeRowsPerMonth int64 `json:"free_rows_per_month"` - // Id ID of the price change + // ID ID of the price change ID openapi_types.UUID `json:"id"` - // UsdPerRow The price per row in USD. This is used to calculate the price of a sync. + // USDPerRow The price per row in USD. This is used to calculate the price of a sync. USDPerRow string `json:"usd_per_row"` } @@ -1265,7 +1452,7 @@ type PluginPriceCreate struct { // FreeRowsPerMonth The number of rows that can be synced for free each month. FreeRowsPerMonth int64 `json:"free_rows_per_month"` - // UsdPerRow The price per row in USD. This is used to calculate the price of a sync. + // USDPerRow The price per row in USD. This is used to calculate the price of a sync. USDPerRow string `json:"usd_per_row"` } @@ -1405,6 +1592,24 @@ type PluginTableName = string // - open-core: This option is deprecated, values will either be free or paid. type PluginTier string +// PluginUIAsset CloudQuery Plugin UI Asset +type PluginUIAsset struct { + // Name The path and name of the asset + Name string `json:"name"` + + // UploadURL URL to upload the asset to + UploadURL string `json:"upload_url"` +} + +// PluginUIAssetUploadRequest CloudQuery Plugin UI Asset Upload Request +type PluginUIAssetUploadRequest struct { + // ContentType Content-type of the asset + ContentType *string `json:"content_type,omitempty"` + + // Name The path and name of the asset + Name string `json:"name"` +} + // PluginUpdate defines model for PluginUpdate. type PluginUpdate struct { // Category Supported categories for plugins @@ -1418,7 +1623,7 @@ type PluginUpdate struct { FreeRowsPerMonth *int64 `json:"free_rows_per_month,omitempty"` Homepage *string `json:"homepage,omitempty"` - // Logo URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/... + // Logo URL to the plugin's logo. This will be shown in the CloudQuery Hub. Logo *string `json:"logo,omitempty"` // PriceCategory Supported price categories for billing @@ -1446,7 +1651,7 @@ type PluginUpdate struct { // Deprecated: Tier *PluginTier `json:"tier,omitempty"` - // UsdPerRow Deprecated. Update `price_category` instead. + // USDPerRow Deprecated. Update `price_category` instead. // Deprecated: USDPerRow *string `json:"usd_per_row,omitempty"` } @@ -1456,6 +1661,12 @@ type PluginVersion struct { // Checksums The checksums of the plugin assets Checksums []string `json:"checksums"` + // ConnectorRequired Whether a connector is required for this plugin version + ConnectorRequired *bool `json:"connector_required,omitempty"` + + // ConnectorTypes List of connector types available for this plugin version + ConnectorTypes *[]string `json:"connector_types,omitempty"` + // CreatedAt The date and time the plugin version was created. CreatedAt time.Time `json:"created_at"` @@ -1525,6 +1736,12 @@ type PluginVersionDetails struct { // Checksums The checksums of the plugin assets Checksums []string `json:"checksums"` + // ConnectorRequired Whether a connector is required for this plugin version + ConnectorRequired *bool `json:"connector_required,omitempty"` + + // ConnectorTypes List of connector types available for this plugin version + ConnectorTypes *[]string `json:"connector_types,omitempty"` + // CreatedAt The date and time the plugin version was created. CreatedAt time.Time `json:"created_at"` @@ -1557,6 +1774,9 @@ type PluginVersionDetails struct { // SupportedTargets The targets supported by this plugin version, formatted as _ SupportedTargets []string `json:"supported_targets"` + + // UIBaseURL Base URL for the plugin's UI. Only available for plugins with a UI and for logged in users. + UIBaseURL *string `json:"ui_base_url,omitempty"` } // PluginVersionList CloudQuery Plugin Version @@ -1587,13 +1807,6 @@ type PluginVersionUpdate struct { SupportedTargets *[]string `json:"supported_targets,omitempty"` } -// PriceCategorySpend Spend by price category for a defined period. -type PriceCategorySpend struct { - // Category Supported price categories for billing - Category PluginPriceCategory `json:"category"` - Total string `json:"total"` -} - // RegistryAuthToken JWT token for the image registry type RegistryAuthToken struct { AccessToken string `json:"access_token"` @@ -1605,32 +1818,22 @@ type ReleaseURL struct { Url string `json:"url"` } +// RemoveTeamMembershipRequest defines model for RemoveTeamMembership_request. +type RemoveTeamMembershipRequest struct { + Email string `json:"email"` +} + // SpendSummary A spend summary for a team, summarizing the spend by each price category over a given time range. // Note that empty or all-zero values are not included in the response. type SpendSummary struct { // Metadata Additional metadata about the spend summary. This may include information about the time range, the aggregation period, or other details. - Metadata SpendSummaryMetadata `json:"metadata"` - Values interface{} `json:"values"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// SpendSummaryValue A spend summary value. -type SpendSummaryValue struct { - ByCategory []PriceCategorySpend `json:"by_category"` - - // Date The timestamp for the spend summary. - Date time.Time `json:"date"` - - // Total Total spend for the period in USD. - Total string `json:"total"` + Metadata SpendSummaryMetadata `json:"metadata"` + Values interface{} `json:"values"` } // SpendSummaryMetadata Additional metadata about the spend summary. This may include information about the time range, the aggregation period, or other details. type SpendSummaryMetadata struct { - // End The exclusive end of the query time range. - End interface{} `json:"end"` - - // Start The inclusive start of the query time range. + End interface{} `json:"end"` Start interface{} `json:"start"` } @@ -1642,25 +1845,25 @@ type SpendingLimit struct { // UpdatedAt The date and time the team limit was last updated. UpdatedAt *time.Time `json:"updated_at,omitempty"` - // Usd The maximum USD amount the team is allowed to use within a calendar month. + // USD The maximum USD amount the team is allowed to use within a calendar month. USD *int `json:"usd,omitempty"` } // SpendingLimitCreate A configurable monthly limit for team usage. type SpendingLimitCreate struct { - // Usd The maximum USD amount the team is allowed to use within a calendar month. + // USD The maximum USD amount the team is allowed to use within a calendar month. USD int `json:"usd"` } // SpendingLimitUpdate A configurable spending limit for the team. type SpendingLimitUpdate struct { - // Usd The maximum USD amount the team is allowed to use within a calendar month. + // USD The maximum USD amount the team is allowed to use within a calendar month. USD int `json:"usd"` } // Sync Managed Sync definition type Sync struct { - // Cpu CPU quota for the sync + // CPU CPU quota for the sync CPU string `json:"cpu"` // CreatedAt Time when the sync was created @@ -1691,7 +1894,7 @@ type Sync struct { // SyncCreate Managed Sync definition type SyncCreate struct { - // Cpu CPU quota for the sync + // CPU CPU quota for the sync CPU *string `json:"cpu,omitempty"` Destinations []string `json:"destinations"` @@ -1713,6 +1916,9 @@ type SyncCreate struct { // SyncDestination defines model for SyncDestination. type SyncDestination struct { + // ConnectorID ID of the Connector + ConnectorID *ConnectorID `json:"connector_id,omitempty"` + // CreatedAt Time when the source was created CreatedAt time.Time `json:"created_at"` @@ -1744,6 +1950,9 @@ type SyncDestination struct { // SyncDestinationCreate Sync Destination Definition type SyncDestinationCreate 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"` @@ -1767,11 +1976,29 @@ type SyncDestinationCreate struct { WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` } +// SyncDestinationCreateFromTestConnection Sync Destination from Test Connection Definition +type SyncDestinationCreateFromTestConnection struct { + // 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"` + + // WriteMode Write mode for the destination + WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` +} + // SyncDestinationMigrateMode Migrate mode for the destination type SyncDestinationMigrateMode string -// SyncDestinationUpdate Sync Destination Definition +// SyncDestinationUpdate Sync Destination Update Definition type SyncDestinationUpdate 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"` @@ -1792,6 +2019,18 @@ type SyncDestinationUpdate struct { WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` } +// SyncDestinationUpdateFromTestConnection Sync Destination Update from Test Connection Definition +type SyncDestinationUpdateFromTestConnection struct { + // 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"` + + // WriteMode Write mode for the destination + WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` +} + // SyncDestinationWriteMode Write mode for the destination type SyncDestinationWriteMode string @@ -1807,7 +2046,7 @@ type SyncEnvCreate struct { Name string `json:"name"` // Value Value of the environment variable - Value string `json:"value"` + Value *string `json:"value,omitempty"` } // SyncLastUpdateSource How was the source or destination been created or updated last @@ -1827,7 +2066,7 @@ type SyncRun struct { // Errors Number of errors encountered during the sync Errors int64 `json:"errors"` - // Id unique ID of the run + // ID unique ID of the run ID openapi_types.UUID `json:"id"` // Status The status of the sync run @@ -1851,7 +2090,7 @@ 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 Total CPU seconds utilized during this sync run CPUSeconds *float64 `json:"cpu_seconds,omitempty"` // CreatedAt Time the sync run was created @@ -1860,7 +2099,7 @@ type SyncRunDetails struct { // Errors Number of errors encountered during the sync Errors int64 `json:"errors"` - // Id unique ID of the run + // ID unique ID of the run ID openapi_types.UUID `json:"id"` // MemoryByteSeconds Total memory byte seconds utilized during this sync run @@ -1896,6 +2135,9 @@ type SyncRunStatusReason string // SyncSource defines model for SyncSource. type SyncSource struct { + // ConnectorID ID of the Connector + ConnectorID *ConnectorID `json:"connector_id,omitempty"` + // CreatedAt Time when the source was created CreatedAt time.Time `json:"created_at"` @@ -1927,6 +2169,9 @@ type SyncSource struct { // SyncSourceCreate Sync Source Definition type SyncSourceCreate 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"` @@ -1950,8 +2195,26 @@ type SyncSourceCreate struct { Version string `json:"version"` } +// SyncSourceCreateFromTestConnection Sync Source from Test Connection Definition +type SyncSourceCreateFromTestConnection struct { + // 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"` + + // 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"` +} + // SyncSourceUpdate Sync Source Update Definition type SyncSourceUpdate 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"` @@ -1972,12 +2235,24 @@ type SyncSourceUpdate struct { Version *string `json:"version,omitempty"` } +// SyncSourceUpdateFromTestConnection Sync Source Update from Test Connection Definition +type SyncSourceUpdateFromTestConnection struct { + // 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 Cron schedule for the sync + // CompletedAt Time the test connection was completed CompletedAt *time.Time `json:"completed_at,omitempty"` - // CreatedAt Whether the sync is disabled + // CreatedAt Time the test connection was created CreatedAt time.Time `json:"created_at"` // FailureCode Code for failure @@ -1986,9 +2261,18 @@ type SyncTestConnection struct { // FailureReason Reason for failure FailureReason *string `json:"failure_reason,omitempty"` - // Id unique ID of the test connection + // 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"` } @@ -2001,7 +2285,7 @@ type SyncTestConnectionStatus string // SyncUpdate Managed Sync definition type SyncUpdate struct { - // Cpu CPU quota for the sync + // CPU CPU quota for the sync CPU *string `json:"cpu,omitempty"` Destinations *[]string `json:"destinations,omitempty"` @@ -2023,9 +2307,7 @@ type SyncUpdate struct { // 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:"-"` + Location interface{} `json:"location"` } // Team CloudQuery Team @@ -2039,7 +2321,7 @@ type Team struct { // Name The unique name for the team. Name TeamName `json:"name"` - // Plan The plan the team is on + // 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"` @@ -2053,10 +2335,10 @@ type TeamImage struct { // Name Name of image Name string `json:"name"` - // UploadUrl URL to upload image + // UploadURL URL to upload image UploadURL *string `json:"upload_url,omitempty"` - // Url URL to download image + // URL URL to download image URL string `json:"url"` } @@ -2072,21 +2354,21 @@ type TeamImageCreate struct { // TeamName The unique name for the team. type TeamName = string -// TeamPlan The plan the team is on +// 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 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"` - // Id ID of the team subscription order + // TeamSubscriptionOrderID ID of the team subscription order TeamSubscriptionOrderID TeamSubscriptionOrderID `json:"id"` - // Plan The plan the team is on + // Plan The plan the team is on (trial is deprecated) Plan TeamPlan `json:"plan"` Status TeamSubscriptionOrderStatus `json:"status"` @@ -2100,7 +2382,7 @@ type TeamSubscriptionOrderCreate struct { // CancelUrl URL to redirect to after order cancellation CancelUrl string `json:"cancel_url"` - // Plan The plan the team is on + // Plan The plan the team is on (trial is deprecated) Plan TeamPlan `json:"plan"` // SuccessUrl URL to redirect to after successful order completion @@ -2115,9 +2397,7 @@ type TeamSubscriptionOrderStatus string // UpdateCurrentUserRequest defines model for UpdateCurrentUser_request. type UpdateCurrentUserRequest struct { - // Name The user's name - Name *interface{} `json:"name,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` + Name *interface{} `json:"name,omitempty"` } // UpdateSyncRunRequest defines model for UpdateSyncRun_request. @@ -2143,9 +2423,20 @@ type UpdateSyncTestConnectionRequest struct { // UpdateTeamRequest defines model for UpdateTeam_request. type UpdateTeamRequest struct { - // DisplayName The team's display name - DisplayName *interface{} `json:"display_name,omitempty"` - AdditionalProperties map[string]interface{} `json:"-"` + DisplayName *interface{} `json:"display_name,omitempty"` +} + +// UploadPluginUIAssets201Response defines model for UploadPluginUIAssets_201_response. +type UploadPluginUIAssets201Response struct { + Assets []PluginUIAsset `json:"assets"` + + // UIID ID representing this upload + UIID string `json:"ui_id"` +} + +// UploadPluginUIAssetsRequest defines model for UploadPluginUIAssets_request. +type UploadPluginUIAssetsRequest struct { + Assets []PluginUIAssetUploadRequest `json:"assets"` } // UsageCurrent The usage of a plugin within the current calendar month. @@ -2163,14 +2454,14 @@ type UsageCurrent struct { // Deprecated: RemainingRows *int64 `json:"remaining_rows,omitempty"` - // RemainingUsd The remaining USD amount in the plugin's quota for the calendar month. + // RemainingUSD The remaining USD amount in the plugin's quota for the calendar month. // Deprecated: RemainingUSD *string `json:"remaining_usd,omitempty"` // Rows The number of rows used by the plugin in the calendar month. Rows int64 `json:"rows"` - // Usd The USD amount used by the plugin in the calendar month, rounded to two decimal places. + // USD The USD amount used by the plugin in the calendar month, rounded to two decimal places. // Deprecated: USD string `json:"usd"` } @@ -2206,63 +2497,31 @@ type UsageIncreaseTablesInner struct { // UsageSummary A usage summary for a team, summarizing the paid rows synced and/or cloud resource usage over a given time range. // Note that empty or all-zero values are not included in the response. type UsageSummary struct { - // Groups The groups of the usage summary. Every group will have a corresponding value at the same index in the values array. Groups interface{} `json:"groups"` // Metadata Additional metadata about the usage summary. This may include information about the time range, the aggregation period, or other details. - Metadata UsageSummaryMetadata `json:"metadata"` - Values interface{} `json:"values"` - AdditionalProperties map[string]interface{} `json:"-"` -} - -// UsageSummaryGroup A usage summary group. -type UsageSummaryGroup struct { - // Name The name of the group. - Name string `json:"name"` - - // Value The value of the group at this index. - Value string `json:"value"` -} - -// UsageSummaryValue A usage summary value. -type UsageSummaryValue struct { - // CloudEgressBytes Egress bytes consumed in this period, one per group. - CloudEgressBytes *[]int64 `json:"cloud_egress_bytes,omitempty"` - - // CloudVcpuSeconds vCPU/seconds consumed in this period, one per group. - CloudVcpuSeconds *[]int64 `json:"cloud_vcpu_seconds,omitempty"` - - // CloudVramByteSeconds vRAM/byte-seconds consumed in this period, one per group. - CloudVramByteSeconds *[]int64 `json:"cloud_vram_byte_seconds,omitempty"` - - // PaidRows The paid rows that were synced in this period, one per group. - PaidRows *[]int64 `json:"paid_rows,omitempty"` - - // Timestamp The timestamp marking the start of a period. - Timestamp time.Time `json:"timestamp"` + Metadata UsageSummaryMetadata `json:"metadata"` + Values interface{} `json:"values"` } // UsageSummaryMetadata Additional metadata about the usage summary. This may include information about the time range, the aggregation period, or other details. type UsageSummaryMetadata struct { // AggregationPeriod The aggregation period to sum data over. In other words, data will be returned at this granularity. - AggregationPeriod interface{} `json:"aggregation_period"` - - // End The exclusive end of the query time range. - End interface{} `json:"end"` - - // Metrics List of metrics included in the response. - Metrics interface{} `json:"metrics"` - - // Start The inclusive start of the query time range. - Start interface{} `json:"start"` + AggregationPeriod UsageSummaryMetadataAggregationPeriod `json:"aggregation_period"` + End interface{} `json:"end"` + Metrics interface{} `json:"metrics"` + Start interface{} `json:"start"` } +// UsageSummaryMetadataAggregationPeriod The aggregation period to sum data over. In other words, data will be returned at this granularity. +type UsageSummaryMetadataAggregationPeriod string + // User CloudQuery User type User struct { CreatedAt *time.Time `json:"created_at,omitempty"` - Email Email `json:"email"` + Email string `json:"email"` - // Id ID of the User + // ID ID of the User ID openapi_types.UUID `json:"id"` // Name The unique name for the user. @@ -2285,6 +2544,9 @@ type AddonSortBy string // AddonTeam The unique name for the team. type AddonTeam = TeamName +// EmailBasic defines model for email_basic. +type EmailBasic = string + // IncludeDrafts defines model for include_drafts. type IncludeDrafts = bool @@ -2525,6 +2787,21 @@ 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 @@ -2753,6 +3030,12 @@ type DeletePluginVersionTablesJSONRequestBody = DeletePluginVersionTablesRequest // CreatePluginVersionTablesJSONRequestBody defines body for CreatePluginVersionTables for application/json ContentType. type CreatePluginVersionTablesJSONRequestBody = CreatePluginVersionTablesRequest +// UploadPluginUIAssetsJSONRequestBody defines body for UploadPluginUIAssets for application/json ContentType. +type UploadPluginUIAssetsJSONRequestBody = UploadPluginUIAssetsRequest + +// FinalizePluginUIAssetUploadJSONRequestBody defines body for FinalizePluginUIAssetUpload for application/json ContentType. +type FinalizePluginUIAssetUploadJSONRequestBody = FinalizePluginUIAssetUploadRequest + // CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType. type CreateTeamJSONRequestBody = CreateTeamRequest @@ -2765,6 +3048,24 @@ type CreateAddonOrderForTeamJSONRequestBody = AddonOrderCreate // 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 + +// 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 @@ -2780,6 +3081,9 @@ type AcceptTeamInvitationJSONRequestBody = AcceptTeamInvitationRequest // CreateManagedDatabaseJSONRequestBody defines body for CreateManagedDatabase for application/json ContentType. type CreateManagedDatabaseJSONRequestBody = ManagedDatabaseCreate +// RemoveTeamMembershipJSONRequestBody defines body for RemoveTeamMembership for application/json ContentType. +type RemoveTeamMembershipJSONRequestBody = RemoveTeamMembershipRequest + // CreateSpendingLimitJSONRequestBody defines body for CreateSpendingLimit for application/json ContentType. type CreateSpendingLimitJSONRequestBody = SpendingLimitCreate @@ -2813,6 +3117,18 @@ type CreateSyncJSONRequestBody = SyncCreate // UpdateSyncTestConnectionJSONRequestBody defines body for UpdateSyncTestConnection for application/json ContentType. type UpdateSyncTestConnectionJSONRequestBody = UpdateSyncTestConnectionRequest +// CreateSyncDestinationFromTestConnectionJSONRequestBody defines body for CreateSyncDestinationFromTestConnection for application/json ContentType. +type CreateSyncDestinationFromTestConnectionJSONRequestBody = SyncDestinationCreateFromTestConnection + +// CreateSyncSourceFromTestConnectionJSONRequestBody defines body for CreateSyncSourceFromTestConnection for application/json ContentType. +type CreateSyncSourceFromTestConnectionJSONRequestBody = SyncSourceCreateFromTestConnection + +// UpdateSyncDestinationFromTestConnectionJSONRequestBody defines body for UpdateSyncDestinationFromTestConnection for application/json ContentType. +type UpdateSyncDestinationFromTestConnectionJSONRequestBody = SyncDestinationUpdateFromTestConnection + +// UpdateSyncSourceFromTestConnectionJSONRequestBody defines body for UpdateSyncSourceFromTestConnection for application/json ContentType. +type UpdateSyncSourceFromTestConnectionJSONRequestBody = SyncSourceUpdateFromTestConnection + // UpdateSyncJSONRequestBody defines body for UpdateSync for application/json ContentType. type UpdateSyncJSONRequestBody = SyncUpdate @@ -2828,124 +3144,69 @@ type IncreaseTeamPluginUsageJSONRequestBody = UsageIncrease // UpdateCurrentUserJSONRequestBody defines body for UpdateCurrentUser for application/json ContentType. type UpdateCurrentUserJSONRequestBody = UpdateCurrentUserRequest -// Getter for additional properties for CreateTeamRequest. Returns the specified +// Getter for additional properties for ConnectorAuthFinishRequestOAuth. Returns the specified // element and whether it was found -func (a CreateTeamRequest) Get(fieldName string) (value interface{}, found bool) { +func (a ConnectorAuthFinishRequestOAuth) Get(fieldName string) (value interface{}, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for CreateTeamRequest -func (a *CreateTeamRequest) Set(fieldName string, value interface{}) { +// Setter for additional properties for ConnectorAuthFinishRequestOAuth +func (a *ConnectorAuthFinishRequestOAuth) Set(fieldName string, value interface{}) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]interface{}) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for CreateTeamRequest to handle AdditionalProperties -func (a *CreateTeamRequest) UnmarshalJSON(b []byte) error { +// Override default JSON handling for ConnectorAuthFinishRequestOAuth to handle AdditionalProperties +func (a *ConnectorAuthFinishRequestOAuth) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { return err } - if raw, found := object["display_name"]; found { - err = json.Unmarshal(raw, &a.DisplayName) + if raw, found := object["auth_code"]; found { + err = json.Unmarshal(raw, &a.AuthCode) if err != nil { - return fmt.Errorf("error reading 'display_name': %w", err) + return fmt.Errorf("error reading 'auth_code': %w", err) } - delete(object, "display_name") + delete(object, "auth_code") } - if raw, found := object["name"]; found { - err = json.Unmarshal(raw, &a.Name) + if raw, found := object["base_url"]; found { + err = json.Unmarshal(raw, &a.BaseURL) if err != nil { - return fmt.Errorf("error reading 'name': %w", err) - } - delete(object, "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 fmt.Errorf("error reading 'base_url': %w", err) } - } - return nil -} - -// Override default JSON handling for CreateTeamRequest to handle AdditionalProperties -func (a CreateTeamRequest) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - object["display_name"], err = json.Marshal(a.DisplayName) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display_name': %w", err) - } - - object["name"], err = json.Marshal(a.Name) - if err != nil { - return nil, fmt.Errorf("error marshaling 'name': %w", err) + delete(object, "base_url") } - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) + if raw, found := object["env"]; found { + err = json.Unmarshal(raw, &a.Env) if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + return fmt.Errorf("error reading 'env': %w", err) } - } - return json.Marshal(object) -} - -// Getter for additional properties for SpendSummary. Returns the specified -// element and whether it was found -func (a SpendSummary) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for SpendSummary -func (a *SpendSummary) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for SpendSummary to handle AdditionalProperties -func (a *SpendSummary) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err + delete(object, "env") } - if raw, found := object["metadata"]; found { - err = json.Unmarshal(raw, &a.Metadata) + if raw, found := object["spec"]; found { + err = json.Unmarshal(raw, &a.Spec) if err != nil { - return fmt.Errorf("error reading 'metadata': %w", err) + return fmt.Errorf("error reading 'spec': %w", err) } - delete(object, "metadata") + delete(object, "spec") } - if raw, found := object["values"]; found { - err = json.Unmarshal(raw, &a.Values) + if raw, found := object["state"]; found { + err = json.Unmarshal(raw, &a.State) if err != nil { - return fmt.Errorf("error reading 'values': %w", err) + return fmt.Errorf("error reading 'state': %w", err) } - delete(object, "values") + delete(object, "state") } if len(object) != 0 { @@ -2962,86 +3223,41 @@ func (a *SpendSummary) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for SpendSummary to handle AdditionalProperties -func (a SpendSummary) MarshalJSON() ([]byte, error) { +// Override default JSON handling for ConnectorAuthFinishRequestOAuth to handle AdditionalProperties +func (a ConnectorAuthFinishRequestOAuth) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) - object["metadata"], err = json.Marshal(a.Metadata) + object["auth_code"], err = json.Marshal(a.AuthCode) if err != nil { - return nil, fmt.Errorf("error marshaling 'metadata': %w", err) + return nil, fmt.Errorf("error marshaling 'auth_code': %w", err) } - object["values"], err = json.Marshal(a.Values) + object["base_url"], err = json.Marshal(a.BaseURL) if err != nil { - return nil, fmt.Errorf("error marshaling 'values': %w", err) + return nil, fmt.Errorf("error marshaling 'base_url': %w", err) } - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) + if a.Env != nil { + object["env"], err = json.Marshal(a.Env) if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + return nil, fmt.Errorf("error marshaling 'env': %w", err) } } - 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 a.Spec != nil { + object["spec"], err = json.Marshal(a.Spec) if err != nil { - return fmt.Errorf("error reading 'location': %w", err) + return nil, fmt.Errorf("error marshaling 'spec': %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 + if a.State != nil { + object["state"], err = json.Marshal(a.State) + if err != nil { + return nil, fmt.Errorf("error marshaling 'state': %w", err) } } - 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) @@ -3052,105 +3268,77 @@ func (a SyncRunLogs) MarshalJSON() ([]byte, error) { return json.Marshal(object) } -// Getter for additional properties for UpdateCurrentUserRequest. Returns the specified +// Getter for additional properties for ConnectorAuthRequestOAuth. Returns the specified // element and whether it was found -func (a UpdateCurrentUserRequest) Get(fieldName string) (value interface{}, found bool) { +func (a ConnectorAuthRequestOAuth) Get(fieldName string) (value interface{}, found bool) { if a.AdditionalProperties != nil { value, found = a.AdditionalProperties[fieldName] } return } -// Setter for additional properties for UpdateCurrentUserRequest -func (a *UpdateCurrentUserRequest) Set(fieldName string, value interface{}) { +// Setter for additional properties for ConnectorAuthRequestOAuth +func (a *ConnectorAuthRequestOAuth) Set(fieldName string, value interface{}) { if a.AdditionalProperties == nil { a.AdditionalProperties = make(map[string]interface{}) } a.AdditionalProperties[fieldName] = value } -// Override default JSON handling for UpdateCurrentUserRequest to handle AdditionalProperties -func (a *UpdateCurrentUserRequest) UnmarshalJSON(b []byte) error { +// Override default JSON handling for ConnectorAuthRequestOAuth to handle AdditionalProperties +func (a *ConnectorAuthRequestOAuth) UnmarshalJSON(b []byte) error { object := make(map[string]json.RawMessage) err := json.Unmarshal(b, &object) if err != nil { return err } - if raw, found := object["name"]; found { - err = json.Unmarshal(raw, &a.Name) + if raw, found := object["base_url"]; found { + err = json.Unmarshal(raw, &a.BaseURL) if err != nil { - return fmt.Errorf("error reading 'name': %w", err) + return fmt.Errorf("error reading 'base_url': %w", err) } - delete(object, "name") + delete(object, "base_url") } - 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 + 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") } - return nil -} -// Override default JSON handling for UpdateCurrentUserRequest to handle AdditionalProperties -func (a UpdateCurrentUserRequest) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - if a.Name != nil { - object["name"], err = json.Marshal(a.Name) + if raw, found := object["plugin_kind"]; found { + err = json.Unmarshal(raw, &a.PluginKind) if err != nil { - return nil, fmt.Errorf("error marshaling 'name': %w", err) + return fmt.Errorf("error reading 'plugin_kind': %w", err) } + delete(object, "plugin_kind") } - for fieldName, field := range a.AdditionalProperties { - object[fieldName], err = json.Marshal(field) + if raw, found := object["plugin_name"]; found { + err = json.Unmarshal(raw, &a.PluginName) if err != nil { - return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err) + return fmt.Errorf("error reading 'plugin_name': %w", err) } + delete(object, "plugin_name") } - return json.Marshal(object) -} - -// Getter for additional properties for UpdateTeamRequest. Returns the specified -// element and whether it was found -func (a UpdateTeamRequest) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for UpdateTeamRequest -func (a *UpdateTeamRequest) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} -// Override default JSON handling for UpdateTeamRequest to handle AdditionalProperties -func (a *UpdateTeamRequest) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) - if err != nil { - return err + 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["display_name"]; found { - err = json.Unmarshal(raw, &a.DisplayName) + if raw, found := object["spec"]; found { + err = json.Unmarshal(raw, &a.Spec) if err != nil { - return fmt.Errorf("error reading 'display_name': %w", err) + return fmt.Errorf("error reading 'spec': %w", err) } - delete(object, "display_name") + delete(object, "spec") } if len(object) != 0 { @@ -3167,108 +3355,43 @@ func (a *UpdateTeamRequest) UnmarshalJSON(b []byte) error { return nil } -// Override default JSON handling for UpdateTeamRequest to handle AdditionalProperties -func (a UpdateTeamRequest) MarshalJSON() ([]byte, error) { +// Override default JSON handling for ConnectorAuthRequestOAuth to handle AdditionalProperties +func (a ConnectorAuthRequestOAuth) MarshalJSON() ([]byte, error) { var err error object := make(map[string]json.RawMessage) - if a.DisplayName != nil { - object["display_name"], err = json.Marshal(a.DisplayName) - if err != nil { - return nil, fmt.Errorf("error marshaling 'display_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 UsageSummary. Returns the specified -// element and whether it was found -func (a UsageSummary) Get(fieldName string) (value interface{}, found bool) { - if a.AdditionalProperties != nil { - value, found = a.AdditionalProperties[fieldName] - } - return -} - -// Setter for additional properties for UsageSummary -func (a *UsageSummary) Set(fieldName string, value interface{}) { - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[fieldName] = value -} - -// Override default JSON handling for UsageSummary to handle AdditionalProperties -func (a *UsageSummary) UnmarshalJSON(b []byte) error { - object := make(map[string]json.RawMessage) - err := json.Unmarshal(b, &object) + object["base_url"], err = json.Marshal(a.BaseURL) if err != nil { - return err - } - - if raw, found := object["groups"]; found { - err = json.Unmarshal(raw, &a.Groups) - if err != nil { - return fmt.Errorf("error reading 'groups': %w", err) - } - delete(object, "groups") + return nil, fmt.Errorf("error marshaling 'base_url': %w", err) } - if raw, found := object["metadata"]; found { - err = json.Unmarshal(raw, &a.Metadata) + if a.Env != nil { + object["env"], err = json.Marshal(a.Env) if err != nil { - return fmt.Errorf("error reading 'metadata': %w", err) + return nil, fmt.Errorf("error marshaling 'env': %w", err) } - delete(object, "metadata") } - if raw, found := object["values"]; found { - err = json.Unmarshal(raw, &a.Values) - if err != nil { - return fmt.Errorf("error reading 'values': %w", err) - } - delete(object, "values") - } - - 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 - } + object["plugin_kind"], err = json.Marshal(a.PluginKind) + if err != nil { + return nil, fmt.Errorf("error marshaling 'plugin_kind': %w", err) } - return nil -} -// Override default JSON handling for UsageSummary to handle AdditionalProperties -func (a UsageSummary) MarshalJSON() ([]byte, error) { - var err error - object := make(map[string]json.RawMessage) - - object["groups"], err = json.Marshal(a.Groups) + object["plugin_name"], err = json.Marshal(a.PluginName) if err != nil { - return nil, fmt.Errorf("error marshaling 'groups': %w", err) + return nil, fmt.Errorf("error marshaling 'plugin_name': %w", err) } - object["metadata"], err = json.Marshal(a.Metadata) + object["plugin_team"], err = json.Marshal(a.PluginTeam) if err != nil { - return nil, fmt.Errorf("error marshaling 'metadata': %w", err) + return nil, fmt.Errorf("error marshaling 'plugin_team': %w", err) } - object["values"], err = json.Marshal(a.Values) - if err != nil { - return nil, fmt.Errorf("error marshaling 'values': %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) + } } for fieldName, field := range a.AdditionalProperties { diff --git a/spec.json b/spec.json index 471ae91..2c36d50 100644 --- a/spec.json +++ b/spec.json @@ -1213,6 +1213,98 @@ "tags" : [ "plugins" ] } }, + "/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/uiassets" : { + "post" : { + "description" : "Get URLs to upload UI assets for a given plugin version", + "operationId" : "UploadPluginUIAssets", + "parameters" : [ { + "$ref" : "#/components/parameters/team_name" + }, { + "$ref" : "#/components/parameters/plugin_kind" + }, { + "$ref" : "#/components/parameters/plugin_name" + }, { + "$ref" : "#/components/parameters/version_name" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UploadPluginUIAssets_request" + } + } + } + }, + "responses" : { + "201" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UploadPluginUIAssets_201_response" + } + } + }, + "description" : "Response" + }, + "400" : { + "$ref" : "#/components/responses/BadRequest" + }, + "401" : { + "$ref" : "#/components/responses/RequiresAuthentication" + }, + "403" : { + "$ref" : "#/components/responses/Forbidden" + }, + "500" : { + "$ref" : "#/components/responses/InternalError" + } + }, + "tags" : [ "plugins" ] + }, + "put" : { + "description" : "Finalize UI asset upload", + "operationId" : "FinalizePluginUIAssetUpload", + "parameters" : [ { + "$ref" : "#/components/parameters/team_name" + }, { + "$ref" : "#/components/parameters/plugin_kind" + }, { + "$ref" : "#/components/parameters/plugin_name" + }, { + "$ref" : "#/components/parameters/version_name" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FinalizePluginUIAssetUpload_request" + } + } + } + }, + "responses" : { + "204" : { + "description" : "Response" + }, + "400" : { + "$ref" : "#/components/responses/BadRequest" + }, + "401" : { + "$ref" : "#/components/responses/RequiresAuthentication" + }, + "403" : { + "$ref" : "#/components/responses/Forbidden" + }, + "422" : { + "$ref" : "#/components/responses/UnprocessableEntity" + }, + "500" : { + "$ref" : "#/components/responses/InternalError" + } + }, + "tags" : [ "plugins" ] + } + }, "/addons" : { "get" : { "description" : "List all addons", @@ -2190,6 +2282,43 @@ } }, "/teams/{team_name}/memberships" : { + "delete" : { + "description" : "Remove a user from the team", + "operationId" : "RemoveTeamMembership", + "parameters" : [ { + "$ref" : "#/components/parameters/team_name" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RemoveTeamMembership_request" + } + } + } + }, + "responses" : { + "204" : { + "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" : [ "teams" ] + }, "get" : { "description" : "Get memberships to the team.", "operationId" : "GetTeamMemberships", @@ -2232,12 +2361,13 @@ }, "/teams/{team_name}/memberships/{email}" : { "delete" : { + "deprecated" : true, "description" : "Remove a user from the team", "operationId" : "DeleteTeamMembership", "parameters" : [ { "$ref" : "#/components/parameters/team_name" }, { - "$ref" : "#/components/parameters/email" + "$ref" : "#/components/parameters/email_basic" } ], "responses" : { "204" : { @@ -3149,7 +3279,7 @@ "parameters" : [ { "$ref" : "#/components/parameters/team_name" }, { - "$ref" : "#/components/parameters/email" + "$ref" : "#/components/parameters/email_basic" } ], "responses" : { "204" : { @@ -3816,6 +3946,9 @@ "422" : { "$ref" : "#/components/responses/UnprocessableEntity" }, + "429" : { + "$ref" : "#/components/responses/TooManyRequests" + }, "500" : { "$ref" : "#/components/responses/InternalError" } @@ -4050,6 +4183,9 @@ "422" : { "$ref" : "#/components/responses/UnprocessableEntity" }, + "429" : { + "$ref" : "#/components/responses/TooManyRequests" + }, "500" : { "$ref" : "#/components/responses/InternalError" } @@ -4586,6 +4722,9 @@ }, "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" : { @@ -4618,6 +4757,94 @@ "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}" : { "get" : { "description" : "Get a Sync Test Connection", @@ -4697,23 +4924,31 @@ "tags" : [ "syncs" ] } }, - "/teams/{team_name}/managed-databases" : { - "get" : { - "description" : "Get a paginated list of managed databases", - "operationId" : "GetManagedDatabases", + "/teams/{team_name}/syncs/test-connections/{sync_test_connection_id}/new-source" : { + "post" : { + "description" : "Create new Sync Source definition from a test connection.", + "operationId" : "CreateSyncSourceFromTestConnection", "parameters" : [ { "$ref" : "#/components/parameters/team_name" }, { - "$ref" : "#/components/parameters/page" - }, { - "$ref" : "#/components/parameters/per_page" + "$ref" : "#/components/parameters/sync_test_connection_id" } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SyncSourceCreateFromTestConnection" + } + } + }, + "required" : true + }, "responses" : { - "200" : { + "201" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/GetManagedDatabases_200_response" + "$ref" : "#/components/schemas/SyncSource" } } }, @@ -4725,30 +4960,33 @@ "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" : [ "managed-databases" ], - "x-internal" : true - }, + "tags" : [ "syncs" ] + } + }, + "/teams/{team_name}/syncs/test-connections/{sync_test_connection_id}/new-destination" : { "post" : { - "description" : "Create a new managed database", - "operationId" : "CreateManagedDatabase", + "description" : "Create new Sync Destination definition from a test connection.", + "operationId" : "CreateSyncDestinationFromTestConnection", "parameters" : [ { "$ref" : "#/components/parameters/team_name" + }, { + "$ref" : "#/components/parameters/sync_test_connection_id" } ], "requestBody" : { "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ManagedDatabaseCreate" + "$ref" : "#/components/schemas/SyncDestinationCreateFromTestConnection" } } }, @@ -4759,7 +4997,7 @@ "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/ManagedDatabase" + "$ref" : "#/components/schemas/SyncDestination" } } }, @@ -4771,15 +5009,9 @@ "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" }, @@ -4787,26 +5019,681 @@ "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "managed-databases" ], - "x-internal" : true + "tags" : [ "syncs" ] + } + }, + "/teams/{team_name}/syncs/test-connections/{sync_test_connection_id}/update-source/{sync_source_name}" : { + "patch" : { + "description" : "Update Sync Source definition from a test connection.", + "operationId" : "UpdateSyncSourceFromTestConnection", + "parameters" : [ { + "$ref" : "#/components/parameters/team_name" + }, { + "$ref" : "#/components/parameters/sync_test_connection_id" + }, { + "$ref" : "#/components/parameters/sync_source_name" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SyncSourceUpdateFromTestConnection" + } + } + }, + "required" : true + }, + "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" + }, + "422" : { + "$ref" : "#/components/responses/UnprocessableEntity" + }, + "500" : { + "$ref" : "#/components/responses/InternalError" + } + }, + "tags" : [ "syncs" ] + } + }, + "/teams/{team_name}/syncs/test-connections/{sync_test_connection_id}/update-destination/{sync_destination_name}" : { + "patch" : { + "description" : "Update Sync Destination definition from a test connection.", + "operationId" : "UpdateSyncDestinationFromTestConnection", + "parameters" : [ { + "$ref" : "#/components/parameters/team_name" + }, { + "$ref" : "#/components/parameters/sync_test_connection_id" + }, { + "$ref" : "#/components/parameters/sync_destination_name" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SyncDestinationUpdateFromTestConnection" + } + } + }, + "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}/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", + "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" : { + "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/oauth" : { + "patch" : { + "description" : "Complete authentication for the given OAuth connector", + "operationId" : "AuthenticateConnectorFinishOAuth", "parameters" : [ { "$ref" : "#/components/parameters/team_name" }, { - "$ref" : "#/components/parameters/managed_database_id" + "$ref" : "#/components/parameters/connector_id" } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConnectorAuthFinishRequestOAuth" + } + } + }, + "required" : true + }, "responses" : { "204" : { - "description" : "Deleted" + "description" : "Authentication is complete." + }, + "400" : { + "$ref" : "#/components/responses/BadRequest" }, "401" : { "$ref" : "#/components/responses/RequiresAuthentication" }, + "403" : { + "$ref" : "#/components/responses/Forbidden" + }, "404" : { "$ref" : "#/components/responses/NotFound" }, @@ -4817,40 +5704,54 @@ "$ref" : "#/components/responses/InternalError" } }, - "tags" : [ "managed-databases" ], - "x-internal" : true + "tags" : [ "syncs" ] }, - "get" : { - "description" : "Get a single managed database.", - "operationId" : "GetManagedDatabase", + "post" : { + "description" : "Authenticate or reauthenticate the given OAuth connector", + "operationId" : "AuthenticateConnectorOAuth", "parameters" : [ { "$ref" : "#/components/parameters/team_name" }, { - "$ref" : "#/components/parameters/managed_database_id" + "$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/ManagedDatabase" + "$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" : [ "managed-databases" ], - "x-internal" : true + "tags" : [ "syncs" ] } } }, @@ -5045,13 +5946,14 @@ "style" : "simple", "x-go-name" : "AddonOrderID" }, - "email" : { + "email_basic" : { "explode" : false, "in" : "path", "name" : "email", "required" : true, "schema" : { - "$ref" : "#/components/schemas/Email" + "example" : "user@example.com", + "type" : "string" }, "style" : "simple" }, @@ -5147,6 +6049,17 @@ }, "style" : "simple" }, + "connector_id" : { + "explode" : false, + "in" : "path", + "name" : "connector_id", + "required" : true, + "schema" : { + "$ref" : "#/components/schemas/ConnectorID" + }, + "style" : "simple", + "x-go-name" : "ConnectorID" + }, "sync_test_connection_id" : { "explode" : false, "in" : "path", @@ -5464,7 +6377,7 @@ "type" : "string" }, "logo" : { - "example" : "https://images.cloudquery.io/logos/aws.png", + "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", "type" : "string" }, "display_name" : { @@ -5596,8 +6509,9 @@ "$ref" : "#/components/schemas/PluginReleaseStageCreate" }, "logo" : { - "description" : "URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/...", - "example" : "https://images.cloudquery.io/logos/aws.png", + "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" : { @@ -5657,8 +6571,9 @@ "type" : "string" }, "logo" : { - "description" : "URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/...", - "example" : "https://images.cloudquery.io/logos/aws.png", + "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" : { @@ -5832,6 +6747,17 @@ "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" } } } ] @@ -5844,6 +6770,11 @@ "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" } }, "required" : [ "example_config" ] @@ -6131,6 +7062,41 @@ }, "required" : [ "url" ] }, + "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" + } + }, + "required" : [ "name" ], + "title" : "CloudQuery Plugin UI Asset Upload Request" + }, + "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" + } + }, + "required" : [ "name", "upload_url" ], + "title" : "CloudQuery Plugin UI Asset" + }, "AddonName" : { "description" : "The unique name for the addon.", "example" : "aws-policy", @@ -6213,7 +7179,7 @@ "type" : "string" }, "logo" : { - "example" : "https://images.cloudquery.io/logos/aws.png", + "example" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", "type" : "string" }, "public" : { @@ -6296,7 +7262,8 @@ "type" : "string" }, "logo" : { - "example" : "https://images.cloudquery.io/logos/aws.png", + "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" : { @@ -6349,7 +7316,8 @@ "type" : "string" }, "logo" : { - "example" : "https://images.cloudquery.io/logos/aws.png", + "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" : { @@ -6479,7 +7447,7 @@ "title" : "CloudQuery Addon Asset" }, "TeamPlan" : { - "description" : "The plan the team is on", + "description" : "The plan the team is on (trial is deprecated)", "enum" : [ "free", "paid", "enterprise", "trial" ], "type" : "string" }, @@ -6533,9 +7501,10 @@ }, "checksum" : { "description" : "SHA1 checksum of image", + "maxLength" : 40, + "minLength" : 40, "pattern" : "^[a-f0-9]+$", - "type" : "string", - "length" : 40 + "type" : "string" } }, "required" : [ "checksum", "name" ], @@ -6649,11 +7618,6 @@ "required" : [ "addon_name", "addon_team", "addon_type", "cancel_url", "success_url" ], "title" : "Create CloudQuery Addon Order" }, - "Email" : { - "example" : "user@cloudquery.io", - "format" : "email", - "type" : "string" - }, "UserName" : { "description" : "The unique name for the user.", "example" : "user", @@ -6678,7 +7642,8 @@ "x-go-name" : "ID" }, "email" : { - "$ref" : "#/components/schemas/Email" + "example" : "user@example.com", + "type" : "string" }, "name" : { "$ref" : "#/components/schemas/UserName" @@ -7030,6 +7995,11 @@ "required" : [ "metadata", "values" ], "title" : "CloudQuery Spend Summary" }, + "Email" : { + "example" : "user@example.com", + "format" : "email", + "type" : "string" + }, "Invitation" : { "additionalProperties" : false, "properties" : { @@ -7187,7 +8157,9 @@ "$ref" : "#/components/schemas/APIKeyName" }, "created_by" : { - "$ref" : "#/components/schemas/Email" + "description" : "email of the user that created the API key", + "example" : "user@example.com", + "type" : "string" }, "id" : { "$ref" : "#/components/schemas/APIKeyID" @@ -7260,13 +8232,20 @@ "type" : "string" } }, - "required" : [ "name", "value" ] + "required" : [ "name" ] }, "SyncLastUpdateSource" : { "description" : "How was the source or destination been created or updated last", "enum" : [ "yaml", "ui" ], "type" : "string" }, + "ConnectorID" : { + "description" : "ID of the Connector", + "example" : "12345678-1234-1234-1234-1234567890ab", + "format" : "uuid", + "type" : "string", + "x-go-name" : "ConnectorID" + }, "SyncSourceCreate" : { "description" : "Sync Source Definition", "properties" : { @@ -7312,6 +8291,9 @@ }, "last_update_source" : { "$ref" : "#/components/schemas/SyncLastUpdateSource" + }, + "connector_id" : { + "$ref" : "#/components/schemas/ConnectorID" } }, "required" : [ "name", "path", "tables", "version" ], @@ -7386,16 +8368,25 @@ "type" : "string" }, "created_at" : { - "description" : "Whether the sync is disabled", + "description" : "Time the test connection was created", "example" : "2017-07-14T16:53:42Z", "format" : "date-time", "type" : "string" }, "completed_at" : { - "description" : "Cron schedule for the sync", + "description" : "Time the test connection was completed", "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" } }, "required" : [ "created_at", "id", "status" ] @@ -7439,9 +8430,12 @@ }, "last_update_source" : { "$ref" : "#/components/schemas/SyncLastUpdateSource" + }, + "connector_id" : { + "$ref" : "#/components/schemas/ConnectorID" } }, - "title" : "Sync Source definition for creating a new source" + "title" : "Sync Source definition for updating a source" }, "SyncDestinationWriteMode" : { "default" : "overwrite-delete-stale", @@ -7492,6 +8486,9 @@ }, "last_update_source" : { "$ref" : "#/components/schemas/SyncLastUpdateSource" + }, + "connector_id" : { + "$ref" : "#/components/schemas/ConnectorID" } }, "required" : [ "name", "path", "version" ], @@ -7526,7 +8523,7 @@ } ] }, "SyncDestinationUpdate" : { - "description" : "Sync Destination Definition", + "description" : "Sync Destination Update Definition", "properties" : { "path" : { "$ref" : "#/components/schemas/SyncPluginPath" @@ -7556,9 +8553,12 @@ }, "last_update_source" : { "$ref" : "#/components/schemas/SyncLastUpdateSource" + }, + "connector_id" : { + "$ref" : "#/components/schemas/ConnectorID" } }, - "title" : "Sync Destination definition for creating a new destination" + "title" : "Sync Destination definition for updating a destination" }, "Sync" : { "description" : "Managed Sync definition", @@ -7748,54 +8748,204 @@ "format" : "date-time", "type" : "string" }, - "total_rows" : { - "description" : "Total number of rows in the sync", - "format" : "int64", - "type" : "integer" + "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" + }, + "errors" : { + "description" : "Number of errors encountered during the sync", + "format" : "int64", + "type" : "integer" + } + }, + "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" + }, + "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" + } + } + } ] + }, + "ConnectorIdentityResponseAWS" : { + "additionalProperties" : false, + "description" : "AWS connector identity response", + "properties" : { + "role_arn" : { + "description" : "Role ARN to assume", + "type" : "string", + "x-go-name" : "RoleARN" + }, + "account_ids" : { + "description" : "List of AWS account IDs", + "items" : { + "type" : "string" + }, + "type" : "array", + "x-go-name" : "AccountIDs" + } + }, + "required" : [ "account_ids", "role_arn" ] + }, + "ConnectorCredentialsResponseAWS" : { + "additionalProperties" : false, + "description" : "AWS connector credentials response", + "properties" : { + "access_key_id" : { + "type" : "string" + }, + "secret_access_key" : { + "type" : "string" + }, + "session_token" : { + "type" : "string" + }, + "source" : { + "type" : "string" + }, + "can_expire" : { + "type" : "boolean" + }, + "expires" : { + "format" : "date-time", + "type" : "string" + } + }, + "required" : [ "access_key_id", "can_expire", "expires", "secret_access_key", "session_token", "source" ] + }, + "ConnectorCredentialsResponseOAuth" : { + "additionalProperties" : false, + "description" : "OAuth connector credentials response", + "properties" : { + "access_token" : { + "type" : "string" + }, + "expires" : { + "format" : "date-time", + "type" : "string" + } + }, + "required" : [ "access_token" ] + }, + "SyncSourceCreateFromTestConnection" : { + "description" : "Sync Source from Test Connection 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_-]+$", + "type" : "string" + }, + "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" + }, + "last_update_source" : { + "$ref" : "#/components/schemas/SyncLastUpdateSource" + } + }, + "required" : [ "name", "tables" ], + "title" : "Sync Source definition for creating a new source from a test connection" + }, + "SyncDestinationCreateFromTestConnection" : { + "description" : "Sync Destination from Test Connection Definition", + "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" + }, + "write_mode" : { + "$ref" : "#/components/schemas/SyncDestinationWriteMode" }, - "warnings" : { - "description" : "Number of warnings encountered during the sync", - "format" : "int64", - "type" : "integer" + "migrate_mode" : { + "$ref" : "#/components/schemas/SyncDestinationMigrateMode" }, - "errors" : { - "description" : "Number of errors encountered during the sync", - "format" : "int64", - "type" : "integer" + "last_update_source" : { + "$ref" : "#/components/schemas/SyncLastUpdateSource" } }, - "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" : [ "name" ], + "title" : "Sync Destination definition for creating a new destination from a test connection" }, - "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" + "SyncSourceUpdateFromTestConnection" : { + "description" : "Sync Source Update from Test Connection Definition", + "properties" : { + "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" }, - "memory_byte_seconds" : { - "description" : "Total memory byte seconds utilized during this sync run", - "format" : "double", - "type" : "number" + "type" : "array" + }, + "skip_tables" : { + "description" : "Tables matched by `tables` that should be skipped. Wildcards are supported.", + "items" : { + "type" : "string" }, - "network_egress_bytes" : { - "description" : "Total network egress bytes during this sync run", - "format" : "double", - "type" : "number" - } + "type" : "array" + }, + "last_update_source" : { + "$ref" : "#/components/schemas/SyncLastUpdateSource" } - } ] + }, + "title" : "Sync Source definition for updating a source from a test connection" + }, + "SyncDestinationUpdateFromTestConnection" : { + "description" : "Sync Destination Update from Test Connection Definition", + "properties" : { + "write_mode" : { + "$ref" : "#/components/schemas/SyncDestinationWriteMode" + }, + "migrate_mode" : { + "$ref" : "#/components/schemas/SyncDestinationMigrateMode" + }, + "last_update_source" : { + "$ref" : "#/components/schemas/SyncLastUpdateSource" + } + }, + "title" : "Sync Destination definition for updating a destination from a test connection" }, "ManagedDatabaseID" : { "description" : "The identifier for the managed database", @@ -7841,6 +8991,218 @@ "description" : "Managed Database creation", "type" : "object" }, + "ConnectorStatus" : { + "description" : "The status of the connector", + "enum" : [ "created", "authenticated", "failed", "revoked" ], + "type" : "string" + }, + "Connector" : { + "description" : "Connector definition", + "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" + }, + "name" : { + "description" : "Name of the connector", + "type" : "string" + }, + "status" : { + "$ref" : "#/components/schemas/ConnectorStatus" + }, + "created_at" : { + "description" : "Time the connector was created", + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" + } + }, + "required" : [ "created_at", "id", "name", "status", "type" ] + }, + "ConnectorCreate" : { + "description" : "Connector creation request", + "properties" : { + "type" : { + "description" : "Type of the connector", + "type" : "string" + }, + "name" : { + "description" : "Name of the connector", + "type" : "string" + } + }, + "required" : [ "name", "type" ] + }, + "ConnectorUpdate" : { + "additionalProperties" : false, + "properties" : { + "name" : { + "description" : "Name of the connector", + "type" : "string" + } + } + }, + "ConnectorAuthRequestAWS" : { + "additionalProperties" : false, + "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", + "type" : "string" + }, + "plugin_kind" : { + "description" : "Kind of the plugin", + "example" : "source", + "type" : "string" + }, + "plugin_name" : { + "description" : "Name of the plugin", + "example" : "aws", + "type" : "string" + }, + "account_ids" : { + "description" : "List of AWS account IDs to authenticate", + "example" : [ "123456789012" ], + "items" : { + "type" : "string" + }, + "type" : "array", + "x-go-name" : "AccountIDs" + } + }, + "required" : [ "plugin_kind", "plugin_name", "plugin_team" ] + }, + "ConnectorAuthResponseAWS" : { + "additionalProperties" : false, + "description" : "AWS 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" + }, + "role_template_url" : { + "description" : "URL to the role template, to present to the user", + "type" : "string", + "x-go-name" : "RoleTemplateURL" + }, + "suggested_external_id" : { + "description" : "External ID suggested to enter into the role definition", + "type" : "string", + "x-go-name" : "SuggestedExternalID" + }, + "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" + }, + "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" + } + }, + "required" : [ "role_arn" ] + }, + "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" + }, + "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" + } + } + }, + "required" : [ "base_url", "plugin_kind", "plugin_name", "plugin_team" ] + }, + "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" ] + }, + "ConnectorAuthFinishRequestOAuth" : { + "additionalProperties" : { }, + "description" : "OAuth connector authentication request, filled in after the user has authenticated through OAuth", + "properties" : { + "auth_code" : { + "description" : "Auth code received from the OAuth provider" + }, + "base_url" : { + "description" : "Base of the URL the callback url was constructed from", + "example" : "https://cloud.cloudquery.io/oauth", + "x-go-name" : "BaseURL" + }, + "state" : { + "description" : "State value received from the OAuth provider" + }, + "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" + } + } + }, + "required" : [ "auth_code", "base_url" ] + }, "ListPluginNotificationRequests_200_response" : { "properties" : { "items" : { @@ -7867,7 +9229,7 @@ "created_at" : "2017-07-14T16:53:42Z", "updated_at" : "2017-07-14T16:53:42Z", "homepage" : "https://cloudquery.io", - "logo" : "https://images.cloudquery.io/logos/aws.png", + "logo" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", "official" : true, "short_description" : "Sync data from AWS to any destination", "repository" : "https://github.com/cloudquery/cloudquery", @@ -8042,6 +9404,43 @@ }, "required" : [ "names" ] }, + "FinalizePluginUIAssetUpload_request" : { + "properties" : { + "ui_id" : { + "description" : "ID representing the finished upload", + "type" : "string", + "x-go-name" : "UIID" + } + }, + "required" : [ "ui_id" ] + }, + "UploadPluginUIAssets_request" : { + "properties" : { + "assets" : { + "items" : { + "$ref" : "#/components/schemas/PluginUIAssetUploadRequest" + }, + "type" : "array" + } + }, + "required" : [ "assets" ] + }, + "UploadPluginUIAssets_201_response" : { + "properties" : { + "ui_id" : { + "description" : "ID representing this upload", + "type" : "string", + "x-go-name" : "UIID" + }, + "assets" : { + "items" : { + "$ref" : "#/components/schemas/PluginUIAsset" + }, + "type" : "array" + } + }, + "required" : [ "assets", "ui_id" ] + }, "ListAddons_200_response" : { "properties" : { "items" : { @@ -8053,7 +9452,7 @@ "created_at" : "2017-07-14T16:53:42Z", "updated_at" : "2017-07-14T16:53:42Z", "homepage" : "https://cloudquery.io", - "logo" : "https://images.cloudquery.io/logos/aws.png", + "logo" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", "official" : true, "short_description" : "Sync data from AWS to any destination", "repository" : "https://github.com/cloudquery/cloudquery", @@ -8194,7 +9593,7 @@ "created_at" : "2017-07-14T16:53:42Z", "updated_at" : "2017-07-14T16:53:42Z", "homepage" : "https://cloudquery.io", - "logo" : "https://images.cloudquery.io/logos/aws.png", + "logo" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", "official" : true, "short_description" : "Sync data from AWS to any destination", "repository" : "https://github.com/cloudquery/cloudquery", @@ -8225,7 +9624,7 @@ "created_at" : "2017-07-14T16:53:42Z", "updated_at" : "2017-07-14T16:53:42Z", "homepage" : "https://cloudquery.io", - "logo" : "https://images.cloudquery.io/logos/aws.png", + "logo" : "https://storage.googleapis.com/cq-cloud-images/9ac4cb31-e971-4879-8619-87dc22b0f98e", "official" : true, "short_description" : "AWS policies", "repository" : "https://github.com/cloudquery/cloudquery", @@ -8266,7 +9665,7 @@ "role" : "admin", "user" : { "created_at" : "2017-07-14T16:53:42Z", - "email" : "user@clouduery.io", + "email" : "user@example.com", "id" : "12345678-1234-1234-1234-1234567890ab", "name" : "user", "updated_at" : "2017-07-14T16:53:42Z" @@ -8283,6 +9682,14 @@ }, "required" : [ "items", "metadata" ] }, + "RemoveTeamMembership_request" : { + "properties" : { + "email" : { + "type" : "string" + } + }, + "required" : [ "email" ] + }, "ListInvoicesByTeam_200_response" : { "properties" : { "items" : { @@ -8558,6 +9965,23 @@ "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" + } + } + }, "UpdateSyncTestConnection_request" : { "properties" : { "status" : { @@ -8590,6 +10014,20 @@ }, "required" : [ "items", "metadata" ] }, + "ListConnectors_200_response" : { + "properties" : { + "items" : { + "items" : { + "$ref" : "#/components/schemas/Connector" + }, + "type" : "array" + }, + "metadata" : { + "$ref" : "#/components/schemas/ListMetadata" + } + }, + "required" : [ "items", "metadata" ] + }, "UsageIncrease_tables_inner" : { "properties" : { "name" : {