2017-09-12 11:30:39 -04:00
|
|
|
package oci
|
2017-02-13 05:35:14 -05:00
|
|
|
|
2017-09-12 11:30:39 -04:00
|
|
|
// ComputeClient is a client for the OCI Compute API.
|
2017-02-13 05:35:14 -05:00
|
|
|
type ComputeClient struct {
|
|
|
|
BaseURL string
|
|
|
|
Instances *InstanceService
|
|
|
|
Images *ImageService
|
|
|
|
VNICAttachments *VNICAttachmentService
|
|
|
|
VNICs *VNICService
|
|
|
|
}
|
|
|
|
|
2017-09-12 11:30:39 -04:00
|
|
|
// NewComputeClient creates a new client for communicating with the OCI
|
2017-02-13 05:35:14 -05:00
|
|
|
// Compute API.
|
|
|
|
func NewComputeClient(s *baseClient) *ComputeClient {
|
|
|
|
return &ComputeClient{
|
|
|
|
Instances: NewInstanceService(s),
|
|
|
|
Images: NewImageService(s),
|
|
|
|
VNICAttachments: NewVNICAttachmentService(s),
|
|
|
|
VNICs: NewVNICService(s),
|
|
|
|
}
|
|
|
|
}
|