func (c *Client) ListServiceDomains(i *ListServiceDomainInput) (ServiceDomainsList, error) {
	if i.ID == "" {
		return nil, ErrMissingID
	}
	path := fmt.Sprintf("/service/%s/domain", i.ID)
	resp, err := c.Get(path, nil)
	if err != nil {
		return nil, err
	}

	var ds ServiceDomainsList

	if err := decodeBodyMap(resp.Body, &ds); err != nil {
		return nil, err
	}

	return ds, nil
}
// ListServiceDomains lists all domains associated with a given service
ListServiceDomains lists all domains associated with a given service
// ListServiceDomains lists all domains associated with a given service
func (c *Client) ListServiceDomains(i *ListServiceDomainInput) (ServiceDomainsList, error) {
	if i.ID == "" {
		return nil, ErrMissingID
	}
	path := fmt.Sprintf("/service/%s/domain", i.ID)
	resp, err := c.Get(path, nil)
	if err != nil {
		return nil, err
	}
	var ds ServiceDomainsList
	if err := decodeBodyMap(resp.Body, &ds); err != nil {
		return nil, err
	}
	return ds, nil
}
func ( c * Client ) ListServiceDomains ( i * ListServiceDomainInput ) ( ServiceDomainsList , error ) { if i . ID == " " { return nil , ErrMissingID } path := fmt . Sprintf ( " " , i . ID ) resp , err := c . Get ( path , nil ) if err != nil { return nil , err } var ds ServiceDomainsList if err := decodeBodyMap ( resp . Body , & ds ) ; err != nil { return nil , err } return ds , nil }
ListServiceDomains lists all domains associated with a given service
ListServiceDomains lists all domains associated with a given service