func (s *organizationService) UpdateOrganizationSettings(
	ctx context.Context,
	organizationId string,
	repositoryBaseRole v1alpha1.RepositoryRole,
	pluginBaseRole v1alpha1.PluginRole,
	templateBaseRole v1alpha1.TemplateRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.UpdateOrganizationSettings(
		ctx,
		&v1alpha1.UpdateOrganizationSettingsRequest{
			OrganizationId:     organizationId,
			RepositoryBaseRole: repositoryBaseRole,
			PluginBaseRole:     pluginBaseRole,
			TemplateBaseRole:   templateBaseRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
// UpdateOrganizationSettings update the organization settings including base roles.
UpdateOrganizationSettings update the organization settings including base roles.
// UpdateOrganizationSettings update the organization settings including base roles .
func (s *organizationService) UpdateOrganizationSettings(
	ctx context.Context,
	organizationId string,
	repositoryBaseRole v1alpha1.RepositoryRole,
	pluginBaseRole v1alpha1.PluginRole,
	templateBaseRole v1alpha1.TemplateRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.UpdateOrganizationSettings(
		ctx,
		&v1alpha1.UpdateOrganizationSettingsRequest{
			OrganizationId:     organizationId,
			RepositoryBaseRole: repositoryBaseRole,
			PluginBaseRole:     pluginBaseRole,
			TemplateBaseRole:   templateBaseRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
func ( s * organizationService ) UpdateOrganizationSettings ( ctx context . Context , organizationId string , repositoryBaseRole v1alpha1 . RepositoryRole , pluginBaseRole v1alpha1 . PluginRole , templateBaseRole v1alpha1 . TemplateRole , ) ( _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } _ , err := s . client . UpdateOrganizationSettings ( ctx , & v1alpha1 . UpdateOrganizationSettingsRequest { OrganizationId : organizationId , RepositoryBaseRole : repositoryBaseRole , PluginBaseRole : pluginBaseRole , TemplateBaseRole : templateBaseRole , } , ) if err != nil { return err } return nil }
UpdateOrganizationSettings update the organization settings including base roles.
UpdateOrganizationSettings update the organization settings including base roles .