cloudsmith-api 1.61.3 → 1.120.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +51 -30
  4. data/build.json +1 -1
  5. data/docs/AuditLogApi.md +137 -0
  6. data/docs/FilesApi.md +13 -6
  7. data/docs/NamespaceAuditLog.md +23 -0
  8. data/docs/OrganizationGroupSync.md +12 -0
  9. data/docs/OrganizationInvite.md +16 -0
  10. data/docs/OrganizationTeam.md +12 -0
  11. data/docs/OrgsApi.md +713 -0
  12. data/docs/OrgsInvitesCreate.md +12 -0
  13. data/docs/OrgsInvitesExtend.md +11 -0
  14. data/docs/OrgsSamlgroupsyncCreate.md +12 -0
  15. data/docs/OrgsTeamsCreate.md +11 -0
  16. data/docs/OrgsTeamsPartialUpdate.md +11 -0
  17. data/docs/ReposApi.md +586 -0
  18. data/docs/ReposCreate.md +29 -1
  19. data/docs/ReposGpgCreate.md +9 -0
  20. data/docs/ReposPartialUpdate.md +28 -0
  21. data/docs/ReposRsaCreate.md +9 -0
  22. data/docs/Repository.md +28 -0
  23. data/docs/RepositoryAuditLog.md +20 -0
  24. data/docs/RepositoryCreate.md +29 -1
  25. data/docs/RepositoryGpgKey.md +14 -0
  26. data/docs/RepositoryPrivilegeList.md +8 -0
  27. data/docs/RepositoryRsaKey.md +13 -0
  28. data/lib/cloudsmith-api/api/audit_log_api.rb +147 -0
  29. data/lib/cloudsmith-api/api/files_api.rb +17 -7
  30. data/lib/cloudsmith-api/api/orgs_api.rb +671 -0
  31. data/lib/cloudsmith-api/api/repos_api.rb +566 -0
  32. data/lib/cloudsmith-api/models/alpine_package_upload.rb +34 -0
  33. data/lib/cloudsmith-api/models/conan_package_upload.rb +34 -0
  34. data/lib/cloudsmith-api/models/entitlements_create.rb +46 -0
  35. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +46 -0
  36. data/lib/cloudsmith-api/models/entitlements_refresh.rb +46 -0
  37. data/lib/cloudsmith-api/models/files_abort.rb +34 -0
  38. data/lib/cloudsmith-api/models/files_complete.rb +34 -0
  39. data/lib/cloudsmith-api/models/files_create.rb +34 -0
  40. data/lib/cloudsmith-api/models/files_validate.rb +34 -0
  41. data/lib/cloudsmith-api/models/maven_package_upload.rb +34 -0
  42. data/lib/cloudsmith-api/models/namespace_audit_log.rb +395 -0
  43. data/lib/cloudsmith-api/models/organization_group_sync.rb +240 -0
  44. data/lib/cloudsmith-api/models/organization_invite.rb +299 -0
  45. data/lib/cloudsmith-api/models/organization_membership.rb +46 -0
  46. data/lib/cloudsmith-api/models/organization_team.rb +264 -0
  47. data/lib/cloudsmith-api/models/orgs_invites_create.rb +259 -0
  48. data/lib/cloudsmith-api/models/orgs_invites_extend.rb +249 -0
  49. data/lib/cloudsmith-api/models/orgs_samlgroupsync_create.rb +245 -0
  50. data/lib/cloudsmith-api/models/orgs_teams_create.rb +254 -0
  51. data/lib/cloudsmith-api/models/orgs_teams_partial_update.rb +249 -0
  52. data/lib/cloudsmith-api/models/package.rb +34 -0
  53. data/lib/cloudsmith-api/models/package_copy.rb +34 -0
  54. data/lib/cloudsmith-api/models/package_move.rb +34 -0
  55. data/lib/cloudsmith-api/models/packages_tag.rb +34 -0
  56. data/lib/cloudsmith-api/models/raw_package_upload.rb +34 -0
  57. data/lib/cloudsmith-api/models/repos_create.rb +403 -5
  58. data/lib/cloudsmith-api/models/repos_gpg_create.rb +200 -0
  59. data/lib/cloudsmith-api/models/repos_partial_update.rb +414 -4
  60. data/lib/cloudsmith-api/models/repos_rsa_create.rb +200 -0
  61. data/lib/cloudsmith-api/models/repository.rb +414 -4
  62. data/lib/cloudsmith-api/models/repository_audit_log.rb +355 -0
  63. data/lib/cloudsmith-api/models/repository_create.rb +403 -5
  64. data/lib/cloudsmith-api/models/repository_gpg_key.rb +250 -0
  65. data/lib/cloudsmith-api/models/repository_privilege_list.rb +185 -0
  66. data/lib/cloudsmith-api/models/repository_rsa_key.rb +235 -0
  67. data/lib/cloudsmith-api/models/repository_token.rb +46 -0
  68. data/lib/cloudsmith-api/models/repository_token_refresh.rb +46 -0
  69. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +34 -0
  70. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +34 -0
  71. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +34 -0
  72. data/lib/cloudsmith-api/version.rb +1 -1
  73. data/lib/cloudsmith-api.rb +16 -0
  74. data/spec/api/audit_log_api_spec.rb +66 -0
  75. data/spec/api/files_api_spec.rb +4 -2
  76. data/spec/api/orgs_api_spec.rb +161 -0
  77. data/spec/api/repos_api_spec.rb +132 -0
  78. data/spec/models/alpine_package_upload_spec.rb +4 -0
  79. data/spec/models/conan_package_upload_spec.rb +4 -0
  80. data/spec/models/entitlements_create_spec.rb +8 -0
  81. data/spec/models/entitlements_partial_update_spec.rb +8 -0
  82. data/spec/models/entitlements_refresh_spec.rb +8 -0
  83. data/spec/models/files_abort_spec.rb +4 -0
  84. data/spec/models/files_complete_spec.rb +4 -0
  85. data/spec/models/files_create_spec.rb +4 -0
  86. data/spec/models/files_validate_spec.rb +4 -0
  87. data/spec/models/maven_package_upload_spec.rb +4 -0
  88. data/spec/models/namespace_audit_log_spec.rb +131 -0
  89. data/spec/models/organization_group_sync_spec.rb +65 -0
  90. data/spec/models/organization_invite_spec.rb +93 -0
  91. data/spec/models/organization_membership_spec.rb +8 -0
  92. data/spec/models/organization_team_spec.rb +69 -0
  93. data/spec/models/orgs_invites_create_spec.rb +69 -0
  94. data/spec/models/orgs_invites_extend_spec.rb +63 -0
  95. data/spec/models/orgs_samlgroupsync_create_spec.rb +65 -0
  96. data/spec/models/orgs_teams_create_spec.rb +63 -0
  97. data/spec/models/orgs_teams_partial_update_spec.rb +63 -0
  98. data/spec/models/package_copy_spec.rb +4 -0
  99. data/spec/models/package_move_spec.rb +4 -0
  100. data/spec/models/package_spec.rb +4 -0
  101. data/spec/models/packages_tag_spec.rb +4 -0
  102. data/spec/models/raw_package_upload_spec.rb +4 -0
  103. data/spec/models/repos_create_spec.rb +200 -0
  104. data/spec/models/repos_gpg_create_spec.rb +47 -0
  105. data/spec/models/repos_partial_update_spec.rb +204 -0
  106. data/spec/models/repos_rsa_create_spec.rb +47 -0
  107. data/spec/models/repository_audit_log_spec.rb +113 -0
  108. data/spec/models/repository_create_spec.rb +200 -0
  109. data/spec/models/repository_gpg_key_spec.rb +77 -0
  110. data/spec/models/repository_privilege_list_spec.rb +41 -0
  111. data/spec/models/repository_rsa_key_spec.rb +71 -0
  112. data/spec/models/repository_spec.rb +204 -0
  113. data/spec/models/repository_token_refresh_spec.rb +8 -0
  114. data/spec/models/repository_token_spec.rb +8 -0
  115. data/spec/models/vagrant_package_upload_spec.rb +4 -0
  116. data/spec/models/vulnerability_scan_results_list_spec.rb +4 -0
  117. data/spec/models/vulnerability_scan_results_spec.rb +4 -0
  118. data/vendor/bundle/ruby/2.6.0/bin/htmldiff +3 -3
  119. data/vendor/bundle/ruby/2.6.0/bin/ldiff +3 -3
  120. data/vendor/bundle/ruby/2.6.0/bin/multigem +3 -3
  121. data/vendor/bundle/ruby/2.6.0/bin/multiruby +3 -3
  122. data/vendor/bundle/ruby/2.6.0/bin/rake +2 -0
  123. data/vendor/bundle/ruby/2.6.0/bin/rspec +2 -0
  124. data/vendor/bundle/ruby/2.6.0/bin/unit_diff +3 -3
  125. data/vendor/bundle/ruby/2.6.0/bin/zentest +3 -3
  126. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +4 -4
  127. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/ffi_c.so +0 -0
  128. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +5 -5
  129. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/mkmf.log +9 -9
  130. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +4 -4
  131. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/generator.so +0 -0
  132. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/parser.so +0 -0
  133. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/mkmf.log +7 -7
  134. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.o +0 -0
  135. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.o +0 -0
  136. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.o +0 -0
  137. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Call.o +0 -0
  138. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.o +0 -0
  139. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.o +0 -0
  140. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Function.o +0 -0
  141. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.o +0 -0
  142. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LastError.o +0 -0
  143. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.o +0 -0
  144. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +3 -3
  145. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.o +0 -0
  146. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.o +0 -0
  147. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.o +0 -0
  148. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Platform.o +0 -0
  149. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.o +0 -0
  150. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Struct.o +0 -0
  151. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.o +0 -0
  152. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.o +0 -0
  153. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Thread.o +0 -0
  154. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Type.o +0 -0
  155. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Types.o +0 -0
  156. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.o +0 -0
  157. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi.o +0 -0
  158. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi_c.so +0 -0
  159. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
  160. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/Makefile +3 -3
  161. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/Makefile +3 -3
  162. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.o +0 -0
  163. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.so +0 -0
  164. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/Makefile +3 -3
  165. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.o +0 -0
  166. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.so +0 -0
  167. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/generator.so +0 -0
  168. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/parser.so +0 -0
  169. data/vendor/bundle/ruby/2.6.0/specifications/ZenTest-4.12.1.gemspec +6 -9
  170. data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.0.gemspec +6 -9
  171. data/vendor/bundle/ruby/2.6.0/specifications/autotest-4.4.6.gemspec +8 -13
  172. data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.19.gemspec +8 -13
  173. data/vendor/bundle/ruby/2.6.0/specifications/autotest-growl-0.2.16.gemspec +7 -11
  174. data/vendor/bundle/ruby/2.6.0/specifications/autotest-rails-pure-4.1.2.gemspec +2 -2
  175. data/vendor/bundle/ruby/2.6.0/specifications/crack-0.4.5.gemspec +5 -7
  176. data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.5.0.gemspec +12 -21
  177. data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.15.0.gemspec +5 -7
  178. data/vendor/bundle/ruby/2.6.0/specifications/ffi-1.15.5.gemspec +8 -13
  179. data/vendor/bundle/ruby/2.6.0/specifications/hashdiff-1.0.1.gemspec +9 -15
  180. data/vendor/bundle/ruby/2.6.0/specifications/json-2.6.2.gemspec +0 -0
  181. data/vendor/bundle/ruby/2.6.0/specifications/public_suffix-4.0.7.gemspec +2 -2
  182. data/vendor/bundle/ruby/2.6.0/specifications/rake-12.3.3.gemspec +9 -15
  183. data/vendor/bundle/ruby/2.6.0/specifications/rexml-3.2.5.gemspec +7 -11
  184. data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.11.0.gemspec +7 -11
  185. data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.11.0.gemspec +13 -23
  186. data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.11.0.gemspec +10 -17
  187. data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.11.1.gemspec +10 -17
  188. data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.11.0.gemspec +6 -9
  189. data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.2.gemspec +7 -11
  190. data/vendor/bundle/ruby/2.6.0/specifications/typhoeus-1.4.0.gemspec +5 -7
  191. data/vendor/bundle/ruby/2.6.0/specifications/vcr-3.0.3.gemspec +26 -49
  192. data/vendor/bundle/ruby/2.6.0/specifications/webmock-1.24.6.gemspec +19 -35
  193. metadata +85 -21
@@ -14,40 +14,202 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class ReposPartialUpdate
17
+ # If checked, missing credentials for this repository where basic authentication is required shall present an enriched value in the 'WWW-Authenticate' header containing the namespace and repository. This can be useful for tooling such as SBT where the authentication realm is used to distinguish and disambiguate credentials.
18
+ attr_accessor :contextual_auth_realm
19
+
20
+ # If checked, users can copy any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
21
+ attr_accessor :copy_own
22
+
23
+ # This defines the minimum level of privilege required for a user to copy packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific copy setting.
24
+ attr_accessor :copy_packages
25
+
26
+ # This defines the default level of privilege that all of your organization members have for this repository. This does not include collaborators, but applies to any member of the org regardless of their own membership role (i.e. it applies to owners, managers and members). Be careful if setting this to admin, because any member will be able to change settings.
27
+ attr_accessor :default_privilege
28
+
29
+ # If checked, users can delete any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
30
+ attr_accessor :delete_own
31
+
32
+ # This defines the minimum level of privilege required for a user to delete packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific delete setting.
33
+ attr_accessor :delete_packages
34
+
17
35
  # A description of the repository's purpose/contents.
18
36
  attr_accessor :description
19
37
 
38
+ # If checked, refresh tokens will be issued in addition to access tokens for Docker authentication. This allows unlimited extension of the lifetime of access tokens.
39
+ attr_accessor :docker_refresh_tokens_enabled
40
+
20
41
  # If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
21
42
  attr_accessor :index_files
22
43
 
44
+ # If checked, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
45
+ attr_accessor :move_own
46
+
47
+ # This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting.
48
+ attr_accessor :move_packages
49
+
23
50
  # A descriptive name for the repository.
24
51
  attr_accessor :name
25
52
 
53
+ # If checked, Npm packages that are not in the repository when requested by clients will automatically be proxied from the public npmjs.org registry. If there is at least one version for a package, others will not be proxied.
54
+ attr_accessor :proxy_npmjs
55
+
56
+ # If checked, Python packages that are not in the repository when requested by clients will automatically be proxied from the public pypi.python.org registry. If there is at least one version for a package, others will not be proxied.
57
+ attr_accessor :proxy_pypi
58
+
59
+ # If checked, HTML and JSON indexes will be generated that list all available raw packages in the repository.
60
+ attr_accessor :raw_package_index_enabled
61
+
62
+ # If checked, the HTML and JSON indexes will display raw package GPG signatures alongside the index packages.
63
+ attr_accessor :raw_package_index_signatures_enabled
64
+
65
+ # This defines the minimum level of privilege required for a user to republish packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific republish setting. Please note that the user still requires the privilege to delete packages that will be replaced by the new package; otherwise the republish will fail.
66
+ attr_accessor :replace_packages
67
+
68
+ # If checked, uploaded packages will overwrite/replace any others with the same attributes (e.g. same version) by default. This only applies if the user has the required privilege for the republishing AND has the required privilege to delete existing packages that they don't own.
69
+ attr_accessor :replace_packages_by_default
70
+
26
71
  # The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users.
27
72
  attr_accessor :repository_type_str
28
73
 
74
+ # If checked, users can resync any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
75
+ attr_accessor :resync_own
76
+
77
+ # This defines the minimum level of privilege required for a user to resync packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific resync setting.
78
+ attr_accessor :resync_packages
79
+
80
+ # If checked, users can scan any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
81
+ attr_accessor :scan_own
82
+
83
+ # This defines the minimum level of privilege required for a user to scan packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific scan setting.
84
+ attr_accessor :scan_packages
85
+
86
+ # If checked, the Set Me Up help for all formats will always be shown, even if you don't have packages of that type uploaded. Otherwise, help will only be shown for packages that are in the repository. For example, if you have uploaded only NuGet packages, then the Set Me Up help for NuGet packages will be shown only.
87
+ attr_accessor :show_setup_all
88
+
29
89
  # The slug identifies the repository in URIs.
30
90
  attr_accessor :slug
31
91
 
92
+ # If checked, npm packages will be validated strictly to ensure the package matches specifcation. You can turn this off if you have packages that are old or otherwise mildly off-spec, but we can't guarantee the packages will work with npm-cli or other tooling correctly. Turn off at your own risk!
93
+ attr_accessor :strict_npm_validation
94
+
95
+ # If checked, a 'Label' field will be present in Debian-based repositories. It will contain a string that identifies the entitlement token used to authenticate the repository, in the form of 'source=t-<identifier>'; or 'source=none' if no token was used. You can use this to help with pinning.
96
+ attr_accessor :use_debian_labels
97
+
98
+ # If checked, dependencies of uploaded Cargo crates which do not set an explicit value for \"registry\" will be assumed to be available from crates.io. If unchecked, dependencies with unspecified \"registry\" values will be assumed to be available in the registry being uploaded to. Uncheck this if you want to ensure that dependencies are only ever installed from Cloudsmith unless explicitly specified as belong to another registry.
99
+ attr_accessor :use_default_cargo_upstream
100
+
101
+ # If checked, noarch packages (if supported) are enabled in installations/configurations. A noarch package is one that is not tied to specific system architecture (like i686).
102
+ attr_accessor :use_noarch_packages
103
+
104
+ # If checked, source packages (if supported) are enabled in installations/configurations. A source package is one that contains source code rather than built binaries.
105
+ attr_accessor :use_source_packages
106
+
107
+ # If checked, vulnerability scanning will be enabled for all supported packages within this repository.
108
+ attr_accessor :use_vulnerability_scanning
109
+
110
+ # If checked, users can use and manage their own user-specific entitlement token for the repository (if private). Otherwise, user-specific entitlements are disabled for all users.
111
+ attr_accessor :user_entitlements_enabled
112
+
113
+ # This defines the minimum level of privilege required for a user to view repository statistics, to include entitlement-based usage, if applciable. If a user does not have the permission, they won't be able to view any statistics, either via the UI, API or CLI.
114
+ attr_accessor :view_statistics
115
+
116
+ class EnumAttributeValidator
117
+ attr_reader :datatype
118
+ attr_reader :allowable_values
119
+
120
+ def initialize(datatype, allowable_values)
121
+ @allowable_values = allowable_values.map do |value|
122
+ case datatype.to_s
123
+ when /Integer/i
124
+ value.to_i
125
+ when /Float/i
126
+ value.to_f
127
+ else
128
+ value
129
+ end
130
+ end
131
+ end
132
+
133
+ def valid?(value)
134
+ !value || allowable_values.include?(value)
135
+ end
136
+ end
137
+
32
138
  # Attribute mapping from ruby-style variable name to JSON key.
33
139
  def self.attribute_map
34
140
  {
141
+ :'contextual_auth_realm' => :'contextual_auth_realm',
142
+ :'copy_own' => :'copy_own',
143
+ :'copy_packages' => :'copy_packages',
144
+ :'default_privilege' => :'default_privilege',
145
+ :'delete_own' => :'delete_own',
146
+ :'delete_packages' => :'delete_packages',
35
147
  :'description' => :'description',
148
+ :'docker_refresh_tokens_enabled' => :'docker_refresh_tokens_enabled',
36
149
  :'index_files' => :'index_files',
150
+ :'move_own' => :'move_own',
151
+ :'move_packages' => :'move_packages',
37
152
  :'name' => :'name',
153
+ :'proxy_npmjs' => :'proxy_npmjs',
154
+ :'proxy_pypi' => :'proxy_pypi',
155
+ :'raw_package_index_enabled' => :'raw_package_index_enabled',
156
+ :'raw_package_index_signatures_enabled' => :'raw_package_index_signatures_enabled',
157
+ :'replace_packages' => :'replace_packages',
158
+ :'replace_packages_by_default' => :'replace_packages_by_default',
38
159
  :'repository_type_str' => :'repository_type_str',
39
- :'slug' => :'slug'
160
+ :'resync_own' => :'resync_own',
161
+ :'resync_packages' => :'resync_packages',
162
+ :'scan_own' => :'scan_own',
163
+ :'scan_packages' => :'scan_packages',
164
+ :'show_setup_all' => :'show_setup_all',
165
+ :'slug' => :'slug',
166
+ :'strict_npm_validation' => :'strict_npm_validation',
167
+ :'use_debian_labels' => :'use_debian_labels',
168
+ :'use_default_cargo_upstream' => :'use_default_cargo_upstream',
169
+ :'use_noarch_packages' => :'use_noarch_packages',
170
+ :'use_source_packages' => :'use_source_packages',
171
+ :'use_vulnerability_scanning' => :'use_vulnerability_scanning',
172
+ :'user_entitlements_enabled' => :'user_entitlements_enabled',
173
+ :'view_statistics' => :'view_statistics'
40
174
  }
41
175
  end
42
176
 
43
177
  # Attribute type mapping.
44
178
  def self.swagger_types
45
179
  {
180
+ :'contextual_auth_realm' => :'BOOLEAN',
181
+ :'copy_own' => :'BOOLEAN',
182
+ :'copy_packages' => :'String',
183
+ :'default_privilege' => :'String',
184
+ :'delete_own' => :'BOOLEAN',
185
+ :'delete_packages' => :'String',
46
186
  :'description' => :'String',
187
+ :'docker_refresh_tokens_enabled' => :'BOOLEAN',
47
188
  :'index_files' => :'BOOLEAN',
189
+ :'move_own' => :'BOOLEAN',
190
+ :'move_packages' => :'String',
48
191
  :'name' => :'String',
192
+ :'proxy_npmjs' => :'BOOLEAN',
193
+ :'proxy_pypi' => :'BOOLEAN',
194
+ :'raw_package_index_enabled' => :'BOOLEAN',
195
+ :'raw_package_index_signatures_enabled' => :'BOOLEAN',
196
+ :'replace_packages' => :'String',
197
+ :'replace_packages_by_default' => :'BOOLEAN',
49
198
  :'repository_type_str' => :'String',
50
- :'slug' => :'String'
199
+ :'resync_own' => :'BOOLEAN',
200
+ :'resync_packages' => :'String',
201
+ :'scan_own' => :'BOOLEAN',
202
+ :'scan_packages' => :'String',
203
+ :'show_setup_all' => :'BOOLEAN',
204
+ :'slug' => :'String',
205
+ :'strict_npm_validation' => :'BOOLEAN',
206
+ :'use_debian_labels' => :'BOOLEAN',
207
+ :'use_default_cargo_upstream' => :'BOOLEAN',
208
+ :'use_noarch_packages' => :'BOOLEAN',
209
+ :'use_source_packages' => :'BOOLEAN',
210
+ :'use_vulnerability_scanning' => :'BOOLEAN',
211
+ :'user_entitlements_enabled' => :'BOOLEAN',
212
+ :'view_statistics' => :'String'
51
213
  }
52
214
  end
53
215
 
@@ -59,25 +221,137 @@ module CloudsmithApi
59
221
  # convert string to symbol for hash key
60
222
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
61
223
 
224
+ if attributes.has_key?(:'contextual_auth_realm')
225
+ self.contextual_auth_realm = attributes[:'contextual_auth_realm']
226
+ end
227
+
228
+ if attributes.has_key?(:'copy_own')
229
+ self.copy_own = attributes[:'copy_own']
230
+ end
231
+
232
+ if attributes.has_key?(:'copy_packages')
233
+ self.copy_packages = attributes[:'copy_packages']
234
+ end
235
+
236
+ if attributes.has_key?(:'default_privilege')
237
+ self.default_privilege = attributes[:'default_privilege']
238
+ end
239
+
240
+ if attributes.has_key?(:'delete_own')
241
+ self.delete_own = attributes[:'delete_own']
242
+ end
243
+
244
+ if attributes.has_key?(:'delete_packages')
245
+ self.delete_packages = attributes[:'delete_packages']
246
+ end
247
+
62
248
  if attributes.has_key?(:'description')
63
249
  self.description = attributes[:'description']
64
250
  end
65
251
 
252
+ if attributes.has_key?(:'docker_refresh_tokens_enabled')
253
+ self.docker_refresh_tokens_enabled = attributes[:'docker_refresh_tokens_enabled']
254
+ end
255
+
66
256
  if attributes.has_key?(:'index_files')
67
257
  self.index_files = attributes[:'index_files']
68
258
  end
69
259
 
260
+ if attributes.has_key?(:'move_own')
261
+ self.move_own = attributes[:'move_own']
262
+ end
263
+
264
+ if attributes.has_key?(:'move_packages')
265
+ self.move_packages = attributes[:'move_packages']
266
+ end
267
+
70
268
  if attributes.has_key?(:'name')
71
269
  self.name = attributes[:'name']
72
270
  end
73
271
 
272
+ if attributes.has_key?(:'proxy_npmjs')
273
+ self.proxy_npmjs = attributes[:'proxy_npmjs']
274
+ end
275
+
276
+ if attributes.has_key?(:'proxy_pypi')
277
+ self.proxy_pypi = attributes[:'proxy_pypi']
278
+ end
279
+
280
+ if attributes.has_key?(:'raw_package_index_enabled')
281
+ self.raw_package_index_enabled = attributes[:'raw_package_index_enabled']
282
+ end
283
+
284
+ if attributes.has_key?(:'raw_package_index_signatures_enabled')
285
+ self.raw_package_index_signatures_enabled = attributes[:'raw_package_index_signatures_enabled']
286
+ end
287
+
288
+ if attributes.has_key?(:'replace_packages')
289
+ self.replace_packages = attributes[:'replace_packages']
290
+ end
291
+
292
+ if attributes.has_key?(:'replace_packages_by_default')
293
+ self.replace_packages_by_default = attributes[:'replace_packages_by_default']
294
+ end
295
+
74
296
  if attributes.has_key?(:'repository_type_str')
75
297
  self.repository_type_str = attributes[:'repository_type_str']
76
298
  end
77
299
 
300
+ if attributes.has_key?(:'resync_own')
301
+ self.resync_own = attributes[:'resync_own']
302
+ end
303
+
304
+ if attributes.has_key?(:'resync_packages')
305
+ self.resync_packages = attributes[:'resync_packages']
306
+ end
307
+
308
+ if attributes.has_key?(:'scan_own')
309
+ self.scan_own = attributes[:'scan_own']
310
+ end
311
+
312
+ if attributes.has_key?(:'scan_packages')
313
+ self.scan_packages = attributes[:'scan_packages']
314
+ end
315
+
316
+ if attributes.has_key?(:'show_setup_all')
317
+ self.show_setup_all = attributes[:'show_setup_all']
318
+ end
319
+
78
320
  if attributes.has_key?(:'slug')
79
321
  self.slug = attributes[:'slug']
80
322
  end
323
+
324
+ if attributes.has_key?(:'strict_npm_validation')
325
+ self.strict_npm_validation = attributes[:'strict_npm_validation']
326
+ end
327
+
328
+ if attributes.has_key?(:'use_debian_labels')
329
+ self.use_debian_labels = attributes[:'use_debian_labels']
330
+ end
331
+
332
+ if attributes.has_key?(:'use_default_cargo_upstream')
333
+ self.use_default_cargo_upstream = attributes[:'use_default_cargo_upstream']
334
+ end
335
+
336
+ if attributes.has_key?(:'use_noarch_packages')
337
+ self.use_noarch_packages = attributes[:'use_noarch_packages']
338
+ end
339
+
340
+ if attributes.has_key?(:'use_source_packages')
341
+ self.use_source_packages = attributes[:'use_source_packages']
342
+ end
343
+
344
+ if attributes.has_key?(:'use_vulnerability_scanning')
345
+ self.use_vulnerability_scanning = attributes[:'use_vulnerability_scanning']
346
+ end
347
+
348
+ if attributes.has_key?(:'user_entitlements_enabled')
349
+ self.user_entitlements_enabled = attributes[:'user_entitlements_enabled']
350
+ end
351
+
352
+ if attributes.has_key?(:'view_statistics')
353
+ self.view_statistics = attributes[:'view_statistics']
354
+ end
81
355
  end
82
356
 
83
357
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,19 +364,155 @@ module CloudsmithApi
90
364
  # Check to see if the all the properties in the model are valid
91
365
  # @return true if the model is valid
92
366
  def valid?
367
+ copy_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
368
+ return false unless copy_packages_validator.valid?(@copy_packages)
369
+ default_privilege_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
370
+ return false unless default_privilege_validator.valid?(@default_privilege)
371
+ delete_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
372
+ return false unless delete_packages_validator.valid?(@delete_packages)
373
+ move_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
374
+ return false unless move_packages_validator.valid?(@move_packages)
375
+ replace_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
376
+ return false unless replace_packages_validator.valid?(@replace_packages)
377
+ repository_type_str_validator = EnumAttributeValidator.new('String', ['Public', 'Private', 'Open-Source'])
378
+ return false unless repository_type_str_validator.valid?(@repository_type_str)
379
+ resync_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
380
+ return false unless resync_packages_validator.valid?(@resync_packages)
381
+ scan_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
382
+ return false unless scan_packages_validator.valid?(@scan_packages)
383
+ view_statistics_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
384
+ return false unless view_statistics_validator.valid?(@view_statistics)
93
385
  true
94
386
  end
95
387
 
388
+ # Custom attribute writer method checking allowed values (enum).
389
+ # @param [Object] copy_packages Object to be assigned
390
+ def copy_packages=(copy_packages)
391
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
392
+ unless validator.valid?(copy_packages)
393
+ fail ArgumentError, 'invalid value for "copy_packages", must be one of #{validator.allowable_values}.'
394
+ end
395
+ @copy_packages = copy_packages
396
+ end
397
+
398
+ # Custom attribute writer method checking allowed values (enum).
399
+ # @param [Object] default_privilege Object to be assigned
400
+ def default_privilege=(default_privilege)
401
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
402
+ unless validator.valid?(default_privilege)
403
+ fail ArgumentError, 'invalid value for "default_privilege", must be one of #{validator.allowable_values}.'
404
+ end
405
+ @default_privilege = default_privilege
406
+ end
407
+
408
+ # Custom attribute writer method checking allowed values (enum).
409
+ # @param [Object] delete_packages Object to be assigned
410
+ def delete_packages=(delete_packages)
411
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
412
+ unless validator.valid?(delete_packages)
413
+ fail ArgumentError, 'invalid value for "delete_packages", must be one of #{validator.allowable_values}.'
414
+ end
415
+ @delete_packages = delete_packages
416
+ end
417
+
418
+ # Custom attribute writer method checking allowed values (enum).
419
+ # @param [Object] move_packages Object to be assigned
420
+ def move_packages=(move_packages)
421
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
422
+ unless validator.valid?(move_packages)
423
+ fail ArgumentError, 'invalid value for "move_packages", must be one of #{validator.allowable_values}.'
424
+ end
425
+ @move_packages = move_packages
426
+ end
427
+
428
+ # Custom attribute writer method checking allowed values (enum).
429
+ # @param [Object] replace_packages Object to be assigned
430
+ def replace_packages=(replace_packages)
431
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
432
+ unless validator.valid?(replace_packages)
433
+ fail ArgumentError, 'invalid value for "replace_packages", must be one of #{validator.allowable_values}.'
434
+ end
435
+ @replace_packages = replace_packages
436
+ end
437
+
438
+ # Custom attribute writer method checking allowed values (enum).
439
+ # @param [Object] repository_type_str Object to be assigned
440
+ def repository_type_str=(repository_type_str)
441
+ validator = EnumAttributeValidator.new('String', ['Public', 'Private', 'Open-Source'])
442
+ unless validator.valid?(repository_type_str)
443
+ fail ArgumentError, 'invalid value for "repository_type_str", must be one of #{validator.allowable_values}.'
444
+ end
445
+ @repository_type_str = repository_type_str
446
+ end
447
+
448
+ # Custom attribute writer method checking allowed values (enum).
449
+ # @param [Object] resync_packages Object to be assigned
450
+ def resync_packages=(resync_packages)
451
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
452
+ unless validator.valid?(resync_packages)
453
+ fail ArgumentError, 'invalid value for "resync_packages", must be one of #{validator.allowable_values}.'
454
+ end
455
+ @resync_packages = resync_packages
456
+ end
457
+
458
+ # Custom attribute writer method checking allowed values (enum).
459
+ # @param [Object] scan_packages Object to be assigned
460
+ def scan_packages=(scan_packages)
461
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
462
+ unless validator.valid?(scan_packages)
463
+ fail ArgumentError, 'invalid value for "scan_packages", must be one of #{validator.allowable_values}.'
464
+ end
465
+ @scan_packages = scan_packages
466
+ end
467
+
468
+ # Custom attribute writer method checking allowed values (enum).
469
+ # @param [Object] view_statistics Object to be assigned
470
+ def view_statistics=(view_statistics)
471
+ validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
472
+ unless validator.valid?(view_statistics)
473
+ fail ArgumentError, 'invalid value for "view_statistics", must be one of #{validator.allowable_values}.'
474
+ end
475
+ @view_statistics = view_statistics
476
+ end
477
+
96
478
  # Checks equality by comparing each attribute.
97
479
  # @param [Object] Object to be compared
98
480
  def ==(o)
99
481
  return true if self.equal?(o)
100
482
  self.class == o.class &&
483
+ contextual_auth_realm == o.contextual_auth_realm &&
484
+ copy_own == o.copy_own &&
485
+ copy_packages == o.copy_packages &&
486
+ default_privilege == o.default_privilege &&
487
+ delete_own == o.delete_own &&
488
+ delete_packages == o.delete_packages &&
101
489
  description == o.description &&
490
+ docker_refresh_tokens_enabled == o.docker_refresh_tokens_enabled &&
102
491
  index_files == o.index_files &&
492
+ move_own == o.move_own &&
493
+ move_packages == o.move_packages &&
103
494
  name == o.name &&
495
+ proxy_npmjs == o.proxy_npmjs &&
496
+ proxy_pypi == o.proxy_pypi &&
497
+ raw_package_index_enabled == o.raw_package_index_enabled &&
498
+ raw_package_index_signatures_enabled == o.raw_package_index_signatures_enabled &&
499
+ replace_packages == o.replace_packages &&
500
+ replace_packages_by_default == o.replace_packages_by_default &&
104
501
  repository_type_str == o.repository_type_str &&
105
- slug == o.slug
502
+ resync_own == o.resync_own &&
503
+ resync_packages == o.resync_packages &&
504
+ scan_own == o.scan_own &&
505
+ scan_packages == o.scan_packages &&
506
+ show_setup_all == o.show_setup_all &&
507
+ slug == o.slug &&
508
+ strict_npm_validation == o.strict_npm_validation &&
509
+ use_debian_labels == o.use_debian_labels &&
510
+ use_default_cargo_upstream == o.use_default_cargo_upstream &&
511
+ use_noarch_packages == o.use_noarch_packages &&
512
+ use_source_packages == o.use_source_packages &&
513
+ use_vulnerability_scanning == o.use_vulnerability_scanning &&
514
+ user_entitlements_enabled == o.user_entitlements_enabled &&
515
+ view_statistics == o.view_statistics
106
516
  end
107
517
 
108
518
  # @see the `==` method
@@ -114,7 +524,7 @@ module CloudsmithApi
114
524
  # Calculates hash code according to all attributes.
115
525
  # @return [Fixnum] Hash code
116
526
  def hash
117
- [description, index_files, name, repository_type_str, slug].hash
527
+ [contextual_auth_realm, copy_own, copy_packages, default_privilege, delete_own, delete_packages, description, docker_refresh_tokens_enabled, index_files, move_own, move_packages, name, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, show_setup_all, slug, strict_npm_validation, use_debian_labels, use_default_cargo_upstream, use_noarch_packages, use_source_packages, use_vulnerability_scanning, user_entitlements_enabled, view_statistics].hash
118
528
  end
119
529
 
120
530
  # Builds the object from hash