Documentation
¶
Index ¶
- type EndOfLifeExtension
- type Handler
- type OrganizationProjectsCreateIn
- type OrganizationProjectsCreateOut
- type OrganizationProjectsHandler
- func (h *OrganizationProjectsHandler) OrganizationProjectsCreate(ctx context.Context, organizationId string, in *OrganizationProjectsCreateIn) (*OrganizationProjectsCreateOut, error)
- func (h *OrganizationProjectsHandler) OrganizationProjectsDelete(ctx context.Context, organizationId string, projectId string) error
- func (h *OrganizationProjectsHandler) OrganizationProjectsList(ctx context.Context, organizationId string) (*OrganizationProjectsListOut, error)
- func (h *OrganizationProjectsHandler) OrganizationProjectsUpdate(ctx context.Context, organizationId string, projectId string, ...) (*OrganizationProjectsUpdateOut, error)
- type OrganizationProjectsListOut
- type OrganizationProjectsUpdateIn
- type OrganizationProjectsUpdateOut
- type ProjectOut
- type TechEmailIn
- type TechEmailOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndOfLifeExtension ¶
type EndOfLifeExtension struct {
EolDate string `json:"eol_date"` // Extended EOL date
Version string `json:"version"` // Service version
}
EndOfLifeExtension ServiceEndOfLifeExtension
type Handler ¶
type Handler interface {
// OrganizationProjectsCreate [EXPERIMENTAL] Create project under the organization
// POST /v1/organization/{organization_id}/projects
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationProjectsCreate
OrganizationProjectsCreate(ctx context.Context, organizationId string, in *OrganizationProjectsCreateIn) (*OrganizationProjectsCreateOut, error)
// OrganizationProjectsDelete [EXPERIMENTAL] Delete project under the organization
// DELETE /v1/organization/{organization_id}/projects/{project_id}
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationProjectsDelete
OrganizationProjectsDelete(ctx context.Context, organizationId string, projectId string) error
// OrganizationProjectsList [EXPERIMENTAL] List projects under the organization
// GET /v1/organization/{organization_id}/projects
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationProjectsList
OrganizationProjectsList(ctx context.Context, organizationId string) (*OrganizationProjectsListOut, error)
// OrganizationProjectsUpdate [EXPERIMENTAL] Update project under the organization
// PATCH /v1/organization/{organization_id}/projects/{project_id}
// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationProjectsUpdate
OrganizationProjectsUpdate(ctx context.Context, organizationId string, projectId string, in *OrganizationProjectsUpdateIn) (*OrganizationProjectsUpdateOut, error)
}
type OrganizationProjectsCreateIn ¶
type OrganizationProjectsCreateIn struct {
BasePort *int `json:"base_port,omitempty"` // Valid port number (1-65535)
BillingGroupId string `json:"billing_group_id"` // Billing group ID to assign to the project.
ParentId *string `json:"parent_id,omitempty"` // Organization or unit ID to where to move the project
ProjectId string `json:"project_id"` // Project ID
Tags map[string]string `json:"tags"` // Tags
TechEmails *[]TechEmailIn `json:"tech_emails,omitempty"` // Technical contact emails
}
OrganizationProjectsCreateIn OrganizationProjectsCreateRequestBody
type OrganizationProjectsCreateOut ¶
type OrganizationProjectsCreateOut struct {
AccountId *string `json:"account_id,omitempty"` // [DEPRECATED] Account ID to where the project belongs
BasePort *int `json:"base_port,omitempty"` // Valid port number (1-65535)
BillingGroupId *string `json:"billing_group_id,omitempty"` // Billing group ID
EndOfLifeExtension map[string]EndOfLifeExtension `json:"end_of_life_extension"` // End of life extension information
Features map[string]bool `json:"features,omitempty"` // Feature flags
OrganizationId string `json:"organization_id"` // Organization ID
ParentId *string `json:"parent_id,omitempty"` // Organization or unit ID to where the project belongs
ProjectId string `json:"project_id"` // Project ID
Tags map[string]string `json:"tags"` // Tags
TechEmails []TechEmailOut `json:"tech_emails"` // List of project technical email addresses
}
OrganizationProjectsCreateOut OrganizationProjectsCreateResponse
type OrganizationProjectsHandler ¶
type OrganizationProjectsHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) OrganizationProjectsHandler
func (*OrganizationProjectsHandler) OrganizationProjectsCreate ¶
func (h *OrganizationProjectsHandler) OrganizationProjectsCreate(ctx context.Context, organizationId string, in *OrganizationProjectsCreateIn) (*OrganizationProjectsCreateOut, error)
func (*OrganizationProjectsHandler) OrganizationProjectsDelete ¶
func (*OrganizationProjectsHandler) OrganizationProjectsList ¶
func (h *OrganizationProjectsHandler) OrganizationProjectsList(ctx context.Context, organizationId string) (*OrganizationProjectsListOut, error)
func (*OrganizationProjectsHandler) OrganizationProjectsUpdate ¶
func (h *OrganizationProjectsHandler) OrganizationProjectsUpdate(ctx context.Context, organizationId string, projectId string, in *OrganizationProjectsUpdateIn) (*OrganizationProjectsUpdateOut, error)
type OrganizationProjectsListOut ¶
type OrganizationProjectsListOut struct {
Projects []ProjectOut `json:"projects"` // List of projects
TotalProjectCount int `json:"total_project_count"` // Total number of projects
}
OrganizationProjectsListOut OrganizationProjectsListResponse
type OrganizationProjectsUpdateIn ¶
type OrganizationProjectsUpdateIn struct {
BasePort *int `json:"base_port,omitempty"` // Valid port number (1-65535)
BillingGroupId *string `json:"billing_group_id,omitempty"` // Billing group ID to assign to the project. It's required when moving projects between organizations
OrganizationId *string `json:"organization_id,omitempty"` // Organization ID
ParentId *string `json:"parent_id,omitempty"` // Organization or unit ID to where to move the project
Tags *map[string]string `json:"tags,omitempty"` // Tags
TechEmails *[]TechEmailIn `json:"tech_emails,omitempty"` // Technical contact emails
}
OrganizationProjectsUpdateIn OrganizationProjectsUpdateRequestBody
type OrganizationProjectsUpdateOut ¶
type OrganizationProjectsUpdateOut struct {
AccountId *string `json:"account_id,omitempty"` // [DEPRECATED] Account ID to where the project belongs
BasePort *int `json:"base_port,omitempty"` // Valid port number (1-65535)
BillingGroupId *string `json:"billing_group_id,omitempty"` // Billing group ID
EndOfLifeExtension map[string]EndOfLifeExtension `json:"end_of_life_extension"` // End of life extension information
Features map[string]bool `json:"features,omitempty"` // Feature flags
OrganizationId string `json:"organization_id"` // Organization ID
ParentId *string `json:"parent_id,omitempty"` // Organization or unit ID to where the project belongs
ProjectId string `json:"project_id"` // Project ID
Tags map[string]string `json:"tags"` // Tags
TechEmails []TechEmailOut `json:"tech_emails"` // List of project technical email addresses
}
OrganizationProjectsUpdateOut OrganizationProjectsUpdateResponse
type ProjectOut ¶
type ProjectOut struct {
AccountId *string `json:"account_id,omitempty"` // [DEPRECATED] Account ID to where the project belongs
BasePort *int `json:"base_port,omitempty"` // Valid port number (1-65535)
BillingGroupId *string `json:"billing_group_id,omitempty"` // Billing group ID
EndOfLifeExtension map[string]EndOfLifeExtension `json:"end_of_life_extension"` // End of life extension information
ParentId *string `json:"parent_id,omitempty"` // Organization or unit ID to where the project belongs
ProjectId string `json:"project_id"` // Project ID
Tags map[string]string `json:"tags"` // Tags
TechEmails []TechEmailOut `json:"tech_emails"` // List of project technical email addresses
}
type TechEmailIn ¶
type TechEmailIn struct {
Email string `json:"email"` // Technical contact email
}
type TechEmailOut ¶
type TechEmailOut struct {
Email string `json:"email"` // Technical contact email
}
Click to show internal directories.
Click to hide internal directories.