func resourceVSphereComputeClusterVMHostRuleObjects(
	d *schema.ResourceData,
	meta interface{},
) (*object.ClusterComputeResource, int32, error) {
	if d.Id() != "" {
		return resourceVSphereComputeClusterVMHostRuleObjectsFromID(d, meta)
	}
	return resourceVSphereComputeClusterVMHostRuleObjectsFromAttributes(d, meta)
}
func resourceVSphereComputeClusterVMHostRuleObjects(
	d *schema.ResourceData,
	meta interface{},
) (*object.ClusterComputeResource, int32, error) {
	if d.Id() != "" {
		return resourceVSphereComputeClusterVMHostRuleObjectsFromID(d, meta)
	}
	return resourceVSphereComputeClusterVMHostRuleObjectsFromAttributes(d, meta)
}
func resourceVSphereComputeClusterVMHostRuleObjects ( d * schema . ResourceData , meta interface { } , ) ( * object . ClusterComputeResource , int32 , error ) { if d . Id ( ) != " " { return resourceVSphereComputeClusterVMHostRuleObjectsFromID ( d , meta ) } return resourceVSphereComputeClusterVMHostRuleObjectsFromAttributes ( d , meta ) }
// resourceVSphereComputeClusterVMHostRuleObjects handles the fetching of the
// cluster and rule key depending on what attributes are available:
// * If the resource ID is available, the data is derived from the ID.
// * If not, only the cluster is retrieved from compute_cluster_id. -1 is
// returned for the key.
resourceVSphereComputeClusterVMHostRuleObjects handles the fetching of the cluster and rule key depending on what attributes are available : * If the resource ID is available the data is derived from the ID . * If not only the cluster is retrieved from compute_cluster_id . - 1 is returned for the key .