|
| 1 | +// Code generated by ifacemaker; DO NOT EDIT. |
| 2 | + |
| 3 | +package sdkkonnectgo |
| 4 | + |
| 5 | +import ( |
| 6 | + "context" |
| 7 | + |
| 8 | + "github.com/Kong/sdk-konnect-go/models/components" |
| 9 | + "github.com/Kong/sdk-konnect-go/models/operations" |
| 10 | +) |
| 11 | + |
| 12 | +// PortalEmailsSDK is a generated interface. |
| 13 | +type PortalEmailsSDK interface { |
| 14 | + // GetEmailConfig - Get the email config for the portal |
| 15 | + // Retrieve the email config for the portal |
| 16 | + GetEmailConfig(ctx context.Context, portalID string, opts ...operations.Option) (*operations.GetEmailConfigResponse, error) |
| 17 | + // CreatePortalEmailConfig - Create the email config for a portal |
| 18 | + // Create the email config for a portal |
| 19 | + CreatePortalEmailConfig(ctx context.Context, portalID string, postPortalEmailConfig components.PostPortalEmailConfig, opts ...operations.Option) (*operations.CreatePortalEmailConfigResponse, error) |
| 20 | + // UpdatePortalEmailConfig - Setup the email config for a portal |
| 21 | + // Setup the email config for a portal |
| 22 | + UpdatePortalEmailConfig(ctx context.Context, portalID string, patchPortalEmailConfig *components.PatchPortalEmailConfig, opts ...operations.Option) (*operations.UpdatePortalEmailConfigResponse, error) |
| 23 | + // DeletePortalEmailConfig - Delete portal email config |
| 24 | + // Delete portal email config |
| 25 | + DeletePortalEmailConfig(ctx context.Context, portalID string, opts ...operations.Option) (*operations.DeletePortalEmailConfigResponse, error) |
| 26 | + // GetEmailDelivery - Get the email delivery for the portal |
| 27 | + // Retrieve the email delivery for the portal |
| 28 | + // |
| 29 | + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. |
| 30 | + GetEmailDelivery(ctx context.Context, portalID string, opts ...operations.Option) (*operations.GetEmailDeliveryResponse, error) |
| 31 | + // UpdateEmailDelivery - Setup the email delivery for a portal |
| 32 | + // Setup the email delivery for a portal |
| 33 | + // |
| 34 | + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. |
| 35 | + UpdateEmailDelivery(ctx context.Context, portalID string, emailDeliveryUpdatePayload components.EmailDeliveryUpdatePayload, opts ...operations.Option) (*operations.UpdateEmailDeliveryResponse, error) |
| 36 | + // DeleteEmailDelivery - Delete email delivery |
| 37 | + // Delete email delivery |
| 38 | + // |
| 39 | + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. |
| 40 | + DeleteEmailDelivery(ctx context.Context, portalID string, opts ...operations.Option) (*operations.DeleteEmailDeliveryResponse, error) |
| 41 | + // ListPortalCustomEmailTemplates - List custom email templates for a portal |
| 42 | + // List custom email templates |
| 43 | + ListPortalCustomEmailTemplates(ctx context.Context, portalID string, opts ...operations.Option) (*operations.ListPortalCustomEmailTemplatesResponse, error) |
| 44 | + // GetPortalCustomEmailTemplate - Get custom email template used in a portal |
| 45 | + // Get custom email template |
| 46 | + GetPortalCustomEmailTemplate(ctx context.Context, portalID string, templateName components.EmailTemplateName, opts ...operations.Option) (*operations.GetPortalCustomEmailTemplateResponse, error) |
| 47 | + // UpdatePortalCustomEmailTemplate - Update custom email template for a portal |
| 48 | + // Update custom email template |
| 49 | + UpdatePortalCustomEmailTemplate(ctx context.Context, request operations.UpdatePortalCustomEmailTemplateRequest, opts ...operations.Option) (*operations.UpdatePortalCustomEmailTemplateResponse, error) |
| 50 | + // DeletePortalCustomEmailTemplate - Delete custom email template |
| 51 | + // Delete custom email template for a portal. This will revert to using the default template |
| 52 | + DeletePortalCustomEmailTemplate(ctx context.Context, portalID string, templateName components.EmailTemplateName, opts ...operations.Option) (*operations.DeletePortalCustomEmailTemplateResponse, error) |
| 53 | + // PostPortalCustomEmailTestSend - Send Test Email |
| 54 | + // Send a test email based on the portal's email template, using the content provided in the request. |
| 55 | + // The email will be sent to the Konnect user who triggered the test. |
| 56 | + PostPortalCustomEmailTestSend(ctx context.Context, request operations.PostPortalCustomEmailTestSendRequest, opts ...operations.Option) (*operations.PostPortalCustomEmailTestSendResponse, error) |
| 57 | + // ListEmailDomains - List email domains |
| 58 | + // List email domains |
| 59 | + ListEmailDomains(ctx context.Context, request operations.ListEmailDomainsRequest, opts ...operations.Option) (*operations.ListEmailDomainsResponse, error) |
| 60 | + // CreateEmailDomain - Create an email domain |
| 61 | + // Create an email domain |
| 62 | + CreateEmailDomain(ctx context.Context, request components.EmailDomainPayload, opts ...operations.Option) (*operations.CreateEmailDomainResponse, error) |
| 63 | + // GetEmailDomain - Get an email domain |
| 64 | + // Get an email domain |
| 65 | + GetEmailDomain(ctx context.Context, emailDomain string, opts ...operations.Option) (*operations.GetEmailDomainResponse, error) |
| 66 | + // DeleteEmailDomain - Delete an email domain |
| 67 | + // Delete an email domain |
| 68 | + DeleteEmailDomain(ctx context.Context, emailDomain string, opts ...operations.Option) (*operations.DeleteEmailDomainResponse, error) |
| 69 | + // ListDefaultEmailTemplates - List default email templates |
| 70 | + // List default email templates |
| 71 | + ListDefaultEmailTemplates(ctx context.Context, opts ...operations.Option) (*operations.ListDefaultEmailTemplatesResponse, error) |
| 72 | + // GetDefaultEmailTemplate - Get default email template |
| 73 | + // Get default email template |
| 74 | + GetDefaultEmailTemplate(ctx context.Context, templateName components.EmailTemplateName, opts ...operations.Option) (*operations.GetDefaultEmailTemplateResponse, error) |
| 75 | + // ListEmailTemplateVariables - List email template variables |
| 76 | + // List email template variables |
| 77 | + ListEmailTemplateVariables(ctx context.Context, opts ...operations.Option) (*operations.ListEmailTemplateVariablesResponse, error) |
| 78 | +} |
0 commit comments