Documentation ¶
Index ¶
- type Account
- type CreateAccountInput
- type CreateAccountOutput
- type DeleteAccountInput
- type DeleteAccountOutput
- type ReadAccountInput
- type ReadAccountOutput
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateAccount(ctx context.Context, input *CreateAccountInput) (*CreateAccountOutput, error)
- func (s *ServiceOp) DeleteAccount(ctx context.Context, input *DeleteAccountInput) (*DeleteAccountOutput, error)
- func (s *ServiceOp) ReadAccount(ctx context.Context, input *ReadAccountInput) (*ReadAccountOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` OrganizationId *string `json:"organizationId,omitempty"` AccountId *string `json:"accountId,omitempty"` CloudProvider *string `json:"cloudProvider,omitempty"` ProviderExternalId *string `json:"providerExternalId,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (Account) MarshalJSON ¶
type CreateAccountInput ¶
type CreateAccountInput struct {
Account *Account `json:"account,omitempty"`
}
type CreateAccountOutput ¶
type CreateAccountOutput struct {
Account *Account `json:"account,omitempty"`
}
type DeleteAccountInput ¶
type DeleteAccountInput struct {
AccountID *string `json:"accountId,omitempty"`
}
type DeleteAccountOutput ¶
type DeleteAccountOutput struct{}
type ReadAccountInput ¶
type ReadAccountInput struct {
AccountID *string `json:"account,omitempty"`
}
type ReadAccountOutput ¶
type ReadAccountOutput struct {
Account *Account `json:"account,omitempty"`
}
type Service ¶
type Service interface {
// contains filtered or unexported methods
}
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) CreateAccount ¶
func (s *ServiceOp) CreateAccount(ctx context.Context, input *CreateAccountInput) (*CreateAccountOutput, error)
func (*ServiceOp) DeleteAccount ¶
func (s *ServiceOp) DeleteAccount(ctx context.Context, input *DeleteAccountInput) (*DeleteAccountOutput, error)
func (*ServiceOp) ReadAccount ¶
func (s *ServiceOp) ReadAccount(ctx context.Context, input *ReadAccountInput) (*ReadAccountOutput, error)
Click to show internal directories.
Click to hide internal directories.