func (s *pluginService) SetPluginContributor(
	ctx context.Context,
	pluginId string,
	userId string,
	pluginRole v1alpha1.PluginRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.SetPluginContributor(
		ctx,
		&v1alpha1.SetPluginContributorRequest{
			PluginId:   pluginId,
			UserId:     userId,
			PluginRole: pluginRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
// SetPluginContributor sets the role of a user in the plugin.
SetPluginContributor sets the role of a user in the plugin.
// SetPluginContributor sets the role of a user in the plugin .
func (s *pluginService) SetPluginContributor(
	ctx context.Context,
	pluginId string,
	userId string,
	pluginRole v1alpha1.PluginRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.SetPluginContributor(
		ctx,
		&v1alpha1.SetPluginContributorRequest{
			PluginId:   pluginId,
			UserId:     userId,
			PluginRole: pluginRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
func ( s * pluginService ) SetPluginContributor ( ctx context . Context , pluginId string , userId string , pluginRole v1alpha1 . PluginRole , ) ( _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } _ , err := s . client . SetPluginContributor ( ctx , & v1alpha1 . SetPluginContributorRequest { PluginId : pluginId , UserId : userId , PluginRole : pluginRole , } , ) if err != nil { return err } return nil }
SetPluginContributor sets the role of a user in the plugin.
SetPluginContributor sets the role of a user in the plugin .