cloudsmith-api 1.61.3 → 1.120.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +51 -30
- data/build.json +1 -1
- data/docs/AuditLogApi.md +137 -0
- data/docs/FilesApi.md +13 -6
- data/docs/NamespaceAuditLog.md +23 -0
- data/docs/OrganizationGroupSync.md +12 -0
- data/docs/OrganizationInvite.md +16 -0
- data/docs/OrganizationTeam.md +12 -0
- data/docs/OrgsApi.md +713 -0
- data/docs/OrgsInvitesCreate.md +12 -0
- data/docs/OrgsInvitesExtend.md +11 -0
- data/docs/OrgsSamlgroupsyncCreate.md +12 -0
- data/docs/OrgsTeamsCreate.md +11 -0
- data/docs/OrgsTeamsPartialUpdate.md +11 -0
- data/docs/ReposApi.md +586 -0
- data/docs/ReposCreate.md +29 -1
- data/docs/ReposGpgCreate.md +9 -0
- data/docs/ReposPartialUpdate.md +28 -0
- data/docs/ReposRsaCreate.md +9 -0
- data/docs/Repository.md +28 -0
- data/docs/RepositoryAuditLog.md +20 -0
- data/docs/RepositoryCreate.md +29 -1
- data/docs/RepositoryGpgKey.md +14 -0
- data/docs/RepositoryPrivilegeList.md +8 -0
- data/docs/RepositoryRsaKey.md +13 -0
- data/lib/cloudsmith-api/api/audit_log_api.rb +147 -0
- data/lib/cloudsmith-api/api/files_api.rb +17 -7
- data/lib/cloudsmith-api/api/orgs_api.rb +671 -0
- data/lib/cloudsmith-api/api/repos_api.rb +566 -0
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/conan_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/entitlements_create.rb +46 -0
- data/lib/cloudsmith-api/models/entitlements_partial_update.rb +46 -0
- data/lib/cloudsmith-api/models/entitlements_refresh.rb +46 -0
- data/lib/cloudsmith-api/models/files_abort.rb +34 -0
- data/lib/cloudsmith-api/models/files_complete.rb +34 -0
- data/lib/cloudsmith-api/models/files_create.rb +34 -0
- data/lib/cloudsmith-api/models/files_validate.rb +34 -0
- data/lib/cloudsmith-api/models/maven_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/namespace_audit_log.rb +395 -0
- data/lib/cloudsmith-api/models/organization_group_sync.rb +240 -0
- data/lib/cloudsmith-api/models/organization_invite.rb +299 -0
- data/lib/cloudsmith-api/models/organization_membership.rb +46 -0
- data/lib/cloudsmith-api/models/organization_team.rb +264 -0
- data/lib/cloudsmith-api/models/orgs_invites_create.rb +259 -0
- data/lib/cloudsmith-api/models/orgs_invites_extend.rb +249 -0
- data/lib/cloudsmith-api/models/orgs_samlgroupsync_create.rb +245 -0
- data/lib/cloudsmith-api/models/orgs_teams_create.rb +254 -0
- data/lib/cloudsmith-api/models/orgs_teams_partial_update.rb +249 -0
- data/lib/cloudsmith-api/models/package.rb +34 -0
- data/lib/cloudsmith-api/models/package_copy.rb +34 -0
- data/lib/cloudsmith-api/models/package_move.rb +34 -0
- data/lib/cloudsmith-api/models/packages_tag.rb +34 -0
- data/lib/cloudsmith-api/models/raw_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/repos_create.rb +403 -5
- data/lib/cloudsmith-api/models/repos_gpg_create.rb +200 -0
- data/lib/cloudsmith-api/models/repos_partial_update.rb +414 -4
- data/lib/cloudsmith-api/models/repos_rsa_create.rb +200 -0
- data/lib/cloudsmith-api/models/repository.rb +414 -4
- data/lib/cloudsmith-api/models/repository_audit_log.rb +355 -0
- data/lib/cloudsmith-api/models/repository_create.rb +403 -5
- data/lib/cloudsmith-api/models/repository_gpg_key.rb +250 -0
- data/lib/cloudsmith-api/models/repository_privilege_list.rb +185 -0
- data/lib/cloudsmith-api/models/repository_rsa_key.rb +235 -0
- data/lib/cloudsmith-api/models/repository_token.rb +46 -0
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +46 -0
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +34 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +34 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +16 -0
- data/spec/api/audit_log_api_spec.rb +66 -0
- data/spec/api/files_api_spec.rb +4 -2
- data/spec/api/orgs_api_spec.rb +161 -0
- data/spec/api/repos_api_spec.rb +132 -0
- data/spec/models/alpine_package_upload_spec.rb +4 -0
- data/spec/models/conan_package_upload_spec.rb +4 -0
- data/spec/models/entitlements_create_spec.rb +8 -0
- data/spec/models/entitlements_partial_update_spec.rb +8 -0
- data/spec/models/entitlements_refresh_spec.rb +8 -0
- data/spec/models/files_abort_spec.rb +4 -0
- data/spec/models/files_complete_spec.rb +4 -0
- data/spec/models/files_create_spec.rb +4 -0
- data/spec/models/files_validate_spec.rb +4 -0
- data/spec/models/maven_package_upload_spec.rb +4 -0
- data/spec/models/namespace_audit_log_spec.rb +131 -0
- data/spec/models/organization_group_sync_spec.rb +65 -0
- data/spec/models/organization_invite_spec.rb +93 -0
- data/spec/models/organization_membership_spec.rb +8 -0
- data/spec/models/organization_team_spec.rb +69 -0
- data/spec/models/orgs_invites_create_spec.rb +69 -0
- data/spec/models/orgs_invites_extend_spec.rb +63 -0
- data/spec/models/orgs_samlgroupsync_create_spec.rb +65 -0
- data/spec/models/orgs_teams_create_spec.rb +63 -0
- data/spec/models/orgs_teams_partial_update_spec.rb +63 -0
- data/spec/models/package_copy_spec.rb +4 -0
- data/spec/models/package_move_spec.rb +4 -0
- data/spec/models/package_spec.rb +4 -0
- data/spec/models/packages_tag_spec.rb +4 -0
- data/spec/models/raw_package_upload_spec.rb +4 -0
- data/spec/models/repos_create_spec.rb +200 -0
- data/spec/models/repos_gpg_create_spec.rb +47 -0
- data/spec/models/repos_partial_update_spec.rb +204 -0
- data/spec/models/repos_rsa_create_spec.rb +47 -0
- data/spec/models/repository_audit_log_spec.rb +113 -0
- data/spec/models/repository_create_spec.rb +200 -0
- data/spec/models/repository_gpg_key_spec.rb +77 -0
- data/spec/models/repository_privilege_list_spec.rb +41 -0
- data/spec/models/repository_rsa_key_spec.rb +71 -0
- data/spec/models/repository_spec.rb +204 -0
- data/spec/models/repository_token_refresh_spec.rb +8 -0
- data/spec/models/repository_token_spec.rb +8 -0
- data/spec/models/vagrant_package_upload_spec.rb +4 -0
- data/spec/models/vulnerability_scan_results_list_spec.rb +4 -0
- data/spec/models/vulnerability_scan_results_spec.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/bin/htmldiff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/ldiff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/multigem +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/multiruby +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/rake +2 -0
- data/vendor/bundle/ruby/2.6.0/bin/rspec +2 -0
- data/vendor/bundle/ruby/2.6.0/bin/unit_diff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/zentest +3 -3
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +5 -5
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/mkmf.log +9 -9
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/mkmf.log +7 -7
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Call.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Function.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LastError.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Platform.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Struct.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Thread.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Type.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Types.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/ZenTest-4.12.1.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.0.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-4.4.6.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.19.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-growl-0.2.16.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-rails-pure-4.1.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.6.0/specifications/crack-0.4.5.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.5.0.gemspec +12 -21
- data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.15.0.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/ffi-1.15.5.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/hashdiff-1.0.1.gemspec +9 -15
- data/vendor/bundle/ruby/2.6.0/specifications/json-2.6.2.gemspec +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/public_suffix-4.0.7.gemspec +2 -2
- data/vendor/bundle/ruby/2.6.0/specifications/rake-12.3.3.gemspec +9 -15
- data/vendor/bundle/ruby/2.6.0/specifications/rexml-3.2.5.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.11.0.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.11.0.gemspec +13 -23
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.11.0.gemspec +10 -17
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.11.1.gemspec +10 -17
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.11.0.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.2.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/typhoeus-1.4.0.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/vcr-3.0.3.gemspec +26 -49
- data/vendor/bundle/ruby/2.6.0/specifications/webmock-1.24.6.gemspec +19 -35
- metadata +85 -21
@@ -17,15 +17,36 @@ module CloudsmithApi
|
|
17
17
|
# Base URL from which packages and other artifacts are downloaded.
|
18
18
|
attr_accessor :cdn_url
|
19
19
|
|
20
|
+
# 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.
|
21
|
+
attr_accessor :contextual_auth_realm
|
22
|
+
|
23
|
+
# 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.
|
24
|
+
attr_accessor :copy_own
|
25
|
+
|
26
|
+
# 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.
|
27
|
+
attr_accessor :copy_packages
|
28
|
+
|
20
29
|
#
|
21
30
|
attr_accessor :created_at
|
22
31
|
|
32
|
+
# 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.
|
33
|
+
attr_accessor :default_privilege
|
34
|
+
|
35
|
+
# 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.
|
36
|
+
attr_accessor :delete_own
|
37
|
+
|
38
|
+
# 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.
|
39
|
+
attr_accessor :delete_packages
|
40
|
+
|
23
41
|
#
|
24
42
|
attr_accessor :deleted_at
|
25
43
|
|
26
44
|
# A description of the repository's purpose/contents.
|
27
45
|
attr_accessor :description
|
28
46
|
|
47
|
+
# 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.
|
48
|
+
attr_accessor :docker_refresh_tokens_enabled
|
49
|
+
|
29
50
|
#
|
30
51
|
attr_accessor :gpg_keys
|
31
52
|
|
@@ -41,6 +62,12 @@ module CloudsmithApi
|
|
41
62
|
#
|
42
63
|
attr_accessor :is_public
|
43
64
|
|
65
|
+
# 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.
|
66
|
+
attr_accessor :move_own
|
67
|
+
|
68
|
+
# 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.
|
69
|
+
attr_accessor :move_packages
|
70
|
+
|
44
71
|
# A descriptive name for the repository.
|
45
72
|
attr_accessor :name
|
46
73
|
|
@@ -59,18 +86,51 @@ module CloudsmithApi
|
|
59
86
|
# The number of groups in the repository.
|
60
87
|
attr_accessor :package_group_count
|
61
88
|
|
89
|
+
# 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.
|
90
|
+
attr_accessor :proxy_npmjs
|
91
|
+
|
92
|
+
# 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.
|
93
|
+
attr_accessor :proxy_pypi
|
94
|
+
|
95
|
+
# If checked, HTML and JSON indexes will be generated that list all available raw packages in the repository.
|
96
|
+
attr_accessor :raw_package_index_enabled
|
97
|
+
|
98
|
+
# If checked, the HTML and JSON indexes will display raw package GPG signatures alongside the index packages.
|
99
|
+
attr_accessor :raw_package_index_signatures_enabled
|
100
|
+
|
101
|
+
# 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.
|
102
|
+
attr_accessor :replace_packages
|
103
|
+
|
104
|
+
# 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.
|
105
|
+
attr_accessor :replace_packages_by_default
|
106
|
+
|
62
107
|
# 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. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time.
|
63
108
|
attr_accessor :repository_type
|
64
109
|
|
65
|
-
#
|
110
|
+
# 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.
|
66
111
|
attr_accessor :repository_type_str
|
67
112
|
|
113
|
+
# 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.
|
114
|
+
attr_accessor :resync_own
|
115
|
+
|
116
|
+
# 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.
|
117
|
+
attr_accessor :resync_packages
|
118
|
+
|
119
|
+
# 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.
|
120
|
+
attr_accessor :scan_own
|
121
|
+
|
122
|
+
# 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.
|
123
|
+
attr_accessor :scan_packages
|
124
|
+
|
68
125
|
# Website URL for this repository.
|
69
126
|
attr_accessor :self_html_url
|
70
127
|
|
71
128
|
# API endpoint where data about this repository can be retrieved.
|
72
129
|
attr_accessor :self_url
|
73
130
|
|
131
|
+
# 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.
|
132
|
+
attr_accessor :show_setup_all
|
133
|
+
|
74
134
|
# The calculated size of the repository.
|
75
135
|
attr_accessor :size
|
76
136
|
|
@@ -86,33 +146,107 @@ module CloudsmithApi
|
|
86
146
|
# The Cloudsmith region in which package files are stored.
|
87
147
|
attr_accessor :storage_region
|
88
148
|
|
149
|
+
# 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!
|
150
|
+
attr_accessor :strict_npm_validation
|
151
|
+
|
152
|
+
# 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.
|
153
|
+
attr_accessor :use_debian_labels
|
154
|
+
|
155
|
+
# 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.
|
156
|
+
attr_accessor :use_default_cargo_upstream
|
157
|
+
|
158
|
+
# 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).
|
159
|
+
attr_accessor :use_noarch_packages
|
160
|
+
|
161
|
+
# If checked, source packages (if supported) are enabled in installations/configurations. A source package is one that contains source code rather than built binaries.
|
162
|
+
attr_accessor :use_source_packages
|
163
|
+
|
164
|
+
# If checked, vulnerability scanning will be enabled for all supported packages within this repository.
|
165
|
+
attr_accessor :use_vulnerability_scanning
|
166
|
+
|
167
|
+
# 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.
|
168
|
+
attr_accessor :user_entitlements_enabled
|
169
|
+
|
170
|
+
# 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.
|
171
|
+
attr_accessor :view_statistics
|
172
|
+
|
173
|
+
class EnumAttributeValidator
|
174
|
+
attr_reader :datatype
|
175
|
+
attr_reader :allowable_values
|
176
|
+
|
177
|
+
def initialize(datatype, allowable_values)
|
178
|
+
@allowable_values = allowable_values.map do |value|
|
179
|
+
case datatype.to_s
|
180
|
+
when /Integer/i
|
181
|
+
value.to_i
|
182
|
+
when /Float/i
|
183
|
+
value.to_f
|
184
|
+
else
|
185
|
+
value
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
def valid?(value)
|
191
|
+
!value || allowable_values.include?(value)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
89
195
|
# Attribute mapping from ruby-style variable name to JSON key.
|
90
196
|
def self.attribute_map
|
91
197
|
{
|
92
198
|
:'cdn_url' => :'cdn_url',
|
199
|
+
:'contextual_auth_realm' => :'contextual_auth_realm',
|
200
|
+
:'copy_own' => :'copy_own',
|
201
|
+
:'copy_packages' => :'copy_packages',
|
93
202
|
:'created_at' => :'created_at',
|
203
|
+
:'default_privilege' => :'default_privilege',
|
204
|
+
:'delete_own' => :'delete_own',
|
205
|
+
:'delete_packages' => :'delete_packages',
|
94
206
|
:'deleted_at' => :'deleted_at',
|
95
207
|
:'description' => :'description',
|
208
|
+
:'docker_refresh_tokens_enabled' => :'docker_refresh_tokens_enabled',
|
96
209
|
:'gpg_keys' => :'gpg_keys',
|
97
210
|
:'index_files' => :'index_files',
|
98
211
|
:'is_open_source' => :'is_open_source',
|
99
212
|
:'is_private' => :'is_private',
|
100
213
|
:'is_public' => :'is_public',
|
214
|
+
:'move_own' => :'move_own',
|
215
|
+
:'move_packages' => :'move_packages',
|
101
216
|
:'name' => :'name',
|
102
217
|
:'namespace' => :'namespace',
|
103
218
|
:'namespace_url' => :'namespace_url',
|
104
219
|
:'num_downloads' => :'num_downloads',
|
105
220
|
:'package_count' => :'package_count',
|
106
221
|
:'package_group_count' => :'package_group_count',
|
222
|
+
:'proxy_npmjs' => :'proxy_npmjs',
|
223
|
+
:'proxy_pypi' => :'proxy_pypi',
|
224
|
+
:'raw_package_index_enabled' => :'raw_package_index_enabled',
|
225
|
+
:'raw_package_index_signatures_enabled' => :'raw_package_index_signatures_enabled',
|
226
|
+
:'replace_packages' => :'replace_packages',
|
227
|
+
:'replace_packages_by_default' => :'replace_packages_by_default',
|
107
228
|
:'repository_type' => :'repository_type',
|
108
229
|
:'repository_type_str' => :'repository_type_str',
|
230
|
+
:'resync_own' => :'resync_own',
|
231
|
+
:'resync_packages' => :'resync_packages',
|
232
|
+
:'scan_own' => :'scan_own',
|
233
|
+
:'scan_packages' => :'scan_packages',
|
109
234
|
:'self_html_url' => :'self_html_url',
|
110
235
|
:'self_url' => :'self_url',
|
236
|
+
:'show_setup_all' => :'show_setup_all',
|
111
237
|
:'size' => :'size',
|
112
238
|
:'size_str' => :'size_str',
|
113
239
|
:'slug' => :'slug',
|
114
240
|
:'slug_perm' => :'slug_perm',
|
115
|
-
:'storage_region' => :'storage_region'
|
241
|
+
:'storage_region' => :'storage_region',
|
242
|
+
:'strict_npm_validation' => :'strict_npm_validation',
|
243
|
+
:'use_debian_labels' => :'use_debian_labels',
|
244
|
+
:'use_default_cargo_upstream' => :'use_default_cargo_upstream',
|
245
|
+
:'use_noarch_packages' => :'use_noarch_packages',
|
246
|
+
:'use_source_packages' => :'use_source_packages',
|
247
|
+
:'use_vulnerability_scanning' => :'use_vulnerability_scanning',
|
248
|
+
:'user_entitlements_enabled' => :'user_entitlements_enabled',
|
249
|
+
:'view_statistics' => :'view_statistics'
|
116
250
|
}
|
117
251
|
end
|
118
252
|
|
@@ -120,29 +254,57 @@ module CloudsmithApi
|
|
120
254
|
def self.swagger_types
|
121
255
|
{
|
122
256
|
:'cdn_url' => :'String',
|
257
|
+
:'contextual_auth_realm' => :'BOOLEAN',
|
258
|
+
:'copy_own' => :'BOOLEAN',
|
259
|
+
:'copy_packages' => :'String',
|
123
260
|
:'created_at' => :'String',
|
261
|
+
:'default_privilege' => :'String',
|
262
|
+
:'delete_own' => :'BOOLEAN',
|
263
|
+
:'delete_packages' => :'String',
|
124
264
|
:'deleted_at' => :'String',
|
125
265
|
:'description' => :'String',
|
266
|
+
:'docker_refresh_tokens_enabled' => :'BOOLEAN',
|
126
267
|
:'gpg_keys' => :'Array<ReposGpgKeys>',
|
127
268
|
:'index_files' => :'BOOLEAN',
|
128
269
|
:'is_open_source' => :'BOOLEAN',
|
129
270
|
:'is_private' => :'BOOLEAN',
|
130
271
|
:'is_public' => :'BOOLEAN',
|
272
|
+
:'move_own' => :'BOOLEAN',
|
273
|
+
:'move_packages' => :'String',
|
131
274
|
:'name' => :'String',
|
132
275
|
:'namespace' => :'String',
|
133
276
|
:'namespace_url' => :'String',
|
134
277
|
:'num_downloads' => :'Integer',
|
135
278
|
:'package_count' => :'Integer',
|
136
279
|
:'package_group_count' => :'Integer',
|
280
|
+
:'proxy_npmjs' => :'BOOLEAN',
|
281
|
+
:'proxy_pypi' => :'BOOLEAN',
|
282
|
+
:'raw_package_index_enabled' => :'BOOLEAN',
|
283
|
+
:'raw_package_index_signatures_enabled' => :'BOOLEAN',
|
284
|
+
:'replace_packages' => :'String',
|
285
|
+
:'replace_packages_by_default' => :'BOOLEAN',
|
137
286
|
:'repository_type' => :'Integer',
|
138
287
|
:'repository_type_str' => :'String',
|
288
|
+
:'resync_own' => :'BOOLEAN',
|
289
|
+
:'resync_packages' => :'String',
|
290
|
+
:'scan_own' => :'BOOLEAN',
|
291
|
+
:'scan_packages' => :'String',
|
139
292
|
:'self_html_url' => :'String',
|
140
293
|
:'self_url' => :'String',
|
294
|
+
:'show_setup_all' => :'BOOLEAN',
|
141
295
|
:'size' => :'Integer',
|
142
296
|
:'size_str' => :'String',
|
143
297
|
:'slug' => :'String',
|
144
298
|
:'slug_perm' => :'String',
|
145
|
-
:'storage_region' => :'String'
|
299
|
+
:'storage_region' => :'String',
|
300
|
+
:'strict_npm_validation' => :'BOOLEAN',
|
301
|
+
:'use_debian_labels' => :'BOOLEAN',
|
302
|
+
:'use_default_cargo_upstream' => :'BOOLEAN',
|
303
|
+
:'use_noarch_packages' => :'BOOLEAN',
|
304
|
+
:'use_source_packages' => :'BOOLEAN',
|
305
|
+
:'use_vulnerability_scanning' => :'BOOLEAN',
|
306
|
+
:'user_entitlements_enabled' => :'BOOLEAN',
|
307
|
+
:'view_statistics' => :'String'
|
146
308
|
}
|
147
309
|
end
|
148
310
|
|
@@ -158,10 +320,34 @@ module CloudsmithApi
|
|
158
320
|
self.cdn_url = attributes[:'cdn_url']
|
159
321
|
end
|
160
322
|
|
323
|
+
if attributes.has_key?(:'contextual_auth_realm')
|
324
|
+
self.contextual_auth_realm = attributes[:'contextual_auth_realm']
|
325
|
+
end
|
326
|
+
|
327
|
+
if attributes.has_key?(:'copy_own')
|
328
|
+
self.copy_own = attributes[:'copy_own']
|
329
|
+
end
|
330
|
+
|
331
|
+
if attributes.has_key?(:'copy_packages')
|
332
|
+
self.copy_packages = attributes[:'copy_packages']
|
333
|
+
end
|
334
|
+
|
161
335
|
if attributes.has_key?(:'created_at')
|
162
336
|
self.created_at = attributes[:'created_at']
|
163
337
|
end
|
164
338
|
|
339
|
+
if attributes.has_key?(:'default_privilege')
|
340
|
+
self.default_privilege = attributes[:'default_privilege']
|
341
|
+
end
|
342
|
+
|
343
|
+
if attributes.has_key?(:'delete_own')
|
344
|
+
self.delete_own = attributes[:'delete_own']
|
345
|
+
end
|
346
|
+
|
347
|
+
if attributes.has_key?(:'delete_packages')
|
348
|
+
self.delete_packages = attributes[:'delete_packages']
|
349
|
+
end
|
350
|
+
|
165
351
|
if attributes.has_key?(:'deleted_at')
|
166
352
|
self.deleted_at = attributes[:'deleted_at']
|
167
353
|
end
|
@@ -170,6 +356,10 @@ module CloudsmithApi
|
|
170
356
|
self.description = attributes[:'description']
|
171
357
|
end
|
172
358
|
|
359
|
+
if attributes.has_key?(:'docker_refresh_tokens_enabled')
|
360
|
+
self.docker_refresh_tokens_enabled = attributes[:'docker_refresh_tokens_enabled']
|
361
|
+
end
|
362
|
+
|
173
363
|
if attributes.has_key?(:'gpg_keys')
|
174
364
|
if (value = attributes[:'gpg_keys']).is_a?(Array)
|
175
365
|
self.gpg_keys = value
|
@@ -192,6 +382,14 @@ module CloudsmithApi
|
|
192
382
|
self.is_public = attributes[:'is_public']
|
193
383
|
end
|
194
384
|
|
385
|
+
if attributes.has_key?(:'move_own')
|
386
|
+
self.move_own = attributes[:'move_own']
|
387
|
+
end
|
388
|
+
|
389
|
+
if attributes.has_key?(:'move_packages')
|
390
|
+
self.move_packages = attributes[:'move_packages']
|
391
|
+
end
|
392
|
+
|
195
393
|
if attributes.has_key?(:'name')
|
196
394
|
self.name = attributes[:'name']
|
197
395
|
end
|
@@ -216,6 +414,30 @@ module CloudsmithApi
|
|
216
414
|
self.package_group_count = attributes[:'package_group_count']
|
217
415
|
end
|
218
416
|
|
417
|
+
if attributes.has_key?(:'proxy_npmjs')
|
418
|
+
self.proxy_npmjs = attributes[:'proxy_npmjs']
|
419
|
+
end
|
420
|
+
|
421
|
+
if attributes.has_key?(:'proxy_pypi')
|
422
|
+
self.proxy_pypi = attributes[:'proxy_pypi']
|
423
|
+
end
|
424
|
+
|
425
|
+
if attributes.has_key?(:'raw_package_index_enabled')
|
426
|
+
self.raw_package_index_enabled = attributes[:'raw_package_index_enabled']
|
427
|
+
end
|
428
|
+
|
429
|
+
if attributes.has_key?(:'raw_package_index_signatures_enabled')
|
430
|
+
self.raw_package_index_signatures_enabled = attributes[:'raw_package_index_signatures_enabled']
|
431
|
+
end
|
432
|
+
|
433
|
+
if attributes.has_key?(:'replace_packages')
|
434
|
+
self.replace_packages = attributes[:'replace_packages']
|
435
|
+
end
|
436
|
+
|
437
|
+
if attributes.has_key?(:'replace_packages_by_default')
|
438
|
+
self.replace_packages_by_default = attributes[:'replace_packages_by_default']
|
439
|
+
end
|
440
|
+
|
219
441
|
if attributes.has_key?(:'repository_type')
|
220
442
|
self.repository_type = attributes[:'repository_type']
|
221
443
|
end
|
@@ -224,6 +446,22 @@ module CloudsmithApi
|
|
224
446
|
self.repository_type_str = attributes[:'repository_type_str']
|
225
447
|
end
|
226
448
|
|
449
|
+
if attributes.has_key?(:'resync_own')
|
450
|
+
self.resync_own = attributes[:'resync_own']
|
451
|
+
end
|
452
|
+
|
453
|
+
if attributes.has_key?(:'resync_packages')
|
454
|
+
self.resync_packages = attributes[:'resync_packages']
|
455
|
+
end
|
456
|
+
|
457
|
+
if attributes.has_key?(:'scan_own')
|
458
|
+
self.scan_own = attributes[:'scan_own']
|
459
|
+
end
|
460
|
+
|
461
|
+
if attributes.has_key?(:'scan_packages')
|
462
|
+
self.scan_packages = attributes[:'scan_packages']
|
463
|
+
end
|
464
|
+
|
227
465
|
if attributes.has_key?(:'self_html_url')
|
228
466
|
self.self_html_url = attributes[:'self_html_url']
|
229
467
|
end
|
@@ -232,6 +470,10 @@ module CloudsmithApi
|
|
232
470
|
self.self_url = attributes[:'self_url']
|
233
471
|
end
|
234
472
|
|
473
|
+
if attributes.has_key?(:'show_setup_all')
|
474
|
+
self.show_setup_all = attributes[:'show_setup_all']
|
475
|
+
end
|
476
|
+
|
235
477
|
if attributes.has_key?(:'size')
|
236
478
|
self.size = attributes[:'size']
|
237
479
|
end
|
@@ -251,6 +493,38 @@ module CloudsmithApi
|
|
251
493
|
if attributes.has_key?(:'storage_region')
|
252
494
|
self.storage_region = attributes[:'storage_region']
|
253
495
|
end
|
496
|
+
|
497
|
+
if attributes.has_key?(:'strict_npm_validation')
|
498
|
+
self.strict_npm_validation = attributes[:'strict_npm_validation']
|
499
|
+
end
|
500
|
+
|
501
|
+
if attributes.has_key?(:'use_debian_labels')
|
502
|
+
self.use_debian_labels = attributes[:'use_debian_labels']
|
503
|
+
end
|
504
|
+
|
505
|
+
if attributes.has_key?(:'use_default_cargo_upstream')
|
506
|
+
self.use_default_cargo_upstream = attributes[:'use_default_cargo_upstream']
|
507
|
+
end
|
508
|
+
|
509
|
+
if attributes.has_key?(:'use_noarch_packages')
|
510
|
+
self.use_noarch_packages = attributes[:'use_noarch_packages']
|
511
|
+
end
|
512
|
+
|
513
|
+
if attributes.has_key?(:'use_source_packages')
|
514
|
+
self.use_source_packages = attributes[:'use_source_packages']
|
515
|
+
end
|
516
|
+
|
517
|
+
if attributes.has_key?(:'use_vulnerability_scanning')
|
518
|
+
self.use_vulnerability_scanning = attributes[:'use_vulnerability_scanning']
|
519
|
+
end
|
520
|
+
|
521
|
+
if attributes.has_key?(:'user_entitlements_enabled')
|
522
|
+
self.user_entitlements_enabled = attributes[:'user_entitlements_enabled']
|
523
|
+
end
|
524
|
+
|
525
|
+
if attributes.has_key?(:'view_statistics')
|
526
|
+
self.view_statistics = attributes[:'view_statistics']
|
527
|
+
end
|
254
528
|
end
|
255
529
|
|
256
530
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -267,39 +541,163 @@ module CloudsmithApi
|
|
267
541
|
# Check to see if the all the properties in the model are valid
|
268
542
|
# @return true if the model is valid
|
269
543
|
def valid?
|
544
|
+
copy_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
545
|
+
return false unless copy_packages_validator.valid?(@copy_packages)
|
546
|
+
default_privilege_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
|
547
|
+
return false unless default_privilege_validator.valid?(@default_privilege)
|
548
|
+
delete_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
549
|
+
return false unless delete_packages_validator.valid?(@delete_packages)
|
550
|
+
move_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
551
|
+
return false unless move_packages_validator.valid?(@move_packages)
|
270
552
|
return false if @name.nil?
|
553
|
+
replace_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
554
|
+
return false unless replace_packages_validator.valid?(@replace_packages)
|
555
|
+
resync_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
556
|
+
return false unless resync_packages_validator.valid?(@resync_packages)
|
557
|
+
scan_packages_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
558
|
+
return false unless scan_packages_validator.valid?(@scan_packages)
|
559
|
+
view_statistics_validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
560
|
+
return false unless view_statistics_validator.valid?(@view_statistics)
|
271
561
|
true
|
272
562
|
end
|
273
563
|
|
564
|
+
# Custom attribute writer method checking allowed values (enum).
|
565
|
+
# @param [Object] copy_packages Object to be assigned
|
566
|
+
def copy_packages=(copy_packages)
|
567
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
568
|
+
unless validator.valid?(copy_packages)
|
569
|
+
fail ArgumentError, 'invalid value for "copy_packages", must be one of #{validator.allowable_values}.'
|
570
|
+
end
|
571
|
+
@copy_packages = copy_packages
|
572
|
+
end
|
573
|
+
|
574
|
+
# Custom attribute writer method checking allowed values (enum).
|
575
|
+
# @param [Object] default_privilege Object to be assigned
|
576
|
+
def default_privilege=(default_privilege)
|
577
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read', 'None'])
|
578
|
+
unless validator.valid?(default_privilege)
|
579
|
+
fail ArgumentError, 'invalid value for "default_privilege", must be one of #{validator.allowable_values}.'
|
580
|
+
end
|
581
|
+
@default_privilege = default_privilege
|
582
|
+
end
|
583
|
+
|
584
|
+
# Custom attribute writer method checking allowed values (enum).
|
585
|
+
# @param [Object] delete_packages Object to be assigned
|
586
|
+
def delete_packages=(delete_packages)
|
587
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
588
|
+
unless validator.valid?(delete_packages)
|
589
|
+
fail ArgumentError, 'invalid value for "delete_packages", must be one of #{validator.allowable_values}.'
|
590
|
+
end
|
591
|
+
@delete_packages = delete_packages
|
592
|
+
end
|
593
|
+
|
594
|
+
# Custom attribute writer method checking allowed values (enum).
|
595
|
+
# @param [Object] move_packages Object to be assigned
|
596
|
+
def move_packages=(move_packages)
|
597
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
598
|
+
unless validator.valid?(move_packages)
|
599
|
+
fail ArgumentError, 'invalid value for "move_packages", must be one of #{validator.allowable_values}.'
|
600
|
+
end
|
601
|
+
@move_packages = move_packages
|
602
|
+
end
|
603
|
+
|
604
|
+
# Custom attribute writer method checking allowed values (enum).
|
605
|
+
# @param [Object] replace_packages Object to be assigned
|
606
|
+
def replace_packages=(replace_packages)
|
607
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
608
|
+
unless validator.valid?(replace_packages)
|
609
|
+
fail ArgumentError, 'invalid value for "replace_packages", must be one of #{validator.allowable_values}.'
|
610
|
+
end
|
611
|
+
@replace_packages = replace_packages
|
612
|
+
end
|
613
|
+
|
614
|
+
# Custom attribute writer method checking allowed values (enum).
|
615
|
+
# @param [Object] resync_packages Object to be assigned
|
616
|
+
def resync_packages=(resync_packages)
|
617
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write'])
|
618
|
+
unless validator.valid?(resync_packages)
|
619
|
+
fail ArgumentError, 'invalid value for "resync_packages", must be one of #{validator.allowable_values}.'
|
620
|
+
end
|
621
|
+
@resync_packages = resync_packages
|
622
|
+
end
|
623
|
+
|
624
|
+
# Custom attribute writer method checking allowed values (enum).
|
625
|
+
# @param [Object] scan_packages Object to be assigned
|
626
|
+
def scan_packages=(scan_packages)
|
627
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
628
|
+
unless validator.valid?(scan_packages)
|
629
|
+
fail ArgumentError, 'invalid value for "scan_packages", must be one of #{validator.allowable_values}.'
|
630
|
+
end
|
631
|
+
@scan_packages = scan_packages
|
632
|
+
end
|
633
|
+
|
634
|
+
# Custom attribute writer method checking allowed values (enum).
|
635
|
+
# @param [Object] view_statistics Object to be assigned
|
636
|
+
def view_statistics=(view_statistics)
|
637
|
+
validator = EnumAttributeValidator.new('String', ['Admin', 'Write', 'Read'])
|
638
|
+
unless validator.valid?(view_statistics)
|
639
|
+
fail ArgumentError, 'invalid value for "view_statistics", must be one of #{validator.allowable_values}.'
|
640
|
+
end
|
641
|
+
@view_statistics = view_statistics
|
642
|
+
end
|
643
|
+
|
274
644
|
# Checks equality by comparing each attribute.
|
275
645
|
# @param [Object] Object to be compared
|
276
646
|
def ==(o)
|
277
647
|
return true if self.equal?(o)
|
278
648
|
self.class == o.class &&
|
279
649
|
cdn_url == o.cdn_url &&
|
650
|
+
contextual_auth_realm == o.contextual_auth_realm &&
|
651
|
+
copy_own == o.copy_own &&
|
652
|
+
copy_packages == o.copy_packages &&
|
280
653
|
created_at == o.created_at &&
|
654
|
+
default_privilege == o.default_privilege &&
|
655
|
+
delete_own == o.delete_own &&
|
656
|
+
delete_packages == o.delete_packages &&
|
281
657
|
deleted_at == o.deleted_at &&
|
282
658
|
description == o.description &&
|
659
|
+
docker_refresh_tokens_enabled == o.docker_refresh_tokens_enabled &&
|
283
660
|
gpg_keys == o.gpg_keys &&
|
284
661
|
index_files == o.index_files &&
|
285
662
|
is_open_source == o.is_open_source &&
|
286
663
|
is_private == o.is_private &&
|
287
664
|
is_public == o.is_public &&
|
665
|
+
move_own == o.move_own &&
|
666
|
+
move_packages == o.move_packages &&
|
288
667
|
name == o.name &&
|
289
668
|
namespace == o.namespace &&
|
290
669
|
namespace_url == o.namespace_url &&
|
291
670
|
num_downloads == o.num_downloads &&
|
292
671
|
package_count == o.package_count &&
|
293
672
|
package_group_count == o.package_group_count &&
|
673
|
+
proxy_npmjs == o.proxy_npmjs &&
|
674
|
+
proxy_pypi == o.proxy_pypi &&
|
675
|
+
raw_package_index_enabled == o.raw_package_index_enabled &&
|
676
|
+
raw_package_index_signatures_enabled == o.raw_package_index_signatures_enabled &&
|
677
|
+
replace_packages == o.replace_packages &&
|
678
|
+
replace_packages_by_default == o.replace_packages_by_default &&
|
294
679
|
repository_type == o.repository_type &&
|
295
680
|
repository_type_str == o.repository_type_str &&
|
681
|
+
resync_own == o.resync_own &&
|
682
|
+
resync_packages == o.resync_packages &&
|
683
|
+
scan_own == o.scan_own &&
|
684
|
+
scan_packages == o.scan_packages &&
|
296
685
|
self_html_url == o.self_html_url &&
|
297
686
|
self_url == o.self_url &&
|
687
|
+
show_setup_all == o.show_setup_all &&
|
298
688
|
size == o.size &&
|
299
689
|
size_str == o.size_str &&
|
300
690
|
slug == o.slug &&
|
301
691
|
slug_perm == o.slug_perm &&
|
302
|
-
storage_region == o.storage_region
|
692
|
+
storage_region == o.storage_region &&
|
693
|
+
strict_npm_validation == o.strict_npm_validation &&
|
694
|
+
use_debian_labels == o.use_debian_labels &&
|
695
|
+
use_default_cargo_upstream == o.use_default_cargo_upstream &&
|
696
|
+
use_noarch_packages == o.use_noarch_packages &&
|
697
|
+
use_source_packages == o.use_source_packages &&
|
698
|
+
use_vulnerability_scanning == o.use_vulnerability_scanning &&
|
699
|
+
user_entitlements_enabled == o.user_entitlements_enabled &&
|
700
|
+
view_statistics == o.view_statistics
|
303
701
|
end
|
304
702
|
|
305
703
|
# @see the `==` method
|
@@ -311,7 +709,7 @@ module CloudsmithApi
|
|
311
709
|
# Calculates hash code according to all attributes.
|
312
710
|
# @return [Fixnum] Hash code
|
313
711
|
def hash
|
314
|
-
[cdn_url, created_at, deleted_at, description, gpg_keys, index_files, is_open_source, is_private, is_public, name, namespace, namespace_url, num_downloads, package_count, package_group_count, repository_type, repository_type_str, self_html_url, self_url, size, size_str, slug, slug_perm, storage_region].hash
|
712
|
+
[cdn_url, contextual_auth_realm, copy_own, copy_packages, created_at, default_privilege, delete_own, delete_packages, deleted_at, description, docker_refresh_tokens_enabled, gpg_keys, index_files, is_open_source, is_private, is_public, move_own, move_packages, name, namespace, namespace_url, num_downloads, package_count, package_group_count, proxy_npmjs, proxy_pypi, raw_package_index_enabled, raw_package_index_signatures_enabled, replace_packages, replace_packages_by_default, repository_type, repository_type_str, resync_own, resync_packages, scan_own, scan_packages, self_html_url, self_url, show_setup_all, size, size_str, slug, slug_perm, storage_region, 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
|
315
713
|
end
|
316
714
|
|
317
715
|
# Builds the object from hash
|