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.
- 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
@@ -178,6 +178,178 @@ module CloudsmithApi
|
|
178
178
|
end
|
179
179
|
return data, status_code, headers
|
180
180
|
end
|
181
|
+
# Set the active GPG key for the Repository.
|
182
|
+
# Set the active GPG key for the Repository.
|
183
|
+
# @param owner
|
184
|
+
# @param identifier
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @option opts [ReposGpgCreate] :data
|
187
|
+
# @return [RepositoryGpgKey]
|
188
|
+
def repos_gpg_create(owner, identifier, opts = {})
|
189
|
+
data, _status_code, _headers = repos_gpg_create_with_http_info(owner, identifier, opts)
|
190
|
+
data
|
191
|
+
end
|
192
|
+
|
193
|
+
# Set the active GPG key for the Repository.
|
194
|
+
# Set the active GPG key for the Repository.
|
195
|
+
# @param owner
|
196
|
+
# @param identifier
|
197
|
+
# @param [Hash] opts the optional parameters
|
198
|
+
# @option opts [ReposGpgCreate] :data
|
199
|
+
# @return [Array<(RepositoryGpgKey, Fixnum, Hash)>] RepositoryGpgKey data, response status code and response headers
|
200
|
+
def repos_gpg_create_with_http_info(owner, identifier, opts = {})
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_create ...'
|
203
|
+
end
|
204
|
+
# verify the required parameter 'owner' is set
|
205
|
+
if @api_client.config.client_side_validation && owner.nil?
|
206
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_gpg_create"
|
207
|
+
end
|
208
|
+
# verify the required parameter 'identifier' is set
|
209
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_create"
|
211
|
+
end
|
212
|
+
# resource path
|
213
|
+
local_var_path = '/repos/{owner}/{identifier}/gpg/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
214
|
+
|
215
|
+
# query parameters
|
216
|
+
query_params = {}
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = {}
|
220
|
+
# HTTP header 'Content-Type'
|
221
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
222
|
+
|
223
|
+
# form parameters
|
224
|
+
form_params = {}
|
225
|
+
|
226
|
+
# http body (model)
|
227
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
228
|
+
auth_names = ['apikey']
|
229
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
230
|
+
:header_params => header_params,
|
231
|
+
:query_params => query_params,
|
232
|
+
:form_params => form_params,
|
233
|
+
:body => post_body,
|
234
|
+
:auth_names => auth_names,
|
235
|
+
:return_type => 'RepositoryGpgKey')
|
236
|
+
if @api_client.config.debugging
|
237
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_gpg_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
238
|
+
end
|
239
|
+
return data, status_code, headers
|
240
|
+
end
|
241
|
+
# Retrieve the active GPG key for the Repository.
|
242
|
+
# Retrieve the active GPG key for the Repository.
|
243
|
+
# @param owner
|
244
|
+
# @param identifier
|
245
|
+
# @param [Hash] opts the optional parameters
|
246
|
+
# @return [RepositoryGpgKey]
|
247
|
+
def repos_gpg_list(owner, identifier, opts = {})
|
248
|
+
data, _status_code, _headers = repos_gpg_list_with_http_info(owner, identifier, opts)
|
249
|
+
data
|
250
|
+
end
|
251
|
+
|
252
|
+
# Retrieve the active GPG key for the Repository.
|
253
|
+
# Retrieve the active GPG key for the Repository.
|
254
|
+
# @param owner
|
255
|
+
# @param identifier
|
256
|
+
# @param [Hash] opts the optional parameters
|
257
|
+
# @return [Array<(RepositoryGpgKey, Fixnum, Hash)>] RepositoryGpgKey data, response status code and response headers
|
258
|
+
def repos_gpg_list_with_http_info(owner, identifier, opts = {})
|
259
|
+
if @api_client.config.debugging
|
260
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_list ...'
|
261
|
+
end
|
262
|
+
# verify the required parameter 'owner' is set
|
263
|
+
if @api_client.config.client_side_validation && owner.nil?
|
264
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_gpg_list"
|
265
|
+
end
|
266
|
+
# verify the required parameter 'identifier' is set
|
267
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
268
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_list"
|
269
|
+
end
|
270
|
+
# resource path
|
271
|
+
local_var_path = '/repos/{owner}/{identifier}/gpg/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
272
|
+
|
273
|
+
# query parameters
|
274
|
+
query_params = {}
|
275
|
+
|
276
|
+
# header parameters
|
277
|
+
header_params = {}
|
278
|
+
|
279
|
+
# form parameters
|
280
|
+
form_params = {}
|
281
|
+
|
282
|
+
# http body (model)
|
283
|
+
post_body = nil
|
284
|
+
auth_names = ['apikey']
|
285
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
286
|
+
:header_params => header_params,
|
287
|
+
:query_params => query_params,
|
288
|
+
:form_params => form_params,
|
289
|
+
:body => post_body,
|
290
|
+
:auth_names => auth_names,
|
291
|
+
:return_type => 'RepositoryGpgKey')
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_gpg_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
294
|
+
end
|
295
|
+
return data, status_code, headers
|
296
|
+
end
|
297
|
+
# Regenerate GPG Key for the Repository.
|
298
|
+
# Regenerate GPG Key for the Repository.
|
299
|
+
# @param owner
|
300
|
+
# @param identifier
|
301
|
+
# @param [Hash] opts the optional parameters
|
302
|
+
# @return [RepositoryGpgKey]
|
303
|
+
def repos_gpg_regenerate(owner, identifier, opts = {})
|
304
|
+
data, _status_code, _headers = repos_gpg_regenerate_with_http_info(owner, identifier, opts)
|
305
|
+
data
|
306
|
+
end
|
307
|
+
|
308
|
+
# Regenerate GPG Key for the Repository.
|
309
|
+
# Regenerate GPG Key for the Repository.
|
310
|
+
# @param owner
|
311
|
+
# @param identifier
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @return [Array<(RepositoryGpgKey, Fixnum, Hash)>] RepositoryGpgKey data, response status code and response headers
|
314
|
+
def repos_gpg_regenerate_with_http_info(owner, identifier, opts = {})
|
315
|
+
if @api_client.config.debugging
|
316
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_regenerate ...'
|
317
|
+
end
|
318
|
+
# verify the required parameter 'owner' is set
|
319
|
+
if @api_client.config.client_side_validation && owner.nil?
|
320
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_gpg_regenerate"
|
321
|
+
end
|
322
|
+
# verify the required parameter 'identifier' is set
|
323
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
324
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_regenerate"
|
325
|
+
end
|
326
|
+
# resource path
|
327
|
+
local_var_path = '/repos/{owner}/{identifier}/gpg/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
328
|
+
|
329
|
+
# query parameters
|
330
|
+
query_params = {}
|
331
|
+
|
332
|
+
# header parameters
|
333
|
+
header_params = {}
|
334
|
+
|
335
|
+
# form parameters
|
336
|
+
form_params = {}
|
337
|
+
|
338
|
+
# http body (model)
|
339
|
+
post_body = nil
|
340
|
+
auth_names = ['apikey']
|
341
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
342
|
+
:header_params => header_params,
|
343
|
+
:query_params => query_params,
|
344
|
+
:form_params => form_params,
|
345
|
+
:body => post_body,
|
346
|
+
:auth_names => auth_names,
|
347
|
+
:return_type => 'RepositoryGpgKey')
|
348
|
+
if @api_client.config.debugging
|
349
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_gpg_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
350
|
+
end
|
351
|
+
return data, status_code, headers
|
352
|
+
end
|
181
353
|
# Get a list of all repositories within a namespace.
|
182
354
|
# Get a list of all repositories within a namespace.
|
183
355
|
# @param owner
|
@@ -294,6 +466,228 @@ module CloudsmithApi
|
|
294
466
|
end
|
295
467
|
return data, status_code, headers
|
296
468
|
end
|
469
|
+
# Remove the specified repository privileges.
|
470
|
+
# Remove the specified repository privileges.
|
471
|
+
# @param owner
|
472
|
+
# @param identifier
|
473
|
+
# @param [Hash] opts the optional parameters
|
474
|
+
# @return [nil]
|
475
|
+
def repos_privileges_delete(owner, identifier, opts = {})
|
476
|
+
repos_privileges_delete_with_http_info(owner, identifier, opts)
|
477
|
+
nil
|
478
|
+
end
|
479
|
+
|
480
|
+
# Remove the specified repository privileges.
|
481
|
+
# Remove the specified repository privileges.
|
482
|
+
# @param owner
|
483
|
+
# @param identifier
|
484
|
+
# @param [Hash] opts the optional parameters
|
485
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
486
|
+
def repos_privileges_delete_with_http_info(owner, identifier, opts = {})
|
487
|
+
if @api_client.config.debugging
|
488
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_delete ...'
|
489
|
+
end
|
490
|
+
# verify the required parameter 'owner' is set
|
491
|
+
if @api_client.config.client_side_validation && owner.nil?
|
492
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_privileges_delete"
|
493
|
+
end
|
494
|
+
# verify the required parameter 'identifier' is set
|
495
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_delete"
|
497
|
+
end
|
498
|
+
# resource path
|
499
|
+
local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
500
|
+
|
501
|
+
# query parameters
|
502
|
+
query_params = {}
|
503
|
+
|
504
|
+
# header parameters
|
505
|
+
header_params = {}
|
506
|
+
|
507
|
+
# form parameters
|
508
|
+
form_params = {}
|
509
|
+
|
510
|
+
# http body (model)
|
511
|
+
post_body = nil
|
512
|
+
auth_names = ['apikey']
|
513
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
514
|
+
:header_params => header_params,
|
515
|
+
:query_params => query_params,
|
516
|
+
:form_params => form_params,
|
517
|
+
:body => post_body,
|
518
|
+
:auth_names => auth_names)
|
519
|
+
if @api_client.config.debugging
|
520
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_privileges_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
521
|
+
end
|
522
|
+
return data, status_code, headers
|
523
|
+
end
|
524
|
+
# List all explicity created privileges for the repository.
|
525
|
+
# List all explicity created privileges for the repository.
|
526
|
+
# @param owner
|
527
|
+
# @param identifier
|
528
|
+
# @param [Hash] opts the optional parameters
|
529
|
+
# @return [Array<RepositoryPrivilegeList>]
|
530
|
+
def repos_privileges_list(owner, identifier, opts = {})
|
531
|
+
data, _status_code, _headers = repos_privileges_list_with_http_info(owner, identifier, opts)
|
532
|
+
data
|
533
|
+
end
|
534
|
+
|
535
|
+
# List all explicity created privileges for the repository.
|
536
|
+
# List all explicity created privileges for the repository.
|
537
|
+
# @param owner
|
538
|
+
# @param identifier
|
539
|
+
# @param [Hash] opts the optional parameters
|
540
|
+
# @return [Array<(Array<RepositoryPrivilegeList>, Fixnum, Hash)>] Array<RepositoryPrivilegeList> data, response status code and response headers
|
541
|
+
def repos_privileges_list_with_http_info(owner, identifier, opts = {})
|
542
|
+
if @api_client.config.debugging
|
543
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_list ...'
|
544
|
+
end
|
545
|
+
# verify the required parameter 'owner' is set
|
546
|
+
if @api_client.config.client_side_validation && owner.nil?
|
547
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_privileges_list"
|
548
|
+
end
|
549
|
+
# verify the required parameter 'identifier' is set
|
550
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
551
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_list"
|
552
|
+
end
|
553
|
+
# resource path
|
554
|
+
local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
555
|
+
|
556
|
+
# query parameters
|
557
|
+
query_params = {}
|
558
|
+
|
559
|
+
# header parameters
|
560
|
+
header_params = {}
|
561
|
+
|
562
|
+
# form parameters
|
563
|
+
form_params = {}
|
564
|
+
|
565
|
+
# http body (model)
|
566
|
+
post_body = nil
|
567
|
+
auth_names = ['apikey']
|
568
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
569
|
+
:header_params => header_params,
|
570
|
+
:query_params => query_params,
|
571
|
+
:form_params => form_params,
|
572
|
+
:body => post_body,
|
573
|
+
:auth_names => auth_names,
|
574
|
+
:return_type => 'Array<RepositoryPrivilegeList>')
|
575
|
+
if @api_client.config.debugging
|
576
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_privileges_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
577
|
+
end
|
578
|
+
return data, status_code, headers
|
579
|
+
end
|
580
|
+
# Update the specified repository privileges.
|
581
|
+
# Update the specified repository privileges.
|
582
|
+
# @param owner
|
583
|
+
# @param identifier
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @return [nil]
|
586
|
+
def repos_privileges_partial_update(owner, identifier, opts = {})
|
587
|
+
repos_privileges_partial_update_with_http_info(owner, identifier, opts)
|
588
|
+
nil
|
589
|
+
end
|
590
|
+
|
591
|
+
# Update the specified repository privileges.
|
592
|
+
# Update the specified repository privileges.
|
593
|
+
# @param owner
|
594
|
+
# @param identifier
|
595
|
+
# @param [Hash] opts the optional parameters
|
596
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
597
|
+
def repos_privileges_partial_update_with_http_info(owner, identifier, opts = {})
|
598
|
+
if @api_client.config.debugging
|
599
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_partial_update ...'
|
600
|
+
end
|
601
|
+
# verify the required parameter 'owner' is set
|
602
|
+
if @api_client.config.client_side_validation && owner.nil?
|
603
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_privileges_partial_update"
|
604
|
+
end
|
605
|
+
# verify the required parameter 'identifier' is set
|
606
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
607
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_partial_update"
|
608
|
+
end
|
609
|
+
# resource path
|
610
|
+
local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
611
|
+
|
612
|
+
# query parameters
|
613
|
+
query_params = {}
|
614
|
+
|
615
|
+
# header parameters
|
616
|
+
header_params = {}
|
617
|
+
|
618
|
+
# form parameters
|
619
|
+
form_params = {}
|
620
|
+
|
621
|
+
# http body (model)
|
622
|
+
post_body = nil
|
623
|
+
auth_names = ['apikey']
|
624
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
625
|
+
:header_params => header_params,
|
626
|
+
:query_params => query_params,
|
627
|
+
:form_params => form_params,
|
628
|
+
:body => post_body,
|
629
|
+
:auth_names => auth_names)
|
630
|
+
if @api_client.config.debugging
|
631
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_privileges_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
632
|
+
end
|
633
|
+
return data, status_code, headers
|
634
|
+
end
|
635
|
+
# Replace all existing repository privileges with those specified.
|
636
|
+
# Replace all existing repository privileges with those specified.
|
637
|
+
# @param owner
|
638
|
+
# @param identifier
|
639
|
+
# @param [Hash] opts the optional parameters
|
640
|
+
# @return [RepositoryPrivilegeList]
|
641
|
+
def repos_privileges_update(owner, identifier, opts = {})
|
642
|
+
data, _status_code, _headers = repos_privileges_update_with_http_info(owner, identifier, opts)
|
643
|
+
data
|
644
|
+
end
|
645
|
+
|
646
|
+
# Replace all existing repository privileges with those specified.
|
647
|
+
# Replace all existing repository privileges with those specified.
|
648
|
+
# @param owner
|
649
|
+
# @param identifier
|
650
|
+
# @param [Hash] opts the optional parameters
|
651
|
+
# @return [Array<(RepositoryPrivilegeList, Fixnum, Hash)>] RepositoryPrivilegeList data, response status code and response headers
|
652
|
+
def repos_privileges_update_with_http_info(owner, identifier, opts = {})
|
653
|
+
if @api_client.config.debugging
|
654
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_update ...'
|
655
|
+
end
|
656
|
+
# verify the required parameter 'owner' is set
|
657
|
+
if @api_client.config.client_side_validation && owner.nil?
|
658
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_privileges_update"
|
659
|
+
end
|
660
|
+
# verify the required parameter 'identifier' is set
|
661
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
662
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_update"
|
663
|
+
end
|
664
|
+
# resource path
|
665
|
+
local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
666
|
+
|
667
|
+
# query parameters
|
668
|
+
query_params = {}
|
669
|
+
|
670
|
+
# header parameters
|
671
|
+
header_params = {}
|
672
|
+
|
673
|
+
# form parameters
|
674
|
+
form_params = {}
|
675
|
+
|
676
|
+
# http body (model)
|
677
|
+
post_body = nil
|
678
|
+
auth_names = ['apikey']
|
679
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
680
|
+
:header_params => header_params,
|
681
|
+
:query_params => query_params,
|
682
|
+
:form_params => form_params,
|
683
|
+
:body => post_body,
|
684
|
+
:auth_names => auth_names,
|
685
|
+
:return_type => 'RepositoryPrivilegeList')
|
686
|
+
if @api_client.config.debugging
|
687
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_privileges_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
688
|
+
end
|
689
|
+
return data, status_code, headers
|
690
|
+
end
|
297
691
|
# Get a specific repository.
|
298
692
|
# Get a specific repository.
|
299
693
|
# @param owner
|
@@ -350,5 +744,177 @@ module CloudsmithApi
|
|
350
744
|
end
|
351
745
|
return data, status_code, headers
|
352
746
|
end
|
747
|
+
# Set the active RSA key for the Repository.
|
748
|
+
# Set the active RSA key for the Repository.
|
749
|
+
# @param owner
|
750
|
+
# @param identifier
|
751
|
+
# @param [Hash] opts the optional parameters
|
752
|
+
# @option opts [ReposRsaCreate] :data
|
753
|
+
# @return [RepositoryRsaKey]
|
754
|
+
def repos_rsa_create(owner, identifier, opts = {})
|
755
|
+
data, _status_code, _headers = repos_rsa_create_with_http_info(owner, identifier, opts)
|
756
|
+
data
|
757
|
+
end
|
758
|
+
|
759
|
+
# Set the active RSA key for the Repository.
|
760
|
+
# Set the active RSA key for the Repository.
|
761
|
+
# @param owner
|
762
|
+
# @param identifier
|
763
|
+
# @param [Hash] opts the optional parameters
|
764
|
+
# @option opts [ReposRsaCreate] :data
|
765
|
+
# @return [Array<(RepositoryRsaKey, Fixnum, Hash)>] RepositoryRsaKey data, response status code and response headers
|
766
|
+
def repos_rsa_create_with_http_info(owner, identifier, opts = {})
|
767
|
+
if @api_client.config.debugging
|
768
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_create ...'
|
769
|
+
end
|
770
|
+
# verify the required parameter 'owner' is set
|
771
|
+
if @api_client.config.client_side_validation && owner.nil?
|
772
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_rsa_create"
|
773
|
+
end
|
774
|
+
# verify the required parameter 'identifier' is set
|
775
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
776
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_create"
|
777
|
+
end
|
778
|
+
# resource path
|
779
|
+
local_var_path = '/repos/{owner}/{identifier}/rsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
780
|
+
|
781
|
+
# query parameters
|
782
|
+
query_params = {}
|
783
|
+
|
784
|
+
# header parameters
|
785
|
+
header_params = {}
|
786
|
+
# HTTP header 'Content-Type'
|
787
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
788
|
+
|
789
|
+
# form parameters
|
790
|
+
form_params = {}
|
791
|
+
|
792
|
+
# http body (model)
|
793
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
794
|
+
auth_names = ['apikey']
|
795
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
796
|
+
:header_params => header_params,
|
797
|
+
:query_params => query_params,
|
798
|
+
:form_params => form_params,
|
799
|
+
:body => post_body,
|
800
|
+
:auth_names => auth_names,
|
801
|
+
:return_type => 'RepositoryRsaKey')
|
802
|
+
if @api_client.config.debugging
|
803
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_rsa_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
804
|
+
end
|
805
|
+
return data, status_code, headers
|
806
|
+
end
|
807
|
+
# Retrieve the active RSA key for the Repository.
|
808
|
+
# Retrieve the active RSA key for the Repository.
|
809
|
+
# @param owner
|
810
|
+
# @param identifier
|
811
|
+
# @param [Hash] opts the optional parameters
|
812
|
+
# @return [RepositoryRsaKey]
|
813
|
+
def repos_rsa_list(owner, identifier, opts = {})
|
814
|
+
data, _status_code, _headers = repos_rsa_list_with_http_info(owner, identifier, opts)
|
815
|
+
data
|
816
|
+
end
|
817
|
+
|
818
|
+
# Retrieve the active RSA key for the Repository.
|
819
|
+
# Retrieve the active RSA key for the Repository.
|
820
|
+
# @param owner
|
821
|
+
# @param identifier
|
822
|
+
# @param [Hash] opts the optional parameters
|
823
|
+
# @return [Array<(RepositoryRsaKey, Fixnum, Hash)>] RepositoryRsaKey data, response status code and response headers
|
824
|
+
def repos_rsa_list_with_http_info(owner, identifier, opts = {})
|
825
|
+
if @api_client.config.debugging
|
826
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_list ...'
|
827
|
+
end
|
828
|
+
# verify the required parameter 'owner' is set
|
829
|
+
if @api_client.config.client_side_validation && owner.nil?
|
830
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_rsa_list"
|
831
|
+
end
|
832
|
+
# verify the required parameter 'identifier' is set
|
833
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
834
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_list"
|
835
|
+
end
|
836
|
+
# resource path
|
837
|
+
local_var_path = '/repos/{owner}/{identifier}/rsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
838
|
+
|
839
|
+
# query parameters
|
840
|
+
query_params = {}
|
841
|
+
|
842
|
+
# header parameters
|
843
|
+
header_params = {}
|
844
|
+
|
845
|
+
# form parameters
|
846
|
+
form_params = {}
|
847
|
+
|
848
|
+
# http body (model)
|
849
|
+
post_body = nil
|
850
|
+
auth_names = ['apikey']
|
851
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
852
|
+
:header_params => header_params,
|
853
|
+
:query_params => query_params,
|
854
|
+
:form_params => form_params,
|
855
|
+
:body => post_body,
|
856
|
+
:auth_names => auth_names,
|
857
|
+
:return_type => 'RepositoryRsaKey')
|
858
|
+
if @api_client.config.debugging
|
859
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_rsa_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
860
|
+
end
|
861
|
+
return data, status_code, headers
|
862
|
+
end
|
863
|
+
# Regenerate RSA Key for the Repository.
|
864
|
+
# Regenerate RSA Key for the Repository.
|
865
|
+
# @param owner
|
866
|
+
# @param identifier
|
867
|
+
# @param [Hash] opts the optional parameters
|
868
|
+
# @return [RepositoryRsaKey]
|
869
|
+
def repos_rsa_regenerate(owner, identifier, opts = {})
|
870
|
+
data, _status_code, _headers = repos_rsa_regenerate_with_http_info(owner, identifier, opts)
|
871
|
+
data
|
872
|
+
end
|
873
|
+
|
874
|
+
# Regenerate RSA Key for the Repository.
|
875
|
+
# Regenerate RSA Key for the Repository.
|
876
|
+
# @param owner
|
877
|
+
# @param identifier
|
878
|
+
# @param [Hash] opts the optional parameters
|
879
|
+
# @return [Array<(RepositoryRsaKey, Fixnum, Hash)>] RepositoryRsaKey data, response status code and response headers
|
880
|
+
def repos_rsa_regenerate_with_http_info(owner, identifier, opts = {})
|
881
|
+
if @api_client.config.debugging
|
882
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_regenerate ...'
|
883
|
+
end
|
884
|
+
# verify the required parameter 'owner' is set
|
885
|
+
if @api_client.config.client_side_validation && owner.nil?
|
886
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_rsa_regenerate"
|
887
|
+
end
|
888
|
+
# verify the required parameter 'identifier' is set
|
889
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
890
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_regenerate"
|
891
|
+
end
|
892
|
+
# resource path
|
893
|
+
local_var_path = '/repos/{owner}/{identifier}/rsa/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
894
|
+
|
895
|
+
# query parameters
|
896
|
+
query_params = {}
|
897
|
+
|
898
|
+
# header parameters
|
899
|
+
header_params = {}
|
900
|
+
|
901
|
+
# form parameters
|
902
|
+
form_params = {}
|
903
|
+
|
904
|
+
# http body (model)
|
905
|
+
post_body = nil
|
906
|
+
auth_names = ['apikey']
|
907
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
908
|
+
:header_params => header_params,
|
909
|
+
:query_params => query_params,
|
910
|
+
:form_params => form_params,
|
911
|
+
:body => post_body,
|
912
|
+
:auth_names => auth_names,
|
913
|
+
:return_type => 'RepositoryRsaKey')
|
914
|
+
if @api_client.config.debugging
|
915
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_rsa_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
916
|
+
end
|
917
|
+
return data, status_code, headers
|
918
|
+
end
|
353
919
|
end
|
354
920
|
end
|
@@ -212,6 +212,28 @@ module CloudsmithApi
|
|
212
212
|
#
|
213
213
|
attr_accessor :vulnerability_scan_results_url
|
214
214
|
|
215
|
+
class EnumAttributeValidator
|
216
|
+
attr_reader :datatype
|
217
|
+
attr_reader :allowable_values
|
218
|
+
|
219
|
+
def initialize(datatype, allowable_values)
|
220
|
+
@allowable_values = allowable_values.map do |value|
|
221
|
+
case datatype.to_s
|
222
|
+
when /Integer/i
|
223
|
+
value.to_i
|
224
|
+
when /Float/i
|
225
|
+
value.to_f
|
226
|
+
else
|
227
|
+
value
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
def valid?(value)
|
233
|
+
!value || allowable_values.include?(value)
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
215
237
|
# Attribute mapping from ruby-style variable name to JSON key.
|
216
238
|
def self.attribute_map
|
217
239
|
{
|
@@ -643,9 +665,21 @@ module CloudsmithApi
|
|
643
665
|
# Check to see if the all the properties in the model are valid
|
644
666
|
# @return true if the model is valid
|
645
667
|
def valid?
|
668
|
+
security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
|
669
|
+
return false unless security_scan_status_validator.valid?(@security_scan_status)
|
646
670
|
true
|
647
671
|
end
|
648
672
|
|
673
|
+
# Custom attribute writer method checking allowed values (enum).
|
674
|
+
# @param [Object] security_scan_status Object to be assigned
|
675
|
+
def security_scan_status=(security_scan_status)
|
676
|
+
validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
|
677
|
+
unless validator.valid?(security_scan_status)
|
678
|
+
fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.'
|
679
|
+
end
|
680
|
+
@security_scan_status = security_scan_status
|
681
|
+
end
|
682
|
+
|
649
683
|
# Checks equality by comparing each attribute.
|
650
684
|
# @param [Object] Object to be compared
|
651
685
|
def ==(o)
|
@@ -218,6 +218,28 @@ module CloudsmithApi
|
|
218
218
|
#
|
219
219
|
attr_accessor :vulnerability_scan_results_url
|
220
220
|
|
221
|
+
class EnumAttributeValidator
|
222
|
+
attr_reader :datatype
|
223
|
+
attr_reader :allowable_values
|
224
|
+
|
225
|
+
def initialize(datatype, allowable_values)
|
226
|
+
@allowable_values = allowable_values.map do |value|
|
227
|
+
case datatype.to_s
|
228
|
+
when /Integer/i
|
229
|
+
value.to_i
|
230
|
+
when /Float/i
|
231
|
+
value.to_f
|
232
|
+
else
|
233
|
+
value
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
def valid?(value)
|
239
|
+
!value || allowable_values.include?(value)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
221
243
|
# Attribute mapping from ruby-style variable name to JSON key.
|
222
244
|
def self.attribute_map
|
223
245
|
{
|
@@ -661,9 +683,21 @@ module CloudsmithApi
|
|
661
683
|
# Check to see if the all the properties in the model are valid
|
662
684
|
# @return true if the model is valid
|
663
685
|
def valid?
|
686
|
+
security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
|
687
|
+
return false unless security_scan_status_validator.valid?(@security_scan_status)
|
664
688
|
true
|
665
689
|
end
|
666
690
|
|
691
|
+
# Custom attribute writer method checking allowed values (enum).
|
692
|
+
# @param [Object] security_scan_status Object to be assigned
|
693
|
+
def security_scan_status=(security_scan_status)
|
694
|
+
validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
|
695
|
+
unless validator.valid?(security_scan_status)
|
696
|
+
fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.'
|
697
|
+
end
|
698
|
+
@security_scan_status = security_scan_status
|
699
|
+
end
|
700
|
+
|
667
701
|
# Checks equality by comparing each attribute.
|
668
702
|
# @param [Object] Object to be compared
|
669
703
|
def ==(o)
|