project

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BillingCurrencyTypeChoices

func BillingCurrencyTypeChoices() []string

func MemberTypeChoices

func MemberTypeChoices() []string

Types

type AlertOut

type AlertOut struct {
	CreateTime  time.Time `json:"create_time"`
	Event       string    `json:"event"`
	NodeName    string    `json:"node_name,omitempty"`
	ProjectName string    `json:"project_name"`
	ServiceName string    `json:"service_name,omitempty"`
	ServiceType string    `json:"service_type,omitempty"`
	Severity    string    `json:"severity"`
}

type BillingCurrencyType

type BillingCurrencyType string
const (
	BillingCurrencyTypeAud BillingCurrencyType = "AUD"
	BillingCurrencyTypeCad BillingCurrencyType = "CAD"
	BillingCurrencyTypeChf BillingCurrencyType = "CHF"
	BillingCurrencyTypeDkk BillingCurrencyType = "DKK"
	BillingCurrencyTypeEur BillingCurrencyType = "EUR"
	BillingCurrencyTypeGbp BillingCurrencyType = "GBP"
	BillingCurrencyTypeJpy BillingCurrencyType = "JPY"
	BillingCurrencyTypeNok BillingCurrencyType = "NOK"
	BillingCurrencyTypeNzd BillingCurrencyType = "NZD"
	BillingCurrencyTypeSek BillingCurrencyType = "SEK"
	BillingCurrencyTypeSgd BillingCurrencyType = "SGD"
	BillingCurrencyTypeUsd BillingCurrencyType = "USD"
)

type BillingEmailIn

type BillingEmailIn struct {
	Email string `json:"email"`
}

type BillingEmailOut

type BillingEmailOut struct {
	Email string `json:"email"`
}

type CardInfoOut

type CardInfoOut struct {
	Brand       string `json:"brand"`
	CardId      string `json:"card_id"`
	Country     string `json:"country"`
	CountryCode string `json:"country_code"`
	ExpMonth    int    `json:"exp_month"`
	ExpYear     int    `json:"exp_year"`
	Last4       string `json:"last4"`
	Name        string `json:"name"`
	UserEmail   string `json:"user_email"`
}

type ElasticsearchOut

type ElasticsearchOut struct {
	EolDate string `json:"eol_date"`
	Version string `json:"version"`
}

type EndOfLifeExtensionOut

type EndOfLifeExtensionOut struct {
	Elasticsearch *ElasticsearchOut `json:"elasticsearch,omitempty"`
}

type EventOut

type EventOut struct {
	Actor       string `json:"actor"`
	EventDesc   string `json:"event_desc"`
	EventType   string `json:"event_type"`
	Id          string `json:"id"`
	ServiceName string `json:"service_name"`
	Time        string `json:"time"`
}

type GroupUserOut

type GroupUserOut struct {
	MemberType  string `json:"member_type"`
	RealName    string `json:"real_name"`
	UserEmail   string `json:"user_email"`
	UserGroupId string `json:"user_group_id"`
}

type Handler

type Handler interface {
	// ListProjectVpcPeeringConnectionTypes list VPC peering connection types for a project
	// GET /project/{project}/vpc-peering-connection-types
	// https://api.aiven.io/doc/#tag/Project/operation/ListProjectVpcPeeringConnectionTypes
	ListProjectVpcPeeringConnectionTypes(ctx context.Context, project string) ([]VpcPeeringConnectionTypeOut, error)

	// ProjectAlertsList list active alerts for a project
	// GET /project/{project}/alerts
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectAlertsList
	ProjectAlertsList(ctx context.Context, project string) ([]AlertOut, error)

	// ProjectCreate create a project
	// POST /project
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectCreate
	ProjectCreate(ctx context.Context, in *ProjectCreateIn) (*ProjectCreateOut, error)

	// ProjectDelete delete project
	// DELETE /project/{project}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectDelete
	ProjectDelete(ctx context.Context, project string) error

	// ProjectGenerateSbomDownloadUrl generate SBOM for project
	// GET /project/{project}/generate-sbom-download-url/{file_format}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectGenerateSbomDownloadUrl
	ProjectGenerateSbomDownloadUrl(ctx context.Context, project string, fileFormat string) (string, error)

	// ProjectGet get project details
	// GET /project/{project}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectGet
	ProjectGet(ctx context.Context, project string) (*ProjectGetOut, error)

	// ProjectGetEventLogs get project event log entries
	// GET /project/{project}/events
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectGetEventLogs
	ProjectGetEventLogs(ctx context.Context, project string) ([]EventOut, error)

	// ProjectInvite send project membership invitation
	// POST /project/{project}/invite
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectInvite
	ProjectInvite(ctx context.Context, project string, in *ProjectInviteIn) error

	// ProjectInviteAccept confirm project invite
	// POST /project/{project}/invite/{invite_verification_code}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectInviteAccept
	ProjectInviteAccept(ctx context.Context, project string, inviteVerificationCode string) (*ProjectInviteAcceptOut, error)

	// ProjectInviteDelete delete an invitation to a project
	// DELETE /project/{project}/invite/{invited_email}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectInviteDelete
	ProjectInviteDelete(ctx context.Context, project string, invitedEmail string) error

	// ProjectKmsGetCA retrieve project CA certificate
	// GET /project/{project}/kms/ca
	// https://api.aiven.io/doc/#tag/Project_Key_Management/operation/ProjectKmsGetCA
	ProjectKmsGetCA(ctx context.Context, project string) (string, error)

	// ProjectList list projects
	// GET /project
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectList
	ProjectList(ctx context.Context) (*ProjectListOut, error)

	// ProjectPrivatelinkAvailabilityList list Privatelink cloud availability and prices for a project
	// GET /project/{project}/privatelink-availability
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectPrivatelinkAvailabilityList
	ProjectPrivatelinkAvailabilityList(ctx context.Context, project string) ([]PrivatelinkAvailabilityOut, error)

	// ProjectTagsList list all tags attached to this project
	// GET /project/{project}/tags
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectTagsList
	ProjectTagsList(ctx context.Context, project string) (map[string]string, error)

	// ProjectTagsReplace replace all project tags with a new set of tags, deleting old ones
	// PUT /project/{project}/tags
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectTagsReplace
	ProjectTagsReplace(ctx context.Context, project string, in *ProjectTagsReplaceIn) error

	// ProjectTagsUpdate update one or more tags, creating ones that don't exist, and deleting ones given NULL value
	// PATCH /project/{project}/tags
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectTagsUpdate
	ProjectTagsUpdate(ctx context.Context, project string, in *ProjectTagsUpdateIn) error

	// ProjectUpdate update project
	// PUT /project/{project}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectUpdate
	ProjectUpdate(ctx context.Context, project string, in *ProjectUpdateIn) (*ProjectUpdateOut, error)

	// ProjectUserList list users with access to the project. May contain same user multiple times if they belong to multiple teams associated to the project
	// GET /project/{project}/users
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectUserList
	ProjectUserList(ctx context.Context, project string) (*ProjectUserListOut, error)

	// ProjectUserRemove remove user from the project
	// DELETE /project/{project}/user/{user_email}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectUserRemove
	ProjectUserRemove(ctx context.Context, project string, userEmail string) error

	// ProjectUserUpdate update a project user
	// PUT /project/{project}/user/{user_email}
	// https://api.aiven.io/doc/#tag/Project/operation/ProjectUserUpdate
	ProjectUserUpdate(ctx context.Context, project string, userEmail string, in *ProjectUserUpdateIn) error
}

type InvitationOut

type InvitationOut struct {
	InviteTime        time.Time `json:"invite_time"`
	InvitedUserEmail  string    `json:"invited_user_email"`
	InvitingUserEmail string    `json:"inviting_user_email"`
	MemberType        string    `json:"member_type"`
}

type MemberType

type MemberType string
const (
	MemberTypeAdmin     MemberType = "admin"
	MemberTypeDeveloper MemberType = "developer"
	MemberTypeOperator  MemberType = "operator"
	MemberTypeReadOnly  MemberType = "read_only"
)

type PrivatelinkAvailabilityOut

type PrivatelinkAvailabilityOut struct {
	CloudName string `json:"cloud_name"`
	PriceUsd  string `json:"price_usd"`
}

type ProjectCreateIn

type ProjectCreateIn struct {
	AccountId                    string              `json:"account_id,omitempty"`
	AddAccountOwnersAdminAccess  *bool               `json:"add_account_owners_admin_access,omitempty"`
	AddressLines                 *[]string           `json:"address_lines,omitempty"`
	BillingAddress               string              `json:"billing_address,omitempty"`
	BillingCurrency              BillingCurrencyType `json:"billing_currency,omitempty"`
	BillingEmails                *[]BillingEmailIn   `json:"billing_emails,omitempty"`
	BillingExtraText             string              `json:"billing_extra_text,omitempty"`
	BillingGroupId               string              `json:"billing_group_id,omitempty"`
	CardId                       string              `json:"card_id,omitempty"`
	City                         string              `json:"city,omitempty"`
	Cloud                        string              `json:"cloud,omitempty"`
	Company                      string              `json:"company,omitempty"`
	CopyFromProject              string              `json:"copy_from_project,omitempty"`
	CopyTags                     *bool               `json:"copy_tags,omitempty"`
	CountryCode                  string              `json:"country_code,omitempty"`
	Project                      string              `json:"project"`
	State                        string              `json:"state,omitempty"`
	Tags                         *map[string]string  `json:"tags,omitempty"`
	TechEmails                   *[]TechEmailIn      `json:"tech_emails,omitempty"`
	UseSourceProjectBillingGroup *bool               `json:"use_source_project_billing_group,omitempty"`
	VatId                        string              `json:"vat_id,omitempty"`
	ZipCode                      string              `json:"zip_code,omitempty"`
}

type ProjectCreateOut

type ProjectCreateOut struct {
	AccountId             string                 `json:"account_id"`
	AccountName           string                 `json:"account_name,omitempty"`
	AddressLines          []string               `json:"address_lines,omitempty"`
	AvailableCredits      string                 `json:"available_credits,omitempty"`
	BillingAddress        string                 `json:"billing_address"`
	BillingCurrency       string                 `json:"billing_currency,omitempty"`
	BillingEmails         []BillingEmailOut      `json:"billing_emails"`
	BillingExtraText      string                 `json:"billing_extra_text,omitempty"`
	BillingGroupId        string                 `json:"billing_group_id"`
	BillingGroupName      string                 `json:"billing_group_name"`
	CardInfo              *CardInfoOut           `json:"card_info,omitempty"`
	City                  string                 `json:"city,omitempty"`
	Company               string                 `json:"company,omitempty"`
	Country               string                 `json:"country"`
	CountryCode           string                 `json:"country_code"`
	DefaultCloud          string                 `json:"default_cloud"`
	EndOfLifeExtension    *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"`
	EstimatedBalance      string                 `json:"estimated_balance"`
	EstimatedBalanceLocal string                 `json:"estimated_balance_local,omitempty"`
	Features              map[string]any         `json:"features,omitempty"`
	OrganizationId        string                 `json:"organization_id"`
	PaymentMethod         string                 `json:"payment_method"`
	ProjectName           string                 `json:"project_name"`
	State                 string                 `json:"state,omitempty"`
	Tags                  map[string]string      `json:"tags,omitempty"`
	TechEmails            []TechEmailOut         `json:"tech_emails,omitempty"`
	TenantId              string                 `json:"tenant_id,omitempty"`
	TrialExpirationTime   *time.Time             `json:"trial_expiration_time,omitempty"`
	VatId                 string                 `json:"vat_id"`
	ZipCode               string                 `json:"zip_code,omitempty"`
}

type ProjectGetOut

type ProjectGetOut struct {
	AccountId             string                 `json:"account_id"`
	AccountName           string                 `json:"account_name,omitempty"`
	AddressLines          []string               `json:"address_lines,omitempty"`
	AvailableCredits      string                 `json:"available_credits,omitempty"`
	BillingAddress        string                 `json:"billing_address"`
	BillingCurrency       string                 `json:"billing_currency,omitempty"`
	BillingEmails         []BillingEmailOut      `json:"billing_emails"`
	BillingExtraText      string                 `json:"billing_extra_text,omitempty"`
	BillingGroupId        string                 `json:"billing_group_id"`
	BillingGroupName      string                 `json:"billing_group_name"`
	CardInfo              *CardInfoOut           `json:"card_info,omitempty"`
	City                  string                 `json:"city,omitempty"`
	Company               string                 `json:"company,omitempty"`
	Country               string                 `json:"country"`
	CountryCode           string                 `json:"country_code"`
	DefaultCloud          string                 `json:"default_cloud"`
	EndOfLifeExtension    *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"`
	EstimatedBalance      string                 `json:"estimated_balance"`
	EstimatedBalanceLocal string                 `json:"estimated_balance_local,omitempty"`
	Features              map[string]any         `json:"features,omitempty"`
	OrganizationId        string                 `json:"organization_id"`
	PaymentMethod         string                 `json:"payment_method"`
	ProjectName           string                 `json:"project_name"`
	State                 string                 `json:"state,omitempty"`
	Tags                  map[string]string      `json:"tags,omitempty"`
	TechEmails            []TechEmailOut         `json:"tech_emails,omitempty"`
	TenantId              string                 `json:"tenant_id,omitempty"`
	TrialExpirationTime   *time.Time             `json:"trial_expiration_time,omitempty"`
	VatId                 string                 `json:"vat_id"`
	ZipCode               string                 `json:"zip_code,omitempty"`
}

type ProjectHandler

type ProjectHandler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(doer doer) ProjectHandler

func (*ProjectHandler) ListProjectVpcPeeringConnectionTypes

func (h *ProjectHandler) ListProjectVpcPeeringConnectionTypes(ctx context.Context, project string) ([]VpcPeeringConnectionTypeOut, error)

func (*ProjectHandler) ProjectAlertsList

func (h *ProjectHandler) ProjectAlertsList(ctx context.Context, project string) ([]AlertOut, error)

func (*ProjectHandler) ProjectCreate

func (h *ProjectHandler) ProjectCreate(ctx context.Context, in *ProjectCreateIn) (*ProjectCreateOut, error)

func (*ProjectHandler) ProjectDelete

func (h *ProjectHandler) ProjectDelete(ctx context.Context, project string) error

func (*ProjectHandler) ProjectGenerateSbomDownloadUrl

func (h *ProjectHandler) ProjectGenerateSbomDownloadUrl(ctx context.Context, project string, fileFormat string) (string, error)

func (*ProjectHandler) ProjectGet

func (h *ProjectHandler) ProjectGet(ctx context.Context, project string) (*ProjectGetOut, error)

func (*ProjectHandler) ProjectGetEventLogs

func (h *ProjectHandler) ProjectGetEventLogs(ctx context.Context, project string) ([]EventOut, error)

func (*ProjectHandler) ProjectInvite

func (h *ProjectHandler) ProjectInvite(ctx context.Context, project string, in *ProjectInviteIn) error

func (*ProjectHandler) ProjectInviteAccept

func (h *ProjectHandler) ProjectInviteAccept(ctx context.Context, project string, inviteVerificationCode string) (*ProjectInviteAcceptOut, error)

func (*ProjectHandler) ProjectInviteDelete

func (h *ProjectHandler) ProjectInviteDelete(ctx context.Context, project string, invitedEmail string) error

func (*ProjectHandler) ProjectKmsGetCA

func (h *ProjectHandler) ProjectKmsGetCA(ctx context.Context, project string) (string, error)

func (*ProjectHandler) ProjectList

func (h *ProjectHandler) ProjectList(ctx context.Context) (*ProjectListOut, error)

func (*ProjectHandler) ProjectPrivatelinkAvailabilityList

func (h *ProjectHandler) ProjectPrivatelinkAvailabilityList(ctx context.Context, project string) ([]PrivatelinkAvailabilityOut, error)

func (*ProjectHandler) ProjectTagsList

func (h *ProjectHandler) ProjectTagsList(ctx context.Context, project string) (map[string]string, error)

func (*ProjectHandler) ProjectTagsReplace

func (h *ProjectHandler) ProjectTagsReplace(ctx context.Context, project string, in *ProjectTagsReplaceIn) error

func (*ProjectHandler) ProjectTagsUpdate

func (h *ProjectHandler) ProjectTagsUpdate(ctx context.Context, project string, in *ProjectTagsUpdateIn) error

func (*ProjectHandler) ProjectUpdate

func (h *ProjectHandler) ProjectUpdate(ctx context.Context, project string, in *ProjectUpdateIn) (*ProjectUpdateOut, error)

func (*ProjectHandler) ProjectUserList

func (h *ProjectHandler) ProjectUserList(ctx context.Context, project string) (*ProjectUserListOut, error)

func (*ProjectHandler) ProjectUserRemove

func (h *ProjectHandler) ProjectUserRemove(ctx context.Context, project string, userEmail string) error

func (*ProjectHandler) ProjectUserUpdate

func (h *ProjectHandler) ProjectUserUpdate(ctx context.Context, project string, userEmail string, in *ProjectUserUpdateIn) error

type ProjectInviteAcceptOut

type ProjectInviteAcceptOut struct {
	UserEmail string `json:"user_email"`
}

type ProjectInviteIn

type ProjectInviteIn struct {
	MemberType MemberType `json:"member_type,omitempty"`
	UserEmail  string     `json:"user_email"`
}

type ProjectListOut

type ProjectListOut struct {
	ProjectMembership  ProjectMembershipOut   `json:"project_membership"`
	ProjectMemberships *ProjectMembershipsOut `json:"project_memberships,omitempty"`
	Projects           []ProjectOut           `json:"projects"`
}

type ProjectMembershipOut

type ProjectMembershipOut struct {
	Any string `json:"ANY,omitempty"`
}

type ProjectMembershipsOut

type ProjectMembershipsOut struct {
	Any []string `json:"ANY,omitempty"`
}

type ProjectOut

type ProjectOut struct {
	AccountId             string                 `json:"account_id"`
	AccountName           string                 `json:"account_name,omitempty"`
	AddressLines          []string               `json:"address_lines,omitempty"`
	AvailableCredits      string                 `json:"available_credits,omitempty"`
	BillingAddress        string                 `json:"billing_address"`
	BillingCurrency       string                 `json:"billing_currency,omitempty"`
	BillingEmails         []BillingEmailOut      `json:"billing_emails"`
	BillingExtraText      string                 `json:"billing_extra_text,omitempty"`
	BillingGroupId        string                 `json:"billing_group_id"`
	BillingGroupName      string                 `json:"billing_group_name"`
	CardInfo              *CardInfoOut           `json:"card_info,omitempty"`
	City                  string                 `json:"city,omitempty"`
	Company               string                 `json:"company,omitempty"`
	Country               string                 `json:"country"`
	CountryCode           string                 `json:"country_code"`
	DefaultCloud          string                 `json:"default_cloud"`
	EndOfLifeExtension    *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"`
	EstimatedBalance      string                 `json:"estimated_balance"`
	EstimatedBalanceLocal string                 `json:"estimated_balance_local,omitempty"`
	Features              map[string]any         `json:"features,omitempty"`
	OrganizationId        string                 `json:"organization_id"`
	PaymentMethod         string                 `json:"payment_method"`
	ProjectName           string                 `json:"project_name"`
	State                 string                 `json:"state,omitempty"`
	Tags                  map[string]string      `json:"tags,omitempty"`
	TechEmails            []TechEmailOut         `json:"tech_emails,omitempty"`
	TenantId              string                 `json:"tenant_id,omitempty"`
	TrialExpirationTime   *time.Time             `json:"trial_expiration_time,omitempty"`
	VatId                 string                 `json:"vat_id"`
	ZipCode               string                 `json:"zip_code,omitempty"`
}

type ProjectTagsReplaceIn

type ProjectTagsReplaceIn struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type ProjectTagsUpdateIn

type ProjectTagsUpdateIn struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type ProjectUpdateIn

type ProjectUpdateIn struct {
	AccountId                   string              `json:"account_id,omitempty"`
	AddAccountOwnersAdminAccess *bool               `json:"add_account_owners_admin_access,omitempty"`
	AddressLines                *[]string           `json:"address_lines,omitempty"`
	BillingAddress              string              `json:"billing_address,omitempty"`
	BillingCurrency             BillingCurrencyType `json:"billing_currency,omitempty"`
	BillingEmails               *[]BillingEmailIn   `json:"billing_emails,omitempty"`
	BillingExtraText            string              `json:"billing_extra_text,omitempty"`
	BillingGroupId              string              `json:"billing_group_id,omitempty"`
	CardId                      string              `json:"card_id,omitempty"`
	City                        string              `json:"city,omitempty"`
	Cloud                       string              `json:"cloud,omitempty"`
	Company                     string              `json:"company,omitempty"`
	CountryCode                 string              `json:"country_code,omitempty"`
	ProjectName                 string              `json:"project_name,omitempty"`
	State                       string              `json:"state,omitempty"`
	Tags                        *map[string]string  `json:"tags,omitempty"`
	TechEmails                  *[]TechEmailIn      `json:"tech_emails,omitempty"`
	VatId                       string              `json:"vat_id,omitempty"`
	ZipCode                     string              `json:"zip_code,omitempty"`
}

type ProjectUpdateOut

type ProjectUpdateOut struct {
	AccountId             string                 `json:"account_id"`
	AccountName           string                 `json:"account_name,omitempty"`
	AddressLines          []string               `json:"address_lines,omitempty"`
	AvailableCredits      string                 `json:"available_credits,omitempty"`
	BillingAddress        string                 `json:"billing_address"`
	BillingCurrency       string                 `json:"billing_currency,omitempty"`
	BillingEmails         []BillingEmailOut      `json:"billing_emails"`
	BillingExtraText      string                 `json:"billing_extra_text,omitempty"`
	BillingGroupId        string                 `json:"billing_group_id"`
	BillingGroupName      string                 `json:"billing_group_name"`
	CardInfo              *CardInfoOut           `json:"card_info,omitempty"`
	City                  string                 `json:"city,omitempty"`
	Company               string                 `json:"company,omitempty"`
	Country               string                 `json:"country"`
	CountryCode           string                 `json:"country_code"`
	DefaultCloud          string                 `json:"default_cloud"`
	EndOfLifeExtension    *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"`
	EstimatedBalance      string                 `json:"estimated_balance"`
	EstimatedBalanceLocal string                 `json:"estimated_balance_local,omitempty"`
	Features              map[string]any         `json:"features,omitempty"`
	OrganizationId        string                 `json:"organization_id"`
	PaymentMethod         string                 `json:"payment_method"`
	ProjectName           string                 `json:"project_name"`
	State                 string                 `json:"state,omitempty"`
	Tags                  map[string]string      `json:"tags,omitempty"`
	TechEmails            []TechEmailOut         `json:"tech_emails,omitempty"`
	TenantId              string                 `json:"tenant_id,omitempty"`
	TrialExpirationTime   *time.Time             `json:"trial_expiration_time,omitempty"`
	VatId                 string                 `json:"vat_id"`
	ZipCode               string                 `json:"zip_code,omitempty"`
}

type ProjectUserListOut

type ProjectUserListOut struct {
	GroupUsers  []GroupUserOut  `json:"group_users"`
	Invitations []InvitationOut `json:"invitations"`
	Users       []UserOut       `json:"users"`
}

type ProjectUserUpdateIn

type ProjectUserUpdateIn struct {
	MemberType MemberType `json:"member_type"`
}

type TechEmailIn

type TechEmailIn struct {
	Email string `json:"email"`
}

type TechEmailOut

type TechEmailOut struct {
	Email string `json:"email"`
}

type UserOut

type UserOut struct {
	Auth           []string  `json:"auth"`
	BillingContact bool      `json:"billing_contact"`
	CreateTime     time.Time `json:"create_time"`
	MemberType     string    `json:"member_type"`
	RealName       string    `json:"real_name,omitempty"`
	TeamId         string    `json:"team_id"`
	TeamName       string    `json:"team_name"`
	UserEmail      string    `json:"user_email"`
}

type VpcPeeringConnectionTypeOut

type VpcPeeringConnectionTypeOut struct {
	CloudName                string `json:"cloud_name"`
	PriceUsd                 string `json:"price_usd"`
	VpcPeeringConnectionType string `json:"vpc_peering_connection_type"`
}

Jump to

Keyboard shortcuts

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