organizationprojects

package
v0.118.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

	// OrganizationProjectsGet [EXPERIMENTAL] Retrieve project under the organization
	// GET /v1/organization/{organization_id}/projects/{project_id}
	// https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationProjectsGet
	OrganizationProjectsGet(ctx context.Context, organizationId string, projectId string) (*OrganizationProjectsGetOut, 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 OrganizationProjectsGetOut added in v0.107.0

type OrganizationProjectsGetOut 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
}

OrganizationProjectsGetOut OrganizationProjectsGetResponse

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 (h *OrganizationProjectsHandler) OrganizationProjectsDelete(ctx context.Context, organizationId string, projectId string) error

func (*OrganizationProjectsHandler) OrganizationProjectsGet added in v0.107.0

func (h *OrganizationProjectsHandler) OrganizationProjectsGet(ctx context.Context, organizationId string, projectId string) (*OrganizationProjectsGetOut, error)

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
	ProjectName    *string            `json:"project_name,omitempty"`     // Project name
	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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL