ca/cac/codegen_client.go
func (loc *InstanceCombinationLocator) Update(options rsapi.APIParams) (*InstanceCombination, error) {
	var res *InstanceCombination
	var params rsapi.APIParams
	params = rsapi.APIParams{}
	var viewOpt = options["view"]
	if viewOpt != nil {
		params["view"] = viewOpt
	}
	var p rsapi.APIParams
	p = rsapi.APIParams{}
	var cloudNameOpt = options["cloud_name"]
	if cloudNameOpt != nil {
		p["cloud_name"] = cloudNameOpt
	}
	var cloudVendorNameOpt = options["cloud_vendor_name"]
	if cloudVendorNameOpt != nil {
		p["cloud_vendor_name"] = cloudVendorNameOpt
	}
	var datacenterNameOpt = options["datacenter_name"]
	if datacenterNameOpt != nil {
		p["datacenter_name"] = datacenterNameOpt
	}
	var instanceTypeNameOpt = options["instance_type_name"]
	if instanceTypeNameOpt != nil {
		p["instance_type_name"] = instanceTypeNameOpt
	}
	var monthlyUsageHoursOpt = options["monthly_usage_hours"]
	if monthlyUsageHoursOpt != nil {
		p["monthly_usage_hours"] = monthlyUsageHoursOpt
	}
	var monthlyUsageOptionOpt = options["monthly_usage_option"]
	if monthlyUsageOptionOpt != nil {
		p["monthly_usage_option"] = monthlyUsageOptionOpt
	}
	var patternsOpt = options["patterns"]
	if patternsOpt != nil {
		p["patterns"] = patternsOpt
	}
	var platformOpt = options["platform"]
	if platformOpt != nil {
		p["platform"] = platformOpt
	}
	var quantityOpt = options["quantity"]
	if quantityOpt != nil {
		p["quantity"] = quantityOpt
	}
	uri, err := loc.ActionPath("InstanceCombination", "update")
	if err != nil {
		return res, err
	}
	req, err := loc.api.BuildHTTPRequest(uri.HTTPMethod, uri.Path, APIVersion, params, p)
	if err != nil {
		return res, err
	}
	resp, err := loc.api.PerformRequest(req)
	if err != nil {
		return res, err
	}
	defer resp.Body.Close()
	if resp.StatusCode < 200 || resp.StatusCode > 299 {
		respBody, _ := ioutil.ReadAll(resp.Body)
		sr := string(respBody)
		if sr != "" {
			sr = ": " + sr
		}
		return res, fmt.Errorf("invalid response %s%s", resp.Status, sr)
	}
	defer resp.Body.Close()
	respBody, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return res, err
	}
	err = json.Unmarshal(respBody, &res)
	return res, err
}
func (loc *InstanceCombinationLocator) Update(options rsapi.APIParams) (*InstanceCombination, error) {
	var res *InstanceCombination
	var params rsapi.APIParams
	params = rsapi.APIParams{}
	var viewOpt = options["view"]
	if viewOpt != nil {
		params["view"] = viewOpt
	}
	var p rsapi.APIParams
	p = rsapi.APIParams{}
	var cloudNameOpt = options["cloud_name"]
	if cloudNameOpt != nil {
		p["cloud_name"] = cloudNameOpt
	}
	var cloudVendorNameOpt = options["cloud_vendor_name"]
	if cloudVendorNameOpt != nil {
		p["cloud_vendor_name"] = cloudVendorNameOpt
	}
	var datacenterNameOpt = options["datacenter_name"]
	if datacenterNameOpt != nil {
		p["datacenter_name"] = datacenterNameOpt
	}
	var instanceTypeNameOpt = options["instance_type_name"]
	if instanceTypeNameOpt != nil {
		p["instance_type_name"] = instanceTypeNameOpt
	}
	var monthlyUsageHoursOpt = options["monthly_usage_hours"]
	if monthlyUsageHoursOpt != nil {
		p["monthly_usage_hours"] = monthlyUsageHoursOpt
	}
	var monthlyUsageOptionOpt = options["monthly_usage_option"]
	if monthlyUsageOptionOpt != nil {
		p["monthly_usage_option"] = monthlyUsageOptionOpt
	}
	var patternsOpt = options["patterns"]
	if patternsOpt != nil {
		p["patterns"] = patternsOpt
	}
	var platformOpt = options["platform"]
	if platformOpt != nil {
		p["platform"] = platformOpt
	}
	var quantityOpt = options["quantity"]
	if quantityOpt != nil {
		p["quantity"] = quantityOpt
	}
	uri, err := loc.ActionPath("InstanceCombination", "update")
	if err != nil {
		return res, err
	}
	req, err := loc.api.BuildHTTPRequest(uri.HTTPMethod, uri.Path, APIVersion, params, p)
	if err != nil {
		return res, err
	}
	resp, err := loc.api.PerformRequest(req)
	if err != nil {
		return res, err
	}
	defer resp.Body.Close()
	if resp.StatusCode < 200 || resp.StatusCode > 299 {
		respBody, _ := ioutil.ReadAll(resp.Body)
		sr := string(respBody)
		if sr != "" {
			sr = ": " + sr
		}
		return res, fmt.Errorf("invalid response %s%s", resp.Status, sr)
	}
	defer resp.Body.Close()
	respBody, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return res, err
	}
	err = json.Unmarshal(respBody, &res)
	return res, err
}
// PATCH /api/scenarios/:scenario_id/instance_combinations/:id
//
// Update the provided attributes of an InstanceCombination.