Module: ProjectFeaturesCompatibility

Extended by:
ActiveSupport::Concern
Included in:
Project
Defined in:
app/models/concerns/project_features_compatibility.rb

Instance Method Summary collapse

Instance Method Details

#analytics_access_level=(value) ⇒ Object



81
82
83
# File 'app/models/concerns/project_features_compatibility.rb', line 81

def analytics_access_level=(value)
  write_feature_attribute_string(:analytics_access_level, value)
end

#builds_access_level=(value) ⇒ Object



49
50
51
# File 'app/models/concerns/project_features_compatibility.rb', line 49

def builds_access_level=(value)
  write_feature_attribute_string(:builds_access_level, value)
end

#builds_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level



18
19
20
# File 'app/models/concerns/project_features_compatibility.rb', line 18

def builds_enabled=(value)
  write_feature_attribute_boolean(:builds_access_level, value)
end

#container_registry_access_level=(value) ⇒ Object



97
98
99
# File 'app/models/concerns/project_features_compatibility.rb', line 97

def container_registry_access_level=(value)
  write_feature_attribute_string(:container_registry_access_level, value)
end

#container_registry_enabled=(value) ⇒ Object

TODO: Remove this method after we drop support for project create/edit APIs to set the container_registry_enabled attribute. They can instead set the container_registry_access_level attribute.



124
125
126
# File 'app/models/concerns/project_features_compatibility.rb', line 124

def container_registry_enabled=(value)
  write_feature_attribute_boolean(:container_registry_access_level, value)
end

#environments_access_level=(value) ⇒ Object



101
102
103
# File 'app/models/concerns/project_features_compatibility.rb', line 101

def environments_access_level=(value)
  write_feature_attribute_string(:environments_access_level, value)
end

#feature_flags_access_level=(value) ⇒ Object



105
106
107
# File 'app/models/concerns/project_features_compatibility.rb', line 105

def feature_flags_access_level=(value)
  write_feature_attribute_string(:feature_flags_access_level, value)
end

#forking_access_level=(value) ⇒ Object



57
58
59
# File 'app/models/concerns/project_features_compatibility.rb', line 57

def forking_access_level=(value)
  write_feature_attribute_string(:forking_access_level, value)
end

#infrastructure_access_level=(value) ⇒ Object



113
114
115
# File 'app/models/concerns/project_features_compatibility.rb', line 113

def infrastructure_access_level=(value)
  write_feature_attribute_string(:infrastructure_access_level, value)
end

#issues_access_level=(value) ⇒ Object



61
62
63
# File 'app/models/concerns/project_features_compatibility.rb', line 61

def issues_access_level=(value)
  write_feature_attribute_string(:issues_access_level, value)
end

#issues_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level



28
29
30
# File 'app/models/concerns/project_features_compatibility.rb', line 28

def issues_enabled=(value)
  write_feature_attribute_boolean(:issues_access_level, value)
end

#merge_requests_access_level=(value) ⇒ Object



53
54
55
# File 'app/models/concerns/project_features_compatibility.rb', line 53

def merge_requests_access_level=(value)
  write_feature_attribute_string(:merge_requests_access_level, value)
end

#merge_requests_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level



23
24
25
# File 'app/models/concerns/project_features_compatibility.rb', line 23

def merge_requests_enabled=(value)
  write_feature_attribute_boolean(:merge_requests_access_level, value)
end

#metrics_dashboard_access_level=(value) ⇒ Object



77
78
79
# File 'app/models/concerns/project_features_compatibility.rb', line 77

def metrics_dashboard_access_level=(value)
  write_feature_attribute_string(:metrics_dashboard_access_level, value)
end

#model_experiments_access_level=(value) ⇒ Object



117
118
119
# File 'app/models/concerns/project_features_compatibility.rb', line 117

def model_experiments_access_level=(value)
  write_feature_attribute_string(:model_experiments_access_level, value)
end

#monitor_access_level=(value) ⇒ Object



89
90
91
# File 'app/models/concerns/project_features_compatibility.rb', line 89

def monitor_access_level=(value)
  write_feature_attribute_string(:monitor_access_level, value)
end

#operations_access_level=(value) ⇒ Object



85
86
87
# File 'app/models/concerns/project_features_compatibility.rb', line 85

def operations_access_level=(value)
  write_feature_attribute_string(:operations_access_level, value)
end

#package_registry_access_level=(value) ⇒ Object



69
70
71
# File 'app/models/concerns/project_features_compatibility.rb', line 69

def package_registry_access_level=(value)
  write_feature_attribute_string(:package_registry_access_level, value)
end

#pages_access_level=(value) ⇒ Object



73
74
75
# File 'app/models/concerns/project_features_compatibility.rb', line 73

def pages_access_level=(value)
  write_feature_attribute_string(:pages_access_level, value)
end

#releases_access_level=(value) ⇒ Object



109
110
111
# File 'app/models/concerns/project_features_compatibility.rb', line 109

def releases_access_level=(value)
  write_feature_attribute_string(:releases_access_level, value)
end

#repository_access_level=(value) ⇒ Object



41
42
43
# File 'app/models/concerns/project_features_compatibility.rb', line 41

def repository_access_level=(value)
  write_feature_attribute_string(:repository_access_level, value)
end

#security_and_compliance_access_level=(value) ⇒ Object



93
94
95
# File 'app/models/concerns/project_features_compatibility.rb', line 93

def security_and_compliance_access_level=(value)
  write_feature_attribute_string(:security_and_compliance_access_level, value)
end

#security_and_compliance_enabled=(value) ⇒ Object



37
38
39
# File 'app/models/concerns/project_features_compatibility.rb', line 37

def security_and_compliance_enabled=(value)
  write_feature_attribute_boolean(:security_and_compliance_access_level, value)
end

#snippets_access_level=(value) ⇒ Object



65
66
67
# File 'app/models/concerns/project_features_compatibility.rb', line 65

def snippets_access_level=(value)
  write_feature_attribute_string(:snippets_access_level, value)
end

#snippets_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level



33
34
35
# File 'app/models/concerns/project_features_compatibility.rb', line 33

def snippets_enabled=(value)
  write_feature_attribute_boolean(:snippets_access_level, value)
end

#wiki_access_level=(value) ⇒ Object



45
46
47
# File 'app/models/concerns/project_features_compatibility.rb', line 45

def wiki_access_level=(value)
  write_feature_attribute_string(:wiki_access_level, value)
end

#wiki_enabled=(value) ⇒ Object

TODO: remove in API v5, replaced by *_access_level



13
14
15
# File 'app/models/concerns/project_features_compatibility.rb', line 13

def wiki_enabled=(value)
  write_feature_attribute_boolean(:wiki_access_level, value)
end