func (c *Credential) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var internal credentialInternal
	if err := unmarshal(&internal); err != nil {
		return err
	}
	*c = Credential{authType: internal.AuthType, attributes: internal.Attributes}
	return nil
}
// UnmarshalYAML implements the yaml.Marshaler interface.
UnmarshalYAML implements the yaml.Marshaler interface.
// UnmarshalYAML implements the yaml . Marshaler interface .
func (c *Credential) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var internal credentialInternal
	if err := unmarshal(&internal); err != nil {
		return err
	}
	*c = Credential{authType: internal.AuthType, attributes: internal.Attributes}
	return nil
}
func ( c * Credential ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { var internal credentialInternal if err := unmarshal ( & internal ) ; err != nil { return err } * c = Credential { authType : internal . AuthType , attributes : internal . Attributes } return nil }
UnmarshalYAML implements the yaml.Marshaler interface.
UnmarshalYAML implements the yaml . Marshaler interface .