Beispiel #1
0
func NewInstanceService(apiClient api.CcaApiClient, serviceCode string, environmentName string) InstanceService {
	return &InstanceApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, INSTANCE_ENTITY_TYPE),
	}
}
Beispiel #2
0
func NewDiskOfferingService(apiClient api.CcaApiClient, serviceCode string, environmentName string) DiskOfferingService {
	return &DiskOfferingApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, DISK_OFFERING_ENTITY_TYPE),
	}
}
func NewComputeOfferingService(apiClient api.ApiClient, serviceCode string, environmentName string) ComputeOfferingService {
	return &ComputeOfferingApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, COMPUTE_OFFERING_ENTITY_TYPE),
	}
}
Beispiel #4
0
func NewTemplateService(apiClient api.ApiClient, serviceCode string, environmentName string) TemplateService {
	return &TemplateApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, TEMPLATE_ENTITY_TYPE),
	}
}
func NewPortForwardingRuleService(apiClient api.ApiClient, serviceCode string, environmentName string) PortForwardingRuleService {
	return &PortForwardingRuleApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, PORT_FORWARDING_RULE_ENTITY_TYPE),
	}
}
Beispiel #6
0
func NewVolumeService(apiClient api.ApiClient, serviceCode string, environmentName string) VolumeService {
	return &VolumeApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, VOLUME_ENTITY_TYPE),
	}
}
Beispiel #7
0
func NewPublicIpService(apiClient api.ApiClient, serviceCode string, environmentName string) PublicIpService {
	return &PublicIpApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, PUBLIC_IP_ENTITY_TYPE),
	}
}
Beispiel #8
0
func NewNetworkAclService(apiClient api.ApiClient, serviceCode string, environmentName string) NetworkAclService {
	return &NetworkAclApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, NETWORK_ACL_ENTITY_TYPE),
	}
}
Beispiel #9
0
func NewTierService(apiClient api.ApiClient, serviceCode string, environmentName string) TierService {
	return &TierApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, TIER_ENTITY_TYPE),
	}
}
Beispiel #10
0
func NewZoneService(apiClient api.ApiClient, serviceCode string, environmentName string) ZoneService {
	return &ZoneApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, ZONE_ENTITY_TYPE),
	}
}
Beispiel #11
0
func NewVpcService(apiClient api.ApiClient, serviceCode string, environmentName string) VpcService {
	return &VpcApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, VPC_ENTITY_TYPE),
	}
}
Beispiel #12
0
func NewSSHKeyService(apiClient api.ApiClient, serviceCode string, environmentName string) SSHKeyService {
	return &SSHKeyApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, SSH_KEY_ENTITY_TYPE),
	}
}
Beispiel #13
0
func NewNetworkOfferingService(apiClient api.ApiClient, serviceCode string, environmentName string) NetworkOfferingService {
	return &NetworkOfferingApi{
		entityService: services.NewEntityService(apiClient, serviceCode, environmentName, NETWORK_OFFERING_ENTITY_TYPE),
	}
}