common

package
v1.372.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

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

func (o Account) MarshalJSON() ([]byte, error)

func (*Account) SetId

func (o *Account) SetId(v *string) *Account

func (*Account) SetName

func (o *Account) SetName(v *string) *Account

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

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *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)

Jump to

Keyboard shortcuts

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