Documentation
¶
Index ¶
- type PublicCloudAccountDetails
- type PublicCloudAccountIDStatus
- type Service
- func (service *Service) GetAccountID(accountID int) (*PublicCloudAccountDetails, error)
- func (service *Service) GetAccountStatus() (*PublicCloudAccountIDStatus, error)
- func (service *Service) GetAll() ([]PublicCloudAccountDetails, error)
- func (service *Service) GetLite() ([]PublicCloudAccountDetails, error)
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 ¶
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
Click to show internal directories.
Click to hide internal directories.