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

	so := sparse.(*SparsePollAccount)
	if so.AccountID != nil {
		o.AccountID = *so.AccountID
	}
	if so.AuthorizationRegion != nil {
		o.AuthorizationRegion = *so.AuthorizationRegion
	}
	if so.CloudType != nil {
		o.CloudType = *so.CloudType
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Role != nil {
		o.Role = *so.Role
	}
	if so.TargetRegions != nil {
		o.TargetRegions = *so.TargetRegions
	}
}
// Patch apply the non nil value of a *SparsePollAccount to the object.
Patch apply the non nil value of a *SparsePollAccount to the object.
// Patch apply the non nil value of a * SparsePollAccount to the object .
func (o *PollAccount) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparsePollAccount)
	if so.AccountID != nil {
		o.AccountID = *so.AccountID
	}
	if so.AuthorizationRegion != nil {
		o.AuthorizationRegion = *so.AuthorizationRegion
	}
	if so.CloudType != nil {
		o.CloudType = *so.CloudType
	}
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.Role != nil {
		o.Role = *so.Role
	}
	if so.TargetRegions != nil {
		o.TargetRegions = *so.TargetRegions
	}
}
func ( o * PollAccount ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparsePollAccount ) if so . AccountID != nil { o . AccountID = * so . AccountID } if so . AuthorizationRegion != nil { o . AuthorizationRegion = * so . AuthorizationRegion } if so . CloudType != nil { o . CloudType = * so . CloudType } if so . Name != nil { o . Name = * so . Name } if so . Role != nil { o . Role = * so . Role } if so . TargetRegions != nil { o . TargetRegions = * so . TargetRegions } }
Patch apply the non nil value of a *SparsePollAccount to the object.
Patch apply the non nil value of a * SparsePollAccount to the object .