func (s *pluginService) SetTemplateContributor(
	ctx context.Context,
	templateId string,
	userId string,
	templateRole v1alpha1.TemplateRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.SetTemplateContributor(
		ctx,
		&v1alpha1.SetTemplateContributorRequest{
			TemplateId:   templateId,
			UserId:       userId,
			TemplateRole: templateRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
// SetTemplateContributor sets the role of a user in the template.
SetTemplateContributor sets the role of a user in the template.
// SetTemplateContributor sets the role of a user in the template .
func (s *pluginService) SetTemplateContributor(
	ctx context.Context,
	templateId string,
	userId string,
	templateRole v1alpha1.TemplateRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.SetTemplateContributor(
		ctx,
		&v1alpha1.SetTemplateContributorRequest{
			TemplateId:   templateId,
			UserId:       userId,
			TemplateRole: templateRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
func ( s * pluginService ) SetTemplateContributor ( ctx context . Context , templateId string , userId string , templateRole v1alpha1 . TemplateRole , ) ( _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } _ , err := s . client . SetTemplateContributor ( ctx , & v1alpha1 . SetTemplateContributorRequest { TemplateId : templateId , UserId : userId , TemplateRole : templateRole , } , ) if err != nil { return err } return nil }
SetTemplateContributor sets the role of a user in the template.
SetTemplateContributor sets the role of a user in the template .