Documentation
¶
Index ¶
- Constants
- func Provider() terraform.ResourceProvider
- func TranslateServiceLevelState2API(slevel string) string
- type Client
- func (c *Client) CallAPIMethod(method string, baseURL string, params map[string]interface{}) (int, []byte, error)
- func (c *Client) GetProjectID() string
- func (c *Client) GetServiceAccount() string
- func (c *Client) SetProjectID(project string)
- func (c *Client) SetServiceAccount(serviceAccount string)
Constants ¶
const GiBToBytes = 1024 * 1024 * 1024
GiBTobytes converting GB to bytes
const TiBToGiB = 1024
TiBToGiB converting TiB to GiB
Variables ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Provider is the main method for NetApp GCP Terraform provider
func TranslateServiceLevelState2API ¶
There is a bug on service level API. Translate based on the setup value. resource value: API call value standard : low premium : medium extreme : extreme
Types ¶
type Client ¶
type Client struct { Host string MaxConcurrentRequests int BaseURL string ServiceAccount string Project string Audience string // contains filtered or unexported fields }
A Client to interact with the GCP REST API
func (*Client) CallAPIMethod ¶
func (c *Client) CallAPIMethod(method string, baseURL string, params map[string]interface{}) (int, []byte, error)
CallAPIMethod can be used to make a request to any GCP API method, receiving results as byte
func (*Client) GetProjectID ¶
GetProjectID returns the API version that will be used for GCP API requests
func (*Client) GetServiceAccount ¶
GetServiceAccount returns the API version that will be used for GCP API requests
func (*Client) SetProjectID ¶
SetProjectID for the client to use for requests to the GCP API
func (*Client) SetServiceAccount ¶
SetServiceAccount for the client to use for requests to the GCP API