Documentation ¶
Index ¶
- type ActivateRequest
- type ApplyRequest
- type CreateRequest
- type DeactivateRequest
- type DeleteRequest
- type FindRequest
- type LogsRequest
- type MonitorSIMRequest
- type NetworkOperatorsRequest
- type ReadRequest
- type Service
- func (s *Service) Activate(req *ActivateRequest) error
- func (s *Service) ActivateWithContext(ctx context.Context, req *ActivateRequest) error
- func (s *Service) Apply(req *ApplyRequest) (*sacloud.SIM, error)
- func (s *Service) ApplyWithContext(ctx context.Context, req *ApplyRequest) (*sacloud.SIM, error)
- func (s *Service) Create(req *CreateRequest) (*sacloud.SIM, error)
- func (s *Service) CreateWithContext(ctx context.Context, req *CreateRequest) (*sacloud.SIM, error)
- func (s *Service) Deactivate(req *DeactivateRequest) error
- func (s *Service) DeactivateWithContext(ctx context.Context, req *DeactivateRequest) error
- func (s *Service) Delete(req *DeleteRequest) error
- func (s *Service) DeleteWithContext(ctx context.Context, req *DeleteRequest) error
- func (s *Service) Find(req *FindRequest) ([]*sacloud.SIM, error)
- func (s *Service) FindWithContext(ctx context.Context, req *FindRequest) ([]*sacloud.SIM, error)
- func (s *Service) Logs(req *LogsRequest) ([]*sacloud.SIMLog, error)
- func (s *Service) LogsWithContext(ctx context.Context, req *LogsRequest) ([]*sacloud.SIMLog, error)
- func (s *Service) MonitorSIM(req *MonitorSIMRequest) ([]*sacloud.MonitorLinkValue, error)
- func (s *Service) MonitorSIMWithContext(ctx context.Context, req *MonitorSIMRequest) ([]*sacloud.MonitorLinkValue, error)
- func (s *Service) NetworkOperators(req *NetworkOperatorsRequest) ([]*sacloud.SIMNetworkOperatorConfig, error)
- func (s *Service) NetworkOperatorsWithContext(ctx context.Context, req *NetworkOperatorsRequest) ([]*sacloud.SIMNetworkOperatorConfig, error)
- func (s *Service) Read(req *ReadRequest) (*sacloud.SIM, error)
- func (s *Service) ReadWithContext(ctx context.Context, req *ReadRequest) (*sacloud.SIM, error)
- func (s *Service) Update(req *UpdateRequest) (*sacloud.SIM, error)
- func (s *Service) UpdateWithContext(ctx context.Context, req *UpdateRequest) (*sacloud.SIM, error)
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateRequest ¶
func (*ActivateRequest) Validate ¶
func (req *ActivateRequest) Validate() error
type ApplyRequest ¶
type ApplyRequest struct { ID types.ID `request:"-"` Name string `validate:"required"` Description string `validate:"min=0,max=512"` Tags types.Tags IconID types.ID ICCID string `validate:"required"` PassCode string `validate:"required"` Activate bool IMEI string Carriers []*sacloud.SIMNetworkOperatorConfig }
func (*ApplyRequest) Validate ¶
func (req *ApplyRequest) Validate() error
type CreateRequest ¶
type CreateRequest struct { Name string `validate:"required"` Description string `validate:"min=0,max=512"` Tags types.Tags IconID types.ID ICCID string `validate:"required"` PassCode string `validate:"required"` }
func (*CreateRequest) ToRequestParameter ¶
func (req *CreateRequest) ToRequestParameter() (*sacloud.SIMCreateRequest, error)
func (*CreateRequest) Validate ¶
func (req *CreateRequest) Validate() error
type DeactivateRequest ¶
func (*DeactivateRequest) Validate ¶
func (req *DeactivateRequest) Validate() error
type DeleteRequest ¶
type DeleteRequest struct { ID types.ID `request:"-" validate:"required"` FailIfNotFound bool `request:"-"` }
func (*DeleteRequest) Validate ¶
func (req *DeleteRequest) Validate() error
type FindRequest ¶
type FindRequest struct { Names []string `request:"-"` Tags []string `request:"-"` Sort search.SortKeys Count int From int }
func (*FindRequest) ToRequestParameter ¶
func (req *FindRequest) ToRequestParameter() (*sacloud.FindCondition, error)
func (*FindRequest) Validate ¶
func (req *FindRequest) Validate() error
type LogsRequest ¶
func (*LogsRequest) Validate ¶
func (req *LogsRequest) Validate() error
type MonitorSIMRequest ¶
type MonitorSIMRequest struct { ID types.ID `request:"-" validate:"required"` Start time.Time End time.Time }
func (*MonitorSIMRequest) Validate ¶
func (req *MonitorSIMRequest) Validate() error
type NetworkOperatorsRequest ¶
func (*NetworkOperatorsRequest) Validate ¶
func (req *NetworkOperatorsRequest) Validate() error
type ReadRequest ¶
func (*ReadRequest) Validate ¶
func (req *ReadRequest) Validate() error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides a high-level API of for SIM
func (*Service) Activate ¶
func (s *Service) Activate(req *ActivateRequest) error
func (*Service) ActivateWithContext ¶
func (s *Service) ActivateWithContext(ctx context.Context, req *ActivateRequest) error
func (*Service) ApplyWithContext ¶
func (*Service) CreateWithContext ¶
func (*Service) Deactivate ¶
func (s *Service) Deactivate(req *DeactivateRequest) error
func (*Service) DeactivateWithContext ¶
func (s *Service) DeactivateWithContext(ctx context.Context, req *DeactivateRequest) error
func (*Service) Delete ¶
func (s *Service) Delete(req *DeleteRequest) error
func (*Service) DeleteWithContext ¶
func (s *Service) DeleteWithContext(ctx context.Context, req *DeleteRequest) error
func (*Service) FindWithContext ¶
func (*Service) LogsWithContext ¶
func (*Service) MonitorSIM ¶
func (s *Service) MonitorSIM(req *MonitorSIMRequest) ([]*sacloud.MonitorLinkValue, error)
func (*Service) MonitorSIMWithContext ¶
func (s *Service) MonitorSIMWithContext(ctx context.Context, req *MonitorSIMRequest) ([]*sacloud.MonitorLinkValue, error)
func (*Service) NetworkOperators ¶
func (s *Service) NetworkOperators(req *NetworkOperatorsRequest) ([]*sacloud.SIMNetworkOperatorConfig, error)
func (*Service) NetworkOperatorsWithContext ¶
func (s *Service) NetworkOperatorsWithContext(ctx context.Context, req *NetworkOperatorsRequest) ([]*sacloud.SIMNetworkOperatorConfig, error)
func (*Service) ReadWithContext ¶
func (*Service) UpdateWithContext ¶
type UpdateRequest ¶
type UpdateRequest struct { ID types.ID `request:"-" validate:"required"` Name *string `request:",omitempty" validate:"omitempty,min=1"` Description *string `request:",omitempty" validate:"omitempty,min=1,max=512"` Tags *types.Tags `request:",omitempty"` IconID *types.ID `request:",omitempty"` }
func (*UpdateRequest) ToRequestParameter ¶
func (req *UpdateRequest) ToRequestParameter(current *sacloud.SIM) (*sacloud.SIMUpdateRequest, error)
func (*UpdateRequest) Validate ¶
func (req *UpdateRequest) Validate() error
Source Files ¶
- activate_request.go
- activate_service.go
- apply_request.go
- apply_service.go
- create_request.go
- create_service.go
- deactivate_request.go
- deactivate_service.go
- delete_request.go
- delete_service.go
- find_request.go
- find_service.go
- logs_request.go
- logs_service.go
- monitor_sim_request.go
- monitor_sim_service.go
- network_operators_request.go
- network_operators_service.go
- read_request.go
- read_service.go
- service.go
- update_request.go
- update_service.go
Click to show internal directories.
Click to hide internal directories.