ecs_instance

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRenewDiffSuppress

func AutoRenewDiffSuppress(k, old, new string, d *schema.ResourceData) bool

func DataSourceByteplusEcsInstances

func DataSourceByteplusEcsInstances() *schema.Resource

func EcsInstanceImportDiffSuppress

func EcsInstanceImportDiffSuppress(k, old, new string, d *schema.ResourceData) bool

func RemoveSystemTags

func RemoveSystemTags(data []interface{}) ([]interface{}, error)

func ResourceByteplusEcsInstance

func ResourceByteplusEcsInstance() *schema.Resource

func UserDateImportDiffSuppress

func UserDateImportDiffSuppress(k, old, new string, d *schema.ResourceData) bool

Types

type ByteplusEcsService

type ByteplusEcsService struct {
	Client        *bp.SdkClient
	SubnetService *subnet.ByteplusSubnetService
}

func NewEcsService

func NewEcsService(c *bp.SdkClient) *ByteplusEcsService

func (*ByteplusEcsService) CommonResponseConvert

func (s *ByteplusEcsService) CommonResponseConvert() map[string]bp.ResponseConvert

func (*ByteplusEcsService) CreateResource

func (s *ByteplusEcsService) CreateResource(resourceData *schema.ResourceData, resource *schema.Resource) []bp.Callback

func (*ByteplusEcsService) DatasourceResources

func (s *ByteplusEcsService) DatasourceResources(data *schema.ResourceData, resource *schema.Resource) bp.DataSourceInfo

func (*ByteplusEcsService) GetClient

func (s *ByteplusEcsService) GetClient() *bp.SdkClient

func (*ByteplusEcsService) ModifyResource

func (s *ByteplusEcsService) ModifyResource(resourceData *schema.ResourceData, resource *schema.Resource) (callbacks []bp.Callback)

func (*ByteplusEcsService) ProjectTrn

func (s *ByteplusEcsService) ProjectTrn() *bp.ProjectTrn

func (*ByteplusEcsService) ReadResource

func (s *ByteplusEcsService) ReadResource(resourceData *schema.ResourceData, instanceId string) (data map[string]interface{}, err error)

func (*ByteplusEcsService) ReadResourceId

func (s *ByteplusEcsService) ReadResourceId(id string) string

func (*ByteplusEcsService) ReadResources

func (s *ByteplusEcsService) ReadResources(condition map[string]interface{}) (data []interface{}, err error)

func (*ByteplusEcsService) RefreshResourceState

func (s *ByteplusEcsService) RefreshResourceState(resourceData *schema.ResourceData, target []string, timeout time.Duration, id string) *resource.StateChangeConf

func (*ByteplusEcsService) RemoveResource

func (s *ByteplusEcsService) RemoveResource(resourceData *schema.ResourceData, r *schema.Resource) []bp.Callback

func (*ByteplusEcsService) StartOrStopInstanceCallback

func (s *ByteplusEcsService) StartOrStopInstanceCallback(resourceData *schema.ResourceData, isStop bool, flag *bool) bp.Callback

func (*ByteplusEcsService) UnsubscribeInfo

func (s *ByteplusEcsService) UnsubscribeInfo(resourceData *schema.ResourceData, resource *schema.Resource) (*bp.UnsubscribeInfo, error)

func (*ByteplusEcsService) WithResourceResponseHandlers

func (s *ByteplusEcsService) WithResourceResponseHandlers(ecs map[string]interface{}) []bp.ResourceResponseHandler

Jump to

Keyboard shortcuts

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