public_cloud_account

package
v2.5.22 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicCloudAccountDetails

type PublicCloudAccountDetails struct {
	// Internal ID of public cloud account/subscription.
	ID int `json:"id,omitempty"`

	// Account or subscription ID of public cloud account.
	AccountID string `json:"accountId,omitempty"`

	// Public cloud platform (AWS or Azure)
	PlatformID string `json:"platformId,omitempty"`
}

type PublicCloudAccountIDStatus

type PublicCloudAccountIDStatus struct {
	// Indicates whether public cloud account is enabled.
	AccountIdEnabled bool `json:"accountIdEnabled,omitempty"`

	// Indicates whether public cloud subscription is enabled.
	SubIDEnabled bool `json:"subIdEnabled,omitempty"`

	// Indicates whether public cloud subscription is enabled.
	ProjectIdEnabled bool `json:"projectIdEnabled,omitempty"`
}

type Service

type Service struct {
	Client *zcon.Client
}

func New

func New(c *zcon.Client) *Service

func (*Service) GetAccountID

func (service *Service) GetAccountID(accountID int) (*PublicCloudAccountDetails, error)

GetAccountID remains the same

func (*Service) GetAccountStatus

func (service *Service) GetAccountStatus() (*PublicCloudAccountIDStatus, error)

GetAccountStatus returns a status payload directly

func (*Service) GetAll

func (service *Service) GetAll() ([]PublicCloudAccountDetails, error)

func (*Service) GetLite

func (service *Service) GetLite() ([]PublicCloudAccountDetails, error)

GetLite returns all available accounts without filtering by ID

Jump to

Keyboard shortcuts

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