diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3df21f4..59248bf 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: b81e5def-5b1e-4753-ae7c-0efccc2e6f61 management: - docChecksum: 9c5d9fb0ef0ed11b79e5aae7c6a7ab34 + docChecksum: 06a2bfc01beff2ee8a6ecab150113dcf docVersion: 0.0.1 speakeasyVersion: 1.395.1 generationVersion: 2.415.0 - releaseVersion: 0.0.11 - configChecksum: 960eed39d63bfb5d5a60adbf86f56c5c + releaseVersion: 0.0.12 + configChecksum: 0fa9efa852062e6e89e5c9a14d0cbae1 features: go: additionalDependencies: 0.1.0 @@ -47,6 +47,7 @@ generatedFiles: - /models/components/consumer.go - /models/components/consumergroup.go - /models/components/consumergroupinput.go + - /models/components/consumergroupinsidewrapper.go - /models/components/consumerinput.go - /models/components/controlplane.go - /models/components/controlplanesummary.go @@ -251,6 +252,7 @@ generatedFiles: - /models/operations/getteamsteamidsystemaccounts.go - /models/operations/getupstream.go - /models/operations/getuser.go + - /models/operations/getusersme.go - /models/operations/getvault.go - /models/operations/inviteuser.go - /models/operations/listacl.go @@ -300,6 +302,7 @@ generatedFiles: - /models/operations/postsystemaccountsaccountidassignedroles.go - /models/operations/postsystemaccountsidaccesstokens.go - /models/operations/postteamsteamidsystemaccounts.go + - /models/operations/removeconsumerfromgroup.go - /models/operations/removeuserfromteam.go - /models/operations/teamsassignrole.go - /models/operations/teamsremoverole.go @@ -389,6 +392,7 @@ generatedFiles: - docs/models/components/consumer.md - docs/models/components/consumeradmin.md - docs/models/components/consumergroup.md + - docs/models/components/consumergroupinsidewrapper.md - docs/models/components/controlplane.md - docs/models/components/controlplanes.md - docs/models/components/controlplanesummary.md @@ -851,6 +855,7 @@ generatedFiles: - docs/models/operations/getupstreamresponse.md - docs/models/operations/getuserrequest.md - docs/models/operations/getuserresponse.md + - docs/models/operations/getusersmeresponse.md - docs/models/operations/getvaultrequest.md - docs/models/operations/getvaultresponse.md - docs/models/operations/inviteuserresponse.md @@ -980,6 +985,8 @@ generatedFiles: - docs/models/operations/postteamsteamidsystemaccountsrequest.md - docs/models/operations/postteamsteamidsystemaccountsresponse.md - docs/models/operations/queryparamfilter.md + - docs/models/operations/removeconsumerfromgrouprequest.md + - docs/models/operations/removeconsumerfromgroupresponse.md - docs/models/operations/removeuserfromteamrequest.md - docs/models/operations/removeuserfromteamresponse.md - docs/models/operations/teamsassignrolerequest.md @@ -1376,6 +1383,13 @@ examples: "401": application/json: {"message": "", "status": 812329} "201": {} + speakeasy-default-create-ca-certificate: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 812329} get-ca_certificate: "": parameters: @@ -1425,6 +1439,13 @@ examples: "401": application/json: {"message": "", "status": 143829} "201": {} + speakeasy-default-create-certificate: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 143829} get-certificate: "": parameters: @@ -1509,6 +1530,13 @@ examples: "401": application/json: {"message": "", "status": 805552} "201": {} + speakeasy-default-create-sni: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 805552} get-sni: "": parameters: @@ -1558,6 +1586,13 @@ examples: "401": application/json: {"message": "", "status": 933383} "201": {} + speakeasy-default-create-consumer-group: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 933383} get-consumer_group: "": parameters: @@ -1595,6 +1630,13 @@ examples: controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" requestBody: application/json: {"consumer": "bob"} + speakeasy-default-add-consumer-to-group: + parameters: + path: + ConsumerGroupId: "" + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + requestBody: + application/json: {"consumer": "cf4c7e60-11db-49dd-b300-7c7e5f0f7e6b"} list-consumer: "": parameters: @@ -1615,6 +1657,13 @@ examples: "401": application/json: {"message": "", "status": 848959} "201": {} + speakeasy-default-create-consumer: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 848959} get-consumer: "": parameters: @@ -1802,6 +1851,13 @@ examples: "401": application/json: {"message": "", "status": 454928} "201": {} + speakeasy-default-create-key-set: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 454928} get-key-set: "": parameters: @@ -1851,6 +1907,13 @@ examples: "401": application/json: {"message": "", "status": 907390} "201": {} + speakeasy-default-create-key: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 907390} get-key: "": parameters: @@ -1980,6 +2043,13 @@ examples: "401": application/json: {"message": "", "status": 130029} "201": {} + speakeasy-default-create-plugin: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 130029} get-plugin: "": parameters: @@ -2050,6 +2120,11 @@ examples: path: pluginName: "" controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + speakeasy-default-fetch-plugin-schema: + parameters: + path: + pluginName: "" + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" list-plugin-with-service: "": parameters: @@ -2105,6 +2180,13 @@ examples: "401": application/json: {"message": "", "status": 811488} "201": {} + speakeasy-default-create-route: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 811488} get-route: "": parameters: @@ -2192,6 +2274,17 @@ examples: application/json: {"host": "courageous-jalapeño.com"} "401": application/json: {"message": "", "status": 216580} + speakeasy-default-create-service: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + requestBody: + application/json: {"host": "fumbling-airship.org"} + responses: + "201": + application/json: {"host": "courageous-jalapeño.com"} + "401": + application/json: {"message": "", "status": 216580} get-service: "": parameters: @@ -2245,6 +2338,13 @@ examples: "401": application/json: {"message": "", "status": 670650} "201": {} + speakeasy-default-create-upstream: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 670650} get-upstream: "": parameters: @@ -2329,6 +2429,13 @@ examples: "401": application/json: {"message": "", "status": 954798} "201": {} + speakeasy-default-create-vault: + parameters: + path: + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + responses: + "401": + application/json: {"message": "", "status": 954798} get-vault: "": parameters: @@ -2522,16 +2629,16 @@ examples: speakeasy-default-get-authentication-settings: responses: "200": - application/json: {"basic_auth_enabled": true, "oidc_auth_enabled": false, "idp_mapping_enabled": true, "konnect_mapping_enabled": false} + application/json: {"basic_auth_enabled": true, "oidc_auth_enabled": false, "saml_auth_enabled": false, "idp_mapping_enabled": true, "konnect_mapping_enabled": false} "401": application/problem+json: {"status": 401, "title": "Unauthorized", "type": "https://httpstatuses.com/401", "instance": "kong:trace:1234567890", "detail": "Invalid credentials"} update-authentication-settings: speakeasy-default-update-authentication-settings: requestBody: - application/json: {"basic_auth_enabled": true, "oidc_auth_enabled": false, "idp_mapping_enabled": true, "konnect_mapping_enabled": false} + application/json: {"basic_auth_enabled": true, "oidc_auth_enabled": false, "saml_auth_enabled": false, "idp_mapping_enabled": true, "konnect_mapping_enabled": false} responses: "200": - application/json: {"basic_auth_enabled": true, "oidc_auth_enabled": false, "idp_mapping_enabled": true, "konnect_mapping_enabled": false} + application/json: {"basic_auth_enabled": true, "oidc_auth_enabled": false, "saml_auth_enabled": false, "idp_mapping_enabled": true, "konnect_mapping_enabled": false} "400": application/problem+json: {"status": 512469, "title": "", "instance": "", "detail": "", "invalid_parameters": []} "401": @@ -3151,3 +3258,17 @@ examples: responses: "404": application/problem+json: {"status": 404, "title": "Not Found", "type": "https://httpstatuses.com/404", "instance": "kong:trace:1234567890", "detail": "Not found"} + remove-consumer-from-group: + speakeasy-default-remove-consumer-from-group: + parameters: + path: + ConsumerGroupId: "" + ConsumerId: "" + controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458" + get-users-me: + speakeasy-default-get-users-me: + responses: + "200": + application/json: {"id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "email": "user@email.com", "full_name": "Test User", "preferred_name": "test", "active": true, "created_at": "2022-02-07T17:46:57.52Z", "updated_at": "2022-10-08T17:00:00.52Z"} + "401": + application/problem+json: {"status": 401, "title": "Unauthorized", "type": "https://httpstatuses.com/401", "instance": "kong:trace:1234567890", "detail": "Invalid credentials"} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 717ff78..ce726fa 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false go: - version: 0.0.11 + version: 0.0.12 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/acls.go b/acls.go index 8e07185..fe890ec 100644 --- a/acls.go +++ b/acls.go @@ -650,12 +650,12 @@ func (s *ACLs) CreateACLWithConsumer(ctx context.Context, request operations.Cre } -// GetACLWithConsumer - Fetch an ACL associated with a Consumer -// Get an ACL associated with a Consumer using ID. -func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACLWithConsumerRequest, opts ...operations.Option) (*operations.GetACLWithConsumerResponse, error) { +// DeleteACLWithConsumer - Delete a an ACL associated with a a Consumer +// Delete a an ACL associated with a a Consumer using ID. +func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.DeleteACLWithConsumerRequest, opts ...operations.Option) (*operations.DeleteACLWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-acl-with-consumer", + OperationID: "delete-acl-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -689,11 +689,11 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -770,7 +770,7 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -785,7 +785,7 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL } } - res := &operations.GetACLWithConsumerResponse{ + res := &operations.DeleteACLWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -802,30 +802,7 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.ACL - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.ACL = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -848,12 +825,12 @@ func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACL } -// UpsertACLWithConsumer - Upsert an ACL associated with a Consumer -// Create or Update an ACL associated with a Consumer using ID. -func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.UpsertACLWithConsumerRequest, opts ...operations.Option) (*operations.UpsertACLWithConsumerResponse, error) { +// GetACLWithConsumer - Fetch an ACL associated with a Consumer +// Get an ACL associated with a Consumer using ID. +func (s *ACLs) GetACLWithConsumer(ctx context.Context, request operations.GetACLWithConsumerRequest, opts ...operations.Option) (*operations.GetACLWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-acl-with-consumer", + OperationID: "get-acl-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -876,11 +853,6 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ACLWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -892,13 +864,12 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -974,7 +945,7 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -989,7 +960,7 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups } } - res := &operations.UpsertACLWithConsumerResponse{ + res := &operations.GetACLWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1028,6 +999,8 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1050,12 +1023,12 @@ func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.Ups } -// DeleteACLWithConsumer - Delete a an ACL associated with a a Consumer -// Delete a an ACL associated with a a Consumer using ID. -func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.DeleteACLWithConsumerRequest, opts ...operations.Option) (*operations.DeleteACLWithConsumerResponse, error) { +// UpsertACLWithConsumer - Upsert an ACL associated with a Consumer +// Create or Update an ACL associated with a Consumer using ID. +func (s *ACLs) UpsertACLWithConsumer(ctx context.Context, request operations.UpsertACLWithConsumerRequest, opts ...operations.Option) (*operations.UpsertACLWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-acl-with-consumer", + OperationID: "upsert-acl-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1078,6 +1051,11 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "ACLWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1089,12 +1067,13 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1185,7 +1164,7 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del } } - res := &operations.DeleteACLWithConsumerResponse{ + res := &operations.UpsertACLWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1202,7 +1181,28 @@ func (s *ACLs) DeleteACLWithConsumer(ctx context.Context, request operations.Del } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.ACL + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ACL = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/apikeys.go b/apikeys.go index 33b78b4..8119d3a 100644 --- a/apikeys.go +++ b/apikeys.go @@ -428,12 +428,12 @@ func (s *APIKeys) CreateKeyAuthWithConsumer(ctx context.Context, request operati } -// GetKeyAuthWithConsumer - Fetch an API-key associated with a Consumer -// Get an API-key associated with a Consumer using ID. -func (s *APIKeys) GetKeyAuthWithConsumer(ctx context.Context, request operations.GetKeyAuthWithConsumerRequest, opts ...operations.Option) (*operations.GetKeyAuthWithConsumerResponse, error) { +// DeleteKeyAuthWithConsumer - Delete a an API-key associated with a a Consumer +// Delete a an API-key associated with a a Consumer using ID. +func (s *APIKeys) DeleteKeyAuthWithConsumer(ctx context.Context, request operations.DeleteKeyAuthWithConsumerRequest, opts ...operations.Option) (*operations.DeleteKeyAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-key-auth-with-consumer", + OperationID: "delete-key-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -467,11 +467,11 @@ func (s *APIKeys) GetKeyAuthWithConsumer(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -548,7 +548,7 @@ func (s *APIKeys) GetKeyAuthWithConsumer(ctx context.Context, request operations _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -563,7 +563,7 @@ func (s *APIKeys) GetKeyAuthWithConsumer(ctx context.Context, request operations } } - res := &operations.GetKeyAuthWithConsumerResponse{ + res := &operations.DeleteKeyAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -580,30 +580,7 @@ func (s *APIKeys) GetKeyAuthWithConsumer(ctx context.Context, request operations } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.KeyAuth - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.KeyAuth = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -626,12 +603,12 @@ func (s *APIKeys) GetKeyAuthWithConsumer(ctx context.Context, request operations } -// UpsertKeyAuthWithConsumer - Upsert an API-key associated with a Consumer -// Create or Update an API-key associated with a Consumer using ID. -func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operations.UpsertKeyAuthWithConsumerRequest, opts ...operations.Option) (*operations.UpsertKeyAuthWithConsumerResponse, error) { +// GetKeyAuthWithConsumer - Fetch an API-key associated with a Consumer +// Get an API-key associated with a Consumer using ID. +func (s *APIKeys) GetKeyAuthWithConsumer(ctx context.Context, request operations.GetKeyAuthWithConsumerRequest, opts ...operations.Option) (*operations.GetKeyAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-key-auth-with-consumer", + OperationID: "get-key-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -654,11 +631,6 @@ func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "KeyAuthWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -670,13 +642,12 @@ func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -752,7 +723,7 @@ func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operati _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -767,7 +738,7 @@ func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operati } } - res := &operations.UpsertKeyAuthWithConsumerResponse{ + res := &operations.GetKeyAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -806,6 +777,8 @@ func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operati return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -828,12 +801,12 @@ func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operati } -// DeleteKeyAuthWithConsumer - Delete a an API-key associated with a a Consumer -// Delete a an API-key associated with a a Consumer using ID. -func (s *APIKeys) DeleteKeyAuthWithConsumer(ctx context.Context, request operations.DeleteKeyAuthWithConsumerRequest, opts ...operations.Option) (*operations.DeleteKeyAuthWithConsumerResponse, error) { +// UpsertKeyAuthWithConsumer - Upsert an API-key associated with a Consumer +// Create or Update an API-key associated with a Consumer using ID. +func (s *APIKeys) UpsertKeyAuthWithConsumer(ctx context.Context, request operations.UpsertKeyAuthWithConsumerRequest, opts ...operations.Option) (*operations.UpsertKeyAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-key-auth-with-consumer", + OperationID: "upsert-key-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -856,6 +829,11 @@ func (s *APIKeys) DeleteKeyAuthWithConsumer(ctx context.Context, request operati return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "KeyAuthWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -867,12 +845,13 @@ func (s *APIKeys) DeleteKeyAuthWithConsumer(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -963,7 +942,7 @@ func (s *APIKeys) DeleteKeyAuthWithConsumer(ctx context.Context, request operati } } - res := &operations.DeleteKeyAuthWithConsumerResponse{ + res := &operations.UpsertKeyAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -980,7 +959,28 @@ func (s *APIKeys) DeleteKeyAuthWithConsumer(ctx context.Context, request operati } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.KeyAuth + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.KeyAuth = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/authsettings.go b/authsettings.go index 0349652..c689bb1 100644 --- a/authsettings.go +++ b/authsettings.go @@ -1600,21 +1600,16 @@ func (s *AuthSettings) PatchTeamGroupMappings(ctx context.Context, request *comp } -// GetIdpTeamMappings - Fetch Team Mapping -// Fetch the IdP group to Konnect team mapping. -func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, pageNumber *int64, opts ...operations.Option) (*operations.GetIdpTeamMappingsResponse, error) { +// UpdateIdpTeamMappings - Update Team Mappings +// Updates the IdP group to Konnect team mapping. +func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *components.UpdateTeamMappings, opts ...operations.Option) (*operations.UpdateIdpTeamMappingsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-idp-team-mappings", + OperationID: "update-idp-team-mappings", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetIdpTeamMappingsRequest{ - PageSize: pageSize, - PageNumber: pageNumber, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionServerURL, @@ -1628,7 +1623,7 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, } } - baseURL := utils.ReplaceParameters(operations.GetIdpTeamMappingsServerList[0], map[string]string{}) + baseURL := utils.ReplaceParameters(operations.UpdateIdpTeamMappingsServerList[0], map[string]string{}) if o.ServerURL != nil { baseURL = *o.ServerURL } @@ -1638,6 +1633,11 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1649,16 +1649,13 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1734,7 +1731,7 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "403", "404", "412", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"400", "401", "404", "412", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1749,7 +1746,7 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, } } - res := &operations.GetIdpTeamMappingsResponse{ + res := &operations.UpdateIdpTeamMappingsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1774,12 +1771,12 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, return nil, err } - var out components.TeamMappingResponse + var out components.TeamMappingCollection if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.TeamMappingResponse = &out + res.TeamMappingCollection = &out default: rawBody, err := getRawBody() if err != nil { @@ -1788,7 +1785,7 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 401: + case httpRes.StatusCode == 400: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/problem+json`): rawBody, err := getRawBody() @@ -1796,7 +1793,7 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, return nil, err } - var out sdkerrors.UnauthorizedError + var out sdkerrors.BadRequestError if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } @@ -1810,7 +1807,7 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 403: + case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/problem+json`): rawBody, err := getRawBody() @@ -1898,16 +1895,21 @@ func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, } -// UpdateIdpTeamMappings - Update Team Mappings -// Updates the IdP group to Konnect team mapping. -func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *components.UpdateTeamMappings, opts ...operations.Option) (*operations.UpdateIdpTeamMappingsResponse, error) { +// GetIdpTeamMappings - Fetch Team Mapping +// Fetch the IdP group to Konnect team mapping. +func (s *AuthSettings) GetIdpTeamMappings(ctx context.Context, pageSize *int64, pageNumber *int64, opts ...operations.Option) (*operations.GetIdpTeamMappingsResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "update-idp-team-mappings", + OperationID: "get-idp-team-mappings", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetIdpTeamMappingsRequest{ + PageSize: pageSize, + PageNumber: pageNumber, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionServerURL, @@ -1921,7 +1923,7 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo } } - baseURL := utils.ReplaceParameters(operations.UpdateIdpTeamMappingsServerList[0], map[string]string{}) + baseURL := utils.ReplaceParameters(operations.GetIdpTeamMappingsServerList[0], map[string]string{}) if o.ServerURL != nil { baseURL = *o.ServerURL } @@ -1931,11 +1933,6 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1947,13 +1944,16 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) + + if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -2029,7 +2029,7 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"400", "401", "404", "412", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "403", "404", "412", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -2044,7 +2044,7 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo } } - res := &operations.UpdateIdpTeamMappingsResponse{ + res := &operations.GetIdpTeamMappingsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2069,12 +2069,12 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo return nil, err } - var out components.TeamMappingCollection + var out components.TeamMappingResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.TeamMappingCollection = &out + res.TeamMappingResponse = &out default: rawBody, err := getRawBody() if err != nil { @@ -2083,7 +2083,7 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 400: + case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/problem+json`): rawBody, err := getRawBody() @@ -2091,7 +2091,7 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo return nil, err } - var out sdkerrors.BadRequestError + var out sdkerrors.UnauthorizedError if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } @@ -2105,7 +2105,7 @@ func (s *AuthSettings) UpdateIdpTeamMappings(ctx context.Context, request *compo return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 401: + case httpRes.StatusCode == 403: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/problem+json`): rawBody, err := getRawBody() diff --git a/basicauthcredentials.go b/basicauthcredentials.go index 32e4470..fc69b2c 100644 --- a/basicauthcredentials.go +++ b/basicauthcredentials.go @@ -650,12 +650,12 @@ func (s *BasicAuthCredentials) CreateBasicAuthWithConsumer(ctx context.Context, } -// GetBasicAuthWithConsumer - Fetch a Basic-auth credential associated with a Consumer -// Get a Basic-auth credential associated with a Consumer using ID. -func (s *BasicAuthCredentials) GetBasicAuthWithConsumer(ctx context.Context, request operations.GetBasicAuthWithConsumerRequest, opts ...operations.Option) (*operations.GetBasicAuthWithConsumerResponse, error) { +// DeleteBasicAuthWithConsumer - Delete a a Basic-auth credential associated with a a Consumer +// Delete a a Basic-auth credential associated with a a Consumer using ID. +func (s *BasicAuthCredentials) DeleteBasicAuthWithConsumer(ctx context.Context, request operations.DeleteBasicAuthWithConsumerRequest, opts ...operations.Option) (*operations.DeleteBasicAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-basic-auth-with-consumer", + OperationID: "delete-basic-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -689,11 +689,11 @@ func (s *BasicAuthCredentials) GetBasicAuthWithConsumer(ctx context.Context, req defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -770,7 +770,7 @@ func (s *BasicAuthCredentials) GetBasicAuthWithConsumer(ctx context.Context, req _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -785,7 +785,7 @@ func (s *BasicAuthCredentials) GetBasicAuthWithConsumer(ctx context.Context, req } } - res := &operations.GetBasicAuthWithConsumerResponse{ + res := &operations.DeleteBasicAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -802,30 +802,7 @@ func (s *BasicAuthCredentials) GetBasicAuthWithConsumer(ctx context.Context, req } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.BasicAuth - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.BasicAuth = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -848,12 +825,12 @@ func (s *BasicAuthCredentials) GetBasicAuthWithConsumer(ctx context.Context, req } -// UpsertBasicAuthWithConsumer - Upsert a Basic-auth credential associated with a Consumer -// Create or Update a Basic-auth credential associated with a Consumer using ID. -func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, request operations.UpsertBasicAuthWithConsumerRequest, opts ...operations.Option) (*operations.UpsertBasicAuthWithConsumerResponse, error) { +// GetBasicAuthWithConsumer - Fetch a Basic-auth credential associated with a Consumer +// Get a Basic-auth credential associated with a Consumer using ID. +func (s *BasicAuthCredentials) GetBasicAuthWithConsumer(ctx context.Context, request operations.GetBasicAuthWithConsumerRequest, opts ...operations.Option) (*operations.GetBasicAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-basic-auth-with-consumer", + OperationID: "get-basic-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -876,11 +853,6 @@ func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "BasicAuthWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -892,13 +864,12 @@ func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -974,7 +945,7 @@ func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -989,7 +960,7 @@ func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, } } - res := &operations.UpsertBasicAuthWithConsumerResponse{ + res := &operations.GetBasicAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1028,6 +999,8 @@ func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1050,12 +1023,12 @@ func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, } -// DeleteBasicAuthWithConsumer - Delete a a Basic-auth credential associated with a a Consumer -// Delete a a Basic-auth credential associated with a a Consumer using ID. -func (s *BasicAuthCredentials) DeleteBasicAuthWithConsumer(ctx context.Context, request operations.DeleteBasicAuthWithConsumerRequest, opts ...operations.Option) (*operations.DeleteBasicAuthWithConsumerResponse, error) { +// UpsertBasicAuthWithConsumer - Upsert a Basic-auth credential associated with a Consumer +// Create or Update a Basic-auth credential associated with a Consumer using ID. +func (s *BasicAuthCredentials) UpsertBasicAuthWithConsumer(ctx context.Context, request operations.UpsertBasicAuthWithConsumerRequest, opts ...operations.Option) (*operations.UpsertBasicAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-basic-auth-with-consumer", + OperationID: "upsert-basic-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1078,6 +1051,11 @@ func (s *BasicAuthCredentials) DeleteBasicAuthWithConsumer(ctx context.Context, return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "BasicAuthWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1089,12 +1067,13 @@ func (s *BasicAuthCredentials) DeleteBasicAuthWithConsumer(ctx context.Context, defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1185,7 +1164,7 @@ func (s *BasicAuthCredentials) DeleteBasicAuthWithConsumer(ctx context.Context, } } - res := &operations.DeleteBasicAuthWithConsumerResponse{ + res := &operations.UpsertBasicAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1202,7 +1181,28 @@ func (s *BasicAuthCredentials) DeleteBasicAuthWithConsumer(ctx context.Context, } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.BasicAuth + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.BasicAuth = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/cacertificates.go b/cacertificates.go index bf7e569..9b553d3 100644 --- a/cacertificates.go +++ b/cacertificates.go @@ -479,17 +479,17 @@ func (s *CACertificates) CreateCaCertificate(ctx context.Context, controlPlaneID } -// GetCaCertificate - Fetch a CA Certificate -// Get a CA Certificate using ID. -func (s *CACertificates) GetCaCertificate(ctx context.Context, controlPlaneID string, caCertificateID string, opts ...operations.Option) (*operations.GetCaCertificateResponse, error) { +// DeleteCaCertificate - Delete a CA Certificate +// Delete a CA Certificate +func (s *CACertificates) DeleteCaCertificate(ctx context.Context, controlPlaneID string, caCertificateID string, opts ...operations.Option) (*operations.DeleteCaCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-ca_certificate", + OperationID: "delete-ca_certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetCaCertificateRequest{ + request := operations.DeleteCaCertificateRequest{ ControlPlaneID: controlPlaneID, CACertificateID: caCertificateID, } @@ -523,7 +523,7 @@ func (s *CACertificates) GetCaCertificate(ctx context.Context, controlPlaneID st defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -604,7 +604,7 @@ func (s *CACertificates) GetCaCertificate(ctx context.Context, controlPlaneID st _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -619,7 +619,7 @@ func (s *CACertificates) GetCaCertificate(ctx context.Context, controlPlaneID st } } - res := &operations.GetCaCertificateResponse{ + res := &operations.DeleteCaCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -636,28 +636,7 @@ func (s *CACertificates) GetCaCertificate(ctx context.Context, controlPlaneID st } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.CACertificate - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.CACertificate = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -680,8 +659,6 @@ func (s *CACertificates) GetCaCertificate(ctx context.Context, controlPlaneID st return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -704,16 +681,21 @@ func (s *CACertificates) GetCaCertificate(ctx context.Context, controlPlaneID st } -// UpsertCaCertificate - Upsert a CA Certificate -// Create or Update CA Certificate using ID. -func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operations.UpsertCaCertificateRequest, opts ...operations.Option) (*operations.UpsertCaCertificateResponse, error) { +// GetCaCertificate - Fetch a CA Certificate +// Get a CA Certificate using ID. +func (s *CACertificates) GetCaCertificate(ctx context.Context, caCertificateID string, controlPlaneID string, opts ...operations.Option) (*operations.GetCaCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-ca_certificate", + OperationID: "get-ca_certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetCaCertificateRequest{ + CACertificateID: caCertificateID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -732,11 +714,6 @@ func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operat return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "CACertificate", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -748,13 +725,12 @@ func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operat defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -830,7 +806,7 @@ func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operat _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -845,7 +821,7 @@ func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operat } } - res := &operations.UpsertCaCertificateResponse{ + res := &operations.GetCaCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -906,6 +882,8 @@ func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operat return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -928,21 +906,16 @@ func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operat } -// DeleteCaCertificate - Delete a CA Certificate -// Delete a CA Certificate -func (s *CACertificates) DeleteCaCertificate(ctx context.Context, controlPlaneID string, caCertificateID string, opts ...operations.Option) (*operations.DeleteCaCertificateResponse, error) { +// UpsertCaCertificate - Upsert a CA Certificate +// Create or Update CA Certificate using ID. +func (s *CACertificates) UpsertCaCertificate(ctx context.Context, request operations.UpsertCaCertificateRequest, opts ...operations.Option) (*operations.UpsertCaCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-ca_certificate", + OperationID: "upsert-ca_certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteCaCertificateRequest{ - ControlPlaneID: controlPlaneID, - CACertificateID: caCertificateID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -961,6 +934,11 @@ func (s *CACertificates) DeleteCaCertificate(ctx context.Context, controlPlaneID return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "CACertificate", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -972,12 +950,13 @@ func (s *CACertificates) DeleteCaCertificate(ctx context.Context, controlPlaneID defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1068,7 +1047,7 @@ func (s *CACertificates) DeleteCaCertificate(ctx context.Context, controlPlaneID } } - res := &operations.DeleteCaCertificateResponse{ + res := &operations.UpsertCaCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1085,7 +1064,28 @@ func (s *CACertificates) DeleteCaCertificate(ctx context.Context, controlPlaneID } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.CACertificate + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.CACertificate = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/certificates.go b/certificates.go index 54476db..2fe4e69 100644 --- a/certificates.go +++ b/certificates.go @@ -482,17 +482,17 @@ func (s *Certificates) CreateCertificate(ctx context.Context, controlPlaneID str } -// GetCertificate - Fetch a Certificate -// Get a Certificate using ID. -func (s *Certificates) GetCertificate(ctx context.Context, controlPlaneID string, certificateID string, opts ...operations.Option) (*operations.GetCertificateResponse, error) { +// DeleteCertificate - Delete a Certificate +// Delete a Certificate +func (s *Certificates) DeleteCertificate(ctx context.Context, controlPlaneID string, certificateID string, opts ...operations.Option) (*operations.DeleteCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-certificate", + OperationID: "delete-certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetCertificateRequest{ + request := operations.DeleteCertificateRequest{ ControlPlaneID: controlPlaneID, CertificateID: certificateID, } @@ -526,7 +526,7 @@ func (s *Certificates) GetCertificate(ctx context.Context, controlPlaneID string defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -607,7 +607,7 @@ func (s *Certificates) GetCertificate(ctx context.Context, controlPlaneID string _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -622,7 +622,7 @@ func (s *Certificates) GetCertificate(ctx context.Context, controlPlaneID string } } - res := &operations.GetCertificateResponse{ + res := &operations.DeleteCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -639,28 +639,7 @@ func (s *Certificates) GetCertificate(ctx context.Context, controlPlaneID string } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Certificate - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Certificate = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -683,8 +662,6 @@ func (s *Certificates) GetCertificate(ctx context.Context, controlPlaneID string return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -707,16 +684,21 @@ func (s *Certificates) GetCertificate(ctx context.Context, controlPlaneID string } -// UpsertCertificate - Upsert a Certificate -// Create or Update Certificate using ID. -func (s *Certificates) UpsertCertificate(ctx context.Context, request operations.UpsertCertificateRequest, opts ...operations.Option) (*operations.UpsertCertificateResponse, error) { +// GetCertificate - Fetch a Certificate +// Get a Certificate using ID. +func (s *Certificates) GetCertificate(ctx context.Context, certificateID string, controlPlaneID string, opts ...operations.Option) (*operations.GetCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-certificate", + OperationID: "get-certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetCertificateRequest{ + CertificateID: certificateID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -735,11 +717,6 @@ func (s *Certificates) UpsertCertificate(ctx context.Context, request operations return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Certificate", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -751,13 +728,12 @@ func (s *Certificates) UpsertCertificate(ctx context.Context, request operations defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -833,7 +809,7 @@ func (s *Certificates) UpsertCertificate(ctx context.Context, request operations _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -848,7 +824,7 @@ func (s *Certificates) UpsertCertificate(ctx context.Context, request operations } } - res := &operations.UpsertCertificateResponse{ + res := &operations.GetCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -909,6 +885,8 @@ func (s *Certificates) UpsertCertificate(ctx context.Context, request operations return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -931,21 +909,16 @@ func (s *Certificates) UpsertCertificate(ctx context.Context, request operations } -// DeleteCertificate - Delete a Certificate -// Delete a Certificate -func (s *Certificates) DeleteCertificate(ctx context.Context, controlPlaneID string, certificateID string, opts ...operations.Option) (*operations.DeleteCertificateResponse, error) { +// UpsertCertificate - Upsert a Certificate +// Create or Update Certificate using ID. +func (s *Certificates) UpsertCertificate(ctx context.Context, request operations.UpsertCertificateRequest, opts ...operations.Option) (*operations.UpsertCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-certificate", + OperationID: "upsert-certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteCertificateRequest{ - ControlPlaneID: controlPlaneID, - CertificateID: certificateID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -964,6 +937,11 @@ func (s *Certificates) DeleteCertificate(ctx context.Context, controlPlaneID str return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Certificate", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -975,12 +953,13 @@ func (s *Certificates) DeleteCertificate(ctx context.Context, controlPlaneID str defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1071,7 +1050,7 @@ func (s *Certificates) DeleteCertificate(ctx context.Context, controlPlaneID str } } - res := &operations.DeleteCertificateResponse{ + res := &operations.UpsertCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1088,7 +1067,28 @@ func (s *Certificates) DeleteCertificate(ctx context.Context, controlPlaneID str } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Certificate + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Certificate = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/consumergroups.go b/consumergroups.go index 223e4d3..6d6161e 100644 --- a/consumergroups.go +++ b/consumergroups.go @@ -479,9 +479,211 @@ func (s *ConsumerGroups) CreateConsumerGroup(ctx context.Context, controlPlaneID } +// DeleteConsumerGroup - Delete a Consumer Group +// Delete a Consumer Group +func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID string, consumerGroupID string, opts ...operations.Option) (*operations.DeleteConsumerGroupResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "delete-consumer_group", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + request := operations.DeleteConsumerGroupRequest{ + ControlPlaneID: controlPlaneID, + ConsumerGroupID: consumerGroupID, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + opURL, err := utils.GenerateURL(ctx, baseURL, "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil { + copyBody, err := req.GetBody() + if err != nil { + return nil, err + } + req.Body = copyBody + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, backoff.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.DeleteConsumerGroupResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + getRawBody := func() ([]byte, error) { + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + return rawBody, nil + } + + switch { + case httpRes.StatusCode == 204: + case httpRes.StatusCode == 401: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out sdkerrors.GatewayUnauthorizedError + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + return nil, &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // GetConsumerGroup - Fetch a Consumer Group // Get a Consumer Group using ID. -func (s *ConsumerGroups) GetConsumerGroup(ctx context.Context, controlPlaneID string, consumerGroupID string, opts ...operations.Option) (*operations.GetConsumerGroupResponse, error) { +func (s *ConsumerGroups) GetConsumerGroup(ctx context.Context, consumerGroupID string, controlPlaneID string, opts ...operations.Option) (*operations.GetConsumerGroupResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, OperationID: "get-consumer_group", @@ -490,8 +692,8 @@ func (s *ConsumerGroups) GetConsumerGroup(ctx context.Context, controlPlaneID st } request := operations.GetConsumerGroupRequest{ - ControlPlaneID: controlPlaneID, ConsumerGroupID: consumerGroupID, + ControlPlaneID: controlPlaneID, } o := operations.Options{} @@ -644,12 +846,12 @@ func (s *ConsumerGroups) GetConsumerGroup(ctx context.Context, controlPlaneID st return nil, err } - var out components.ConsumerGroup + var out components.ConsumerGroupInsideWrapper if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConsumerGroup = &out + res.ConsumerGroupInsideWrapper = &out default: rawBody, err := getRawBody() if err != nil { @@ -928,21 +1130,16 @@ func (s *ConsumerGroups) UpsertConsumerGroup(ctx context.Context, request operat } -// DeleteConsumerGroup - Delete a Consumer Group -// Delete a Consumer Group -func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID string, consumerGroupID string, opts ...operations.Option) (*operations.DeleteConsumerGroupResponse, error) { +// AddConsumerToGroup - Add consumer to consumer group +// Add a consumer to a consumer group +func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operations.AddConsumerToGroupRequest, opts ...operations.Option) (*operations.AddConsumerToGroupResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-consumer_group", + OperationID: "add-consumer-to-group", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteConsumerGroupRequest{ - ControlPlaneID: controlPlaneID, - ConsumerGroupID: consumerGroupID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -956,11 +1153,16 @@ func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}/consumers", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -972,12 +1174,13 @@ func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1053,7 +1256,7 @@ func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1068,7 +1271,7 @@ func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID } } - res := &operations.DeleteConsumerGroupResponse{ + res := &operations.AddConsumerToGroupResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1085,8 +1288,7 @@ func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID } switch { - case httpRes.StatusCode == 204: - case httpRes.StatusCode == 401: + case httpRes.StatusCode == 201: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): rawBody, err := getRawBody() @@ -1094,12 +1296,12 @@ func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID return nil, err } - var out sdkerrors.GatewayUnauthorizedError + var out operations.AddConsumerToGroupResponseBody if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - return nil, &out + res.Object = &out default: rawBody, err := getRawBody() if err != nil { @@ -1130,12 +1332,12 @@ func (s *ConsumerGroups) DeleteConsumerGroup(ctx context.Context, controlPlaneID } -// AddConsumerToGroup - Add consumer to consumer group -// Add a consumer to a consumer group -func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operations.AddConsumerToGroupRequest, opts ...operations.Option) (*operations.AddConsumerToGroupResponse, error) { +// RemoveConsumerFromGroup - Remove consumer from consumer group +// Remove a consumer from a consumer group +func (s *ConsumerGroups) RemoveConsumerFromGroup(ctx context.Context, request operations.RemoveConsumerFromGroupRequest, opts ...operations.Option) (*operations.RemoveConsumerFromGroupResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "add-consumer-to-group", + OperationID: "remove-consumer-from-group", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1153,16 +1355,11 @@ func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operati } baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - opURL, err := utils.GenerateURL(ctx, baseURL, "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}/consumers", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}/consumers/{ConsumerId}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1174,13 +1371,12 @@ func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operati defer cancel() } - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1271,7 +1467,7 @@ func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operati } } - res := &operations.AddConsumerToGroupResponse{ + res := &operations.RemoveConsumerFromGroupResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1288,28 +1484,7 @@ func (s *ConsumerGroups) AddConsumerToGroup(ctx context.Context, request operati } switch { - case httpRes.StatusCode == 201: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out operations.AddConsumerToGroupResponseBody - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Object = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/consumers.go b/consumers.go index 32f47d1..ee91ccf 100644 --- a/consumers.go +++ b/consumers.go @@ -479,17 +479,17 @@ func (s *Consumers) CreateConsumer(ctx context.Context, controlPlaneID string, c } -// GetConsumer - Fetch a Consumer -// Get a Consumer using ID or username. -func (s *Consumers) GetConsumer(ctx context.Context, controlPlaneID string, consumerID string, opts ...operations.Option) (*operations.GetConsumerResponse, error) { +// DeleteConsumer - Delete a Consumer +// Delete a Consumer +func (s *Consumers) DeleteConsumer(ctx context.Context, controlPlaneID string, consumerID string, opts ...operations.Option) (*operations.DeleteConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-consumer", + OperationID: "delete-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetConsumerRequest{ + request := operations.DeleteConsumerRequest{ ControlPlaneID: controlPlaneID, ConsumerID: consumerID, } @@ -523,7 +523,7 @@ func (s *Consumers) GetConsumer(ctx context.Context, controlPlaneID string, cons defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -604,7 +604,7 @@ func (s *Consumers) GetConsumer(ctx context.Context, controlPlaneID string, cons _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -619,7 +619,7 @@ func (s *Consumers) GetConsumer(ctx context.Context, controlPlaneID string, cons } } - res := &operations.GetConsumerResponse{ + res := &operations.DeleteConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -636,28 +636,7 @@ func (s *Consumers) GetConsumer(ctx context.Context, controlPlaneID string, cons } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Consumer - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Consumer = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -680,8 +659,6 @@ func (s *Consumers) GetConsumer(ctx context.Context, controlPlaneID string, cons return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -704,16 +681,21 @@ func (s *Consumers) GetConsumer(ctx context.Context, controlPlaneID string, cons } -// UpsertConsumer - Upsert a Consumer -// Create or Update Consumer using ID or username. -func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.UpsertConsumerRequest, opts ...operations.Option) (*operations.UpsertConsumerResponse, error) { +// GetConsumer - Fetch a Consumer +// Get a Consumer using ID or username. +func (s *Consumers) GetConsumer(ctx context.Context, consumerID string, controlPlaneID string, opts ...operations.Option) (*operations.GetConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-consumer", + OperationID: "get-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetConsumerRequest{ + ConsumerID: consumerID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -732,11 +714,6 @@ func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.Upser return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Consumer", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -748,13 +725,12 @@ func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.Upser defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -830,7 +806,7 @@ func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.Upser _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -845,7 +821,7 @@ func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.Upser } } - res := &operations.UpsertConsumerResponse{ + res := &operations.GetConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -906,6 +882,8 @@ func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.Upser return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -928,21 +906,16 @@ func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.Upser } -// DeleteConsumer - Delete a Consumer -// Delete a Consumer -func (s *Consumers) DeleteConsumer(ctx context.Context, controlPlaneID string, consumerID string, opts ...operations.Option) (*operations.DeleteConsumerResponse, error) { +// UpsertConsumer - Upsert a Consumer +// Create or Update Consumer using ID or username. +func (s *Consumers) UpsertConsumer(ctx context.Context, request operations.UpsertConsumerRequest, opts ...operations.Option) (*operations.UpsertConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-consumer", + OperationID: "upsert-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteConsumerRequest{ - ControlPlaneID: controlPlaneID, - ConsumerID: consumerID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -961,6 +934,11 @@ func (s *Consumers) DeleteConsumer(ctx context.Context, controlPlaneID string, c return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Consumer", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -972,12 +950,13 @@ func (s *Consumers) DeleteConsumer(ctx context.Context, controlPlaneID string, c defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1068,7 +1047,7 @@ func (s *Consumers) DeleteConsumer(ctx context.Context, controlPlaneID string, c } } - res := &operations.DeleteConsumerResponse{ + res := &operations.UpsertConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1085,7 +1064,28 @@ func (s *Consumers) DeleteConsumer(ctx context.Context, controlPlaneID string, c } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Consumer + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Consumer = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/controlplanes.go b/controlplanes.go index ddf6b64..6cc0f01 100644 --- a/controlplanes.go +++ b/controlplanes.go @@ -650,7 +650,7 @@ func (s *ControlPlanes) CreateControlPlane(ctx context.Context, request componen } // GetControlPlane - Fetch Control Plane -// Returns information about a team from a given team ID. +// Returns information about an individual control plane. func (s *ControlPlanes) GetControlPlane(ctx context.Context, id string, opts ...operations.Option) (*operations.GetControlPlaneResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, diff --git a/custompluginschemas.go b/custompluginschemas.go index 80a15f8..f8d6f2e 100644 --- a/custompluginschemas.go +++ b/custompluginschemas.go @@ -855,16 +855,21 @@ func (s *CustomPluginSchemas) GetPluginSchema(ctx context.Context, controlPlaneI } -// UpdatePluginSchemas - Create or update a custom plugin schema -// Create or update an individual custom plugin schema. -func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request operations.UpdatePluginSchemasRequest, opts ...operations.Option) (*operations.UpdatePluginSchemasResponse, error) { +// DeletePluginSchemas - Delete custom plugin schema +// Delete an individual custom plugin schema. +func (s *CustomPluginSchemas) DeletePluginSchemas(ctx context.Context, controlPlaneID string, name string, opts ...operations.Option) (*operations.DeletePluginSchemasResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "update-plugin-schemas", + OperationID: "delete-plugin-schemas", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.DeletePluginSchemasRequest{ + ControlPlaneID: controlPlaneID, + Name: name, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -883,11 +888,6 @@ func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request o return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreatePluginSchemas", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -899,13 +899,12 @@ func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request o defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "application/problem+json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -996,7 +995,7 @@ func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request o } } - res := &operations.UpdatePluginSchemasResponse{ + res := &operations.DeletePluginSchemasResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1013,28 +1012,7 @@ func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request o } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.PluginSchemas - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.PluginSchemas = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/problem+json`): @@ -1123,21 +1101,16 @@ func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request o } -// DeletePluginSchemas - Delete custom plugin schema -// Delete an individual custom plugin schema. -func (s *CustomPluginSchemas) DeletePluginSchemas(ctx context.Context, controlPlaneID string, name string, opts ...operations.Option) (*operations.DeletePluginSchemasResponse, error) { +// UpdatePluginSchemas - Create or update a custom plugin schema +// Create or update an individual custom plugin schema. +func (s *CustomPluginSchemas) UpdatePluginSchemas(ctx context.Context, request operations.UpdatePluginSchemasRequest, opts ...operations.Option) (*operations.UpdatePluginSchemasResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-plugin-schemas", + OperationID: "update-plugin-schemas", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeletePluginSchemasRequest{ - ControlPlaneID: controlPlaneID, - Name: name, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1156,6 +1129,11 @@ func (s *CustomPluginSchemas) DeletePluginSchemas(ctx context.Context, controlPl return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreatePluginSchemas", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1167,12 +1145,13 @@ func (s *CustomPluginSchemas) DeletePluginSchemas(ctx context.Context, controlPl defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/problem+json") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1263,7 +1242,7 @@ func (s *CustomPluginSchemas) DeletePluginSchemas(ctx context.Context, controlPl } } - res := &operations.DeletePluginSchemasResponse{ + res := &operations.UpdatePluginSchemasResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1280,7 +1259,28 @@ func (s *CustomPluginSchemas) DeletePluginSchemas(ctx context.Context, controlPl } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.PluginSchemas + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.PluginSchemas = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/problem+json`): diff --git a/docs/models/components/active.md b/docs/models/components/active.md index 4d56bf9..d713d65 100644 --- a/docs/models/components/active.md +++ b/docs/models/components/active.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `Concurrency` | **int64* | :heavy_minus_sign: | N/A | -| `Headers` | map[string]*string* | :heavy_minus_sign: | N/A | +| `Headers` | map[string]*any* | :heavy_minus_sign: | N/A | | `Healthy` | [*components.Healthy](../../models/components/healthy.md) | :heavy_minus_sign: | N/A | | `HTTPPath` | **string* | :heavy_minus_sign: | N/A | | `HTTPSSni` | **string* | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/authenticationsettings.md b/docs/models/components/authenticationsettings.md index 7fd65c7..0eafcca 100644 --- a/docs/models/components/authenticationsettings.md +++ b/docs/models/components/authenticationsettings.md @@ -7,5 +7,6 @@ | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | | `BasicAuthEnabled` | **bool* | :heavy_minus_sign: | The organization has basic auth enabled. | true | | `OidcAuthEnabled` | **bool* | :heavy_minus_sign: | The organization has OIDC disabled. | false | +| `SamlAuthEnabled` | **bool* | :heavy_minus_sign: | The organization has SAML disabled. | false | | `IdpMappingEnabled` | **bool* | :heavy_minus_sign: | IdP groups determine the Konnect teams a user has. | true | | `KonnectMappingEnabled` | **bool* | :heavy_minus_sign: | A Konnect Identity Admin assigns teams to a user. | false | \ No newline at end of file diff --git a/docs/models/components/consumergroupinsidewrapper.md b/docs/models/components/consumergroupinsidewrapper.md new file mode 100644 index 0000000..93542f5 --- /dev/null +++ b/docs/models/components/consumergroupinsidewrapper.md @@ -0,0 +1,8 @@ +# ConsumerGroupInsideWrapper + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `ConsumerGroup` | [*components.ConsumerGroup](../../models/components/consumergroup.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/controlplanesummaryclustertype.md b/docs/models/components/controlplanesummaryclustertype.md index 0a85d73..a0ab750 100644 --- a/docs/models/components/controlplanesummaryclustertype.md +++ b/docs/models/components/controlplanesummaryclustertype.md @@ -10,4 +10,5 @@ The ClusterType value of the cluster associated with the Control Plane. | `ControlPlaneSummaryClusterTypeClusterTypeControlPlane` | CLUSTER_TYPE_CONTROL_PLANE | | `ControlPlaneSummaryClusterTypeClusterTypeHybrid` | CLUSTER_TYPE_HYBRID | | `ControlPlaneSummaryClusterTypeClusterTypeK8SIngressController` | CLUSTER_TYPE_K8S_INGRESS_CONTROLLER | -| `ControlPlaneSummaryClusterTypeClusterTypeControlPlaneGroup` | CLUSTER_TYPE_CONTROL_PLANE_GROUP | \ No newline at end of file +| `ControlPlaneSummaryClusterTypeClusterTypeControlPlaneGroup` | CLUSTER_TYPE_CONTROL_PLANE_GROUP | +| `ControlPlaneSummaryClusterTypeClusterTypeServerless` | CLUSTER_TYPE_SERVERLESS | \ No newline at end of file diff --git a/docs/models/components/updateauthenticationsettings.md b/docs/models/components/updateauthenticationsettings.md index 6fe084f..66709a9 100644 --- a/docs/models/components/updateauthenticationsettings.md +++ b/docs/models/components/updateauthenticationsettings.md @@ -7,5 +7,6 @@ | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | | `BasicAuthEnabled` | **bool* | :heavy_minus_sign: | The organization has basic auth enabled. | true | | `OidcAuthEnabled` | **bool* | :heavy_minus_sign: | The organization has OIDC disabled. | false | +| `SamlAuthEnabled` | **bool* | :heavy_minus_sign: | The organization has SAML disabled. | false | | `IdpMappingEnabled` | **bool* | :heavy_minus_sign: | Whether IdP groups determine the Konnect teams a user has. | true | | `KonnectMappingEnabled` | **bool* | :heavy_minus_sign: | Whether a Konnect Identity Admin assigns teams to a user. | false | \ No newline at end of file diff --git a/docs/models/operations/addconsumertogrouprequest.md b/docs/models/operations/addconsumertogrouprequest.md index c582aab..cc1453d 100644 --- a/docs/models/operations/addconsumertogrouprequest.md +++ b/docs/models/operations/addconsumertogrouprequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `ConsumerGroupID` | *string* | :heavy_check_mark: | ID of the Consumer Group to lookup | | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerGroupID` | *string* | :heavy_check_mark: | N/A | | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `RequestBody` | [*operations.AddConsumerToGroupRequestBody](../../models/operations/addconsumertogrouprequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/addconsumertogrouprequestbody.md b/docs/models/operations/addconsumertogrouprequestbody.md index 0d08146..d065455 100644 --- a/docs/models/operations/addconsumertogrouprequestbody.md +++ b/docs/models/operations/addconsumertogrouprequestbody.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `Consumer` | **string* | :heavy_minus_sign: | N/A | bob | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `ConsumerID` | **string* | :heavy_minus_sign: | N/A | cf4c7e60-11db-49dd-b300-7c7e5f0f7e6b | \ No newline at end of file diff --git a/docs/models/operations/addconsumertogroupresponse.md b/docs/models/operations/addconsumertogroupresponse.md index 661c6bc..bbb9043 100644 --- a/docs/models/operations/addconsumertogroupresponse.md +++ b/docs/models/operations/addconsumertogroupresponse.md @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Object` | [*operations.AddConsumerToGroupResponseBody](../../models/operations/addconsumertogroupresponsebody.md) | :heavy_minus_sign: | Consumer Added | \ No newline at end of file +| `Object` | [*operations.AddConsumerToGroupResponseBody](../../models/operations/addconsumertogroupresponsebody.md) | :heavy_minus_sign: | Consumer added to group | \ No newline at end of file diff --git a/docs/models/operations/addconsumertogroupresponsebody.md b/docs/models/operations/addconsumertogroupresponsebody.md index 04edd45..5393014 100644 --- a/docs/models/operations/addconsumertogroupresponsebody.md +++ b/docs/models/operations/addconsumertogroupresponsebody.md @@ -1,11 +1,11 @@ # AddConsumerToGroupResponseBody -Consumer Added +Consumer added to group ## Fields | Field | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `Consumer` | [*components.Consumer](../../models/components/consumer.md) | :heavy_minus_sign: | N/A | -| `ConsumerGroup` | [*components.ConsumerGroup](../../models/components/consumergroup.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `ConsumerGroup` | [*components.ConsumerGroup](../../models/components/consumergroup.md) | :heavy_minus_sign: | N/A | +| `Consumers` | [][components.Consumer](../../models/components/consumer.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createaclwithconsumerrequest.md b/docs/models/operations/createaclwithconsumerrequest.md index 4cd5e4f..fbe8cd6 100644 --- a/docs/models/operations/createaclwithconsumerrequest.md +++ b/docs/models/operations/createaclwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `ACLWithoutParents` | [components.ACLWithoutParents](../../models/components/aclwithoutparents.md) | :heavy_check_mark: | Description of new ACL for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `ACLWithoutParents` | [components.ACLWithoutParents](../../models/components/aclwithoutparents.md) | :heavy_check_mark: | Description of new ACL for creation | | \ No newline at end of file diff --git a/docs/models/operations/createbasicauthwithconsumerrequest.md b/docs/models/operations/createbasicauthwithconsumerrequest.md index aef9ca0..7d90da2 100644 --- a/docs/models/operations/createbasicauthwithconsumerrequest.md +++ b/docs/models/operations/createbasicauthwithconsumerrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `BasicAuthWithoutParents` | [components.BasicAuthWithoutParents](../../models/components/basicauthwithoutparents.md) | :heavy_check_mark: | Description of new Basic-auth credential for creation | | \ No newline at end of file diff --git a/docs/models/operations/createcacertificaterequest.md b/docs/models/operations/createcacertificaterequest.md index df747a4..50979a0 100644 --- a/docs/models/operations/createcacertificaterequest.md +++ b/docs/models/operations/createcacertificaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CACertificate` | [components.CACertificateInput](../../models/components/cacertificateinput.md) | :heavy_check_mark: | Description of the new CA Certificate for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CACertificate` | [components.CACertificateInput](../../models/components/cacertificateinput.md) | :heavy_check_mark: | Description of the new CA Certificate for creation | | \ No newline at end of file diff --git a/docs/models/operations/createcertificaterequest.md b/docs/models/operations/createcertificaterequest.md index 33bb238..a40f84a 100644 --- a/docs/models/operations/createcertificaterequest.md +++ b/docs/models/operations/createcertificaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Certificate` | [components.CertificateInput](../../models/components/certificateinput.md) | :heavy_check_mark: | Description of the new Certificate for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Certificate` | [components.CertificateInput](../../models/components/certificateinput.md) | :heavy_check_mark: | Description of the new Certificate for creation | | \ No newline at end of file diff --git a/docs/models/operations/createconsumergrouprequest.md b/docs/models/operations/createconsumergrouprequest.md index 8933368..d667a8b 100644 --- a/docs/models/operations/createconsumergrouprequest.md +++ b/docs/models/operations/createconsumergrouprequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerGroup` | [components.ConsumerGroupInput](../../models/components/consumergroupinput.md) | :heavy_check_mark: | Description of the new Consumer Group for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerGroup` | [components.ConsumerGroupInput](../../models/components/consumergroupinput.md) | :heavy_check_mark: | Description of the new Consumer Group for creation | | \ No newline at end of file diff --git a/docs/models/operations/createconsumerrequest.md b/docs/models/operations/createconsumerrequest.md index cf2e220..99bee21 100644 --- a/docs/models/operations/createconsumerrequest.md +++ b/docs/models/operations/createconsumerrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Consumer` | [components.ConsumerInput](../../models/components/consumerinput.md) | :heavy_check_mark: | Description of the new Consumer for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Consumer` | [components.ConsumerInput](../../models/components/consumerinput.md) | :heavy_check_mark: | Description of the new Consumer for creation | | \ No newline at end of file diff --git a/docs/models/operations/createhmacauthwithconsumerrequest.md b/docs/models/operations/createhmacauthwithconsumerrequest.md index a2e3251..66c70d6 100644 --- a/docs/models/operations/createhmacauthwithconsumerrequest.md +++ b/docs/models/operations/createhmacauthwithconsumerrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `HMACAuthWithoutParents` | [components.HMACAuthWithoutParents](../../models/components/hmacauthwithoutparents.md) | :heavy_check_mark: | Description of new HMAC-auth credential for creation | | \ No newline at end of file diff --git a/docs/models/operations/createjwtwithconsumerrequest.md b/docs/models/operations/createjwtwithconsumerrequest.md index 1c07730..a092c70 100644 --- a/docs/models/operations/createjwtwithconsumerrequest.md +++ b/docs/models/operations/createjwtwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `JWTWithoutParents` | [components.JWTWithoutParents](../../models/components/jwtwithoutparents.md) | :heavy_check_mark: | Description of new JWT for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `JWTWithoutParents` | [components.JWTWithoutParents](../../models/components/jwtwithoutparents.md) | :heavy_check_mark: | Description of new JWT for creation | | \ No newline at end of file diff --git a/docs/models/operations/createkeyauthwithconsumerrequest.md b/docs/models/operations/createkeyauthwithconsumerrequest.md index a35d8da..eddf85a 100644 --- a/docs/models/operations/createkeyauthwithconsumerrequest.md +++ b/docs/models/operations/createkeyauthwithconsumerrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `KeyAuthWithoutParents` | [components.KeyAuthWithoutParents](../../models/components/keyauthwithoutparents.md) | :heavy_check_mark: | Description of new API-key for creation | | \ No newline at end of file diff --git a/docs/models/operations/createkeyrequest.md b/docs/models/operations/createkeyrequest.md index aa3a142..ae1a607 100644 --- a/docs/models/operations/createkeyrequest.md +++ b/docs/models/operations/createkeyrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Key` | [components.KeyInput](../../models/components/keyinput.md) | :heavy_check_mark: | Description of the new Key for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Key` | [components.KeyInput](../../models/components/keyinput.md) | :heavy_check_mark: | Description of the new Key for creation | | \ No newline at end of file diff --git a/docs/models/operations/createkeysetrequest.md b/docs/models/operations/createkeysetrequest.md index bb6ff5d..e082184 100644 --- a/docs/models/operations/createkeysetrequest.md +++ b/docs/models/operations/createkeysetrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `KeySet` | [components.KeySetInput](../../models/components/keysetinput.md) | :heavy_check_mark: | Description of the new KeySet for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `KeySet` | [components.KeySetInput](../../models/components/keysetinput.md) | :heavy_check_mark: | Description of the new KeySet for creation | | \ No newline at end of file diff --git a/docs/models/operations/createpluginrequest.md b/docs/models/operations/createpluginrequest.md index 2dcd03d..d05e6f8 100644 --- a/docs/models/operations/createpluginrequest.md +++ b/docs/models/operations/createpluginrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Plugin` | [components.PluginInput](../../models/components/plugininput.md) | :heavy_check_mark: | Description of the new Plugin for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Plugin` | [components.PluginInput](../../models/components/plugininput.md) | :heavy_check_mark: | Description of the new Plugin for creation | | \ No newline at end of file diff --git a/docs/models/operations/createpluginwithrouterequest.md b/docs/models/operations/createpluginwithrouterequest.md index 97bd7d8..84bf8bb 100644 --- a/docs/models/operations/createpluginwithrouterequest.md +++ b/docs/models/operations/createpluginwithrouterequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | | `PluginWithoutParents` | [components.PluginWithoutParents](../../models/components/pluginwithoutparents.md) | :heavy_check_mark: | Description of new Plugin for creation | | \ No newline at end of file diff --git a/docs/models/operations/createpluginwithservicerequest.md b/docs/models/operations/createpluginwithservicerequest.md index 5dc04af..8ff2f02 100644 --- a/docs/models/operations/createpluginwithservicerequest.md +++ b/docs/models/operations/createpluginwithservicerequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | | `PluginWithoutParents` | [components.PluginWithoutParents](../../models/components/pluginwithoutparents.md) | :heavy_check_mark: | Description of new Plugin for creation | | \ No newline at end of file diff --git a/docs/models/operations/createrouterequest.md b/docs/models/operations/createrouterequest.md index 07bd2ec..c70af1a 100644 --- a/docs/models/operations/createrouterequest.md +++ b/docs/models/operations/createrouterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Route` | [components.RouteInput](../../models/components/routeinput.md) | :heavy_check_mark: | Description of the new Route for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Route` | [components.RouteInput](../../models/components/routeinput.md) | :heavy_check_mark: | Description of the new Route for creation | | \ No newline at end of file diff --git a/docs/models/operations/createroutewithservicerequest.md b/docs/models/operations/createroutewithservicerequest.md index 7c9711f..7da47f7 100644 --- a/docs/models/operations/createroutewithservicerequest.md +++ b/docs/models/operations/createroutewithservicerequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | -| `RouteWithoutParents` | [components.RouteWithoutParents](../../models/components/routewithoutparents.md) | :heavy_check_mark: | Description of new Route for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `RouteWithoutParents` | [components.RouteWithoutParents](../../models/components/routewithoutparents.md) | :heavy_check_mark: | Description of new Route for creation | | \ No newline at end of file diff --git a/docs/models/operations/createservicerequest.md b/docs/models/operations/createservicerequest.md index 2649ff7..835af75 100644 --- a/docs/models/operations/createservicerequest.md +++ b/docs/models/operations/createservicerequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Service` | [components.ServiceInput](../../models/components/serviceinput.md) | :heavy_check_mark: | Description of the new Service for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Service` | [components.ServiceInput](../../models/components/serviceinput.md) | :heavy_check_mark: | Description of the new Service for creation | | \ No newline at end of file diff --git a/docs/models/operations/createsnirequest.md b/docs/models/operations/createsnirequest.md index 3403047..875da4c 100644 --- a/docs/models/operations/createsnirequest.md +++ b/docs/models/operations/createsnirequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Sni` | [components.SNIInput](../../models/components/sniinput.md) | :heavy_check_mark: | Description of the new SNI for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Sni` | [components.SNIInput](../../models/components/sniinput.md) | :heavy_check_mark: | Description of the new SNI for creation | | \ No newline at end of file diff --git a/docs/models/operations/createsniwithcertificaterequest.md b/docs/models/operations/createsniwithcertificaterequest.md index 5764923..f8d58c0 100644 --- a/docs/models/operations/createsniwithcertificaterequest.md +++ b/docs/models/operations/createsniwithcertificaterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | -| `SNIWithoutParents` | [components.SNIWithoutParents](../../models/components/sniwithoutparents.md) | :heavy_check_mark: | Description of new SNI for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | +| `SNIWithoutParents` | [components.SNIWithoutParents](../../models/components/sniwithoutparents.md) | :heavy_check_mark: | Description of new SNI for creation | | \ No newline at end of file diff --git a/docs/models/operations/createtargetwithupstreamrequest.md b/docs/models/operations/createtargetwithupstreamrequest.md index 77e03a9..cc2c550 100644 --- a/docs/models/operations/createtargetwithupstreamrequest.md +++ b/docs/models/operations/createtargetwithupstreamrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `UpstreamIDForTarget` | *string* | :heavy_check_mark: | ID or target of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | | `TargetWithoutParents` | [components.TargetWithoutParents](../../models/components/targetwithoutparents.md) | :heavy_check_mark: | Description of new Target for creation | | \ No newline at end of file diff --git a/docs/models/operations/createupstreamrequest.md b/docs/models/operations/createupstreamrequest.md index 48253e6..e4e6c3c 100644 --- a/docs/models/operations/createupstreamrequest.md +++ b/docs/models/operations/createupstreamrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Upstream` | [components.UpstreamInput](../../models/components/upstreaminput.md) | :heavy_check_mark: | Description of the new Upstream for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Upstream` | [components.UpstreamInput](../../models/components/upstreaminput.md) | :heavy_check_mark: | Description of the new Upstream for creation | | \ No newline at end of file diff --git a/docs/models/operations/createvaultrequest.md b/docs/models/operations/createvaultrequest.md index e5d2474..66984b3 100644 --- a/docs/models/operations/createvaultrequest.md +++ b/docs/models/operations/createvaultrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `Vault` | [components.VaultInput](../../models/components/vaultinput.md) | :heavy_check_mark: | Description of the new Vault for creation | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Vault` | [components.VaultInput](../../models/components/vaultinput.md) | :heavy_check_mark: | Description of the new Vault for creation | | \ No newline at end of file diff --git a/docs/models/operations/deleteaclwithconsumerrequest.md b/docs/models/operations/deleteaclwithconsumerrequest.md index 53caea3..fc1383d 100644 --- a/docs/models/operations/deleteaclwithconsumerrequest.md +++ b/docs/models/operations/deleteaclwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `ACLID` | *string* | :heavy_check_mark: | ID of the ACL to lookup | f28acbfa-c866-4587-b688-0208ac24df21 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `ACLID` | *string* | :heavy_check_mark: | ID of the ACL to lookup | f28acbfa-c866-4587-b688-0208ac24df21 | \ No newline at end of file diff --git a/docs/models/operations/deletebasicauthwithconsumerrequest.md b/docs/models/operations/deletebasicauthwithconsumerrequest.md index 4adfc92..2c51f67 100644 --- a/docs/models/operations/deletebasicauthwithconsumerrequest.md +++ b/docs/models/operations/deletebasicauthwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `BasicAuthID` | *string* | :heavy_check_mark: | ID of the Basic-auth credential to lookup | 80db1b58-ca7c-4d21-b92a-64eb07725872 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `BasicAuthID` | *string* | :heavy_check_mark: | ID of the Basic-auth credential to lookup | 80db1b58-ca7c-4d21-b92a-64eb07725872 | \ No newline at end of file diff --git a/docs/models/operations/deletecacertificaterequest.md b/docs/models/operations/deletecacertificaterequest.md index 40bd522..49c4bd7 100644 --- a/docs/models/operations/deletecacertificaterequest.md +++ b/docs/models/operations/deletecacertificaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CACertificateID` | *string* | :heavy_check_mark: | ID of the CA Certificate to lookup | 3c31f18a-f27a-4f9b-8cd4-bf841554612f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CACertificateID` | *string* | :heavy_check_mark: | ID of the CA Certificate to lookup | 3c31f18a-f27a-4f9b-8cd4-bf841554612f | \ No newline at end of file diff --git a/docs/models/operations/deletecertificaterequest.md b/docs/models/operations/deletecertificaterequest.md index 9909d32..f8d0c56 100644 --- a/docs/models/operations/deletecertificaterequest.md +++ b/docs/models/operations/deletecertificaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | \ No newline at end of file diff --git a/docs/models/operations/deleteconsumergrouprequest.md b/docs/models/operations/deleteconsumergrouprequest.md index a9cf21d..ebb1e50 100644 --- a/docs/models/operations/deleteconsumergrouprequest.md +++ b/docs/models/operations/deleteconsumergrouprequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerGroupID` | *string* | :heavy_check_mark: | ID of the Consumer Group to lookup | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerGroupID` | *string* | :heavy_check_mark: | ID of the Consumer Group to lookup | | \ No newline at end of file diff --git a/docs/models/operations/deleteconsumerrequest.md b/docs/models/operations/deleteconsumerrequest.md index dc6c770..f83e88d 100644 --- a/docs/models/operations/deleteconsumerrequest.md +++ b/docs/models/operations/deleteconsumerrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerID` | *string* | :heavy_check_mark: | ID of the Consumer to lookup | c1059869-6fa7-4329-a5f5-5946d14ca2c5 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerID` | *string* | :heavy_check_mark: | ID of the Consumer to lookup | c1059869-6fa7-4329-a5f5-5946d14ca2c5 | \ No newline at end of file diff --git a/docs/models/operations/deletehmacauthwithconsumerrequest.md b/docs/models/operations/deletehmacauthwithconsumerrequest.md index 1e69d4b..95fac5c 100644 --- a/docs/models/operations/deletehmacauthwithconsumerrequest.md +++ b/docs/models/operations/deletehmacauthwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `HMACAuthID` | *string* | :heavy_check_mark: | ID of the HMAC-auth credential to lookup | 70e7b00b-72f2-471b-a5ce-9c4171775360 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `HMACAuthID` | *string* | :heavy_check_mark: | ID of the HMAC-auth credential to lookup | 70e7b00b-72f2-471b-a5ce-9c4171775360 | \ No newline at end of file diff --git a/docs/models/operations/deletejwtwithconsumerrequest.md b/docs/models/operations/deletejwtwithconsumerrequest.md index d7847d2..d7ad971 100644 --- a/docs/models/operations/deletejwtwithconsumerrequest.md +++ b/docs/models/operations/deletejwtwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `JWTID` | *string* | :heavy_check_mark: | ID of the JWT to lookup | 4a7f5faa-8c96-46d6-8214-c87573ef2ac4 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `JWTID` | *string* | :heavy_check_mark: | ID of the JWT to lookup | 4a7f5faa-8c96-46d6-8214-c87573ef2ac4 | \ No newline at end of file diff --git a/docs/models/operations/deletekeyauthwithconsumerrequest.md b/docs/models/operations/deletekeyauthwithconsumerrequest.md index d92c88f..551fe78 100644 --- a/docs/models/operations/deletekeyauthwithconsumerrequest.md +++ b/docs/models/operations/deletekeyauthwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `KeyAuthID` | *string* | :heavy_check_mark: | ID of the API-key to lookup | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `KeyAuthID` | *string* | :heavy_check_mark: | ID of the API-key to lookup | | \ No newline at end of file diff --git a/docs/models/operations/deletekeyrequest.md b/docs/models/operations/deletekeyrequest.md index 8be5d5c..727c292 100644 --- a/docs/models/operations/deletekeyrequest.md +++ b/docs/models/operations/deletekeyrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `KeyID` | *string* | :heavy_check_mark: | ID of the Key to lookup | bba22c06-a632-42be-a018-1b9ff357b5b9 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `KeyID` | *string* | :heavy_check_mark: | ID of the Key to lookup | bba22c06-a632-42be-a018-1b9ff357b5b9 | \ No newline at end of file diff --git a/docs/models/operations/deletekeysetrequest.md b/docs/models/operations/deletekeysetrequest.md index d848c66..a4eb2d7 100644 --- a/docs/models/operations/deletekeysetrequest.md +++ b/docs/models/operations/deletekeysetrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `KeySetID` | *string* | :heavy_check_mark: | ID of the KeySet to lookup | 6cc34248-50b4-4a81-9201-3bdf7a83f712 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `KeySetID` | *string* | :heavy_check_mark: | ID of the KeySet to lookup | 6cc34248-50b4-4a81-9201-3bdf7a83f712 | \ No newline at end of file diff --git a/docs/models/operations/deletepluginrequest.md b/docs/models/operations/deletepluginrequest.md index 79aaf02..ac1ec06 100644 --- a/docs/models/operations/deletepluginrequest.md +++ b/docs/models/operations/deletepluginrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file diff --git a/docs/models/operations/deletepluginwithrouterequest.md b/docs/models/operations/deletepluginwithrouterequest.md index 156e575..a0db22e 100644 --- a/docs/models/operations/deletepluginwithrouterequest.md +++ b/docs/models/operations/deletepluginwithrouterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | -| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | +| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file diff --git a/docs/models/operations/deletepluginwithservicerequest.md b/docs/models/operations/deletepluginwithservicerequest.md index 37ac6e6..a2a727d 100644 --- a/docs/models/operations/deletepluginwithservicerequest.md +++ b/docs/models/operations/deletepluginwithservicerequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | -| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file diff --git a/docs/models/operations/deleterouterequest.md b/docs/models/operations/deleterouterequest.md index 506b96a..c2d2f8a 100644 --- a/docs/models/operations/deleterouterequest.md +++ b/docs/models/operations/deleterouterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | \ No newline at end of file diff --git a/docs/models/operations/deleteroutewithservicerequest.md b/docs/models/operations/deleteroutewithservicerequest.md index 6eb41fa..fc5f87c 100644 --- a/docs/models/operations/deleteroutewithservicerequest.md +++ b/docs/models/operations/deleteroutewithservicerequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | \ No newline at end of file diff --git a/docs/models/operations/deleteservicerequest.md b/docs/models/operations/deleteservicerequest.md index 4897c85..7501227 100644 --- a/docs/models/operations/deleteservicerequest.md +++ b/docs/models/operations/deleteservicerequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | \ No newline at end of file diff --git a/docs/models/operations/deletesnirequest.md b/docs/models/operations/deletesnirequest.md index 4282139..669f794 100644 --- a/docs/models/operations/deletesnirequest.md +++ b/docs/models/operations/deletesnirequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | \ No newline at end of file diff --git a/docs/models/operations/deletesniwithcertificaterequest.md b/docs/models/operations/deletesniwithcertificaterequest.md index beed439..897c3eb 100644 --- a/docs/models/operations/deletesniwithcertificaterequest.md +++ b/docs/models/operations/deletesniwithcertificaterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | -| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | +| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | \ No newline at end of file diff --git a/docs/models/operations/deletetargetwithupstreamrequest.md b/docs/models/operations/deletetargetwithupstreamrequest.md index 52ac20a..74971cc 100644 --- a/docs/models/operations/deletetargetwithupstreamrequest.md +++ b/docs/models/operations/deletetargetwithupstreamrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `UpstreamIDForTarget` | *string* | :heavy_check_mark: | ID or target of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | -| `TargetID` | *string* | :heavy_check_mark: | ID of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `UpstreamIDForTarget` | *string* | :heavy_check_mark: | ID or target of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | +| `TargetID` | *string* | :heavy_check_mark: | ID of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | \ No newline at end of file diff --git a/docs/models/operations/deleteupstreamrequest.md b/docs/models/operations/deleteupstreamrequest.md index 9910bde..3d5359e 100644 --- a/docs/models/operations/deleteupstreamrequest.md +++ b/docs/models/operations/deleteupstreamrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `UpstreamID` | *string* | :heavy_check_mark: | ID of the Upstream to lookup | 426d620c-7058-4ae6-aacc-f85a3204a2c5 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `UpstreamID` | *string* | :heavy_check_mark: | ID of the Upstream to lookup | 426d620c-7058-4ae6-aacc-f85a3204a2c5 | \ No newline at end of file diff --git a/docs/models/operations/deletevaultrequest.md b/docs/models/operations/deletevaultrequest.md index 796b60a..054bc10 100644 --- a/docs/models/operations/deletevaultrequest.md +++ b/docs/models/operations/deletevaultrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `VaultID` | *string* | :heavy_check_mark: | ID of the Vault to lookup | 9d4d6d19-77c6-428e-a965-9bc9647633e9 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `VaultID` | *string* | :heavy_check_mark: | ID of the Vault to lookup | 9d4d6d19-77c6-428e-a965-9bc9647633e9 | \ No newline at end of file diff --git a/docs/models/operations/fetchpluginschemarequest.md b/docs/models/operations/fetchpluginschemarequest.md index 4ee45e4..19037e8 100644 --- a/docs/models/operations/fetchpluginschemarequest.md +++ b/docs/models/operations/fetchpluginschemarequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `PluginName` | *string* | :heavy_check_mark: | The name of the plugin | | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `PluginName` | *string* | :heavy_check_mark: | The name of the plugin | | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getaclwithconsumerrequest.md b/docs/models/operations/getaclwithconsumerrequest.md index 8d9f370..1dbbf65 100644 --- a/docs/models/operations/getaclwithconsumerrequest.md +++ b/docs/models/operations/getaclwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `ACLID` | *string* | :heavy_check_mark: | ID of the ACL to lookup | f28acbfa-c866-4587-b688-0208ac24df21 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `ACLID` | *string* | :heavy_check_mark: | ID of the ACL to lookup | f28acbfa-c866-4587-b688-0208ac24df21 | \ No newline at end of file diff --git a/docs/models/operations/getbasicauthwithconsumerrequest.md b/docs/models/operations/getbasicauthwithconsumerrequest.md index df9c860..1ab02c6 100644 --- a/docs/models/operations/getbasicauthwithconsumerrequest.md +++ b/docs/models/operations/getbasicauthwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `BasicAuthID` | *string* | :heavy_check_mark: | ID of the Basic-auth credential to lookup | 80db1b58-ca7c-4d21-b92a-64eb07725872 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `BasicAuthID` | *string* | :heavy_check_mark: | ID of the Basic-auth credential to lookup | 80db1b58-ca7c-4d21-b92a-64eb07725872 | \ No newline at end of file diff --git a/docs/models/operations/getcacertificaterequest.md b/docs/models/operations/getcacertificaterequest.md index 1df884a..9f7cba3 100644 --- a/docs/models/operations/getcacertificaterequest.md +++ b/docs/models/operations/getcacertificaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CACertificateID` | *string* | :heavy_check_mark: | ID of the CA Certificate to lookup | 3c31f18a-f27a-4f9b-8cd4-bf841554612f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `CACertificateID` | *string* | :heavy_check_mark: | ID of the CA Certificate to lookup | 3c31f18a-f27a-4f9b-8cd4-bf841554612f | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getcertificaterequest.md b/docs/models/operations/getcertificaterequest.md index 47f0f8d..2c4cf5a 100644 --- a/docs/models/operations/getcertificaterequest.md +++ b/docs/models/operations/getcertificaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getconsumergrouprequest.md b/docs/models/operations/getconsumergrouprequest.md index b275e79..6448b51 100644 --- a/docs/models/operations/getconsumergrouprequest.md +++ b/docs/models/operations/getconsumergrouprequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerGroupID` | *string* | :heavy_check_mark: | ID of the Consumer Group to lookup | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ConsumerGroupID` | *string* | :heavy_check_mark: | ID of the Consumer Group to lookup | | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getconsumergroupresponse.md b/docs/models/operations/getconsumergroupresponse.md index b7f20bd..277482b 100644 --- a/docs/models/operations/getconsumergroupresponse.md +++ b/docs/models/operations/getconsumergroupresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `ConsumerGroup` | [*components.ConsumerGroup](../../models/components/consumergroup.md) | :heavy_minus_sign: | Successfully fetched Consumer Group | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `ConsumerGroupInsideWrapper` | [*components.ConsumerGroupInsideWrapper](../../models/components/consumergroupinsidewrapper.md) | :heavy_minus_sign: | Successfully fetched Consumer Group | \ No newline at end of file diff --git a/docs/models/operations/getconsumerrequest.md b/docs/models/operations/getconsumerrequest.md index 575a5be..dba1557 100644 --- a/docs/models/operations/getconsumerrequest.md +++ b/docs/models/operations/getconsumerrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerID` | *string* | :heavy_check_mark: | ID of the Consumer to lookup | c1059869-6fa7-4329-a5f5-5946d14ca2c5 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ConsumerID` | *string* | :heavy_check_mark: | ID of the Consumer to lookup | c1059869-6fa7-4329-a5f5-5946d14ca2c5 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/gethmacauthwithconsumerrequest.md b/docs/models/operations/gethmacauthwithconsumerrequest.md index eb08dea..745478e 100644 --- a/docs/models/operations/gethmacauthwithconsumerrequest.md +++ b/docs/models/operations/gethmacauthwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `HMACAuthID` | *string* | :heavy_check_mark: | ID of the HMAC-auth credential to lookup | 70e7b00b-72f2-471b-a5ce-9c4171775360 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `HMACAuthID` | *string* | :heavy_check_mark: | ID of the HMAC-auth credential to lookup | 70e7b00b-72f2-471b-a5ce-9c4171775360 | \ No newline at end of file diff --git a/docs/models/operations/getjwtwithconsumerrequest.md b/docs/models/operations/getjwtwithconsumerrequest.md index c1ea343..dc7f875 100644 --- a/docs/models/operations/getjwtwithconsumerrequest.md +++ b/docs/models/operations/getjwtwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `JWTID` | *string* | :heavy_check_mark: | ID of the JWT to lookup | 4a7f5faa-8c96-46d6-8214-c87573ef2ac4 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `JWTID` | *string* | :heavy_check_mark: | ID of the JWT to lookup | 4a7f5faa-8c96-46d6-8214-c87573ef2ac4 | \ No newline at end of file diff --git a/docs/models/operations/getkeyauthwithconsumerrequest.md b/docs/models/operations/getkeyauthwithconsumerrequest.md index 4963fd6..dff61bf 100644 --- a/docs/models/operations/getkeyauthwithconsumerrequest.md +++ b/docs/models/operations/getkeyauthwithconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `KeyAuthID` | *string* | :heavy_check_mark: | ID of the API-key to lookup | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `KeyAuthID` | *string* | :heavy_check_mark: | ID of the API-key to lookup | | \ No newline at end of file diff --git a/docs/models/operations/getkeyrequest.md b/docs/models/operations/getkeyrequest.md index 298e57d..642f5fa 100644 --- a/docs/models/operations/getkeyrequest.md +++ b/docs/models/operations/getkeyrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `KeyID` | *string* | :heavy_check_mark: | ID of the Key to lookup | bba22c06-a632-42be-a018-1b9ff357b5b9 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `KeyID` | *string* | :heavy_check_mark: | ID of the Key to lookup | bba22c06-a632-42be-a018-1b9ff357b5b9 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getkeysetrequest.md b/docs/models/operations/getkeysetrequest.md index 4e6c407..2fba332 100644 --- a/docs/models/operations/getkeysetrequest.md +++ b/docs/models/operations/getkeysetrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `KeySetID` | *string* | :heavy_check_mark: | ID of the KeySet to lookup | 6cc34248-50b4-4a81-9201-3bdf7a83f712 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `KeySetID` | *string* | :heavy_check_mark: | ID of the KeySet to lookup | 6cc34248-50b4-4a81-9201-3bdf7a83f712 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getpluginrequest.md b/docs/models/operations/getpluginrequest.md index 8948a11..7ef21ff 100644 --- a/docs/models/operations/getpluginrequest.md +++ b/docs/models/operations/getpluginrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getpluginwithrouterequest.md b/docs/models/operations/getpluginwithrouterequest.md index bdfb97b..79c7c5e 100644 --- a/docs/models/operations/getpluginwithrouterequest.md +++ b/docs/models/operations/getpluginwithrouterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | -| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | +| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file diff --git a/docs/models/operations/getpluginwithservicerequest.md b/docs/models/operations/getpluginwithservicerequest.md index f0fb2e5..6d3d239 100644 --- a/docs/models/operations/getpluginwithservicerequest.md +++ b/docs/models/operations/getpluginwithservicerequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | -| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | \ No newline at end of file diff --git a/docs/models/operations/getrouterequest.md b/docs/models/operations/getrouterequest.md index d65c191..1d49cd2 100644 --- a/docs/models/operations/getrouterequest.md +++ b/docs/models/operations/getrouterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getroutewithservicerequest.md b/docs/models/operations/getroutewithservicerequest.md index 486cd8a..812b4ae 100644 --- a/docs/models/operations/getroutewithservicerequest.md +++ b/docs/models/operations/getroutewithservicerequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | \ No newline at end of file diff --git a/docs/models/operations/getservicerequest.md b/docs/models/operations/getservicerequest.md index ef11dd2..b63562d 100644 --- a/docs/models/operations/getservicerequest.md +++ b/docs/models/operations/getservicerequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getsnirequest.md b/docs/models/operations/getsnirequest.md index 9f24046..83d3496 100644 --- a/docs/models/operations/getsnirequest.md +++ b/docs/models/operations/getsnirequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getsniwithcertificaterequest.md b/docs/models/operations/getsniwithcertificaterequest.md index d1dbcd8..1c05771 100644 --- a/docs/models/operations/getsniwithcertificaterequest.md +++ b/docs/models/operations/getsniwithcertificaterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | -| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | +| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | \ No newline at end of file diff --git a/docs/models/operations/gettargetwithupstreamrequest.md b/docs/models/operations/gettargetwithupstreamrequest.md index 3683844..0a7dd75 100644 --- a/docs/models/operations/gettargetwithupstreamrequest.md +++ b/docs/models/operations/gettargetwithupstreamrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `UpstreamIDForTarget` | *string* | :heavy_check_mark: | ID or target of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | -| `TargetID` | *string* | :heavy_check_mark: | ID of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `UpstreamIDForTarget` | *string* | :heavy_check_mark: | ID or target of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | +| `TargetID` | *string* | :heavy_check_mark: | ID of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | \ No newline at end of file diff --git a/docs/models/operations/getupstreamrequest.md b/docs/models/operations/getupstreamrequest.md index 2c68c49..307d4ef 100644 --- a/docs/models/operations/getupstreamrequest.md +++ b/docs/models/operations/getupstreamrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `UpstreamID` | *string* | :heavy_check_mark: | ID of the Upstream to lookup | 426d620c-7058-4ae6-aacc-f85a3204a2c5 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `UpstreamID` | *string* | :heavy_check_mark: | ID of the Upstream to lookup | 426d620c-7058-4ae6-aacc-f85a3204a2c5 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/getusersmeresponse.md b/docs/models/operations/getusersmeresponse.md new file mode 100644 index 0000000..342b86c --- /dev/null +++ b/docs/models/operations/getusersmeresponse.md @@ -0,0 +1,11 @@ +# GetUsersMeResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `User` | [*components.User](../../models/components/user.md) | :heavy_minus_sign: | A get action response of a single user. | {
"id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"email": "user@email.com",
"full_name": "Test User",
"preferred_name": "test",
"active": true,
"created_at": "2022-02-07T17:46:57.52Z",
"updated_at": "2022-10-08T17:00:00.52Z"
} | \ No newline at end of file diff --git a/docs/models/operations/getvaultrequest.md b/docs/models/operations/getvaultrequest.md index fc0fc7e..b7b6d93 100644 --- a/docs/models/operations/getvaultrequest.md +++ b/docs/models/operations/getvaultrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `VaultID` | *string* | :heavy_check_mark: | ID of the Vault to lookup | 9d4d6d19-77c6-428e-a965-9bc9647633e9 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `VaultID` | *string* | :heavy_check_mark: | ID of the Vault to lookup | 9d4d6d19-77c6-428e-a965-9bc9647633e9 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/listaclrequest.md b/docs/models/operations/listaclrequest.md index d3189c5..ca2d6ba 100644 --- a/docs/models/operations/listaclrequest.md +++ b/docs/models/operations/listaclrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listaclresponsebody.md b/docs/models/operations/listaclresponsebody.md index 73651cb..f07bb62 100644 --- a/docs/models/operations/listaclresponsebody.md +++ b/docs/models/operations/listaclresponsebody.md @@ -8,4 +8,5 @@ A successful response listing ACLs | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.ACL](../../models/components/acl.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listaclwithconsumerrequest.md b/docs/models/operations/listaclwithconsumerrequest.md index 8c05110..10df6a2 100644 --- a/docs/models/operations/listaclwithconsumerrequest.md +++ b/docs/models/operations/listaclwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listaclwithconsumerresponsebody.md b/docs/models/operations/listaclwithconsumerresponsebody.md index 71d835a..681ba23 100644 --- a/docs/models/operations/listaclwithconsumerresponsebody.md +++ b/docs/models/operations/listaclwithconsumerresponsebody.md @@ -8,4 +8,5 @@ A successful response listing ACLs | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.ACL](../../models/components/acl.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listbasicauthrequest.md b/docs/models/operations/listbasicauthrequest.md index d1dcc0b..5333125 100644 --- a/docs/models/operations/listbasicauthrequest.md +++ b/docs/models/operations/listbasicauthrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listbasicauthresponsebody.md b/docs/models/operations/listbasicauthresponsebody.md index ed13662..d7ee603 100644 --- a/docs/models/operations/listbasicauthresponsebody.md +++ b/docs/models/operations/listbasicauthresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Basic-auth credentials | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.BasicAuth](../../models/components/basicauth.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listbasicauthwithconsumerrequest.md b/docs/models/operations/listbasicauthwithconsumerrequest.md index 9410e13..079719c 100644 --- a/docs/models/operations/listbasicauthwithconsumerrequest.md +++ b/docs/models/operations/listbasicauthwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listbasicauthwithconsumerresponsebody.md b/docs/models/operations/listbasicauthwithconsumerresponsebody.md index 0c5345c..6e7bd17 100644 --- a/docs/models/operations/listbasicauthwithconsumerresponsebody.md +++ b/docs/models/operations/listbasicauthwithconsumerresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Basic-auth credentials | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.BasicAuth](../../models/components/basicauth.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listcacertificaterequest.md b/docs/models/operations/listcacertificaterequest.md index 203fc24..5a5ea7d 100644 --- a/docs/models/operations/listcacertificaterequest.md +++ b/docs/models/operations/listcacertificaterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listcacertificateresponsebody.md b/docs/models/operations/listcacertificateresponsebody.md index ad1c782..1a4d7d1 100644 --- a/docs/models/operations/listcacertificateresponsebody.md +++ b/docs/models/operations/listcacertificateresponsebody.md @@ -8,4 +8,5 @@ A successful response listing CA Certificates | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.CACertificate](../../models/components/cacertificate.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listcertificaterequest.md b/docs/models/operations/listcertificaterequest.md index 5ab76d0..362f7b4 100644 --- a/docs/models/operations/listcertificaterequest.md +++ b/docs/models/operations/listcertificaterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listcertificateresponsebody.md b/docs/models/operations/listcertificateresponsebody.md index e57c5e8..fce2a92 100644 --- a/docs/models/operations/listcertificateresponsebody.md +++ b/docs/models/operations/listcertificateresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Certificates | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Certificate](../../models/components/certificate.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listconsumergrouprequest.md b/docs/models/operations/listconsumergrouprequest.md index 3ab8558..c7733df 100644 --- a/docs/models/operations/listconsumergrouprequest.md +++ b/docs/models/operations/listconsumergrouprequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listconsumergroupresponsebody.md b/docs/models/operations/listconsumergroupresponsebody.md index 42b4c41..2b7888e 100644 --- a/docs/models/operations/listconsumergroupresponsebody.md +++ b/docs/models/operations/listconsumergroupresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Consumer Groups | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.ConsumerGroup](../../models/components/consumergroup.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listconsumerrequest.md b/docs/models/operations/listconsumerrequest.md index c429cd7..e4bebac 100644 --- a/docs/models/operations/listconsumerrequest.md +++ b/docs/models/operations/listconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listconsumerresponsebody.md b/docs/models/operations/listconsumerresponsebody.md index 34cc1e4..9a1749d 100644 --- a/docs/models/operations/listconsumerresponsebody.md +++ b/docs/models/operations/listconsumerresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Consumers | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Consumer](../../models/components/consumer.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listdpclientcertificatesrequest.md b/docs/models/operations/listdpclientcertificatesrequest.md index d006e60..0638f7b 100644 --- a/docs/models/operations/listdpclientcertificatesrequest.md +++ b/docs/models/operations/listdpclientcertificatesrequest.md @@ -3,8 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `PageSize` | **int64* | :heavy_minus_sign: | The maximum number of items to include per page. The last page of a collection may include fewer items. | 10 | -| `PageAfter` | **string* | :heavy_minus_sign: | Request the next page of data, starting with the item after this parameter. | ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/listhmacauthrequest.md b/docs/models/operations/listhmacauthrequest.md index 2b7e7df..9a2bbe3 100644 --- a/docs/models/operations/listhmacauthrequest.md +++ b/docs/models/operations/listhmacauthrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listhmacauthresponsebody.md b/docs/models/operations/listhmacauthresponsebody.md index c74781c..33fd47b 100644 --- a/docs/models/operations/listhmacauthresponsebody.md +++ b/docs/models/operations/listhmacauthresponsebody.md @@ -8,4 +8,5 @@ A successful response listing HMAC-auth credentials | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.HMACAuth](../../models/components/hmacauth.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listhmacauthwithconsumerrequest.md b/docs/models/operations/listhmacauthwithconsumerrequest.md index d7a7ade..1c895ab 100644 --- a/docs/models/operations/listhmacauthwithconsumerrequest.md +++ b/docs/models/operations/listhmacauthwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listhmacauthwithconsumerresponsebody.md b/docs/models/operations/listhmacauthwithconsumerresponsebody.md index 6d4e9dd..06e7a7a 100644 --- a/docs/models/operations/listhmacauthwithconsumerresponsebody.md +++ b/docs/models/operations/listhmacauthwithconsumerresponsebody.md @@ -8,4 +8,5 @@ A successful response listing HMAC-auth credentials | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.HMACAuth](../../models/components/hmacauth.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listjwtrequest.md b/docs/models/operations/listjwtrequest.md index 86e5bc2..915b0bd 100644 --- a/docs/models/operations/listjwtrequest.md +++ b/docs/models/operations/listjwtrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listjwtresponsebody.md b/docs/models/operations/listjwtresponsebody.md index 76b51c4..8d1ca2a 100644 --- a/docs/models/operations/listjwtresponsebody.md +++ b/docs/models/operations/listjwtresponsebody.md @@ -8,4 +8,5 @@ A successful response listing JWTs | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Jwt](../../models/components/jwt.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listjwtwithconsumerrequest.md b/docs/models/operations/listjwtwithconsumerrequest.md index 4bcfd09..ff9cdae 100644 --- a/docs/models/operations/listjwtwithconsumerrequest.md +++ b/docs/models/operations/listjwtwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listjwtwithconsumerresponsebody.md b/docs/models/operations/listjwtwithconsumerresponsebody.md index 8c6f53e..5a6e148 100644 --- a/docs/models/operations/listjwtwithconsumerresponsebody.md +++ b/docs/models/operations/listjwtwithconsumerresponsebody.md @@ -8,4 +8,5 @@ A successful response listing JWTs | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Jwt](../../models/components/jwt.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listkeyauthrequest.md b/docs/models/operations/listkeyauthrequest.md index 7c066a4..a2d159d 100644 --- a/docs/models/operations/listkeyauthrequest.md +++ b/docs/models/operations/listkeyauthrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listkeyauthresponsebody.md b/docs/models/operations/listkeyauthresponsebody.md index 20983c5..39a117a 100644 --- a/docs/models/operations/listkeyauthresponsebody.md +++ b/docs/models/operations/listkeyauthresponsebody.md @@ -8,4 +8,5 @@ A successful response listing API-keys | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.KeyAuth](../../models/components/keyauth.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listkeyauthwithconsumerrequest.md b/docs/models/operations/listkeyauthwithconsumerrequest.md index 40a9ee3..9835be3 100644 --- a/docs/models/operations/listkeyauthwithconsumerrequest.md +++ b/docs/models/operations/listkeyauthwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listkeyauthwithconsumerresponsebody.md b/docs/models/operations/listkeyauthwithconsumerresponsebody.md index 45d2926..facb46c 100644 --- a/docs/models/operations/listkeyauthwithconsumerresponsebody.md +++ b/docs/models/operations/listkeyauthwithconsumerresponsebody.md @@ -8,4 +8,5 @@ A successful response listing API-keys | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.KeyAuth](../../models/components/keyauth.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listkeyrequest.md b/docs/models/operations/listkeyrequest.md index 4c3b128..ba4b0af 100644 --- a/docs/models/operations/listkeyrequest.md +++ b/docs/models/operations/listkeyrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listkeyresponsebody.md b/docs/models/operations/listkeyresponsebody.md index cc7de25..cd37f2e 100644 --- a/docs/models/operations/listkeyresponsebody.md +++ b/docs/models/operations/listkeyresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Keys | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Key](../../models/components/key.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listkeysetrequest.md b/docs/models/operations/listkeysetrequest.md index 0d1c1ae..ba389b0 100644 --- a/docs/models/operations/listkeysetrequest.md +++ b/docs/models/operations/listkeysetrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listkeysetresponsebody.md b/docs/models/operations/listkeysetresponsebody.md index 830c4a5..bc1abf4 100644 --- a/docs/models/operations/listkeysetresponsebody.md +++ b/docs/models/operations/listkeysetresponsebody.md @@ -8,4 +8,5 @@ A successful response listing KeySets | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.KeySet](../../models/components/keyset.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listpluginrequest.md b/docs/models/operations/listpluginrequest.md index 7e046d6..ce1d50e 100644 --- a/docs/models/operations/listpluginrequest.md +++ b/docs/models/operations/listpluginrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listpluginresponsebody.md b/docs/models/operations/listpluginresponsebody.md index 7286745..7a2b84e 100644 --- a/docs/models/operations/listpluginresponsebody.md +++ b/docs/models/operations/listpluginresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Plugins | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Plugin](../../models/components/plugin.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listpluginwithrouterequest.md b/docs/models/operations/listpluginwithrouterequest.md index 25bb341..2fa1cb4 100644 --- a/docs/models/operations/listpluginwithrouterequest.md +++ b/docs/models/operations/listpluginwithrouterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listpluginwithrouteresponsebody.md b/docs/models/operations/listpluginwithrouteresponsebody.md index 4ecd9b7..c32eb7b 100644 --- a/docs/models/operations/listpluginwithrouteresponsebody.md +++ b/docs/models/operations/listpluginwithrouteresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Plugins | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Plugin](../../models/components/plugin.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listpluginwithservicerequest.md b/docs/models/operations/listpluginwithservicerequest.md index dde3c6a..5ac831d 100644 --- a/docs/models/operations/listpluginwithservicerequest.md +++ b/docs/models/operations/listpluginwithservicerequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listpluginwithserviceresponsebody.md b/docs/models/operations/listpluginwithserviceresponsebody.md index a07bb56..900510f 100644 --- a/docs/models/operations/listpluginwithserviceresponsebody.md +++ b/docs/models/operations/listpluginwithserviceresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Plugins | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Plugin](../../models/components/plugin.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listrouterequest.md b/docs/models/operations/listrouterequest.md index 6a9aebf..2371356 100644 --- a/docs/models/operations/listrouterequest.md +++ b/docs/models/operations/listrouterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listrouteresponsebody.md b/docs/models/operations/listrouteresponsebody.md index 3521900..35d169f 100644 --- a/docs/models/operations/listrouteresponsebody.md +++ b/docs/models/operations/listrouteresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Routes | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Route](../../models/components/route.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listroutewithservicerequest.md b/docs/models/operations/listroutewithservicerequest.md index 9a60ae7..7b264ad 100644 --- a/docs/models/operations/listroutewithservicerequest.md +++ b/docs/models/operations/listroutewithservicerequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listroutewithserviceresponsebody.md b/docs/models/operations/listroutewithserviceresponsebody.md index 105a460..9da4bf4 100644 --- a/docs/models/operations/listroutewithserviceresponsebody.md +++ b/docs/models/operations/listroutewithserviceresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Routes | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Route](../../models/components/route.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listservicerequest.md b/docs/models/operations/listservicerequest.md index 801d64c..c5abd87 100644 --- a/docs/models/operations/listservicerequest.md +++ b/docs/models/operations/listservicerequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listserviceresponsebody.md b/docs/models/operations/listserviceresponsebody.md index 8d53d74..96f2d35 100644 --- a/docs/models/operations/listserviceresponsebody.md +++ b/docs/models/operations/listserviceresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Services | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Service](../../models/components/service.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listsnirequest.md b/docs/models/operations/listsnirequest.md index 7e8d33c..56e7fca 100644 --- a/docs/models/operations/listsnirequest.md +++ b/docs/models/operations/listsnirequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listsniresponsebody.md b/docs/models/operations/listsniresponsebody.md index 91cbae9..e63a50b 100644 --- a/docs/models/operations/listsniresponsebody.md +++ b/docs/models/operations/listsniresponsebody.md @@ -8,4 +8,5 @@ A successful response listing SNIs | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Sni](../../models/components/sni.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listsniwithcertificaterequest.md b/docs/models/operations/listsniwithcertificaterequest.md index dfe95fb..c666431 100644 --- a/docs/models/operations/listsniwithcertificaterequest.md +++ b/docs/models/operations/listsniwithcertificaterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listsniwithcertificateresponsebody.md b/docs/models/operations/listsniwithcertificateresponsebody.md index 1aff3fc..50c22e9 100644 --- a/docs/models/operations/listsniwithcertificateresponsebody.md +++ b/docs/models/operations/listsniwithcertificateresponsebody.md @@ -8,4 +8,5 @@ A successful response listing SNIs | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Sni](../../models/components/sni.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listtargetwithupstreamrequest.md b/docs/models/operations/listtargetwithupstreamrequest.md index f6bf4b5..c051774 100644 --- a/docs/models/operations/listtargetwithupstreamrequest.md +++ b/docs/models/operations/listtargetwithupstreamrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `UpstreamIDForTarget` | *string* | :heavy_check_mark: | ID or target of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | diff --git a/docs/models/operations/listtargetwithupstreamresponsebody.md b/docs/models/operations/listtargetwithupstreamresponsebody.md index 6dea24e..6c9cf66 100644 --- a/docs/models/operations/listtargetwithupstreamresponsebody.md +++ b/docs/models/operations/listtargetwithupstreamresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Targets | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Target](../../models/components/target.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listupstreamrequest.md b/docs/models/operations/listupstreamrequest.md index db253a7..c9ccae8 100644 --- a/docs/models/operations/listupstreamrequest.md +++ b/docs/models/operations/listupstreamrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listupstreamresponsebody.md b/docs/models/operations/listupstreamresponsebody.md index e841bd7..0adcf2f 100644 --- a/docs/models/operations/listupstreamresponsebody.md +++ b/docs/models/operations/listupstreamresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Upstreams | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Upstream](../../models/components/upstream.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/listvaultrequest.md b/docs/models/operations/listvaultrequest.md index 47e66a9..8eaa13d 100644 --- a/docs/models/operations/listvaultrequest.md +++ b/docs/models/operations/listvaultrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `Size` | **int64* | :heavy_minus_sign: | Number of resources to be returned. | | | `Offset` | **string* | :heavy_minus_sign: | Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources | | | `Tags` | **string* | :heavy_minus_sign: | A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. | tag1,tag2 | \ No newline at end of file diff --git a/docs/models/operations/listvaultresponsebody.md b/docs/models/operations/listvaultresponsebody.md index ebd78a7..f39c390 100644 --- a/docs/models/operations/listvaultresponsebody.md +++ b/docs/models/operations/listvaultresponsebody.md @@ -8,4 +8,5 @@ A successful response listing Vaults | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `Data` | [][components.Vault](../../models/components/vault.md) | :heavy_minus_sign: | N/A | +| `Next` | **string* | :heavy_minus_sign: | URI to the next page (may be null) | | `Offset` | **string* | :heavy_minus_sign: | Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page | \ No newline at end of file diff --git a/docs/models/operations/removeconsumerfromgrouprequest.md b/docs/models/operations/removeconsumerfromgrouprequest.md new file mode 100644 index 0000000..ce8ea1d --- /dev/null +++ b/docs/models/operations/removeconsumerfromgrouprequest.md @@ -0,0 +1,10 @@ +# RemoveConsumerFromGroupRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ConsumerGroupID` | *string* | :heavy_check_mark: | N/A | | +| `ConsumerID` | *string* | :heavy_check_mark: | N/A | | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | \ No newline at end of file diff --git a/docs/models/operations/removeconsumerfromgroupresponse.md b/docs/models/operations/removeconsumerfromgroupresponse.md new file mode 100644 index 0000000..ab3061a --- /dev/null +++ b/docs/models/operations/removeconsumerfromgroupresponse.md @@ -0,0 +1,10 @@ +# RemoveConsumerFromGroupResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/upsertaclwithconsumerrequest.md b/docs/models/operations/upsertaclwithconsumerrequest.md index c88ab0b..a4e52fd 100644 --- a/docs/models/operations/upsertaclwithconsumerrequest.md +++ b/docs/models/operations/upsertaclwithconsumerrequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `ACLID` | *string* | :heavy_check_mark: | ID of the ACL to lookup | f28acbfa-c866-4587-b688-0208ac24df21 | -| `ACLWithoutParents` | [components.ACLWithoutParents](../../models/components/aclwithoutparents.md) | :heavy_check_mark: | Description of the ACL | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `ACLID` | *string* | :heavy_check_mark: | ID of the ACL to lookup | f28acbfa-c866-4587-b688-0208ac24df21 | +| `ACLWithoutParents` | [components.ACLWithoutParents](../../models/components/aclwithoutparents.md) | :heavy_check_mark: | Description of the ACL | | \ No newline at end of file diff --git a/docs/models/operations/upsertbasicauthwithconsumerrequest.md b/docs/models/operations/upsertbasicauthwithconsumerrequest.md index ab438f8..5529996 100644 --- a/docs/models/operations/upsertbasicauthwithconsumerrequest.md +++ b/docs/models/operations/upsertbasicauthwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `BasicAuthID` | *string* | :heavy_check_mark: | ID of the Basic-auth credential to lookup | 80db1b58-ca7c-4d21-b92a-64eb07725872 | | `BasicAuthWithoutParents` | [components.BasicAuthWithoutParents](../../models/components/basicauthwithoutparents.md) | :heavy_check_mark: | Description of the Basic-auth credential | | \ No newline at end of file diff --git a/docs/models/operations/upsertcacertificaterequest.md b/docs/models/operations/upsertcacertificaterequest.md index eaf450f..8d5cb39 100644 --- a/docs/models/operations/upsertcacertificaterequest.md +++ b/docs/models/operations/upsertcacertificaterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CACertificateID` | *string* | :heavy_check_mark: | ID of the CA Certificate to lookup | 3c31f18a-f27a-4f9b-8cd4-bf841554612f | -| `CACertificate` | [components.CACertificateInput](../../models/components/cacertificateinput.md) | :heavy_check_mark: | Description of the CA Certificate | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `CACertificateID` | *string* | :heavy_check_mark: | ID of the CA Certificate to lookup | 3c31f18a-f27a-4f9b-8cd4-bf841554612f | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CACertificate` | [components.CACertificateInput](../../models/components/cacertificateinput.md) | :heavy_check_mark: | Description of the CA Certificate | | \ No newline at end of file diff --git a/docs/models/operations/upsertcertificaterequest.md b/docs/models/operations/upsertcertificaterequest.md index 99dcce1..11e64d5 100644 --- a/docs/models/operations/upsertcertificaterequest.md +++ b/docs/models/operations/upsertcertificaterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | -| `Certificate` | [components.CertificateInput](../../models/components/certificateinput.md) | :heavy_check_mark: | Description of the Certificate | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Certificate` | [components.CertificateInput](../../models/components/certificateinput.md) | :heavy_check_mark: | Description of the Certificate | | \ No newline at end of file diff --git a/docs/models/operations/upsertconsumergrouprequest.md b/docs/models/operations/upsertconsumergrouprequest.md index 6d9d478..5223fb3 100644 --- a/docs/models/operations/upsertconsumergrouprequest.md +++ b/docs/models/operations/upsertconsumergrouprequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerGroupID` | *string* | :heavy_check_mark: | ID of the Consumer Group to lookup | | -| `ConsumerGroup` | [components.ConsumerGroupInput](../../models/components/consumergroupinput.md) | :heavy_check_mark: | Description of the Consumer Group | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ConsumerGroupID` | *string* | :heavy_check_mark: | ID of the Consumer Group to lookup | | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerGroup` | [components.ConsumerGroupInput](../../models/components/consumergroupinput.md) | :heavy_check_mark: | Description of the Consumer Group | | \ No newline at end of file diff --git a/docs/models/operations/upsertconsumerrequest.md b/docs/models/operations/upsertconsumerrequest.md index 7cc2736..b2e32be 100644 --- a/docs/models/operations/upsertconsumerrequest.md +++ b/docs/models/operations/upsertconsumerrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerID` | *string* | :heavy_check_mark: | ID of the Consumer to lookup | c1059869-6fa7-4329-a5f5-5946d14ca2c5 | -| `Consumer` | [components.ConsumerInput](../../models/components/consumerinput.md) | :heavy_check_mark: | Description of the Consumer | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ConsumerID` | *string* | :heavy_check_mark: | ID of the Consumer to lookup | c1059869-6fa7-4329-a5f5-5946d14ca2c5 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Consumer` | [components.ConsumerInput](../../models/components/consumerinput.md) | :heavy_check_mark: | Description of the Consumer | | \ No newline at end of file diff --git a/docs/models/operations/upserthmacauthwithconsumerrequest.md b/docs/models/operations/upserthmacauthwithconsumerrequest.md index 5cfad39..ae5e782 100644 --- a/docs/models/operations/upserthmacauthwithconsumerrequest.md +++ b/docs/models/operations/upserthmacauthwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `HMACAuthID` | *string* | :heavy_check_mark: | ID of the HMAC-auth credential to lookup | 70e7b00b-72f2-471b-a5ce-9c4171775360 | | `HMACAuthWithoutParents` | [components.HMACAuthWithoutParents](../../models/components/hmacauthwithoutparents.md) | :heavy_check_mark: | Description of the HMAC-auth credential | | \ No newline at end of file diff --git a/docs/models/operations/upsertjwtwithconsumerrequest.md b/docs/models/operations/upsertjwtwithconsumerrequest.md index 761f4cd..55f92b0 100644 --- a/docs/models/operations/upsertjwtwithconsumerrequest.md +++ b/docs/models/operations/upsertjwtwithconsumerrequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | -| `JWTID` | *string* | :heavy_check_mark: | ID of the JWT to lookup | 4a7f5faa-8c96-46d6-8214-c87573ef2ac4 | -| `JWTWithoutParents` | [components.JWTWithoutParents](../../models/components/jwtwithoutparents.md) | :heavy_check_mark: | Description of the JWT | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | +| `JWTID` | *string* | :heavy_check_mark: | ID of the JWT to lookup | 4a7f5faa-8c96-46d6-8214-c87573ef2ac4 | +| `JWTWithoutParents` | [components.JWTWithoutParents](../../models/components/jwtwithoutparents.md) | :heavy_check_mark: | Description of the JWT | | \ No newline at end of file diff --git a/docs/models/operations/upsertkeyauthwithconsumerrequest.md b/docs/models/operations/upsertkeyauthwithconsumerrequest.md index d6ce6fe..6120d5b 100644 --- a/docs/models/operations/upsertkeyauthwithconsumerrequest.md +++ b/docs/models/operations/upsertkeyauthwithconsumerrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ConsumerIDForNestedEntities` | *string* | :heavy_check_mark: | Consumer ID for nested entities | f28acbfa-c866-4587-b688-0208ac24df21 | | `KeyAuthID` | *string* | :heavy_check_mark: | ID of the API-key to lookup | | | `KeyAuthWithoutParents` | [components.KeyAuthWithoutParents](../../models/components/keyauthwithoutparents.md) | :heavy_check_mark: | Description of the API-key | | \ No newline at end of file diff --git a/docs/models/operations/upsertkeyrequest.md b/docs/models/operations/upsertkeyrequest.md index 09123aa..b68ad66 100644 --- a/docs/models/operations/upsertkeyrequest.md +++ b/docs/models/operations/upsertkeyrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `KeyID` | *string* | :heavy_check_mark: | ID of the Key to lookup | bba22c06-a632-42be-a018-1b9ff357b5b9 | -| `Key` | [components.KeyInput](../../models/components/keyinput.md) | :heavy_check_mark: | Description of the Key | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `KeyID` | *string* | :heavy_check_mark: | ID of the Key to lookup | bba22c06-a632-42be-a018-1b9ff357b5b9 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Key` | [components.KeyInput](../../models/components/keyinput.md) | :heavy_check_mark: | Description of the Key | | \ No newline at end of file diff --git a/docs/models/operations/upsertkeysetrequest.md b/docs/models/operations/upsertkeysetrequest.md index 5a1c952..ee0c012 100644 --- a/docs/models/operations/upsertkeysetrequest.md +++ b/docs/models/operations/upsertkeysetrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `KeySetID` | *string* | :heavy_check_mark: | ID of the KeySet to lookup | 6cc34248-50b4-4a81-9201-3bdf7a83f712 | -| `KeySet` | [components.KeySetInput](../../models/components/keysetinput.md) | :heavy_check_mark: | Description of the KeySet | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `KeySetID` | *string* | :heavy_check_mark: | ID of the KeySet to lookup | 6cc34248-50b4-4a81-9201-3bdf7a83f712 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `KeySet` | [components.KeySetInput](../../models/components/keysetinput.md) | :heavy_check_mark: | Description of the KeySet | | \ No newline at end of file diff --git a/docs/models/operations/upsertpluginrequest.md b/docs/models/operations/upsertpluginrequest.md index d4493b9..cc4c6ca 100644 --- a/docs/models/operations/upsertpluginrequest.md +++ b/docs/models/operations/upsertpluginrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | -| `Plugin` | [components.PluginInput](../../models/components/plugininput.md) | :heavy_check_mark: | Description of the Plugin | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Plugin` | [components.PluginInput](../../models/components/plugininput.md) | :heavy_check_mark: | Description of the Plugin | | \ No newline at end of file diff --git a/docs/models/operations/upsertpluginwithrouterequest.md b/docs/models/operations/upsertpluginwithrouterequest.md index f9b9a9f..2732d33 100644 --- a/docs/models/operations/upsertpluginwithrouterequest.md +++ b/docs/models/operations/upsertpluginwithrouterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | | `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | | `PluginWithoutParents` | [components.PluginWithoutParents](../../models/components/pluginwithoutparents.md) | :heavy_check_mark: | Description of the Plugin | | \ No newline at end of file diff --git a/docs/models/operations/upsertpluginwithservicerequest.md b/docs/models/operations/upsertpluginwithservicerequest.md index 3018729..b19813c 100644 --- a/docs/models/operations/upsertpluginwithservicerequest.md +++ b/docs/models/operations/upsertpluginwithservicerequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | | `PluginID` | *string* | :heavy_check_mark: | ID of the Plugin to lookup | 3473c251-5b6c-4f45-b1ff-7ede735a366d | | `PluginWithoutParents` | [components.PluginWithoutParents](../../models/components/pluginwithoutparents.md) | :heavy_check_mark: | Description of the Plugin | | \ No newline at end of file diff --git a/docs/models/operations/upsertrouterequest.md b/docs/models/operations/upsertrouterequest.md index 1d04aec..e566b4b 100644 --- a/docs/models/operations/upsertrouterequest.md +++ b/docs/models/operations/upsertrouterequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | -| `Route` | [components.RouteInput](../../models/components/routeinput.md) | :heavy_check_mark: | Description of the Route | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Route` | [components.RouteInput](../../models/components/routeinput.md) | :heavy_check_mark: | Description of the Route | | \ No newline at end of file diff --git a/docs/models/operations/upsertroutewithservicerequest.md b/docs/models/operations/upsertroutewithservicerequest.md index 70e6a26..8294c5e 100644 --- a/docs/models/operations/upsertroutewithservicerequest.md +++ b/docs/models/operations/upsertroutewithservicerequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | -| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | -| `RouteWithoutParents` | [components.RouteWithoutParents](../../models/components/routewithoutparents.md) | :heavy_check_mark: | Description of the Route | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `RouteID` | *string* | :heavy_check_mark: | ID of the Route to lookup | a4326a41-aa12-44e3-93e4-6b6e58bfb9d7 | +| `RouteWithoutParents` | [components.RouteWithoutParents](../../models/components/routewithoutparents.md) | :heavy_check_mark: | Description of the Route | | \ No newline at end of file diff --git a/docs/models/operations/upsertservicerequest.md b/docs/models/operations/upsertservicerequest.md index 63303d0..b2bd369 100644 --- a/docs/models/operations/upsertservicerequest.md +++ b/docs/models/operations/upsertservicerequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | -| `Service` | [components.ServiceInput](../../models/components/serviceinput.md) | :heavy_check_mark: | Description of the Service | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ServiceID` | *string* | :heavy_check_mark: | ID of the Service to lookup | 7fca84d6-7d37-4a74-a7b0-93e576089a41 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Service` | [components.ServiceInput](../../models/components/serviceinput.md) | :heavy_check_mark: | Description of the Service | | \ No newline at end of file diff --git a/docs/models/operations/upsertsnirequest.md b/docs/models/operations/upsertsnirequest.md index a700f0c..d8b7359 100644 --- a/docs/models/operations/upsertsnirequest.md +++ b/docs/models/operations/upsertsnirequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | -| `Sni` | [components.SNIInput](../../models/components/sniinput.md) | :heavy_check_mark: | Description of the SNI | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Sni` | [components.SNIInput](../../models/components/sniinput.md) | :heavy_check_mark: | Description of the SNI | | \ No newline at end of file diff --git a/docs/models/operations/upsertsniwithcertificaterequest.md b/docs/models/operations/upsertsniwithcertificaterequest.md index 6e3e98d..150264b 100644 --- a/docs/models/operations/upsertsniwithcertificaterequest.md +++ b/docs/models/operations/upsertsniwithcertificaterequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | -| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | -| `SNIWithoutParents` | [components.SNIWithoutParents](../../models/components/sniwithoutparents.md) | :heavy_check_mark: | Description of the SNI | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `CertificateID` | *string* | :heavy_check_mark: | ID of the Certificate to lookup | ddf3cdaa-3329-4961-822a-ce6dbd38eff7 | +| `SNIID` | *string* | :heavy_check_mark: | ID of the SNI to lookup | 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f | +| `SNIWithoutParents` | [components.SNIWithoutParents](../../models/components/sniwithoutparents.md) | :heavy_check_mark: | Description of the SNI | | \ No newline at end of file diff --git a/docs/models/operations/upserttargetwithupstreamrequest.md b/docs/models/operations/upserttargetwithupstreamrequest.md index 27655af..4925010 100644 --- a/docs/models/operations/upserttargetwithupstreamrequest.md +++ b/docs/models/operations/upserttargetwithupstreamrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | | `UpstreamIDForTarget` | *string* | :heavy_check_mark: | ID or target of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | | `TargetID` | *string* | :heavy_check_mark: | ID of the Target to lookup | 5a078780-5d4c-4aae-984a-bdc6f52113d8 | | `TargetWithoutParents` | [components.TargetWithoutParents](../../models/components/targetwithoutparents.md) | :heavy_check_mark: | Description of the Target | | \ No newline at end of file diff --git a/docs/models/operations/upsertupstreamrequest.md b/docs/models/operations/upsertupstreamrequest.md index 5dfd083..0951d90 100644 --- a/docs/models/operations/upsertupstreamrequest.md +++ b/docs/models/operations/upsertupstreamrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `UpstreamID` | *string* | :heavy_check_mark: | ID of the Upstream to lookup | 426d620c-7058-4ae6-aacc-f85a3204a2c5 | -| `Upstream` | [components.UpstreamInput](../../models/components/upstreaminput.md) | :heavy_check_mark: | Description of the Upstream | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `UpstreamID` | *string* | :heavy_check_mark: | ID of the Upstream to lookup | 426d620c-7058-4ae6-aacc-f85a3204a2c5 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Upstream` | [components.UpstreamInput](../../models/components/upstreaminput.md) | :heavy_check_mark: | Description of the Upstream | | \ No newline at end of file diff --git a/docs/models/operations/upsertvaultrequest.md b/docs/models/operations/upsertvaultrequest.md index adf9862..7e302e1 100644 --- a/docs/models/operations/upsertvaultrequest.md +++ b/docs/models/operations/upsertvaultrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager. | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | -| `VaultID` | *string* | :heavy_check_mark: | ID of the Vault to lookup | 9d4d6d19-77c6-428e-a965-9bc9647633e9 | -| `Vault` | [components.VaultInput](../../models/components/vaultinput.md) | :heavy_check_mark: | Description of the Vault | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `VaultID` | *string* | :heavy_check_mark: | ID of the Vault to lookup | 9d4d6d19-77c6-428e-a965-9bc9647633e9 | +| `ControlPlaneID` | *string* | :heavy_check_mark: | The UUID of your control plane. This variable is available in the Konnect manager | 9524ec7d-36d9-465d-a8c5-83a3c9390458 | +| `Vault` | [components.VaultInput](../../models/components/vaultinput.md) | :heavy_check_mark: | Description of the Vault | | \ No newline at end of file diff --git a/dpcertificates.go b/dpcertificates.go index ace1b73..0386f57 100644 --- a/dpcertificates.go +++ b/dpcertificates.go @@ -29,7 +29,7 @@ func newDPCertificates(sdkConfig sdkConfiguration) *DPCertificates { // ListDpClientCertificates - List DP Client Certificates // Returns a list of pinned dataplane client certificates that are associated to this control plane. A pinned dataplane certificate allows dataplanes configured with the certificate and corresponding private key to establish connection with this control plane. -func (s *DPCertificates) ListDpClientCertificates(ctx context.Context, request operations.ListDpClientCertificatesRequest, opts ...operations.Option) (*operations.ListDpClientCertificatesResponse, error) { +func (s *DPCertificates) ListDpClientCertificates(ctx context.Context, controlPlaneID string, opts ...operations.Option) (*operations.ListDpClientCertificatesResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, OperationID: "list-dp-client-certificates", @@ -37,6 +37,10 @@ func (s *DPCertificates) ListDpClientCertificates(ctx context.Context, request o SecuritySource: s.sdkConfiguration.Security, } + request := operations.ListDpClientCertificatesRequest{ + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -73,10 +77,6 @@ func (s *DPCertificates) ListDpClientCertificates(ctx context.Context, request o req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err } diff --git a/hmacauthcredentials.go b/hmacauthcredentials.go index 67cb16a..16dc314 100644 --- a/hmacauthcredentials.go +++ b/hmacauthcredentials.go @@ -428,12 +428,12 @@ func (s *HMACAuthCredentials) CreateHmacAuthWithConsumer(ctx context.Context, re } -// GetHmacAuthWithConsumer - Fetch a HMAC-auth credential associated with a Consumer -// Get a HMAC-auth credential associated with a Consumer using ID. -func (s *HMACAuthCredentials) GetHmacAuthWithConsumer(ctx context.Context, request operations.GetHmacAuthWithConsumerRequest, opts ...operations.Option) (*operations.GetHmacAuthWithConsumerResponse, error) { +// DeleteHmacAuthWithConsumer - Delete a a HMAC-auth credential associated with a a Consumer +// Delete a a HMAC-auth credential associated with a a Consumer using ID. +func (s *HMACAuthCredentials) DeleteHmacAuthWithConsumer(ctx context.Context, request operations.DeleteHmacAuthWithConsumerRequest, opts ...operations.Option) (*operations.DeleteHmacAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-hmac-auth-with-consumer", + OperationID: "delete-hmac-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -467,11 +467,11 @@ func (s *HMACAuthCredentials) GetHmacAuthWithConsumer(ctx context.Context, reque defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -548,7 +548,7 @@ func (s *HMACAuthCredentials) GetHmacAuthWithConsumer(ctx context.Context, reque _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -563,7 +563,7 @@ func (s *HMACAuthCredentials) GetHmacAuthWithConsumer(ctx context.Context, reque } } - res := &operations.GetHmacAuthWithConsumerResponse{ + res := &operations.DeleteHmacAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -580,30 +580,7 @@ func (s *HMACAuthCredentials) GetHmacAuthWithConsumer(ctx context.Context, reque } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.HMACAuth - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.HMACAuth = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -626,12 +603,12 @@ func (s *HMACAuthCredentials) GetHmacAuthWithConsumer(ctx context.Context, reque } -// UpsertHmacAuthWithConsumer - Upsert a HMAC-auth credential associated with a Consumer -// Create or Update a HMAC-auth credential associated with a Consumer using ID. -func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, request operations.UpsertHmacAuthWithConsumerRequest, opts ...operations.Option) (*operations.UpsertHmacAuthWithConsumerResponse, error) { +// GetHmacAuthWithConsumer - Fetch a HMAC-auth credential associated with a Consumer +// Get a HMAC-auth credential associated with a Consumer using ID. +func (s *HMACAuthCredentials) GetHmacAuthWithConsumer(ctx context.Context, request operations.GetHmacAuthWithConsumerRequest, opts ...operations.Option) (*operations.GetHmacAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-hmac-auth-with-consumer", + OperationID: "get-hmac-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -654,11 +631,6 @@ func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, re return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "HMACAuthWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -670,13 +642,12 @@ func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, re defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -752,7 +723,7 @@ func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, re _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -767,7 +738,7 @@ func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, re } } - res := &operations.UpsertHmacAuthWithConsumerResponse{ + res := &operations.GetHmacAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -806,6 +777,8 @@ func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, re return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -828,12 +801,12 @@ func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, re } -// DeleteHmacAuthWithConsumer - Delete a a HMAC-auth credential associated with a a Consumer -// Delete a a HMAC-auth credential associated with a a Consumer using ID. -func (s *HMACAuthCredentials) DeleteHmacAuthWithConsumer(ctx context.Context, request operations.DeleteHmacAuthWithConsumerRequest, opts ...operations.Option) (*operations.DeleteHmacAuthWithConsumerResponse, error) { +// UpsertHmacAuthWithConsumer - Upsert a HMAC-auth credential associated with a Consumer +// Create or Update a HMAC-auth credential associated with a Consumer using ID. +func (s *HMACAuthCredentials) UpsertHmacAuthWithConsumer(ctx context.Context, request operations.UpsertHmacAuthWithConsumerRequest, opts ...operations.Option) (*operations.UpsertHmacAuthWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-hmac-auth-with-consumer", + OperationID: "upsert-hmac-auth-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -856,6 +829,11 @@ func (s *HMACAuthCredentials) DeleteHmacAuthWithConsumer(ctx context.Context, re return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "HMACAuthWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -867,12 +845,13 @@ func (s *HMACAuthCredentials) DeleteHmacAuthWithConsumer(ctx context.Context, re defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -963,7 +942,7 @@ func (s *HMACAuthCredentials) DeleteHmacAuthWithConsumer(ctx context.Context, re } } - res := &operations.DeleteHmacAuthWithConsumerResponse{ + res := &operations.UpsertHmacAuthWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -980,7 +959,28 @@ func (s *HMACAuthCredentials) DeleteHmacAuthWithConsumer(ctx context.Context, re } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.HMACAuth + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.HMACAuth = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/jwts.go b/jwts.go index 15b7b52..0208487 100644 --- a/jwts.go +++ b/jwts.go @@ -428,12 +428,12 @@ func (s *JWTs) CreateJwtWithConsumer(ctx context.Context, request operations.Cre } -// GetJwtWithConsumer - Fetch a JWT associated with a Consumer -// Get a JWT associated with a Consumer using ID. -func (s *JWTs) GetJwtWithConsumer(ctx context.Context, request operations.GetJwtWithConsumerRequest, opts ...operations.Option) (*operations.GetJwtWithConsumerResponse, error) { +// DeleteJwtWithConsumer - Delete a a JWT associated with a a Consumer +// Delete a a JWT associated with a a Consumer using ID. +func (s *JWTs) DeleteJwtWithConsumer(ctx context.Context, request operations.DeleteJwtWithConsumerRequest, opts ...operations.Option) (*operations.DeleteJwtWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-jwt-with-consumer", + OperationID: "delete-jwt-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -467,11 +467,11 @@ func (s *JWTs) GetJwtWithConsumer(ctx context.Context, request operations.GetJwt defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -548,7 +548,7 @@ func (s *JWTs) GetJwtWithConsumer(ctx context.Context, request operations.GetJwt _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -563,7 +563,7 @@ func (s *JWTs) GetJwtWithConsumer(ctx context.Context, request operations.GetJwt } } - res := &operations.GetJwtWithConsumerResponse{ + res := &operations.DeleteJwtWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -580,30 +580,7 @@ func (s *JWTs) GetJwtWithConsumer(ctx context.Context, request operations.GetJwt } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Jwt - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Jwt = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -626,12 +603,12 @@ func (s *JWTs) GetJwtWithConsumer(ctx context.Context, request operations.GetJwt } -// UpsertJwtWithConsumer - Upsert a JWT associated with a Consumer -// Create or Update a JWT associated with a Consumer using ID. -func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.UpsertJwtWithConsumerRequest, opts ...operations.Option) (*operations.UpsertJwtWithConsumerResponse, error) { +// GetJwtWithConsumer - Fetch a JWT associated with a Consumer +// Get a JWT associated with a Consumer using ID. +func (s *JWTs) GetJwtWithConsumer(ctx context.Context, request operations.GetJwtWithConsumerRequest, opts ...operations.Option) (*operations.GetJwtWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-jwt-with-consumer", + OperationID: "get-jwt-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -654,11 +631,6 @@ func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.Ups return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "JWTWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -670,13 +642,12 @@ func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.Ups defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -752,7 +723,7 @@ func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.Ups _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -767,7 +738,7 @@ func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.Ups } } - res := &operations.UpsertJwtWithConsumerResponse{ + res := &operations.GetJwtWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -806,6 +777,8 @@ func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.Ups return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -828,12 +801,12 @@ func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.Ups } -// DeleteJwtWithConsumer - Delete a a JWT associated with a a Consumer -// Delete a a JWT associated with a a Consumer using ID. -func (s *JWTs) DeleteJwtWithConsumer(ctx context.Context, request operations.DeleteJwtWithConsumerRequest, opts ...operations.Option) (*operations.DeleteJwtWithConsumerResponse, error) { +// UpsertJwtWithConsumer - Upsert a JWT associated with a Consumer +// Create or Update a JWT associated with a Consumer using ID. +func (s *JWTs) UpsertJwtWithConsumer(ctx context.Context, request operations.UpsertJwtWithConsumerRequest, opts ...operations.Option) (*operations.UpsertJwtWithConsumerResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-jwt-with-consumer", + OperationID: "upsert-jwt-with-consumer", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -856,6 +829,11 @@ func (s *JWTs) DeleteJwtWithConsumer(ctx context.Context, request operations.Del return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "JWTWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -867,12 +845,13 @@ func (s *JWTs) DeleteJwtWithConsumer(ctx context.Context, request operations.Del defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -963,7 +942,7 @@ func (s *JWTs) DeleteJwtWithConsumer(ctx context.Context, request operations.Del } } - res := &operations.DeleteJwtWithConsumerResponse{ + res := &operations.UpsertJwtWithConsumerResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -980,7 +959,28 @@ func (s *JWTs) DeleteJwtWithConsumer(ctx context.Context, request operations.Del } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Jwt + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Jwt = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/keys.go b/keys.go index 4181b99..1501960 100644 --- a/keys.go +++ b/keys.go @@ -478,17 +478,17 @@ func (s *Keys) CreateKey(ctx context.Context, controlPlaneID string, key compone } -// GetKey - Fetch a Key -// Get a Key using ID or name. -func (s *Keys) GetKey(ctx context.Context, controlPlaneID string, keyID string, opts ...operations.Option) (*operations.GetKeyResponse, error) { +// DeleteKey - Delete a Key +// Delete a Key +func (s *Keys) DeleteKey(ctx context.Context, controlPlaneID string, keyID string, opts ...operations.Option) (*operations.DeleteKeyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-key", + OperationID: "delete-key", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetKeyRequest{ + request := operations.DeleteKeyRequest{ ControlPlaneID: controlPlaneID, KeyID: keyID, } @@ -522,7 +522,7 @@ func (s *Keys) GetKey(ctx context.Context, controlPlaneID string, keyID string, defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -603,7 +603,7 @@ func (s *Keys) GetKey(ctx context.Context, controlPlaneID string, keyID string, _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -618,7 +618,7 @@ func (s *Keys) GetKey(ctx context.Context, controlPlaneID string, keyID string, } } - res := &operations.GetKeyResponse{ + res := &operations.DeleteKeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -635,28 +635,7 @@ func (s *Keys) GetKey(ctx context.Context, controlPlaneID string, keyID string, } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Key - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Key = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -679,8 +658,6 @@ func (s *Keys) GetKey(ctx context.Context, controlPlaneID string, keyID string, return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -703,16 +680,21 @@ func (s *Keys) GetKey(ctx context.Context, controlPlaneID string, keyID string, } -// UpsertKey - Upsert a Key -// Create or Update Key using ID or name. -func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyRequest, opts ...operations.Option) (*operations.UpsertKeyResponse, error) { +// GetKey - Fetch a Key +// Get a Key using ID or name. +func (s *Keys) GetKey(ctx context.Context, keyID string, controlPlaneID string, opts ...operations.Option) (*operations.GetKeyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-key", + OperationID: "get-key", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetKeyRequest{ + KeyID: keyID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -731,11 +713,6 @@ func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyReques return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Key", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -747,13 +724,12 @@ func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyReques defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -829,7 +805,7 @@ func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyReques _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -844,7 +820,7 @@ func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyReques } } - res := &operations.UpsertKeyResponse{ + res := &operations.GetKeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -905,6 +881,8 @@ func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyReques return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -927,21 +905,16 @@ func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyReques } -// DeleteKey - Delete a Key -// Delete a Key -func (s *Keys) DeleteKey(ctx context.Context, controlPlaneID string, keyID string, opts ...operations.Option) (*operations.DeleteKeyResponse, error) { +// UpsertKey - Upsert a Key +// Create or Update Key using ID or name. +func (s *Keys) UpsertKey(ctx context.Context, request operations.UpsertKeyRequest, opts ...operations.Option) (*operations.UpsertKeyResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-key", + OperationID: "upsert-key", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteKeyRequest{ - ControlPlaneID: controlPlaneID, - KeyID: keyID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -960,6 +933,11 @@ func (s *Keys) DeleteKey(ctx context.Context, controlPlaneID string, keyID strin return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Key", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -971,12 +949,13 @@ func (s *Keys) DeleteKey(ctx context.Context, controlPlaneID string, keyID strin defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1067,7 +1046,7 @@ func (s *Keys) DeleteKey(ctx context.Context, controlPlaneID string, keyID strin } } - res := &operations.DeleteKeyResponse{ + res := &operations.UpsertKeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1084,7 +1063,28 @@ func (s *Keys) DeleteKey(ctx context.Context, controlPlaneID string, keyID strin } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Key + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Key = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/keysets.go b/keysets.go index 29fb08f..606af69 100644 --- a/keysets.go +++ b/keysets.go @@ -478,17 +478,17 @@ func (s *KeySets) CreateKeySet(ctx context.Context, controlPlaneID string, keySe } -// GetKeySet - Fetch a KeySet -// Get a KeySet using ID or name. -func (s *KeySets) GetKeySet(ctx context.Context, controlPlaneID string, keySetID string, opts ...operations.Option) (*operations.GetKeySetResponse, error) { +// DeleteKeySet - Delete a KeySet +// Delete a KeySet +func (s *KeySets) DeleteKeySet(ctx context.Context, controlPlaneID string, keySetID string, opts ...operations.Option) (*operations.DeleteKeySetResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-key-set", + OperationID: "delete-key-set", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetKeySetRequest{ + request := operations.DeleteKeySetRequest{ ControlPlaneID: controlPlaneID, KeySetID: keySetID, } @@ -522,7 +522,7 @@ func (s *KeySets) GetKeySet(ctx context.Context, controlPlaneID string, keySetID defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -603,7 +603,7 @@ func (s *KeySets) GetKeySet(ctx context.Context, controlPlaneID string, keySetID _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -618,7 +618,7 @@ func (s *KeySets) GetKeySet(ctx context.Context, controlPlaneID string, keySetID } } - res := &operations.GetKeySetResponse{ + res := &operations.DeleteKeySetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -635,28 +635,7 @@ func (s *KeySets) GetKeySet(ctx context.Context, controlPlaneID string, keySetID } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.KeySet - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.KeySet = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -679,8 +658,6 @@ func (s *KeySets) GetKeySet(ctx context.Context, controlPlaneID string, keySetID return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -703,16 +680,21 @@ func (s *KeySets) GetKeySet(ctx context.Context, controlPlaneID string, keySetID } -// UpsertKeySet - Upsert a KeySet -// Create or Update KeySet using ID or name. -func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKeySetRequest, opts ...operations.Option) (*operations.UpsertKeySetResponse, error) { +// GetKeySet - Fetch a KeySet +// Get a KeySet using ID or name. +func (s *KeySets) GetKeySet(ctx context.Context, keySetID string, controlPlaneID string, opts ...operations.Option) (*operations.GetKeySetResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-key-set", + OperationID: "get-key-set", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetKeySetRequest{ + KeySetID: keySetID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -731,11 +713,6 @@ func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKey return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "KeySet", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -747,13 +724,12 @@ func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKey defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -829,7 +805,7 @@ func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKey _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -844,7 +820,7 @@ func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKey } } - res := &operations.UpsertKeySetResponse{ + res := &operations.GetKeySetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -905,6 +881,8 @@ func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKey return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -927,21 +905,16 @@ func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKey } -// DeleteKeySet - Delete a KeySet -// Delete a KeySet -func (s *KeySets) DeleteKeySet(ctx context.Context, controlPlaneID string, keySetID string, opts ...operations.Option) (*operations.DeleteKeySetResponse, error) { +// UpsertKeySet - Upsert a KeySet +// Create or Update KeySet using ID or name. +func (s *KeySets) UpsertKeySet(ctx context.Context, request operations.UpsertKeySetRequest, opts ...operations.Option) (*operations.UpsertKeySetResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-key-set", + OperationID: "upsert-key-set", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteKeySetRequest{ - ControlPlaneID: controlPlaneID, - KeySetID: keySetID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -960,6 +933,11 @@ func (s *KeySets) DeleteKeySet(ctx context.Context, controlPlaneID string, keySe return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "KeySet", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -971,12 +949,13 @@ func (s *KeySets) DeleteKeySet(ctx context.Context, controlPlaneID string, keySe defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1067,7 +1046,7 @@ func (s *KeySets) DeleteKeySet(ctx context.Context, controlPlaneID string, keySe } } - res := &operations.DeleteKeySetResponse{ + res := &operations.UpsertKeySetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1084,7 +1063,28 @@ func (s *KeySets) DeleteKeySet(ctx context.Context, controlPlaneID string, keySe } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.KeySet + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.KeySet = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/me.go b/me.go index 83bcd7d..f02a1c1 100644 --- a/me.go +++ b/me.go @@ -249,3 +249,226 @@ func (s *Me) GetOrganizationsMe(ctx context.Context, opts ...operations.Option) return res, nil } + +// GetUsersMe - Retrieve My User Account +// Returns the user account for the user identified in the token of the request. +func (s *Me) GetUsersMe(ctx context.Context, opts ...operations.Option) (*operations.GetUsersMeResponse, error) { + hookCtx := hooks.HookContext{ + Context: ctx, + OperationID: "get-users-me", + OAuth2Scopes: []string{}, + SecuritySource: s.sdkConfiguration.Security, + } + + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionServerURL, + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + baseURL := utils.ReplaceParameters(operations.GetUsersMeServerList[0], map[string]string{}) + if o.ServerURL != nil { + baseURL = *o.ServerURL + } + + opURL, err := url.JoinPath(baseURL, "/v3/users/me") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil { + copyBody, err := req.GetBody() + if err != nil { + return nil, err + } + req.Body = copyBody + } + + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, backoff.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.sdkConfiguration.Hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.GetUsersMeResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + getRawBody := func() ([]byte, error) { + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + return rawBody, nil + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.User + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.User = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode == 401: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/problem+json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out sdkerrors.UnauthorizedError + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + return nil, &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/models/components/authenticationsettings.go b/models/components/authenticationsettings.go index 27ba578..0d971fd 100644 --- a/models/components/authenticationsettings.go +++ b/models/components/authenticationsettings.go @@ -7,6 +7,8 @@ type AuthenticationSettings struct { BasicAuthEnabled *bool `json:"basic_auth_enabled,omitempty"` // The organization has OIDC disabled. OidcAuthEnabled *bool `json:"oidc_auth_enabled,omitempty"` + // The organization has SAML disabled. + SamlAuthEnabled *bool `json:"saml_auth_enabled,omitempty"` // IdP groups determine the Konnect teams a user has. IdpMappingEnabled *bool `json:"idp_mapping_enabled,omitempty"` // A Konnect Identity Admin assigns teams to a user. @@ -27,6 +29,13 @@ func (o *AuthenticationSettings) GetOidcAuthEnabled() *bool { return o.OidcAuthEnabled } +func (o *AuthenticationSettings) GetSamlAuthEnabled() *bool { + if o == nil { + return nil + } + return o.SamlAuthEnabled +} + func (o *AuthenticationSettings) GetIdpMappingEnabled() *bool { if o == nil { return nil diff --git a/models/components/consumergroupinsidewrapper.go b/models/components/consumergroupinsidewrapper.go new file mode 100644 index 0000000..206633f --- /dev/null +++ b/models/components/consumergroupinsidewrapper.go @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +type ConsumerGroupInsideWrapper struct { + ConsumerGroup *ConsumerGroup `json:"consumer_group,omitempty"` +} + +func (o *ConsumerGroupInsideWrapper) GetConsumerGroup() *ConsumerGroup { + if o == nil { + return nil + } + return o.ConsumerGroup +} diff --git a/models/components/controlplanesummary.go b/models/components/controlplanesummary.go index 730e64a..7601214 100644 --- a/models/components/controlplanesummary.go +++ b/models/components/controlplanesummary.go @@ -17,6 +17,7 @@ const ( ControlPlaneSummaryClusterTypeClusterTypeHybrid ControlPlaneSummaryClusterType = "CLUSTER_TYPE_HYBRID" ControlPlaneSummaryClusterTypeClusterTypeK8SIngressController ControlPlaneSummaryClusterType = "CLUSTER_TYPE_K8S_INGRESS_CONTROLLER" ControlPlaneSummaryClusterTypeClusterTypeControlPlaneGroup ControlPlaneSummaryClusterType = "CLUSTER_TYPE_CONTROL_PLANE_GROUP" + ControlPlaneSummaryClusterTypeClusterTypeServerless ControlPlaneSummaryClusterType = "CLUSTER_TYPE_SERVERLESS" ) func (e ControlPlaneSummaryClusterType) ToPointer() *ControlPlaneSummaryClusterType { @@ -35,6 +36,8 @@ func (e *ControlPlaneSummaryClusterType) UnmarshalJSON(data []byte) error { case "CLUSTER_TYPE_K8S_INGRESS_CONTROLLER": fallthrough case "CLUSTER_TYPE_CONTROL_PLANE_GROUP": + fallthrough + case "CLUSTER_TYPE_SERVERLESS": *e = ControlPlaneSummaryClusterType(v) return nil default: diff --git a/models/components/updateauthenticationsettings.go b/models/components/updateauthenticationsettings.go index dbc761f..c52f48c 100644 --- a/models/components/updateauthenticationsettings.go +++ b/models/components/updateauthenticationsettings.go @@ -7,6 +7,8 @@ type UpdateAuthenticationSettings struct { BasicAuthEnabled *bool `json:"basic_auth_enabled,omitempty"` // The organization has OIDC disabled. OidcAuthEnabled *bool `json:"oidc_auth_enabled,omitempty"` + // The organization has SAML disabled. + SamlAuthEnabled *bool `json:"saml_auth_enabled,omitempty"` // Whether IdP groups determine the Konnect teams a user has. IdpMappingEnabled *bool `json:"idp_mapping_enabled,omitempty"` // Whether a Konnect Identity Admin assigns teams to a user. @@ -27,6 +29,13 @@ func (o *UpdateAuthenticationSettings) GetOidcAuthEnabled() *bool { return o.OidcAuthEnabled } +func (o *UpdateAuthenticationSettings) GetSamlAuthEnabled() *bool { + if o == nil { + return nil + } + return o.SamlAuthEnabled +} + func (o *UpdateAuthenticationSettings) GetIdpMappingEnabled() *bool { if o == nil { return nil diff --git a/models/components/upstream.go b/models/components/upstream.go index 1bff6f7..42aa7ca 100644 --- a/models/components/upstream.go +++ b/models/components/upstream.go @@ -271,15 +271,15 @@ func (o *Unhealthy) GetTimeouts() *int64 { } type Active struct { - Concurrency *int64 `default:"10" json:"concurrency"` - Headers map[string]string `json:"headers,omitempty"` - Healthy *Healthy `json:"healthy,omitempty"` - HTTPPath *string `default:"/" json:"http_path"` - HTTPSSni *string `json:"https_sni,omitempty"` - HTTPSVerifyCertificate *bool `default:"true" json:"https_verify_certificate"` - Timeout *float64 `default:"1" json:"timeout"` - Type *Type `default:"http" json:"type"` - Unhealthy *Unhealthy `json:"unhealthy,omitempty"` + Concurrency *int64 `default:"10" json:"concurrency"` + Headers map[string]any `json:"headers,omitempty"` + Healthy *Healthy `json:"healthy,omitempty"` + HTTPPath *string `default:"/" json:"http_path"` + HTTPSSni *string `json:"https_sni,omitempty"` + HTTPSVerifyCertificate *bool `default:"true" json:"https_verify_certificate"` + Timeout *float64 `default:"1" json:"timeout"` + Type *Type `default:"http" json:"type"` + Unhealthy *Unhealthy `json:"unhealthy,omitempty"` } func (a Active) MarshalJSON() ([]byte, error) { @@ -300,7 +300,7 @@ func (o *Active) GetConcurrency() *int64 { return o.Concurrency } -func (o *Active) GetHeaders() map[string]string { +func (o *Active) GetHeaders() map[string]any { if o == nil { return nil } diff --git a/models/operations/addconsumertogroup.go b/models/operations/addconsumertogroup.go index 6db68d4..fea4ce7 100644 --- a/models/operations/addconsumertogroup.go +++ b/models/operations/addconsumertogroup.go @@ -8,20 +8,19 @@ import ( ) type AddConsumerToGroupRequestBody struct { - Consumer *string `json:"consumer,omitempty"` + ConsumerID *string `json:"consumer,omitempty"` } -func (o *AddConsumerToGroupRequestBody) GetConsumer() *string { +func (o *AddConsumerToGroupRequestBody) GetConsumerID() *string { if o == nil { return nil } - return o.Consumer + return o.ConsumerID } type AddConsumerToGroupRequest struct { - // ID of the Consumer Group to lookup ConsumerGroupID string `pathParam:"style=simple,explode=false,name=ConsumerGroupId"` - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` RequestBody *AddConsumerToGroupRequestBody `request:"mediaType=application/json"` } @@ -47,24 +46,24 @@ func (o *AddConsumerToGroupRequest) GetRequestBody() *AddConsumerToGroupRequestB return o.RequestBody } -// AddConsumerToGroupResponseBody - Consumer Added +// AddConsumerToGroupResponseBody - Consumer added to group type AddConsumerToGroupResponseBody struct { - Consumer *components.Consumer `json:"consumer,omitempty"` ConsumerGroup *components.ConsumerGroup `json:"consumer_group,omitempty"` + Consumers []components.Consumer `json:"consumers,omitempty"` } -func (o *AddConsumerToGroupResponseBody) GetConsumer() *components.Consumer { +func (o *AddConsumerToGroupResponseBody) GetConsumerGroup() *components.ConsumerGroup { if o == nil { return nil } - return o.Consumer + return o.ConsumerGroup } -func (o *AddConsumerToGroupResponseBody) GetConsumerGroup() *components.ConsumerGroup { +func (o *AddConsumerToGroupResponseBody) GetConsumers() []components.Consumer { if o == nil { return nil } - return o.ConsumerGroup + return o.Consumers } type AddConsumerToGroupResponse struct { @@ -74,7 +73,7 @@ type AddConsumerToGroupResponse struct { StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response - // Consumer Added + // Consumer added to group Object *AddConsumerToGroupResponseBody } diff --git a/models/operations/createaclwithconsumer.go b/models/operations/createaclwithconsumer.go index f2517d2..2e2f075 100644 --- a/models/operations/createaclwithconsumer.go +++ b/models/operations/createaclwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type CreateACLWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/createbasicauthwithconsumer.go b/models/operations/createbasicauthwithconsumer.go index d6151fa..c35d540 100644 --- a/models/operations/createbasicauthwithconsumer.go +++ b/models/operations/createbasicauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type CreateBasicAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/createcacertificate.go b/models/operations/createcacertificate.go index e28b8b7..c782a56 100644 --- a/models/operations/createcacertificate.go +++ b/models/operations/createcacertificate.go @@ -8,7 +8,7 @@ import ( ) type CreateCaCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new CA Certificate for creation CACertificate components.CACertificateInput `request:"mediaType=application/json"` diff --git a/models/operations/createcertificate.go b/models/operations/createcertificate.go index 2140425..89547d4 100644 --- a/models/operations/createcertificate.go +++ b/models/operations/createcertificate.go @@ -8,7 +8,7 @@ import ( ) type CreateCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Certificate for creation Certificate components.CertificateInput `request:"mediaType=application/json"` diff --git a/models/operations/createconsumer.go b/models/operations/createconsumer.go index f605c60..d27082a 100644 --- a/models/operations/createconsumer.go +++ b/models/operations/createconsumer.go @@ -8,7 +8,7 @@ import ( ) type CreateConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Consumer for creation Consumer components.ConsumerInput `request:"mediaType=application/json"` diff --git a/models/operations/createconsumergroup.go b/models/operations/createconsumergroup.go index 04b8b47..b561923 100644 --- a/models/operations/createconsumergroup.go +++ b/models/operations/createconsumergroup.go @@ -8,7 +8,7 @@ import ( ) type CreateConsumerGroupRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Consumer Group for creation ConsumerGroup components.ConsumerGroupInput `request:"mediaType=application/json"` diff --git a/models/operations/createhmacauthwithconsumer.go b/models/operations/createhmacauthwithconsumer.go index 1777013..4222c6e 100644 --- a/models/operations/createhmacauthwithconsumer.go +++ b/models/operations/createhmacauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type CreateHmacAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/createjwtwithconsumer.go b/models/operations/createjwtwithconsumer.go index be067e3..17205de 100644 --- a/models/operations/createjwtwithconsumer.go +++ b/models/operations/createjwtwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type CreateJwtWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/createkey.go b/models/operations/createkey.go index 930f1b1..854a4ce 100644 --- a/models/operations/createkey.go +++ b/models/operations/createkey.go @@ -8,7 +8,7 @@ import ( ) type CreateKeyRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Key for creation Key components.KeyInput `request:"mediaType=application/json"` diff --git a/models/operations/createkeyauthwithconsumer.go b/models/operations/createkeyauthwithconsumer.go index d744a46..65c1648 100644 --- a/models/operations/createkeyauthwithconsumer.go +++ b/models/operations/createkeyauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type CreateKeyAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/createkeyset.go b/models/operations/createkeyset.go index f1d0546..c969e09 100644 --- a/models/operations/createkeyset.go +++ b/models/operations/createkeyset.go @@ -8,7 +8,7 @@ import ( ) type CreateKeySetRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new KeySet for creation KeySet components.KeySetInput `request:"mediaType=application/json"` diff --git a/models/operations/createplugin.go b/models/operations/createplugin.go index 60b0d91..3e59fbc 100644 --- a/models/operations/createplugin.go +++ b/models/operations/createplugin.go @@ -8,7 +8,7 @@ import ( ) type CreatePluginRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Plugin for creation Plugin components.PluginInput `request:"mediaType=application/json"` diff --git a/models/operations/createpluginwithroute.go b/models/operations/createpluginwithroute.go index 5bfc2d6..81af090 100644 --- a/models/operations/createpluginwithroute.go +++ b/models/operations/createpluginwithroute.go @@ -8,7 +8,7 @@ import ( ) type CreatePluginWithRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` diff --git a/models/operations/createpluginwithservice.go b/models/operations/createpluginwithservice.go index 6ae233d..c26cbea 100644 --- a/models/operations/createpluginwithservice.go +++ b/models/operations/createpluginwithservice.go @@ -8,7 +8,7 @@ import ( ) type CreatePluginWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/createroute.go b/models/operations/createroute.go index f3bdb28..acb02e2 100644 --- a/models/operations/createroute.go +++ b/models/operations/createroute.go @@ -8,7 +8,7 @@ import ( ) type CreateRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Route for creation Route components.RouteInput `request:"mediaType=application/json"` diff --git a/models/operations/createroutewithservice.go b/models/operations/createroutewithservice.go index 2ea4ea5..bf4d199 100644 --- a/models/operations/createroutewithservice.go +++ b/models/operations/createroutewithservice.go @@ -8,7 +8,7 @@ import ( ) type CreateRouteWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/createservice.go b/models/operations/createservice.go index 3a05f34..4fa52dd 100644 --- a/models/operations/createservice.go +++ b/models/operations/createservice.go @@ -8,7 +8,7 @@ import ( ) type CreateServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Service for creation Service components.ServiceInput `request:"mediaType=application/json"` diff --git a/models/operations/createsni.go b/models/operations/createsni.go index b417ea0..c218dd2 100644 --- a/models/operations/createsni.go +++ b/models/operations/createsni.go @@ -8,7 +8,7 @@ import ( ) type CreateSniRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new SNI for creation Sni components.SNIInput `request:"mediaType=application/json"` diff --git a/models/operations/createsniwithcertificate.go b/models/operations/createsniwithcertificate.go index 619b97b..c1bfdc7 100644 --- a/models/operations/createsniwithcertificate.go +++ b/models/operations/createsniwithcertificate.go @@ -8,7 +8,7 @@ import ( ) type CreateSniWithCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` diff --git a/models/operations/createtargetwithupstream.go b/models/operations/createtargetwithupstream.go index c6e3d9a..93498a1 100644 --- a/models/operations/createtargetwithupstream.go +++ b/models/operations/createtargetwithupstream.go @@ -8,7 +8,7 @@ import ( ) type CreateTargetWithUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID or target of the Target to lookup UpstreamIDForTarget string `pathParam:"style=simple,explode=false,name=UpstreamIdForTarget"` diff --git a/models/operations/createupstream.go b/models/operations/createupstream.go index 8860b2b..9a70e6b 100644 --- a/models/operations/createupstream.go +++ b/models/operations/createupstream.go @@ -8,7 +8,7 @@ import ( ) type CreateUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Upstream for creation Upstream components.UpstreamInput `request:"mediaType=application/json"` diff --git a/models/operations/createvault.go b/models/operations/createvault.go index 9dc6bb7..91d90b7 100644 --- a/models/operations/createvault.go +++ b/models/operations/createvault.go @@ -8,7 +8,7 @@ import ( ) type CreateVaultRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the new Vault for creation Vault components.VaultInput `request:"mediaType=application/json"` diff --git a/models/operations/deleteaclwithconsumer.go b/models/operations/deleteaclwithconsumer.go index 3c6b490..4fa1172 100644 --- a/models/operations/deleteaclwithconsumer.go +++ b/models/operations/deleteaclwithconsumer.go @@ -7,7 +7,7 @@ import ( ) type DeleteACLWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/deletebasicauthwithconsumer.go b/models/operations/deletebasicauthwithconsumer.go index 581af0d..ef6f5f9 100644 --- a/models/operations/deletebasicauthwithconsumer.go +++ b/models/operations/deletebasicauthwithconsumer.go @@ -7,7 +7,7 @@ import ( ) type DeleteBasicAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/deletecacertificate.go b/models/operations/deletecacertificate.go index 6654690..65e8ac5 100644 --- a/models/operations/deletecacertificate.go +++ b/models/operations/deletecacertificate.go @@ -7,7 +7,7 @@ import ( ) type DeleteCaCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the CA Certificate to lookup CACertificateID string `pathParam:"style=simple,explode=false,name=CACertificateId"` diff --git a/models/operations/deletecertificate.go b/models/operations/deletecertificate.go index 47e0b2d..e627815 100644 --- a/models/operations/deletecertificate.go +++ b/models/operations/deletecertificate.go @@ -7,7 +7,7 @@ import ( ) type DeleteCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` diff --git a/models/operations/deleteconsumer.go b/models/operations/deleteconsumer.go index 8f6e790..450495c 100644 --- a/models/operations/deleteconsumer.go +++ b/models/operations/deleteconsumer.go @@ -7,7 +7,7 @@ import ( ) type DeleteConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Consumer to lookup ConsumerID string `pathParam:"style=simple,explode=false,name=ConsumerId"` diff --git a/models/operations/deleteconsumergroup.go b/models/operations/deleteconsumergroup.go index 0f01e38..0a58f5b 100644 --- a/models/operations/deleteconsumergroup.go +++ b/models/operations/deleteconsumergroup.go @@ -7,7 +7,7 @@ import ( ) type DeleteConsumerGroupRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Consumer Group to lookup ConsumerGroupID string `pathParam:"style=simple,explode=false,name=ConsumerGroupId"` diff --git a/models/operations/deletehmacauthwithconsumer.go b/models/operations/deletehmacauthwithconsumer.go index 3f1b867..e27ec78 100644 --- a/models/operations/deletehmacauthwithconsumer.go +++ b/models/operations/deletehmacauthwithconsumer.go @@ -7,7 +7,7 @@ import ( ) type DeleteHmacAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/deletejwtwithconsumer.go b/models/operations/deletejwtwithconsumer.go index e5be8fc..10f4f62 100644 --- a/models/operations/deletejwtwithconsumer.go +++ b/models/operations/deletejwtwithconsumer.go @@ -7,7 +7,7 @@ import ( ) type DeleteJwtWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/deletekey.go b/models/operations/deletekey.go index b0fa6e6..afcf9e4 100644 --- a/models/operations/deletekey.go +++ b/models/operations/deletekey.go @@ -7,7 +7,7 @@ import ( ) type DeleteKeyRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Key to lookup KeyID string `pathParam:"style=simple,explode=false,name=KeyId"` diff --git a/models/operations/deletekeyauthwithconsumer.go b/models/operations/deletekeyauthwithconsumer.go index 77546be..92a11ff 100644 --- a/models/operations/deletekeyauthwithconsumer.go +++ b/models/operations/deletekeyauthwithconsumer.go @@ -7,7 +7,7 @@ import ( ) type DeleteKeyAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/deletekeyset.go b/models/operations/deletekeyset.go index 1b17e1e..f2b4f05 100644 --- a/models/operations/deletekeyset.go +++ b/models/operations/deletekeyset.go @@ -7,7 +7,7 @@ import ( ) type DeleteKeySetRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the KeySet to lookup KeySetID string `pathParam:"style=simple,explode=false,name=KeySetId"` diff --git a/models/operations/deleteplugin.go b/models/operations/deleteplugin.go index f2d6a7e..ba1de0b 100644 --- a/models/operations/deleteplugin.go +++ b/models/operations/deleteplugin.go @@ -7,7 +7,7 @@ import ( ) type DeletePluginRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Plugin to lookup PluginID string `pathParam:"style=simple,explode=false,name=PluginId"` diff --git a/models/operations/deletepluginwithroute.go b/models/operations/deletepluginwithroute.go index 130f7e4..a439d7b 100644 --- a/models/operations/deletepluginwithroute.go +++ b/models/operations/deletepluginwithroute.go @@ -7,7 +7,7 @@ import ( ) type DeletePluginWithRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` diff --git a/models/operations/deletepluginwithservice.go b/models/operations/deletepluginwithservice.go index 0a838a3..5a4fa62 100644 --- a/models/operations/deletepluginwithservice.go +++ b/models/operations/deletepluginwithservice.go @@ -7,7 +7,7 @@ import ( ) type DeletePluginWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/deleteroute.go b/models/operations/deleteroute.go index df10ebd..d12d6d7 100644 --- a/models/operations/deleteroute.go +++ b/models/operations/deleteroute.go @@ -7,7 +7,7 @@ import ( ) type DeleteRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` diff --git a/models/operations/deleteroutewithservice.go b/models/operations/deleteroutewithservice.go index a3e57e8..b99a57c 100644 --- a/models/operations/deleteroutewithservice.go +++ b/models/operations/deleteroutewithservice.go @@ -7,7 +7,7 @@ import ( ) type DeleteRouteWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/deleteservice.go b/models/operations/deleteservice.go index 941039c..7d97bb3 100644 --- a/models/operations/deleteservice.go +++ b/models/operations/deleteservice.go @@ -7,7 +7,7 @@ import ( ) type DeleteServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/deletesni.go b/models/operations/deletesni.go index a15e3aa..5e153ba 100644 --- a/models/operations/deletesni.go +++ b/models/operations/deletesni.go @@ -7,7 +7,7 @@ import ( ) type DeleteSniRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the SNI to lookup SNIID string `pathParam:"style=simple,explode=false,name=SNIId"` diff --git a/models/operations/deletesniwithcertificate.go b/models/operations/deletesniwithcertificate.go index a2782ac..9991d77 100644 --- a/models/operations/deletesniwithcertificate.go +++ b/models/operations/deletesniwithcertificate.go @@ -7,7 +7,7 @@ import ( ) type DeleteSniWithCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` diff --git a/models/operations/deletetargetwithupstream.go b/models/operations/deletetargetwithupstream.go index aa36830..8ebc861 100644 --- a/models/operations/deletetargetwithupstream.go +++ b/models/operations/deletetargetwithupstream.go @@ -7,7 +7,7 @@ import ( ) type DeleteTargetWithUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID or target of the Target to lookup UpstreamIDForTarget string `pathParam:"style=simple,explode=false,name=UpstreamIdForTarget"` diff --git a/models/operations/deleteupstream.go b/models/operations/deleteupstream.go index e6abde8..d01748f 100644 --- a/models/operations/deleteupstream.go +++ b/models/operations/deleteupstream.go @@ -7,7 +7,7 @@ import ( ) type DeleteUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Upstream to lookup UpstreamID string `pathParam:"style=simple,explode=false,name=UpstreamId"` diff --git a/models/operations/deletevault.go b/models/operations/deletevault.go index cfb04bd..c1d574c 100644 --- a/models/operations/deletevault.go +++ b/models/operations/deletevault.go @@ -7,7 +7,7 @@ import ( ) type DeleteVaultRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Vault to lookup VaultID string `pathParam:"style=simple,explode=false,name=VaultId"` diff --git a/models/operations/fetchpluginschema.go b/models/operations/fetchpluginschema.go index 8e8278e..d498c65 100644 --- a/models/operations/fetchpluginschema.go +++ b/models/operations/fetchpluginschema.go @@ -9,7 +9,7 @@ import ( type FetchPluginSchemaRequest struct { // The name of the plugin PluginName string `pathParam:"style=simple,explode=false,name=pluginName"` - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } diff --git a/models/operations/getaclwithconsumer.go b/models/operations/getaclwithconsumer.go index 03fbffb..bf794d5 100644 --- a/models/operations/getaclwithconsumer.go +++ b/models/operations/getaclwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type GetACLWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/getbasicauthwithconsumer.go b/models/operations/getbasicauthwithconsumer.go index ed2b67c..3b41cf6 100644 --- a/models/operations/getbasicauthwithconsumer.go +++ b/models/operations/getbasicauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type GetBasicAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/getcacertificate.go b/models/operations/getcacertificate.go index 9142d58..6bf8f13 100644 --- a/models/operations/getcacertificate.go +++ b/models/operations/getcacertificate.go @@ -8,24 +8,24 @@ import ( ) type GetCaCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the CA Certificate to lookup CACertificateID string `pathParam:"style=simple,explode=false,name=CACertificateId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetCaCertificateRequest) GetControlPlaneID() string { +func (o *GetCaCertificateRequest) GetCACertificateID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.CACertificateID } -func (o *GetCaCertificateRequest) GetCACertificateID() string { +func (o *GetCaCertificateRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.CACertificateID + return o.ControlPlaneID } type GetCaCertificateResponse struct { diff --git a/models/operations/getcertificate.go b/models/operations/getcertificate.go index 45b5ea8..faf8c13 100644 --- a/models/operations/getcertificate.go +++ b/models/operations/getcertificate.go @@ -8,24 +8,24 @@ import ( ) type GetCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetCertificateRequest) GetControlPlaneID() string { +func (o *GetCertificateRequest) GetCertificateID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.CertificateID } -func (o *GetCertificateRequest) GetCertificateID() string { +func (o *GetCertificateRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.CertificateID + return o.ControlPlaneID } type GetCertificateResponse struct { diff --git a/models/operations/getconsumer.go b/models/operations/getconsumer.go index 9f30bb5..b781e7a 100644 --- a/models/operations/getconsumer.go +++ b/models/operations/getconsumer.go @@ -8,24 +8,24 @@ import ( ) type GetConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Consumer to lookup ConsumerID string `pathParam:"style=simple,explode=false,name=ConsumerId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetConsumerRequest) GetControlPlaneID() string { +func (o *GetConsumerRequest) GetConsumerID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.ConsumerID } -func (o *GetConsumerRequest) GetConsumerID() string { +func (o *GetConsumerRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.ConsumerID + return o.ControlPlaneID } type GetConsumerResponse struct { diff --git a/models/operations/getconsumergroup.go b/models/operations/getconsumergroup.go index a1836bf..e77d757 100644 --- a/models/operations/getconsumergroup.go +++ b/models/operations/getconsumergroup.go @@ -8,24 +8,24 @@ import ( ) type GetConsumerGroupRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Consumer Group to lookup ConsumerGroupID string `pathParam:"style=simple,explode=false,name=ConsumerGroupId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetConsumerGroupRequest) GetControlPlaneID() string { +func (o *GetConsumerGroupRequest) GetConsumerGroupID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.ConsumerGroupID } -func (o *GetConsumerGroupRequest) GetConsumerGroupID() string { +func (o *GetConsumerGroupRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.ConsumerGroupID + return o.ControlPlaneID } type GetConsumerGroupResponse struct { @@ -36,7 +36,7 @@ type GetConsumerGroupResponse struct { // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response // Successfully fetched Consumer Group - ConsumerGroup *components.ConsumerGroup + ConsumerGroupInsideWrapper *components.ConsumerGroupInsideWrapper } func (o *GetConsumerGroupResponse) GetContentType() string { @@ -60,9 +60,9 @@ func (o *GetConsumerGroupResponse) GetRawResponse() *http.Response { return o.RawResponse } -func (o *GetConsumerGroupResponse) GetConsumerGroup() *components.ConsumerGroup { +func (o *GetConsumerGroupResponse) GetConsumerGroupInsideWrapper() *components.ConsumerGroupInsideWrapper { if o == nil { return nil } - return o.ConsumerGroup + return o.ConsumerGroupInsideWrapper } diff --git a/models/operations/gethmacauthwithconsumer.go b/models/operations/gethmacauthwithconsumer.go index d979e3f..58a9e4c 100644 --- a/models/operations/gethmacauthwithconsumer.go +++ b/models/operations/gethmacauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type GetHmacAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/getjwtwithconsumer.go b/models/operations/getjwtwithconsumer.go index d22957e..8f99e64 100644 --- a/models/operations/getjwtwithconsumer.go +++ b/models/operations/getjwtwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type GetJwtWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/getkey.go b/models/operations/getkey.go index fa9967c..a9e147e 100644 --- a/models/operations/getkey.go +++ b/models/operations/getkey.go @@ -8,24 +8,24 @@ import ( ) type GetKeyRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Key to lookup KeyID string `pathParam:"style=simple,explode=false,name=KeyId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetKeyRequest) GetControlPlaneID() string { +func (o *GetKeyRequest) GetKeyID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.KeyID } -func (o *GetKeyRequest) GetKeyID() string { +func (o *GetKeyRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.KeyID + return o.ControlPlaneID } type GetKeyResponse struct { diff --git a/models/operations/getkeyauthwithconsumer.go b/models/operations/getkeyauthwithconsumer.go index af0b48b..767a023 100644 --- a/models/operations/getkeyauthwithconsumer.go +++ b/models/operations/getkeyauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type GetKeyAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/getkeyset.go b/models/operations/getkeyset.go index 9fe1ea7..04ef3c5 100644 --- a/models/operations/getkeyset.go +++ b/models/operations/getkeyset.go @@ -8,24 +8,24 @@ import ( ) type GetKeySetRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the KeySet to lookup KeySetID string `pathParam:"style=simple,explode=false,name=KeySetId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetKeySetRequest) GetControlPlaneID() string { +func (o *GetKeySetRequest) GetKeySetID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.KeySetID } -func (o *GetKeySetRequest) GetKeySetID() string { +func (o *GetKeySetRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.KeySetID + return o.ControlPlaneID } type GetKeySetResponse struct { diff --git a/models/operations/getplugin.go b/models/operations/getplugin.go index 80c50a8..d9d5c8b 100644 --- a/models/operations/getplugin.go +++ b/models/operations/getplugin.go @@ -8,24 +8,24 @@ import ( ) type GetPluginRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Plugin to lookup PluginID string `pathParam:"style=simple,explode=false,name=PluginId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetPluginRequest) GetControlPlaneID() string { +func (o *GetPluginRequest) GetPluginID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.PluginID } -func (o *GetPluginRequest) GetPluginID() string { +func (o *GetPluginRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.PluginID + return o.ControlPlaneID } type GetPluginResponse struct { diff --git a/models/operations/getpluginwithroute.go b/models/operations/getpluginwithroute.go index b5ea766..71a7481 100644 --- a/models/operations/getpluginwithroute.go +++ b/models/operations/getpluginwithroute.go @@ -8,7 +8,7 @@ import ( ) type GetPluginWithRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` diff --git a/models/operations/getpluginwithservice.go b/models/operations/getpluginwithservice.go index ce270c5..104cb6a 100644 --- a/models/operations/getpluginwithservice.go +++ b/models/operations/getpluginwithservice.go @@ -8,7 +8,7 @@ import ( ) type GetPluginWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/getroute.go b/models/operations/getroute.go index 4272408..4469bb5 100644 --- a/models/operations/getroute.go +++ b/models/operations/getroute.go @@ -8,24 +8,24 @@ import ( ) type GetRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetRouteRequest) GetControlPlaneID() string { +func (o *GetRouteRequest) GetRouteID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.RouteID } -func (o *GetRouteRequest) GetRouteID() string { +func (o *GetRouteRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.RouteID + return o.ControlPlaneID } type GetRouteResponse struct { diff --git a/models/operations/getroutewithservice.go b/models/operations/getroutewithservice.go index 4aa3e0b..c928726 100644 --- a/models/operations/getroutewithservice.go +++ b/models/operations/getroutewithservice.go @@ -8,7 +8,7 @@ import ( ) type GetRouteWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/getservice.go b/models/operations/getservice.go index 55d0673..e85816a 100644 --- a/models/operations/getservice.go +++ b/models/operations/getservice.go @@ -8,24 +8,24 @@ import ( ) type GetServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetServiceRequest) GetControlPlaneID() string { +func (o *GetServiceRequest) GetServiceID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.ServiceID } -func (o *GetServiceRequest) GetServiceID() string { +func (o *GetServiceRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.ServiceID + return o.ControlPlaneID } type GetServiceResponse struct { diff --git a/models/operations/getsni.go b/models/operations/getsni.go index d3c67a4..c28492c 100644 --- a/models/operations/getsni.go +++ b/models/operations/getsni.go @@ -8,24 +8,24 @@ import ( ) type GetSniRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the SNI to lookup SNIID string `pathParam:"style=simple,explode=false,name=SNIId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetSniRequest) GetControlPlaneID() string { +func (o *GetSniRequest) GetSNIID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.SNIID } -func (o *GetSniRequest) GetSNIID() string { +func (o *GetSniRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.SNIID + return o.ControlPlaneID } type GetSniResponse struct { diff --git a/models/operations/getsniwithcertificate.go b/models/operations/getsniwithcertificate.go index ba16fe6..762854f 100644 --- a/models/operations/getsniwithcertificate.go +++ b/models/operations/getsniwithcertificate.go @@ -8,7 +8,7 @@ import ( ) type GetSniWithCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` diff --git a/models/operations/gettargetwithupstream.go b/models/operations/gettargetwithupstream.go index c8d90ad..d11c674 100644 --- a/models/operations/gettargetwithupstream.go +++ b/models/operations/gettargetwithupstream.go @@ -8,7 +8,7 @@ import ( ) type GetTargetWithUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID or target of the Target to lookup UpstreamIDForTarget string `pathParam:"style=simple,explode=false,name=UpstreamIdForTarget"` diff --git a/models/operations/getupstream.go b/models/operations/getupstream.go index ac54d57..f2571e1 100644 --- a/models/operations/getupstream.go +++ b/models/operations/getupstream.go @@ -8,24 +8,24 @@ import ( ) type GetUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Upstream to lookup UpstreamID string `pathParam:"style=simple,explode=false,name=UpstreamId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetUpstreamRequest) GetControlPlaneID() string { +func (o *GetUpstreamRequest) GetUpstreamID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.UpstreamID } -func (o *GetUpstreamRequest) GetUpstreamID() string { +func (o *GetUpstreamRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.UpstreamID + return o.ControlPlaneID } type GetUpstreamResponse struct { diff --git a/models/operations/getusersme.go b/models/operations/getusersme.go new file mode 100644 index 0000000..8acbfc3 --- /dev/null +++ b/models/operations/getusersme.go @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/Kong/sdk-konnect-go/models/components" + "net/http" +) + +var GetUsersMeServerList = []string{ + "https://global.api.konghq.com/", +} + +type GetUsersMeResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // A get action response of a single user. + User *components.User +} + +func (o *GetUsersMeResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *GetUsersMeResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetUsersMeResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *GetUsersMeResponse) GetUser() *components.User { + if o == nil { + return nil + } + return o.User +} diff --git a/models/operations/getvault.go b/models/operations/getvault.go index 8619b72..c7c7f26 100644 --- a/models/operations/getvault.go +++ b/models/operations/getvault.go @@ -8,24 +8,24 @@ import ( ) type GetVaultRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Vault to lookup VaultID string `pathParam:"style=simple,explode=false,name=VaultId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` } -func (o *GetVaultRequest) GetControlPlaneID() string { +func (o *GetVaultRequest) GetVaultID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.VaultID } -func (o *GetVaultRequest) GetVaultID() string { +func (o *GetVaultRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.VaultID + return o.ControlPlaneID } type GetVaultResponse struct { diff --git a/models/operations/listacl.go b/models/operations/listacl.go index 75836d2..ff00dd3 100644 --- a/models/operations/listacl.go +++ b/models/operations/listacl.go @@ -9,7 +9,7 @@ import ( ) type ListACLRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListACLRequest) GetTags() *string { // ListACLResponseBody - A successful response listing ACLs type ListACLResponseBody struct { Data []components.ACL `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListACLResponseBody) GetData() []components.ACL { return o.Data } +func (o *ListACLResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListACLResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listaclwithconsumer.go b/models/operations/listaclwithconsumer.go index 764c12f..2760583 100644 --- a/models/operations/listaclwithconsumer.go +++ b/models/operations/listaclwithconsumer.go @@ -9,7 +9,7 @@ import ( ) type ListACLWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` @@ -70,6 +70,8 @@ func (o *ListACLWithConsumerRequest) GetTags() *string { // ListACLWithConsumerResponseBody - A successful response listing ACLs type ListACLWithConsumerResponseBody struct { Data []components.ACL `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListACLWithConsumerResponseBody) GetData() []components.ACL { return o.Data } +func (o *ListACLWithConsumerResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListACLWithConsumerResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listbasicauth.go b/models/operations/listbasicauth.go index 1fb645c..c985195 100644 --- a/models/operations/listbasicauth.go +++ b/models/operations/listbasicauth.go @@ -9,7 +9,7 @@ import ( ) type ListBasicAuthRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListBasicAuthRequest) GetTags() *string { // ListBasicAuthResponseBody - A successful response listing Basic-auth credentials type ListBasicAuthResponseBody struct { Data []components.BasicAuth `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListBasicAuthResponseBody) GetData() []components.BasicAuth { return o.Data } +func (o *ListBasicAuthResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListBasicAuthResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listbasicauthwithconsumer.go b/models/operations/listbasicauthwithconsumer.go index bc60ecb..9b8e5fd 100644 --- a/models/operations/listbasicauthwithconsumer.go +++ b/models/operations/listbasicauthwithconsumer.go @@ -9,7 +9,7 @@ import ( ) type ListBasicAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` @@ -70,6 +70,8 @@ func (o *ListBasicAuthWithConsumerRequest) GetTags() *string { // ListBasicAuthWithConsumerResponseBody - A successful response listing Basic-auth credentials type ListBasicAuthWithConsumerResponseBody struct { Data []components.BasicAuth `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListBasicAuthWithConsumerResponseBody) GetData() []components.BasicAuth return o.Data } +func (o *ListBasicAuthWithConsumerResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListBasicAuthWithConsumerResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listcacertificate.go b/models/operations/listcacertificate.go index cc902ad..8aa9f6e 100644 --- a/models/operations/listcacertificate.go +++ b/models/operations/listcacertificate.go @@ -9,7 +9,7 @@ import ( ) type ListCaCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListCaCertificateRequest) GetTags() *string { // ListCaCertificateResponseBody - A successful response listing CA Certificates type ListCaCertificateResponseBody struct { Data []components.CACertificate `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListCaCertificateResponseBody) GetData() []components.CACertificate { return o.Data } +func (o *ListCaCertificateResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListCaCertificateResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listcertificate.go b/models/operations/listcertificate.go index c4b4a59..d36eefb 100644 --- a/models/operations/listcertificate.go +++ b/models/operations/listcertificate.go @@ -9,7 +9,7 @@ import ( ) type ListCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListCertificateRequest) GetTags() *string { // ListCertificateResponseBody - A successful response listing Certificates type ListCertificateResponseBody struct { Data []components.Certificate `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListCertificateResponseBody) GetData() []components.Certificate { return o.Data } +func (o *ListCertificateResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListCertificateResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listconsumer.go b/models/operations/listconsumer.go index 9cc7925..58b4a2f 100644 --- a/models/operations/listconsumer.go +++ b/models/operations/listconsumer.go @@ -9,7 +9,7 @@ import ( ) type ListConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListConsumerRequest) GetTags() *string { // ListConsumerResponseBody - A successful response listing Consumers type ListConsumerResponseBody struct { Data []components.Consumer `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListConsumerResponseBody) GetData() []components.Consumer { return o.Data } +func (o *ListConsumerResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListConsumerResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listconsumergroup.go b/models/operations/listconsumergroup.go index 0e3e013..166ed7b 100644 --- a/models/operations/listconsumergroup.go +++ b/models/operations/listconsumergroup.go @@ -9,7 +9,7 @@ import ( ) type ListConsumerGroupRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListConsumerGroupRequest) GetTags() *string { // ListConsumerGroupResponseBody - A successful response listing Consumer Groups type ListConsumerGroupResponseBody struct { Data []components.ConsumerGroup `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListConsumerGroupResponseBody) GetData() []components.ConsumerGroup { return o.Data } +func (o *ListConsumerGroupResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListConsumerGroupResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listdpclientcertificates.go b/models/operations/listdpclientcertificates.go index 04d3410..c09662a 100644 --- a/models/operations/listdpclientcertificates.go +++ b/models/operations/listdpclientcertificates.go @@ -10,10 +10,6 @@ import ( type ListDpClientCertificatesRequest struct { // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` - // The maximum number of items to include per page. The last page of a collection may include fewer items. - PageSize *int64 `queryParam:"style=form,explode=true,name=page[size]"` - // Request the next page of data, starting with the item after this parameter. - PageAfter *string `queryParam:"style=form,explode=true,name=page[after]"` } func (o *ListDpClientCertificatesRequest) GetControlPlaneID() string { @@ -23,20 +19,6 @@ func (o *ListDpClientCertificatesRequest) GetControlPlaneID() string { return o.ControlPlaneID } -func (o *ListDpClientCertificatesRequest) GetPageSize() *int64 { - if o == nil { - return nil - } - return o.PageSize -} - -func (o *ListDpClientCertificatesRequest) GetPageAfter() *string { - if o == nil { - return nil - } - return o.PageAfter -} - type ListDpClientCertificatesResponse struct { // HTTP response content type for this operation ContentType string diff --git a/models/operations/listhmacauth.go b/models/operations/listhmacauth.go index 3aea903..ee6df05 100644 --- a/models/operations/listhmacauth.go +++ b/models/operations/listhmacauth.go @@ -9,7 +9,7 @@ import ( ) type ListHmacAuthRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListHmacAuthRequest) GetTags() *string { // ListHmacAuthResponseBody - A successful response listing HMAC-auth credentials type ListHmacAuthResponseBody struct { Data []components.HMACAuth `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListHmacAuthResponseBody) GetData() []components.HMACAuth { return o.Data } +func (o *ListHmacAuthResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListHmacAuthResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listhmacauthwithconsumer.go b/models/operations/listhmacauthwithconsumer.go index c96b181..0df6b78 100644 --- a/models/operations/listhmacauthwithconsumer.go +++ b/models/operations/listhmacauthwithconsumer.go @@ -9,7 +9,7 @@ import ( ) type ListHmacAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` @@ -70,6 +70,8 @@ func (o *ListHmacAuthWithConsumerRequest) GetTags() *string { // ListHmacAuthWithConsumerResponseBody - A successful response listing HMAC-auth credentials type ListHmacAuthWithConsumerResponseBody struct { Data []components.HMACAuth `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListHmacAuthWithConsumerResponseBody) GetData() []components.HMACAuth { return o.Data } +func (o *ListHmacAuthWithConsumerResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListHmacAuthWithConsumerResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listjwt.go b/models/operations/listjwt.go index bd8ac8f..d98e6f9 100644 --- a/models/operations/listjwt.go +++ b/models/operations/listjwt.go @@ -9,7 +9,7 @@ import ( ) type ListJwtRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListJwtRequest) GetTags() *string { // ListJwtResponseBody - A successful response listing JWTs type ListJwtResponseBody struct { Data []components.Jwt `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListJwtResponseBody) GetData() []components.Jwt { return o.Data } +func (o *ListJwtResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListJwtResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listjwtwithconsumer.go b/models/operations/listjwtwithconsumer.go index 0850994..1a54e34 100644 --- a/models/operations/listjwtwithconsumer.go +++ b/models/operations/listjwtwithconsumer.go @@ -9,7 +9,7 @@ import ( ) type ListJwtWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` @@ -70,6 +70,8 @@ func (o *ListJwtWithConsumerRequest) GetTags() *string { // ListJwtWithConsumerResponseBody - A successful response listing JWTs type ListJwtWithConsumerResponseBody struct { Data []components.Jwt `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListJwtWithConsumerResponseBody) GetData() []components.Jwt { return o.Data } +func (o *ListJwtWithConsumerResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListJwtWithConsumerResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listkey.go b/models/operations/listkey.go index 2abe7ad..70633bd 100644 --- a/models/operations/listkey.go +++ b/models/operations/listkey.go @@ -9,7 +9,7 @@ import ( ) type ListKeyRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListKeyRequest) GetTags() *string { // ListKeyResponseBody - A successful response listing Keys type ListKeyResponseBody struct { Data []components.Key `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListKeyResponseBody) GetData() []components.Key { return o.Data } +func (o *ListKeyResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListKeyResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listkeyauth.go b/models/operations/listkeyauth.go index e0355bb..48ee956 100644 --- a/models/operations/listkeyauth.go +++ b/models/operations/listkeyauth.go @@ -9,7 +9,7 @@ import ( ) type ListKeyAuthRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListKeyAuthRequest) GetTags() *string { // ListKeyAuthResponseBody - A successful response listing API-keys type ListKeyAuthResponseBody struct { Data []components.KeyAuth `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListKeyAuthResponseBody) GetData() []components.KeyAuth { return o.Data } +func (o *ListKeyAuthResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListKeyAuthResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listkeyauthwithconsumer.go b/models/operations/listkeyauthwithconsumer.go index 254679e..3fa4d6d 100644 --- a/models/operations/listkeyauthwithconsumer.go +++ b/models/operations/listkeyauthwithconsumer.go @@ -9,7 +9,7 @@ import ( ) type ListKeyAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` @@ -70,6 +70,8 @@ func (o *ListKeyAuthWithConsumerRequest) GetTags() *string { // ListKeyAuthWithConsumerResponseBody - A successful response listing API-keys type ListKeyAuthWithConsumerResponseBody struct { Data []components.KeyAuth `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListKeyAuthWithConsumerResponseBody) GetData() []components.KeyAuth { return o.Data } +func (o *ListKeyAuthWithConsumerResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListKeyAuthWithConsumerResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listkeyset.go b/models/operations/listkeyset.go index 165aaf2..3e017f0 100644 --- a/models/operations/listkeyset.go +++ b/models/operations/listkeyset.go @@ -9,7 +9,7 @@ import ( ) type ListKeySetRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListKeySetRequest) GetTags() *string { // ListKeySetResponseBody - A successful response listing KeySets type ListKeySetResponseBody struct { Data []components.KeySet `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListKeySetResponseBody) GetData() []components.KeySet { return o.Data } +func (o *ListKeySetResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListKeySetResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listplugin.go b/models/operations/listplugin.go index bc83178..e66f067 100644 --- a/models/operations/listplugin.go +++ b/models/operations/listplugin.go @@ -9,7 +9,7 @@ import ( ) type ListPluginRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListPluginRequest) GetTags() *string { // ListPluginResponseBody - A successful response listing Plugins type ListPluginResponseBody struct { Data []components.Plugin `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListPluginResponseBody) GetData() []components.Plugin { return o.Data } +func (o *ListPluginResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListPluginResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listpluginwithroute.go b/models/operations/listpluginwithroute.go index 2c6457f..c559d0a 100644 --- a/models/operations/listpluginwithroute.go +++ b/models/operations/listpluginwithroute.go @@ -9,7 +9,7 @@ import ( ) type ListPluginWithRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` @@ -70,6 +70,8 @@ func (o *ListPluginWithRouteRequest) GetTags() *string { // ListPluginWithRouteResponseBody - A successful response listing Plugins type ListPluginWithRouteResponseBody struct { Data []components.Plugin `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListPluginWithRouteResponseBody) GetData() []components.Plugin { return o.Data } +func (o *ListPluginWithRouteResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListPluginWithRouteResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listpluginwithservice.go b/models/operations/listpluginwithservice.go index dba4c5a..e063583 100644 --- a/models/operations/listpluginwithservice.go +++ b/models/operations/listpluginwithservice.go @@ -9,7 +9,7 @@ import ( ) type ListPluginWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` @@ -70,6 +70,8 @@ func (o *ListPluginWithServiceRequest) GetTags() *string { // ListPluginWithServiceResponseBody - A successful response listing Plugins type ListPluginWithServiceResponseBody struct { Data []components.Plugin `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListPluginWithServiceResponseBody) GetData() []components.Plugin { return o.Data } +func (o *ListPluginWithServiceResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListPluginWithServiceResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listroute.go b/models/operations/listroute.go index a447985..a58402c 100644 --- a/models/operations/listroute.go +++ b/models/operations/listroute.go @@ -9,7 +9,7 @@ import ( ) type ListRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListRouteRequest) GetTags() *string { // ListRouteResponseBody - A successful response listing Routes type ListRouteResponseBody struct { Data []components.Route `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListRouteResponseBody) GetData() []components.Route { return o.Data } +func (o *ListRouteResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListRouteResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listroutewithservice.go b/models/operations/listroutewithservice.go index 925c939..6684102 100644 --- a/models/operations/listroutewithservice.go +++ b/models/operations/listroutewithservice.go @@ -9,7 +9,7 @@ import ( ) type ListRouteWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` @@ -70,6 +70,8 @@ func (o *ListRouteWithServiceRequest) GetTags() *string { // ListRouteWithServiceResponseBody - A successful response listing Routes type ListRouteWithServiceResponseBody struct { Data []components.Route `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListRouteWithServiceResponseBody) GetData() []components.Route { return o.Data } +func (o *ListRouteWithServiceResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListRouteWithServiceResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listservice.go b/models/operations/listservice.go index 37f47a4..d186e7f 100644 --- a/models/operations/listservice.go +++ b/models/operations/listservice.go @@ -9,7 +9,7 @@ import ( ) type ListServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListServiceRequest) GetTags() *string { // ListServiceResponseBody - A successful response listing Services type ListServiceResponseBody struct { Data []components.Service `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListServiceResponseBody) GetData() []components.Service { return o.Data } +func (o *ListServiceResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListServiceResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listsni.go b/models/operations/listsni.go index b6e87f9..cf198b6 100644 --- a/models/operations/listsni.go +++ b/models/operations/listsni.go @@ -9,7 +9,7 @@ import ( ) type ListSniRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListSniRequest) GetTags() *string { // ListSniResponseBody - A successful response listing SNIs type ListSniResponseBody struct { Data []components.Sni `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListSniResponseBody) GetData() []components.Sni { return o.Data } +func (o *ListSniResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListSniResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listsniwithcertificate.go b/models/operations/listsniwithcertificate.go index 1f20893..d49240a 100644 --- a/models/operations/listsniwithcertificate.go +++ b/models/operations/listsniwithcertificate.go @@ -9,7 +9,7 @@ import ( ) type ListSniWithCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` @@ -70,6 +70,8 @@ func (o *ListSniWithCertificateRequest) GetTags() *string { // ListSniWithCertificateResponseBody - A successful response listing SNIs type ListSniWithCertificateResponseBody struct { Data []components.Sni `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListSniWithCertificateResponseBody) GetData() []components.Sni { return o.Data } +func (o *ListSniWithCertificateResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListSniWithCertificateResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listtargetwithupstream.go b/models/operations/listtargetwithupstream.go index eb3ad5c..40097d2 100644 --- a/models/operations/listtargetwithupstream.go +++ b/models/operations/listtargetwithupstream.go @@ -9,7 +9,7 @@ import ( ) type ListTargetWithUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID or target of the Target to lookup UpstreamIDForTarget string `pathParam:"style=simple,explode=false,name=UpstreamIdForTarget"` @@ -70,6 +70,8 @@ func (o *ListTargetWithUpstreamRequest) GetTags() *string { // ListTargetWithUpstreamResponseBody - A successful response listing Targets type ListTargetWithUpstreamResponseBody struct { Data []components.Target `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -81,6 +83,13 @@ func (o *ListTargetWithUpstreamResponseBody) GetData() []components.Target { return o.Data } +func (o *ListTargetWithUpstreamResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListTargetWithUpstreamResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listupstream.go b/models/operations/listupstream.go index 0914c68..44a9f23 100644 --- a/models/operations/listupstream.go +++ b/models/operations/listupstream.go @@ -9,7 +9,7 @@ import ( ) type ListUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListUpstreamRequest) GetTags() *string { // ListUpstreamResponseBody - A successful response listing Upstreams type ListUpstreamResponseBody struct { Data []components.Upstream `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListUpstreamResponseBody) GetData() []components.Upstream { return o.Data } +func (o *ListUpstreamResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListUpstreamResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/listvault.go b/models/operations/listvault.go index c0749cd..6fc7584 100644 --- a/models/operations/listvault.go +++ b/models/operations/listvault.go @@ -9,7 +9,7 @@ import ( ) type ListVaultRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Number of resources to be returned. Size *int64 `default:"100" queryParam:"style=form,explode=true,name=size"` @@ -61,6 +61,8 @@ func (o *ListVaultRequest) GetTags() *string { // ListVaultResponseBody - A successful response listing Vaults type ListVaultResponseBody struct { Data []components.Vault `json:"data,omitempty"` + // URI to the next page (may be null) + Next *string `json:"next,omitempty"` // Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page Offset *string `json:"offset,omitempty"` } @@ -72,6 +74,13 @@ func (o *ListVaultResponseBody) GetData() []components.Vault { return o.Data } +func (o *ListVaultResponseBody) GetNext() *string { + if o == nil { + return nil + } + return o.Next +} + func (o *ListVaultResponseBody) GetOffset() *string { if o == nil { return nil diff --git a/models/operations/removeconsumerfromgroup.go b/models/operations/removeconsumerfromgroup.go new file mode 100644 index 0000000..00c355b --- /dev/null +++ b/models/operations/removeconsumerfromgroup.go @@ -0,0 +1,65 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type RemoveConsumerFromGroupRequest struct { + ConsumerGroupID string `pathParam:"style=simple,explode=false,name=ConsumerGroupId"` + ConsumerID string `pathParam:"style=simple,explode=false,name=ConsumerId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` +} + +func (o *RemoveConsumerFromGroupRequest) GetConsumerGroupID() string { + if o == nil { + return "" + } + return o.ConsumerGroupID +} + +func (o *RemoveConsumerFromGroupRequest) GetConsumerID() string { + if o == nil { + return "" + } + return o.ConsumerID +} + +func (o *RemoveConsumerFromGroupRequest) GetControlPlaneID() string { + if o == nil { + return "" + } + return o.ControlPlaneID +} + +type RemoveConsumerFromGroupResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (o *RemoveConsumerFromGroupResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *RemoveConsumerFromGroupResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *RemoveConsumerFromGroupResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/models/operations/upsertaclwithconsumer.go b/models/operations/upsertaclwithconsumer.go index 8cb015f..4c3affd 100644 --- a/models/operations/upsertaclwithconsumer.go +++ b/models/operations/upsertaclwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type UpsertACLWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/upsertbasicauthwithconsumer.go b/models/operations/upsertbasicauthwithconsumer.go index c8070c0..fb1f3da 100644 --- a/models/operations/upsertbasicauthwithconsumer.go +++ b/models/operations/upsertbasicauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type UpsertBasicAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/upsertcacertificate.go b/models/operations/upsertcacertificate.go index 37d4b91..62b37b1 100644 --- a/models/operations/upsertcacertificate.go +++ b/models/operations/upsertcacertificate.go @@ -8,26 +8,26 @@ import ( ) type UpsertCaCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the CA Certificate to lookup CACertificateID string `pathParam:"style=simple,explode=false,name=CACertificateId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the CA Certificate CACertificate components.CACertificateInput `request:"mediaType=application/json"` } -func (o *UpsertCaCertificateRequest) GetControlPlaneID() string { +func (o *UpsertCaCertificateRequest) GetCACertificateID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.CACertificateID } -func (o *UpsertCaCertificateRequest) GetCACertificateID() string { +func (o *UpsertCaCertificateRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.CACertificateID + return o.ControlPlaneID } func (o *UpsertCaCertificateRequest) GetCACertificate() components.CACertificateInput { diff --git a/models/operations/upsertcertificate.go b/models/operations/upsertcertificate.go index 7344a2e..73b579b 100644 --- a/models/operations/upsertcertificate.go +++ b/models/operations/upsertcertificate.go @@ -8,26 +8,26 @@ import ( ) type UpsertCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Certificate Certificate components.CertificateInput `request:"mediaType=application/json"` } -func (o *UpsertCertificateRequest) GetControlPlaneID() string { +func (o *UpsertCertificateRequest) GetCertificateID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.CertificateID } -func (o *UpsertCertificateRequest) GetCertificateID() string { +func (o *UpsertCertificateRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.CertificateID + return o.ControlPlaneID } func (o *UpsertCertificateRequest) GetCertificate() components.CertificateInput { diff --git a/models/operations/upsertconsumer.go b/models/operations/upsertconsumer.go index 01ddb24..11f1543 100644 --- a/models/operations/upsertconsumer.go +++ b/models/operations/upsertconsumer.go @@ -8,26 +8,26 @@ import ( ) type UpsertConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Consumer to lookup ConsumerID string `pathParam:"style=simple,explode=false,name=ConsumerId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Consumer Consumer components.ConsumerInput `request:"mediaType=application/json"` } -func (o *UpsertConsumerRequest) GetControlPlaneID() string { +func (o *UpsertConsumerRequest) GetConsumerID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.ConsumerID } -func (o *UpsertConsumerRequest) GetConsumerID() string { +func (o *UpsertConsumerRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.ConsumerID + return o.ControlPlaneID } func (o *UpsertConsumerRequest) GetConsumer() components.ConsumerInput { diff --git a/models/operations/upsertconsumergroup.go b/models/operations/upsertconsumergroup.go index 74123ff..fb1ae80 100644 --- a/models/operations/upsertconsumergroup.go +++ b/models/operations/upsertconsumergroup.go @@ -8,26 +8,26 @@ import ( ) type UpsertConsumerGroupRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Consumer Group to lookup ConsumerGroupID string `pathParam:"style=simple,explode=false,name=ConsumerGroupId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Consumer Group ConsumerGroup components.ConsumerGroupInput `request:"mediaType=application/json"` } -func (o *UpsertConsumerGroupRequest) GetControlPlaneID() string { +func (o *UpsertConsumerGroupRequest) GetConsumerGroupID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.ConsumerGroupID } -func (o *UpsertConsumerGroupRequest) GetConsumerGroupID() string { +func (o *UpsertConsumerGroupRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.ConsumerGroupID + return o.ControlPlaneID } func (o *UpsertConsumerGroupRequest) GetConsumerGroup() components.ConsumerGroupInput { diff --git a/models/operations/upserthmacauthwithconsumer.go b/models/operations/upserthmacauthwithconsumer.go index bb90937..b261f44 100644 --- a/models/operations/upserthmacauthwithconsumer.go +++ b/models/operations/upserthmacauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type UpsertHmacAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/upsertjwtwithconsumer.go b/models/operations/upsertjwtwithconsumer.go index e784831..f921193 100644 --- a/models/operations/upsertjwtwithconsumer.go +++ b/models/operations/upsertjwtwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type UpsertJwtWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/upsertkey.go b/models/operations/upsertkey.go index 10d098b..1e3bd49 100644 --- a/models/operations/upsertkey.go +++ b/models/operations/upsertkey.go @@ -8,26 +8,26 @@ import ( ) type UpsertKeyRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Key to lookup KeyID string `pathParam:"style=simple,explode=false,name=KeyId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Key Key components.KeyInput `request:"mediaType=application/json"` } -func (o *UpsertKeyRequest) GetControlPlaneID() string { +func (o *UpsertKeyRequest) GetKeyID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.KeyID } -func (o *UpsertKeyRequest) GetKeyID() string { +func (o *UpsertKeyRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.KeyID + return o.ControlPlaneID } func (o *UpsertKeyRequest) GetKey() components.KeyInput { diff --git a/models/operations/upsertkeyauthwithconsumer.go b/models/operations/upsertkeyauthwithconsumer.go index b9fc47b..d2980a7 100644 --- a/models/operations/upsertkeyauthwithconsumer.go +++ b/models/operations/upsertkeyauthwithconsumer.go @@ -8,7 +8,7 @@ import ( ) type UpsertKeyAuthWithConsumerRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Consumer ID for nested entities ConsumerIDForNestedEntities string `pathParam:"style=simple,explode=false,name=ConsumerIdForNestedEntities"` diff --git a/models/operations/upsertkeyset.go b/models/operations/upsertkeyset.go index df82943..50e2d17 100644 --- a/models/operations/upsertkeyset.go +++ b/models/operations/upsertkeyset.go @@ -8,26 +8,26 @@ import ( ) type UpsertKeySetRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the KeySet to lookup KeySetID string `pathParam:"style=simple,explode=false,name=KeySetId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the KeySet KeySet components.KeySetInput `request:"mediaType=application/json"` } -func (o *UpsertKeySetRequest) GetControlPlaneID() string { +func (o *UpsertKeySetRequest) GetKeySetID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.KeySetID } -func (o *UpsertKeySetRequest) GetKeySetID() string { +func (o *UpsertKeySetRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.KeySetID + return o.ControlPlaneID } func (o *UpsertKeySetRequest) GetKeySet() components.KeySetInput { diff --git a/models/operations/upsertplugin.go b/models/operations/upsertplugin.go index 09146fb..81d6b32 100644 --- a/models/operations/upsertplugin.go +++ b/models/operations/upsertplugin.go @@ -8,26 +8,26 @@ import ( ) type UpsertPluginRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Plugin to lookup PluginID string `pathParam:"style=simple,explode=false,name=PluginId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Plugin Plugin components.PluginInput `request:"mediaType=application/json"` } -func (o *UpsertPluginRequest) GetControlPlaneID() string { +func (o *UpsertPluginRequest) GetPluginID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.PluginID } -func (o *UpsertPluginRequest) GetPluginID() string { +func (o *UpsertPluginRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.PluginID + return o.ControlPlaneID } func (o *UpsertPluginRequest) GetPlugin() components.PluginInput { diff --git a/models/operations/upsertpluginwithroute.go b/models/operations/upsertpluginwithroute.go index 6002e6c..09cae29 100644 --- a/models/operations/upsertpluginwithroute.go +++ b/models/operations/upsertpluginwithroute.go @@ -8,7 +8,7 @@ import ( ) type UpsertPluginWithRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` diff --git a/models/operations/upsertpluginwithservice.go b/models/operations/upsertpluginwithservice.go index 9e43d46..9557080 100644 --- a/models/operations/upsertpluginwithservice.go +++ b/models/operations/upsertpluginwithservice.go @@ -8,7 +8,7 @@ import ( ) type UpsertPluginWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/upsertroute.go b/models/operations/upsertroute.go index a283cd1..13f0c3d 100644 --- a/models/operations/upsertroute.go +++ b/models/operations/upsertroute.go @@ -8,26 +8,26 @@ import ( ) type UpsertRouteRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Route to lookup RouteID string `pathParam:"style=simple,explode=false,name=RouteId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Route Route components.RouteInput `request:"mediaType=application/json"` } -func (o *UpsertRouteRequest) GetControlPlaneID() string { +func (o *UpsertRouteRequest) GetRouteID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.RouteID } -func (o *UpsertRouteRequest) GetRouteID() string { +func (o *UpsertRouteRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.RouteID + return o.ControlPlaneID } func (o *UpsertRouteRequest) GetRoute() components.RouteInput { diff --git a/models/operations/upsertroutewithservice.go b/models/operations/upsertroutewithservice.go index ac1e4da..59e4106 100644 --- a/models/operations/upsertroutewithservice.go +++ b/models/operations/upsertroutewithservice.go @@ -8,7 +8,7 @@ import ( ) type UpsertRouteWithServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` diff --git a/models/operations/upsertservice.go b/models/operations/upsertservice.go index 69960ac..feea99d 100644 --- a/models/operations/upsertservice.go +++ b/models/operations/upsertservice.go @@ -8,26 +8,26 @@ import ( ) type UpsertServiceRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Service to lookup ServiceID string `pathParam:"style=simple,explode=false,name=ServiceId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Service Service components.ServiceInput `request:"mediaType=application/json"` } -func (o *UpsertServiceRequest) GetControlPlaneID() string { +func (o *UpsertServiceRequest) GetServiceID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.ServiceID } -func (o *UpsertServiceRequest) GetServiceID() string { +func (o *UpsertServiceRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.ServiceID + return o.ControlPlaneID } func (o *UpsertServiceRequest) GetService() components.ServiceInput { diff --git a/models/operations/upsertsni.go b/models/operations/upsertsni.go index e8e198d..92bd776 100644 --- a/models/operations/upsertsni.go +++ b/models/operations/upsertsni.go @@ -8,26 +8,26 @@ import ( ) type UpsertSniRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the SNI to lookup SNIID string `pathParam:"style=simple,explode=false,name=SNIId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the SNI Sni components.SNIInput `request:"mediaType=application/json"` } -func (o *UpsertSniRequest) GetControlPlaneID() string { +func (o *UpsertSniRequest) GetSNIID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.SNIID } -func (o *UpsertSniRequest) GetSNIID() string { +func (o *UpsertSniRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.SNIID + return o.ControlPlaneID } func (o *UpsertSniRequest) GetSni() components.SNIInput { diff --git a/models/operations/upsertsniwithcertificate.go b/models/operations/upsertsniwithcertificate.go index 8d47a21..61129a7 100644 --- a/models/operations/upsertsniwithcertificate.go +++ b/models/operations/upsertsniwithcertificate.go @@ -8,7 +8,7 @@ import ( ) type UpsertSniWithCertificateRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Certificate to lookup CertificateID string `pathParam:"style=simple,explode=false,name=CertificateId"` diff --git a/models/operations/upserttargetwithupstream.go b/models/operations/upserttargetwithupstream.go index 862e5fe..aa21198 100644 --- a/models/operations/upserttargetwithupstream.go +++ b/models/operations/upserttargetwithupstream.go @@ -8,7 +8,7 @@ import ( ) type UpsertTargetWithUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. + // The UUID of your control plane. This variable is available in the Konnect manager ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID or target of the Target to lookup UpstreamIDForTarget string `pathParam:"style=simple,explode=false,name=UpstreamIdForTarget"` diff --git a/models/operations/upsertupstream.go b/models/operations/upsertupstream.go index 771b1e3..ad0b2dd 100644 --- a/models/operations/upsertupstream.go +++ b/models/operations/upsertupstream.go @@ -8,26 +8,26 @@ import ( ) type UpsertUpstreamRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Upstream to lookup UpstreamID string `pathParam:"style=simple,explode=false,name=UpstreamId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Upstream Upstream components.UpstreamInput `request:"mediaType=application/json"` } -func (o *UpsertUpstreamRequest) GetControlPlaneID() string { +func (o *UpsertUpstreamRequest) GetUpstreamID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.UpstreamID } -func (o *UpsertUpstreamRequest) GetUpstreamID() string { +func (o *UpsertUpstreamRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.UpstreamID + return o.ControlPlaneID } func (o *UpsertUpstreamRequest) GetUpstream() components.UpstreamInput { diff --git a/models/operations/upsertvault.go b/models/operations/upsertvault.go index eab1170..bbf9eb1 100644 --- a/models/operations/upsertvault.go +++ b/models/operations/upsertvault.go @@ -8,26 +8,26 @@ import ( ) type UpsertVaultRequest struct { - // The UUID of your control plane. This variable is available in the Konnect manager. - ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // ID of the Vault to lookup VaultID string `pathParam:"style=simple,explode=false,name=VaultId"` + // The UUID of your control plane. This variable is available in the Konnect manager + ControlPlaneID string `pathParam:"style=simple,explode=false,name=controlPlaneId"` // Description of the Vault Vault components.VaultInput `request:"mediaType=application/json"` } -func (o *UpsertVaultRequest) GetControlPlaneID() string { +func (o *UpsertVaultRequest) GetVaultID() string { if o == nil { return "" } - return o.ControlPlaneID + return o.VaultID } -func (o *UpsertVaultRequest) GetVaultID() string { +func (o *UpsertVaultRequest) GetControlPlaneID() string { if o == nil { return "" } - return o.VaultID + return o.ControlPlaneID } func (o *UpsertVaultRequest) GetVault() components.VaultInput { diff --git a/openapi.yaml b/openapi.yaml index 3ec5669..961fe45 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -21,6 +21,10 @@ paths: operationId: list-serverless-cloud-gateway summary: List Serverless cloud gateways description: Returns an array of serverless cloud gateways objects. + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageNumber' + - $ref: '#/components/parameters/FilterSCGWByLabels' responses: '200': $ref: '#/components/responses/ListServerlessCloudGatewaysResponse' @@ -28,14 +32,10 @@ paths: $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' - tags: - - Serverless Cloud Gateways - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageNumber' - - $ref: '#/components/parameters/FilterSCGWByLabels' servers: - url: https://global.api.konghq.com/ + tags: + - Serverless Cloud Gateways post: x-speakeasy-entity-operation: ServerlessCloudGateway#create operationId: create-serverless-cloud-gateway @@ -47,8 +47,6 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateServerlessCloudGatewayRequest' - tags: - - Serverless Cloud Gateways responses: '201': $ref: '#/components/responses/CreateServerlessCloudGatewayResponse' @@ -60,24 +58,24 @@ paths: $ref: '#/components/responses/Forbidden' servers: - url: https://global.api.konghq.com/ + tags: + - Serverless Cloud Gateways /v0/serverless-cloud-gateways/{controlPlaneId}: parameters: - name: controlPlaneId in: path - required: true description: Id of the Serverless Cloud Gateway control plane - example: bf138ba2-c9b1-4229-b268-04d9d8a6410b + required: true schema: type: string format: uuid + example: bf138ba2-c9b1-4229-b268-04d9d8a6410b x-speakeasy-match: control_plane.id get: x-speakeasy-entity-operation: ServerlessCloudGateway#read operationId: get-serverless-cloud-gateway summary: Get the serverless cloud gateway description: Get the serverless cloud gateway - tags: - - Serverless Cloud Gateways responses: '200': $ref: '#/components/responses/RetrieveServerlessCloudGatewayResponse' @@ -89,13 +87,13 @@ paths: $ref: '#/components/responses/NotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Serverless Cloud Gateways delete: x-speakeasy-entity-operation: ServerlessCloudGateway#delete operationId: delete-serverless-cloud-gateway summary: Delete the serverless cloud gateway description: Delete the serverless cloud gateway - tags: - - Serverless Cloud Gateways responses: '204': description: No Content @@ -107,27 +105,15 @@ paths: $ref: '#/components/responses/NotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Serverless Cloud Gateways /v2/control-planes: - parameters: [] get: operationId: list-control-planes summary: List Control Planes description: >- Returns an array of control plane objects containing information about the Konnect Control Planes. - responses: - '200': - $ref: '#/components/responses/ListControlPlanesResponse' - '400': - $ref: '#/components/responses/ControlPlanesBadRequest' - '401': - $ref: '#/components/responses/ControlPlaneUnauthenticated' - '403': - $ref: '#/components/responses/ControlPlanePermissionDenied' - '503': - $ref: '#/components/responses/ServiceUnavailable' - tags: - - Control Planes parameters: - $ref: '#/components/parameters/PageSize' - $ref: '#/components/parameters/PageNumber' @@ -143,6 +129,20 @@ paths: - $ref: '#/components/parameters/FilterByClusterTypeNotEquals' - $ref: '#/components/parameters/FilterByLabels' - $ref: '#/components/parameters/ControlPlaneSort' + responses: + '200': + $ref: '#/components/responses/ListControlPlanesResponse' + '400': + $ref: '#/components/responses/ControlPlanesBadRequest' + '401': + $ref: '#/components/responses/ControlPlaneUnauthenticated' + '403': + $ref: '#/components/responses/ControlPlanePermissionDenied' + '503': + $ref: '#/components/responses/ServiceUnavailable' + tags: + - Control Planes + parameters: [] post: x-speakeasy-entity-operation: GatewayControlPlane#create operationId: create-control-plane @@ -172,504 +172,508 @@ paths: tags: - Control Planes /v2/control-planes/{controlPlaneId}/core-entities/acls: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-acl summary: List all ACLs description: List all ACLs + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing ACLs content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/ACL' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing ACLs '401': $ref: '#/components/responses/HTTP401Error' tags: - ACLs - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' - /v2/control-planes/{controlPlaneId}/core-entities/basic-auths: parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/core-entities/basic-auths: get: operationId: list-basic-auth summary: List all Basic-auth credentials description: List all Basic-auth credentials + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Basic-auth credentials content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/BasicAuth' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Basic-auth credentials '401': $ref: '#/components/responses/HTTP401Error' tags: - Basic-auth credentials - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' - /v2/control-planes/{controlPlaneId}/core-entities/ca_certificates: parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/core-entities/ca_certificates: get: operationId: list-ca_certificate summary: List all CA Certificates description: List all CA Certificates + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing CA Certificates content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/CACertificate' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing CA Certificates '401': $ref: '#/components/responses/HTTP401Error' tags: - CA Certificates - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-ca_certificate summary: Create a new CA Certificate description: Create a new CA Certificate requestBody: + description: Description of the new CA Certificate for creation + required: true content: application/json: schema: $ref: '#/components/schemas/CACertificate' - description: Description of the new CA Certificate for creation - required: true responses: '201': + description: Successfully created CA Certificate content: application/json: schema: $ref: '#/components/schemas/CACertificate' - description: Successfully created CA Certificate '401': $ref: '#/components/responses/HTTP401Error' tags: - CA Certificates /v2/control-planes/{controlPlaneId}/core-entities/ca_certificates/{CACertificateId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-ca_certificate + summary: Delete a CA Certificate + description: Delete a CA Certificate + parameters: + - $ref: '#/components/parameters/CACertificateId' + responses: + '204': + description: Successfully deleted CA Certificate or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - CA Certificates get: operationId: get-ca_certificate summary: Fetch a CA Certificate description: Get a CA Certificate using ID. responses: '200': + description: Successfully fetched CA Certificate content: application/json: schema: $ref: '#/components/schemas/CACertificate' - description: Successfully fetched CA Certificate '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - CA Certificates - parameters: - - $ref: '#/components/parameters/CACertificateId' + parameters: + - $ref: '#/components/parameters/CACertificateId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-ca_certificate summary: Upsert a CA Certificate description: Create or Update CA Certificate using ID. requestBody: + description: Description of the CA Certificate + required: true content: application/json: schema: $ref: '#/components/schemas/CACertificate' - description: Description of the CA Certificate - required: true responses: '200': + description: Successfully upserted CA Certificate content: application/json: schema: $ref: '#/components/schemas/CACertificate' - description: Successfully upserted CA Certificate - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - CA Certificates - parameters: - - $ref: '#/components/parameters/CACertificateId' - delete: - operationId: delete-ca_certificate - summary: Delete a CA Certificate - description: Delete a CA Certificate - responses: - '204': - description: Successfully deleted CA Certificate or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - CA Certificates - parameters: - - $ref: '#/components/parameters/CACertificateId' /v2/control-planes/{controlPlaneId}/core-entities/certificates: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-certificate summary: List all Certificates description: List all Certificates + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Certificates content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Certificate' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Certificates '401': $ref: '#/components/responses/HTTP401Error' tags: - Certificates - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-certificate summary: Create a new Certificate description: Create a new Certificate requestBody: + description: Description of the new Certificate for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Certificate' - description: Description of the new Certificate for creation - required: true responses: '201': + description: Successfully created Certificate content: application/json: schema: $ref: '#/components/schemas/Certificate' - description: Successfully created Certificate '401': $ref: '#/components/responses/HTTP401Error' tags: - Certificates /v2/control-planes/{controlPlaneId}/core-entities/certificates/{CertificateId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-certificate + summary: Delete a Certificate + description: Delete a Certificate + parameters: + - $ref: '#/components/parameters/CertificateId' + responses: + '204': + description: Successfully deleted Certificate or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Certificates get: operationId: get-certificate summary: Fetch a Certificate description: Get a Certificate using ID. responses: '200': + description: Successfully fetched Certificate content: application/json: schema: $ref: '#/components/schemas/Certificate' - description: Successfully fetched Certificate '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Certificates - parameters: - - $ref: '#/components/parameters/CertificateId' + parameters: + - $ref: '#/components/parameters/CertificateId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-certificate summary: Upsert a Certificate description: Create or Update Certificate using ID. requestBody: + description: Description of the Certificate + required: true content: application/json: schema: $ref: '#/components/schemas/Certificate' - description: Description of the Certificate - required: true responses: '200': + description: Successfully upserted Certificate content: application/json: schema: $ref: '#/components/schemas/Certificate' - description: Successfully upserted Certificate - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Certificates - parameters: - - $ref: '#/components/parameters/CertificateId' - delete: - operationId: delete-certificate - summary: Delete a Certificate - description: Delete a Certificate - responses: - '204': - description: Successfully deleted Certificate or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Certificates - parameters: - - $ref: '#/components/parameters/CertificateId' /v2/control-planes/{controlPlaneId}/core-entities/certificates/{CertificateId}/snis: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-sni-with-certificate summary: List all SNIs associated with a Certificate description: List all SNIs associated with a a Certificate + parameters: + - $ref: '#/components/parameters/CertificateId' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing SNIs content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/SNI' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing SNIs tags: - SNIs - parameters: - - $ref: '#/components/parameters/CertificateId' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-sni-with-certificate summary: Create a new SNI associated with a Certificate description: Create a new SNI associated with a Certificate + parameters: + - $ref: '#/components/parameters/CertificateId' requestBody: + description: Description of new SNI for creation + required: true content: application/json: schema: $ref: '#/components/schemas/SNIWithoutParents' - description: Description of new SNI for creation - required: true responses: '201': + description: Successfully created SNI content: application/json: schema: $ref: '#/components/schemas/SNI' - description: Successfully created SNI tags: - SNIs + /v2/control-planes/{controlPlaneId}/core-entities/certificates/{CertificateId}/snis/{SNIId}: + delete: + operationId: delete-sni-with-certificate + summary: Delete a an SNI associated with a a Certificate + description: Delete a an SNI associated with a a Certificate using ID or name. parameters: - $ref: '#/components/parameters/CertificateId' - /v2/control-planes/{controlPlaneId}/core-entities/certificates/{CertificateId}/snis/{SNIId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/SNIId' + responses: + '204': + description: Successfully deleted SNI or the resource didn't exist + tags: + - SNIs get: operationId: get-sni-with-certificate summary: Fetch an SNI associated with a Certificate description: Get an SNI associated with a Certificate using ID or name. + parameters: + - $ref: '#/components/parameters/CertificateId' + - $ref: '#/components/parameters/SNIId' responses: '200': + description: Successfully fetched SNI content: application/json: schema: $ref: '#/components/schemas/SNI' - description: Successfully fetched SNI '404': description: Resource does not exist tags: - SNIs - parameters: - - $ref: '#/components/parameters/CertificateId' - - $ref: '#/components/parameters/SNIId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-sni-with-certificate summary: Upsert an SNI associated with a Certificate description: Create or Update an SNI associated with a Certificate using ID or name. + parameters: + - $ref: '#/components/parameters/CertificateId' + - $ref: '#/components/parameters/SNIId' requestBody: + description: Description of the SNI + required: true content: application/json: schema: $ref: '#/components/schemas/SNIWithoutParents' - description: Description of the SNI - required: true responses: '200': + description: Successfully upserted SNI content: application/json: schema: $ref: '#/components/schemas/SNI' - description: Successfully upserted SNI - tags: - - SNIs - parameters: - - $ref: '#/components/parameters/CertificateId' - - $ref: '#/components/parameters/SNIId' - delete: - operationId: delete-sni-with-certificate - summary: Delete a an SNI associated with a a Certificate - description: Delete a an SNI associated with a a Certificate using ID or name. - responses: - '204': - description: Successfully deleted SNI or the resource didn't exist tags: - SNIs - parameters: - - $ref: '#/components/parameters/CertificateId' - - $ref: '#/components/parameters/SNIId' /v2/control-planes/{controlPlaneId}/core-entities/consumer_groups: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-consumer_group summary: List all Consumer Groups description: List all Consumer Groups + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Consumer Groups content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/ConsumerGroup' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Consumer Groups '401': $ref: '#/components/responses/HTTP401Error' tags: - Consumer Groups - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-consumer_group summary: Create a new Consumer Group description: Create a new Consumer Group requestBody: + description: Description of the new Consumer Group for creation + required: true content: application/json: schema: $ref: '#/components/schemas/ConsumerGroup' - description: Description of the new Consumer Group for creation - required: true responses: '201': + description: Successfully created Consumer Group content: application/json: schema: $ref: '#/components/schemas/ConsumerGroup' - description: Successfully created Consumer Group '401': $ref: '#/components/responses/HTTP401Error' tags: - Consumer Groups /v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-consumer_group + summary: Delete a Consumer Group + description: Delete a Consumer Group + parameters: + - $ref: '#/components/parameters/ConsumerGroupId' + responses: + '204': + description: Successfully deleted Consumer Group or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Consumer Groups get: operationId: get-consumer_group summary: Fetch a Consumer Group description: Get a Consumer Group using ID. responses: '200': + description: Successfully fetched Consumer Group content: application/json: schema: - $ref: '#/components/schemas/ConsumerGroup' - description: Successfully fetched Consumer Group + $ref: '#/components/schemas/ConsumerGroupInsideWrapper' '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Consumer Groups - parameters: - - $ref: '#/components/parameters/ConsumerGroupId' + parameters: + - $ref: '#/components/parameters/ConsumerGroupId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-consumer_group summary: Upsert a Consumer Group description: Create or Update Consumer Group using ID. requestBody: + description: Description of the Consumer Group + required: true content: application/json: schema: $ref: '#/components/schemas/ConsumerGroup' - description: Description of the Consumer Group - required: true responses: '200': + description: Successfully upserted Consumer Group content: application/json: schema: $ref: '#/components/schemas/ConsumerGroup' - description: Successfully upserted Consumer Group - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Consumer Groups - parameters: - - $ref: '#/components/parameters/ConsumerGroupId' - delete: - operationId: delete-consumer_group - summary: Delete a Consumer Group - description: Delete a Consumer Group - responses: - '204': - description: Successfully deleted Consumer Group or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Consumer Groups - parameters: - - $ref: '#/components/parameters/ConsumerGroupId' /v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}/consumers: parameters: - - $ref: '#/components/parameters/ConsumerGroupId' - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/ConsumerGroupIdManageConsumers' + - $ref: '#/components/parameters/controlPlaneId' post: + x-speakeasy-entity-operation: GatewayConsumerGroupMember#create operationId: add-consumer-to-group summary: Add consumer to consumer group description: Add a consumer to a consumer group @@ -677,980 +681,1015 @@ paths: content: application/json: schema: + type: object properties: consumer: - example: bob type: string - type: object + example: cf4c7e60-11db-49dd-b300-7c7e5f0f7e6b + x-speakeasy-name-override: consumer_id responses: '201': + description: Consumer added to group content: application/json: schema: + type: object properties: - consumer: - $ref: '#/components/schemas/Consumer' consumer_group: $ref: '#/components/schemas/ConsumerGroup' - type: object - description: Consumer Added + consumers: + type: array + items: + $ref: '#/components/schemas/Consumer' + tags: + - Consumer Groups + /v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}/consumers/{ConsumerId}: + delete: + x-speakeasy-entity-operation: GatewayConsumerGroupMember#delete + operationId: remove-consumer-from-group + summary: Remove consumer from consumer group + description: Remove a consumer from a consumer group + responses: + '204': + description: Consumer removed from group tags: - Consumer Groups - /v2/control-planes/{controlPlaneId}/core-entities/consumers: parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/ConsumerGroupIdManageConsumers' + - name: ConsumerId + in: path + required: true + schema: + type: string + - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/core-entities/consumers: get: operationId: list-consumer summary: List all Consumers description: List all Consumers + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Consumers content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Consumer' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Consumers '401': $ref: '#/components/responses/HTTP401Error' tags: - Consumers - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-consumer summary: Create a new Consumer description: Create a new Consumer requestBody: + description: Description of the new Consumer for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Consumer' - description: Description of the new Consumer for creation - required: true responses: '201': + description: Successfully created Consumer content: application/json: schema: $ref: '#/components/schemas/Consumer' - description: Successfully created Consumer '401': $ref: '#/components/responses/HTTP401Error' tags: - Consumers /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-consumer + summary: Delete a Consumer + description: Delete a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerId' + responses: + '204': + description: Successfully deleted Consumer or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Consumers get: operationId: get-consumer summary: Fetch a Consumer description: Get a Consumer using ID or username. responses: '200': + description: Successfully fetched Consumer content: application/json: schema: $ref: '#/components/schemas/Consumer' - description: Successfully fetched Consumer '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Consumers - parameters: - - $ref: '#/components/parameters/ConsumerId' + parameters: + - $ref: '#/components/parameters/ConsumerId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-consumer summary: Upsert a Consumer description: Create or Update Consumer using ID or username. requestBody: + description: Description of the Consumer + required: true content: application/json: schema: $ref: '#/components/schemas/Consumer' - description: Description of the Consumer - required: true responses: '200': + description: Successfully upserted Consumer content: application/json: schema: $ref: '#/components/schemas/Consumer' - description: Successfully upserted Consumer - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Consumers - parameters: - - $ref: '#/components/parameters/ConsumerId' - delete: - operationId: delete-consumer - summary: Delete a Consumer - description: Delete a Consumer - responses: - '204': - description: Successfully deleted Consumer or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Consumers - parameters: - - $ref: '#/components/parameters/ConsumerId' /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/acls: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-acl-with-consumer summary: List all ACLs associated with a Consumer description: List all ACLs associated with a a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing ACLs content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/ACL' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing ACLs tags: - ACLs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-acl-with-consumer summary: Create a new ACL associated with a Consumer description: Create a new ACL associated with a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' requestBody: + description: Description of new ACL for creation + required: true content: application/json: schema: $ref: '#/components/schemas/ACLWithoutParents' - description: Description of new ACL for creation - required: true responses: '201': + description: Successfully created ACL content: application/json: schema: $ref: '#/components/schemas/ACL' - description: Successfully created ACL tags: - ACLs + /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/acls/{ACLId}: + delete: + operationId: delete-acl-with-consumer + summary: Delete a an ACL associated with a a Consumer + description: Delete a an ACL associated with a a Consumer using ID. parameters: - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/acls/{ACLId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/ACLId' + responses: + '204': + description: Successfully deleted ACL or the resource didn't exist + tags: + - ACLs get: operationId: get-acl-with-consumer summary: Fetch an ACL associated with a Consumer description: Get an ACL associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/ACLId' responses: '200': + description: Successfully fetched ACL content: application/json: schema: $ref: '#/components/schemas/ACL' - description: Successfully fetched ACL '404': description: Resource does not exist tags: - ACLs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/ACLId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-acl-with-consumer summary: Upsert an ACL associated with a Consumer description: Create or Update an ACL associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/ACLId' requestBody: + description: Description of the ACL + required: true content: application/json: schema: $ref: '#/components/schemas/ACLWithoutParents' - description: Description of the ACL - required: true responses: '200': + description: Successfully upserted ACL content: application/json: schema: $ref: '#/components/schemas/ACL' - description: Successfully upserted ACL tags: - ACLs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/ACLId' - delete: - operationId: delete-acl-with-consumer - summary: Delete a an ACL associated with a a Consumer - description: Delete a an ACL associated with a a Consumer using ID. - responses: - '204': - description: Successfully deleted ACL or the resource didn't exist - tags: - - ACLs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/ACLId' /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/basic-auth: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-basic-auth-with-consumer summary: List all Basic-auth credentials associated with a Consumer description: List all Basic-auth credentials associated with a a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Basic-auth credentials content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/BasicAuth' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Basic-auth credentials tags: - Basic-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-basic-auth-with-consumer summary: Create a new Basic-auth credential associated with a Consumer description: Create a new Basic-auth credential associated with a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' requestBody: + description: Description of new Basic-auth credential for creation + required: true content: application/json: schema: $ref: '#/components/schemas/BasicAuthWithoutParents' - description: Description of new Basic-auth credential for creation - required: true responses: '201': + description: Successfully created Basic-auth credential content: application/json: schema: $ref: '#/components/schemas/BasicAuth' - description: Successfully created Basic-auth credential tags: - Basic-auth credentials + /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/basic-auth/{BasicAuthId}: + delete: + operationId: delete-basic-auth-with-consumer + summary: Delete a a Basic-auth credential associated with a a Consumer + description: Delete a a Basic-auth credential associated with a a Consumer using ID. parameters: - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/basic-auth/{BasicAuthId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/BasicAuthId' + responses: + '204': + description: >- + Successfully deleted Basic-auth credential or the resource didn't + exist + tags: + - Basic-auth credentials get: operationId: get-basic-auth-with-consumer summary: Fetch a Basic-auth credential associated with a Consumer description: Get a Basic-auth credential associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/BasicAuthId' responses: '200': + description: Successfully fetched Basic-auth credential content: application/json: schema: $ref: '#/components/schemas/BasicAuth' - description: Successfully fetched Basic-auth credential '404': description: Resource does not exist tags: - Basic-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/BasicAuthId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-basic-auth-with-consumer summary: Upsert a Basic-auth credential associated with a Consumer description: >- Create or Update a Basic-auth credential associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/BasicAuthId' requestBody: + description: Description of the Basic-auth credential + required: true content: application/json: schema: $ref: '#/components/schemas/BasicAuthWithoutParents' - description: Description of the Basic-auth credential - required: true responses: '200': + description: Successfully upserted Basic-auth credential content: application/json: schema: $ref: '#/components/schemas/BasicAuth' - description: Successfully upserted Basic-auth credential - tags: - - Basic-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/BasicAuthId' - delete: - operationId: delete-basic-auth-with-consumer - summary: Delete a a Basic-auth credential associated with a a Consumer - description: Delete a a Basic-auth credential associated with a a Consumer using ID. - responses: - '204': - description: >- - Successfully deleted Basic-auth credential or the resource didn't - exist tags: - Basic-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/BasicAuthId' /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/hmac-auth: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-hmac-auth-with-consumer summary: List all HMAC-auth credentials associated with a Consumer description: List all HMAC-auth credentials associated with a a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing HMAC-auth credentials content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/HMACAuth' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing HMAC-auth credentials tags: - HMAC-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-hmac-auth-with-consumer summary: Create a new HMAC-auth credential associated with a Consumer description: Create a new HMAC-auth credential associated with a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' requestBody: + description: Description of new HMAC-auth credential for creation + required: true content: application/json: schema: $ref: '#/components/schemas/HMACAuthWithoutParents' - description: Description of new HMAC-auth credential for creation - required: true responses: '201': + description: Successfully created HMAC-auth credential content: application/json: schema: $ref: '#/components/schemas/HMACAuth' - description: Successfully created HMAC-auth credential tags: - HMAC-auth credentials + /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/hmac-auth/{HMACAuthId}: + delete: + operationId: delete-hmac-auth-with-consumer + summary: Delete a a HMAC-auth credential associated with a a Consumer + description: Delete a a HMAC-auth credential associated with a a Consumer using ID. parameters: - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/hmac-auth/{HMACAuthId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/HMACAuthId' + responses: + '204': + description: >- + Successfully deleted HMAC-auth credential or the resource didn't + exist + tags: + - HMAC-auth credentials get: operationId: get-hmac-auth-with-consumer summary: Fetch a HMAC-auth credential associated with a Consumer description: Get a HMAC-auth credential associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/HMACAuthId' responses: '200': + description: Successfully fetched HMAC-auth credential content: application/json: schema: $ref: '#/components/schemas/HMACAuth' - description: Successfully fetched HMAC-auth credential '404': description: Resource does not exist tags: - HMAC-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/HMACAuthId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-hmac-auth-with-consumer summary: Upsert a HMAC-auth credential associated with a Consumer description: >- Create or Update a HMAC-auth credential associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/HMACAuthId' requestBody: + description: Description of the HMAC-auth credential + required: true content: application/json: schema: $ref: '#/components/schemas/HMACAuthWithoutParents' - description: Description of the HMAC-auth credential - required: true responses: '200': + description: Successfully upserted HMAC-auth credential content: application/json: schema: $ref: '#/components/schemas/HMACAuth' - description: Successfully upserted HMAC-auth credential - tags: - - HMAC-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/HMACAuthId' - delete: - operationId: delete-hmac-auth-with-consumer - summary: Delete a a HMAC-auth credential associated with a a Consumer - description: Delete a a HMAC-auth credential associated with a a Consumer using ID. - responses: - '204': - description: >- - Successfully deleted HMAC-auth credential or the resource didn't - exist tags: - HMAC-auth credentials - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/HMACAuthId' /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/jwt: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-jwt-with-consumer summary: List all JWTs associated with a Consumer description: List all JWTs associated with a a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing JWTs content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/JWT' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing JWTs tags: - JWTs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-jwt-with-consumer summary: Create a new JWT associated with a Consumer description: Create a new JWT associated with a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' requestBody: + description: Description of new JWT for creation + required: true content: application/json: schema: $ref: '#/components/schemas/JWTWithoutParents' - description: Description of new JWT for creation - required: true responses: '201': + description: Successfully created JWT content: application/json: schema: $ref: '#/components/schemas/JWT' - description: Successfully created JWT tags: - JWTs + /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/jwt/{JWTId}: + delete: + operationId: delete-jwt-with-consumer + summary: Delete a a JWT associated with a a Consumer + description: Delete a a JWT associated with a a Consumer using ID. parameters: - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/jwt/{JWTId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/JWTId' + responses: + '204': + description: Successfully deleted JWT or the resource didn't exist + tags: + - JWTs get: operationId: get-jwt-with-consumer summary: Fetch a JWT associated with a Consumer description: Get a JWT associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/JWTId' responses: '200': + description: Successfully fetched JWT content: application/json: schema: $ref: '#/components/schemas/JWT' - description: Successfully fetched JWT '404': description: Resource does not exist tags: - JWTs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/JWTId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-jwt-with-consumer summary: Upsert a JWT associated with a Consumer description: Create or Update a JWT associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/JWTId' requestBody: + description: Description of the JWT + required: true content: application/json: schema: $ref: '#/components/schemas/JWTWithoutParents' - description: Description of the JWT - required: true responses: '200': + description: Successfully upserted JWT content: application/json: schema: $ref: '#/components/schemas/JWT' - description: Successfully upserted JWT - tags: - - JWTs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/JWTId' - delete: - operationId: delete-jwt-with-consumer - summary: Delete a a JWT associated with a a Consumer - description: Delete a a JWT associated with a a Consumer using ID. - responses: - '204': - description: Successfully deleted JWT or the resource didn't exist tags: - JWTs - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/JWTId' /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/key-auth: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-key-auth-with-consumer summary: List all API-keys associated with a Consumer description: List all API-keys associated with a a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing API-keys content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/KeyAuth' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing API-keys tags: - API-keys - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-key-auth-with-consumer summary: Create a new API-key associated with a Consumer description: Create a new API-key associated with a Consumer + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' requestBody: + description: Description of new API-key for creation + required: true content: application/json: schema: $ref: '#/components/schemas/KeyAuthWithoutParents' - description: Description of new API-key for creation - required: true responses: '201': + description: Successfully created API-key content: application/json: schema: $ref: '#/components/schemas/KeyAuth' - description: Successfully created API-key tags: - API-keys + /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/key-auth/{KeyAuthId}: + delete: + operationId: delete-key-auth-with-consumer + summary: Delete a an API-key associated with a a Consumer + description: Delete a an API-key associated with a a Consumer using ID. parameters: - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - /v2/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerIdForNestedEntities}/key-auth/{KeyAuthId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/KeyAuthId' + responses: + '204': + description: Successfully deleted API-key or the resource didn't exist + tags: + - API-keys get: operationId: get-key-auth-with-consumer summary: Fetch an API-key associated with a Consumer description: Get an API-key associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/KeyAuthId' responses: '200': + description: Successfully fetched API-key content: application/json: schema: $ref: '#/components/schemas/KeyAuth' - description: Successfully fetched API-key '404': description: Resource does not exist tags: - API-keys - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/KeyAuthId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-key-auth-with-consumer summary: Upsert an API-key associated with a Consumer description: Create or Update an API-key associated with a Consumer using ID. + parameters: + - $ref: '#/components/parameters/ConsumerIdForNestedEntities' + - $ref: '#/components/parameters/KeyAuthId' requestBody: + description: Description of the API-key + required: true content: application/json: schema: $ref: '#/components/schemas/KeyAuthWithoutParents' - description: Description of the API-key - required: true responses: '200': + description: Successfully upserted API-key content: application/json: schema: $ref: '#/components/schemas/KeyAuth' - description: Successfully upserted API-key - tags: - - API-keys - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/KeyAuthId' - delete: - operationId: delete-key-auth-with-consumer - summary: Delete a an API-key associated with a a Consumer - description: Delete a an API-key associated with a a Consumer using ID. - responses: - '204': - description: Successfully deleted API-key or the resource didn't exist tags: - API-keys - parameters: - - $ref: '#/components/parameters/ConsumerIdForNestedEntities' - - $ref: '#/components/parameters/KeyAuthId' /v2/control-planes/{controlPlaneId}/core-entities/hmac-auths: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-hmac-auth summary: List all HMAC-auth credentials description: List all HMAC-auth credentials + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing HMAC-auth credentials content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/HMACAuth' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing HMAC-auth credentials '401': $ref: '#/components/responses/HTTP401Error' tags: - HMAC-auth credentials - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' - /v2/control-planes/{controlPlaneId}/core-entities/jwts: parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/core-entities/jwts: get: operationId: list-jwt summary: List all JWTs description: List all JWTs + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing JWTs content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/JWT' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing JWTs '401': $ref: '#/components/responses/HTTP401Error' tags: - JWTs - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' - /v2/control-planes/{controlPlaneId}/core-entities/key-auths: parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/core-entities/key-auths: get: operationId: list-key-auth summary: List all API-keys description: List all API-keys + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing API-keys content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/KeyAuth' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing API-keys '401': $ref: '#/components/responses/HTTP401Error' tags: - API-keys - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' - /v2/control-planes/{controlPlaneId}/core-entities/key-sets: parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/core-entities/key-sets: get: operationId: list-key-set summary: List all KeySets description: List all KeySets + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing KeySets content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/KeySet' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing KeySets '401': $ref: '#/components/responses/HTTP401Error' tags: - KeySets - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-key-set summary: Create a new KeySet description: Create a new KeySet requestBody: + description: Description of the new KeySet for creation + required: true content: application/json: schema: $ref: '#/components/schemas/KeySet' - description: Description of the new KeySet for creation - required: true responses: '201': + description: Successfully created KeySet content: application/json: schema: $ref: '#/components/schemas/KeySet' - description: Successfully created KeySet '401': $ref: '#/components/responses/HTTP401Error' tags: - KeySets /v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-key-set + summary: Delete a KeySet + description: Delete a KeySet + parameters: + - $ref: '#/components/parameters/KeySetId' + responses: + '204': + description: Successfully deleted KeySet or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - KeySets get: operationId: get-key-set summary: Fetch a KeySet description: Get a KeySet using ID or name. responses: '200': + description: Successfully fetched KeySet content: application/json: schema: $ref: '#/components/schemas/KeySet' - description: Successfully fetched KeySet '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - KeySets - parameters: - - $ref: '#/components/parameters/KeySetId' + parameters: + - $ref: '#/components/parameters/KeySetId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-key-set summary: Upsert a KeySet description: Create or Update KeySet using ID or name. requestBody: + description: Description of the KeySet + required: true content: application/json: schema: $ref: '#/components/schemas/KeySet' - description: Description of the KeySet - required: true responses: '200': + description: Successfully upserted KeySet content: application/json: schema: $ref: '#/components/schemas/KeySet' - description: Successfully upserted KeySet - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - KeySets - parameters: - - $ref: '#/components/parameters/KeySetId' - delete: - operationId: delete-key-set - summary: Delete a KeySet - description: Delete a KeySet - responses: - '204': - description: Successfully deleted KeySet or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - KeySets - parameters: - - $ref: '#/components/parameters/KeySetId' /v2/control-planes/{controlPlaneId}/core-entities/keys: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-key summary: List all Keys description: List all Keys + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Keys content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Key' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Keys '401': $ref: '#/components/responses/HTTP401Error' tags: - Keys - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-key summary: Create a new Key description: Create a new Key requestBody: + description: Description of the new Key for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Key' - description: Description of the new Key for creation - required: true responses: '201': + description: Successfully created Key content: application/json: schema: $ref: '#/components/schemas/Key' - description: Successfully created Key '401': $ref: '#/components/responses/HTTP401Error' tags: - Keys /v2/control-planes/{controlPlaneId}/core-entities/keys/{KeyId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-key + summary: Delete a Key + description: Delete a Key + parameters: + - $ref: '#/components/parameters/KeyId' + responses: + '204': + description: Successfully deleted Key or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Keys get: operationId: get-key summary: Fetch a Key description: Get a Key using ID or name. responses: '200': + description: Successfully fetched Key content: application/json: schema: $ref: '#/components/schemas/Key' - description: Successfully fetched Key '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Keys - parameters: - - $ref: '#/components/parameters/KeyId' + parameters: + - $ref: '#/components/parameters/KeyId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-key summary: Upsert a Key description: Create or Update Key using ID or name. requestBody: + description: Description of the Key + required: true content: application/json: schema: $ref: '#/components/schemas/Key' - description: Description of the Key - required: true responses: '200': + description: Successfully upserted Key content: application/json: schema: $ref: '#/components/schemas/Key' - description: Successfully upserted Key - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Keys - parameters: - - $ref: '#/components/parameters/KeyId' - delete: - operationId: delete-key - summary: Delete a Key - description: Delete a Key - responses: - '204': - description: Successfully deleted Key or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Keys - parameters: - - $ref: '#/components/parameters/KeyId' /v2/control-planes/{controlPlaneId}/core-entities/plugin-schemas: parameters: - $ref: '#/components/parameters/controlPlaneId' @@ -1660,6 +1699,9 @@ paths: description: >- Returns an array of custom plugins schemas associated with a control plane. + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageAfter' responses: '200': $ref: '#/components/responses/list-plugin-schemas' @@ -1671,9 +1713,6 @@ paths: $ref: '#/components/responses/Forbidden' tags: - Custom Plugin Schemas - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageAfter' post: x-speakeasy-entity-operation: GatewayCustomPluginSchema#create operationId: create-plugin-schemas @@ -1697,13 +1736,13 @@ paths: /v2/control-planes/{controlPlaneId}/core-entities/plugin-schemas/{name}: parameters: - $ref: '#/components/parameters/controlPlaneId' - - schema: - type: string - example: myplugin - name: name + - name: name in: path - required: true description: The custom plugin name + required: true + schema: + type: string + example: myplugin get: x-speakeasy-entity-operation: GatewayCustomPluginSchema#read operationId: get-plugin-schema @@ -1720,16 +1759,14 @@ paths: $ref: '#/components/responses/NotFound' tags: - Custom Plugin Schemas - put: - x-speakeasy-entity-operation: GatewayCustomPluginSchema#update - operationId: update-plugin-schemas - summary: Create or update a custom plugin schema - description: Create or update an individual custom plugin schema. - requestBody: - $ref: '#/components/requestBodies/create-plugin-schemas' + delete: + x-speakeasy-entity-operation: GatewayCustomPluginSchema#delete + operationId: delete-plugin-schemas + summary: Delete custom plugin schema + description: Delete an individual custom plugin schema. responses: - '200': - $ref: '#/components/responses/plugin-schemas' + '204': + description: No Content '401': $ref: '#/components/responses/Unauthorized' '403': @@ -1738,14 +1775,16 @@ paths: $ref: '#/components/responses/NotFound' tags: - Custom Plugin Schemas - delete: - x-speakeasy-entity-operation: GatewayCustomPluginSchema#delete - operationId: delete-plugin-schemas - summary: Delete custom plugin schema - description: Delete an individual custom plugin schema. + put: + x-speakeasy-entity-operation: GatewayCustomPluginSchema#update + operationId: update-plugin-schemas + summary: Create or update a custom plugin schema + description: Create or update an individual custom plugin schema. + requestBody: + $ref: '#/components/requestBodies/create-plugin-schemas' responses: - '204': - description: No Content + '200': + $ref: '#/components/responses/plugin-schemas' '401': $ref: '#/components/responses/Unauthorized' '403': @@ -1755,1119 +1794,1121 @@ paths: tags: - Custom Plugin Schemas /v2/control-planes/{controlPlaneId}/core-entities/plugins: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-plugin summary: List all Plugins description: List all Plugins + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Plugins content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Plugin' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Plugins '401': $ref: '#/components/responses/HTTP401Error' tags: - Plugins - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-plugin summary: Create a new Plugin description: Create a new Plugin requestBody: + description: Description of the new Plugin for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Description of the new Plugin for creation - required: true responses: '201': + description: Successfully created Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully created Plugin '401': $ref: '#/components/responses/HTTP401Error' tags: - Plugins /v2/control-planes/{controlPlaneId}/core-entities/plugins/{PluginId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-plugin + summary: Delete a Plugin + description: Delete a Plugin + parameters: + - $ref: '#/components/parameters/PluginId' + responses: + '204': + description: Successfully deleted Plugin or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Plugins get: operationId: get-plugin summary: Fetch a Plugin description: Get a Plugin using ID. responses: '200': + description: Successfully fetched Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully fetched Plugin '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Plugins - parameters: - - $ref: '#/components/parameters/PluginId' + parameters: + - $ref: '#/components/parameters/PluginId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-plugin summary: Upsert a Plugin description: Create or Update Plugin using ID. requestBody: + description: Description of the Plugin + required: true content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Description of the Plugin - required: true responses: '200': + description: Successfully upserted Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully upserted Plugin - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Plugins - parameters: - - $ref: '#/components/parameters/PluginId' - delete: - operationId: delete-plugin - summary: Delete a Plugin - description: Delete a Plugin - responses: - '204': - description: Successfully deleted Plugin or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Plugins - parameters: - - $ref: '#/components/parameters/PluginId' /v2/control-planes/{controlPlaneId}/core-entities/routes: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-route summary: List all Routes description: List all Routes + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Routes content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Route' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Routes '401': $ref: '#/components/responses/HTTP401Error' tags: - Routes - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-route summary: Create a new Route description: Create a new Route requestBody: + description: Description of the new Route for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Route' - description: Description of the new Route for creation - required: true responses: '201': + description: Successfully created Route content: application/json: schema: $ref: '#/components/schemas/Route' - description: Successfully created Route '401': $ref: '#/components/responses/HTTP401Error' tags: - Routes /v2/control-planes/{controlPlaneId}/core-entities/routes/{RouteId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-route + summary: Delete a Route + description: Delete a Route + parameters: + - $ref: '#/components/parameters/RouteId' + responses: + '204': + description: Successfully deleted Route or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Routes get: operationId: get-route summary: Fetch a Route description: Get a Route using ID or name. responses: '200': + description: Successfully fetched Route content: application/json: schema: $ref: '#/components/schemas/Route' - description: Successfully fetched Route '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Routes - parameters: - - $ref: '#/components/parameters/RouteId' + parameters: + - $ref: '#/components/parameters/RouteId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-route summary: Upsert a Route description: Create or Update Route using ID or name. requestBody: + description: Description of the Route + required: true content: application/json: schema: $ref: '#/components/schemas/Route' - description: Description of the Route - required: true responses: '200': + description: Successfully upserted Route content: application/json: schema: $ref: '#/components/schemas/Route' - description: Successfully upserted Route - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Routes - parameters: - - $ref: '#/components/parameters/RouteId' - delete: - operationId: delete-route - summary: Delete a Route - description: Delete a Route - responses: - '204': - description: Successfully deleted Route or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Routes - parameters: - - $ref: '#/components/parameters/RouteId' /v2/control-planes/{controlPlaneId}/core-entities/routes/{RouteId}/plugins: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-plugin-with-route summary: List all Plugins associated with a Route description: List all Plugins associated with a a Route + parameters: + - $ref: '#/components/parameters/RouteId' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Plugins content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Plugin' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Plugins tags: - Plugins - parameters: - - $ref: '#/components/parameters/RouteId' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-plugin-with-route summary: Create a new Plugin associated with a Route description: Create a new Plugin associated with a Route + parameters: + - $ref: '#/components/parameters/RouteId' requestBody: + description: Description of new Plugin for creation + required: true content: application/json: schema: $ref: '#/components/schemas/PluginWithoutParents' - description: Description of new Plugin for creation - required: true responses: '201': + description: Successfully created Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully created Plugin tags: - Plugins + /v2/control-planes/{controlPlaneId}/core-entities/routes/{RouteId}/plugins/{PluginId}: + delete: + operationId: delete-plugin-with-route + summary: Delete a a Plugin associated with a a Route + description: Delete a a Plugin associated with a a Route using ID. parameters: - $ref: '#/components/parameters/RouteId' - /v2/control-planes/{controlPlaneId}/core-entities/routes/{RouteId}/plugins/{PluginId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/PluginId' + responses: + '204': + description: Successfully deleted Plugin or the resource didn't exist + tags: + - Plugins get: operationId: get-plugin-with-route summary: Fetch a Plugin associated with a Route description: Get a Plugin associated with a Route using ID. + parameters: + - $ref: '#/components/parameters/RouteId' + - $ref: '#/components/parameters/PluginId' responses: '200': + description: Successfully fetched Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully fetched Plugin '404': description: Resource does not exist tags: - Plugins - parameters: - - $ref: '#/components/parameters/RouteId' - - $ref: '#/components/parameters/PluginId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-plugin-with-route summary: Upsert a Plugin associated with a Route description: Create or Update a Plugin associated with a Route using ID. + parameters: + - $ref: '#/components/parameters/RouteId' + - $ref: '#/components/parameters/PluginId' requestBody: + description: Description of the Plugin + required: true content: application/json: schema: $ref: '#/components/schemas/PluginWithoutParents' - description: Description of the Plugin - required: true responses: '200': + description: Successfully upserted Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully upserted Plugin - tags: - - Plugins - parameters: - - $ref: '#/components/parameters/RouteId' - - $ref: '#/components/parameters/PluginId' - delete: - operationId: delete-plugin-with-route - summary: Delete a a Plugin associated with a a Route - description: Delete a a Plugin associated with a a Route using ID. - responses: - '204': - description: Successfully deleted Plugin or the resource didn't exist tags: - Plugins - parameters: - - $ref: '#/components/parameters/RouteId' - - $ref: '#/components/parameters/PluginId' /v2/control-planes/{controlPlaneId}/core-entities/schemas/plugins/{pluginName}: - parameters: - - description: The name of the plugin - in: path - name: pluginName - required: true - schema: - type: string - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: fetch-plugin-schema summary: Fetch plugin schema description: Get the schema for a plugin responses: '200': + description: The schema for the plugin content: application/json: schema: + type: object properties: fields: + type: array items: additionalProperties: true type: object - type: array - type: object - description: The schema for the plugin tags: - Plugins - /v2/control-planes/{controlPlaneId}/core-entities/services: parameters: - - $ref: '#/components/parameters/ControlPlaneId' - get: - operationId: list-service + - name: pluginName + in: path + description: The name of the plugin + required: true + schema: + type: string + - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/core-entities/services: + get: + operationId: list-service summary: List all Services description: List all Services + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Services content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Service' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Services '401': $ref: '#/components/responses/HTTP401Error' tags: - Services - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-service summary: Create a new Service description: Create a new Service requestBody: + description: Description of the new Service for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Service' - description: Description of the new Service for creation - required: true responses: '201': + description: Successfully created Service content: application/json: schema: $ref: '#/components/schemas/Service' - description: Successfully created Service '401': $ref: '#/components/responses/HTTP401Error' tags: - Services /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-service + summary: Delete a Service + description: Delete a Service + parameters: + - $ref: '#/components/parameters/ServiceId' + responses: + '204': + description: Successfully deleted Service or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Services get: operationId: get-service summary: Fetch a Service description: Get a Service using ID or name. responses: '200': + description: Successfully fetched Service content: application/json: schema: $ref: '#/components/schemas/Service' - description: Successfully fetched Service '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Services - parameters: - - $ref: '#/components/parameters/ServiceId' + parameters: + - $ref: '#/components/parameters/ServiceId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-service summary: Upsert a Service description: Create or Update Service using ID or name. requestBody: + description: Description of the Service + required: true content: application/json: schema: $ref: '#/components/schemas/Service' - description: Description of the Service - required: true responses: '200': + description: Successfully upserted Service content: application/json: schema: $ref: '#/components/schemas/Service' - description: Successfully upserted Service - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Services - parameters: - - $ref: '#/components/parameters/ServiceId' - delete: - operationId: delete-service - summary: Delete a Service - description: Delete a Service - responses: - '204': - description: Successfully deleted Service or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Services - parameters: - - $ref: '#/components/parameters/ServiceId' /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/plugins: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-plugin-with-service summary: List all Plugins associated with a Service description: List all Plugins associated with a a Service + parameters: + - $ref: '#/components/parameters/ServiceId' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Plugins content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Plugin' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Plugins tags: - Plugins - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-plugin-with-service summary: Create a new Plugin associated with a Service description: Create a new Plugin associated with a Service + parameters: + - $ref: '#/components/parameters/ServiceId' requestBody: + description: Description of new Plugin for creation + required: true content: application/json: schema: $ref: '#/components/schemas/PluginWithoutParents' - description: Description of new Plugin for creation - required: true responses: '201': + description: Successfully created Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully created Plugin tags: - Plugins + /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/plugins/{PluginId}: + delete: + operationId: delete-plugin-with-service + summary: Delete a a Plugin associated with a a Service + description: Delete a a Plugin associated with a a Service using ID. parameters: - $ref: '#/components/parameters/ServiceId' - /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/plugins/{PluginId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/PluginId' + responses: + '204': + description: Successfully deleted Plugin or the resource didn't exist + tags: + - Plugins get: operationId: get-plugin-with-service summary: Fetch a Plugin associated with a Service description: Get a Plugin associated with a Service using ID. + parameters: + - $ref: '#/components/parameters/ServiceId' + - $ref: '#/components/parameters/PluginId' responses: '200': + description: Successfully fetched Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully fetched Plugin '404': description: Resource does not exist tags: - Plugins - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/PluginId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-plugin-with-service summary: Upsert a Plugin associated with a Service description: Create or Update a Plugin associated with a Service using ID. + parameters: + - $ref: '#/components/parameters/ServiceId' + - $ref: '#/components/parameters/PluginId' requestBody: + description: Description of the Plugin + required: true content: application/json: schema: $ref: '#/components/schemas/PluginWithoutParents' - description: Description of the Plugin - required: true responses: '200': + description: Successfully upserted Plugin content: application/json: schema: $ref: '#/components/schemas/Plugin' - description: Successfully upserted Plugin - tags: - - Plugins - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/PluginId' - delete: - operationId: delete-plugin-with-service - summary: Delete a a Plugin associated with a a Service - description: Delete a a Plugin associated with a a Service using ID. - responses: - '204': - description: Successfully deleted Plugin or the resource didn't exist tags: - Plugins - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/PluginId' /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/routes: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-route-with-service summary: List all Routes associated with a Service description: List all Routes associated with a a Service + parameters: + - $ref: '#/components/parameters/ServiceId' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Routes content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Route' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Routes tags: - Routes - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-route-with-service summary: Create a new Route associated with a Service description: Create a new Route associated with a Service + parameters: + - $ref: '#/components/parameters/ServiceId' requestBody: + description: Description of new Route for creation + required: true content: application/json: schema: $ref: '#/components/schemas/RouteWithoutParents' - description: Description of new Route for creation - required: true responses: '201': + description: Successfully created Route content: application/json: schema: $ref: '#/components/schemas/Route' - description: Successfully created Route tags: - Routes + /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/routes/{RouteId}: + delete: + operationId: delete-route-with-service + summary: Delete a a Route associated with a a Service + description: Delete a a Route associated with a a Service using ID or name. parameters: - $ref: '#/components/parameters/ServiceId' - /v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/routes/{RouteId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/RouteId' + responses: + '204': + description: Successfully deleted Route or the resource didn't exist + tags: + - Routes get: operationId: get-route-with-service summary: Fetch a Route associated with a Service description: Get a Route associated with a Service using ID or name. + parameters: + - $ref: '#/components/parameters/ServiceId' + - $ref: '#/components/parameters/RouteId' responses: '200': + description: Successfully fetched Route content: application/json: schema: $ref: '#/components/schemas/Route' - description: Successfully fetched Route '404': description: Resource does not exist tags: - Routes - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/RouteId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-route-with-service summary: Upsert a Route associated with a Service description: Create or Update a Route associated with a Service using ID or name. + parameters: + - $ref: '#/components/parameters/ServiceId' + - $ref: '#/components/parameters/RouteId' requestBody: + description: Description of the Route + required: true content: application/json: schema: $ref: '#/components/schemas/RouteWithoutParents' - description: Description of the Route - required: true responses: '200': + description: Successfully upserted Route content: application/json: schema: $ref: '#/components/schemas/Route' - description: Successfully upserted Route - tags: - - Routes - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/RouteId' - delete: - operationId: delete-route-with-service - summary: Delete a a Route associated with a a Service - description: Delete a a Route associated with a a Service using ID or name. - responses: - '204': - description: Successfully deleted Route or the resource didn't exist tags: - Routes - parameters: - - $ref: '#/components/parameters/ServiceId' - - $ref: '#/components/parameters/RouteId' /v2/control-planes/{controlPlaneId}/core-entities/snis: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-sni summary: List all SNIs description: List all SNIs + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing SNIs content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/SNI' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing SNIs '401': $ref: '#/components/responses/HTTP401Error' tags: - SNIs - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-sni summary: Create a new SNI description: Create a new SNI requestBody: + description: Description of the new SNI for creation + required: true content: application/json: schema: $ref: '#/components/schemas/SNI' - description: Description of the new SNI for creation - required: true responses: '201': + description: Successfully created SNI content: application/json: schema: $ref: '#/components/schemas/SNI' - description: Successfully created SNI '401': $ref: '#/components/responses/HTTP401Error' tags: - SNIs /v2/control-planes/{controlPlaneId}/core-entities/snis/{SNIId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' - get: - operationId: get-sni - summary: Fetch an SNI - description: Get an SNI using ID or name. - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/SNI' + delete: + operationId: delete-sni + summary: Delete an SNI + description: Delete an SNI + parameters: + - $ref: '#/components/parameters/SNIId' + responses: + '204': + description: Successfully deleted SNI or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - SNIs + get: + operationId: get-sni + summary: Fetch an SNI + description: Get an SNI using ID or name. + responses: + '200': description: Successfully fetched SNI + content: + application/json: + schema: + $ref: '#/components/schemas/SNI' '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - SNIs - parameters: - - $ref: '#/components/parameters/SNIId' + parameters: + - $ref: '#/components/parameters/SNIId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-sni summary: Upsert a SNI description: Create or Update SNI using ID or name. requestBody: + description: Description of the SNI + required: true content: application/json: schema: $ref: '#/components/schemas/SNI' - description: Description of the SNI - required: true responses: '200': + description: Successfully upserted SNI content: application/json: schema: $ref: '#/components/schemas/SNI' - description: Successfully upserted SNI - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - SNIs - parameters: - - $ref: '#/components/parameters/SNIId' - delete: - operationId: delete-sni - summary: Delete an SNI - description: Delete an SNI - responses: - '204': - description: Successfully deleted SNI or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - SNIs - parameters: - - $ref: '#/components/parameters/SNIId' /v2/control-planes/{controlPlaneId}/core-entities/upstreams: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-upstream summary: List all Upstreams description: List all Upstreams + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Upstreams content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Upstream' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Upstreams '401': $ref: '#/components/responses/HTTP401Error' tags: - Upstreams - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-upstream summary: Create a new Upstream description: Create a new Upstream requestBody: + description: Description of the new Upstream for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Upstream' - description: Description of the new Upstream for creation - required: true responses: '201': + description: Successfully created Upstream content: application/json: schema: $ref: '#/components/schemas/Upstream' - description: Successfully created Upstream '401': $ref: '#/components/responses/HTTP401Error' tags: - Upstreams /v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-upstream + summary: Delete an Upstream + description: Delete an Upstream + parameters: + - $ref: '#/components/parameters/UpstreamId' + responses: + '204': + description: Successfully deleted Upstream or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Upstreams get: operationId: get-upstream summary: Fetch an Upstream description: Get an Upstream using ID or name. responses: '200': + description: Successfully fetched Upstream content: application/json: schema: $ref: '#/components/schemas/Upstream' - description: Successfully fetched Upstream '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Upstreams - parameters: - - $ref: '#/components/parameters/UpstreamId' + parameters: + - $ref: '#/components/parameters/UpstreamId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-upstream summary: Upsert a Upstream description: Create or Update Upstream using ID or name. requestBody: + description: Description of the Upstream + required: true content: application/json: schema: $ref: '#/components/schemas/Upstream' - description: Description of the Upstream - required: true responses: '200': + description: Successfully upserted Upstream content: application/json: schema: $ref: '#/components/schemas/Upstream' - description: Successfully upserted Upstream - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Upstreams - parameters: - - $ref: '#/components/parameters/UpstreamId' - delete: - operationId: delete-upstream - summary: Delete an Upstream - description: Delete an Upstream - responses: - '204': - description: Successfully deleted Upstream or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Upstreams - parameters: - - $ref: '#/components/parameters/UpstreamId' /v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamIdForTarget}/targets: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-target-with-upstream summary: List all Targets associated with an Upstream description: List all Targets associated with a an Upstream + parameters: + - $ref: '#/components/parameters/UpstreamIdForTarget' + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Targets content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Target' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Targets tags: - Targets - parameters: - - $ref: '#/components/parameters/UpstreamIdForTarget' - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-target-with-upstream summary: Create a new Target associated with an Upstream description: Create a new Target associated with an Upstream + parameters: + - $ref: '#/components/parameters/UpstreamIdForTarget' requestBody: + description: Description of new Target for creation + required: true content: application/json: schema: $ref: '#/components/schemas/TargetWithoutParents' - description: Description of new Target for creation - required: true responses: '201': + description: Successfully created Target content: application/json: schema: $ref: '#/components/schemas/Target' - description: Successfully created Target tags: - Targets + /v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamIdForTarget}/targets/{TargetId}: + delete: + operationId: delete-target-with-upstream + summary: Delete a a Target associated with a an Upstream + description: Delete a a Target associated with a an Upstream using ID or target. parameters: - $ref: '#/components/parameters/UpstreamIdForTarget' - /v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamIdForTarget}/targets/{TargetId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + - $ref: '#/components/parameters/TargetId' + responses: + '204': + description: Successfully deleted Target or the resource didn't exist + tags: + - Targets get: operationId: get-target-with-upstream summary: Fetch a Target associated with an Upstream description: Get a Target associated with an Upstream using ID or target. + parameters: + - $ref: '#/components/parameters/UpstreamIdForTarget' + - $ref: '#/components/parameters/TargetId' responses: '200': + description: Successfully fetched Target content: application/json: schema: $ref: '#/components/schemas/Target' - description: Successfully fetched Target '404': description: Resource does not exist tags: - Targets - parameters: - - $ref: '#/components/parameters/UpstreamIdForTarget' - - $ref: '#/components/parameters/TargetId' + parameters: + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-target-with-upstream summary: Upsert a Target associated with an Upstream description: >- Create or Update a Target associated with an Upstream using ID or target. + parameters: + - $ref: '#/components/parameters/UpstreamIdForTarget' + - $ref: '#/components/parameters/TargetId' requestBody: + description: Description of the Target + required: true content: application/json: schema: $ref: '#/components/schemas/TargetWithoutParents' - description: Description of the Target - required: true responses: '200': + description: Successfully upserted Target content: application/json: schema: $ref: '#/components/schemas/Target' - description: Successfully upserted Target - tags: - - Targets - parameters: - - $ref: '#/components/parameters/UpstreamIdForTarget' - - $ref: '#/components/parameters/TargetId' - delete: - operationId: delete-target-with-upstream - summary: Delete a a Target associated with a an Upstream - description: Delete a a Target associated with a an Upstream using ID or target. - responses: - '204': - description: Successfully deleted Target or the resource didn't exist tags: - Targets - parameters: - - $ref: '#/components/parameters/UpstreamIdForTarget' - - $ref: '#/components/parameters/TargetId' /v2/control-planes/{controlPlaneId}/core-entities/vaults: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' get: operationId: list-vault summary: List all Vaults description: List all Vaults + parameters: + - $ref: '#/components/parameters/PaginationSize' + - $ref: '#/components/parameters/PaginationOffset' + - $ref: '#/components/parameters/PaginationTagsFilter' responses: '200': + description: A successful response listing Vaults content: application/json: schema: + type: object properties: data: + type: array items: $ref: '#/components/schemas/Vault' - type: array + next: + $ref: '#/components/schemas/PaginationNextResponse' offset: $ref: '#/components/schemas/PaginationOffsetResponse' - type: object - description: A successful response listing Vaults '401': $ref: '#/components/responses/HTTP401Error' tags: - Vaults - parameters: - - $ref: '#/components/parameters/PaginationSize' - - $ref: '#/components/parameters/PaginationOffset' - - $ref: '#/components/parameters/PaginationTagsFilter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' post: operationId: create-vault summary: Create a new Vault description: Create a new Vault requestBody: + description: Description of the new Vault for creation + required: true content: application/json: schema: $ref: '#/components/schemas/Vault' - description: Description of the new Vault for creation - required: true responses: '201': + description: Successfully created Vault content: application/json: schema: $ref: '#/components/schemas/Vault' - description: Successfully created Vault '401': $ref: '#/components/responses/HTTP401Error' tags: - Vaults /v2/control-planes/{controlPlaneId}/core-entities/vaults/{VaultId}: - parameters: - - $ref: '#/components/parameters/ControlPlaneId' + delete: + operationId: delete-vault + summary: Delete a Vault + description: Delete a Vault + parameters: + - $ref: '#/components/parameters/VaultId' + responses: + '204': + description: Successfully deleted Vault or the resource didn't exist + '401': + $ref: '#/components/responses/HTTP401Error' + tags: + - Vaults get: operationId: get-vault summary: Fetch a Vault description: Get a Vault using ID or prefix. responses: '200': + description: Successfully fetched Vault content: application/json: schema: $ref: '#/components/schemas/Vault' - description: Successfully fetched Vault '401': $ref: '#/components/responses/HTTP401Error' '404': description: Resource does not exist tags: - Vaults - parameters: - - $ref: '#/components/parameters/VaultId' + parameters: + - $ref: '#/components/parameters/VaultId' + - $ref: '#/components/parameters/controlPlaneId' put: operationId: upsert-vault summary: Upsert a Vault description: Create or Update Vault using ID or prefix. requestBody: + description: Description of the Vault + required: true content: application/json: schema: $ref: '#/components/schemas/Vault' - description: Description of the Vault - required: true responses: '200': + description: Successfully upserted Vault content: application/json: schema: $ref: '#/components/schemas/Vault' - description: Successfully upserted Vault - '401': - $ref: '#/components/responses/HTTP401Error' - tags: - - Vaults - parameters: - - $ref: '#/components/parameters/VaultId' - delete: - operationId: delete-vault - summary: Delete a Vault - description: Delete a Vault - responses: - '204': - description: Successfully deleted Vault or the resource didn't exist '401': $ref: '#/components/responses/HTTP401Error' tags: - Vaults - parameters: - - $ref: '#/components/parameters/VaultId' /v2/control-planes/{controlPlaneId}/dp-client-certificates: parameters: - $ref: '#/components/parameters/controlPlaneId' @@ -2884,9 +2925,6 @@ paths: $ref: '#/components/responses/ListDataPlaneCertificatesResponse' tags: - DP Certificates - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageAfter' post: x-speakeasy-entity-operation: GatewayDataPlaneClientCertificate#create operationId: create-dataplane-certificate @@ -2916,11 +2954,11 @@ paths: control plane. A pinned dataplane certificate allows dataplanes configured with the certificate and corresponding private key to establish connection with this control plane. - tags: - - DP Certificates responses: '200': $ref: '#/components/responses/DataPlaneClientCertificateResponse' + tags: + - DP Certificates delete: x-speakeasy-entity-operation: GatewayDataPlaneClientCertificate#delete operationId: delete-dataplane-certificate @@ -2936,8 +2974,6 @@ paths: tags: - DP Certificates /v2/control-planes/{controlPlaneId}/expected-config-hash: - parameters: - - $ref: '#/components/parameters/controlPlaneId' get: operationId: get-expected-config-hash summary: Fetch Expected Config Hash @@ -2946,14 +2982,14 @@ paths: config hash can be used to verify if the config hash of a data plane node is up to date with the control plane. The config hash will be the same if they are in sync. - tags: - - DP Nodes responses: '200': $ref: '#/components/responses/get-expected-config-hash' - /v2/control-planes/{controlPlaneId}/nodes: + tags: + - DP Nodes parameters: - $ref: '#/components/parameters/controlPlaneId' + /v2/control-planes/{controlPlaneId}/nodes: get: operationId: list-dataplane-nodes summary: List Data Plane Node Records @@ -2961,21 +2997,23 @@ paths: Returns a list of data plane node records that are associated to this control plane. A data plane node record contains metadata information for the data plane running Kong Gateway. + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageAfter' responses: '200': $ref: '#/components/responses/list-nodes' tags: - DP Nodes - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageAfter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' /v2/control-planes/{controlPlaneId}/nodes/{nodeId}: parameters: - - schema: - type: string - name: nodeId + - name: nodeId in: path required: true + schema: + type: string - $ref: '#/components/parameters/controlPlaneId' get: operationId: get-nodes-node_id @@ -2984,14 +3022,14 @@ paths: Retrieve a specific data plane node record associated to this control plane. A data plane node record contains all the metadata information of the Kong Gateway dataplane. + parameters: + - $ref: '#/components/parameters/pagination-size' + - $ref: '#/components/parameters/pagination-tags-filter' responses: '200': $ref: '#/components/responses/get-node' tags: - DP Nodes - parameters: - - $ref: '#/components/parameters/pagination-size' - - $ref: '#/components/parameters/pagination-tags-filter' delete: operationId: delete-nodes-node_id summary: Delete Data Plane Node Record @@ -3005,8 +3043,6 @@ paths: tags: - DP Nodes /v2/control-planes/{controlPlaneId}/nodes/eol: - parameters: - - $ref: '#/components/parameters/controlPlaneId' get: operationId: get-nodes-eol summary: List End-of-Life Data Plane Node Records @@ -3016,29 +3052,31 @@ paths: this control plane. Each record contains a data plane node's id, version, and corresponding resolution message to upgrade to the closest Long Term Support version. + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageAfter' responses: '200': $ref: '#/components/responses/list-nodes-eol' tags: - DP Nodes - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageAfter' + parameters: + - $ref: '#/components/parameters/controlPlaneId' /v2/control-planes/{id}: parameters: - - schema: + - name: id + in: path + description: The control plane ID + required: true + schema: type: string format: uuid example: d32d905a-ed33-46a3-a093-d8f536af9a8a - name: id - in: path - required: true - description: The control plane ID get: x-speakeasy-entity-operation: GatewayControlPlane#read operationId: get-control-plane summary: Fetch Control Plane - description: Returns information about a team from a given team ID. + description: Returns information about an individual control plane. responses: '200': $ref: '#/components/responses/RetrieveControlPlaneResponse' @@ -3106,18 +3144,16 @@ paths: - Control Planes /v2/control-planes/{id}/group-member-status: parameters: - - schema: - type: string - name: id + - name: id in: path - required: true description: ID of a control plane + required: true + schema: + type: string get: operationId: get-control-planes-id-group-member-status summary: Control Plane Group Member Status description: Determines the group membership status of a control plane. - tags: - - Control Plane Groups responses: '200': $ref: '#/components/responses/GetGroupMemberStatus' @@ -3131,22 +3167,25 @@ paths: $ref: '#/components/responses/NotFound' '503': $ref: '#/components/responses/ServiceUnavailable' + tags: + - Control Plane Groups /v2/control-planes/{id}/group-memberships: parameters: - - schema: - type: string - name: id + - name: id in: path - required: true description: ID of a control plane group + required: true + schema: + type: string get: operationId: get-control-planes-id-group-memberships summary: List Control Plane Group Memberships description: >- Returns an array of control planes that are a member of this control plane group. - tags: - - Control Plane Groups + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageAfter' responses: '200': $ref: '#/components/responses/ListGroupMemberships' @@ -3160,17 +3199,16 @@ paths: $ref: '#/components/responses/NotFound' '503': $ref: '#/components/responses/ServiceUnavailable' - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageAfter' + tags: + - Control Plane Groups /v2/control-planes/{id}/group-memberships/add: parameters: - - schema: - type: string - name: id + - name: id in: path - required: true description: ID of a control plane group + required: true + schema: + type: string post: x-speakeasy-entity-operation: GatewayControlPlaneMembership#create operationId: post-control-planes-id-group-memberships-add @@ -3195,12 +3233,12 @@ paths: - Control Plane Groups /v2/control-planes/{id}/group-memberships/remove: parameters: - - schema: - type: string - name: id + - name: id in: path - required: true description: ID of a control plane group + required: true + schema: + type: string post: x-speakeasy-entity-operation: GatewayControlPlaneMembership#delete operationId: post-control-planes-id-group-memberships-remove @@ -3210,8 +3248,6 @@ paths: group. requestBody: $ref: '#/components/requestBodies/GroupMembershipRemove' - tags: - - Control Plane Groups responses: '204': description: No Content @@ -3225,22 +3261,22 @@ paths: $ref: '#/components/responses/NotFound' '503': $ref: '#/components/responses/ServiceUnavailable' + tags: + - Control Plane Groups /v2/control-planes/{id}/group-status: parameters: - - schema: - type: string - name: id + - name: id in: path - required: true description: ID of a control plane group + required: true + schema: + type: string get: operationId: get-control-planes-id-group-status summary: Get Control Plane Group Status description: >- Returns the status of a control plane group, including existing conflicts. - tags: - - Control Plane Groups responses: '200': $ref: '#/components/responses/GetGroupStatus' @@ -3254,34 +3290,36 @@ paths: $ref: '#/components/responses/NotFound' '503': $ref: '#/components/responses/ServiceUnavailable' + tags: + - Control Plane Groups /v3/authenticate/{organizationLoginPath}: get: operationId: authenticate-sso summary: SSO Callback description: Callback for authenticating via an organization's IdP - tags: - - Authentication - responses: - '302': - description: Found - '400': - $ref: '#/components/responses/IdentityBadRequest' - '401': - $ref: '#/components/responses/IdentityUnauthenticated' parameters: - - in: path - name: organizationLoginPath + - name: organizationLoginPath + in: path description: The login path for the organization. required: true schema: type: string - - in: query - name: return_to + - name: return_to + in: query description: Return destination for the callback. schema: type: string + responses: + '302': + description: Found + '400': + $ref: '#/components/responses/IdentityBadRequest' + '401': + $ref: '#/components/responses/IdentityUnauthenticated' servers: - url: https://global.api.konghq.com/ + tags: + - Authentication /v3/authentication-settings: get: operationId: get-authentication-settings @@ -3289,8 +3327,6 @@ paths: description: >- Returns authentication configuration, which determines how users can log in and how they are assigned to teams. - tags: - - Auth Settings responses: '200': $ref: '#/components/responses/AuthenticationSettings' @@ -3298,14 +3334,14 @@ paths: $ref: '#/components/responses/IdentityUnauthenticated' servers: - url: https://global.api.konghq.com/ + tags: + - Auth Settings patch: operationId: update-authentication-settings summary: Update Auth Settings description: Updates authentication configuration. requestBody: $ref: '#/components/requestBodies/UpdateAuthenticationSettings' - tags: - - Auth Settings responses: '200': $ref: '#/components/responses/AuthenticationSettings' @@ -3317,8 +3353,9 @@ paths: $ref: '#/components/responses/Unauthorized' servers: - url: https://global.api.konghq.com/ + tags: + - Auth Settings /v3/identity-provider: - parameters: [] get: operationId: get-idp-configuration summary: Fetch IdP Configuration @@ -3334,10 +3371,11 @@ paths: $ref: '#/components/responses/IdentityPermissionDenied' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Auth Settings servers: - url: https://global.api.konghq.com/ + tags: + - Auth Settings + parameters: [] patch: operationId: update-idp-configuration summary: Update IdP Configuration @@ -3353,10 +3391,10 @@ paths: $ref: '#/components/responses/IdentityUnauthenticated' '403': $ref: '#/components/responses/Unauthorized' - tags: - - Auth Settings servers: - url: https://global.api.konghq.com/ + tags: + - Auth Settings /v3/identity-provider/team-group-mappings: get: operationId: get-team-group-mappings @@ -3366,6 +3404,9 @@ paths: Groups. Returns a 400 error if an Identity Provider has not yet been configured. + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageNumber' responses: '200': $ref: '#/components/responses/TeamGroupMappingCollection' @@ -3375,13 +3416,10 @@ paths: $ref: '#/components/responses/IdentityUnauthenticated' '403': $ref: '#/components/responses/IdentityPermissionDenied' - tags: - - Auth Settings - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageNumber' servers: - url: https://global.api.konghq.com/ + tags: + - Auth Settings patch: operationId: patch-team-group-mappings summary: Patch Mappings by Team ID @@ -3411,54 +3449,54 @@ paths: $ref: '#/components/responses/IdentityUnauthenticated' '403': $ref: '#/components/responses/IdentityPermissionDenied' - tags: - - Auth Settings servers: - url: https://global.api.konghq.com/ + tags: + - Auth Settings /v3/identity-provider/team-mappings: - get: - operationId: get-idp-team-mappings - summary: Fetch Team Mapping - description: Fetch the IdP group to Konnect team mapping. + put: + operationId: update-idp-team-mappings + summary: Update Team Mappings + description: Updates the IdP group to Konnect team mapping. + requestBody: + $ref: '#/components/requestBodies/UpdateTeamMappings' responses: '200': - $ref: '#/components/responses/TeamMappingResponse' + $ref: '#/components/responses/TeamMappingCollection' + '400': + $ref: '#/components/responses/IdentityBadRequest' '401': - $ref: '#/components/responses/IdentityUnauthenticated' - '403': $ref: '#/components/responses/IdentityPermissionDenied' '404': $ref: '#/components/responses/IdentityNotFound' '412': $ref: '#/components/responses/PreconditionFailed' + servers: + - url: https://global.api.konghq.com/ tags: - Auth Settings + get: + operationId: get-idp-team-mappings + summary: Fetch Team Mapping + description: Fetch the IdP group to Konnect team mapping. parameters: - $ref: '#/components/parameters/PageSize' - $ref: '#/components/parameters/PageNumber' - servers: - - url: https://global.api.konghq.com/ - put: - operationId: update-idp-team-mappings - summary: Update Team Mappings - description: Updates the IdP group to Konnect team mapping. - requestBody: - $ref: '#/components/requestBodies/UpdateTeamMappings' responses: '200': - $ref: '#/components/responses/TeamMappingCollection' - '400': - $ref: '#/components/responses/IdentityBadRequest' + $ref: '#/components/responses/TeamMappingResponse' '401': + $ref: '#/components/responses/IdentityUnauthenticated' + '403': $ref: '#/components/responses/IdentityPermissionDenied' '404': $ref: '#/components/responses/IdentityNotFound' '412': $ref: '#/components/responses/PreconditionFailed' - tags: - - Auth Settings servers: - url: https://global.api.konghq.com/ + tags: + - Auth Settings /v3/invites: post: operationId: invite-user @@ -3479,10 +3517,10 @@ paths: $ref: '#/components/responses/IdentityConflict' '429': $ref: '#/components/responses/RateLimited' - tags: - - Invites servers: - url: https://global.api.konghq.com/ + tags: + - Invites /v3/organizations/impersonation: get: operationId: get-impersonation-settings @@ -3490,8 +3528,6 @@ paths: description: >- Returns Impersonation Settings, which determines if user impersonation is allowed for an organization. - tags: - - Impersonation Settings responses: '200': $ref: '#/components/responses/GetImpersonationSettingsResponse' @@ -3501,14 +3537,14 @@ paths: $ref: '#/components/responses/IdentityNotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Impersonation Settings patch: operationId: update-impersonation-settings summary: Update Impersonation Settings description: Updates Impersonation Settings. requestBody: $ref: '#/components/requestBodies/UpdateImpersonationSettingsRequest' - tags: - - Impersonation Settings responses: '200': $ref: '#/components/responses/UpdateImpersonationSettingsResponse' @@ -3522,6 +3558,8 @@ paths: $ref: '#/components/responses/IdentityNotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Impersonation Settings /v3/organizations/me: get: x-speakeasy-entity-operation: OrganizationsMe#get @@ -3530,8 +3568,6 @@ paths: description: >- Returns the organization of the user identified in the token of the request. - tags: - - Me responses: '200': $ref: '#/components/responses/MeOrganization' @@ -3539,6 +3575,8 @@ paths: $ref: '#/components/responses/IdentityUnauthenticated' servers: - url: https://global.api.konghq.com/ + tags: + - Me /v3/roles: get: operationId: get-predefined-roles @@ -3551,10 +3589,10 @@ paths: $ref: '#/components/responses/IdentityBadRequest' '401': $ref: '#/components/responses/IdentityUnauthenticated' - tags: - - Roles servers: - url: https://global.api.konghq.com/ + tags: + - Roles /v3/system-accounts: get: operationId: get-system-accounts @@ -3562,21 +3600,14 @@ paths: description: >- Returns an array of system accounts (SA) in the organization. Returns 400 if any filter parameters are invalid. - tags: - - System Accounts - responses: - '200': - $ref: '#/components/responses/SystemAccountCollection' - '400': - $ref: '#/components/responses/IdentityBadRequest' - '401': - $ref: '#/components/responses/IdentityUnauthenticated' - '403': - $ref: '#/components/responses/Unauthorized' parameters: - $ref: '#/components/parameters/PageSize' - $ref: '#/components/parameters/PageNumber' - - schema: + - name: filter + in: query + description: Filter system accounts returned in the response. + required: false + schema: type: object properties: name: @@ -3585,13 +3616,20 @@ paths: $ref: '#/components/schemas/StringFieldFilter' konnect_managed: $ref: '#/components/schemas/BooleanFieldFilter' - in: query - name: filter - description: Filter system accounts returned in the response. - required: false style: deepObject + responses: + '200': + $ref: '#/components/responses/SystemAccountCollection' + '400': + $ref: '#/components/responses/IdentityBadRequest' + '401': + $ref: '#/components/responses/IdentityUnauthenticated' + '403': + $ref: '#/components/responses/Unauthorized' servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts post: x-speakeasy-entity-operation: SystemAccount#create operationId: post-system-accounts @@ -3601,8 +3639,6 @@ paths: same name already exists. requestBody: $ref: '#/components/requestBodies/CreateSystemAccount' - tags: - - System Accounts responses: '201': $ref: '#/components/responses/SystemAccountSingle' @@ -3614,15 +3650,9 @@ paths: $ref: '#/components/responses/IdentityConflict' servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts /v3/system-accounts/{accountId}: - parameters: - - schema: - type: string - name: accountId - in: path - required: true - description: ID of the system account. - x-speakeasy-match: id get: x-speakeasy-entity-operation: SystemAccount#read operationId: get-system-accounts-id @@ -3630,8 +3660,6 @@ paths: description: >- Returns the system account (SA) for the SA ID specified as a path parameter. - tags: - - System Accounts responses: '200': $ref: '#/components/responses/SystemAccountSingle' @@ -3643,6 +3671,16 @@ paths: $ref: '#/components/responses/IdentityNotFound' servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts + parameters: + - name: accountId + in: path + description: ID of the system account. + required: true + schema: + type: string + x-speakeasy-match: id patch: x-speakeasy-entity-operation: SystemAccount#update operationId: patch-system-accounts-id @@ -3663,10 +3701,10 @@ paths: $ref: '#/components/responses/IdentityNotFound' '409': $ref: '#/components/responses/IdentityConflict' - tags: - - System Accounts servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts delete: x-speakeasy-entity-operation: SystemAccount#delete operationId: delete-system-accounts-id @@ -3683,26 +3721,30 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts /v3/system-accounts/{accountId}/access-tokens: - parameters: - - schema: - type: string - name: accountId - in: path - required: true - description: ID of the system account. get: operationId: get-system-account-id-access-tokens summary: List System Account Access Tokens description: >- Returns the access tokens for the specified system account. Returns 400 if any filter parameters are invalid. - tags: - - System Accounts - Access Tokens + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageNumber' + - name: filter + in: query + description: Filter access tokens returned in the response. + required: false + schema: + type: object + properties: + name: + $ref: '#/components/schemas/StringFieldFilter' + style: deepObject responses: '200': $ref: '#/components/responses/SystemAccountAccessTokenCollection' @@ -3714,21 +3756,17 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageNumber' - - schema: - type: object - properties: - name: - $ref: '#/components/schemas/StringFieldFilter' - in: query - name: filter - description: Filter access tokens returned in the response. - required: false - style: deepObject servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Access Tokens + parameters: + - name: accountId + in: path + description: ID of the system account. + required: true + schema: + type: string post: x-speakeasy-entity-operation: SystemAccountAccessToken#create operationId: post-system-accounts-id-access-tokens @@ -3751,25 +3789,11 @@ paths: $ref: '#/components/responses/IdentityNotFound' '409': $ref: '#/components/responses/IdentityConflict' - tags: - - System Accounts - Access Tokens servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Access Tokens /v3/system-accounts/{accountId}/access-tokens/{tokenId}: - parameters: - - schema: - type: string - name: accountId - in: path - required: true - description: ID of the system account. - - schema: - type: string - name: tokenId - in: path - required: true - description: ID of the system account access token. - x-speakeasy-match: id get: x-speakeasy-entity-operation: SystemAccountAccessToken#read operationId: get-system-accounts-id-access-tokens-id @@ -3777,6 +3801,7 @@ paths: description: >- Returns the system account (SA) access token for the SA Access Token ID specified as a path parameter. + parameters: [] responses: '200': $ref: '#/components/responses/SystemAccountAccessTokenSingle' @@ -3786,11 +3811,24 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts - Access Tokens - parameters: [] servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Access Tokens + parameters: + - name: accountId + in: path + description: ID of the system account. + required: true + schema: + type: string + - name: tokenId + in: path + description: ID of the system account access token. + required: true + schema: + type: string + x-speakeasy-match: id patch: x-speakeasy-entity-operation: SystemAccountAccessToken#update operationId: patch-system-accounts-id-access-tokens-id @@ -3811,10 +3849,10 @@ paths: $ref: '#/components/responses/IdentityNotFound' '409': $ref: '#/components/responses/IdentityConflict' - tags: - - System Accounts - Access Tokens servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Access Tokens delete: x-speakeasy-entity-operation: SystemAccountAccessToken#delete operationId: delete-system-accounts-id-access-tokens-id @@ -3829,24 +3867,37 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts - Access Tokens servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Access Tokens /v3/system-accounts/{accountId}/assigned-roles: parameters: - - schema: - type: string - name: accountId + - name: accountId in: path - required: true description: ID of the system account. + required: true + schema: + type: string get: operationId: get-system-accounts-accountId-assigned-roles summary: Fetch Assigned Roles for System Account description: >- Lists the roles belonging to a system account. Returns 400 if any filter parameters are invalid. + parameters: + - name: filter + in: query + description: Filter roles returned in the response. + required: false + schema: + type: object + properties: + role_name: + $ref: '#/components/schemas/StringFieldEqualsFilter' + entity_type_name: + $ref: '#/components/schemas/StringFieldEqualsFilter' + style: deepObject responses: '200': $ref: '#/components/responses/AssignedRoleCollection' @@ -3858,23 +3909,10 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts - Roles - parameters: - - schema: - type: object - properties: - role_name: - $ref: '#/components/schemas/StringFieldEqualsFilter' - entity_type_name: - $ref: '#/components/schemas/StringFieldEqualsFilter' - in: query - name: filter - description: Filter roles returned in the response. - required: false - style: deepObject servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Roles post: x-speakeasy-entity-operation: SystemAccountRole#create operationId: post-system-accounts-accountId-assigned-roles @@ -3895,24 +3933,24 @@ paths: $ref: '#/components/responses/IdentityNotFound' '409': $ref: '#/components/responses/IdentityConflict' - tags: - - System Accounts - Roles servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Roles /v3/system-accounts/{accountId}/assigned-roles/{roleId}: parameters: - - schema: - type: string - name: accountId + - name: accountId in: path - required: true description: ID of the system account. - - schema: + required: true + schema: type: string - name: roleId + - name: roleId in: path - required: true description: ID of the role. + required: true + schema: + type: string x-speakeasy-match: id delete: x-speakeasy-entity-operation: SystemAccountRole#delete @@ -3930,22 +3968,35 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts - Roles servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Roles /v3/system-accounts/{accountId}/teams: parameters: - - schema: - type: string - name: accountId + - name: accountId in: path - required: true description: ID of the system account. + required: true + schema: + type: string get: operationId: get-system-accounts-accountId-teams summary: List Teams for a System Account description: Returns a paginated list of a teams that the system account belongs to. + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageNumber' + - name: filter + in: query + description: Filter teams returned in the response. + required: false + schema: + type: object + properties: + name: + $ref: '#/components/schemas/StringFieldFilter' + style: deepObject responses: '200': $ref: '#/components/responses/TeamCollection' @@ -3955,55 +4006,42 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts - Team Membership - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageNumber' - - schema: - type: object - properties: - name: - $ref: '#/components/schemas/StringFieldFilter' - in: query - name: filter - description: Filter teams returned in the response. - required: false - style: deepObject servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Team Membership /v3/teams: - parameters: [] get: operationId: list-teams summary: List Teams description: >- Returns an array of team objects containing information about the Konnect Teams. - responses: - '200': - $ref: '#/components/responses/TeamCollection' - '400': - $ref: '#/components/responses/IdentityBadRequest' - '404': - $ref: '#/components/responses/IdentityNotFound' - tags: - - Teams parameters: - $ref: '#/components/parameters/PageSize' - $ref: '#/components/parameters/PageNumber' - - schema: + - name: filter + in: query + description: Filter teams returned in the response. + required: false + schema: type: object properties: name: $ref: '#/components/schemas/StringFieldFilter' - in: query - name: filter - description: Filter teams returned in the response. - required: false style: deepObject + responses: + '200': + $ref: '#/components/responses/TeamCollection' + '400': + $ref: '#/components/responses/IdentityBadRequest' + '404': + $ref: '#/components/responses/IdentityNotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Teams + parameters: [] post: x-speakeasy-entity-operation: Team#create operationId: create-team @@ -4018,20 +4056,20 @@ paths: $ref: '#/components/responses/IdentityBadRequest' '403': $ref: '#/components/responses/IdentityPermissionDenied' - tags: - - Teams servers: - url: https://global.api.konghq.com/ + tags: + - Teams /v3/teams/{teamId}: parameters: - - schema: + - name: teamId + in: path + description: The team ID + required: true + schema: type: string format: uuid example: d32d905a-ed33-46a3-a093-d8f536af9a8a - name: teamId - in: path - required: true - description: The team ID x-speakeasy-match: id get: x-speakeasy-entity-operation: Team#read @@ -4045,10 +4083,10 @@ paths: $ref: '#/components/responses/IdentityBadRequest' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Teams servers: - url: https://global.api.konghq.com/ + tags: + - Teams patch: x-speakeasy-entity-operation: Team#update operationId: update-team @@ -4063,10 +4101,10 @@ paths: $ref: '#/components/responses/IdentityBadRequest' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Teams servers: - url: https://global.api.konghq.com/ + tags: + - Teams delete: x-speakeasy-entity-operation: Team#delete operationId: delete-team @@ -4079,28 +4117,39 @@ paths: $ref: '#/components/responses/IdentityBadRequest' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Teams servers: - url: https://global.api.konghq.com/ + tags: + - Teams /v3/teams/{teamId}/assigned-roles: parameters: - - schema: + - name: teamId + in: path + description: The team ID + required: true + schema: type: string format: uuid example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe - name: teamId - in: path - required: true - description: The team ID get: operationId: list-team-roles summary: List Team Roles description: >- Lists the roles belonging to a team. Returns 400 if any filter parameters are invalid. - tags: - - Roles + parameters: + - name: filter + in: query + description: Filter roles returned in the response. + required: false + schema: + type: object + properties: + role_name: + $ref: '#/components/schemas/StringFieldEqualsFilter' + entity_type_name: + $ref: '#/components/schemas/StringFieldEqualsFilter' + style: deepObject responses: '200': $ref: '#/components/responses/AssignedRoleCollection' @@ -4112,21 +4161,10 @@ paths: $ref: '#/components/responses/IdentityPermissionDenied' '404': $ref: '#/components/responses/IdentityNotFound' - parameters: - - schema: - type: object - properties: - role_name: - $ref: '#/components/schemas/StringFieldEqualsFilter' - entity_type_name: - $ref: '#/components/schemas/StringFieldEqualsFilter' - in: query - name: filter - description: Filter roles returned in the response. - required: false - style: deepObject servers: - url: https://global.api.konghq.com/ + tags: + - Roles post: x-speakeasy-entity-operation: TeamRole#create operationId: teams-assign-role @@ -4147,28 +4185,28 @@ paths: $ref: '#/components/responses/IdentityNotFound' '409': $ref: '#/components/responses/IdentityConflict' - tags: - - Roles servers: - url: https://global.api.konghq.com/ + tags: + - Roles /v3/teams/{teamId}/assigned-roles/{roleId}: parameters: - - schema: - type: string - format: uuid - example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe - name: teamId + - name: teamId in: path - required: true description: The team ID. - - schema: + required: true + schema: type: string - example: 8350205f-a305-4e39-abe9-bc082a80091a format: uuid - name: roleId + example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe + - name: roleId in: path - required: true description: The role ID. + required: true + schema: + type: string + format: uuid + example: 8350205f-a305-4e39-abe9-bc082a80091a x-speakeasy-match: id delete: x-speakeasy-entity-operation: TeamRole#delete @@ -4188,24 +4226,37 @@ paths: $ref: '#/components/responses/IdentityPermissionDenied' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Roles servers: - url: https://global.api.konghq.com/ + tags: + - Roles /v3/teams/{teamId}/system-accounts: parameters: - - schema: - type: string - name: teamId + - name: teamId in: path - required: true description: ID of the team. + required: true + schema: + type: string get: operationId: get-teams-teamId-system-accounts summary: List System Accounts on a Team description: >- Returns a paginated list of system accounts that belong to the team specified in the path parameter. + parameters: + - $ref: '#/components/parameters/PageSize' + - $ref: '#/components/parameters/PageNumber' + - name: filter + in: query + description: Filter system accounts returned in the response. + required: false + schema: + type: object + properties: + name: + $ref: '#/components/schemas/StringFieldFilter' + style: deepObject responses: '200': $ref: '#/components/responses/SystemAccountCollection' @@ -4215,23 +4266,10 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts - Team Membership - parameters: - - $ref: '#/components/parameters/PageSize' - - $ref: '#/components/parameters/PageNumber' - - schema: - type: object - properties: - name: - $ref: '#/components/schemas/StringFieldFilter' - in: query - name: filter - description: Filter system accounts returned in the response. - required: false - style: deepObject servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Team Membership post: x-speakeasy-entity-operation: SystemAccountTeam#create operationId: post-teams-teamId-system-accounts @@ -4252,24 +4290,24 @@ paths: $ref: '#/components/responses/IdentityNotFound' '409': $ref: '#/components/responses/IdentityConflict' - tags: - - System Accounts - Team Membership servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Team Membership /v3/teams/{teamId}/system-accounts/{accountId}: parameters: - - schema: - type: string - name: teamId + - name: teamId in: path - required: true description: ID of the team. - - schema: + required: true + schema: type: string - name: accountId + - name: accountId in: path - required: true description: ID of the system account. + required: true + schema: + type: string delete: x-speakeasy-entity-operation: SystemAccountTeam#delete operationId: delete-teams-teamId-system-accounts-accountId @@ -4286,39 +4324,34 @@ paths: $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - System Accounts - Team Membership servers: - url: https://global.api.konghq.com/ + tags: + - System Accounts - Team Membership /v3/teams/{teamId}/users: parameters: - - schema: - type: string - example: d32d905a-ed33-46a3-a093-d8f536af9a8a - format: uuid - name: teamId + - name: teamId in: path - required: true description: ID of the team. + required: true + schema: + type: string + format: uuid + example: d32d905a-ed33-46a3-a093-d8f536af9a8a get: operationId: list-team-users summary: List Team Users description: >- Returns a paginated list of users that belong to the team specified in the path parameter. - responses: - '200': - $ref: '#/components/responses/UserCollection' - '400': - $ref: '#/components/responses/IdentityBadRequest' - '404': - $ref: '#/components/responses/IdentityNotFound' - tags: - - Team Membership parameters: - $ref: '#/components/parameters/PageSize' - $ref: '#/components/parameters/PageNumber' - - schema: + - name: filter + in: query + description: Filter users returned in the response. + required: false + schema: type: object properties: id: @@ -4329,13 +4362,18 @@ paths: $ref: '#/components/schemas/StringFieldFilter' active: $ref: '#/components/schemas/BooleanFieldFilter' - in: query - name: filter - description: Filter users returned in the response. - required: false style: deepObject + responses: + '200': + $ref: '#/components/responses/UserCollection' + '400': + $ref: '#/components/responses/IdentityBadRequest' + '404': + $ref: '#/components/responses/IdentityNotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Team Membership post: x-speakeasy-entity-operation: TeamUser#create operationId: add-user-to-team @@ -4350,28 +4388,28 @@ paths: $ref: '#/components/responses/IdentityBadRequest' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Team Membership servers: - url: https://global.api.konghq.com/ + tags: + - Team Membership /v3/teams/{teamId}/users/{userId}: parameters: - - schema: + - name: userId + in: path + description: User ID + required: true + schema: type: string format: uuid example: d32d905a-ed33-46a3-a093-d8f536af9a8a - name: userId + - name: teamId in: path + description: Team ID. required: true - description: User ID - - schema: + schema: type: string - example: d32d905a-ed33-46a3-a093-d8f536af9a8a format: uuid - name: teamId - in: path - required: true - description: Team ID. + example: d32d905a-ed33-46a3-a093-d8f536af9a8a delete: x-speakeasy-entity-operation: TeamUser#delete operationId: remove-user-from-team @@ -4388,26 +4426,23 @@ paths: $ref: '#/components/responses/IdentityBadRequest' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Team Membership servers: - url: https://global.api.konghq.com/ + tags: + - Team Membership /v3/users: get: operationId: list-users summary: List Users description: Returns a paginated list of user objects. - tags: - - Users - responses: - '200': - $ref: '#/components/responses/UserCollection' - '400': - $ref: '#/components/responses/IdentityBadRequest' parameters: - $ref: '#/components/parameters/PageSize' - $ref: '#/components/parameters/PageNumber' - - schema: + - name: filter + in: query + description: Filter users returned in the response. + required: false + schema: type: object properties: id: @@ -4418,29 +4453,30 @@ paths: $ref: '#/components/schemas/StringFieldFilter' active: $ref: '#/components/schemas/BooleanFieldFilter' - in: query - name: filter - description: Filter users returned in the response. - required: false style: deepObject + responses: + '200': + $ref: '#/components/responses/UserCollection' + '400': + $ref: '#/components/responses/IdentityBadRequest' servers: - url: https://global.api.konghq.com/ + tags: + - Users /v3/users/{userId}: parameters: - - schema: + - name: userId + in: path + description: The ID of the user being deleted. + required: true + schema: type: string format: uuid example: d32d905a-ed33-46a3-a093-d8f536af9a8a - name: userId - in: path - required: true - description: The ID of the user being deleted. get: operationId: get-user summary: Fetch User description: Returns the user object for the user ID specified as a path parameter. - tags: - - Users responses: '200': $ref: '#/components/responses/UserSingle' @@ -4450,6 +4486,8 @@ paths: $ref: '#/components/responses/IdentityNotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Users patch: operationId: update-user summary: Update User @@ -4465,10 +4503,10 @@ paths: $ref: '#/components/responses/IdentityPermissionDenied' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Users servers: - url: https://global.api.konghq.com/ + tags: + - Users delete: operationId: delete-user summary: Delete User @@ -4480,50 +4518,50 @@ paths: description: No Content '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Users servers: - url: https://global.api.konghq.com/ + tags: + - Users /v3/users/{userId}/assigned-roles: parameters: - - schema: + - name: userId + in: path + description: The user ID + required: true + schema: type: string format: uuid example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe - name: userId - in: path - required: true - description: The user ID get: operationId: list-user-roles summary: List User Roles description: >- Lists the roles assigned to a user. Returns 400 if any filter parameters are invalid. - tags: - - Roles - responses: - '200': - $ref: '#/components/responses/AssignedRoleCollection' - '400': - $ref: '#/components/responses/IdentityBadRequest' - '404': - $ref: '#/components/responses/IdentityNotFound' parameters: - - schema: + - name: filter + in: query + description: Filter roles returned in the response. + required: false + schema: type: object properties: role_name: $ref: '#/components/schemas/StringFieldEqualsFilter' entity_type_name: $ref: '#/components/schemas/StringFieldEqualsFilter' - in: query - name: filter - description: Filter roles returned in the response. - required: false style: deepObject + responses: + '200': + $ref: '#/components/responses/AssignedRoleCollection' + '400': + $ref: '#/components/responses/IdentityBadRequest' + '404': + $ref: '#/components/responses/IdentityNotFound' servers: - url: https://global.api.konghq.com/ + tags: + - Roles post: operationId: users-assign-role summary: Assign Role @@ -4543,28 +4581,28 @@ paths: $ref: '#/components/responses/IdentityNotFound' '409': $ref: '#/components/responses/IdentityConflict' - tags: - - Roles servers: - url: https://global.api.konghq.com/ + tags: + - Roles /v3/users/{userId}/assigned-roles/{roleId}: parameters: - - schema: + - name: userId + in: path + description: ID of the user. + required: true + schema: type: string format: uuid example: e81bc3e5-e9db-4764-b7dd-e81e39072cbe - name: userId + - name: roleId in: path + description: ID of the role. required: true - description: ID of the user. - - schema: + schema: type: string - example: 8350205f-a305-4e39-abe9-bc082a80091a format: uuid - name: roleId - in: path - required: true - description: ID of the role. + example: 8350205f-a305-4e39-abe9-bc082a80091a delete: operationId: users-remove-role summary: Remove Role @@ -4580,46 +4618,65 @@ paths: $ref: '#/components/responses/IdentityUnauthenticated' '404': $ref: '#/components/responses/IdentityNotFound' - tags: - - Roles servers: - url: https://global.api.konghq.com/ + tags: + - Roles /v3/users/{userId}/teams: parameters: - - schema: - type: string - example: d32d905a-ed33-46a3-a093-d8f536af9a8a - format: uuid - name: userId + - name: userId in: path - required: true description: The user ID. + required: true + schema: + type: string + format: uuid + example: d32d905a-ed33-46a3-a093-d8f536af9a8a get: operationId: list-user-teams summary: List User Teams description: Returns a paginated list of a teams that the user belongs to. - responses: - '200': - $ref: '#/components/responses/TeamCollection' - '404': - $ref: '#/components/responses/IdentityNotFound' - tags: - - Team Membership parameters: - $ref: '#/components/parameters/PageSize' - $ref: '#/components/parameters/PageNumber' - - schema: + - name: filter + in: query + description: Filter teams returned in the response. + required: false + schema: type: object properties: name: $ref: '#/components/schemas/StringFieldFilter' - in: query - name: filter - description: Filter teams returned in the response. - required: false style: deepObject + responses: + '200': + $ref: '#/components/responses/TeamCollection' + '404': + $ref: '#/components/responses/IdentityNotFound' + servers: + - url: https://global.api.konghq.com/ + tags: + - Team Membership + /v3/users/me: + get: + operationId: get-users-me + summary: Retrieve My User Account + description: >- + Returns the user account for the user identified in the token of the + request. + responses: + '200': + $ref: '#/components/responses/UserSingle' + '401': + $ref: '#/components/responses/IdentityUnauthenticated' + security: + - personalAccessToken: [] + - konnectAccessToken: [] servers: - url: https://global.api.konghq.com/ + tags: + - Me components: parameters: ACLId: @@ -4662,43 +4719,28 @@ components: required: true schema: type: string - ConsumerId: - description: ID of the Consumer to lookup - example: c1059869-6fa7-4329-a5f5-5946d14ca2c5 + ConsumerGroupIdManageConsumers: in: path - name: ConsumerId - required: true - schema: - type: string - ConsumerIdForNestedEntities: - description: Consumer ID for nested entities - example: f28acbfa-c866-4587-b688-0208ac24df21 - in: path - name: ConsumerIdForNestedEntities + name: ConsumerGroupId required: true schema: type: string - controlPlaneId: - name: controlPlaneId + x-speakeasy-name-override: consumer_group_id + ConsumerId: + description: ID of the Consumer to lookup + example: c1059869-6fa7-4329-a5f5-5946d14ca2c5 in: path + name: ConsumerId required: true schema: type: string - format: uuid - example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 - description: >- - The UUID of your control plane. This variable is available in the - Konnect manager - ControlPlaneId: - description: >- - The UUID of your control plane. This variable is available in the - Konnect manager. - example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 + ConsumerIdForNestedEntities: + description: Consumer ID for nested entities + example: f28acbfa-c866-4587-b688-0208ac24df21 in: path - name: controlPlaneId + name: ConsumerIdForNestedEntities required: true schema: - format: uuid type: string ControlPlaneSort: name: sort @@ -4903,24 +4945,6 @@ components: schema: type: integer example: 10 - pagination-size: - description: Number of resources to be returned. - in: query - name: size - schema: - default: 100 - maximum: 1000 - minimum: 1 - type: integer - pagination-tags-filter: - description: >- - A list of tags to filter the list of resources on. Multiple tags can be - concatenated using ',' to mean AND or using '/' to mean OR. - example: tag1,tag2 - in: query - name: tags - schema: - type: string PaginationOffset: description: >- Offset from which to return the next set of resources. Use the value of @@ -4935,10 +4959,10 @@ components: in: query name: size schema: + type: integer default: 100 maximum: 1000 minimum: 1 - type: integer PaginationTagsFilter: description: >- A list of tags to filter the list of resources on. Multiple tags can be @@ -4964,14 +4988,6 @@ components: required: true schema: type: string - ServiceId: - description: ID of the Service to lookup - example: 7fca84d6-7d37-4a74-a7b0-93e576089a41 - in: path - name: ServiceId - required: true - schema: - type: string SNIId: description: ID of the SNI to lookup example: 64c17a1a-b7d7-4a65-a5a4-42e4a7016e7f @@ -4980,6 +4996,14 @@ components: required: true schema: type: string + ServiceId: + description: ID of the Service to lookup + example: 7fca84d6-7d37-4a74-a7b0-93e576089a41 + in: path + name: ServiceId + required: true + schema: + type: string TargetId: description: ID of the Target to lookup example: 5a078780-5d4c-4aae-984a-bdc6f52113d8 @@ -5012,1506 +5036,658 @@ components: required: true schema: type: string - responses: - AssignedRoleCollection: - description: A paginated list response for a collection of assigned roles. - content: - application/json: - schema: - type: object - title: Assigned Role Collection Response - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - description: An Array - items: - $ref: '#/components/schemas/AssignedRole' - AssignedRoleSingle: - description: A get action response of a single assigned role. - content: - application/json: - schema: - $ref: '#/components/schemas/AssignedRole' - AuthenticationSettings: - description: Response for authentication settings endpoint - content: - application/json: - schema: - type: object - title: Authentication Settings Response - properties: - basic_auth_enabled: - type: boolean - example: true - description: The organization has basic auth enabled. - oidc_auth_enabled: - type: boolean - example: false - description: The organization has OIDC disabled. - idp_mapping_enabled: - type: boolean - example: true - description: IdP groups determine the Konnect teams a user has. - konnect_mapping_enabled: - type: boolean - example: false - description: A Konnect Identity Admin assigns teams to a user. - BadRequest: - description: Bad Request - content: - application/problem+json: - schema: - $ref: '#/components/schemas/BadRequestError' - Conflict: - description: Conflict - content: - application/problem+json: - schema: - $ref: '#/components/schemas/ConflictError' - ControlPlaneConflict: - description: Conflict - content: - application/problem+json: - schema: - $ref: '#/components/schemas/ConflictError' - ControlPlaneNotFound: - description: Not Found - content: - application/problem+json: - schema: - $ref: '#/components/schemas/NotFoundError' - ControlPlanePermissionDenied: - description: Permission denied - content: - application/problem+json: - schema: - $ref: '#/components/schemas/ForbiddenError' - ControlPlanesBadRequest: - description: Bad Request - content: - application/problem+json: - schema: - $ref: '#/components/schemas/BadRequestError' - ControlPlaneUnauthenticated: - description: Unauthenticated - content: - application/problem+json: - schema: - $ref: '#/components/schemas/UnauthorizedError' - CreateControlPlaneResponse: - description: A response to creating a control plane. - content: - application/json: - schema: - $ref: '#/components/schemas/ControlPlane' - CreateServerlessCloudGatewayResponse: - description: A response to creating a serverless cloud gateway. - content: - application/json: - schema: - $ref: '#/components/schemas/ServerlessCloudGateway' - DataPlaneClientCertificateResponse: - description: Response body for retrieving a dp-client-certificate. - content: - application/json: - schema: - $ref: '#/components/schemas/DataPlaneClientCertificate' - Forbidden: - description: Forbidden - content: - application/problem+json: - schema: - $ref: '#/components/schemas/ForbiddenError' - get-expected-config-hash: + controlPlaneId: + name: controlPlaneId + in: path + required: true + schema: + type: string + format: uuid + example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 description: >- - Response body for retrieving the expected config hash of the control - plane. - content: - application/json: - schema: + The UUID of your control plane. This variable is available in the + Konnect manager + pagination-size: + description: Number of resources to be returned. + in: query + name: size + schema: + type: integer + default: 100 + maximum: 1000 + minimum: 1 + pagination-tags-filter: + description: >- + A list of tags to filter the list of resources on. Multiple tags can be + concatenated using ',' to mean AND or using '/' to mean OR. + example: tag1,tag2 + in: query + name: tags + schema: + type: string + schemas: + GroupMembership: + x-speakeasy-entity: GatewayControlPlaneMembership + type: object + properties: + members: + type: array + items: type: object properties: - expected_hash: + id: type: string - description: The expected configuration hash. - created_at: - type: integer - description: Date the control plane configuration was created. - updated_at: - type: integer - description: Date the control plane configuration was last updated. - get-node: - description: Example response - content: - application/json: - schema: - type: object - properties: - item: - type: object - properties: - id: - type: string - version: - type: string - hostname: - type: string - last_ping: - type: integer - type: - type: string - created_at: - type: integer - updated_at: - type: integer - config_hash: - type: string - compatibility_status: - type: object - properties: - state: - type: string - GetGroupMemberStatus: - description: Determines the group membership status of a control plane. - content: - application/json: - schema: - $ref: '#/components/schemas/GroupMemberStatus' - GetGroupStatus: - description: Status of a control plane group, including existing conflicts. - content: - application/json: - schema: - $ref: '#/components/schemas/GroupStatus' - GetImpersonationSettingsResponse: - description: Response for Get Impersonation Settings endpoint - content: - application/json: - schema: - type: object - title: Get Impersonation Settings Response - properties: - enabled: - type: boolean - example: true - description: The organization has user impersonation enabled. - HTTP401Error: - content: - application/json: - schema: - $ref: '#/components/schemas/GatewayUnauthorizedError' - description: Unauthorized - IdentityBadRequest: - description: Bad Request - content: - application/problem+json: - schema: - $ref: '#/components/schemas/BadRequestError' - IdentityConflict: - description: Conflict - content: - application/problem+json: - schema: - $ref: '#/components/schemas/ConflictError' - IdentityNotFound: - description: Not Found - content: - application/problem+json: - schema: - $ref: '#/components/schemas/NotFoundError' - IdentityPermissionDenied: - description: Permission denied - content: - application/problem+json: - schema: - $ref: '#/components/schemas/ForbiddenError' - IdentityUnauthenticated: - description: Unauthenticated - content: - application/problem+json: - schema: - $ref: '#/components/schemas/UnauthorizedError' - IdPConfiguration: - description: A get action response of the IdP configuration. - content: - application/json: - schema: - $ref: '#/components/schemas/IdP' - InternalServerError: - description: Internal Server Error - content: - application/problem+json: - schema: - title: InternalServerError - type: object - description: The error response object. - properties: - status: - type: integer - description: The HTTP status code. - example: 500 - enum: - - 500 - title: - type: string - description: The error response code. - example: Internal Server Error - instance: - type: string - example: konnect:trace:2287285207635123011 - description: The Konnect traceback code - detail: - type: string - example: >- - Could not propagate control plane changes to control plane - cluster service. - description: Details about the error. - required: - - status - - title - - instance - list-nodes: - description: Example response - content: - application/json: - schema: - type: object - properties: - items: - type: array - items: - type: object - properties: - id: - type: string - version: - type: string - hostname: - type: string - last_ping: - type: integer - type: - type: string - created_at: - type: integer - updated_at: - type: integer - config_hash: - type: string - compatibility_status: - type: object - properties: - state: - type: string - page: - type: object - properties: - total: - type: integer - next: - type: string - list-nodes-eol: - description: Example response - content: - application/json: - schema: - type: object - properties: - items: - type: array - items: - type: object - properties: - node_id: - type: string - node_version: - type: string - message: - type: string - page: - type: object - properties: - total: - type: integer - list-plugin-schemas: - description: A paginated list response for a collection of custom plugin schemas. - content: - application/json: - schema: - type: object - properties: - items: - type: array - items: - type: object - properties: - lua_schema: - type: string - description: The custom plugin schema; `jq -Rs '.' schema.lua`. - example: >- - return { name = \"myplugin\", fields = { { config = { - type = \"record\", fields = { } } } } } - name: - type: string - description: >- - The custom plugin name determined by the custom plugin - schema. - example: myplugin - created_at: - type: integer - description: >- - An ISO-8604 timestamp representation of custom plugin - schema creation date. - example: 1422386534 - updated_at: - type: integer - description: >- - An ISO-8604 timestamp representation of custom plugin - schema update date. - example: 1422412345 - page: - type: object - properties: - total: - type: integer - ListControlPlanesResponse: - description: A paginated list response for a collection of control planes. - content: - application/json: - schema: - title: ListControlPlanesResponse - type: object - additionalProperties: false - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - items: - $ref: '#/components/schemas/ControlPlane' - required: - - meta - - data - ListDataPlaneCertificatesResponse: - description: Example response - content: - application/json: - schema: - type: object - properties: - items: - type: array - items: - $ref: '#/components/schemas/DataPlaneClientCertificate' - page: - type: object - properties: - total: - type: integer - ListGroupMemberships: - description: >- - A paginated list response for a collection of control plane group - memberships. - content: - application/json: - schema: - type: object - properties: - meta: - $ref: '#/components/schemas/CursorPaginatedMetaWithSizeAndTotal' - data: - type: array - description: >- - Array of control planes summary who are a child to this - control plane group. - items: - $ref: '#/components/schemas/ControlPlaneSummary' - ListServerlessCloudGatewaysResponse: - description: A paginated list response for a collection of serverless cloud gateways. - content: - application/json: - schema: - title: ListServerlessCloudGatewaysResponse - type: object - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - items: - $ref: '#/components/schemas/ServerlessCloudGateway' - MeOrganization: - description: Me Organization - content: - application/json: - schema: - type: object - title: Me Organization Response - example: - id: d99c041a-c7cf-46a2-bf3a-44bb5f75400e - name: string - owner_id: 1c9c3848-5897-4f2c-beed-df6f3e3adb37 - created_at: '2023-01-23T17:22:52.150Z' - updated_at: '2023-01-23T17:22:52.150Z' - state: active - retention_period_days: 90 - properties: - id: - type: string - description: UUID of the organization. - format: uuid - readOnly: true - name: - type: string - description: Name of the organization. - owner_id: - type: string - description: Owner ID of the organization. - login_path: - type: string - description: >- - Path to organization-specific login when single sign on (SSO) - is enabled. Blank otherwise. - created_at: - type: string - description: Date the organization was created. - format: date-time - readOnly: true - updated_at: - type: string - description: Date the organization was last updated. - format: date-time - readOnly: true - state: - type: string - description: State of the organization - enum: - - active - - inactive - retention_period_days: - type: integer - description: >- - The number of days an organization spends inactive before - being deleted. - NotFound: - description: Not Found - content: - application/problem+json: - schema: - $ref: '#/components/schemas/NotFoundError' - plugin-schemas: - description: A response for a single custom plugin schema. - content: - application/json: - schema: - type: object - properties: - item: - x-speakeasy-entity: GatewayCustomPluginSchema - type: object - properties: - lua_schema: - type: string - description: The custom plugin schema; `jq -Rs '.' schema.lua`. - example: >- - return { name = \"myplugin\", fields = { { config = { type - = \"record\", fields = { } } } } } - name: - type: string - description: >- - The custom plugin name determined by the custom plugin - schema. - example: myplugin - created_at: - type: integer - description: >- - An ISO-8604 timestamp representation of custom plugin - schema creation date. - example: 1422386534 - updated_at: - type: integer - description: >- - An ISO-8604 timestamp representation of custom plugin - schema update date. - example: 1422412345 - PreconditionFailed: - description: Precondition Failed - content: - application/problem+json: - schema: - type: object - title: Precondition Failed Response - description: The error response object. - properties: - status: - type: integer - description: The HTTP status code. - example: 412 - title: - type: string - description: The error response code. - example: Precondition Failed - instance: - type: string - description: The Konnect traceback code. - example: konnect:trace:1896611024257578096 - detail: - type: string - description: Details about the error response. - example: IdP configuration not found - RateLimited: - description: Rate Limited - content: - application/problem+json: - schema: - type: object - title: Rate Limited Response - description: The error object - properties: - status: - type: integer - description: The HTTP response code - example: 429 - title: - type: string - example: Rate Limited - description: The Error response - instance: - type: string - description: The Konnect traceback ID. - example: konnect:trace:3674017986744198214 - detail: - type: string - description: Detailed explanation of the error response. - example: Too many requests - RetrieveControlPlaneResponse: - description: A response to retrieving a single control plane. - content: - application/json: - schema: - $ref: '#/components/schemas/ControlPlane' - RetrieveServerlessCloudGatewayResponse: - description: A response to retrieving a serverless cloud gateway. - content: - application/json: - schema: - $ref: '#/components/schemas/ServerlessCloudGateway' - Roles: - description: The predefined, or system managed, roles. - content: - application/json: - schema: - type: object - title: Roles Response - properties: - control_planes: - type: object - additionalProperties: false - required: - - name - - roles - properties: - name: - type: string - enum: - - Control Planes - roles: - type: object - properties: - admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Admin - description: - type: string - example: >- - This role grants full write access to all entities - within a control plane. - enum: - - >- - This role grants full write access to all - entities within a control plane. - certificate_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Certificate Admin - description: - type: string - example: >- - This role grants full write access to administer - certificates. - enum: - - >- - This role grants full write access to administer - certificates. - consumer_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Consumer Admin - description: - type: string - example: >- - This role grants full write access to administer - consumers. - enum: - - >- - This role grants full write access to administer - consumers. - creator: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Creator - description: - type: string - example: >- - Creates a new Control Plane in an organization. - The creator becomes the owner of the Control Plane - they create. - enum: - - >- - Creates a new Control Plane in an organization. - The creator becomes the owner of the Control - Plane they create. - deployer: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Deployer - description: - type: string - example: >- - This role grants full write access to administer - services, routes and plugins necessary to deploy - services in Service Hub. - enum: - - >- - This role grants full write access to administer - services, routes and plugins necessary to deploy - services in Service Hub. - gateway_service_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Gateway Service Admin - description: - type: string - example: >- - This role grants full write access to administer - gateway services. - enum: - - >- - This role grants full write access to administer - gateway services. - plugin_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Plugin Admin - description: - type: string - example: >- - This role grants full write access to administer - plugins. - enum: - - >- - This role grants full write access to administer - plugins. - route_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Route Admin - description: - type: string - example: >- - This role grants full write access to administer - routes. - enum: - - >- - This role grants full write access to administer - routes. - sni_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - SNI Admin - description: - type: string - example: >- - This role grants full write access to administer - SNIs. - enum: - - >- - This role grants full write access to administer - SNIs. - upstream_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Upstream Admin - description: - type: string - example: >- - This role grants full write access to administer - upstreams. - enum: - - >- - This role grants full write access to administer - upstreams. - viewer: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Viewer - description: - type: string - example: >- - This role grants read only access to all entities - within a control plane. - enum: - - >- - This role grants read only access to all - entities within a control plane. - api_products: - type: object - additionalProperties: false - required: - - name - - roles - properties: - name: - type: string - enum: - - API Products - roles: - type: object - properties: - admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Admin - description: - type: string - example: >- - This role grants full write access to an API - product and its versions. - enum: - - >- - This role grants full write access to an API - product and its versions. - application_registration: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Application Registration - description: - type: string - example: >- - This role grants permission to enable and disable - application registration on an API product. - enum: - - >- - This role grants permission to enable and - disable application registration on an API - product. - creator: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Creator - description: - type: string - example: >- - This access is required to create API products. - This access is not for creating sub-entities such - as versions, API specs, etc. - enum: - - >- - This access is required to create API products. - This access is not for creating sub-entities - such as versions, API specs, etc. - deployer: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Deployer - description: - type: string - example: >- - This role grants permission to deploy and remove - an API product from a control plane. - enum: - - >- - This role grants permission to deploy and remove - an API product from a control plane. - maintainer: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Maintainer - description: - type: string - example: >- - This role grants all write permission to manage an - API product and to administer plugins. - enum: - - >- - This role grants all write permission to manage - an API product and to administer plugins. - plugins_admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Plugins Admin - description: - type: string - example: >- - This role grants full write permission to - administer plugins. - enum: - - >- - This role grants full write permission to - administer plugins. - publisher: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Publisher - description: - type: string - example: >- - This role grants permission to publish an API - product to one or more portals. - enum: - - >- - This role grants permission to publish an API - product to one or more portals. - viewer: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Viewer - description: - type: string - example: >- - Viewer has read-only access to an API product and - its sub-entities. - enum: - - >- - Viewer has read-only access to an API product - and its sub-entities. - audit_logs: - type: object - additionalProperties: false - required: - - name - - roles - properties: - name: - type: string - enum: - - Audit Logs - roles: - type: object - properties: - admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Admin - description: - type: string - example: >- - This role grants full write access to the Audit - log configuration. - enum: - - >- - This role grants full write access to the Audit - log configuration. - identity: - type: object - additionalProperties: false - required: - - name - - roles - properties: - name: - type: string - enum: - - Identity - roles: - type: object - properties: - admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Admin - description: - type: string - example: >- - This role grants full write access to the Identity - configuration. - enum: - - >- - This role grants full write access to the - Identity configuration. - mesh_control_planes: - type: object - additionalProperties: false - required: - - name - - roles - properties: - name: - type: string - enum: - - Mesh Control Plane - roles: - type: object - properties: - admin: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Admin - description: - type: string - example: >- - This role grants full write access to the related - to Mesh control planes. - enum: - - >- - This role grants full write access to the - related to Mesh control planes. - creator: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Creator - description: - type: string - example: >- - This role grants access to create new Mesh control - planes. - enum: - - >- - This role grants access to create new Mesh - control planes. - viewer: - type: object - additionalProperties: false - required: - - name - - description - properties: - name: - type: string - enum: - - Viewer - description: - type: string - example: >- - This role grants access to read-only permissions - to Mesh control planes. - enum: - - >- - This role grants access to read-only permissions - to Mesh control planes. - ServiceUnavailable: - description: Service Unavailable - content: - application/problem+json: - schema: - title: ServiceUnavailableError - type: object - description: Error response for temporary service unavailability. - properties: - status: - type: integer - description: The HTTP status code. - example: 503 - enum: - - 503 - title: - type: string - description: The error response code. - example: Service Unavailable - instance: - type: string - example: konnect:trace:2287285207635123011 - description: The Konnect traceback code - detail: - type: string - example: >- - Could not retrieve permissions to check resource - accessibility. - description: Details about the error. - required: - - status - - title - - instance - SystemAccountAccessTokenCollection: - description: >- - A paginated list response for a collection of system accounts access - tokens. - content: - application/json: - schema: - type: object - title: System Account Access Token Collection Reponse - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - items: - $ref: '#/components/schemas/SystemAccountAccessToken' - SystemAccountAccessTokenCreated: - description: >- - A response including a single system account access token with the - token. - content: - application/json: - schema: - x-speakeasy-entity: SystemAccountAccessToken - type: object - title: System Account Access Token Created Response - example: - id: 497f6eca-6276-4993-bfeb-53cbbbba6f08 - name: Sample Access Token - created_at: '2022-08-01T14:16:09Z' - updated_at: '2022-08-02T08:35:49Z' - expires_at: '2022-12-31T12:52:23Z' - last_used_at: '2022-10-24T13:05:42Z' - properties: - id: - type: string - description: ID of the system account access token. - format: uuid - readOnly: true - name: - type: string - description: Name of the system account access token. - created_at: - type: string - description: Timestamp of when the system account access token was created. - format: date-time - readOnly: true - updated_at: - type: string - description: >- - Timestamp of when the system account access token was last - updated. - format: date-time - readOnly: true - expires_at: - type: string - description: Timestamp of when the system account access token will expire. - format: date-time - readOnly: true - last_used_at: - type: string - description: >- - Timestamp of when the system account access token was last - used. - format: date-time - readOnly: true - token: - type: string - description: The token of the system account access token. - readOnly: true - SystemAccountAccessTokenSingle: - description: A response including a single system account access token. - content: - application/json: - schema: - $ref: '#/components/schemas/SystemAccountAccessToken' - SystemAccountCollection: - description: A paginated list response for a collection of system accounts. - content: - application/json: - schema: - type: object - title: System Account Collection Response - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - items: - $ref: '#/components/schemas/SystemAccount' - SystemAccountSingle: - description: A response including a single system account. - content: - application/json: - schema: - $ref: '#/components/schemas/SystemAccount' - TeamCollection: - description: A paginated list response for a collection of users. - content: - application/json: - schema: - type: object - title: Team Collection Response - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - items: - $ref: '#/components/schemas/Team' - TeamGroupMappingCollection: - description: A paginated collection of mappings grouped by team_id. - content: - application/json: - schema: - type: object - title: Team Group Mapping Collection Response - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - items: - $ref: '#/components/schemas/TeamGroupMapping' - TeamMappingCollection: - description: A paginated list response for a collection of team mappings. - content: - application/json: - schema: - type: object - title: Team Mapping Collection Response - properties: - data: - type: array - items: - $ref: '#/components/schemas/TeamMapping' - TeamMappingResponse: - description: A paginated list response for a collection of team mappings. - content: - application/json: - schema: - type: object - title: Team Mapping Response - properties: - meta: - type: object - description: Contains pagination data. - properties: - page: - type: object - description: The page object. - properties: - number: - type: integer - description: Page number. - example: 1 - size: - type: integer - description: Page size. - example: 9 - total: - type: integer - description: Total number of results. - example: 5 - data: - type: array - items: - type: object - properties: - group: - type: string - description: Group names. - example: 111(@&*$)(@*#_@(gfds re gdsf dfg - team_ids: - type: array - description: Team ID's that belong to the specified group. - items: - type: string - example: 3df49db8-39ff-490d-9fe1-251a3361fb13 - TeamSingle: - description: A response including a single team. - content: - application/json: - schema: - $ref: '#/components/schemas/Team' - Unauthorized: - description: Unauthorized - content: - application/problem+json: - schema: - $ref: '#/components/schemas/UnauthorizedError' - type: object - title: Unauthorized Response - description: The error response object. - properties: - status: - type: integer - example: 403 - description: The HTTP status code. - title: - type: string - description: The Error Response. - example: Unauthorized - instance: - type: string - description: The Konnect traceback code. - example: konnect:trace:952172606039454040 - detail: - type: string - description: Details about the error response. - example: You do not have permission to perform this action - UpdateControlPlaneResponse: - description: A response to updating a control plane. - content: - application/json: - schema: - $ref: '#/components/schemas/ControlPlane' - UpdateImpersonationSettingsResponse: - description: Response for Update Impersonation Settings endpoint - content: - application/json: - schema: - type: object - title: Update Impersonation Settings Response - properties: - enabled: - type: boolean - example: true - description: The organization has user impersonation enabled. - UserCollection: - description: A paginated list response for a collection of users. - content: - application/json: - schema: - type: object - title: User Collection Response - properties: - meta: - $ref: '#/components/schemas/PaginatedMeta' - data: - type: array - items: - $ref: '#/components/schemas/User' - UserSingle: - description: A get action response of a single user. - content: - application/json: - schema: - $ref: '#/components/schemas/User' - schemas: - ACL: - allOf: - - $ref: '#/components/schemas/ACLWithoutParents' - - properties: - consumer: - additionalProperties: false + CreateControlPlaneRequest: + x-speakeasy-entity: GatewayControlPlane + description: The request schema for the create control plane request. + type: object + properties: + name: + description: The name of the control plane. + type: string + example: Test Control Plane + description: + description: The description of the control plane in Konnect. + type: string + example: A test control plane for exploration. + cluster_type: + description: >- + The ClusterType value of the cluster associated with the Control + Plane. + type: string + example: CLUSTER_TYPE_CONTROL_PLANE + enum: + - CLUSTER_TYPE_CONTROL_PLANE + - CLUSTER_TYPE_HYBRID + - CLUSTER_TYPE_K8S_INGRESS_CONTROLLER + - CLUSTER_TYPE_CONTROL_PLANE_GROUP + - CLUSTER_TYPE_SERVERLESS + auth_type: + description: >- + The auth type value of the cluster associated with the Runtime + Group. + type: string + example: pinned_client_certs + enum: + - pinned_client_certs + - pki_client_certs + cloud_gateway: + description: Whether this control-plane can be used for cloud-gateways. + type: boolean + example: false + proxy_urls: + $ref: '#/components/schemas/ProxyURLs' + labels: + $ref: '#/components/schemas/Labels' + additionalProperties: false + required: + - name + title: CreateControlPlaneRequest + UpdateControlPlaneRequest: + description: The request schema for the update control plane request. + type: object + properties: + name: + description: The name of the control plane. + type: string + example: Test Control Plane + description: + description: The description of the control plane in Konnect. + type: string + example: A test control plane for exploration. + auth_type: + description: >- + The auth type value of the cluster associated with the Runtime + Group. + type: string + example: pinned_client_certs + enum: + - pinned_client_certs + - pki_client_certs + proxy_urls: + $ref: '#/components/schemas/ProxyURLs' + labels: + $ref: '#/components/schemas/Labels' + additionalProperties: false + title: UpdateControlPlaneRequest + ControlPlane: + x-speakeasy-entity: GatewayControlPlane + allOf: + - $ref: '#/components/schemas/ControlPlaneSummary' + - type: object + properties: + labels: + $ref: '#/components/schemas/Labels' + config: + description: CP configuration object for related access endpoints. + type: object properties: - id: + control_plane_endpoint: + description: Control Plane Endpoint. type: string - type: object - x-foreign: true + format: url + example: https://acfe5f253f.cp0.konghq.com + readOnly: true + telemetry_endpoint: + description: Telemetry Endpoint. + type: string + format: url + example: https://acfe5f253f.tp0.konghq.com + readOnly: true + x-speakeasy-param-suppress-computed-diff: true + created_at: + description: >- + An ISO-8604 timestamp representation of control plane creation + date. + type: string + format: date-time + example: '2022-11-04T20:10:06.927Z' + readOnly: true + x-speakeasy-terraform-ignore: true + updated_at: + description: >- + An ISO-8604 timestamp representation of control plane update + date. + type: string + format: date-time + example: '2022-11-04T20:10:06.927Z' + readOnly: true + x-speakeasy-terraform-ignore: true + ControlPlaneSummary: + description: >- + The control plane object contains information about a Kong control + plane. + type: object + properties: + id: + description: The control plane ID. + type: string + format: uuid + example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + readOnly: true + x-speakeasy-param-suppress-computed-diff: true + name: + description: The name of the control plane. + type: string + example: Test Control Plane + description: + description: The description of the control plane in Konnect. + type: string + example: A test control plane for exploration. + labels: + $ref: '#/components/schemas/Labels' + config: + description: CP configuration object for related access endpoints. type: object - ACLWithoutParents: + additionalProperties: false + properties: + control_plane_endpoint: + description: Control Plane Endpoint. + type: string + format: url + example: https://acfe5f253f.cp0.konghq.com + readOnly: true + telemetry_endpoint: + description: Telemetry Endpoint. + type: string + format: url + example: https://acfe5f253f.tp0.konghq.com + readOnly: true + cluster_type: + description: >- + The ClusterType value of the cluster associated with the Control + Plane. + type: string + example: CLUSTER_TYPE_CONTROL_PLANE + enum: + - CLUSTER_TYPE_CONTROL_PLANE + - CLUSTER_TYPE_HYBRID + - CLUSTER_TYPE_K8S_INGRESS_CONTROLLER + - CLUSTER_TYPE_CONTROL_PLANE_GROUP + - CLUSTER_TYPE_SERVERLESS + readOnly: true + auth_type: + description: >- + The auth type value of the cluster associated with the Runtime + Group. + type: string + example: pinned_client_certs + enum: + - pinned_client_certs + - pki_client_certs + readOnly: true + cloud_gateway: + description: Whether the Control Plane can be used for cloud-gateways. + type: boolean + readOnly: true + proxy_urls: + $ref: '#/components/schemas/ProxyURLs' + required: + - control_plane_endpoint + - telemetry_endpoint + - cluster_type + - auth_type + - cloud_gateway + created_at: + type: string + format: date-time + updated_at: + type: string + format: date-time + additionalProperties: false + required: + - id + - name + - config + - created_at + - updated_at + title: ControlPlaneSummary + GroupStatus: + description: >- + The Group Status object contains information about the status of a + control plane group. + type: object + properties: + id: + description: The control plane group ID. + type: string + format: uuid + example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + readOnly: true + created_at: + description: >- + An ISO-8604 timestamp representation of control plane group status + creation date. + type: string + format: date-time + example: '2022-11-04T20:10:06.927Z' + readOnly: true + updated_at: + description: >- + An ISO-8604 timestamp representation of control plane group status + update date. + type: string + format: date-time + example: '2022-11-04T20:10:06.927Z' + readOnly: true + conflicts: + type: array + items: + $ref: '#/components/schemas/GroupConflict' + maxItems: 256 + state: + description: The state of the control plane group. + type: string + example: CONFLICT + enum: + - OK + - CONFLICT + - UNKNOWN + readOnly: true + title: GroupStatus + GroupConflict: + description: >- + The Group Conflict object contains information about a conflict in a + control plane group. + type: object + properties: + cluster_id: + description: The ID of a control plane member of a control plane group. + type: string + format: uuid + example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + readOnly: true + description: + description: The description of the conflict. + type: string + example: >- + conflicting entity found: ID=38d790ad-8b08-4ff5-a074-2e1e9e64d8bd, + Name=foo + readOnly: true + resource: + $ref: '#/components/schemas/GroupConflictResource' + title: GroupConflict + GroupConflictResource: + description: A resource causing a conflict in a control plane group. + type: object + properties: + id: + description: The ID of the resource. + type: string + format: uuid + example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + readOnly: true + type: + description: The type of the resource. + type: string + example: service + readOnly: true + required: + - id + - type + title: GroupConflictResource + GroupMemberStatus: + description: >- + Object with information determining the group membership status of a + control plane. + type: object + properties: + is_member: + description: >- + Boolean indicating if a control plane is a member of a control plane + group. + type: boolean + example: true + readOnly: true + required: + - is_member + title: GroupMemberStatus + Labels: + description: > + Labels store metadata of an entity that can be used for filtering an + entity list or for searching across entity types. + + + Keys must be of length 1-63 characters, and cannot start with "kong", + "konnect", "mesh", "kic", or "_". + type: object + example: + env: test + additionalProperties: + type: string + pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$ + minLength: 1 + maxLength: 63 + maxProperties: 50 + title: Labels + ProxyURL: + description: >- + Proxy URL associated with reaching the data-planes connected to a + control-plane. + type: object + properties: + host: + description: Hostname of the proxy URL. + type: string + port: + description: Port of the proxy URL. + type: integer + protocol: + description: Protocol of the proxy URL. + type: string + example: + host: example.com + port: 443 + protocol: https + additionalProperties: false + required: + - host + - port + - protocol + title: ProxyURL + ProxyURLs: + description: >- + Array of proxy URLs associated with reaching the data-planes connected + to a control-plane. + type: array + items: + $ref: '#/components/schemas/ProxyURL' + example: + - host: example.com + port: 443 + protocol: https + title: ProxyURLs + SortQuery: + description: > + The `asc` suffix is optional as the default sort order is ascending. + + The `desc` suffix is used to specify a descending order. + + Multiple sort attributes may be provided via a comma separated list. + + JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar + desc'). + type: string + example: name,created_at desc + title: SortQuery + PageMeta: + description: >- + Contains pagination query parameters and the total number of objects + returned. + type: object properties: - created_at: - description: Unix epoch when the resource was created. - readOnly: true + number: + type: number + example: 1 + size: + type: number + example: 10 + total: + type: number + example: 100 + required: + - number + - size + - total + PaginatedMeta: + description: returns the pagination information + type: object + properties: + page: + $ref: '#/components/schemas/PageMeta' + required: + - page + title: PaginatedMeta + BaseError: + description: standard error + type: object + properties: + status: + description: > + The HTTP status code of the error. Useful when passing the response + + body to child properties in a frontend UI. Must be returned as an + integer. type: integer - group: + readOnly: true + title: + description: | + A short, human-readable summary of the problem. It should not + change between occurences of a problem, except for localization. + Should be provided as "Sentence case" for direct use in the UI. type: string - id: readOnly: true + type: + description: The error type. type: string - tags: - items: - type: string - type: array + readOnly: true + instance: + description: | + Used to return the correlation ID back to the user, in the format + kong:trace:. This helps us find the relevant logs + when a customer reports an issue. + type: string + readOnly: true + detail: + description: > + A human readable explanation specific to this occurence of the + problem. + + This field may contain request/entity data to help the user + understand + + what went wrong. Enclose variable values in square brackets. Should + be + + provided as "Sentence case" for direct use in the UI. + type: string + readOnly: true + required: + - status + - title + - instance + - detail + title: Error + InvalidRules: + description: invalid parameters rules + type: string + enum: + - required + - max_length + - is_array + - is_base64 + - is_boolean + - is_date_time + - is_integer + - is_null + - is_number + - is_object + - is_string + - is_uuid + - is_fqdn + - is_arn + - unknown_property + - is_label + - matches_regex + - invalid + - is_supported_network_availability_zone_list + - is_supported_network_cidr_block + - is_supported_provider_region + nullable: true + readOnly: true + InvalidParameterStandard: type: object - AssignedRole: - title: AssignedRole + properties: + field: + type: string + example: name + readOnly: true + rule: + $ref: '#/components/schemas/InvalidRules' + source: + type: string + example: body + reason: + type: string + example: is a required field + readOnly: true + additionalProperties: false + required: + - field + - reason + InvalidParameterMinimumLength: type: object - description: An assigned role is a role that has been assigned to a user or team. - example: - id: 54cc6168-ebb1-4300-8168-d62a0dd08fc8 - role_name: Viewer - entity_id: 18ee2573-dec0-4b83-be99-fa7700bcdc61 - entity_type_name: Control Planes - entity_region: us properties: - id: + field: type: string - format: uuid - example: eaf7adf1-32c8-4bbf-b960-d1f8456afe67 - description: The ID of the role assignment. - role_name: + example: name + readOnly: true + rule: + description: invalid parameters rules type: string - example: Viewer - description: Name of the role being assigned. - entity_id: + enum: + - min_length + - min_digits + - min_lowercase + - min_uppercase + - min_symbols + nullable: false + readOnly: true + minimum: + type: integer + example: 8 + source: type: string - format: uuid - example: 817d0422-45c9-4d88-8d64-45aef05c1ae7 - description: A RBAC entity ID. - entity_type_name: + example: body + reason: + type: string + example: is a required field + readOnly: true + additionalProperties: false + required: + - field + - reason + - rule + - minimum + InvalidParameterChoiceItem: + type: object + properties: + field: + type: string + example: name + readOnly: true + rule: + description: invalid parameters rules + type: string + enum: + - enum + nullable: false + readOnly: true + reason: + type: string + example: is a required field + readOnly: true + choices: + type: array + items: {} + minimum: 1 + nullable: false + readOnly: true + uniqueItems: true + source: + type: string + example: body + additionalProperties: false + required: + - field + - reason + - rule + - choices + InvalidParameterDependentItem: + type: object + properties: + field: type: string - example: Control Planes - description: Name of the entity type the role is being assigned to. - entity_region: + example: name + readOnly: true + rule: + description: invalid parameters rules type: string enum: - - us - - eu - - au - - '*' - example: eu - description: Region of the entity. + - dependent_fields + nullable: true + readOnly: true + reason: + type: string + example: is a required field + readOnly: true + dependents: + type: array + items: {} + nullable: true + readOnly: true + uniqueItems: true + source: + type: string + example: body + additionalProperties: false + required: + - field + - rule + - reason + - dependents + InvalidParameters: + description: invalid parameters + type: array + items: + oneOf: + - $ref: '#/components/schemas/InvalidParameterStandard' + - $ref: '#/components/schemas/InvalidParameterMinimumLength' + - $ref: '#/components/schemas/InvalidParameterChoiceItem' + - $ref: '#/components/schemas/InvalidParameterDependentItem' + minItems: 1 + nullable: false + uniqueItems: true BadRequestError: allOf: - $ref: '#/components/schemas/BaseError' @@ -6521,453 +5697,499 @@ components: properties: invalid_parameters: $ref: '#/components/schemas/InvalidParameters' - BaseError: + UnauthorizedError: + allOf: + - $ref: '#/components/schemas/BaseError' + - type: object + properties: + status: + example: 401 + title: + example: Unauthorized + type: + example: https://httpstatuses.com/401 + instance: + example: kong:trace:1234567890 + detail: + example: Invalid credentials + ForbiddenError: + allOf: + - $ref: '#/components/schemas/BaseError' + - type: object + properties: + status: + example: 403 + title: + example: Forbidden + type: + example: https://httpstatuses.com/403 + instance: + example: kong:trace:1234567890 + detail: + example: Forbidden + ConflictError: + allOf: + - $ref: '#/components/schemas/BaseError' + - type: object + properties: + status: + example: 409 + title: + example: Conflict + type: + example: https://httpstatuses.com/409 + instance: + example: kong:trace:1234567890 + detail: + example: Conflict + NotFoundError: + allOf: + - $ref: '#/components/schemas/BaseError' + - type: object + properties: + status: + example: 404 + title: + example: Not Found + type: + example: https://httpstatuses.com/404 + instance: + example: kong:trace:1234567890 + detail: + example: Not found + CursorMetaWithSizeAndTotal: type: object - title: Error - description: standard error + properties: + next: + description: URI to the next page + type: string + format: path + nullable: true + size: + description: Requested page size + type: number + example: 10 + total: + description: >- + Total number of objects in the collection; will only be present on + the first page + type: number + example: 974 + nullable: true required: - - status - - title - - instance - - detail + - size + - next + - total + CursorPaginatedMetaWithSizeAndTotal: + description: returns the pagination information + type: object properties: - status: - type: integer - description: > - The HTTP status code of the error. Useful when passing the response + page: + $ref: '#/components/schemas/CursorMetaWithSizeAndTotal' + required: + - page + title: CursorPaginatedMetaWithSizeAndTotal + IdP: + description: >- + The IdP object contains the configuration data for the OIDC + authentication integration. - body to child properties in a frontend UI. Must be returned as an - integer. - readOnly: true - title: - type: string - description: | - A short, human-readable summary of the problem. It should not - change between occurences of a problem, except for localization. - Should be provided as "Sentence case" for direct use in the UI. - readOnly: true - type: + + NOTE: The `openid` scope is required. Removing it could break the OIDC + integration. + type: object + properties: + issuer: type: string - description: The error type. - readOnly: true - instance: + format: uri + example: https://myidp.com/oauth2 + login_path: type: string - description: | - Used to return the correlation ID back to the user, in the format - kong:trace:. This helps us find the relevant logs - when a customer reports an issue. - readOnly: true - detail: + example: myapp + client_id: type: string - description: > - A human readable explanation specific to this occurence of the - problem. - - This field may contain request/entity data to help the user - understand - - what went wrong. Enclose variable values in square brackets. Should - be - - provided as "Sentence case" for direct use in the UI. - readOnly: true - BasicAuth: - allOf: - - $ref: '#/components/schemas/BasicAuthWithoutParents' - - properties: - consumer: - additionalProperties: false - properties: - id: - type: string - type: object - x-foreign: true + example: YOUR_CLIENT_ID + scopes: + type: array + items: + type: string + default: + - email + - openid + - profile + claim_mappings: type: object - BasicAuthWithoutParents: + minProperties: 3 + properties: + name: + type: string + example: name + default: name + email: + type: string + example: email + default: email + groups: + type: string + example: custom-groups-claim + default: groups + title: IdP Configuration + User: + description: >- + The user object contains information about an individual user who can + use the Konnect application and API. + type: object properties: - created_at: - description: Unix epoch when the resource was created. - readOnly: true - type: integer id: - readOnly: true - type: string - password: + description: The User ID. type: string - tags: - items: - type: string - type: array - username: + format: uuid + example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + readOnly: true + email: + description: The email registered to the user. type: string - type: object - BooleanFieldFilter: - example: true - title: BooleanFieldFilter - description: Filter by a boolean value (true/false). - type: boolean - CACertificate: - properties: - cert: - description: PEM-encoded public certificate of the CA. + format: email + example: user@email.com + maxLength: 250 + full_name: + description: The User's full name. type: string - cert_digest: - description: >- - SHA256 hex digest of the public certificate. This field is read-only - and it cannot be set by the caller, the value is automatically - computed. + example: Jane Doe + maxLength: 250 + pattern: ^[\w \W]+$ + preferred_name: + description: The User's preferred name. type: string - created_at: - description: Unix epoch when the resource was created. - readOnly: true - type: integer - id: + example: Jane + maxLength: 250 + active: + description: Returns True if a user has verified their email address. + type: boolean + default: true readOnly: true + created_at: + description: The time stamp for the date the account was registered. type: string - tags: - description: >- - An optional set of strings associated with the Certificate for - grouping and filtering. - items: - type: string - type: array - updated_at: - description: Unix epoch when the resource was last updated. + format: date-time + example: '2022-02-07T17:46:57.52Z' readOnly: true - type: integer - type: object - Certificate: - properties: - cert: - description: >- - PEM-encoded public certificate chain of the SSL key pair. This field - is _referenceable_, which means it can be securely stored as a - [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) - in a vault. References must follow a [specific - format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). - type: string - cert_alt: + updated_at: description: >- - PEM-encoded public certificate chain of the alternate SSL key pair. - This should only be set if you have both RSA and ECDSA types of - certificate available and would like Kong to prefer serving using - ECDSA certs when client advertises support for it. This field is - _referenceable_, which means it can be securely stored as a - [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) - in a vault. References must follow a [specific - format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). + A Unix timestamp representation of the most recent change to the + User account. type: string - created_at: - description: Unix epoch when the resource was created. + format: date-time + example: '2022-10-08T17:00:00.52Z' readOnly: true - type: integer + example: + id: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + email: user@email.com + full_name: Test User + preferred_name: test + active: true + created_at: '2022-02-07T17:46:57.52Z' + updated_at: '2022-10-08T17:00:00.52Z' + title: User + Team: + x-speakeasy-entity: Team + description: The team object contains information about a group of users. + type: object + properties: id: - readOnly: true + description: The team ID. type: string - key: - description: >- - PEM-encoded private key of the SSL key pair. This field is - _referenceable_, which means it can be securely stored as a - [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) - in a vault. References must follow a [specific - format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). + format: uuid + example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + readOnly: true + name: + description: The name of the team. type: string - key_alt: - description: >- - PEM-encoded private key of the alternate SSL key pair. This should - only be set if you have both RSA and ECDSA types of certificate - available and would like Kong to prefer serving using ECDSA certs - when client advertises support for it. This field is - _referenceable_, which means it can be securely stored as a - [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) - in a vault. References must follow a [specific - format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). + example: IDM - Developers + maxLength: 250 + pattern: ^[\w \W]+$ + description: + description: The team description in Konnect. type: string - tags: + example: The developers for the IDM API. + maxLength: 250 + system_team: description: >- - An optional set of strings associated with the Certificate for - grouping and filtering. - items: - type: string - type: array - updated_at: - description: Unix epoch when the resource was last updated. + Returns True if a user belongs to a `system_team`. System teams are + teams that can manage Konnect objects, like "Organization Admin", or + "Service" + type: boolean + default: false readOnly: true - type: integer - type: object - ConflictError: - allOf: - - $ref: '#/components/schemas/BaseError' - - type: object - properties: - status: - example: 409 - title: - example: Conflict - type: - example: https://httpstatuses.com/409 - instance: - example: kong:trace:1234567890 - detail: - example: Conflict - Consumer: - properties: + labels: + $ref: '#/components/schemas/Labels' created_at: - description: Unix epoch when the resource was created. + description: A Unix timestamp representation of team creation. + type: string + format: date-time + example: '1992-02-07T17:46:57.52Z' readOnly: true - type: integer - custom_id: - description: >- - Field for storing an existing unique ID for the Consumer - useful - for mapping Kong with users in your existing database. You must send - either this field or `username` with the request. + updated_at: + description: > + A Unix timestamp representation of the most recent change to the + team object in Konnect. type: string - id: + format: date-time + example: '2022-02-07T17:00:00.52Z' readOnly: true + example: + id: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 + name: IDM - Developers + description: The developers for the IDM API. + system_team: false + labels: + env: test + created_at: '1992-02-07T17:46:57.52Z' + updated_at: '2022-08-31T17:00:00.52Z' + title: Team + TeamMapping: + description: A team assignment is a mapping of an IdP group to a Konnect Team. + type: object + properties: + group: + description: The IdP group. type: string - tags: - description: >- - An optional set of strings associated with the Consumer for grouping - and filtering. + example: Service Developers + team_ids: + description: An array of ID's that are mapped to the specified group. + type: array items: type: string + format: uuid + example: 6801e673-cc10-498a-94cd-4271de07a0d3 + uniqueItems: true + example: + group: Service Developers + team_ids: + - 6801e673-cc10-498a-94cd-4271de07a0d3 + title: TeamMapping + TeamGroupMapping: + description: A map of Konnect Team to IdP groups. + type: object + properties: + team_id: + description: The Konnect team ID. + type: string + format: uuid + example: 6801e673-cc10-498a-94cd-4271de07a0d3 + groups: + description: The IdP groups that are mapped to the specified team. type: array - updated_at: - description: Unix epoch when the resource was last updated. - readOnly: true - type: integer - username: - description: >- - The unique username of the Consumer. You must send either this field - or `custom_id` with the request. + items: + type: string + example: API Engineers + uniqueItems: true + example: + team_id: 6801e673-cc10-498a-94cd-4271de07a0d3 + groups: + - Tech Leads + - API Engineers + title: TeamGroupMapping + AssignedRole: + description: An assigned role is a role that has been assigned to a user or team. + type: object + properties: + id: + description: The ID of the role assignment. + type: string + format: uuid + example: eaf7adf1-32c8-4bbf-b960-d1f8456afe67 + role_name: + description: Name of the role being assigned. + type: string + example: Viewer + entity_id: + description: A RBAC entity ID. + type: string + format: uuid + example: 817d0422-45c9-4d88-8d64-45aef05c1ae7 + entity_type_name: + description: Name of the entity type the role is being assigned to. + type: string + example: Control Planes + entity_region: + description: Region of the entity. type: string + example: eu + enum: + - us + - eu + - au + - '*' + example: + id: 54cc6168-ebb1-4300-8168-d62a0dd08fc8 + role_name: Viewer + entity_id: 18ee2573-dec0-4b83-be99-fa7700bcdc61 + entity_type_name: Control Planes + entity_region: us + title: AssignedRole + SystemAccount: + x-speakeasy-entity: SystemAccount + description: Schema of the system account. type: object - ConsumerGroup: properties: - created_at: - description: Unix epoch when the resource was created. - readOnly: true - type: integer id: - readOnly: true + description: ID of the system account. type: string + format: uuid + readOnly: true name: + description: Name of the system account. type: string - tags: - items: - type: string - type: array + description: + description: Description of the system account. + type: string + created_at: + description: Timestamp of when the system account was created. + type: string + format: date-time + readOnly: true updated_at: - description: Unix epoch when the resource was last updated. + description: Timestamp of when the system account was last updated. + type: string + format: date-time readOnly: true - type: integer - type: object - ControlPlane: - x-speakeasy-entity: GatewayControlPlane - allOf: - - $ref: '#/components/schemas/ControlPlaneSummary' - - type: object - properties: - labels: - $ref: '#/components/schemas/Labels' - config: - x-speakeasy-param-suppress-computed-diff: true - type: object - description: CP configuration object for related access endpoints. - properties: - control_plane_endpoint: - type: string - format: url - example: https://acfe5f253f.cp0.konghq.com - description: Control Plane Endpoint. - readOnly: true - telemetry_endpoint: - type: string - format: url - example: https://acfe5f253f.tp0.konghq.com - description: Telemetry Endpoint. - readOnly: true - created_at: - x-speakeasy-terraform-ignore: true - type: string - format: date-time - example: '2022-11-04T20:10:06.927Z' - description: >- - An ISO-8604 timestamp representation of control plane creation - date. - readOnly: true - updated_at: - x-speakeasy-terraform-ignore: true - type: string - format: date-time - example: '2022-11-04T20:10:06.927Z' - description: >- - An ISO-8604 timestamp representation of control plane update - date. - readOnly: true - ControlPlaneSummary: - title: ControlPlaneSummary + konnect_managed: + description: The system account is managed by Konnect (true/false). + type: boolean + example: + id: 497f6eca-6276-4993-bfeb-53cbbbba6f08 + name: Example System Account + description: This is a sample system account description. + created_at: '2022-08-24T14:15:22Z' + updated_at: '2022-10-05T10:33:49Z' + konnect_managed: false + title: System Account + SystemAccountAccessToken: + x-speakeasy-entity: SystemAccountAccessToken + description: Schema of the system account access token. type: object - description: >- - The control plane object contains information about a Kong control - plane. - additionalProperties: false properties: id: - x-speakeasy-param-suppress-computed-diff: true + description: ID of the system account access token. type: string format: uuid - example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - description: The control plane ID. readOnly: true name: + description: Name of the system account access token. type: string - example: Test Control Plane - description: The name of the control plane. - description: - type: string - example: A test control plane for exploration. - description: The description of the control plane in Konnect. - labels: - $ref: '#/components/schemas/Labels' - config: - type: object - description: CP configuration object for related access endpoints. - additionalProperties: false - properties: - control_plane_endpoint: - type: string - format: url - example: https://acfe5f253f.cp0.konghq.com - description: Control Plane Endpoint. - readOnly: true - telemetry_endpoint: - type: string - format: url - example: https://acfe5f253f.tp0.konghq.com - description: Telemetry Endpoint. - readOnly: true - cluster_type: - type: string - description: >- - The ClusterType value of the cluster associated with the Control - Plane. - example: CLUSTER_TYPE_CONTROL_PLANE - enum: - - CLUSTER_TYPE_CONTROL_PLANE - - CLUSTER_TYPE_HYBRID - - CLUSTER_TYPE_K8S_INGRESS_CONTROLLER - - CLUSTER_TYPE_CONTROL_PLANE_GROUP - readOnly: true - auth_type: - type: string - description: >- - The auth type value of the cluster associated with the Runtime - Group. - example: pinned_client_certs - enum: - - pinned_client_certs - - pki_client_certs - readOnly: true - cloud_gateway: - type: boolean - description: Whether the Control Plane can be used for cloud-gateways. - readOnly: true - proxy_urls: - $ref: '#/components/schemas/ProxyURLs' - required: - - control_plane_endpoint - - telemetry_endpoint - - cluster_type - - auth_type - - cloud_gateway created_at: + description: Timestamp of when the system account access token was created. type: string format: date-time + readOnly: true updated_at: + description: Timestamp of when the system account access token was last updated. type: string format: date-time - required: - - id - - name - - config - - created_at - - updated_at - CpRegion: - title: Control plane region + readOnly: true + expires_at: + description: Timestamp of when the system account access token will expire. + type: string + format: date-time + last_used_at: + description: Timestamp of when the system account access token was last used. + type: string + format: date-time + readOnly: true + example: + id: 497f6eca-6276-4993-bfeb-53cbbbba6f08 + name: Sample Access Token + created_at: '2022-08-01T14:16:09Z' + updated_at: '2022-08-02T08:35:49Z' + expires_at: '2022-12-31T12:52:23Z' + last_used_at: '2022-10-24T13:05:42Z' + title: System Account Access Token + BooleanFieldFilter: + description: Filter by a boolean value (true/false). + type: boolean + example: true + title: BooleanFieldFilter + StringFieldEqualsFilter: + description: Filter a string value by exact match. type: string - description: The control plane region. - example: us - enum: - - us - - eu - - au - x-enum-varnames: - - US - - Europe - - Aus - CreateControlPlaneRequest: - x-speakeasy-entity: GatewayControlPlane - title: CreateControlPlaneRequest - description: The request schema for the create control plane request. + title: StringFieldEqualsFilter + StringFieldContainsFilter: + description: Filter a string value field by partial contains. + type: object + properties: + contains: + type: string + required: + - contains + title: StringFieldContainsFilter + StringFieldFilter: + description: Filter a string value field either by exact match or partial contains. + oneOf: + - $ref: '#/components/schemas/StringFieldEqualsFilter' + - $ref: '#/components/schemas/StringFieldContainsFilter' + title: StringFieldFilter + LabelsUpdate: + description: > + Labels store metadata of an entity that can be used for filtering an + entity list or for searching across entity types. + + + Keys must be of length 1-63 characters, and cannot start with "kong", + "konnect", "mesh", "kic", or "_". + type: object + example: + env: test + additionalProperties: + type: string + pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$ + minLength: 1 + maxLength: 63 + nullable: true + maxProperties: 50 + nullable: true + writeOnly: true + ServerlessCloudGateway: + x-speakeasy-entity: ServerlessCloudGateway + description: A serverless cloud gateway type: object - additionalProperties: false properties: - name: - type: string - example: Test Control Plane - description: The name of the control plane. - description: + control_plane: + $ref: '#/components/schemas/ServerlessControlPlane' + gateway_endpoint: + description: Endpoint for the serverless cloud gateway. type: string - example: A test control plane for exploration. - description: The description of the control plane in Konnect. - cluster_type: + format: hostname + example: us-kong-4594857kpl.kongcloud.dev + readOnly: true + created_at: type: string - description: >- - The ClusterType value of the cluster associated with the Control - Plane. - example: CLUSTER_TYPE_CONTROL_PLANE - enum: - - CLUSTER_TYPE_CONTROL_PLANE - - CLUSTER_TYPE_HYBRID - - CLUSTER_TYPE_K8S_INGRESS_CONTROLLER - - CLUSTER_TYPE_CONTROL_PLANE_GROUP - - CLUSTER_TYPE_SERVERLESS - auth_type: + format: date-time + example: '2023-01-11T02:30:42.227Z' + readOnly: true + updated_at: type: string - description: >- - The auth type value of the cluster associated with the Runtime - Group. - example: pinned_client_certs - enum: - - pinned_client_certs - - pki_client_certs - cloud_gateway: - type: boolean - description: Whether this control-plane can be used for cloud-gateways. - example: false - proxy_urls: - $ref: '#/components/schemas/ProxyURLs' + format: date-time + example: '2023-01-11T02:30:42.227Z' + readOnly: true labels: - $ref: '#/components/schemas/Labels' + $ref: '#/components/schemas/SCGWLabels' required: - - name + - control_plane + - gateway_endpoint + - updated_at + - created_at + title: ServerlessCloudGateway CreateServerlessCloudGatewayRequest: x-speakeasy-entity: ServerlessCloudGateway - type: object - title: CreateServerlessCloudGatewayRequest description: Schema to create a serverless cloud gateway. - required: - - control_plane - - cluster_cert - - cluster_cert_key - additionalProperties: false + type: object properties: control_plane: $ref: '#/components/schemas/ServerlessControlPlane' cluster_cert: - type: string description: The cluster certificate (public key). + type: string example: > -----BEGIN CERTIFICATE----- MIICRDCCAa2gAwIBAgIBADANBgkqhkiG9w0BAQ0FADA/MQswCQYDVQQGEwJ1czEL @@ -6984,8 +6206,8 @@ components: HsKA4SNFJZR5fCRpT6USCukyE2Wlr+PWPscrFCWbLXhK4Ql/t0oog1255B10HqKk 1qDkNrzCd/o= -----END CERTIFICATE----- cluster_cert_key: - type: string description: The cluster certificate key (private key). + type: string example: > -----BEGIN PRIVATE KEY----- MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAPBWiWZj7LYQU9V5 @@ -7002,445 +6224,342 @@ components: VlEuZqN/ZXijDFQcES5jwFwjYE8zHy+ioEDaIDXcIJsGhA98Zndx9M+bAkA4IFdx 4YIDhuk1MJAYPqVQs5szEF/0BGymLNVYlIox48bZg+TH3uXwTVRVySxvpRa8dd3O 0gHs3EIV6GFUl7ev -----END PRIVATE KEY----- + x-speakeasy-param-sensitive: true labels: $ref: '#/components/schemas/SCGWLabels' - CursorMetaWithSizeAndTotal: - type: object - required: - - size - - next - - total - properties: - next: - description: URI to the next page - type: string - format: path - nullable: true - size: - description: Requested page size - type: number - example: 10 - total: - description: >- - Total number of objects in the collection; will only be present on - the first page - type: number - example: 974 - nullable: true - CursorPaginatedMetaWithSizeAndTotal: - type: object - title: CursorPaginatedMetaWithSizeAndTotal - description: returns the pagination information - properties: - page: - $ref: '#/components/schemas/CursorMetaWithSizeAndTotal' - required: - - page - DataPlaneClientCertificate: - type: object - properties: - item: - x-speakeasy-entity: GatewayDataPlaneClientCertificate - type: object - properties: - id: - type: string - description: Unique ID of the certificate entity. - created_at: - type: integer - description: Date certificate was created. - updated_at: - type: integer - description: Date certificate was last updated. - cert: - type: string - description: JSON escaped string of the certificate. - ForbiddenError: - allOf: - - $ref: '#/components/schemas/BaseError' - - type: object - properties: - status: - example: 403 - title: - example: Forbidden - type: - example: https://httpstatuses.com/403 - instance: - example: kong:trace:1234567890 - detail: - example: Forbidden - GatewayUnauthorizedError: - properties: - message: - type: string - status: - type: integer + additionalProperties: false required: - - message - - status - type: object - GroupConflict: - title: GroupConflict - type: object + - control_plane + - cluster_cert + - cluster_cert_key + title: CreateServerlessCloudGatewayRequest + SCGWLabels: description: >- - The Group Conflict object contains information about a conflict in a - control plane group. - properties: - cluster_id: - type: string - format: uuid - example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - description: The ID of a control plane member of a control plane group. - readOnly: true - description: - type: string - example: >- - conflicting entity found: ID=38d790ad-8b08-4ff5-a074-2e1e9e64d8bd, - Name=foo - description: The description of the conflict. - readOnly: true - resource: - $ref: '#/components/schemas/GroupConflictResource' - GroupConflictResource: - title: GroupConflictResource + Labels to facilitate tagged search on serverless cloud gateways. Keys + must be of length 1-63 characters, and cannot start with 'kong', + 'konnect', 'mesh', 'kic', or '_'. + type: object + example: + env: test + additionalProperties: + type: string + pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z\-\.\_]*[a-z0-9A-Z]+)?$ + minLength: 1 + maxLength: 63 + title: Labels + CpRegion: + description: The control plane region. + type: string + example: us + enum: + - us + - eu + - au + title: Control plane region + x-enum-varnames: + - US + - Europe + - Aus + ServerlessControlPlane: type: object - description: A resource causing a conflict in a control plane group. properties: id: + description: ID of the serverless cloud gateway CP. type: string format: uuid - example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - description: The ID of the resource. - readOnly: true - type: + example: d32d905a-ed33-46a3-a093-d8f536af9a8a + prefix: + description: The prefix of the serverless cloud gateway CP. type: string - example: service - description: The type of the resource. - readOnly: true + example: 518da50bf7 + region: + $ref: '#/components/schemas/CpRegion' required: - id - - type - GroupMembership: - x-speakeasy-entity: GatewayControlPlaneMembership - type: object - properties: - members: - type: array - items: - type: object - properties: - id: - type: string - GroupMemberStatus: - title: GroupMemberStatus + - prefix + - region + title: Control plane + x-go-name: ControlPlane + DataPlaneClientCertificate: type: object - description: >- - Object with information determining the group membership status of a - control plane. properties: - is_member: - type: boolean - example: true - description: >- - Boolean indicating if a control plane is a member of a control plane - group. - readOnly: true - required: - - is_member - GroupStatus: - title: GroupStatus + item: + x-speakeasy-entity: GatewayDataPlaneClientCertificate + type: object + properties: + id: + description: Unique ID of the certificate entity. + type: string + created_at: + description: Date certificate was created. + type: integer + updated_at: + description: Date certificate was last updated. + type: integer + cert: + description: JSON escaped string of the certificate. + type: string + ACL: + allOf: + - $ref: '#/components/schemas/ACLWithoutParents' + - properties: + consumer: + type: object + additionalProperties: false + properties: + id: + type: string + x-foreign: true + type: object + ACLWithoutParents: type: object - description: >- - The Group Status object contains information about the status of a - control plane group. properties: - id: - type: string - format: uuid - example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - description: The control plane group ID. - readOnly: true created_at: - type: string - format: date-time - example: '2022-11-04T20:10:06.927Z' - description: >- - An ISO-8604 timestamp representation of control plane group status - creation date. + description: Unix epoch when the resource was created. + type: integer readOnly: true - updated_at: + group: + type: string + id: type: string - format: date-time - example: '2022-11-04T20:10:06.927Z' - description: >- - An ISO-8604 timestamp representation of control plane group status - update date. readOnly: true - conflicts: + tags: type: array - maxItems: 256 items: - $ref: '#/components/schemas/GroupConflict' - state: - type: string - description: The state of the control plane group. - example: CONFLICT - readOnly: true - enum: - - OK - - CONFLICT - - UNKNOWN - HMACAuth: + type: string + BasicAuth: allOf: - - $ref: '#/components/schemas/HMACAuthWithoutParents' + - $ref: '#/components/schemas/BasicAuthWithoutParents' - properties: consumer: + type: object additionalProperties: false properties: id: type: string - type: object x-foreign: true type: object - HMACAuthWithoutParents: + BasicAuthWithoutParents: + type: object properties: created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer - id: readOnly: true + id: type: string - secret: + readOnly: true + password: type: string tags: + type: array items: type: string - type: array username: type: string + CACertificate: type: object - IdP: - title: IdP Configuration - type: object - description: >- - The IdP object contains the configuration data for the OIDC - authentication integration. - - - NOTE: The `openid` scope is required. Removing it could break the OIDC - integration. properties: - issuer: + cert: + description: PEM-encoded public certificate of the CA. type: string - format: uri - example: https://myidp.com/oauth2 - login_path: + cert_digest: + description: >- + SHA256 hex digest of the public certificate. This field is read-only + and it cannot be set by the caller, the value is automatically + computed. type: string - example: myapp - client_id: + created_at: + description: Unix epoch when the resource was created. + type: integer + readOnly: true + id: type: string - example: YOUR_CLIENT_ID - scopes: + readOnly: true + tags: + description: >- + An optional set of strings associated with the Certificate for + grouping and filtering. type: array - default: - - email - - openid - - profile items: type: string - claim_mappings: - type: object - minProperties: 3 - properties: - name: - type: string - example: name - default: name - email: - type: string - example: email - default: email - groups: - type: string - default: groups - example: custom-groups-claim - InvalidParameterChoiceItem: + updated_at: + description: Unix epoch when the resource was last updated. + type: integer + readOnly: true + Certificate: type: object - additionalProperties: false properties: - field: + cert: + description: >- + PEM-encoded public certificate chain of the SSL key pair. This field + is _referenceable_, which means it can be securely stored as a + [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) + in a vault. References must follow a [specific + format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). type: string - example: name + cert_alt: + description: >- + PEM-encoded public certificate chain of the alternate SSL key pair. + This should only be set if you have both RSA and ECDSA types of + certificate available and would like Kong to prefer serving using + ECDSA certs when client advertises support for it. This field is + _referenceable_, which means it can be securely stored as a + [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) + in a vault. References must follow a [specific + format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). + type: string + created_at: + description: Unix epoch when the resource was created. + type: integer readOnly: true - rule: - description: invalid parameters rules + id: type: string readOnly: true - nullable: false - enum: - - enum - reason: + key: + description: >- + PEM-encoded private key of the SSL key pair. This field is + _referenceable_, which means it can be securely stored as a + [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) + in a vault. References must follow a [specific + format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). type: string - example: is a required field + key_alt: + description: >- + PEM-encoded private key of the alternate SSL key pair. This should + only be set if you have both RSA and ECDSA types of certificate + available and would like Kong to prefer serving using ECDSA certs + when client advertises support for it. This field is + _referenceable_, which means it can be securely stored as a + [secret](/gateway/latest/plan-and-deploy/security/secrets-management/getting-started) + in a vault. References must follow a [specific + format](/gateway/latest/plan-and-deploy/security/secrets-management/reference-format). + type: string + tags: + description: >- + An optional set of strings associated with the Certificate for + grouping and filtering. + type: array + items: + type: string + updated_at: + description: Unix epoch when the resource was last updated. + type: integer readOnly: true - choices: + Consumer: + type: object + properties: + created_at: + description: Unix epoch when the resource was created. + type: integer + readOnly: true + custom_id: + description: >- + Field for storing an existing unique ID for the Consumer - useful + for mapping Kong with users in your existing database. You must send + either this field or `username` with the request. + type: string + id: + type: string + readOnly: true + tags: + description: >- + An optional set of strings associated with the Consumer for grouping + and filtering. type: array - uniqueItems: true + items: + type: string + updated_at: + description: Unix epoch when the resource was last updated. + type: integer readOnly: true - nullable: false - minimum: 1 - items: {} - source: + username: + description: >- + The unique username of the Consumer. You must send either this field + or `custom_id` with the request. type: string - example: body - required: - - field - - reason - - rule - - choices - InvalidParameterDependentItem: + ConsumerGroup: type: object - additionalProperties: false properties: - field: - type: string - example: name + created_at: + description: Unix epoch when the resource was created. + type: integer readOnly: true - rule: - description: invalid parameters rules + id: type: string readOnly: true - nullable: true - enum: - - dependent_fields - reason: + name: type: string - example: is a required field - readOnly: true - dependents: + tags: type: array - uniqueItems: true - nullable: true - items: {} + items: + type: string + updated_at: + description: Unix epoch when the resource was last updated. + type: integer readOnly: true - source: - type: string - example: body - required: - - field - - rule - - reason - - dependents - InvalidParameterMinimumLength: + ConsumerGroupInsideWrapper: type: object - additionalProperties: false properties: - field: - type: string - example: name - readOnly: true - rule: - description: invalid parameters rules + consumer_group: + $ref: '#/components/schemas/ConsumerGroup' + GatewayUnauthorizedError: + type: object + properties: + message: type: string - readOnly: true - nullable: false - enum: - - min_length - - min_digits - - min_lowercase - - min_uppercase - - min_symbols - minimum: + status: type: integer - example: 8 - source: - type: string - example: body - reason: - type: string - example: is a required field - readOnly: true required: - - field - - reason - - rule - - minimum - InvalidParameters: - type: array - nullable: false - uniqueItems: true - minItems: 1 - description: invalid parameters - items: - oneOf: - - $ref: '#/components/schemas/InvalidParameterStandard' - - $ref: '#/components/schemas/InvalidParameterMinimumLength' - - $ref: '#/components/schemas/InvalidParameterChoiceItem' - - $ref: '#/components/schemas/InvalidParameterDependentItem' - InvalidParameterStandard: + - message + - status + HMACAuth: + allOf: + - $ref: '#/components/schemas/HMACAuthWithoutParents' + - properties: + consumer: + type: object + additionalProperties: false + properties: + id: + type: string + x-foreign: true + type: object + HMACAuthWithoutParents: type: object - additionalProperties: false properties: - field: + created_at: + description: Unix epoch when the resource was created. + type: integer + readOnly: true + id: type: string - example: name readOnly: true - rule: - $ref: '#/components/schemas/InvalidRules' - source: + secret: type: string - example: body - reason: + tags: + type: array + items: + type: string + username: type: string - example: is a required field - readOnly: true - required: - - field - - reason - InvalidRules: - description: invalid parameters rules - type: string - readOnly: true - nullable: true - enum: - - required - - max_length - - is_array - - is_base64 - - is_boolean - - is_date_time - - is_integer - - is_null - - is_number - - is_object - - is_string - - is_uuid - - is_fqdn - - is_arn - - unknown_property - - is_label - - matches_regex - - invalid - - is_supported_network_availability_zone_list - - is_supported_network_cidr_block - - is_supported_provider_region JWT: allOf: - $ref: '#/components/schemas/JWTWithoutParents' - properties: consumer: + type: object additionalProperties: false properties: id: type: string - type: object x-foreign: true type: object JWTWithoutParents: + type: object properties: algorithm: + type: string default: HS256 enum: - HS256 @@ -7456,14 +6575,13 @@ components: - PS384 - PS512 - EdDSA - type: string created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer - id: readOnly: true + id: type: string + readOnly: true key: type: string rsa_public_key: @@ -7471,19 +6589,19 @@ components: secret: type: string tags: + type: array items: type: string - type: array - type: object Key: + type: object properties: created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer - id: readOnly: true + id: type: string + readOnly: true jwk: description: A JSON Web Key represented as a string. type: string @@ -7495,161 +6613,82 @@ components: type: string pem: description: A keypair in PEM format. + type: object properties: private_key: type: string public_key: type: string - type: object set: - additionalProperties: false description: The id (an UUID) of the key-set with which to associate the key. + type: object + additionalProperties: false properties: id: type: string - type: object x-foreign: true tags: description: >- An optional set of strings associated with the Key for grouping and filtering. - items: - type: string - type: array - updated_at: - description: Unix epoch when the resource was last updated. - readOnly: true - type: integer - type: object - KeyAuth: - allOf: - - $ref: '#/components/schemas/KeyAuthWithoutParents' - - properties: - consumer: - additionalProperties: false - properties: - id: - type: string - type: object - x-foreign: true - type: object - KeyAuthWithoutParents: - properties: - created_at: - description: Unix epoch when the resource was created. - readOnly: true - type: integer - id: - readOnly: true - type: string - key: - type: string - tags: - items: - type: string type: array - type: object - KeySet: - properties: - created_at: - description: Unix epoch when the resource was created. - readOnly: true - type: integer - id: - readOnly: true - type: string - name: - type: string - tags: items: type: string - type: array updated_at: description: Unix epoch when the resource was last updated. - readOnly: true type: integer - type: object - Labels: - title: Labels - type: object - example: - env: test - description: > - Labels store metadata of an entity that can be used for filtering an - entity list or for searching across entity types. - - - Keys must be of length 1-63 characters, and cannot start with "kong", - "konnect", "mesh", "kic", or "_". - additionalProperties: - type: string - pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$ - minLength: 1 - maxLength: 63 - maxProperties: 50 - LabelsUpdate: - type: object - nullable: true - description: > - Labels store metadata of an entity that can be used for filtering an - entity list or for searching across entity types. - - - Keys must be of length 1-63 characters, and cannot start with "kong", - "konnect", "mesh", "kic", or "_". - example: - env: test - maxProperties: 50 - additionalProperties: - type: string - pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$ - minLength: 1 - maxLength: 63 - nullable: true - writeOnly: true - NotFoundError: + readOnly: true + KeyAuth: allOf: - - $ref: '#/components/schemas/BaseError' - - type: object - properties: - status: - example: 404 - title: - example: Not Found - type: - example: https://httpstatuses.com/404 - instance: - example: kong:trace:1234567890 - detail: - example: Not found - PageMeta: + - $ref: '#/components/schemas/KeyAuthWithoutParents' + - properties: + consumer: + type: object + additionalProperties: false + properties: + id: + type: string + x-foreign: true + type: object + KeyAuthWithoutParents: type: object - description: >- - Contains pagination query parameters and the total number of objects - returned. - required: - - number - - size - - total properties: - number: - type: number - example: 1 - size: - type: number - example: 10 - total: - type: number - example: 100 - PaginatedMeta: + created_at: + description: Unix epoch when the resource was created. + type: integer + readOnly: true + id: + type: string + readOnly: true + key: + type: string + tags: + type: array + items: + type: string + KeySet: type: object - title: PaginatedMeta - description: returns the pagination information properties: - page: - $ref: '#/components/schemas/PageMeta' - required: - - page + created_at: + description: Unix epoch when the resource was created. + type: integer + readOnly: true + id: + type: string + readOnly: true + name: + type: string + tags: + type: array + items: + type: string + updated_at: + description: Unix epoch when the resource was last updated. + type: integer + readOnly: true + PaginationNextResponse: + description: URI to the next page (may be null) + type: string PaginationOffsetResponse: description: >- Offset is used to paginate through the API. Provide this value to the @@ -7660,68 +6699,69 @@ components: - $ref: '#/components/schemas/PluginWithoutParents' - properties: consumer: - additionalProperties: false description: >- If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer. + type: object + additionalProperties: false properties: id: type: string - type: object x-foreign: true consumer_group: + type: object additionalProperties: false properties: id: type: string - type: object x-foreign: true route: - additionalProperties: false description: >- If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the Route being used. + type: object + additionalProperties: false properties: id: type: string - type: object x-foreign: true service: - additionalProperties: false description: >- If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched. + type: object + additionalProperties: false properties: id: type: string - type: object x-foreign: true type: object PluginWithoutParents: + type: object properties: config: - additionalProperties: true description: >- The configuration properties for the Plugin which can be found on the plugins documentation page in the [Kong Hub](https://docs.konghq.com/hub/). type: object + additionalProperties: true created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer + readOnly: true enabled: - default: true description: Whether the plugin is applied. type: boolean + default: true id: - readOnly: true type: string + readOnly: true instance_name: type: string name: @@ -7730,19 +6770,15 @@ components: Plugin must be installed in every Kong instance separately. type: string ordering: - additionalProperties: true type: object + additionalProperties: true protocols: - default: - - grpc - - grpcs - - http - - https description: >- A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support `"tcp"` and `"tls"`. + type: array items: enum: - grpc @@ -7756,82 +6792,50 @@ components: - ws - wss type: string - type: array + default: + - grpc + - grpcs + - http + - https tags: description: >- An optional set of strings associated with the Plugin for grouping and filtering. + type: array items: type: string - type: array updated_at: description: Unix epoch when the resource was last updated. - readOnly: true - type: integer - type: object - ProxyURL: - title: ProxyURL - description: >- - Proxy URL associated with reaching the data-planes connected to a - control-plane. - type: object - additionalProperties: false - properties: - host: - type: string - description: Hostname of the proxy URL. - port: type: integer - description: Port of the proxy URL. - protocol: - type: string - description: Protocol of the proxy URL. - required: - - host - - port - - protocol - example: - host: example.com - port: 443 - protocol: https - ProxyURLs: - title: ProxyURLs - description: >- - Array of proxy URLs associated with reaching the data-planes connected - to a control-plane. - type: array - items: - $ref: '#/components/schemas/ProxyURL' - example: - - host: example.com - port: 443 - protocol: https + readOnly: true Route: allOf: - $ref: '#/components/schemas/RouteWithoutParents' - properties: service: - additionalProperties: false description: >- The Service this Route is associated to. This is where the Route proxies traffic to. + type: object + additionalProperties: false properties: id: type: string - type: object type: object RouteWithoutParents: description: The request schema for the create route's request. + type: object properties: created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer + readOnly: true destinations: description: >- A list of IP destinations of incoming connections that match this Route when using stream routing. Each entry is an object with fields "ip" (optionally in CIDR range notation) and/or "port". + type: array items: properties: ip: @@ -7839,10 +6843,7 @@ components: port: type: integer type: object - type: array headers: - additionalProperties: - type: string description: >- One or more lists of values indexed by header name that will cause this Route to match if present in the request. The `Host` header @@ -7851,36 +6852,38 @@ components: that value starts with the special prefix `~*`, the value is interpreted as a regular expression. type: object + additionalProperties: + type: string hosts: description: >- A list of domain names that match this Route. Note that the hosts value is case sensitive. + type: array items: type: string - type: array https_redirect_status_code: - default: 426 description: >- The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is `HTTP` instead of `HTTPS`. `Location` header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the `https` protocol. + type: integer + default: 426 enum: - 426 - 301 - 302 - 307 - 308 - type: integer id: - readOnly: true type: string + readOnly: true methods: description: A list of HTTP methods that match this Route. + type: array items: type: string - type: array name: description: >- The name of the Route. Route names must be unique, and they are case @@ -7888,38 +6891,36 @@ components: "test" and "Test". type: string path_handling: - default: v0 description: >- Controls how the Service path, Route path and requested path are combined when sending a request to the upstream. See above for a detailed description of each behavior. + type: string + default: v0 enum: - v0 - v1 - type: string paths: description: A list of paths that match this Route. + type: array items: type: string - type: array preserve_host: - default: false description: >- When matching a Route via one of the `hosts` domain names, use the request `Host` header in the upstream request headers. If set to `false`, the upstream `Host` header will be that of the Service's `host`. type: boolean + default: false protocols: - default: - - http - - https description: >- An array of the protocols this Route should allow. See the [Route Object](#route-object) section for a list of accepted protocols. When set to only `"https"`, HTTP requests are answered with an upgrade error. When set to only `"http"`, HTTPS requests are answered with an error. + type: array items: enum: - grpc @@ -7933,9 +6934,10 @@ components: - ws - wss type: string - type: array + default: + - http + - https regex_priority: - default: 0 description: >- A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two @@ -7944,30 +6946,32 @@ components: non-regex routes is different (longer non-regex routes are matched before shorter ones). type: integer + default: 0 request_buffering: - default: true description: >- Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding. type: boolean - response_buffering: default: true + response_buffering: description: >- Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding. type: boolean + default: true snis: description: A list of SNIs that match this Route when using stream routing. + type: array items: type: string - type: array sources: description: >- A list of IP sources of incoming connections that match this Route when using stream routing. Each entry is an object with fields "ip" (optionally in CIDR range notation) and/or "port". + type: array items: properties: ip: @@ -7975,92 +6979,66 @@ components: port: type: integer type: object - type: array strip_path: - default: true description: >- When matching a Route via one of the `paths`, strip the matching prefix from the upstream request URL. type: boolean + default: true tags: description: >- An optional set of strings associated with the Route for grouping and filtering. - items: - type: string type: array + items: + type: string updated_at: - description: Unix epoch when the resource was last updated. - readOnly: true - type: integer - type: object - SCGWLabels: - title: Labels - type: object - example: - env: test - description: >- - Labels to facilitate tagged search on serverless cloud gateways. Keys - must be of length 1-63 characters, and cannot start with 'kong', - 'konnect', 'mesh', 'kic', or '_'. - additionalProperties: - type: string - pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z\-\.\_]*[a-z0-9A-Z]+)?$ - minLength: 1 - maxLength: 63 - ServerlessCloudGateway: - x-speakeasy-entity: ServerlessCloudGateway - type: object - title: ServerlessCloudGateway - description: A serverless cloud gateway - required: - - control_plane - - gateway_endpoint - - updated_at - - created_at - properties: - control_plane: - $ref: '#/components/schemas/ServerlessControlPlane' - gateway_endpoint: - type: string - format: hostname - description: Endpoint for the serverless cloud gateway. - example: us-kong-4594857kpl.kongcloud.dev - readOnly: true - created_at: - type: string - format: date-time - example: '2023-01-11T02:30:42.227Z' - readOnly: true - updated_at: - type: string - format: date-time - example: '2023-01-11T02:30:42.227Z' + description: Unix epoch when the resource was last updated. + type: integer readOnly: true - labels: - $ref: '#/components/schemas/SCGWLabels' - ServerlessControlPlane: + SNI: + allOf: + - $ref: '#/components/schemas/SNIWithoutParents' + - properties: + certificate: + description: >- + The id (a UUID) of the certificate with which to associate the + SNI hostname. The Certificate must have a valid private key + associated with it to be used by the SNI object. + type: object + additionalProperties: false + properties: + id: + type: string + x-foreign: true + type: object + SNIWithoutParents: type: object - title: Control plane - x-go-name: ControlPlane - required: - - id - - prefix - - region properties: + created_at: + description: Unix epoch when the resource was created. + type: integer + readOnly: true id: type: string - format: uuid - description: ID of the serverless cloud gateway CP. - example: d32d905a-ed33-46a3-a093-d8f536af9a8a - prefix: + readOnly: true + name: + description: The SNI name to associate with the given certificate. type: string - description: The prefix of the serverless cloud gateway CP. - example: 518da50bf7 - region: - $ref: '#/components/schemas/CpRegion' + tags: + description: >- + An optional set of strings associated with the SNIs for grouping and + filtering. + type: array + items: + type: string + updated_at: + description: Unix epoch when the resource was last updated. + type: integer + readOnly: true Service: description: The request schema for the create control plane's request. + type: object properties: ca_certificates: description: >- @@ -8070,43 +7048,43 @@ components: Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted). + type: array items: type: string - type: array client_certificate: - additionalProperties: false description: >- Certificate to be used as client certificate while TLS handshaking to the upstream server. + type: object + additionalProperties: false properties: id: type: string - type: object connect_timeout: - default: 60000 description: >- The timeout in milliseconds for establishing a connection to the upstream server. type: integer + default: 60000 created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer + readOnly: true enabled: - default: true description: >- Whether the Service is active. If set to `false`, the proxy behavior will be as if any routes attached to it do not exist (404). Default: `true`. type: boolean + default: true host: description: >- The host of the upstream server. Note that the host value is case sensitive. type: string id: - readOnly: true type: string + readOnly: true name: description: The Service name. type: string @@ -8114,12 +7092,13 @@ components: description: The path to be used in requests to the upstream server. type: string port: - default: 80 description: The upstream server port. type: integer + default: 80 protocol: - default: http description: The protocol used to communicate with the upstream. + type: string + default: http enum: - grpc - grpcs @@ -8131,230 +7110,80 @@ components: - udp - ws - wss - type: string read_timeout: - default: 60000 description: >- The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server. - type: integer - retries: - default: 5 - description: The number of retries to execute upon failure to proxy. - type: integer - tags: - description: >- - An optional set of strings associated with the Service for grouping - and filtering. - items: - type: string - type: array - tls_verify: - description: >- - Whether to enable verification of upstream server TLS certificate. - If set to `null`, then the Nginx default is respected. - type: boolean - tls_verify_depth: - description: >- - Maximum depth of chain while verifying Upstream server's TLS - certificate. If set to `null`, then the Nginx default is respected. - type: integer - updated_at: - description: Unix epoch when the resource was last updated. - readOnly: true - type: integer - url: - description: >- - Helper field to set `protocol`, `host`, `port` and `path` using a - URL. This field is write-only and is not returned in responses. - type: string - writeOnly: true - write_timeout: - default: 60000 - description: >- - The timeout in milliseconds between two successive write operations - for transmitting a request to the upstream server. - type: integer - type: object - required: - - host - SNI: - allOf: - - $ref: '#/components/schemas/SNIWithoutParents' - - properties: - certificate: - additionalProperties: false - description: >- - The id (a UUID) of the certificate with which to associate the - SNI hostname. The Certificate must have a valid private key - associated with it to be used by the SNI object. - properties: - id: - type: string - type: object - x-foreign: true - type: object - SNIWithoutParents: - properties: - created_at: - description: Unix epoch when the resource was created. - readOnly: true - type: integer - id: - readOnly: true - type: string - name: - description: The SNI name to associate with the given certificate. - type: string - tags: - description: >- - An optional set of strings associated with the SNIs for grouping and - filtering. - items: - type: string - type: array - updated_at: - description: Unix epoch when the resource was last updated. - readOnly: true - type: integer - type: object - SortQuery: - title: SortQuery - type: string - example: name,created_at desc - description: > - The `asc` suffix is optional as the default sort order is ascending. - - The `desc` suffix is used to specify a descending order. - - Multiple sort attributes may be provided via a comma separated list. - - JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar - desc'). - StringFieldContainsFilter: - type: object - title: StringFieldContainsFilter - description: Filter a string value field by partial contains. - properties: - contains: - type: string - required: - - contains - StringFieldEqualsFilter: - title: StringFieldEqualsFilter - description: Filter a string value by exact match. - type: string - StringFieldFilter: - title: StringFieldFilter - description: Filter a string value field either by exact match or partial contains. - oneOf: - - $ref: '#/components/schemas/StringFieldEqualsFilter' - - $ref: '#/components/schemas/StringFieldContainsFilter' - SystemAccount: - x-speakeasy-entity: SystemAccount - title: System Account - type: object - example: - id: 497f6eca-6276-4993-bfeb-53cbbbba6f08 - name: Example System Account - description: This is a sample system account description. - created_at: '2022-08-24T14:15:22Z' - updated_at: '2022-10-05T10:33:49Z' - konnect_managed: false - description: Schema of the system account. - properties: - id: - type: string - format: uuid - description: ID of the system account. - readOnly: true - name: - type: string - description: Name of the system account. - description: - type: string - description: Description of the system account. - created_at: - type: string - format: date-time - description: Timestamp of when the system account was created. - readOnly: true - updated_at: - type: string - format: date-time - description: Timestamp of when the system account was last updated. - readOnly: true - konnect_managed: - type: boolean - description: The system account is managed by Konnect (true/false). - SystemAccountAccessToken: - x-speakeasy-entity: SystemAccountAccessToken - title: System Account Access Token - example: - id: 497f6eca-6276-4993-bfeb-53cbbbba6f08 - name: Sample Access Token - created_at: '2022-08-01T14:16:09Z' - updated_at: '2022-08-02T08:35:49Z' - expires_at: '2022-12-31T12:52:23Z' - last_used_at: '2022-10-24T13:05:42Z' - description: Schema of the system account access token. - type: object - properties: - id: - type: string - format: uuid - description: ID of the system account access token. - readOnly: true - name: - type: string - description: Name of the system account access token. - created_at: - type: string - format: date-time - description: Timestamp of when the system account access token was created. - readOnly: true + type: integer + default: 60000 + retries: + description: The number of retries to execute upon failure to proxy. + type: integer + default: 5 + tags: + description: >- + An optional set of strings associated with the Service for grouping + and filtering. + type: array + items: + type: string + tls_verify: + description: >- + Whether to enable verification of upstream server TLS certificate. + If set to `null`, then the Nginx default is respected. + type: boolean + tls_verify_depth: + description: >- + Maximum depth of chain while verifying Upstream server's TLS + certificate. If set to `null`, then the Nginx default is respected. + type: integer updated_at: - type: string - format: date-time - description: Timestamp of when the system account access token was last updated. + description: Unix epoch when the resource was last updated. + type: integer readOnly: true - expires_at: - type: string - format: date-time - description: Timestamp of when the system account access token will expire. - last_used_at: + url: + description: >- + Helper field to set `protocol`, `host`, `port` and `path` using a + URL. This field is write-only and is not returned in responses. type: string - format: date-time - description: Timestamp of when the system account access token was last used. - readOnly: true + writeOnly: true + write_timeout: + description: >- + The timeout in milliseconds between two successive write operations + for transmitting a request to the upstream server. + type: integer + default: 60000 + required: + - host Target: allOf: - $ref: '#/components/schemas/TargetWithoutParents' - properties: upstream: + type: object additionalProperties: false properties: id: type: string - type: object x-foreign: true type: object TargetWithoutParents: + type: object properties: created_at: description: Unix epoch when the resource was created. - readOnly: true type: number - id: readOnly: true + id: type: string + readOnly: true tags: description: >- An optional set of strings associated with the Target for grouping and filtering. + type: array items: type: string - type: array target: description: >- The target address (ip or hostname) and port. If the hostname @@ -8363,187 +7192,47 @@ components: type: string updated_at: description: Unix epoch when the resource was last updated. - readOnly: true type: number + readOnly: true weight: - default: 100 description: >- The weight this target gets within the upstream loadbalancer (`0`-`65535`). If the hostname resolves to an SRV record, the `weight` value will be overridden by the value from the DNS record. type: integer - type: object - Team: - x-speakeasy-entity: Team - title: Team - type: object - description: The team object contains information about a group of users. - example: - id: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - name: IDM - Developers - description: The developers for the IDM API. - system_team: false - labels: - env: test - created_at: '1992-02-07T17:46:57.52Z' - updated_at: '2022-08-31T17:00:00.52Z' - properties: - id: - type: string - format: uuid - example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - description: The team ID. - readOnly: true - name: - type: string - pattern: ^[\w \W]+$ - example: IDM - Developers - maxLength: 250 - description: The name of the team. - description: - type: string - example: The developers for the IDM API. - maxLength: 250 - description: The team description in Konnect. - system_team: - type: boolean - default: false - description: >- - Returns True if a user belongs to a `system_team`. System teams are - teams that can manage Konnect objects, like "Organization Admin", or - "Service" - readOnly: true - labels: - $ref: '#/components/schemas/Labels' - created_at: - type: string - format: date-time - example: '1992-02-07T17:46:57.52Z' - description: A Unix timestamp representation of team creation. - readOnly: true - updated_at: - type: string - format: date-time - example: '2022-02-07T17:00:00.52Z' - description: > - A Unix timestamp representation of the most recent change to the - team object in Konnect. - readOnly: true - TeamGroupMapping: - title: TeamGroupMapping - type: object - description: A map of Konnect Team to IdP groups. - example: - team_id: 6801e673-cc10-498a-94cd-4271de07a0d3 - groups: - - Tech Leads - - API Engineers - properties: - team_id: - type: string - format: uuid - example: 6801e673-cc10-498a-94cd-4271de07a0d3 - description: The Konnect team ID. - groups: - type: array - uniqueItems: true - description: The IdP groups that are mapped to the specified team. - items: - type: string - example: API Engineers - TeamMapping: - title: TeamMapping - type: object - description: A team assignment is a mapping of an IdP group to a Konnect Team. - example: - group: Service Developers - team_ids: - - 6801e673-cc10-498a-94cd-4271de07a0d3 - properties: - group: - type: string - example: Service Developers - description: The IdP group. - team_ids: - type: array - uniqueItems: true - description: An array of ID's that are mapped to the specified group. - items: - type: string - format: uuid - example: 6801e673-cc10-498a-94cd-4271de07a0d3 - UnauthorizedError: - allOf: - - $ref: '#/components/schemas/BaseError' - - type: object - properties: - status: - example: 401 - title: - example: Unauthorized - type: - example: https://httpstatuses.com/401 - instance: - example: kong:trace:1234567890 - detail: - example: Invalid credentials - UpdateControlPlaneRequest: - title: UpdateControlPlaneRequest - description: The request schema for the update control plane request. - type: object - additionalProperties: false - properties: - name: - type: string - example: Test Control Plane - description: The name of the control plane. - description: - type: string - example: A test control plane for exploration. - description: The description of the control plane in Konnect. - auth_type: - type: string - description: >- - The auth type value of the cluster associated with the Runtime - Group. - example: pinned_client_certs - enum: - - pinned_client_certs - - pki_client_certs - proxy_urls: - $ref: '#/components/schemas/ProxyURLs' - labels: - $ref: '#/components/schemas/Labels' + default: 100 Upstream: + type: object properties: algorithm: - default: round-robin description: Which load balancing algorithm to use. + type: string + default: round-robin enum: - consistent-hashing - least-connections - round-robin - latency - type: string client_certificate: - additionalProperties: false description: >- If set, the certificate to be used as client certificate while TLS handshaking to the upstream server. + type: object + additionalProperties: false properties: id: type: string - type: object created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer + readOnly: true hash_fallback: - default: none description: >- What to use as hashing input if the primary `hash_on` does not return a hash (eg. header is missing, or no Consumer identified). Not available if `hash_on` is set to `cookie`. + type: string + default: none enum: - none - consumer @@ -8553,7 +7242,6 @@ components: - path - query_arg - uri_capture - type: string hash_fallback_header: description: >- The header name to take the value from as hash input. Only required @@ -8570,10 +7258,11 @@ components: input. Only required when `hash_fallback` is set to `uri_capture`. type: string hash_on: - default: none description: >- What to use as hashing input. Using `none` results in a weighted-round-robin scheme with no hashing. + type: string + default: none enum: - none - consumer @@ -8583,7 +7272,6 @@ components: - path - query_arg - uri_capture - type: string hash_on_cookie: description: >- The cookie name to take the value from as hash input. Only required @@ -8592,11 +7280,11 @@ components: and set the cookie in the response. type: string hash_on_cookie_path: - default: / description: >- The cookie path to set in the response headers. Only required when `hash_on` or `hash_fallback` is set to `cookie`. type: string + default: / hash_on_header: description: >- The header name to take the value from as hash input. Only required @@ -8613,44 +7301,46 @@ components: input. Only required when `hash_on` is set to `uri_capture`. type: string healthchecks: + type: object properties: active: + type: object properties: concurrency: - default: 10 type: integer + default: 10 headers: - additionalProperties: - type: string type: object + additionalProperties: true healthy: + type: object properties: http_statuses: + type: array + items: + type: integer default: - 200 - 302 - items: - type: integer - type: array interval: - default: 0 type: number - successes: default: 0 + successes: type: integer - type: object + default: 0 http_path: - default: / type: string + default: / https_sni: type: string https_verify_certificate: - default: true type: boolean + default: true timeout: - default: 1 type: number + default: 1 type: + type: string default: http enum: - tcp @@ -8658,13 +7348,16 @@ components: - https - grpc - grpcs - type: string unhealthy: + type: object properties: http_failures: - default: 0 type: integer + default: 0 http_statuses: + type: array + items: + type: integer default: - 429 - 404 @@ -8674,25 +7367,25 @@ components: - 503 - 504 - 505 - items: - type: integer - type: array interval: - default: 0 type: number - tcp_failures: default: 0 + tcp_failures: type: integer - timeouts: default: 0 + timeouts: type: integer - type: object - type: object + default: 0 passive: + type: object properties: healthy: + type: object properties: http_statuses: + type: array + items: + type: integer default: - 200 - 201 @@ -8713,14 +7406,11 @@ components: - 306 - 307 - 308 - items: - type: integer - type: array successes: - default: 0 type: integer - type: object + default: 0 type: + type: string default: http enum: - tcp @@ -8728,45 +7418,41 @@ components: - https - grpc - grpcs - type: string unhealthy: + type: object properties: http_failures: - default: 0 type: integer + default: 0 http_statuses: + type: array + items: + type: integer default: - 429 - 500 - 503 - items: - type: integer - type: array tcp_failures: - default: 0 type: integer - timeouts: default: 0 + timeouts: type: integer - type: object - type: object + default: 0 threshold: - default: 0 type: number - type: object + default: 0 host_header: description: >- The hostname to be used as `Host` header when proxying requests through Kong. type: string id: - readOnly: true type: string + readOnly: true name: description: This is a hostname, which must be equal to the `host` of a Service. type: string slots: - default: 10000 description: >- The number of slots in the load balancer algorithm. If `algorithm` is set to `round-robin`, this setting determines the maximum number @@ -8774,82 +7460,26 @@ components: setting determines the actual number of slots in the algorithm. Accepts an integer in the range `10`-`65536`. type: integer + default: 10000 tags: description: >- An optional set of strings associated with the Upstream for grouping and filtering. + type: array items: type: string - type: array updated_at: description: Unix epoch when the resource was last updated. - readOnly: true type: integer + readOnly: true use_srv_name: - default: false description: >- If set, the balancer will use SRV hostname(if DNS Answer has SRV record) as the proxy upstream `Host`. type: boolean - type: object - User: - title: User - type: object - description: >- - The user object contains information about an individual user who can - use the Konnect application and API. - example: - id: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - email: user@email.com - full_name: Test User - preferred_name: test - active: true - created_at: '2022-02-07T17:46:57.52Z' - updated_at: '2022-10-08T17:00:00.52Z' - properties: - id: - type: string - format: uuid - example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7 - description: The User ID. - readOnly: true - email: - type: string - format: email - example: user@email.com - maxLength: 250 - description: The email registered to the user. - full_name: - type: string - pattern: ^[\w \W]+$ - maxLength: 250 - description: The User's full name. - example: Jane Doe - preferred_name: - type: string - example: Jane - maxLength: 250 - description: The User's preferred name. - active: - type: boolean - default: true - description: Returns True if a user has verified their email address. - readOnly: true - created_at: - type: string - format: date-time - example: '2022-02-07T17:46:57.52Z' - description: The time stamp for the date the account was registered. - readOnly: true - updated_at: - type: string - format: date-time - example: '2022-10-08T17:00:00.52Z' - description: >- - A Unix timestamp representation of the most recent change to the - User account. - readOnly: true + default: false Vault: + type: object properties: config: description: >- @@ -8858,14 +7488,14 @@ components: type: object created_at: description: Unix epoch when the resource was created. - readOnly: true type: integer + readOnly: true description: description: The description of the Vault entity. type: string id: - readOnly: true type: string + readOnly: true name: description: >- The name of the Vault that's going to be added. Currently, the Vault @@ -8881,484 +7511,1920 @@ components: description: >- An optional set of strings associated with the Vault for grouping and filtering. + type: array items: type: string - type: array updated_at: description: Unix epoch when the resource was last updated. - readOnly: true type: integer - type: object - securitySchemes: - konnectAccessToken: - type: http - scheme: bearer - bearerFormat: JWT + readOnly: true + requestBodies: + GroupMemebershipAdd: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupMembership' + description: >- + Request body for adding a list of child control planes to a control + plane group membership. + GroupMembershipRemove: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupMembership' + description: >- + Request body for removing a list of child control planes from a control + plane group membership. + UpdateImpersonationSettingsRequest: + content: + application/json: + schema: + type: object + properties: + enabled: + description: >- + Indicates if user impersonation is allowed for the + organization. + type: boolean + example: true + description: The request schema for adding a system account to a team. + UpdateUser: + description: The request schema for the update user request. + content: + application/json: + schema: + type: object + properties: + full_name: + description: The user's full name. + type: string + example: James C. Woods + pattern: ^[\w \W]+$ + writeOnly: true + preferred_name: + description: The user's desired name. + type: string + example: Jimmy + maxLength: 250 + writeOnly: true + CreateTeam: + description: >- + The request schema for the create team request. + + + If you pass the same `name` and `description` of an existing team in the + request, a team with the same `name` and `description` will be created. + The two teams will have different `team_id` values to differentiate + them. + content: + application/json: + schema: + x-speakeasy-entity: Team + type: object + properties: + name: + description: A name for the team being created. + type: string + example: IDM - Developers + pattern: ^[\w \W]+$ + writeOnly: true + description: + description: The description of the new team. + type: string + example: The Identity Management (IDM) team. + maxLength: 250 + writeOnly: true + labels: + $ref: '#/components/schemas/Labels' + required: + - name + UpdateTeam: + description: The request schema for the update team request. + content: + application/json: + schema: + x-speakeasy-entity: Team + type: object + properties: + name: + description: The name of the team. + type: string + example: IDM - Developers + pattern: ^[\w \W]+$ + writeOnly: true + description: + description: The description of the team. + type: string + example: The Identity Management (IDM) API team. + maxLength: 250 + writeOnly: true + labels: + $ref: '#/components/schemas/LabelsUpdate' + AddUserToTeam: + description: The request schema for adding a user to a team. + content: + application/json: + schema: + type: object + properties: + id: + description: The user ID for the user being added to a team. + type: string + format: uuid + example: df120cb4-f60b-47bc-a2f8-6a28e6a3c63b + writeOnly: true + x-speakeasy-name-override: user_id + required: + - id + UpdateTeamMappings: + content: + application/json: + schema: + type: object + properties: + mappings: + description: The mappings object. + type: array + items: + type: object + properties: + group: + type: string + team_ids: + type: array + items: + type: string + example: + mappings: + - group: Service Developers + team_ids: + - af91db4c-6e51-403e-a2bf-33d27ae50c0a + description: The request schema for updating IdP team mappings. + PatchTeamGroupMappings: + content: + application/json: + schema: + type: object + properties: + data: + description: The IdP groups to map to the given team. + type: array + items: + type: object + properties: + team_id: + type: string + format: uuid + groups: + type: array + items: + type: string + example: + data: + - group: Service Developers + team_ids: + - af91db4c-6e51-403e-a2bf-33d27ae50c0a description: >- - The Konnect access token is meant to be used by the Konnect dashboard - and the decK CLI to authenticate with. - personalAccessToken: - type: http - scheme: bearer - bearerFormat: Token + The request schema for a partial update of mappings from Konnect Teams + to IdP Groups. + AssignRole: + content: + application/json: + schema: + description: >- + An assigned role is a role that has been assigned to a user or + team. + type: object + properties: + role_name: + description: The desired role. + type: string + example: Viewer + enum: + - Admin + - Appearance Maintainer + - Application Registration + - Certificate Admin + - Cloud Gateway Cluster Admin + - Cloud Gateway Cluster Viewer + - Consumer Admin + - Creator + - Deployer + - Discovery Admin + - Discovery Viewer + - Gateway Service Admin + - Integration Admin + - Integration Viewer + - Key Admin + - Maintainer + - Network Admin + - Network Creator + - Network Viewer + - Plugin Admin + - Plugins Admin + - Product Publisher + - Publisher + - Route Admin + - SNI Admin + - Service Admin + - Service Creator + - Service Viewer + - Upstream Admin + - Vault Admin + - Viewer + entity_id: + description: The ID of the entity. + type: string + format: uuid + example: e67490ce-44dc-4cbd-b65e-b52c746fc26a + entity_type_name: + description: The type of entity. + type: string + example: Control Planes + enum: + - API Products + - Application Auth Strategies + - Audit Logs + - Control Planes + - DCR Providers + - Identity + - Mesh Control Planes + - Networks + - Portals + - Service Hub + entity_region: + description: The region of the team. + type: string + example: eu + enum: + - us + - eu + - au + - '*' + description: The request schema for assigning a role. + InviteUser: + content: + application/json: + schema: + type: object + properties: + email: + type: string + format: email + example: james.c.woods@example.com + writeOnly: true + required: + - email + description: >- + The request schema for the invite user request. + + + If you pass an `email` that is not already an active user in the + request, a fresh invitation email will be created and sent to the new + user. + CreateSystemAccount: + content: + application/json: + schema: + x-speakeasy-entity: SystemAccount + type: object + properties: + name: + description: Name of the system account. + type: string + description: + description: >- + Description of the system account. Useful when the system + account name is not sufficient to differentiate one system + account from another. + type: string + konnect_managed: + description: The system account is managed by Konnect (true/false). + type: boolean + required: + - name + - description + description: The request schema to create a system account. + UpdateSystemAccount: + content: + application/json: + schema: + x-speakeasy-entity: SystemAccount + type: object + properties: + name: + description: Name of the system account. + type: string + description: + description: Description of the system account. + type: string + description: The request schema for the update system account request. + UpdateSystemAccountAccessToken: + content: + application/json: + schema: + x-speakeasy-entity: SystemAccountAccessToken + type: object + properties: + name: + description: Name of the system account access token. + type: string + CreateSystemAccountAccessToken: + content: + application/json: + schema: + x-speakeasy-entity: SystemAccountAccessToken + type: object + properties: + name: + type: string + expires_at: + type: string + format: date-time + description: The request body to create a system account access token. + AddSystemAccountToTeam: + content: + application/json: + schema: + x-speakeasy-entity: SystemAccountTeam + type: object + properties: + id: + description: ID of the system account. + type: string + format: uuid + x-speakeasy-name-override: account_id + description: The request schema for adding a system account to a team. + UpdateAuthenticationSettings: + description: The request schema to update an organization's authentication settings. + content: + application/json: + schema: + type: object + properties: + basic_auth_enabled: + description: The organization has basic auth enabled. + type: boolean + example: true + oidc_auth_enabled: + description: The organization has OIDC disabled. + type: boolean + example: false + saml_auth_enabled: + description: The organization has SAML disabled. + type: boolean + example: false + idp_mapping_enabled: + description: Whether IdP groups determine the Konnect teams a user has. + type: boolean + example: true + konnect_mapping_enabled: + description: Whether a Konnect Identity Admin assigns teams to a user. + type: boolean + example: false + UpdateIdPConfiguration: + content: + application/json: + schema: + type: object + properties: + issuer: + type: string + format: uri + example: https://myidp.com/oauth2 + login_path: + type: string + example: myapp + client_id: + type: string + example: YOUR_CLIENT_ID + client_secret: + type: string + example: YOUR_CLIENT_SECRET + scopes: + type: array + items: + type: string + default: openid + default: + - email + - openid + - profile + claim_mappings: + type: object + minProperties: 3 + properties: + name: + type: string + example: name + default: name + email: + type: string + example: email + default: email + groups: + type: string + example: custom-group-claim + default: groups + description: The request schema for the update IdP configuration request. + DataPlaneClientCertificateRequest: + content: + application/json: + schema: + type: object + properties: + cert: + description: JSON escaped string of the certificate. + type: string + required: + - cert + description: Request body for creating a dp-client-certificate. + create-plugin-schemas: + content: + application/json: + schema: + x-speakeasy-entity: GatewayCustomPluginSchema + type: object + properties: + lua_schema: + description: | + The custom plugin schema; `jq -Rs '.' schema.lua`. + type: string + example: >- + return { name = \"myplugin\", fields = { { config = { type = + \"record\", fields = { } } } } } + required: + - lua_schema + responses: + RetrieveControlPlaneResponse: + description: A response to retrieving a single control plane. + content: + application/json: + schema: + $ref: '#/components/schemas/ControlPlane' + CreateControlPlaneResponse: + description: A response to creating a control plane. + content: + application/json: + schema: + $ref: '#/components/schemas/ControlPlane' + UpdateControlPlaneResponse: + description: A response to updating a control plane. + content: + application/json: + schema: + $ref: '#/components/schemas/ControlPlane' + ListControlPlanesResponse: + description: A paginated list response for a collection of control planes. + content: + application/json: + schema: + type: object + properties: + meta: + $ref: '#/components/schemas/PaginatedMeta' + data: + type: array + items: + $ref: '#/components/schemas/ControlPlane' + additionalProperties: false + required: + - meta + - data + title: ListControlPlanesResponse + ControlPlanesBadRequest: + description: Bad Request + content: + application/problem+json: + schema: + $ref: '#/components/schemas/BadRequestError' + ControlPlanePermissionDenied: + description: Permission denied + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ForbiddenError' + ControlPlaneUnauthenticated: + description: Unauthenticated + content: + application/problem+json: + schema: + $ref: '#/components/schemas/UnauthorizedError' + ControlPlaneNotFound: + description: Not Found + content: + application/problem+json: + schema: + $ref: '#/components/schemas/NotFoundError' + ControlPlaneConflict: + description: Conflict + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ConflictError' + InternalServerError: + description: Internal Server Error + content: + application/problem+json: + schema: + description: The error response object. + type: object + properties: + status: + description: The HTTP status code. + type: integer + example: 500 + enum: + - 500 + title: + description: The error response code. + type: string + example: Internal Server Error + instance: + description: The Konnect traceback code + type: string + example: konnect:trace:2287285207635123011 + detail: + description: Details about the error. + type: string + example: >- + Could not propagate control plane changes to control plane + cluster service. + required: + - status + - title + - instance + title: InternalServerError + ServiceUnavailable: + description: Service Unavailable + content: + application/problem+json: + schema: + description: Error response for temporary service unavailability. + type: object + properties: + status: + description: The HTTP status code. + type: integer + example: 503 + enum: + - 503 + title: + description: The error response code. + type: string + example: Service Unavailable + instance: + description: The Konnect traceback code + type: string + example: konnect:trace:2287285207635123011 + detail: + description: Details about the error. + type: string + example: >- + Could not retrieve permissions to check resource + accessibility. + required: + - status + - title + - instance + title: ServiceUnavailableError + ListGroupMemberships: description: >- - The personal access token is meant to be used as an alternative to - basic-auth when accessing Konnect via APIs. You can generate a Personal - Access Token (PAT) from the personal access token page in the Konnect - dashboard. - systemAccountAccessToken: - type: http - scheme: bearer - bearerFormat: Token - description: > - The system account access token is meant for automations and - integrations that are not directly associated with a human identity. - - You can generate a system account Access Token by creating a system - account and then obtaining a system account access token for that - account. - - The access token must be passed in the header of a request, for example: - - `curl -X GET 'https://global.api.konghq.com/v2/users/' --header - 'Authorization: Bearer spat_i2Ej...'` - requestBodies: - AddSystemAccountToTeam: + A paginated list response for a collection of control plane group + memberships. + content: + application/json: + schema: + type: object + properties: + meta: + $ref: '#/components/schemas/CursorPaginatedMetaWithSizeAndTotal' + data: + description: >- + Array of control planes summary who are a child to this + control plane group. + type: array + items: + $ref: '#/components/schemas/ControlPlaneSummary' + GetGroupStatus: + description: Status of a control plane group, including existing conflicts. + content: + application/json: + schema: + $ref: '#/components/schemas/GroupStatus' + GetGroupMemberStatus: + description: Determines the group membership status of a control plane. + content: + application/json: + schema: + $ref: '#/components/schemas/GroupMemberStatus' + BadRequest: + description: Bad Request + content: + application/problem+json: + schema: + $ref: '#/components/schemas/BadRequestError' + Unauthorized: + description: Unauthorized + content: + application/problem+json: + schema: + description: The error response object. + type: object + properties: + status: + description: The HTTP status code. + type: integer + example: 403 + title: + description: The Error Response. + type: string + example: Unauthorized + instance: + description: The Konnect traceback code. + type: string + example: konnect:trace:952172606039454040 + detail: + description: Details about the error response. + type: string + example: You do not have permission to perform this action + $ref: '#/components/schemas/UnauthorizedError' + title: Unauthorized Response + Forbidden: + description: Forbidden + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ForbiddenError' + NotFound: + description: Not Found + content: + application/problem+json: + schema: + $ref: '#/components/schemas/NotFoundError' + GetImpersonationSettingsResponse: + description: Response for Get Impersonation Settings endpoint + content: + application/json: + schema: + type: object + properties: + enabled: + description: The organization has user impersonation enabled. + type: boolean + example: true + title: Get Impersonation Settings Response + UpdateImpersonationSettingsResponse: + description: Response for Update Impersonation Settings endpoint + content: + application/json: + schema: + type: object + properties: + enabled: + description: The organization has user impersonation enabled. + type: boolean + example: true + title: Update Impersonation Settings Response + UserSingle: + description: A get action response of a single user. + content: + application/json: + schema: + $ref: '#/components/schemas/User' + UserCollection: + description: A paginated list response for a collection of users. + content: + application/json: + schema: + type: object + properties: + meta: + $ref: '#/components/schemas/PaginatedMeta' + data: + type: array + items: + $ref: '#/components/schemas/User' + title: User Collection Response + TeamSingle: + description: A response including a single team. + content: + application/json: + schema: + $ref: '#/components/schemas/Team' + TeamCollection: + description: A paginated list response for a collection of users. + content: + application/json: + schema: + type: object + properties: + meta: + $ref: '#/components/schemas/PaginatedMeta' + data: + type: array + items: + $ref: '#/components/schemas/Team' + title: Team Collection Response + TeamMappingCollection: + description: A paginated list response for a collection of team mappings. + content: + application/json: + schema: + type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/TeamMapping' + title: Team Mapping Collection Response + TeamGroupMappingCollection: + description: A paginated collection of mappings grouped by team_id. + content: + application/json: + schema: + type: object + properties: + meta: + $ref: '#/components/schemas/PaginatedMeta' + data: + type: array + items: + $ref: '#/components/schemas/TeamGroupMapping' + title: Team Group Mapping Collection Response + AssignedRoleSingle: + description: A get action response of a single assigned role. + content: + application/json: + schema: + $ref: '#/components/schemas/AssignedRole' + AssignedRoleCollection: + description: A paginated list response for a collection of assigned roles. + content: + application/json: + schema: + type: object + properties: + meta: + $ref: '#/components/schemas/PaginatedMeta' + data: + description: An Array + type: array + items: + $ref: '#/components/schemas/AssignedRole' + title: Assigned Role Collection Response + AuthenticationSettings: + description: Response for authentication settings endpoint + content: + application/json: + schema: + type: object + properties: + basic_auth_enabled: + description: The organization has basic auth enabled. + type: boolean + example: true + oidc_auth_enabled: + description: The organization has OIDC disabled. + type: boolean + example: false + saml_auth_enabled: + description: The organization has SAML disabled. + type: boolean + example: false + idp_mapping_enabled: + description: IdP groups determine the Konnect teams a user has. + type: boolean + example: true + konnect_mapping_enabled: + description: A Konnect Identity Admin assigns teams to a user. + type: boolean + example: false + title: Authentication Settings Response + IdentityBadRequest: + description: Bad Request + content: + application/problem+json: + schema: + $ref: '#/components/schemas/BadRequestError' + IdentityConflict: + description: Conflict + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ConflictError' + IdentityPermissionDenied: + description: Permission denied + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ForbiddenError' + PreconditionFailed: + description: Precondition Failed + content: + application/problem+json: + schema: + description: The error response object. + type: object + properties: + status: + description: The HTTP status code. + type: integer + example: 412 + title: + description: The error response code. + type: string + example: Precondition Failed + instance: + description: The Konnect traceback code. + type: string + example: konnect:trace:1896611024257578096 + detail: + description: Details about the error response. + type: string + example: IdP configuration not found + title: Precondition Failed Response + RateLimited: + description: Rate Limited + content: + application/problem+json: + schema: + description: The error object + type: object + properties: + status: + description: The HTTP response code + type: integer + example: 429 + title: + description: The Error response + type: string + example: Rate Limited + instance: + description: The Konnect traceback ID. + type: string + example: konnect:trace:3674017986744198214 + detail: + description: Detailed explanation of the error response. + type: string + example: Too many requests + title: Rate Limited Response + IdentityUnauthenticated: + description: Unauthenticated + content: + application/problem+json: + schema: + $ref: '#/components/schemas/UnauthorizedError' + IdentityNotFound: + description: Not Found + content: + application/problem+json: + schema: + $ref: '#/components/schemas/NotFoundError' + TeamMappingResponse: + description: A paginated list response for a collection of team mappings. + content: + application/json: + schema: + type: object + properties: + meta: + description: Contains pagination data. + type: object + properties: + page: + description: The page object. + type: object + properties: + number: + description: Page number. + type: integer + example: 1 + size: + description: Page size. + type: integer + example: 9 + total: + description: Total number of results. + type: integer + example: 5 + data: + type: array + items: + type: object + properties: + group: + description: Group names. + type: string + example: 111(@&*$)(@*#_@(gfds re gdsf dfg + team_ids: + description: Team ID's that belong to the specified group. + type: array + items: + type: string + example: 3df49db8-39ff-490d-9fe1-251a3361fb13 + title: Team Mapping Response + Roles: + description: The predefined, or system managed, roles. + content: + application/json: + schema: + type: object + properties: + control_planes: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Control Planes + roles: + type: object + properties: + admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Admin + description: + type: string + example: >- + This role grants full write access to all entities + within a control plane. + enum: + - >- + This role grants full write access to all + entities within a control plane. + required: + - name + - description + certificate_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Certificate Admin + description: + type: string + example: >- + This role grants full write access to administer + certificates. + enum: + - >- + This role grants full write access to administer + certificates. + required: + - name + - description + consumer_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Consumer Admin + description: + type: string + example: >- + This role grants full write access to administer + consumers. + enum: + - >- + This role grants full write access to administer + consumers. + required: + - name + - description + creator: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Creator + description: + type: string + example: >- + Creates a new Control Plane in an organization. + The creator becomes the owner of the Control Plane + they create. + enum: + - >- + Creates a new Control Plane in an organization. + The creator becomes the owner of the Control + Plane they create. + required: + - name + - description + deployer: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Deployer + description: + type: string + example: >- + This role grants full write access to administer + services, routes and plugins necessary to deploy + services in Service Hub. + enum: + - >- + This role grants full write access to administer + services, routes and plugins necessary to deploy + services in Service Hub. + required: + - name + - description + gateway_service_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Gateway Service Admin + description: + type: string + example: >- + This role grants full write access to administer + gateway services. + enum: + - >- + This role grants full write access to administer + gateway services. + required: + - name + - description + plugin_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Plugin Admin + description: + type: string + example: >- + This role grants full write access to administer + plugins. + enum: + - >- + This role grants full write access to administer + plugins. + required: + - name + - description + route_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Route Admin + description: + type: string + example: >- + This role grants full write access to administer + routes. + enum: + - >- + This role grants full write access to administer + routes. + required: + - name + - description + sni_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - SNI Admin + description: + type: string + example: >- + This role grants full write access to administer + SNIs. + enum: + - >- + This role grants full write access to administer + SNIs. + required: + - name + - description + upstream_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Upstream Admin + description: + type: string + example: >- + This role grants full write access to administer + upstreams. + enum: + - >- + This role grants full write access to administer + upstreams. + required: + - name + - description + viewer: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Viewer + description: + type: string + example: >- + This role grants read only access to all entities + within a control plane. + enum: + - >- + This role grants read only access to all + entities within a control plane. + required: + - name + - description + required: + - name + - roles + api_products: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - API Products + roles: + type: object + properties: + admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Admin + description: + type: string + example: >- + This role grants full write access to an API + product and its versions. + enum: + - >- + This role grants full write access to an API + product and its versions. + required: + - name + - description + application_registration: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Application Registration + description: + type: string + example: >- + This role grants permission to enable and disable + application registration on an API product. + enum: + - >- + This role grants permission to enable and + disable application registration on an API + product. + required: + - name + - description + creator: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Creator + description: + type: string + example: >- + This access is required to create API products. + This access is not for creating sub-entities such + as versions, API specs, etc. + enum: + - >- + This access is required to create API products. + This access is not for creating sub-entities + such as versions, API specs, etc. + required: + - name + - description + deployer: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Deployer + description: + type: string + example: >- + This role grants permission to deploy and remove + an API product from a control plane. + enum: + - >- + This role grants permission to deploy and remove + an API product from a control plane. + required: + - name + - description + maintainer: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Maintainer + description: + type: string + example: >- + This role grants all write permission to manage an + API product and to administer plugins. + enum: + - >- + This role grants all write permission to manage + an API product and to administer plugins. + required: + - name + - description + plugins_admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Plugins Admin + description: + type: string + example: >- + This role grants full write permission to + administer plugins. + enum: + - >- + This role grants full write permission to + administer plugins. + required: + - name + - description + publisher: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Publisher + description: + type: string + example: >- + This role grants permission to publish an API + product to one or more portals. + enum: + - >- + This role grants permission to publish an API + product to one or more portals. + required: + - name + - description + viewer: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Viewer + description: + type: string + example: >- + Viewer has read-only access to an API product and + its sub-entities. + enum: + - >- + Viewer has read-only access to an API product + and its sub-entities. + required: + - name + - description + required: + - name + - roles + audit_logs: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Audit Logs + roles: + type: object + properties: + admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Admin + description: + type: string + example: >- + This role grants full write access to the Audit + log configuration. + enum: + - >- + This role grants full write access to the Audit + log configuration. + required: + - name + - description + required: + - name + - roles + identity: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Identity + roles: + type: object + properties: + admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Admin + description: + type: string + example: >- + This role grants full write access to the Identity + configuration. + enum: + - >- + This role grants full write access to the + Identity configuration. + required: + - name + - description + required: + - name + - roles + mesh_control_planes: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Mesh Control Plane + roles: + type: object + properties: + admin: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Admin + description: + type: string + example: >- + This role grants full write access to the related + to Mesh control planes. + enum: + - >- + This role grants full write access to the + related to Mesh control planes. + required: + - name + - description + creator: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Creator + description: + type: string + example: >- + This role grants access to create new Mesh control + planes. + enum: + - >- + This role grants access to create new Mesh + control planes. + required: + - name + - description + viewer: + type: object + additionalProperties: false + properties: + name: + type: string + enum: + - Viewer + description: + type: string + example: >- + This role grants access to read-only permissions + to Mesh control planes. + enum: + - >- + This role grants access to read-only permissions + to Mesh control planes. + required: + - name + - description + required: + - name + - roles + title: Roles Response + SystemAccountCollection: + description: A paginated list response for a collection of system accounts. content: application/json: schema: - x-speakeasy-entity: SystemAccountTeam type: object properties: - id: - x-speakeasy-name-override: account_id - type: string - description: ID of the system account. - format: uuid - description: The request schema for adding a system account to a team. - AddUserToTeam: - description: The request schema for adding a user to a team. + meta: + $ref: '#/components/schemas/PaginatedMeta' + data: + type: array + items: + $ref: '#/components/schemas/SystemAccount' + title: System Account Collection Response + SystemAccountSingle: + description: A response including a single system account. + content: + application/json: + schema: + $ref: '#/components/schemas/SystemAccount' + SystemAccountAccessTokenSingle: + description: A response including a single system account access token. + content: + application/json: + schema: + $ref: '#/components/schemas/SystemAccountAccessToken' + SystemAccountAccessTokenCollection: + description: >- + A paginated list response for a collection of system accounts access + tokens. content: application/json: schema: type: object properties: - id: - type: string - example: df120cb4-f60b-47bc-a2f8-6a28e6a3c63b - format: uuid - description: The user ID for the user being added to a team. - writeOnly: true - x-speakeasy-name-override: user_id - required: - - id - AssignRole: + meta: + $ref: '#/components/schemas/PaginatedMeta' + data: + type: array + items: + $ref: '#/components/schemas/SystemAccountAccessToken' + title: System Account Access Token Collection Reponse + SystemAccountAccessTokenCreated: + description: >- + A response including a single system account access token with the + token. content: application/json: schema: + x-speakeasy-entity: SystemAccountAccessToken type: object - description: >- - An assigned role is a role that has been assigned to a user or - team. properties: - role_name: - type: string - example: Viewer - description: The desired role. - enum: - - Admin - - Appearance Maintainer - - Application Registration - - Certificate Admin - - Cloud Gateway Cluster Admin - - Cloud Gateway Cluster Viewer - - Consumer Admin - - Creator - - Deployer - - Discovery Admin - - Discovery Viewer - - Gateway Service Admin - - Integration Admin - - Integration Viewer - - Key Admin - - Maintainer - - Network Admin - - Network Creator - - Network Viewer - - Plugin Admin - - Plugins Admin - - Product Publisher - - Publisher - - Route Admin - - SNI Admin - - Service Admin - - Service Creator - - Service Viewer - - Upstream Admin - - Vault Admin - - Viewer - entity_id: + id: + description: ID of the system account access token. type: string format: uuid - example: e67490ce-44dc-4cbd-b65e-b52c746fc26a - description: The ID of the entity. - entity_type_name: + readOnly: true + name: + description: Name of the system account access token. type: string - example: Control Planes - description: The type of entity. - enum: - - API Products - - Application Auth Strategies - - Audit Logs - - Control Planes - - DCR Providers - - Identity - - Mesh Control Planes - - Networks - - Portals - - Service Hub - entity_region: + created_at: + description: Timestamp of when the system account access token was created. type: string - enum: - - us - - eu - - au - - '*' - example: eu - description: The region of the team. - description: The request schema for assigning a role. - create-plugin-schemas: - content: - application/json: - schema: - x-speakeasy-entity: GatewayCustomPluginSchema - type: object - properties: - lua_schema: + format: date-time + readOnly: true + updated_at: + description: >- + Timestamp of when the system account access token was last + updated. type: string - description: | - The custom plugin schema; `jq -Rs '.' schema.lua`. - example: >- - return { name = \"myplugin\", fields = { { config = { type = - \"record\", fields = { } } } } } - required: - - lua_schema - CreateSystemAccount: + format: date-time + readOnly: true + expires_at: + description: Timestamp of when the system account access token will expire. + type: string + format: date-time + readOnly: true + last_used_at: + description: >- + Timestamp of when the system account access token was last + used. + type: string + format: date-time + readOnly: true + token: + description: The token of the system account access token. + type: string + readOnly: true + example: + id: 497f6eca-6276-4993-bfeb-53cbbbba6f08 + name: Sample Access Token + created_at: '2022-08-01T14:16:09Z' + updated_at: '2022-08-02T08:35:49Z' + expires_at: '2022-12-31T12:52:23Z' + last_used_at: '2022-10-24T13:05:42Z' + title: System Account Access Token Created Response + MeOrganization: + description: Me Organization content: application/json: schema: - x-speakeasy-entity: SystemAccount type: object - required: - - name - - description properties: + id: + description: UUID of the organization. + type: string + format: uuid + readOnly: true name: + description: Name of the organization. type: string - description: Name of the system account. - description: + owner_id: + description: Owner ID of the organization. type: string + login_path: description: >- - Description of the system account. Useful when the system - account name is not sufficient to differentiate one system - account from another. - konnect_managed: - type: boolean - description: The system account is managed by Konnect (true/false). - description: The request schema to create a system account. - CreateSystemAccountAccessToken: - content: - application/json: - schema: - x-speakeasy-entity: SystemAccountAccessToken - type: object - properties: - name: + Path to organization-specific login when single sign on (SSO) + is enabled. Blank otherwise. type: string - expires_at: + created_at: + description: Date the organization was created. type: string format: date-time - description: The request body to create a system account access token. - CreateTeam: - description: >- - The request schema for the create team request. - - - If you pass the same `name` and `description` of an existing team in the - request, a team with the same `name` and `description` will be created. - The two teams will have different `team_id` values to differentiate - them. - content: - application/json: - schema: - x-speakeasy-entity: Team - type: object - properties: - name: - type: string - example: IDM - Developers - pattern: ^[\w \W]+$ - description: A name for the team being created. - writeOnly: true - description: + readOnly: true + updated_at: + description: Date the organization was last updated. type: string - maxLength: 250 - example: The Identity Management (IDM) team. - description: The description of the new team. - writeOnly: true - labels: - $ref: '#/components/schemas/Labels' - required: - - name - DataPlaneClientCertificateRequest: - content: - application/json: - schema: - type: object - properties: - cert: + format: date-time + readOnly: true + state: + description: State of the organization type: string - description: JSON escaped string of the certificate. - required: - - cert - description: Request body for creating a dp-client-certificate. - GroupMembershipRemove: + enum: + - active + - inactive + retention_period_days: + description: >- + The number of days an organization spends inactive before + being deleted. + type: integer + example: + id: d99c041a-c7cf-46a2-bf3a-44bb5f75400e + name: string + owner_id: 1c9c3848-5897-4f2c-beed-df6f3e3adb37 + created_at: '2023-01-23T17:22:52.150Z' + updated_at: '2023-01-23T17:22:52.150Z' + state: active + retention_period_days: 90 + title: Me Organization Response + IdPConfiguration: + description: A get action response of the IdP configuration. content: application/json: schema: - $ref: '#/components/schemas/GroupMembership' - description: >- - Request body for removing a list of child control planes from a control - plane group membership. - GroupMemebershipAdd: + $ref: '#/components/schemas/IdP' + RetrieveServerlessCloudGatewayResponse: + description: A response to retrieving a serverless cloud gateway. content: application/json: schema: - $ref: '#/components/schemas/GroupMembership' - description: >- - Request body for adding a list of child control planes to a control - plane group membership. - InviteUser: + $ref: '#/components/schemas/ServerlessCloudGateway' + CreateServerlessCloudGatewayResponse: + description: A response to creating a serverless cloud gateway. content: application/json: schema: - type: object - properties: - email: - type: string - format: email - example: james.c.woods@example.com - writeOnly: true - required: - - email - description: >- - The request schema for the invite user request. - - - If you pass an `email` that is not already an active user in the - request, a fresh invitation email will be created and sent to the new - user. - PatchTeamGroupMappings: + $ref: '#/components/schemas/ServerlessCloudGateway' + ListServerlessCloudGatewaysResponse: + description: A paginated list response for a collection of serverless cloud gateways. content: application/json: schema: type: object - example: - data: - - group: Service Developers - team_ids: - - af91db4c-6e51-403e-a2bf-33d27ae50c0a properties: + meta: + $ref: '#/components/schemas/PaginatedMeta' data: type: array - description: The IdP groups to map to the given team. items: - type: object - properties: - team_id: - type: string - format: uuid - groups: - type: array - items: - type: string + $ref: '#/components/schemas/ServerlessCloudGateway' + title: ListServerlessCloudGatewaysResponse + DataPlaneClientCertificateResponse: + description: Response body for retrieving a dp-client-certificate. + content: + application/json: + schema: + $ref: '#/components/schemas/DataPlaneClientCertificate' + get-expected-config-hash: description: >- - The request schema for a partial update of mappings from Konnect Teams - to IdP Groups. - UpdateAuthenticationSettings: - description: The request schema to update an organization's authentication settings. + Response body for retrieving the expected config hash of the control + plane. content: application/json: schema: type: object properties: - basic_auth_enabled: - type: boolean - example: true - description: The organization has basic auth enabled. - oidc_auth_enabled: - type: boolean - example: false - description: The organization has OIDC disabled. - idp_mapping_enabled: - type: boolean - example: true - description: Whether IdP groups determine the Konnect teams a user has. - konnect_mapping_enabled: - type: boolean - example: false - description: Whether a Konnect Identity Admin assigns teams to a user. - UpdateIdPConfiguration: + expected_hash: + description: The expected configuration hash. + type: string + created_at: + description: Date the control plane configuration was created. + type: integer + updated_at: + description: Date the control plane configuration was last updated. + type: integer + ListDataPlaneCertificatesResponse: + description: Example response content: application/json: schema: type: object properties: - issuer: - type: string - format: uri - example: https://myidp.com/oauth2 - login_path: - type: string - example: myapp - client_id: - type: string - example: YOUR_CLIENT_ID - client_secret: - type: string - example: YOUR_CLIENT_SECRET - scopes: + items: type: array - default: - - email - - openid - - profile items: - type: string - default: openid - claim_mappings: + $ref: '#/components/schemas/DataPlaneClientCertificate' + page: type: object - minProperties: 3 properties: - name: - type: string - example: name - default: name - email: - type: string - example: email - default: email - groups: - type: string - default: groups - example: custom-group-claim - description: The request schema for the update IdP configuration request. - UpdateImpersonationSettingsRequest: - content: - application/json: - schema: - type: object - properties: - enabled: - type: boolean - example: true - description: >- - Indicates if user impersonation is allowed for the - organization. - description: The request schema for adding a system account to a team. - UpdateSystemAccount: + total: + type: integer + list-nodes: + description: Example response content: application/json: schema: - x-speakeasy-entity: SystemAccount type: object properties: - name: - type: string - description: Name of the system account. - description: - type: string - description: Description of the system account. - description: The request schema for the update system account request. - UpdateSystemAccountAccessToken: + items: + type: array + items: + type: object + properties: + id: + type: string + version: + type: string + hostname: + type: string + last_ping: + type: integer + type: + type: string + created_at: + type: integer + updated_at: + type: integer + config_hash: + type: string + compatibility_status: + type: object + properties: + state: + type: string + page: + type: object + properties: + total: + type: integer + next: + type: string + list-nodes-eol: + description: Example response content: application/json: schema: - x-speakeasy-entity: SystemAccountAccessToken type: object properties: - name: - type: string - description: Name of the system account access token. - UpdateTeam: - description: The request schema for the update team request. + items: + type: array + items: + type: object + properties: + node_id: + type: string + node_version: + type: string + message: + type: string + page: + type: object + properties: + total: + type: integer + get-node: + description: Example response content: application/json: schema: - x-speakeasy-entity: Team type: object properties: - name: - type: string - example: IDM - Developers - pattern: ^[\w \W]+$ - description: The name of the team. - writeOnly: true - description: - type: string - maxLength: 250 - example: The Identity Management (IDM) API team. - description: The description of the team. - writeOnly: true - labels: - $ref: '#/components/schemas/LabelsUpdate' - UpdateTeamMappings: + item: + type: object + properties: + id: + type: string + version: + type: string + hostname: + type: string + last_ping: + type: integer + type: + type: string + created_at: + type: integer + updated_at: + type: integer + config_hash: + type: string + compatibility_status: + type: object + properties: + state: + type: string + list-plugin-schemas: + description: A paginated list response for a collection of custom plugin schemas. content: application/json: schema: type: object - example: - mappings: - - group: Service Developers - team_ids: - - af91db4c-6e51-403e-a2bf-33d27ae50c0a properties: - mappings: + items: type: array - description: The mappings object. items: type: object properties: - group: + lua_schema: + description: The custom plugin schema; `jq -Rs '.' schema.lua`. type: string - team_ids: - type: array - items: - type: string - description: The request schema for updating IdP team mappings. - UpdateUser: - description: The request schema for the update user request. + example: >- + return { name = \"myplugin\", fields = { { config = { + type = \"record\", fields = { } } } } } + name: + description: >- + The custom plugin name determined by the custom plugin + schema. + type: string + example: myplugin + created_at: + description: >- + An ISO-8604 timestamp representation of custom plugin + schema creation date. + type: integer + example: 1422386534 + updated_at: + description: >- + An ISO-8604 timestamp representation of custom plugin + schema update date. + type: integer + example: 1422412345 + page: + type: object + properties: + total: + type: integer + plugin-schemas: + description: A response for a single custom plugin schema. content: application/json: schema: type: object properties: - full_name: - type: string - pattern: ^[\w \W]+$ - example: James C. Woods - description: The user's full name. - writeOnly: true - preferred_name: - type: string - maxLength: 250 - example: Jimmy - description: The user's desired name. - writeOnly: true -security: - - personalAccessToken: [] - - systemAccountAccessToken: [] - - konnectAccessToken: [] + item: + x-speakeasy-entity: GatewayCustomPluginSchema + type: object + properties: + lua_schema: + description: The custom plugin schema; `jq -Rs '.' schema.lua`. + type: string + example: >- + return { name = \"myplugin\", fields = { { config = { type + = \"record\", fields = { } } } } } + name: + description: >- + The custom plugin name determined by the custom plugin + schema. + type: string + example: myplugin + created_at: + description: >- + An ISO-8604 timestamp representation of custom plugin + schema creation date. + type: integer + example: 1422386534 + updated_at: + description: >- + An ISO-8604 timestamp representation of custom plugin + schema update date. + type: integer + example: 1422412345 + HTTP401Error: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/GatewayUnauthorizedError' + Conflict: + description: Conflict + content: + application/problem+json: + schema: + $ref: '#/components/schemas/ConflictError' + securitySchemes: + personalAccessToken: + type: http + scheme: bearer + bearerFormat: Token + description: >- + The personal access token is meant to be used as an alternative to + basic-auth when accessing Konnect via APIs. You can generate a Personal + Access Token (PAT) from the personal access token page in the Konnect + dashboard. + systemAccountAccessToken: + type: http + scheme: bearer + bearerFormat: Token + description: > + The system account access token is meant for automations and + integrations that are not directly associated with a human identity. + + You can generate a system account Access Token by creating a system + account and then obtaining a system account access token for that + account. + + The access token must be passed in the header of a request, for example: + + `curl -X GET 'https://global.api.konghq.com/v2/users/' --header + 'Authorization: Bearer spat_i2Ej...'` + konnectAccessToken: + type: http + scheme: bearer + bearerFormat: JWT + description: >- + The Konnect access token is meant to be used by the Konnect dashboard + and the decK CLI to authenticate with. tags: - name: Control Planes - name: Control Plane Groups @@ -9446,9 +9512,6 @@ tags: - `ws`: At least one of `hosts`, `headers`, or `paths` - `wss`: At least one of `hosts`, `headers`, `paths`, or `snis` - - -
A route can't have both `tls` and `tls_passthrough` protocols at same time.

@@ -9583,3 +9646,7 @@ tags: externalDocs: description: Documentation for Kong Gateway and its APIs url: https://docs.konghq.com +security: + - personalAccessToken: [] + - systemAccountAccessToken: [] + - konnectAccessToken: [] diff --git a/plugins.go b/plugins.go index 79593ba..7042889 100644 --- a/plugins.go +++ b/plugins.go @@ -483,17 +483,17 @@ func (s *Plugins) CreatePlugin(ctx context.Context, controlPlaneID string, plugi } -// GetPlugin - Fetch a Plugin -// Get a Plugin using ID. -func (s *Plugins) GetPlugin(ctx context.Context, controlPlaneID string, pluginID string, opts ...operations.Option) (*operations.GetPluginResponse, error) { +// DeletePlugin - Delete a Plugin +// Delete a Plugin +func (s *Plugins) DeletePlugin(ctx context.Context, controlPlaneID string, pluginID string, opts ...operations.Option) (*operations.DeletePluginResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-plugin", + OperationID: "delete-plugin", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetPluginRequest{ + request := operations.DeletePluginRequest{ ControlPlaneID: controlPlaneID, PluginID: pluginID, } @@ -527,7 +527,7 @@ func (s *Plugins) GetPlugin(ctx context.Context, controlPlaneID string, pluginID defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -608,7 +608,7 @@ func (s *Plugins) GetPlugin(ctx context.Context, controlPlaneID string, pluginID _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -623,7 +623,7 @@ func (s *Plugins) GetPlugin(ctx context.Context, controlPlaneID string, pluginID } } - res := &operations.GetPluginResponse{ + res := &operations.DeletePluginResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -640,28 +640,7 @@ func (s *Plugins) GetPlugin(ctx context.Context, controlPlaneID string, pluginID } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Plugin - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Plugin = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -684,8 +663,6 @@ func (s *Plugins) GetPlugin(ctx context.Context, controlPlaneID string, pluginID return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -708,16 +685,21 @@ func (s *Plugins) GetPlugin(ctx context.Context, controlPlaneID string, pluginID } -// UpsertPlugin - Upsert a Plugin -// Create or Update Plugin using ID. -func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPluginRequest, opts ...operations.Option) (*operations.UpsertPluginResponse, error) { +// GetPlugin - Fetch a Plugin +// Get a Plugin using ID. +func (s *Plugins) GetPlugin(ctx context.Context, pluginID string, controlPlaneID string, opts ...operations.Option) (*operations.GetPluginResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-plugin", + OperationID: "get-plugin", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetPluginRequest{ + PluginID: pluginID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -736,11 +718,6 @@ func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPlu return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Plugin", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -752,13 +729,12 @@ func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPlu defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -834,7 +810,7 @@ func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPlu _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -849,7 +825,7 @@ func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPlu } } - res := &operations.UpsertPluginResponse{ + res := &operations.GetPluginResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -910,6 +886,8 @@ func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPlu return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -932,21 +910,16 @@ func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPlu } -// DeletePlugin - Delete a Plugin -// Delete a Plugin -func (s *Plugins) DeletePlugin(ctx context.Context, controlPlaneID string, pluginID string, opts ...operations.Option) (*operations.DeletePluginResponse, error) { +// UpsertPlugin - Upsert a Plugin +// Create or Update Plugin using ID. +func (s *Plugins) UpsertPlugin(ctx context.Context, request operations.UpsertPluginRequest, opts ...operations.Option) (*operations.UpsertPluginResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-plugin", + OperationID: "upsert-plugin", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeletePluginRequest{ - ControlPlaneID: controlPlaneID, - PluginID: pluginID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -965,6 +938,11 @@ func (s *Plugins) DeletePlugin(ctx context.Context, controlPlaneID string, plugi return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Plugin", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -976,12 +954,13 @@ func (s *Plugins) DeletePlugin(ctx context.Context, controlPlaneID string, plugi defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1072,7 +1051,7 @@ func (s *Plugins) DeletePlugin(ctx context.Context, controlPlaneID string, plugi } } - res := &operations.DeletePluginResponse{ + res := &operations.UpsertPluginResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1089,7 +1068,28 @@ func (s *Plugins) DeletePlugin(ctx context.Context, controlPlaneID string, plugi } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Plugin + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Plugin = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -1536,12 +1536,12 @@ func (s *Plugins) CreatePluginWithRoute(ctx context.Context, request operations. } -// GetPluginWithRoute - Fetch a Plugin associated with a Route -// Get a Plugin associated with a Route using ID. -func (s *Plugins) GetPluginWithRoute(ctx context.Context, request operations.GetPluginWithRouteRequest, opts ...operations.Option) (*operations.GetPluginWithRouteResponse, error) { +// DeletePluginWithRoute - Delete a a Plugin associated with a a Route +// Delete a a Plugin associated with a a Route using ID. +func (s *Plugins) DeletePluginWithRoute(ctx context.Context, request operations.DeletePluginWithRouteRequest, opts ...operations.Option) (*operations.DeletePluginWithRouteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-plugin-with-route", + OperationID: "delete-plugin-with-route", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1575,11 +1575,11 @@ func (s *Plugins) GetPluginWithRoute(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -1656,7 +1656,7 @@ func (s *Plugins) GetPluginWithRoute(ctx context.Context, request operations.Get _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1671,7 +1671,7 @@ func (s *Plugins) GetPluginWithRoute(ctx context.Context, request operations.Get } } - res := &operations.GetPluginWithRouteResponse{ + res := &operations.DeletePluginWithRouteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1688,30 +1688,7 @@ func (s *Plugins) GetPluginWithRoute(ctx context.Context, request operations.Get } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Plugin - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Plugin = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1734,12 +1711,12 @@ func (s *Plugins) GetPluginWithRoute(ctx context.Context, request operations.Get } -// UpsertPluginWithRoute - Upsert a Plugin associated with a Route -// Create or Update a Plugin associated with a Route using ID. -func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations.UpsertPluginWithRouteRequest, opts ...operations.Option) (*operations.UpsertPluginWithRouteResponse, error) { +// GetPluginWithRoute - Fetch a Plugin associated with a Route +// Get a Plugin associated with a Route using ID. +func (s *Plugins) GetPluginWithRoute(ctx context.Context, request operations.GetPluginWithRouteRequest, opts ...operations.Option) (*operations.GetPluginWithRouteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-plugin-with-route", + OperationID: "get-plugin-with-route", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1762,11 +1739,6 @@ func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "PluginWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1778,13 +1750,12 @@ func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1860,7 +1831,7 @@ func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations. _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1875,7 +1846,7 @@ func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations. } } - res := &operations.UpsertPluginWithRouteResponse{ + res := &operations.GetPluginWithRouteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1914,6 +1885,8 @@ func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations. return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1936,12 +1909,12 @@ func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations. } -// DeletePluginWithRoute - Delete a a Plugin associated with a a Route -// Delete a a Plugin associated with a a Route using ID. -func (s *Plugins) DeletePluginWithRoute(ctx context.Context, request operations.DeletePluginWithRouteRequest, opts ...operations.Option) (*operations.DeletePluginWithRouteResponse, error) { +// UpsertPluginWithRoute - Upsert a Plugin associated with a Route +// Create or Update a Plugin associated with a Route using ID. +func (s *Plugins) UpsertPluginWithRoute(ctx context.Context, request operations.UpsertPluginWithRouteRequest, opts ...operations.Option) (*operations.UpsertPluginWithRouteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-plugin-with-route", + OperationID: "upsert-plugin-with-route", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1964,6 +1937,11 @@ func (s *Plugins) DeletePluginWithRoute(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "PluginWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1975,12 +1953,13 @@ func (s *Plugins) DeletePluginWithRoute(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -2071,7 +2050,7 @@ func (s *Plugins) DeletePluginWithRoute(ctx context.Context, request operations. } } - res := &operations.DeletePluginWithRouteResponse{ + res := &operations.UpsertPluginWithRouteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2088,7 +2067,28 @@ func (s *Plugins) DeletePluginWithRoute(ctx context.Context, request operations. } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Plugin + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Plugin = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -2714,12 +2714,12 @@ func (s *Plugins) CreatePluginWithService(ctx context.Context, request operation } -// GetPluginWithService - Fetch a Plugin associated with a Service -// Get a Plugin associated with a Service using ID. -func (s *Plugins) GetPluginWithService(ctx context.Context, request operations.GetPluginWithServiceRequest, opts ...operations.Option) (*operations.GetPluginWithServiceResponse, error) { +// DeletePluginWithService - Delete a a Plugin associated with a a Service +// Delete a a Plugin associated with a a Service using ID. +func (s *Plugins) DeletePluginWithService(ctx context.Context, request operations.DeletePluginWithServiceRequest, opts ...operations.Option) (*operations.DeletePluginWithServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-plugin-with-service", + OperationID: "delete-plugin-with-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2753,11 +2753,11 @@ func (s *Plugins) GetPluginWithService(ctx context.Context, request operations.G defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -2834,7 +2834,7 @@ func (s *Plugins) GetPluginWithService(ctx context.Context, request operations.G _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -2849,7 +2849,7 @@ func (s *Plugins) GetPluginWithService(ctx context.Context, request operations.G } } - res := &operations.GetPluginWithServiceResponse{ + res := &operations.DeletePluginWithServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2866,30 +2866,7 @@ func (s *Plugins) GetPluginWithService(ctx context.Context, request operations.G } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Plugin - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Plugin = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -2912,12 +2889,12 @@ func (s *Plugins) GetPluginWithService(ctx context.Context, request operations.G } -// UpsertPluginWithService - Upsert a Plugin associated with a Service -// Create or Update a Plugin associated with a Service using ID. -func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operations.UpsertPluginWithServiceRequest, opts ...operations.Option) (*operations.UpsertPluginWithServiceResponse, error) { +// GetPluginWithService - Fetch a Plugin associated with a Service +// Get a Plugin associated with a Service using ID. +func (s *Plugins) GetPluginWithService(ctx context.Context, request operations.GetPluginWithServiceRequest, opts ...operations.Option) (*operations.GetPluginWithServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-plugin-with-service", + OperationID: "get-plugin-with-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -2940,11 +2917,6 @@ func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operation return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "PluginWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -2956,13 +2928,12 @@ func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -3038,7 +3009,7 @@ func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operation _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -3053,7 +3024,7 @@ func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operation } } - res := &operations.UpsertPluginWithServiceResponse{ + res := &operations.GetPluginWithServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3092,6 +3063,8 @@ func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operation return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -3114,12 +3087,12 @@ func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operation } -// DeletePluginWithService - Delete a a Plugin associated with a a Service -// Delete a a Plugin associated with a a Service using ID. -func (s *Plugins) DeletePluginWithService(ctx context.Context, request operations.DeletePluginWithServiceRequest, opts ...operations.Option) (*operations.DeletePluginWithServiceResponse, error) { +// UpsertPluginWithService - Upsert a Plugin associated with a Service +// Create or Update a Plugin associated with a Service using ID. +func (s *Plugins) UpsertPluginWithService(ctx context.Context, request operations.UpsertPluginWithServiceRequest, opts ...operations.Option) (*operations.UpsertPluginWithServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-plugin-with-service", + OperationID: "upsert-plugin-with-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -3142,6 +3115,11 @@ func (s *Plugins) DeletePluginWithService(ctx context.Context, request operation return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "PluginWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -3153,12 +3131,13 @@ func (s *Plugins) DeletePluginWithService(ctx context.Context, request operation defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -3249,7 +3228,7 @@ func (s *Plugins) DeletePluginWithService(ctx context.Context, request operation } } - res := &operations.DeletePluginWithServiceResponse{ + res := &operations.UpsertPluginWithServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -3266,7 +3245,28 @@ func (s *Plugins) DeletePluginWithService(ctx context.Context, request operation } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Plugin + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Plugin = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/routes.go b/routes.go index b77f1b2..bbfebcb 100644 --- a/routes.go +++ b/routes.go @@ -23,23 +23,21 @@ import ( // Depending on the protocol, one of the following attributes must be set: //
// -// - `http`: At least one of `methods`, `hosts`, `headers`, or `paths` -// - `https`: At least one of `methods`, `hosts`, `headers`, `paths`, or `snis` -// - `tcp`: At least one of `sources` or `destinations` -// - `tls`: at least one of `sources`, `destinations`, or `snis` -// - `tls_passthrough`: set `snis` -// - `grpc`: At least one of `hosts`, `headers`, or `paths` -// - `grpcs`: At least one of `hosts`, `headers`, `paths`, or `snis` -// - `ws`: At least one of `hosts`, `headers`, or `paths` -// - `wss`: At least one of `hosts`, `headers`, `paths`, or `snis` -// -//
-// A route can't have both `tls` and `tls_passthrough` protocols at same time. -//

-// Learn more about the router: -// -// - [Configure routes using expressions](https://docs.konghq.com/gateway/latest/key-concepts/routes/expressions) -// - [Router Expressions language reference](https://docs.konghq.com/gateway/latest/reference/router-expressions-language/) +// - `http`: At least one of `methods`, `hosts`, `headers`, or `paths` +// - `https`: At least one of `methods`, `hosts`, `headers`, `paths`, or `snis` +// - `tcp`: At least one of `sources` or `destinations` +// - `tls`: at least one of `sources`, `destinations`, or `snis` +// - `tls_passthrough`: set `snis` +// - `grpc`: At least one of `hosts`, `headers`, or `paths` +// - `grpcs`: At least one of `hosts`, `headers`, `paths`, or `snis` +// - `ws`: At least one of `hosts`, `headers`, or `paths` +// - `wss`: At least one of `hosts`, `headers`, `paths`, or `snis` +//
+// A route can't have both `tls` and `tls_passthrough` protocols at same time. +//

+// Learn more about the router: +// - [Configure routes using expressions](https://docs.konghq.com/gateway/latest/key-concepts/routes/expressions) +// - [Router Expressions language reference](https://docs.konghq.com/gateway/latest/reference/router-expressions-language/) type Routes struct { sdkConfiguration sdkConfiguration } @@ -501,17 +499,17 @@ func (s *Routes) CreateRoute(ctx context.Context, controlPlaneID string, route c } -// GetRoute - Fetch a Route -// Get a Route using ID or name. -func (s *Routes) GetRoute(ctx context.Context, controlPlaneID string, routeID string, opts ...operations.Option) (*operations.GetRouteResponse, error) { +// DeleteRoute - Delete a Route +// Delete a Route +func (s *Routes) DeleteRoute(ctx context.Context, controlPlaneID string, routeID string, opts ...operations.Option) (*operations.DeleteRouteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-route", + OperationID: "delete-route", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetRouteRequest{ + request := operations.DeleteRouteRequest{ ControlPlaneID: controlPlaneID, RouteID: routeID, } @@ -545,7 +543,7 @@ func (s *Routes) GetRoute(ctx context.Context, controlPlaneID string, routeID st defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -626,7 +624,7 @@ func (s *Routes) GetRoute(ctx context.Context, controlPlaneID string, routeID st _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -641,7 +639,7 @@ func (s *Routes) GetRoute(ctx context.Context, controlPlaneID string, routeID st } } - res := &operations.GetRouteResponse{ + res := &operations.DeleteRouteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -658,28 +656,7 @@ func (s *Routes) GetRoute(ctx context.Context, controlPlaneID string, routeID st } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Route - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Route = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -702,8 +679,6 @@ func (s *Routes) GetRoute(ctx context.Context, controlPlaneID string, routeID st return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -726,16 +701,21 @@ func (s *Routes) GetRoute(ctx context.Context, controlPlaneID string, routeID st } -// UpsertRoute - Upsert a Route -// Create or Update Route using ID or name. -func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRouteRequest, opts ...operations.Option) (*operations.UpsertRouteResponse, error) { +// GetRoute - Fetch a Route +// Get a Route using ID or name. +func (s *Routes) GetRoute(ctx context.Context, routeID string, controlPlaneID string, opts ...operations.Option) (*operations.GetRouteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-route", + OperationID: "get-route", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetRouteRequest{ + RouteID: routeID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -754,11 +734,6 @@ func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRoute return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Route", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -770,13 +745,12 @@ func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRoute defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -852,7 +826,7 @@ func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRoute _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -867,7 +841,7 @@ func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRoute } } - res := &operations.UpsertRouteResponse{ + res := &operations.GetRouteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -928,6 +902,8 @@ func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRoute return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -950,21 +926,16 @@ func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRoute } -// DeleteRoute - Delete a Route -// Delete a Route -func (s *Routes) DeleteRoute(ctx context.Context, controlPlaneID string, routeID string, opts ...operations.Option) (*operations.DeleteRouteResponse, error) { +// UpsertRoute - Upsert a Route +// Create or Update Route using ID or name. +func (s *Routes) UpsertRoute(ctx context.Context, request operations.UpsertRouteRequest, opts ...operations.Option) (*operations.UpsertRouteResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-route", + OperationID: "upsert-route", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteRouteRequest{ - ControlPlaneID: controlPlaneID, - RouteID: routeID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -983,6 +954,11 @@ func (s *Routes) DeleteRoute(ctx context.Context, controlPlaneID string, routeID return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Route", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -994,12 +970,13 @@ func (s *Routes) DeleteRoute(ctx context.Context, controlPlaneID string, routeID defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1090,7 +1067,7 @@ func (s *Routes) DeleteRoute(ctx context.Context, controlPlaneID string, routeID } } - res := &operations.DeleteRouteResponse{ + res := &operations.UpsertRouteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1107,7 +1084,28 @@ func (s *Routes) DeleteRoute(ctx context.Context, controlPlaneID string, routeID } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Route + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Route = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -1554,12 +1552,12 @@ func (s *Routes) CreateRouteWithService(ctx context.Context, request operations. } -// GetRouteWithService - Fetch a Route associated with a Service -// Get a Route associated with a Service using ID or name. -func (s *Routes) GetRouteWithService(ctx context.Context, request operations.GetRouteWithServiceRequest, opts ...operations.Option) (*operations.GetRouteWithServiceResponse, error) { +// DeleteRouteWithService - Delete a a Route associated with a a Service +// Delete a a Route associated with a a Service using ID or name. +func (s *Routes) DeleteRouteWithService(ctx context.Context, request operations.DeleteRouteWithServiceRequest, opts ...operations.Option) (*operations.DeleteRouteWithServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-route-with-service", + OperationID: "delete-route-with-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1593,11 +1591,11 @@ func (s *Routes) GetRouteWithService(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -1674,7 +1672,7 @@ func (s *Routes) GetRouteWithService(ctx context.Context, request operations.Get _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1689,7 +1687,7 @@ func (s *Routes) GetRouteWithService(ctx context.Context, request operations.Get } } - res := &operations.GetRouteWithServiceResponse{ + res := &operations.DeleteRouteWithServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1706,30 +1704,7 @@ func (s *Routes) GetRouteWithService(ctx context.Context, request operations.Get } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Route - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Route = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1752,12 +1727,12 @@ func (s *Routes) GetRouteWithService(ctx context.Context, request operations.Get } -// UpsertRouteWithService - Upsert a Route associated with a Service -// Create or Update a Route associated with a Service using ID or name. -func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations.UpsertRouteWithServiceRequest, opts ...operations.Option) (*operations.UpsertRouteWithServiceResponse, error) { +// GetRouteWithService - Fetch a Route associated with a Service +// Get a Route associated with a Service using ID or name. +func (s *Routes) GetRouteWithService(ctx context.Context, request operations.GetRouteWithServiceRequest, opts ...operations.Option) (*operations.GetRouteWithServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-route-with-service", + OperationID: "get-route-with-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1780,11 +1755,6 @@ func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "RouteWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1796,13 +1766,12 @@ func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1878,7 +1847,7 @@ func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations. _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1893,7 +1862,7 @@ func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations. } } - res := &operations.UpsertRouteWithServiceResponse{ + res := &operations.GetRouteWithServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1932,6 +1901,8 @@ func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations. return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1954,12 +1925,12 @@ func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations. } -// DeleteRouteWithService - Delete a a Route associated with a a Service -// Delete a a Route associated with a a Service using ID or name. -func (s *Routes) DeleteRouteWithService(ctx context.Context, request operations.DeleteRouteWithServiceRequest, opts ...operations.Option) (*operations.DeleteRouteWithServiceResponse, error) { +// UpsertRouteWithService - Upsert a Route associated with a Service +// Create or Update a Route associated with a Service using ID or name. +func (s *Routes) UpsertRouteWithService(ctx context.Context, request operations.UpsertRouteWithServiceRequest, opts ...operations.Option) (*operations.UpsertRouteWithServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-route-with-service", + OperationID: "upsert-route-with-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -1982,6 +1953,11 @@ func (s *Routes) DeleteRouteWithService(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "RouteWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1993,12 +1969,13 @@ func (s *Routes) DeleteRouteWithService(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -2089,7 +2066,7 @@ func (s *Routes) DeleteRouteWithService(ctx context.Context, request operations. } } - res := &operations.DeleteRouteWithServiceResponse{ + res := &operations.UpsertRouteWithServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2106,7 +2083,28 @@ func (s *Routes) DeleteRouteWithService(ctx context.Context, request operations. } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Route + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Route = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/sdk.go b/sdk.go index d23cc14..6f58995 100644 --- a/sdk.go +++ b/sdk.go @@ -131,9 +131,6 @@ type SDK struct { // - `grpcs`: At least one of `hosts`, `headers`, `paths`, or `snis` // - `ws`: At least one of `hosts`, `headers`, or `paths` // - `wss`: At least one of `hosts`, `headers`, `paths`, or `snis` - // - // - // //
// A route can't have both `tls` and `tls_passthrough` protocols at same time. //

@@ -261,9 +258,9 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.1", - SDKVersion: "0.0.11", + SDKVersion: "0.0.12", GenVersion: "2.415.0", - UserAgent: "speakeasy-sdk/go 0.0.11 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go", + UserAgent: "speakeasy-sdk/go 0.0.12 2.415.0 0.0.1 github.com/Kong/sdk-konnect-go", Hooks: hooks.New(), }, } diff --git a/services.go b/services.go index 323a390..df25ac8 100644 --- a/services.go +++ b/services.go @@ -484,17 +484,17 @@ func (s *Services) CreateService(ctx context.Context, controlPlaneID string, ser } -// GetService - Fetch a Service -// Get a Service using ID or name. -func (s *Services) GetService(ctx context.Context, controlPlaneID string, serviceID string, opts ...operations.Option) (*operations.GetServiceResponse, error) { +// DeleteService - Delete a Service +// Delete a Service +func (s *Services) DeleteService(ctx context.Context, controlPlaneID string, serviceID string, opts ...operations.Option) (*operations.DeleteServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-service", + OperationID: "delete-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetServiceRequest{ + request := operations.DeleteServiceRequest{ ControlPlaneID: controlPlaneID, ServiceID: serviceID, } @@ -528,7 +528,7 @@ func (s *Services) GetService(ctx context.Context, controlPlaneID string, servic defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -609,7 +609,7 @@ func (s *Services) GetService(ctx context.Context, controlPlaneID string, servic _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -624,7 +624,7 @@ func (s *Services) GetService(ctx context.Context, controlPlaneID string, servic } } - res := &operations.GetServiceResponse{ + res := &operations.DeleteServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -641,28 +641,7 @@ func (s *Services) GetService(ctx context.Context, controlPlaneID string, servic } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Service - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Service = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -685,8 +664,6 @@ func (s *Services) GetService(ctx context.Context, controlPlaneID string, servic return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -709,16 +686,21 @@ func (s *Services) GetService(ctx context.Context, controlPlaneID string, servic } -// UpsertService - Upsert a Service -// Create or Update Service using ID or name. -func (s *Services) UpsertService(ctx context.Context, request operations.UpsertServiceRequest, opts ...operations.Option) (*operations.UpsertServiceResponse, error) { +// GetService - Fetch a Service +// Get a Service using ID or name. +func (s *Services) GetService(ctx context.Context, serviceID string, controlPlaneID string, opts ...operations.Option) (*operations.GetServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-service", + OperationID: "get-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetServiceRequest{ + ServiceID: serviceID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -737,11 +719,6 @@ func (s *Services) UpsertService(ctx context.Context, request operations.UpsertS return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Service", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -753,13 +730,12 @@ func (s *Services) UpsertService(ctx context.Context, request operations.UpsertS defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -835,7 +811,7 @@ func (s *Services) UpsertService(ctx context.Context, request operations.UpsertS _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -850,7 +826,7 @@ func (s *Services) UpsertService(ctx context.Context, request operations.UpsertS } } - res := &operations.UpsertServiceResponse{ + res := &operations.GetServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -911,6 +887,8 @@ func (s *Services) UpsertService(ctx context.Context, request operations.UpsertS return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -933,21 +911,16 @@ func (s *Services) UpsertService(ctx context.Context, request operations.UpsertS } -// DeleteService - Delete a Service -// Delete a Service -func (s *Services) DeleteService(ctx context.Context, controlPlaneID string, serviceID string, opts ...operations.Option) (*operations.DeleteServiceResponse, error) { +// UpsertService - Upsert a Service +// Create or Update Service using ID or name. +func (s *Services) UpsertService(ctx context.Context, request operations.UpsertServiceRequest, opts ...operations.Option) (*operations.UpsertServiceResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-service", + OperationID: "upsert-service", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteServiceRequest{ - ControlPlaneID: controlPlaneID, - ServiceID: serviceID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -966,6 +939,11 @@ func (s *Services) DeleteService(ctx context.Context, controlPlaneID string, ser return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Service", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -977,12 +955,13 @@ func (s *Services) DeleteService(ctx context.Context, controlPlaneID string, ser defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1073,7 +1052,7 @@ func (s *Services) DeleteService(ctx context.Context, controlPlaneID string, ser } } - res := &operations.DeleteServiceResponse{ + res := &operations.UpsertServiceResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1090,7 +1069,28 @@ func (s *Services) DeleteService(ctx context.Context, controlPlaneID string, ser } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Service + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Service = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/snis.go b/snis.go index cd3c416..5a572a4 100644 --- a/snis.go +++ b/snis.go @@ -431,12 +431,12 @@ func (s *SNIs) CreateSniWithCertificate(ctx context.Context, request operations. } -// GetSniWithCertificate - Fetch an SNI associated with a Certificate -// Get an SNI associated with a Certificate using ID or name. -func (s *SNIs) GetSniWithCertificate(ctx context.Context, request operations.GetSniWithCertificateRequest, opts ...operations.Option) (*operations.GetSniWithCertificateResponse, error) { +// DeleteSniWithCertificate - Delete a an SNI associated with a a Certificate +// Delete a an SNI associated with a a Certificate using ID or name. +func (s *SNIs) DeleteSniWithCertificate(ctx context.Context, request operations.DeleteSniWithCertificateRequest, opts ...operations.Option) (*operations.DeleteSniWithCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-sni-with-certificate", + OperationID: "delete-sni-with-certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -470,11 +470,11 @@ func (s *SNIs) GetSniWithCertificate(ctx context.Context, request operations.Get defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -551,7 +551,7 @@ func (s *SNIs) GetSniWithCertificate(ctx context.Context, request operations.Get _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -566,7 +566,7 @@ func (s *SNIs) GetSniWithCertificate(ctx context.Context, request operations.Get } } - res := &operations.GetSniWithCertificateResponse{ + res := &operations.DeleteSniWithCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -583,30 +583,7 @@ func (s *SNIs) GetSniWithCertificate(ctx context.Context, request operations.Get } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Sni - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Sni = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -629,12 +606,12 @@ func (s *SNIs) GetSniWithCertificate(ctx context.Context, request operations.Get } -// UpsertSniWithCertificate - Upsert an SNI associated with a Certificate -// Create or Update an SNI associated with a Certificate using ID or name. -func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations.UpsertSniWithCertificateRequest, opts ...operations.Option) (*operations.UpsertSniWithCertificateResponse, error) { +// GetSniWithCertificate - Fetch an SNI associated with a Certificate +// Get an SNI associated with a Certificate using ID or name. +func (s *SNIs) GetSniWithCertificate(ctx context.Context, request operations.GetSniWithCertificateRequest, opts ...operations.Option) (*operations.GetSniWithCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-sni-with-certificate", + OperationID: "get-sni-with-certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -657,11 +634,6 @@ func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "SNIWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -673,13 +645,12 @@ func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -755,7 +726,7 @@ func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations. _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -770,7 +741,7 @@ func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations. } } - res := &operations.UpsertSniWithCertificateResponse{ + res := &operations.GetSniWithCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -809,6 +780,8 @@ func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations. return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -831,12 +804,12 @@ func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations. } -// DeleteSniWithCertificate - Delete a an SNI associated with a a Certificate -// Delete a an SNI associated with a a Certificate using ID or name. -func (s *SNIs) DeleteSniWithCertificate(ctx context.Context, request operations.DeleteSniWithCertificateRequest, opts ...operations.Option) (*operations.DeleteSniWithCertificateResponse, error) { +// UpsertSniWithCertificate - Upsert an SNI associated with a Certificate +// Create or Update an SNI associated with a Certificate using ID or name. +func (s *SNIs) UpsertSniWithCertificate(ctx context.Context, request operations.UpsertSniWithCertificateRequest, opts ...operations.Option) (*operations.UpsertSniWithCertificateResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-sni-with-certificate", + OperationID: "upsert-sni-with-certificate", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -859,6 +832,11 @@ func (s *SNIs) DeleteSniWithCertificate(ctx context.Context, request operations. return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "SNIWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -870,12 +848,13 @@ func (s *SNIs) DeleteSniWithCertificate(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -966,7 +945,7 @@ func (s *SNIs) DeleteSniWithCertificate(ctx context.Context, request operations. } } - res := &operations.DeleteSniWithCertificateResponse{ + res := &operations.UpsertSniWithCertificateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -983,7 +962,28 @@ func (s *SNIs) DeleteSniWithCertificate(ctx context.Context, request operations. } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Sni + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Sni = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1457,17 +1457,17 @@ func (s *SNIs) CreateSni(ctx context.Context, controlPlaneID string, sni compone } -// GetSni - Fetch an SNI -// Get an SNI using ID or name. -func (s *SNIs) GetSni(ctx context.Context, controlPlaneID string, sniID string, opts ...operations.Option) (*operations.GetSniResponse, error) { +// DeleteSni - Delete an SNI +// Delete an SNI +func (s *SNIs) DeleteSni(ctx context.Context, controlPlaneID string, sniID string, opts ...operations.Option) (*operations.DeleteSniResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-sni", + OperationID: "delete-sni", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetSniRequest{ + request := operations.DeleteSniRequest{ ControlPlaneID: controlPlaneID, SNIID: sniID, } @@ -1501,7 +1501,7 @@ func (s *SNIs) GetSni(ctx context.Context, controlPlaneID string, sniID string, defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -1582,7 +1582,7 @@ func (s *SNIs) GetSni(ctx context.Context, controlPlaneID string, sniID string, _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1597,7 +1597,7 @@ func (s *SNIs) GetSni(ctx context.Context, controlPlaneID string, sniID string, } } - res := &operations.GetSniResponse{ + res := &operations.DeleteSniResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1614,28 +1614,7 @@ func (s *SNIs) GetSni(ctx context.Context, controlPlaneID string, sniID string, } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Sni - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Sni = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -1658,8 +1637,6 @@ func (s *SNIs) GetSni(ctx context.Context, controlPlaneID string, sniID string, return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1682,16 +1659,21 @@ func (s *SNIs) GetSni(ctx context.Context, controlPlaneID string, sniID string, } -// UpsertSni - Upsert a SNI -// Create or Update SNI using ID or name. -func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniRequest, opts ...operations.Option) (*operations.UpsertSniResponse, error) { +// GetSni - Fetch an SNI +// Get an SNI using ID or name. +func (s *SNIs) GetSni(ctx context.Context, sniID string, controlPlaneID string, opts ...operations.Option) (*operations.GetSniResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-sni", + OperationID: "get-sni", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetSniRequest{ + SNIID: sniID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1710,11 +1692,6 @@ func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniReques return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Sni", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1726,13 +1703,12 @@ func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniReques defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1808,7 +1784,7 @@ func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniReques _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -1823,7 +1799,7 @@ func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniReques } } - res := &operations.UpsertSniResponse{ + res := &operations.GetSniResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1884,6 +1860,8 @@ func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniReques return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -1906,21 +1884,16 @@ func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniReques } -// DeleteSni - Delete an SNI -// Delete an SNI -func (s *SNIs) DeleteSni(ctx context.Context, controlPlaneID string, sniID string, opts ...operations.Option) (*operations.DeleteSniResponse, error) { +// UpsertSni - Upsert a SNI +// Create or Update SNI using ID or name. +func (s *SNIs) UpsertSni(ctx context.Context, request operations.UpsertSniRequest, opts ...operations.Option) (*operations.UpsertSniResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-sni", + OperationID: "upsert-sni", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteSniRequest{ - ControlPlaneID: controlPlaneID, - SNIID: sniID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1939,6 +1912,11 @@ func (s *SNIs) DeleteSni(ctx context.Context, controlPlaneID string, sniID strin return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Sni", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -1950,12 +1928,13 @@ func (s *SNIs) DeleteSni(ctx context.Context, controlPlaneID string, sniID strin defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -2046,7 +2025,7 @@ func (s *SNIs) DeleteSni(ctx context.Context, controlPlaneID string, sniID strin } } - res := &operations.DeleteSniResponse{ + res := &operations.UpsertSniResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2063,7 +2042,28 @@ func (s *SNIs) DeleteSni(ctx context.Context, controlPlaneID string, sniID strin } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Sni + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Sni = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/targets.go b/targets.go index c2ffdef..a1f8cf0 100644 --- a/targets.go +++ b/targets.go @@ -428,12 +428,12 @@ func (s *Targets) CreateTargetWithUpstream(ctx context.Context, request operatio } -// GetTargetWithUpstream - Fetch a Target associated with an Upstream -// Get a Target associated with an Upstream using ID or target. -func (s *Targets) GetTargetWithUpstream(ctx context.Context, request operations.GetTargetWithUpstreamRequest, opts ...operations.Option) (*operations.GetTargetWithUpstreamResponse, error) { +// DeleteTargetWithUpstream - Delete a a Target associated with a an Upstream +// Delete a a Target associated with a an Upstream using ID or target. +func (s *Targets) DeleteTargetWithUpstream(ctx context.Context, request operations.DeleteTargetWithUpstreamRequest, opts ...operations.Option) (*operations.DeleteTargetWithUpstreamResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-target-with-upstream", + OperationID: "delete-target-with-upstream", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -467,11 +467,11 @@ func (s *Targets) GetTargetWithUpstream(ctx context.Context, request operations. defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "application/json") + req.Header.Set("Accept", "*/*") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -548,7 +548,7 @@ func (s *Targets) GetTargetWithUpstream(ctx context.Context, request operations. _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -563,7 +563,7 @@ func (s *Targets) GetTargetWithUpstream(ctx context.Context, request operations. } } - res := &operations.GetTargetWithUpstreamResponse{ + res := &operations.DeleteTargetWithUpstreamResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -580,30 +580,7 @@ func (s *Targets) GetTargetWithUpstream(ctx context.Context, request operations. } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Target - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Target = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode == 404: - fallthrough + case httpRes.StatusCode == 204: case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -626,12 +603,12 @@ func (s *Targets) GetTargetWithUpstream(ctx context.Context, request operations. } -// UpsertTargetWithUpstream - Upsert a Target associated with an Upstream -// Create or Update a Target associated with an Upstream using ID or target. -func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operations.UpsertTargetWithUpstreamRequest, opts ...operations.Option) (*operations.UpsertTargetWithUpstreamResponse, error) { +// GetTargetWithUpstream - Fetch a Target associated with an Upstream +// Get a Target associated with an Upstream using ID or target. +func (s *Targets) GetTargetWithUpstream(ctx context.Context, request operations.GetTargetWithUpstreamRequest, opts ...operations.Option) (*operations.GetTargetWithUpstreamResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-target-with-upstream", + OperationID: "get-target-with-upstream", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -654,11 +631,6 @@ func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "TargetWithoutParents", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -670,13 +642,12 @@ func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operatio defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -752,7 +723,7 @@ func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operatio _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -767,7 +738,7 @@ func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operatio } } - res := &operations.UpsertTargetWithUpstreamResponse{ + res := &operations.GetTargetWithUpstreamResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -806,6 +777,8 @@ func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operatio return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -828,12 +801,12 @@ func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operatio } -// DeleteTargetWithUpstream - Delete a a Target associated with a an Upstream -// Delete a a Target associated with a an Upstream using ID or target. -func (s *Targets) DeleteTargetWithUpstream(ctx context.Context, request operations.DeleteTargetWithUpstreamRequest, opts ...operations.Option) (*operations.DeleteTargetWithUpstreamResponse, error) { +// UpsertTargetWithUpstream - Upsert a Target associated with an Upstream +// Create or Update a Target associated with an Upstream using ID or target. +func (s *Targets) UpsertTargetWithUpstream(ctx context.Context, request operations.UpsertTargetWithUpstreamRequest, opts ...operations.Option) (*operations.UpsertTargetWithUpstreamResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-target-with-upstream", + OperationID: "upsert-target-with-upstream", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } @@ -856,6 +829,11 @@ func (s *Targets) DeleteTargetWithUpstream(ctx context.Context, request operatio return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "TargetWithoutParents", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -867,12 +845,13 @@ func (s *Targets) DeleteTargetWithUpstream(ctx context.Context, request operatio defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -963,7 +942,7 @@ func (s *Targets) DeleteTargetWithUpstream(ctx context.Context, request operatio } } - res := &operations.DeleteTargetWithUpstreamResponse{ + res := &operations.UpsertTargetWithUpstreamResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -980,7 +959,28 @@ func (s *Targets) DeleteTargetWithUpstream(ctx context.Context, request operatio } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Target + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Target = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: diff --git a/upstreams.go b/upstreams.go index 78bae7b..d0cbc10 100644 --- a/upstreams.go +++ b/upstreams.go @@ -481,17 +481,17 @@ func (s *Upstreams) CreateUpstream(ctx context.Context, controlPlaneID string, u } -// GetUpstream - Fetch an Upstream -// Get an Upstream using ID or name. -func (s *Upstreams) GetUpstream(ctx context.Context, controlPlaneID string, upstreamID string, opts ...operations.Option) (*operations.GetUpstreamResponse, error) { +// DeleteUpstream - Delete an Upstream +// Delete an Upstream +func (s *Upstreams) DeleteUpstream(ctx context.Context, controlPlaneID string, upstreamID string, opts ...operations.Option) (*operations.DeleteUpstreamResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-upstream", + OperationID: "delete-upstream", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetUpstreamRequest{ + request := operations.DeleteUpstreamRequest{ ControlPlaneID: controlPlaneID, UpstreamID: upstreamID, } @@ -525,7 +525,7 @@ func (s *Upstreams) GetUpstream(ctx context.Context, controlPlaneID string, upst defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -606,7 +606,7 @@ func (s *Upstreams) GetUpstream(ctx context.Context, controlPlaneID string, upst _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -621,7 +621,7 @@ func (s *Upstreams) GetUpstream(ctx context.Context, controlPlaneID string, upst } } - res := &operations.GetUpstreamResponse{ + res := &operations.DeleteUpstreamResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -638,28 +638,7 @@ func (s *Upstreams) GetUpstream(ctx context.Context, controlPlaneID string, upst } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Upstream - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Upstream = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -682,8 +661,6 @@ func (s *Upstreams) GetUpstream(ctx context.Context, controlPlaneID string, upst return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -706,16 +683,21 @@ func (s *Upstreams) GetUpstream(ctx context.Context, controlPlaneID string, upst } -// UpsertUpstream - Upsert a Upstream -// Create or Update Upstream using ID or name. -func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.UpsertUpstreamRequest, opts ...operations.Option) (*operations.UpsertUpstreamResponse, error) { +// GetUpstream - Fetch an Upstream +// Get an Upstream using ID or name. +func (s *Upstreams) GetUpstream(ctx context.Context, upstreamID string, controlPlaneID string, opts ...operations.Option) (*operations.GetUpstreamResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-upstream", + OperationID: "get-upstream", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetUpstreamRequest{ + UpstreamID: upstreamID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -734,11 +716,6 @@ func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.Upser return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Upstream", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -750,13 +727,12 @@ func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.Upser defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -832,7 +808,7 @@ func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.Upser _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -847,7 +823,7 @@ func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.Upser } } - res := &operations.UpsertUpstreamResponse{ + res := &operations.GetUpstreamResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -908,6 +884,8 @@ func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.Upser return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -930,21 +908,16 @@ func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.Upser } -// DeleteUpstream - Delete an Upstream -// Delete an Upstream -func (s *Upstreams) DeleteUpstream(ctx context.Context, controlPlaneID string, upstreamID string, opts ...operations.Option) (*operations.DeleteUpstreamResponse, error) { +// UpsertUpstream - Upsert a Upstream +// Create or Update Upstream using ID or name. +func (s *Upstreams) UpsertUpstream(ctx context.Context, request operations.UpsertUpstreamRequest, opts ...operations.Option) (*operations.UpsertUpstreamResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-upstream", + OperationID: "upsert-upstream", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteUpstreamRequest{ - ControlPlaneID: controlPlaneID, - UpstreamID: upstreamID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -963,6 +936,11 @@ func (s *Upstreams) DeleteUpstream(ctx context.Context, controlPlaneID string, u return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Upstream", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -974,12 +952,13 @@ func (s *Upstreams) DeleteUpstream(ctx context.Context, controlPlaneID string, u defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1070,7 +1049,7 @@ func (s *Upstreams) DeleteUpstream(ctx context.Context, controlPlaneID string, u } } - res := &operations.DeleteUpstreamResponse{ + res := &operations.UpsertUpstreamResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1087,7 +1066,28 @@ func (s *Upstreams) DeleteUpstream(ctx context.Context, controlPlaneID string, u } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Upstream + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Upstream = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): diff --git a/vaults.go b/vaults.go index 539a664..7b9a3e1 100644 --- a/vaults.go +++ b/vaults.go @@ -484,17 +484,17 @@ func (s *Vaults) CreateVault(ctx context.Context, controlPlaneID string, vault c } -// GetVault - Fetch a Vault -// Get a Vault using ID or prefix. -func (s *Vaults) GetVault(ctx context.Context, controlPlaneID string, vaultID string, opts ...operations.Option) (*operations.GetVaultResponse, error) { +// DeleteVault - Delete a Vault +// Delete a Vault +func (s *Vaults) DeleteVault(ctx context.Context, controlPlaneID string, vaultID string, opts ...operations.Option) (*operations.DeleteVaultResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "get-vault", + OperationID: "delete-vault", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.GetVaultRequest{ + request := operations.DeleteVaultRequest{ ControlPlaneID: controlPlaneID, VaultID: vaultID, } @@ -528,7 +528,7 @@ func (s *Vaults) GetVault(ctx context.Context, controlPlaneID string, vaultID st defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -609,7 +609,7 @@ func (s *Vaults) GetVault(ctx context.Context, controlPlaneID string, vaultID st _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -624,7 +624,7 @@ func (s *Vaults) GetVault(ctx context.Context, controlPlaneID string, vaultID st } } - res := &operations.GetVaultResponse{ + res := &operations.DeleteVaultResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -641,28 +641,7 @@ func (s *Vaults) GetVault(ctx context.Context, controlPlaneID string, vaultID st } switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - var out components.Vault - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.Vault = &out - default: - rawBody, err := getRawBody() - if err != nil { - return nil, err - } - - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } + case httpRes.StatusCode == 204: case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): @@ -685,8 +664,6 @@ func (s *Vaults) GetVault(ctx context.Context, controlPlaneID string, vaultID st return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -709,16 +686,21 @@ func (s *Vaults) GetVault(ctx context.Context, controlPlaneID string, vaultID st } -// UpsertVault - Upsert a Vault -// Create or Update Vault using ID or prefix. -func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVaultRequest, opts ...operations.Option) (*operations.UpsertVaultResponse, error) { +// GetVault - Fetch a Vault +// Get a Vault using ID or prefix. +func (s *Vaults) GetVault(ctx context.Context, vaultID string, controlPlaneID string, opts ...operations.Option) (*operations.GetVaultResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "upsert-vault", + OperationID: "get-vault", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } + request := operations.GetVaultRequest{ + VaultID: vaultID, + ControlPlaneID: controlPlaneID, + } + o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -737,11 +719,6 @@ func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVault return nil, fmt.Errorf("error generating URL: %w", err) } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Vault", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -753,13 +730,12 @@ func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVault defer cancel() } - req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -835,7 +811,7 @@ func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVault _, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) return nil, err - } else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) { + } else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) { _httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) if err != nil { return nil, err @@ -850,7 +826,7 @@ func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVault } } - res := &operations.UpsertVaultResponse{ + res := &operations.GetVaultResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -911,6 +887,8 @@ func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVault return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) } + case httpRes.StatusCode == 404: + fallthrough case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: fallthrough case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: @@ -933,21 +911,16 @@ func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVault } -// DeleteVault - Delete a Vault -// Delete a Vault -func (s *Vaults) DeleteVault(ctx context.Context, controlPlaneID string, vaultID string, opts ...operations.Option) (*operations.DeleteVaultResponse, error) { +// UpsertVault - Upsert a Vault +// Create or Update Vault using ID or prefix. +func (s *Vaults) UpsertVault(ctx context.Context, request operations.UpsertVaultRequest, opts ...operations.Option) (*operations.UpsertVaultResponse, error) { hookCtx := hooks.HookContext{ Context: ctx, - OperationID: "delete-vault", + OperationID: "upsert-vault", OAuth2Scopes: []string{}, SecuritySource: s.sdkConfiguration.Security, } - request := operations.DeleteVaultRequest{ - ControlPlaneID: controlPlaneID, - VaultID: vaultID, - } - o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -966,6 +939,11 @@ func (s *Vaults) DeleteVault(ctx context.Context, controlPlaneID string, vaultID return nil, fmt.Errorf("error generating URL: %w", err) } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Vault", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + timeout := o.Timeout if timeout == nil { timeout = s.sdkConfiguration.Timeout @@ -977,12 +955,13 @@ func (s *Vaults) DeleteVault(ctx context.Context, controlPlaneID string, vaultID defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + req.Header.Set("Content-Type", reqContentType) if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -1073,7 +1052,7 @@ func (s *Vaults) DeleteVault(ctx context.Context, controlPlaneID string, vaultID } } - res := &operations.DeleteVaultResponse{ + res := &operations.UpsertVaultResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1090,7 +1069,28 @@ func (s *Vaults) DeleteVault(ctx context.Context, controlPlaneID string, vaultID } switch { - case httpRes.StatusCode == 204: + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + var out components.Vault + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Vault = &out + default: + rawBody, err := getRawBody() + if err != nil { + return nil, err + } + + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } case httpRes.StatusCode == 401: switch { case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):