func (o *AutomationTemplate) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}

	so := sparse.(*SparseAutomationTemplate)
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.Entitlements != nil {
		o.Entitlements = *so.Entitlements
	}
	if so.Function != nil {
		o.Function = *so.Function
	}
	if so.Key != nil {
		o.Key = *so.Key
	}
	if so.Kind != nil {
		o.Kind = *so.Kind
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Parameters != nil {
		o.Parameters = *so.Parameters
	}
	if so.Steps != nil {
		o.Steps = *so.Steps
	}
}
// Patch apply the non nil value of a *SparseAutomationTemplate to the object.
Patch apply the non nil value of a *SparseAutomationTemplate to the object.
// Patch apply the non nil value of a * SparseAutomationTemplate to the object .
func (o *AutomationTemplate) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseAutomationTemplate)
	if so.Description != nil {
		o.Description = *so.Description
	}
	if so.Entitlements != nil {
		o.Entitlements = *so.Entitlements
	}
	if so.Function != nil {
		o.Function = *so.Function
	}
	if so.Key != nil {
		o.Key = *so.Key
	}
	if so.Kind != nil {
		o.Kind = *so.Kind
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Parameters != nil {
		o.Parameters = *so.Parameters
	}
	if so.Steps != nil {
		o.Steps = *so.Steps
	}
}
func ( o * AutomationTemplate ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseAutomationTemplate ) if so . Description != nil { o . Description = * so . Description } if so . Entitlements != nil { o . Entitlements = * so . Entitlements } if so . Function != nil { o . Function = * so . Function } if so . Key != nil { o . Key = * so . Key } if so . Kind != nil { o . Kind = * so . Kind } if so . Name != nil { o . Name = * so . Name } if so . Parameters != nil { o . Parameters = * so . Parameters } if so . Steps != nil { o . Steps = * so . Steps } }
Patch apply the non nil value of a *SparseAutomationTemplate to the object.
Patch apply the non nil value of a * SparseAutomationTemplate to the object .