cloudsmith-api 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +104 -4
  4. data/build.json +1 -1
  5. data/docs/DartUpstream.md +23 -0
  6. data/docs/DartUpstreamRequest.md +20 -0
  7. data/docs/DartUpstreamRequestPatch.md +20 -0
  8. data/docs/DebUpstream.md +27 -0
  9. data/docs/DebUpstreamRequest.md +24 -0
  10. data/docs/DebUpstreamRequestPatch.md +24 -0
  11. data/docs/DockerUpstream.md +23 -0
  12. data/docs/DockerUpstreamRequest.md +20 -0
  13. data/docs/DockerUpstreamRequestPatch.md +20 -0
  14. data/docs/HelmUpstream.md +23 -0
  15. data/docs/HelmUpstreamRequest.md +20 -0
  16. data/docs/HelmUpstreamRequestPatch.md +20 -0
  17. data/docs/MavenUpstream.md +23 -0
  18. data/docs/MavenUpstreamRequest.md +20 -0
  19. data/docs/MavenUpstreamRequestPatch.md +20 -0
  20. data/docs/NpmUpstream.md +23 -0
  21. data/docs/NpmUpstreamRequest.md +20 -0
  22. data/docs/NpmUpstreamRequestPatch.md +20 -0
  23. data/docs/NugetUpstream.md +23 -0
  24. data/docs/NugetUpstreamRequest.md +20 -0
  25. data/docs/NugetUpstreamRequestPatch.md +20 -0
  26. data/docs/OrgsApi.md +374 -0
  27. data/docs/PackageLicensePolicyEvaluationRequest.md +14 -0
  28. data/docs/PackageLicensePolicyEvaluationRequestRequest.md +7 -0
  29. data/docs/PackageVulnerabilityPolicyEvaluationRequest.md +14 -0
  30. data/docs/PackageVulnerabilityPolicyEvaluationRequestRequest.md +7 -0
  31. data/docs/PythonUpstream.md +23 -0
  32. data/docs/PythonUpstreamRequest.md +20 -0
  33. data/docs/PythonUpstreamRequestPatch.md +20 -0
  34. data/docs/ReposApi.md +3770 -0
  35. data/docs/RpmUpstream.md +25 -0
  36. data/docs/RpmUpstreamRequest.md +22 -0
  37. data/docs/RpmUpstreamRequestPatch.md +22 -0
  38. data/docs/RubyUpstream.md +23 -0
  39. data/docs/RubyUpstreamRequest.md +20 -0
  40. data/docs/RubyUpstreamRequestPatch.md +20 -0
  41. data/docs/StatusBasic.md +1 -1
  42. data/lib/cloudsmith-api/api/orgs_api.rb +388 -0
  43. data/lib/cloudsmith-api/api/repos_api.rb +3950 -0
  44. data/lib/cloudsmith-api/models/dart_upstream.rb +393 -0
  45. data/lib/cloudsmith-api/models/dart_upstream_request.rb +365 -0
  46. data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +355 -0
  47. data/lib/cloudsmith-api/models/deb_upstream.rb +440 -0
  48. data/lib/cloudsmith-api/models/deb_upstream_request.rb +412 -0
  49. data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +397 -0
  50. data/lib/cloudsmith-api/models/docker_upstream.rb +393 -0
  51. data/lib/cloudsmith-api/models/docker_upstream_request.rb +365 -0
  52. data/lib/cloudsmith-api/models/docker_upstream_request_patch.rb +355 -0
  53. data/lib/cloudsmith-api/models/helm_upstream.rb +393 -0
  54. data/lib/cloudsmith-api/models/helm_upstream_request.rb +365 -0
  55. data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +355 -0
  56. data/lib/cloudsmith-api/models/maven_upstream.rb +393 -0
  57. data/lib/cloudsmith-api/models/maven_upstream_request.rb +365 -0
  58. data/lib/cloudsmith-api/models/maven_upstream_request_patch.rb +355 -0
  59. data/lib/cloudsmith-api/models/npm_upstream.rb +393 -0
  60. data/lib/cloudsmith-api/models/npm_upstream_request.rb +365 -0
  61. data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +355 -0
  62. data/lib/cloudsmith-api/models/nuget_upstream.rb +393 -0
  63. data/lib/cloudsmith-api/models/nuget_upstream_request.rb +365 -0
  64. data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +355 -0
  65. data/lib/cloudsmith-api/models/package_license_policy_evaluation_request.rb +274 -0
  66. data/lib/cloudsmith-api/models/package_license_policy_evaluation_request_request.rb +175 -0
  67. data/lib/cloudsmith-api/models/package_vulnerability_policy_evaluation_request.rb +274 -0
  68. data/lib/cloudsmith-api/models/package_vulnerability_policy_evaluation_request_request.rb +175 -0
  69. data/lib/cloudsmith-api/models/python_upstream.rb +393 -0
  70. data/lib/cloudsmith-api/models/python_upstream_request.rb +365 -0
  71. data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +355 -0
  72. data/lib/cloudsmith-api/models/rpm_upstream.rb +418 -0
  73. data/lib/cloudsmith-api/models/rpm_upstream_request.rb +390 -0
  74. data/lib/cloudsmith-api/models/rpm_upstream_request_patch.rb +375 -0
  75. data/lib/cloudsmith-api/models/ruby_upstream.rb +393 -0
  76. data/lib/cloudsmith-api/models/ruby_upstream_request.rb +365 -0
  77. data/lib/cloudsmith-api/models/ruby_upstream_request_patch.rb +355 -0
  78. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  79. data/lib/cloudsmith-api/version.rb +1 -1
  80. data/lib/cloudsmith-api.rb +34 -0
  81. data/spec/api/orgs_api_spec.rb +86 -0
  82. data/spec/api/repos_api_spec.rb +870 -0
  83. data/spec/models/dart_upstream_request_patch_spec.rb +121 -0
  84. data/spec/models/dart_upstream_request_spec.rb +121 -0
  85. data/spec/models/dart_upstream_spec.rb +139 -0
  86. data/spec/models/deb_upstream_request_patch_spec.rb +145 -0
  87. data/spec/models/deb_upstream_request_spec.rb +145 -0
  88. data/spec/models/deb_upstream_spec.rb +163 -0
  89. data/spec/models/docker_upstream_request_patch_spec.rb +121 -0
  90. data/spec/models/docker_upstream_request_spec.rb +121 -0
  91. data/spec/models/docker_upstream_spec.rb +139 -0
  92. data/spec/models/helm_upstream_request_patch_spec.rb +121 -0
  93. data/spec/models/helm_upstream_request_spec.rb +121 -0
  94. data/spec/models/helm_upstream_spec.rb +139 -0
  95. data/spec/models/maven_upstream_request_patch_spec.rb +121 -0
  96. data/spec/models/maven_upstream_request_spec.rb +121 -0
  97. data/spec/models/maven_upstream_spec.rb +139 -0
  98. data/spec/models/npm_upstream_request_patch_spec.rb +121 -0
  99. data/spec/models/npm_upstream_request_spec.rb +121 -0
  100. data/spec/models/npm_upstream_spec.rb +139 -0
  101. data/spec/models/nuget_upstream_request_patch_spec.rb +121 -0
  102. data/spec/models/nuget_upstream_request_spec.rb +121 -0
  103. data/spec/models/nuget_upstream_spec.rb +139 -0
  104. data/spec/models/package_license_policy_evaluation_request_request_spec.rb +35 -0
  105. data/spec/models/package_license_policy_evaluation_request_spec.rb +81 -0
  106. data/spec/models/package_vulnerability_policy_evaluation_request_request_spec.rb +35 -0
  107. data/spec/models/package_vulnerability_policy_evaluation_request_spec.rb +81 -0
  108. data/spec/models/python_upstream_request_patch_spec.rb +121 -0
  109. data/spec/models/python_upstream_request_spec.rb +121 -0
  110. data/spec/models/python_upstream_spec.rb +139 -0
  111. data/spec/models/rpm_upstream_request_patch_spec.rb +133 -0
  112. data/spec/models/rpm_upstream_request_spec.rb +133 -0
  113. data/spec/models/rpm_upstream_spec.rb +151 -0
  114. data/spec/models/ruby_upstream_request_patch_spec.rb +121 -0
  115. data/spec/models/ruby_upstream_request_spec.rb +121 -0
  116. data/spec/models/ruby_upstream_spec.rb +139 -0
  117. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.12.1.gem +0 -0
  118. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
  119. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
  120. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
  121. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
  122. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  123. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
  124. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
  125. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
  126. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/Changelog.md +9 -1
  127. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/shell_out.rb +3 -0
  128. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/version.rb +1 -1
  129. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support.rb +8 -2
  130. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.12.0.gemspec → rspec-support-3.12.1.gemspec} +5 -5
  131. metadata +176 -40
  132. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.12.0.gem +0 -0
  133. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/LICENSE.md +0 -0
  134. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/README.md +0 -0
  135. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/caller_filter.rb +0 -0
  136. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/comparable_version.rb +0 -0
  137. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/differ.rb +0 -0
  138. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/directory_maker.rb +0 -0
  139. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/encoded_string.rb +0 -0
  140. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  141. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/hunk_generator.rb +0 -0
  142. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/matcher_definition.rb +0 -0
  143. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/method_signature_verifier.rb +0 -0
  144. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/mutex.rb +0 -0
  145. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/object_formatter.rb +0 -0
  146. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/recursive_const_methods.rb +0 -0
  147. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/reentrant_mutex.rb +0 -0
  148. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/ruby_features.rb +0 -0
  149. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source/location.rb +0 -0
  150. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source/node.rb +0 -0
  151. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source/token.rb +0 -0
  152. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source.rb +0 -0
  153. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  154. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  155. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/formatting_support.rb +0 -0
  156. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/in_sub_process.rb +0 -0
  157. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  158. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  159. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/string_matcher.rb +0 -0
  160. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  161. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  162. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec.rb +0 -0
  163. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/warnings.rb +0 -0
  164. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
@@ -1236,6 +1236,3956 @@ module CloudsmithApi
1236
1236
  end
1237
1237
  return data, status_code, headers
1238
1238
  end
1239
+ # Create a Dart upstream config for this repository.
1240
+ # Create a Dart upstream config for this repository.
1241
+ # @param owner
1242
+ # @param identifier
1243
+ # @param [Hash] opts the optional parameters
1244
+ # @option opts [DartUpstreamRequest] :data
1245
+ # @return [DartUpstream]
1246
+ def repos_upstream_dart_create(owner, identifier, opts = {})
1247
+ data, _status_code, _headers = repos_upstream_dart_create_with_http_info(owner, identifier, opts)
1248
+ data
1249
+ end
1250
+
1251
+ # Create a Dart upstream config for this repository.
1252
+ # Create a Dart upstream config for this repository.
1253
+ # @param owner
1254
+ # @param identifier
1255
+ # @param [Hash] opts the optional parameters
1256
+ # @option opts [DartUpstreamRequest] :data
1257
+ # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers
1258
+ def repos_upstream_dart_create_with_http_info(owner, identifier, opts = {})
1259
+ if @api_client.config.debugging
1260
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_create ...'
1261
+ end
1262
+ # verify the required parameter 'owner' is set
1263
+ if @api_client.config.client_side_validation && owner.nil?
1264
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_create"
1265
+ end
1266
+ # verify the required parameter 'identifier' is set
1267
+ if @api_client.config.client_side_validation && identifier.nil?
1268
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_create"
1269
+ end
1270
+ # resource path
1271
+ local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
1272
+
1273
+ # query parameters
1274
+ query_params = {}
1275
+
1276
+ # header parameters
1277
+ header_params = {}
1278
+ # HTTP header 'Accept' (if needed)
1279
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1280
+ # HTTP header 'Content-Type'
1281
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1282
+
1283
+ # form parameters
1284
+ form_params = {}
1285
+
1286
+ # http body (model)
1287
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1288
+ auth_names = ['apikey']
1289
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1290
+ :header_params => header_params,
1291
+ :query_params => query_params,
1292
+ :form_params => form_params,
1293
+ :body => post_body,
1294
+ :auth_names => auth_names,
1295
+ :return_type => 'DartUpstream')
1296
+ if @api_client.config.debugging
1297
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1298
+ end
1299
+ return data, status_code, headers
1300
+ end
1301
+ # Delete a Dart upstream config for this repository.
1302
+ # Delete a Dart upstream config for this repository.
1303
+ # @param owner
1304
+ # @param identifier
1305
+ # @param slug_perm
1306
+ # @param [Hash] opts the optional parameters
1307
+ # @return [nil]
1308
+ def repos_upstream_dart_delete(owner, identifier, slug_perm, opts = {})
1309
+ repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts)
1310
+ nil
1311
+ end
1312
+
1313
+ # Delete a Dart upstream config for this repository.
1314
+ # Delete a Dart upstream config for this repository.
1315
+ # @param owner
1316
+ # @param identifier
1317
+ # @param slug_perm
1318
+ # @param [Hash] opts the optional parameters
1319
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1320
+ def repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts = {})
1321
+ if @api_client.config.debugging
1322
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_delete ...'
1323
+ end
1324
+ # verify the required parameter 'owner' is set
1325
+ if @api_client.config.client_side_validation && owner.nil?
1326
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_delete"
1327
+ end
1328
+ # verify the required parameter 'identifier' is set
1329
+ if @api_client.config.client_side_validation && identifier.nil?
1330
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_delete"
1331
+ end
1332
+ # verify the required parameter 'slug_perm' is set
1333
+ if @api_client.config.client_side_validation && slug_perm.nil?
1334
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_delete"
1335
+ end
1336
+ # resource path
1337
+ local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1338
+
1339
+ # query parameters
1340
+ query_params = {}
1341
+
1342
+ # header parameters
1343
+ header_params = {}
1344
+ # HTTP header 'Accept' (if needed)
1345
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1346
+ # HTTP header 'Content-Type'
1347
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1348
+
1349
+ # form parameters
1350
+ form_params = {}
1351
+
1352
+ # http body (model)
1353
+ post_body = nil
1354
+ auth_names = ['apikey']
1355
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1356
+ :header_params => header_params,
1357
+ :query_params => query_params,
1358
+ :form_params => form_params,
1359
+ :body => post_body,
1360
+ :auth_names => auth_names)
1361
+ if @api_client.config.debugging
1362
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1363
+ end
1364
+ return data, status_code, headers
1365
+ end
1366
+ # List Dart upstream configs for this repository.
1367
+ # List Dart upstream configs for this repository.
1368
+ # @param owner
1369
+ # @param identifier
1370
+ # @param [Hash] opts the optional parameters
1371
+ # @option opts [Integer] :page A page number within the paginated result set.
1372
+ # @option opts [Integer] :page_size Number of results to return per page.
1373
+ # @return [Array<DartUpstream>]
1374
+ def repos_upstream_dart_list(owner, identifier, opts = {})
1375
+ data, _status_code, _headers = repos_upstream_dart_list_with_http_info(owner, identifier, opts)
1376
+ data
1377
+ end
1378
+
1379
+ # List Dart upstream configs for this repository.
1380
+ # List Dart upstream configs for this repository.
1381
+ # @param owner
1382
+ # @param identifier
1383
+ # @param [Hash] opts the optional parameters
1384
+ # @option opts [Integer] :page A page number within the paginated result set.
1385
+ # @option opts [Integer] :page_size Number of results to return per page.
1386
+ # @return [Array<(Array<DartUpstream>, Fixnum, Hash)>] Array<DartUpstream> data, response status code and response headers
1387
+ def repos_upstream_dart_list_with_http_info(owner, identifier, opts = {})
1388
+ if @api_client.config.debugging
1389
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_list ...'
1390
+ end
1391
+ # verify the required parameter 'owner' is set
1392
+ if @api_client.config.client_side_validation && owner.nil?
1393
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_list"
1394
+ end
1395
+ # verify the required parameter 'identifier' is set
1396
+ if @api_client.config.client_side_validation && identifier.nil?
1397
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_list"
1398
+ end
1399
+ # resource path
1400
+ local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
1401
+
1402
+ # query parameters
1403
+ query_params = {}
1404
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1405
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1406
+
1407
+ # header parameters
1408
+ header_params = {}
1409
+ # HTTP header 'Accept' (if needed)
1410
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1411
+ # HTTP header 'Content-Type'
1412
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1413
+
1414
+ # form parameters
1415
+ form_params = {}
1416
+
1417
+ # http body (model)
1418
+ post_body = nil
1419
+ auth_names = ['apikey']
1420
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1421
+ :header_params => header_params,
1422
+ :query_params => query_params,
1423
+ :form_params => form_params,
1424
+ :body => post_body,
1425
+ :auth_names => auth_names,
1426
+ :return_type => 'Array<DartUpstream>')
1427
+ if @api_client.config.debugging
1428
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1429
+ end
1430
+ return data, status_code, headers
1431
+ end
1432
+ # Partially update a Dart upstream config for this repository.
1433
+ # Partially update a Dart upstream config for this repository.
1434
+ # @param owner
1435
+ # @param identifier
1436
+ # @param slug_perm
1437
+ # @param [Hash] opts the optional parameters
1438
+ # @option opts [DartUpstreamRequestPatch] :data
1439
+ # @return [DartUpstream]
1440
+ def repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts = {})
1441
+ data, _status_code, _headers = repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts)
1442
+ data
1443
+ end
1444
+
1445
+ # Partially update a Dart upstream config for this repository.
1446
+ # Partially update a Dart upstream config for this repository.
1447
+ # @param owner
1448
+ # @param identifier
1449
+ # @param slug_perm
1450
+ # @param [Hash] opts the optional parameters
1451
+ # @option opts [DartUpstreamRequestPatch] :data
1452
+ # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers
1453
+ def repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
1454
+ if @api_client.config.debugging
1455
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_partial_update ...'
1456
+ end
1457
+ # verify the required parameter 'owner' is set
1458
+ if @api_client.config.client_side_validation && owner.nil?
1459
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_partial_update"
1460
+ end
1461
+ # verify the required parameter 'identifier' is set
1462
+ if @api_client.config.client_side_validation && identifier.nil?
1463
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_partial_update"
1464
+ end
1465
+ # verify the required parameter 'slug_perm' is set
1466
+ if @api_client.config.client_side_validation && slug_perm.nil?
1467
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_partial_update"
1468
+ end
1469
+ # resource path
1470
+ local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1471
+
1472
+ # query parameters
1473
+ query_params = {}
1474
+
1475
+ # header parameters
1476
+ header_params = {}
1477
+ # HTTP header 'Accept' (if needed)
1478
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1479
+ # HTTP header 'Content-Type'
1480
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1481
+
1482
+ # form parameters
1483
+ form_params = {}
1484
+
1485
+ # http body (model)
1486
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1487
+ auth_names = ['apikey']
1488
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1489
+ :header_params => header_params,
1490
+ :query_params => query_params,
1491
+ :form_params => form_params,
1492
+ :body => post_body,
1493
+ :auth_names => auth_names,
1494
+ :return_type => 'DartUpstream')
1495
+ if @api_client.config.debugging
1496
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1497
+ end
1498
+ return data, status_code, headers
1499
+ end
1500
+ # Retrieve a Dart upstream config for this repository.
1501
+ # Retrieve a Dart upstream config for this repository.
1502
+ # @param owner
1503
+ # @param identifier
1504
+ # @param slug_perm
1505
+ # @param [Hash] opts the optional parameters
1506
+ # @return [DartUpstream]
1507
+ def repos_upstream_dart_read(owner, identifier, slug_perm, opts = {})
1508
+ data, _status_code, _headers = repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts)
1509
+ data
1510
+ end
1511
+
1512
+ # Retrieve a Dart upstream config for this repository.
1513
+ # Retrieve a Dart upstream config for this repository.
1514
+ # @param owner
1515
+ # @param identifier
1516
+ # @param slug_perm
1517
+ # @param [Hash] opts the optional parameters
1518
+ # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers
1519
+ def repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts = {})
1520
+ if @api_client.config.debugging
1521
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_read ...'
1522
+ end
1523
+ # verify the required parameter 'owner' is set
1524
+ if @api_client.config.client_side_validation && owner.nil?
1525
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_read"
1526
+ end
1527
+ # verify the required parameter 'identifier' is set
1528
+ if @api_client.config.client_side_validation && identifier.nil?
1529
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_read"
1530
+ end
1531
+ # verify the required parameter 'slug_perm' is set
1532
+ if @api_client.config.client_side_validation && slug_perm.nil?
1533
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_read"
1534
+ end
1535
+ # resource path
1536
+ local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1537
+
1538
+ # query parameters
1539
+ query_params = {}
1540
+
1541
+ # header parameters
1542
+ header_params = {}
1543
+ # HTTP header 'Accept' (if needed)
1544
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1545
+ # HTTP header 'Content-Type'
1546
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1547
+
1548
+ # form parameters
1549
+ form_params = {}
1550
+
1551
+ # http body (model)
1552
+ post_body = nil
1553
+ auth_names = ['apikey']
1554
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1555
+ :header_params => header_params,
1556
+ :query_params => query_params,
1557
+ :form_params => form_params,
1558
+ :body => post_body,
1559
+ :auth_names => auth_names,
1560
+ :return_type => 'DartUpstream')
1561
+ if @api_client.config.debugging
1562
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1563
+ end
1564
+ return data, status_code, headers
1565
+ end
1566
+ # Update a Dart upstream config for this repository.
1567
+ # Update a Dart upstream config for this repository.
1568
+ # @param owner
1569
+ # @param identifier
1570
+ # @param slug_perm
1571
+ # @param [Hash] opts the optional parameters
1572
+ # @option opts [DartUpstreamRequest] :data
1573
+ # @return [DartUpstream]
1574
+ def repos_upstream_dart_update(owner, identifier, slug_perm, opts = {})
1575
+ data, _status_code, _headers = repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts)
1576
+ data
1577
+ end
1578
+
1579
+ # Update a Dart upstream config for this repository.
1580
+ # Update a Dart upstream config for this repository.
1581
+ # @param owner
1582
+ # @param identifier
1583
+ # @param slug_perm
1584
+ # @param [Hash] opts the optional parameters
1585
+ # @option opts [DartUpstreamRequest] :data
1586
+ # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers
1587
+ def repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts = {})
1588
+ if @api_client.config.debugging
1589
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_update ...'
1590
+ end
1591
+ # verify the required parameter 'owner' is set
1592
+ if @api_client.config.client_side_validation && owner.nil?
1593
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_update"
1594
+ end
1595
+ # verify the required parameter 'identifier' is set
1596
+ if @api_client.config.client_side_validation && identifier.nil?
1597
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_update"
1598
+ end
1599
+ # verify the required parameter 'slug_perm' is set
1600
+ if @api_client.config.client_side_validation && slug_perm.nil?
1601
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_update"
1602
+ end
1603
+ # resource path
1604
+ local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1605
+
1606
+ # query parameters
1607
+ query_params = {}
1608
+
1609
+ # header parameters
1610
+ header_params = {}
1611
+ # HTTP header 'Accept' (if needed)
1612
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1613
+ # HTTP header 'Content-Type'
1614
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1615
+
1616
+ # form parameters
1617
+ form_params = {}
1618
+
1619
+ # http body (model)
1620
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1621
+ auth_names = ['apikey']
1622
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1623
+ :header_params => header_params,
1624
+ :query_params => query_params,
1625
+ :form_params => form_params,
1626
+ :body => post_body,
1627
+ :auth_names => auth_names,
1628
+ :return_type => 'DartUpstream')
1629
+ if @api_client.config.debugging
1630
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1631
+ end
1632
+ return data, status_code, headers
1633
+ end
1634
+ # Create a Debian upstream config for this repository.
1635
+ # Create a Debian upstream config for this repository.
1636
+ # @param owner
1637
+ # @param identifier
1638
+ # @param [Hash] opts the optional parameters
1639
+ # @option opts [DebUpstreamRequest] :data
1640
+ # @return [DebUpstream]
1641
+ def repos_upstream_deb_create(owner, identifier, opts = {})
1642
+ data, _status_code, _headers = repos_upstream_deb_create_with_http_info(owner, identifier, opts)
1643
+ data
1644
+ end
1645
+
1646
+ # Create a Debian upstream config for this repository.
1647
+ # Create a Debian upstream config for this repository.
1648
+ # @param owner
1649
+ # @param identifier
1650
+ # @param [Hash] opts the optional parameters
1651
+ # @option opts [DebUpstreamRequest] :data
1652
+ # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers
1653
+ def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {})
1654
+ if @api_client.config.debugging
1655
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_create ...'
1656
+ end
1657
+ # verify the required parameter 'owner' is set
1658
+ if @api_client.config.client_side_validation && owner.nil?
1659
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_create"
1660
+ end
1661
+ # verify the required parameter 'identifier' is set
1662
+ if @api_client.config.client_side_validation && identifier.nil?
1663
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_create"
1664
+ end
1665
+ # resource path
1666
+ local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
1667
+
1668
+ # query parameters
1669
+ query_params = {}
1670
+
1671
+ # header parameters
1672
+ header_params = {}
1673
+ # HTTP header 'Accept' (if needed)
1674
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1675
+ # HTTP header 'Content-Type'
1676
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1677
+
1678
+ # form parameters
1679
+ form_params = {}
1680
+
1681
+ # http body (model)
1682
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1683
+ auth_names = ['apikey']
1684
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1685
+ :header_params => header_params,
1686
+ :query_params => query_params,
1687
+ :form_params => form_params,
1688
+ :body => post_body,
1689
+ :auth_names => auth_names,
1690
+ :return_type => 'DebUpstream')
1691
+ if @api_client.config.debugging
1692
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1693
+ end
1694
+ return data, status_code, headers
1695
+ end
1696
+ # Delete a Debian upstream config for this repository.
1697
+ # Delete a Debian upstream config for this repository.
1698
+ # @param owner
1699
+ # @param identifier
1700
+ # @param slug_perm
1701
+ # @param [Hash] opts the optional parameters
1702
+ # @return [nil]
1703
+ def repos_upstream_deb_delete(owner, identifier, slug_perm, opts = {})
1704
+ repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts)
1705
+ nil
1706
+ end
1707
+
1708
+ # Delete a Debian upstream config for this repository.
1709
+ # Delete a Debian upstream config for this repository.
1710
+ # @param owner
1711
+ # @param identifier
1712
+ # @param slug_perm
1713
+ # @param [Hash] opts the optional parameters
1714
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1715
+ def repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts = {})
1716
+ if @api_client.config.debugging
1717
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_delete ...'
1718
+ end
1719
+ # verify the required parameter 'owner' is set
1720
+ if @api_client.config.client_side_validation && owner.nil?
1721
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_delete"
1722
+ end
1723
+ # verify the required parameter 'identifier' is set
1724
+ if @api_client.config.client_side_validation && identifier.nil?
1725
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_delete"
1726
+ end
1727
+ # verify the required parameter 'slug_perm' is set
1728
+ if @api_client.config.client_side_validation && slug_perm.nil?
1729
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_delete"
1730
+ end
1731
+ # resource path
1732
+ local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1733
+
1734
+ # query parameters
1735
+ query_params = {}
1736
+
1737
+ # header parameters
1738
+ header_params = {}
1739
+ # HTTP header 'Accept' (if needed)
1740
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1741
+ # HTTP header 'Content-Type'
1742
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1743
+
1744
+ # form parameters
1745
+ form_params = {}
1746
+
1747
+ # http body (model)
1748
+ post_body = nil
1749
+ auth_names = ['apikey']
1750
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1751
+ :header_params => header_params,
1752
+ :query_params => query_params,
1753
+ :form_params => form_params,
1754
+ :body => post_body,
1755
+ :auth_names => auth_names)
1756
+ if @api_client.config.debugging
1757
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1758
+ end
1759
+ return data, status_code, headers
1760
+ end
1761
+ # List Debian upstream configs for this repository.
1762
+ # List Debian upstream configs for this repository.
1763
+ # @param owner
1764
+ # @param identifier
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @option opts [Integer] :page A page number within the paginated result set.
1767
+ # @option opts [Integer] :page_size Number of results to return per page.
1768
+ # @return [Array<DebUpstream>]
1769
+ def repos_upstream_deb_list(owner, identifier, opts = {})
1770
+ data, _status_code, _headers = repos_upstream_deb_list_with_http_info(owner, identifier, opts)
1771
+ data
1772
+ end
1773
+
1774
+ # List Debian upstream configs for this repository.
1775
+ # List Debian upstream configs for this repository.
1776
+ # @param owner
1777
+ # @param identifier
1778
+ # @param [Hash] opts the optional parameters
1779
+ # @option opts [Integer] :page A page number within the paginated result set.
1780
+ # @option opts [Integer] :page_size Number of results to return per page.
1781
+ # @return [Array<(Array<DebUpstream>, Fixnum, Hash)>] Array<DebUpstream> data, response status code and response headers
1782
+ def repos_upstream_deb_list_with_http_info(owner, identifier, opts = {})
1783
+ if @api_client.config.debugging
1784
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_list ...'
1785
+ end
1786
+ # verify the required parameter 'owner' is set
1787
+ if @api_client.config.client_side_validation && owner.nil?
1788
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_list"
1789
+ end
1790
+ # verify the required parameter 'identifier' is set
1791
+ if @api_client.config.client_side_validation && identifier.nil?
1792
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_list"
1793
+ end
1794
+ # resource path
1795
+ local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
1796
+
1797
+ # query parameters
1798
+ query_params = {}
1799
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1800
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1801
+
1802
+ # header parameters
1803
+ header_params = {}
1804
+ # HTTP header 'Accept' (if needed)
1805
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1806
+ # HTTP header 'Content-Type'
1807
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1808
+
1809
+ # form parameters
1810
+ form_params = {}
1811
+
1812
+ # http body (model)
1813
+ post_body = nil
1814
+ auth_names = ['apikey']
1815
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1816
+ :header_params => header_params,
1817
+ :query_params => query_params,
1818
+ :form_params => form_params,
1819
+ :body => post_body,
1820
+ :auth_names => auth_names,
1821
+ :return_type => 'Array<DebUpstream>')
1822
+ if @api_client.config.debugging
1823
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1824
+ end
1825
+ return data, status_code, headers
1826
+ end
1827
+ # Partially update a Debian upstream config for this repository.
1828
+ # Partially update a Debian upstream config for this repository.
1829
+ # @param owner
1830
+ # @param identifier
1831
+ # @param slug_perm
1832
+ # @param [Hash] opts the optional parameters
1833
+ # @option opts [DebUpstreamRequestPatch] :data
1834
+ # @return [DebUpstream]
1835
+ def repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts = {})
1836
+ data, _status_code, _headers = repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts)
1837
+ data
1838
+ end
1839
+
1840
+ # Partially update a Debian upstream config for this repository.
1841
+ # Partially update a Debian upstream config for this repository.
1842
+ # @param owner
1843
+ # @param identifier
1844
+ # @param slug_perm
1845
+ # @param [Hash] opts the optional parameters
1846
+ # @option opts [DebUpstreamRequestPatch] :data
1847
+ # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers
1848
+ def repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
1849
+ if @api_client.config.debugging
1850
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_partial_update ...'
1851
+ end
1852
+ # verify the required parameter 'owner' is set
1853
+ if @api_client.config.client_side_validation && owner.nil?
1854
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_partial_update"
1855
+ end
1856
+ # verify the required parameter 'identifier' is set
1857
+ if @api_client.config.client_side_validation && identifier.nil?
1858
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_partial_update"
1859
+ end
1860
+ # verify the required parameter 'slug_perm' is set
1861
+ if @api_client.config.client_side_validation && slug_perm.nil?
1862
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_partial_update"
1863
+ end
1864
+ # resource path
1865
+ local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1866
+
1867
+ # query parameters
1868
+ query_params = {}
1869
+
1870
+ # header parameters
1871
+ header_params = {}
1872
+ # HTTP header 'Accept' (if needed)
1873
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1874
+ # HTTP header 'Content-Type'
1875
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1876
+
1877
+ # form parameters
1878
+ form_params = {}
1879
+
1880
+ # http body (model)
1881
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1882
+ auth_names = ['apikey']
1883
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1884
+ :header_params => header_params,
1885
+ :query_params => query_params,
1886
+ :form_params => form_params,
1887
+ :body => post_body,
1888
+ :auth_names => auth_names,
1889
+ :return_type => 'DebUpstream')
1890
+ if @api_client.config.debugging
1891
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1892
+ end
1893
+ return data, status_code, headers
1894
+ end
1895
+ # Retrieve a Debian upstream config for this repository.
1896
+ # Retrieve a Debian upstream config for this repository.
1897
+ # @param owner
1898
+ # @param identifier
1899
+ # @param slug_perm
1900
+ # @param [Hash] opts the optional parameters
1901
+ # @return [DebUpstream]
1902
+ def repos_upstream_deb_read(owner, identifier, slug_perm, opts = {})
1903
+ data, _status_code, _headers = repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts)
1904
+ data
1905
+ end
1906
+
1907
+ # Retrieve a Debian upstream config for this repository.
1908
+ # Retrieve a Debian upstream config for this repository.
1909
+ # @param owner
1910
+ # @param identifier
1911
+ # @param slug_perm
1912
+ # @param [Hash] opts the optional parameters
1913
+ # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers
1914
+ def repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts = {})
1915
+ if @api_client.config.debugging
1916
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_read ...'
1917
+ end
1918
+ # verify the required parameter 'owner' is set
1919
+ if @api_client.config.client_side_validation && owner.nil?
1920
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_read"
1921
+ end
1922
+ # verify the required parameter 'identifier' is set
1923
+ if @api_client.config.client_side_validation && identifier.nil?
1924
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_read"
1925
+ end
1926
+ # verify the required parameter 'slug_perm' is set
1927
+ if @api_client.config.client_side_validation && slug_perm.nil?
1928
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_read"
1929
+ end
1930
+ # resource path
1931
+ local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1932
+
1933
+ # query parameters
1934
+ query_params = {}
1935
+
1936
+ # header parameters
1937
+ header_params = {}
1938
+ # HTTP header 'Accept' (if needed)
1939
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1940
+ # HTTP header 'Content-Type'
1941
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1942
+
1943
+ # form parameters
1944
+ form_params = {}
1945
+
1946
+ # http body (model)
1947
+ post_body = nil
1948
+ auth_names = ['apikey']
1949
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1950
+ :header_params => header_params,
1951
+ :query_params => query_params,
1952
+ :form_params => form_params,
1953
+ :body => post_body,
1954
+ :auth_names => auth_names,
1955
+ :return_type => 'DebUpstream')
1956
+ if @api_client.config.debugging
1957
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1958
+ end
1959
+ return data, status_code, headers
1960
+ end
1961
+ # Update a Debian upstream config for this repository.
1962
+ # Update a Debian upstream config for this repository.
1963
+ # @param owner
1964
+ # @param identifier
1965
+ # @param slug_perm
1966
+ # @param [Hash] opts the optional parameters
1967
+ # @option opts [DebUpstreamRequest] :data
1968
+ # @return [DebUpstream]
1969
+ def repos_upstream_deb_update(owner, identifier, slug_perm, opts = {})
1970
+ data, _status_code, _headers = repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts)
1971
+ data
1972
+ end
1973
+
1974
+ # Update a Debian upstream config for this repository.
1975
+ # Update a Debian upstream config for this repository.
1976
+ # @param owner
1977
+ # @param identifier
1978
+ # @param slug_perm
1979
+ # @param [Hash] opts the optional parameters
1980
+ # @option opts [DebUpstreamRequest] :data
1981
+ # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers
1982
+ def repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts = {})
1983
+ if @api_client.config.debugging
1984
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_update ...'
1985
+ end
1986
+ # verify the required parameter 'owner' is set
1987
+ if @api_client.config.client_side_validation && owner.nil?
1988
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_update"
1989
+ end
1990
+ # verify the required parameter 'identifier' is set
1991
+ if @api_client.config.client_side_validation && identifier.nil?
1992
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_update"
1993
+ end
1994
+ # verify the required parameter 'slug_perm' is set
1995
+ if @api_client.config.client_side_validation && slug_perm.nil?
1996
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_update"
1997
+ end
1998
+ # resource path
1999
+ local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2000
+
2001
+ # query parameters
2002
+ query_params = {}
2003
+
2004
+ # header parameters
2005
+ header_params = {}
2006
+ # HTTP header 'Accept' (if needed)
2007
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2008
+ # HTTP header 'Content-Type'
2009
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2010
+
2011
+ # form parameters
2012
+ form_params = {}
2013
+
2014
+ # http body (model)
2015
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2016
+ auth_names = ['apikey']
2017
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2018
+ :header_params => header_params,
2019
+ :query_params => query_params,
2020
+ :form_params => form_params,
2021
+ :body => post_body,
2022
+ :auth_names => auth_names,
2023
+ :return_type => 'DebUpstream')
2024
+ if @api_client.config.debugging
2025
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2026
+ end
2027
+ return data, status_code, headers
2028
+ end
2029
+ # Create a Docker upstream config for this repository.
2030
+ # Create a Docker upstream config for this repository.
2031
+ # @param owner
2032
+ # @param identifier
2033
+ # @param [Hash] opts the optional parameters
2034
+ # @option opts [DockerUpstreamRequest] :data
2035
+ # @return [DockerUpstream]
2036
+ def repos_upstream_docker_create(owner, identifier, opts = {})
2037
+ data, _status_code, _headers = repos_upstream_docker_create_with_http_info(owner, identifier, opts)
2038
+ data
2039
+ end
2040
+
2041
+ # Create a Docker upstream config for this repository.
2042
+ # Create a Docker upstream config for this repository.
2043
+ # @param owner
2044
+ # @param identifier
2045
+ # @param [Hash] opts the optional parameters
2046
+ # @option opts [DockerUpstreamRequest] :data
2047
+ # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers
2048
+ def repos_upstream_docker_create_with_http_info(owner, identifier, opts = {})
2049
+ if @api_client.config.debugging
2050
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_create ...'
2051
+ end
2052
+ # verify the required parameter 'owner' is set
2053
+ if @api_client.config.client_side_validation && owner.nil?
2054
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_create"
2055
+ end
2056
+ # verify the required parameter 'identifier' is set
2057
+ if @api_client.config.client_side_validation && identifier.nil?
2058
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_create"
2059
+ end
2060
+ # resource path
2061
+ local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
2062
+
2063
+ # query parameters
2064
+ query_params = {}
2065
+
2066
+ # header parameters
2067
+ header_params = {}
2068
+ # HTTP header 'Accept' (if needed)
2069
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2070
+ # HTTP header 'Content-Type'
2071
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2072
+
2073
+ # form parameters
2074
+ form_params = {}
2075
+
2076
+ # http body (model)
2077
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2078
+ auth_names = ['apikey']
2079
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2080
+ :header_params => header_params,
2081
+ :query_params => query_params,
2082
+ :form_params => form_params,
2083
+ :body => post_body,
2084
+ :auth_names => auth_names,
2085
+ :return_type => 'DockerUpstream')
2086
+ if @api_client.config.debugging
2087
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2088
+ end
2089
+ return data, status_code, headers
2090
+ end
2091
+ # Delete a Docker upstream config for this repository.
2092
+ # Delete a Docker upstream config for this repository.
2093
+ # @param owner
2094
+ # @param identifier
2095
+ # @param slug_perm
2096
+ # @param [Hash] opts the optional parameters
2097
+ # @return [nil]
2098
+ def repos_upstream_docker_delete(owner, identifier, slug_perm, opts = {})
2099
+ repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts)
2100
+ nil
2101
+ end
2102
+
2103
+ # Delete a Docker upstream config for this repository.
2104
+ # Delete a Docker upstream config for this repository.
2105
+ # @param owner
2106
+ # @param identifier
2107
+ # @param slug_perm
2108
+ # @param [Hash] opts the optional parameters
2109
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2110
+ def repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts = {})
2111
+ if @api_client.config.debugging
2112
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_delete ...'
2113
+ end
2114
+ # verify the required parameter 'owner' is set
2115
+ if @api_client.config.client_side_validation && owner.nil?
2116
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_delete"
2117
+ end
2118
+ # verify the required parameter 'identifier' is set
2119
+ if @api_client.config.client_side_validation && identifier.nil?
2120
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_delete"
2121
+ end
2122
+ # verify the required parameter 'slug_perm' is set
2123
+ if @api_client.config.client_side_validation && slug_perm.nil?
2124
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_delete"
2125
+ end
2126
+ # resource path
2127
+ local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2128
+
2129
+ # query parameters
2130
+ query_params = {}
2131
+
2132
+ # header parameters
2133
+ header_params = {}
2134
+ # HTTP header 'Accept' (if needed)
2135
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2136
+ # HTTP header 'Content-Type'
2137
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2138
+
2139
+ # form parameters
2140
+ form_params = {}
2141
+
2142
+ # http body (model)
2143
+ post_body = nil
2144
+ auth_names = ['apikey']
2145
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2146
+ :header_params => header_params,
2147
+ :query_params => query_params,
2148
+ :form_params => form_params,
2149
+ :body => post_body,
2150
+ :auth_names => auth_names)
2151
+ if @api_client.config.debugging
2152
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2153
+ end
2154
+ return data, status_code, headers
2155
+ end
2156
+ # List Docker upstream configs for this repository.
2157
+ # List Docker upstream configs for this repository.
2158
+ # @param owner
2159
+ # @param identifier
2160
+ # @param [Hash] opts the optional parameters
2161
+ # @option opts [Integer] :page A page number within the paginated result set.
2162
+ # @option opts [Integer] :page_size Number of results to return per page.
2163
+ # @return [Array<DockerUpstream>]
2164
+ def repos_upstream_docker_list(owner, identifier, opts = {})
2165
+ data, _status_code, _headers = repos_upstream_docker_list_with_http_info(owner, identifier, opts)
2166
+ data
2167
+ end
2168
+
2169
+ # List Docker upstream configs for this repository.
2170
+ # List Docker upstream configs for this repository.
2171
+ # @param owner
2172
+ # @param identifier
2173
+ # @param [Hash] opts the optional parameters
2174
+ # @option opts [Integer] :page A page number within the paginated result set.
2175
+ # @option opts [Integer] :page_size Number of results to return per page.
2176
+ # @return [Array<(Array<DockerUpstream>, Fixnum, Hash)>] Array<DockerUpstream> data, response status code and response headers
2177
+ def repos_upstream_docker_list_with_http_info(owner, identifier, opts = {})
2178
+ if @api_client.config.debugging
2179
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_list ...'
2180
+ end
2181
+ # verify the required parameter 'owner' is set
2182
+ if @api_client.config.client_side_validation && owner.nil?
2183
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_list"
2184
+ end
2185
+ # verify the required parameter 'identifier' is set
2186
+ if @api_client.config.client_side_validation && identifier.nil?
2187
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_list"
2188
+ end
2189
+ # resource path
2190
+ local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
2191
+
2192
+ # query parameters
2193
+ query_params = {}
2194
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2195
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2196
+
2197
+ # header parameters
2198
+ header_params = {}
2199
+ # HTTP header 'Accept' (if needed)
2200
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2201
+ # HTTP header 'Content-Type'
2202
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2203
+
2204
+ # form parameters
2205
+ form_params = {}
2206
+
2207
+ # http body (model)
2208
+ post_body = nil
2209
+ auth_names = ['apikey']
2210
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2211
+ :header_params => header_params,
2212
+ :query_params => query_params,
2213
+ :form_params => form_params,
2214
+ :body => post_body,
2215
+ :auth_names => auth_names,
2216
+ :return_type => 'Array<DockerUpstream>')
2217
+ if @api_client.config.debugging
2218
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2219
+ end
2220
+ return data, status_code, headers
2221
+ end
2222
+ # Partially update a Docker upstream config for this repository.
2223
+ # Partially update a Docker upstream config for this repository.
2224
+ # @param owner
2225
+ # @param identifier
2226
+ # @param slug_perm
2227
+ # @param [Hash] opts the optional parameters
2228
+ # @option opts [DockerUpstreamRequestPatch] :data
2229
+ # @return [DockerUpstream]
2230
+ def repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts = {})
2231
+ data, _status_code, _headers = repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts)
2232
+ data
2233
+ end
2234
+
2235
+ # Partially update a Docker upstream config for this repository.
2236
+ # Partially update a Docker upstream config for this repository.
2237
+ # @param owner
2238
+ # @param identifier
2239
+ # @param slug_perm
2240
+ # @param [Hash] opts the optional parameters
2241
+ # @option opts [DockerUpstreamRequestPatch] :data
2242
+ # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers
2243
+ def repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
2244
+ if @api_client.config.debugging
2245
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_partial_update ...'
2246
+ end
2247
+ # verify the required parameter 'owner' is set
2248
+ if @api_client.config.client_side_validation && owner.nil?
2249
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_partial_update"
2250
+ end
2251
+ # verify the required parameter 'identifier' is set
2252
+ if @api_client.config.client_side_validation && identifier.nil?
2253
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_partial_update"
2254
+ end
2255
+ # verify the required parameter 'slug_perm' is set
2256
+ if @api_client.config.client_side_validation && slug_perm.nil?
2257
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_partial_update"
2258
+ end
2259
+ # resource path
2260
+ local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2261
+
2262
+ # query parameters
2263
+ query_params = {}
2264
+
2265
+ # header parameters
2266
+ header_params = {}
2267
+ # HTTP header 'Accept' (if needed)
2268
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2269
+ # HTTP header 'Content-Type'
2270
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2271
+
2272
+ # form parameters
2273
+ form_params = {}
2274
+
2275
+ # http body (model)
2276
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2277
+ auth_names = ['apikey']
2278
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2279
+ :header_params => header_params,
2280
+ :query_params => query_params,
2281
+ :form_params => form_params,
2282
+ :body => post_body,
2283
+ :auth_names => auth_names,
2284
+ :return_type => 'DockerUpstream')
2285
+ if @api_client.config.debugging
2286
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2287
+ end
2288
+ return data, status_code, headers
2289
+ end
2290
+ # Retrieve a Docker upstream config for this repository.
2291
+ # Retrieve a Docker upstream config for this repository.
2292
+ # @param owner
2293
+ # @param identifier
2294
+ # @param slug_perm
2295
+ # @param [Hash] opts the optional parameters
2296
+ # @return [DockerUpstream]
2297
+ def repos_upstream_docker_read(owner, identifier, slug_perm, opts = {})
2298
+ data, _status_code, _headers = repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts)
2299
+ data
2300
+ end
2301
+
2302
+ # Retrieve a Docker upstream config for this repository.
2303
+ # Retrieve a Docker upstream config for this repository.
2304
+ # @param owner
2305
+ # @param identifier
2306
+ # @param slug_perm
2307
+ # @param [Hash] opts the optional parameters
2308
+ # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers
2309
+ def repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts = {})
2310
+ if @api_client.config.debugging
2311
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_read ...'
2312
+ end
2313
+ # verify the required parameter 'owner' is set
2314
+ if @api_client.config.client_side_validation && owner.nil?
2315
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_read"
2316
+ end
2317
+ # verify the required parameter 'identifier' is set
2318
+ if @api_client.config.client_side_validation && identifier.nil?
2319
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_read"
2320
+ end
2321
+ # verify the required parameter 'slug_perm' is set
2322
+ if @api_client.config.client_side_validation && slug_perm.nil?
2323
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_read"
2324
+ end
2325
+ # resource path
2326
+ local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2327
+
2328
+ # query parameters
2329
+ query_params = {}
2330
+
2331
+ # header parameters
2332
+ header_params = {}
2333
+ # HTTP header 'Accept' (if needed)
2334
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2335
+ # HTTP header 'Content-Type'
2336
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2337
+
2338
+ # form parameters
2339
+ form_params = {}
2340
+
2341
+ # http body (model)
2342
+ post_body = nil
2343
+ auth_names = ['apikey']
2344
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2345
+ :header_params => header_params,
2346
+ :query_params => query_params,
2347
+ :form_params => form_params,
2348
+ :body => post_body,
2349
+ :auth_names => auth_names,
2350
+ :return_type => 'DockerUpstream')
2351
+ if @api_client.config.debugging
2352
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2353
+ end
2354
+ return data, status_code, headers
2355
+ end
2356
+ # Update a Docker upstream config for this repository.
2357
+ # Update a Docker upstream config for this repository.
2358
+ # @param owner
2359
+ # @param identifier
2360
+ # @param slug_perm
2361
+ # @param [Hash] opts the optional parameters
2362
+ # @option opts [DockerUpstreamRequest] :data
2363
+ # @return [DockerUpstream]
2364
+ def repos_upstream_docker_update(owner, identifier, slug_perm, opts = {})
2365
+ data, _status_code, _headers = repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts)
2366
+ data
2367
+ end
2368
+
2369
+ # Update a Docker upstream config for this repository.
2370
+ # Update a Docker upstream config for this repository.
2371
+ # @param owner
2372
+ # @param identifier
2373
+ # @param slug_perm
2374
+ # @param [Hash] opts the optional parameters
2375
+ # @option opts [DockerUpstreamRequest] :data
2376
+ # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers
2377
+ def repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts = {})
2378
+ if @api_client.config.debugging
2379
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_update ...'
2380
+ end
2381
+ # verify the required parameter 'owner' is set
2382
+ if @api_client.config.client_side_validation && owner.nil?
2383
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_update"
2384
+ end
2385
+ # verify the required parameter 'identifier' is set
2386
+ if @api_client.config.client_side_validation && identifier.nil?
2387
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_update"
2388
+ end
2389
+ # verify the required parameter 'slug_perm' is set
2390
+ if @api_client.config.client_side_validation && slug_perm.nil?
2391
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_update"
2392
+ end
2393
+ # resource path
2394
+ local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2395
+
2396
+ # query parameters
2397
+ query_params = {}
2398
+
2399
+ # header parameters
2400
+ header_params = {}
2401
+ # HTTP header 'Accept' (if needed)
2402
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2403
+ # HTTP header 'Content-Type'
2404
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2405
+
2406
+ # form parameters
2407
+ form_params = {}
2408
+
2409
+ # http body (model)
2410
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2411
+ auth_names = ['apikey']
2412
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2413
+ :header_params => header_params,
2414
+ :query_params => query_params,
2415
+ :form_params => form_params,
2416
+ :body => post_body,
2417
+ :auth_names => auth_names,
2418
+ :return_type => 'DockerUpstream')
2419
+ if @api_client.config.debugging
2420
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2421
+ end
2422
+ return data, status_code, headers
2423
+ end
2424
+ # Create a Helm upstream config for this repository.
2425
+ # Create a Helm upstream config for this repository.
2426
+ # @param owner
2427
+ # @param identifier
2428
+ # @param [Hash] opts the optional parameters
2429
+ # @option opts [HelmUpstreamRequest] :data
2430
+ # @return [HelmUpstream]
2431
+ def repos_upstream_helm_create(owner, identifier, opts = {})
2432
+ data, _status_code, _headers = repos_upstream_helm_create_with_http_info(owner, identifier, opts)
2433
+ data
2434
+ end
2435
+
2436
+ # Create a Helm upstream config for this repository.
2437
+ # Create a Helm upstream config for this repository.
2438
+ # @param owner
2439
+ # @param identifier
2440
+ # @param [Hash] opts the optional parameters
2441
+ # @option opts [HelmUpstreamRequest] :data
2442
+ # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers
2443
+ def repos_upstream_helm_create_with_http_info(owner, identifier, opts = {})
2444
+ if @api_client.config.debugging
2445
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_create ...'
2446
+ end
2447
+ # verify the required parameter 'owner' is set
2448
+ if @api_client.config.client_side_validation && owner.nil?
2449
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_create"
2450
+ end
2451
+ # verify the required parameter 'identifier' is set
2452
+ if @api_client.config.client_side_validation && identifier.nil?
2453
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_create"
2454
+ end
2455
+ # resource path
2456
+ local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
2457
+
2458
+ # query parameters
2459
+ query_params = {}
2460
+
2461
+ # header parameters
2462
+ header_params = {}
2463
+ # HTTP header 'Accept' (if needed)
2464
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2465
+ # HTTP header 'Content-Type'
2466
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2467
+
2468
+ # form parameters
2469
+ form_params = {}
2470
+
2471
+ # http body (model)
2472
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2473
+ auth_names = ['apikey']
2474
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2475
+ :header_params => header_params,
2476
+ :query_params => query_params,
2477
+ :form_params => form_params,
2478
+ :body => post_body,
2479
+ :auth_names => auth_names,
2480
+ :return_type => 'HelmUpstream')
2481
+ if @api_client.config.debugging
2482
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2483
+ end
2484
+ return data, status_code, headers
2485
+ end
2486
+ # Delete a Helm upstream config for this repository.
2487
+ # Delete a Helm upstream config for this repository.
2488
+ # @param owner
2489
+ # @param identifier
2490
+ # @param slug_perm
2491
+ # @param [Hash] opts the optional parameters
2492
+ # @return [nil]
2493
+ def repos_upstream_helm_delete(owner, identifier, slug_perm, opts = {})
2494
+ repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts)
2495
+ nil
2496
+ end
2497
+
2498
+ # Delete a Helm upstream config for this repository.
2499
+ # Delete a Helm upstream config for this repository.
2500
+ # @param owner
2501
+ # @param identifier
2502
+ # @param slug_perm
2503
+ # @param [Hash] opts the optional parameters
2504
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2505
+ def repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts = {})
2506
+ if @api_client.config.debugging
2507
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_delete ...'
2508
+ end
2509
+ # verify the required parameter 'owner' is set
2510
+ if @api_client.config.client_side_validation && owner.nil?
2511
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_delete"
2512
+ end
2513
+ # verify the required parameter 'identifier' is set
2514
+ if @api_client.config.client_side_validation && identifier.nil?
2515
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_delete"
2516
+ end
2517
+ # verify the required parameter 'slug_perm' is set
2518
+ if @api_client.config.client_side_validation && slug_perm.nil?
2519
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_delete"
2520
+ end
2521
+ # resource path
2522
+ local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2523
+
2524
+ # query parameters
2525
+ query_params = {}
2526
+
2527
+ # header parameters
2528
+ header_params = {}
2529
+ # HTTP header 'Accept' (if needed)
2530
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2531
+ # HTTP header 'Content-Type'
2532
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2533
+
2534
+ # form parameters
2535
+ form_params = {}
2536
+
2537
+ # http body (model)
2538
+ post_body = nil
2539
+ auth_names = ['apikey']
2540
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2541
+ :header_params => header_params,
2542
+ :query_params => query_params,
2543
+ :form_params => form_params,
2544
+ :body => post_body,
2545
+ :auth_names => auth_names)
2546
+ if @api_client.config.debugging
2547
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2548
+ end
2549
+ return data, status_code, headers
2550
+ end
2551
+ # List Helm upstream configs for this repository.
2552
+ # List Helm upstream configs for this repository.
2553
+ # @param owner
2554
+ # @param identifier
2555
+ # @param [Hash] opts the optional parameters
2556
+ # @option opts [Integer] :page A page number within the paginated result set.
2557
+ # @option opts [Integer] :page_size Number of results to return per page.
2558
+ # @return [Array<HelmUpstream>]
2559
+ def repos_upstream_helm_list(owner, identifier, opts = {})
2560
+ data, _status_code, _headers = repos_upstream_helm_list_with_http_info(owner, identifier, opts)
2561
+ data
2562
+ end
2563
+
2564
+ # List Helm upstream configs for this repository.
2565
+ # List Helm upstream configs for this repository.
2566
+ # @param owner
2567
+ # @param identifier
2568
+ # @param [Hash] opts the optional parameters
2569
+ # @option opts [Integer] :page A page number within the paginated result set.
2570
+ # @option opts [Integer] :page_size Number of results to return per page.
2571
+ # @return [Array<(Array<HelmUpstream>, Fixnum, Hash)>] Array<HelmUpstream> data, response status code and response headers
2572
+ def repos_upstream_helm_list_with_http_info(owner, identifier, opts = {})
2573
+ if @api_client.config.debugging
2574
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_list ...'
2575
+ end
2576
+ # verify the required parameter 'owner' is set
2577
+ if @api_client.config.client_side_validation && owner.nil?
2578
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_list"
2579
+ end
2580
+ # verify the required parameter 'identifier' is set
2581
+ if @api_client.config.client_side_validation && identifier.nil?
2582
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_list"
2583
+ end
2584
+ # resource path
2585
+ local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
2586
+
2587
+ # query parameters
2588
+ query_params = {}
2589
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2590
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2591
+
2592
+ # header parameters
2593
+ header_params = {}
2594
+ # HTTP header 'Accept' (if needed)
2595
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2596
+ # HTTP header 'Content-Type'
2597
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2598
+
2599
+ # form parameters
2600
+ form_params = {}
2601
+
2602
+ # http body (model)
2603
+ post_body = nil
2604
+ auth_names = ['apikey']
2605
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2606
+ :header_params => header_params,
2607
+ :query_params => query_params,
2608
+ :form_params => form_params,
2609
+ :body => post_body,
2610
+ :auth_names => auth_names,
2611
+ :return_type => 'Array<HelmUpstream>')
2612
+ if @api_client.config.debugging
2613
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2614
+ end
2615
+ return data, status_code, headers
2616
+ end
2617
+ # Partially update a Helm upstream config for this repository.
2618
+ # Partially update a Helm upstream config for this repository.
2619
+ # @param owner
2620
+ # @param identifier
2621
+ # @param slug_perm
2622
+ # @param [Hash] opts the optional parameters
2623
+ # @option opts [HelmUpstreamRequestPatch] :data
2624
+ # @return [HelmUpstream]
2625
+ def repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts = {})
2626
+ data, _status_code, _headers = repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts)
2627
+ data
2628
+ end
2629
+
2630
+ # Partially update a Helm upstream config for this repository.
2631
+ # Partially update a Helm upstream config for this repository.
2632
+ # @param owner
2633
+ # @param identifier
2634
+ # @param slug_perm
2635
+ # @param [Hash] opts the optional parameters
2636
+ # @option opts [HelmUpstreamRequestPatch] :data
2637
+ # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers
2638
+ def repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
2639
+ if @api_client.config.debugging
2640
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_partial_update ...'
2641
+ end
2642
+ # verify the required parameter 'owner' is set
2643
+ if @api_client.config.client_side_validation && owner.nil?
2644
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_partial_update"
2645
+ end
2646
+ # verify the required parameter 'identifier' is set
2647
+ if @api_client.config.client_side_validation && identifier.nil?
2648
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_partial_update"
2649
+ end
2650
+ # verify the required parameter 'slug_perm' is set
2651
+ if @api_client.config.client_side_validation && slug_perm.nil?
2652
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_partial_update"
2653
+ end
2654
+ # resource path
2655
+ local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2656
+
2657
+ # query parameters
2658
+ query_params = {}
2659
+
2660
+ # header parameters
2661
+ header_params = {}
2662
+ # HTTP header 'Accept' (if needed)
2663
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2664
+ # HTTP header 'Content-Type'
2665
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2666
+
2667
+ # form parameters
2668
+ form_params = {}
2669
+
2670
+ # http body (model)
2671
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2672
+ auth_names = ['apikey']
2673
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2674
+ :header_params => header_params,
2675
+ :query_params => query_params,
2676
+ :form_params => form_params,
2677
+ :body => post_body,
2678
+ :auth_names => auth_names,
2679
+ :return_type => 'HelmUpstream')
2680
+ if @api_client.config.debugging
2681
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2682
+ end
2683
+ return data, status_code, headers
2684
+ end
2685
+ # Retrieve a Helm upstream config for this repository.
2686
+ # Retrieve a Helm upstream config for this repository.
2687
+ # @param owner
2688
+ # @param identifier
2689
+ # @param slug_perm
2690
+ # @param [Hash] opts the optional parameters
2691
+ # @return [HelmUpstream]
2692
+ def repos_upstream_helm_read(owner, identifier, slug_perm, opts = {})
2693
+ data, _status_code, _headers = repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts)
2694
+ data
2695
+ end
2696
+
2697
+ # Retrieve a Helm upstream config for this repository.
2698
+ # Retrieve a Helm upstream config for this repository.
2699
+ # @param owner
2700
+ # @param identifier
2701
+ # @param slug_perm
2702
+ # @param [Hash] opts the optional parameters
2703
+ # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers
2704
+ def repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts = {})
2705
+ if @api_client.config.debugging
2706
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_read ...'
2707
+ end
2708
+ # verify the required parameter 'owner' is set
2709
+ if @api_client.config.client_side_validation && owner.nil?
2710
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_read"
2711
+ end
2712
+ # verify the required parameter 'identifier' is set
2713
+ if @api_client.config.client_side_validation && identifier.nil?
2714
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_read"
2715
+ end
2716
+ # verify the required parameter 'slug_perm' is set
2717
+ if @api_client.config.client_side_validation && slug_perm.nil?
2718
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_read"
2719
+ end
2720
+ # resource path
2721
+ local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2722
+
2723
+ # query parameters
2724
+ query_params = {}
2725
+
2726
+ # header parameters
2727
+ header_params = {}
2728
+ # HTTP header 'Accept' (if needed)
2729
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2730
+ # HTTP header 'Content-Type'
2731
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2732
+
2733
+ # form parameters
2734
+ form_params = {}
2735
+
2736
+ # http body (model)
2737
+ post_body = nil
2738
+ auth_names = ['apikey']
2739
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2740
+ :header_params => header_params,
2741
+ :query_params => query_params,
2742
+ :form_params => form_params,
2743
+ :body => post_body,
2744
+ :auth_names => auth_names,
2745
+ :return_type => 'HelmUpstream')
2746
+ if @api_client.config.debugging
2747
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2748
+ end
2749
+ return data, status_code, headers
2750
+ end
2751
+ # Update a Helm upstream config for this repository.
2752
+ # Update a Helm upstream config for this repository.
2753
+ # @param owner
2754
+ # @param identifier
2755
+ # @param slug_perm
2756
+ # @param [Hash] opts the optional parameters
2757
+ # @option opts [HelmUpstreamRequest] :data
2758
+ # @return [HelmUpstream]
2759
+ def repos_upstream_helm_update(owner, identifier, slug_perm, opts = {})
2760
+ data, _status_code, _headers = repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts)
2761
+ data
2762
+ end
2763
+
2764
+ # Update a Helm upstream config for this repository.
2765
+ # Update a Helm upstream config for this repository.
2766
+ # @param owner
2767
+ # @param identifier
2768
+ # @param slug_perm
2769
+ # @param [Hash] opts the optional parameters
2770
+ # @option opts [HelmUpstreamRequest] :data
2771
+ # @return [Array<(HelmUpstream, Fixnum, Hash)>] HelmUpstream data, response status code and response headers
2772
+ def repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts = {})
2773
+ if @api_client.config.debugging
2774
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_update ...'
2775
+ end
2776
+ # verify the required parameter 'owner' is set
2777
+ if @api_client.config.client_side_validation && owner.nil?
2778
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_update"
2779
+ end
2780
+ # verify the required parameter 'identifier' is set
2781
+ if @api_client.config.client_side_validation && identifier.nil?
2782
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_update"
2783
+ end
2784
+ # verify the required parameter 'slug_perm' is set
2785
+ if @api_client.config.client_side_validation && slug_perm.nil?
2786
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_update"
2787
+ end
2788
+ # resource path
2789
+ local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2790
+
2791
+ # query parameters
2792
+ query_params = {}
2793
+
2794
+ # header parameters
2795
+ header_params = {}
2796
+ # HTTP header 'Accept' (if needed)
2797
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2798
+ # HTTP header 'Content-Type'
2799
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2800
+
2801
+ # form parameters
2802
+ form_params = {}
2803
+
2804
+ # http body (model)
2805
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2806
+ auth_names = ['apikey']
2807
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2808
+ :header_params => header_params,
2809
+ :query_params => query_params,
2810
+ :form_params => form_params,
2811
+ :body => post_body,
2812
+ :auth_names => auth_names,
2813
+ :return_type => 'HelmUpstream')
2814
+ if @api_client.config.debugging
2815
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2816
+ end
2817
+ return data, status_code, headers
2818
+ end
2819
+ # Create a Maven upstream config for this repository.
2820
+ # Create a Maven upstream config for this repository.
2821
+ # @param owner
2822
+ # @param identifier
2823
+ # @param [Hash] opts the optional parameters
2824
+ # @option opts [MavenUpstreamRequest] :data
2825
+ # @return [MavenUpstream]
2826
+ def repos_upstream_maven_create(owner, identifier, opts = {})
2827
+ data, _status_code, _headers = repos_upstream_maven_create_with_http_info(owner, identifier, opts)
2828
+ data
2829
+ end
2830
+
2831
+ # Create a Maven upstream config for this repository.
2832
+ # Create a Maven upstream config for this repository.
2833
+ # @param owner
2834
+ # @param identifier
2835
+ # @param [Hash] opts the optional parameters
2836
+ # @option opts [MavenUpstreamRequest] :data
2837
+ # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers
2838
+ def repos_upstream_maven_create_with_http_info(owner, identifier, opts = {})
2839
+ if @api_client.config.debugging
2840
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_create ...'
2841
+ end
2842
+ # verify the required parameter 'owner' is set
2843
+ if @api_client.config.client_side_validation && owner.nil?
2844
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_create"
2845
+ end
2846
+ # verify the required parameter 'identifier' is set
2847
+ if @api_client.config.client_side_validation && identifier.nil?
2848
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_create"
2849
+ end
2850
+ # resource path
2851
+ local_var_path = '/repos/{owner}/{identifier}/upstream/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
2852
+
2853
+ # query parameters
2854
+ query_params = {}
2855
+
2856
+ # header parameters
2857
+ header_params = {}
2858
+ # HTTP header 'Accept' (if needed)
2859
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2860
+ # HTTP header 'Content-Type'
2861
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2862
+
2863
+ # form parameters
2864
+ form_params = {}
2865
+
2866
+ # http body (model)
2867
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2868
+ auth_names = ['apikey']
2869
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2870
+ :header_params => header_params,
2871
+ :query_params => query_params,
2872
+ :form_params => form_params,
2873
+ :body => post_body,
2874
+ :auth_names => auth_names,
2875
+ :return_type => 'MavenUpstream')
2876
+ if @api_client.config.debugging
2877
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2878
+ end
2879
+ return data, status_code, headers
2880
+ end
2881
+ # Delete a Maven upstream config for this repository.
2882
+ # Delete a Maven upstream config for this repository.
2883
+ # @param owner
2884
+ # @param identifier
2885
+ # @param slug_perm
2886
+ # @param [Hash] opts the optional parameters
2887
+ # @return [nil]
2888
+ def repos_upstream_maven_delete(owner, identifier, slug_perm, opts = {})
2889
+ repos_upstream_maven_delete_with_http_info(owner, identifier, slug_perm, opts)
2890
+ nil
2891
+ end
2892
+
2893
+ # Delete a Maven upstream config for this repository.
2894
+ # Delete a Maven upstream config for this repository.
2895
+ # @param owner
2896
+ # @param identifier
2897
+ # @param slug_perm
2898
+ # @param [Hash] opts the optional parameters
2899
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2900
+ def repos_upstream_maven_delete_with_http_info(owner, identifier, slug_perm, opts = {})
2901
+ if @api_client.config.debugging
2902
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_delete ...'
2903
+ end
2904
+ # verify the required parameter 'owner' is set
2905
+ if @api_client.config.client_side_validation && owner.nil?
2906
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_delete"
2907
+ end
2908
+ # verify the required parameter 'identifier' is set
2909
+ if @api_client.config.client_side_validation && identifier.nil?
2910
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_delete"
2911
+ end
2912
+ # verify the required parameter 'slug_perm' is set
2913
+ if @api_client.config.client_side_validation && slug_perm.nil?
2914
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_delete"
2915
+ end
2916
+ # resource path
2917
+ local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
2918
+
2919
+ # query parameters
2920
+ query_params = {}
2921
+
2922
+ # header parameters
2923
+ header_params = {}
2924
+ # HTTP header 'Accept' (if needed)
2925
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2926
+ # HTTP header 'Content-Type'
2927
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2928
+
2929
+ # form parameters
2930
+ form_params = {}
2931
+
2932
+ # http body (model)
2933
+ post_body = nil
2934
+ auth_names = ['apikey']
2935
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2936
+ :header_params => header_params,
2937
+ :query_params => query_params,
2938
+ :form_params => form_params,
2939
+ :body => post_body,
2940
+ :auth_names => auth_names)
2941
+ if @api_client.config.debugging
2942
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2943
+ end
2944
+ return data, status_code, headers
2945
+ end
2946
+ # List Maven upstream configs for this repository.
2947
+ # List Maven upstream configs for this repository.
2948
+ # @param owner
2949
+ # @param identifier
2950
+ # @param [Hash] opts the optional parameters
2951
+ # @option opts [Integer] :page A page number within the paginated result set.
2952
+ # @option opts [Integer] :page_size Number of results to return per page.
2953
+ # @return [Array<MavenUpstream>]
2954
+ def repos_upstream_maven_list(owner, identifier, opts = {})
2955
+ data, _status_code, _headers = repos_upstream_maven_list_with_http_info(owner, identifier, opts)
2956
+ data
2957
+ end
2958
+
2959
+ # List Maven upstream configs for this repository.
2960
+ # List Maven upstream configs for this repository.
2961
+ # @param owner
2962
+ # @param identifier
2963
+ # @param [Hash] opts the optional parameters
2964
+ # @option opts [Integer] :page A page number within the paginated result set.
2965
+ # @option opts [Integer] :page_size Number of results to return per page.
2966
+ # @return [Array<(Array<MavenUpstream>, Fixnum, Hash)>] Array<MavenUpstream> data, response status code and response headers
2967
+ def repos_upstream_maven_list_with_http_info(owner, identifier, opts = {})
2968
+ if @api_client.config.debugging
2969
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_list ...'
2970
+ end
2971
+ # verify the required parameter 'owner' is set
2972
+ if @api_client.config.client_side_validation && owner.nil?
2973
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_list"
2974
+ end
2975
+ # verify the required parameter 'identifier' is set
2976
+ if @api_client.config.client_side_validation && identifier.nil?
2977
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_list"
2978
+ end
2979
+ # resource path
2980
+ local_var_path = '/repos/{owner}/{identifier}/upstream/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
2981
+
2982
+ # query parameters
2983
+ query_params = {}
2984
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2985
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2986
+
2987
+ # header parameters
2988
+ header_params = {}
2989
+ # HTTP header 'Accept' (if needed)
2990
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2991
+ # HTTP header 'Content-Type'
2992
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2993
+
2994
+ # form parameters
2995
+ form_params = {}
2996
+
2997
+ # http body (model)
2998
+ post_body = nil
2999
+ auth_names = ['apikey']
3000
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3001
+ :header_params => header_params,
3002
+ :query_params => query_params,
3003
+ :form_params => form_params,
3004
+ :body => post_body,
3005
+ :auth_names => auth_names,
3006
+ :return_type => 'Array<MavenUpstream>')
3007
+ if @api_client.config.debugging
3008
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3009
+ end
3010
+ return data, status_code, headers
3011
+ end
3012
+ # Partially update a Maven upstream config for this repository.
3013
+ # Partially update a Maven upstream config for this repository.
3014
+ # @param owner
3015
+ # @param identifier
3016
+ # @param slug_perm
3017
+ # @param [Hash] opts the optional parameters
3018
+ # @option opts [MavenUpstreamRequestPatch] :data
3019
+ # @return [MavenUpstream]
3020
+ def repos_upstream_maven_partial_update(owner, identifier, slug_perm, opts = {})
3021
+ data, _status_code, _headers = repos_upstream_maven_partial_update_with_http_info(owner, identifier, slug_perm, opts)
3022
+ data
3023
+ end
3024
+
3025
+ # Partially update a Maven upstream config for this repository.
3026
+ # Partially update a Maven upstream config for this repository.
3027
+ # @param owner
3028
+ # @param identifier
3029
+ # @param slug_perm
3030
+ # @param [Hash] opts the optional parameters
3031
+ # @option opts [MavenUpstreamRequestPatch] :data
3032
+ # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers
3033
+ def repos_upstream_maven_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
3034
+ if @api_client.config.debugging
3035
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_partial_update ...'
3036
+ end
3037
+ # verify the required parameter 'owner' is set
3038
+ if @api_client.config.client_side_validation && owner.nil?
3039
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_partial_update"
3040
+ end
3041
+ # verify the required parameter 'identifier' is set
3042
+ if @api_client.config.client_side_validation && identifier.nil?
3043
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_partial_update"
3044
+ end
3045
+ # verify the required parameter 'slug_perm' is set
3046
+ if @api_client.config.client_side_validation && slug_perm.nil?
3047
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_partial_update"
3048
+ end
3049
+ # resource path
3050
+ local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3051
+
3052
+ # query parameters
3053
+ query_params = {}
3054
+
3055
+ # header parameters
3056
+ header_params = {}
3057
+ # HTTP header 'Accept' (if needed)
3058
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3059
+ # HTTP header 'Content-Type'
3060
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3061
+
3062
+ # form parameters
3063
+ form_params = {}
3064
+
3065
+ # http body (model)
3066
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3067
+ auth_names = ['apikey']
3068
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3069
+ :header_params => header_params,
3070
+ :query_params => query_params,
3071
+ :form_params => form_params,
3072
+ :body => post_body,
3073
+ :auth_names => auth_names,
3074
+ :return_type => 'MavenUpstream')
3075
+ if @api_client.config.debugging
3076
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3077
+ end
3078
+ return data, status_code, headers
3079
+ end
3080
+ # Retrieve a Maven upstream config for this repository.
3081
+ # Retrieve a Maven upstream config for this repository.
3082
+ # @param owner
3083
+ # @param identifier
3084
+ # @param slug_perm
3085
+ # @param [Hash] opts the optional parameters
3086
+ # @return [MavenUpstream]
3087
+ def repos_upstream_maven_read(owner, identifier, slug_perm, opts = {})
3088
+ data, _status_code, _headers = repos_upstream_maven_read_with_http_info(owner, identifier, slug_perm, opts)
3089
+ data
3090
+ end
3091
+
3092
+ # Retrieve a Maven upstream config for this repository.
3093
+ # Retrieve a Maven upstream config for this repository.
3094
+ # @param owner
3095
+ # @param identifier
3096
+ # @param slug_perm
3097
+ # @param [Hash] opts the optional parameters
3098
+ # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers
3099
+ def repos_upstream_maven_read_with_http_info(owner, identifier, slug_perm, opts = {})
3100
+ if @api_client.config.debugging
3101
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_read ...'
3102
+ end
3103
+ # verify the required parameter 'owner' is set
3104
+ if @api_client.config.client_side_validation && owner.nil?
3105
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_read"
3106
+ end
3107
+ # verify the required parameter 'identifier' is set
3108
+ if @api_client.config.client_side_validation && identifier.nil?
3109
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_read"
3110
+ end
3111
+ # verify the required parameter 'slug_perm' is set
3112
+ if @api_client.config.client_side_validation && slug_perm.nil?
3113
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_read"
3114
+ end
3115
+ # resource path
3116
+ local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3117
+
3118
+ # query parameters
3119
+ query_params = {}
3120
+
3121
+ # header parameters
3122
+ header_params = {}
3123
+ # HTTP header 'Accept' (if needed)
3124
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3125
+ # HTTP header 'Content-Type'
3126
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3127
+
3128
+ # form parameters
3129
+ form_params = {}
3130
+
3131
+ # http body (model)
3132
+ post_body = nil
3133
+ auth_names = ['apikey']
3134
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3135
+ :header_params => header_params,
3136
+ :query_params => query_params,
3137
+ :form_params => form_params,
3138
+ :body => post_body,
3139
+ :auth_names => auth_names,
3140
+ :return_type => 'MavenUpstream')
3141
+ if @api_client.config.debugging
3142
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3143
+ end
3144
+ return data, status_code, headers
3145
+ end
3146
+ # Update a Maven upstream config for this repository.
3147
+ # Update a Maven upstream config for this repository.
3148
+ # @param owner
3149
+ # @param identifier
3150
+ # @param slug_perm
3151
+ # @param [Hash] opts the optional parameters
3152
+ # @option opts [MavenUpstreamRequest] :data
3153
+ # @return [MavenUpstream]
3154
+ def repos_upstream_maven_update(owner, identifier, slug_perm, opts = {})
3155
+ data, _status_code, _headers = repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opts)
3156
+ data
3157
+ end
3158
+
3159
+ # Update a Maven upstream config for this repository.
3160
+ # Update a Maven upstream config for this repository.
3161
+ # @param owner
3162
+ # @param identifier
3163
+ # @param slug_perm
3164
+ # @param [Hash] opts the optional parameters
3165
+ # @option opts [MavenUpstreamRequest] :data
3166
+ # @return [Array<(MavenUpstream, Fixnum, Hash)>] MavenUpstream data, response status code and response headers
3167
+ def repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opts = {})
3168
+ if @api_client.config.debugging
3169
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_update ...'
3170
+ end
3171
+ # verify the required parameter 'owner' is set
3172
+ if @api_client.config.client_side_validation && owner.nil?
3173
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_update"
3174
+ end
3175
+ # verify the required parameter 'identifier' is set
3176
+ if @api_client.config.client_side_validation && identifier.nil?
3177
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_update"
3178
+ end
3179
+ # verify the required parameter 'slug_perm' is set
3180
+ if @api_client.config.client_side_validation && slug_perm.nil?
3181
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_update"
3182
+ end
3183
+ # resource path
3184
+ local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3185
+
3186
+ # query parameters
3187
+ query_params = {}
3188
+
3189
+ # header parameters
3190
+ header_params = {}
3191
+ # HTTP header 'Accept' (if needed)
3192
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3193
+ # HTTP header 'Content-Type'
3194
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3195
+
3196
+ # form parameters
3197
+ form_params = {}
3198
+
3199
+ # http body (model)
3200
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3201
+ auth_names = ['apikey']
3202
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3203
+ :header_params => header_params,
3204
+ :query_params => query_params,
3205
+ :form_params => form_params,
3206
+ :body => post_body,
3207
+ :auth_names => auth_names,
3208
+ :return_type => 'MavenUpstream')
3209
+ if @api_client.config.debugging
3210
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3211
+ end
3212
+ return data, status_code, headers
3213
+ end
3214
+ # Create a npm upstream config for this repository.
3215
+ # Create a npm upstream config for this repository.
3216
+ # @param owner
3217
+ # @param identifier
3218
+ # @param [Hash] opts the optional parameters
3219
+ # @option opts [NpmUpstreamRequest] :data
3220
+ # @return [NpmUpstream]
3221
+ def repos_upstream_npm_create(owner, identifier, opts = {})
3222
+ data, _status_code, _headers = repos_upstream_npm_create_with_http_info(owner, identifier, opts)
3223
+ data
3224
+ end
3225
+
3226
+ # Create a npm upstream config for this repository.
3227
+ # Create a npm upstream config for this repository.
3228
+ # @param owner
3229
+ # @param identifier
3230
+ # @param [Hash] opts the optional parameters
3231
+ # @option opts [NpmUpstreamRequest] :data
3232
+ # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers
3233
+ def repos_upstream_npm_create_with_http_info(owner, identifier, opts = {})
3234
+ if @api_client.config.debugging
3235
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_create ...'
3236
+ end
3237
+ # verify the required parameter 'owner' is set
3238
+ if @api_client.config.client_side_validation && owner.nil?
3239
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_create"
3240
+ end
3241
+ # verify the required parameter 'identifier' is set
3242
+ if @api_client.config.client_side_validation && identifier.nil?
3243
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_create"
3244
+ end
3245
+ # resource path
3246
+ local_var_path = '/repos/{owner}/{identifier}/upstream/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
3247
+
3248
+ # query parameters
3249
+ query_params = {}
3250
+
3251
+ # header parameters
3252
+ header_params = {}
3253
+ # HTTP header 'Accept' (if needed)
3254
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3255
+ # HTTP header 'Content-Type'
3256
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3257
+
3258
+ # form parameters
3259
+ form_params = {}
3260
+
3261
+ # http body (model)
3262
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3263
+ auth_names = ['apikey']
3264
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3265
+ :header_params => header_params,
3266
+ :query_params => query_params,
3267
+ :form_params => form_params,
3268
+ :body => post_body,
3269
+ :auth_names => auth_names,
3270
+ :return_type => 'NpmUpstream')
3271
+ if @api_client.config.debugging
3272
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3273
+ end
3274
+ return data, status_code, headers
3275
+ end
3276
+ # Delete a npm upstream config for this repository.
3277
+ # Delete a npm upstream config for this repository.
3278
+ # @param owner
3279
+ # @param identifier
3280
+ # @param slug_perm
3281
+ # @param [Hash] opts the optional parameters
3282
+ # @return [nil]
3283
+ def repos_upstream_npm_delete(owner, identifier, slug_perm, opts = {})
3284
+ repos_upstream_npm_delete_with_http_info(owner, identifier, slug_perm, opts)
3285
+ nil
3286
+ end
3287
+
3288
+ # Delete a npm upstream config for this repository.
3289
+ # Delete a npm upstream config for this repository.
3290
+ # @param owner
3291
+ # @param identifier
3292
+ # @param slug_perm
3293
+ # @param [Hash] opts the optional parameters
3294
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3295
+ def repos_upstream_npm_delete_with_http_info(owner, identifier, slug_perm, opts = {})
3296
+ if @api_client.config.debugging
3297
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_delete ...'
3298
+ end
3299
+ # verify the required parameter 'owner' is set
3300
+ if @api_client.config.client_side_validation && owner.nil?
3301
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_delete"
3302
+ end
3303
+ # verify the required parameter 'identifier' is set
3304
+ if @api_client.config.client_side_validation && identifier.nil?
3305
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_delete"
3306
+ end
3307
+ # verify the required parameter 'slug_perm' is set
3308
+ if @api_client.config.client_side_validation && slug_perm.nil?
3309
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_delete"
3310
+ end
3311
+ # resource path
3312
+ local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3313
+
3314
+ # query parameters
3315
+ query_params = {}
3316
+
3317
+ # header parameters
3318
+ header_params = {}
3319
+ # HTTP header 'Accept' (if needed)
3320
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3321
+ # HTTP header 'Content-Type'
3322
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3323
+
3324
+ # form parameters
3325
+ form_params = {}
3326
+
3327
+ # http body (model)
3328
+ post_body = nil
3329
+ auth_names = ['apikey']
3330
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
3331
+ :header_params => header_params,
3332
+ :query_params => query_params,
3333
+ :form_params => form_params,
3334
+ :body => post_body,
3335
+ :auth_names => auth_names)
3336
+ if @api_client.config.debugging
3337
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3338
+ end
3339
+ return data, status_code, headers
3340
+ end
3341
+ # List npm upstream configs for this repository.
3342
+ # List npm upstream configs for this repository.
3343
+ # @param owner
3344
+ # @param identifier
3345
+ # @param [Hash] opts the optional parameters
3346
+ # @option opts [Integer] :page A page number within the paginated result set.
3347
+ # @option opts [Integer] :page_size Number of results to return per page.
3348
+ # @return [Array<NpmUpstream>]
3349
+ def repos_upstream_npm_list(owner, identifier, opts = {})
3350
+ data, _status_code, _headers = repos_upstream_npm_list_with_http_info(owner, identifier, opts)
3351
+ data
3352
+ end
3353
+
3354
+ # List npm upstream configs for this repository.
3355
+ # List npm upstream configs for this repository.
3356
+ # @param owner
3357
+ # @param identifier
3358
+ # @param [Hash] opts the optional parameters
3359
+ # @option opts [Integer] :page A page number within the paginated result set.
3360
+ # @option opts [Integer] :page_size Number of results to return per page.
3361
+ # @return [Array<(Array<NpmUpstream>, Fixnum, Hash)>] Array<NpmUpstream> data, response status code and response headers
3362
+ def repos_upstream_npm_list_with_http_info(owner, identifier, opts = {})
3363
+ if @api_client.config.debugging
3364
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_list ...'
3365
+ end
3366
+ # verify the required parameter 'owner' is set
3367
+ if @api_client.config.client_side_validation && owner.nil?
3368
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_list"
3369
+ end
3370
+ # verify the required parameter 'identifier' is set
3371
+ if @api_client.config.client_side_validation && identifier.nil?
3372
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_list"
3373
+ end
3374
+ # resource path
3375
+ local_var_path = '/repos/{owner}/{identifier}/upstream/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
3376
+
3377
+ # query parameters
3378
+ query_params = {}
3379
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3380
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3381
+
3382
+ # header parameters
3383
+ header_params = {}
3384
+ # HTTP header 'Accept' (if needed)
3385
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3386
+ # HTTP header 'Content-Type'
3387
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3388
+
3389
+ # form parameters
3390
+ form_params = {}
3391
+
3392
+ # http body (model)
3393
+ post_body = nil
3394
+ auth_names = ['apikey']
3395
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3396
+ :header_params => header_params,
3397
+ :query_params => query_params,
3398
+ :form_params => form_params,
3399
+ :body => post_body,
3400
+ :auth_names => auth_names,
3401
+ :return_type => 'Array<NpmUpstream>')
3402
+ if @api_client.config.debugging
3403
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3404
+ end
3405
+ return data, status_code, headers
3406
+ end
3407
+ # Partially update a npm upstream config for this repository.
3408
+ # Partially update a npm upstream config for this repository.
3409
+ # @param owner
3410
+ # @param identifier
3411
+ # @param slug_perm
3412
+ # @param [Hash] opts the optional parameters
3413
+ # @option opts [NpmUpstreamRequestPatch] :data
3414
+ # @return [NpmUpstream]
3415
+ def repos_upstream_npm_partial_update(owner, identifier, slug_perm, opts = {})
3416
+ data, _status_code, _headers = repos_upstream_npm_partial_update_with_http_info(owner, identifier, slug_perm, opts)
3417
+ data
3418
+ end
3419
+
3420
+ # Partially update a npm upstream config for this repository.
3421
+ # Partially update a npm upstream config for this repository.
3422
+ # @param owner
3423
+ # @param identifier
3424
+ # @param slug_perm
3425
+ # @param [Hash] opts the optional parameters
3426
+ # @option opts [NpmUpstreamRequestPatch] :data
3427
+ # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers
3428
+ def repos_upstream_npm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
3429
+ if @api_client.config.debugging
3430
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_partial_update ...'
3431
+ end
3432
+ # verify the required parameter 'owner' is set
3433
+ if @api_client.config.client_side_validation && owner.nil?
3434
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_partial_update"
3435
+ end
3436
+ # verify the required parameter 'identifier' is set
3437
+ if @api_client.config.client_side_validation && identifier.nil?
3438
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_partial_update"
3439
+ end
3440
+ # verify the required parameter 'slug_perm' is set
3441
+ if @api_client.config.client_side_validation && slug_perm.nil?
3442
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_partial_update"
3443
+ end
3444
+ # resource path
3445
+ local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3446
+
3447
+ # query parameters
3448
+ query_params = {}
3449
+
3450
+ # header parameters
3451
+ header_params = {}
3452
+ # HTTP header 'Accept' (if needed)
3453
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3454
+ # HTTP header 'Content-Type'
3455
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3456
+
3457
+ # form parameters
3458
+ form_params = {}
3459
+
3460
+ # http body (model)
3461
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3462
+ auth_names = ['apikey']
3463
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3464
+ :header_params => header_params,
3465
+ :query_params => query_params,
3466
+ :form_params => form_params,
3467
+ :body => post_body,
3468
+ :auth_names => auth_names,
3469
+ :return_type => 'NpmUpstream')
3470
+ if @api_client.config.debugging
3471
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3472
+ end
3473
+ return data, status_code, headers
3474
+ end
3475
+ # Retrieve a npm upstream config for this repository.
3476
+ # Retrieve a npm upstream config for this repository.
3477
+ # @param owner
3478
+ # @param identifier
3479
+ # @param slug_perm
3480
+ # @param [Hash] opts the optional parameters
3481
+ # @return [NpmUpstream]
3482
+ def repos_upstream_npm_read(owner, identifier, slug_perm, opts = {})
3483
+ data, _status_code, _headers = repos_upstream_npm_read_with_http_info(owner, identifier, slug_perm, opts)
3484
+ data
3485
+ end
3486
+
3487
+ # Retrieve a npm upstream config for this repository.
3488
+ # Retrieve a npm upstream config for this repository.
3489
+ # @param owner
3490
+ # @param identifier
3491
+ # @param slug_perm
3492
+ # @param [Hash] opts the optional parameters
3493
+ # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers
3494
+ def repos_upstream_npm_read_with_http_info(owner, identifier, slug_perm, opts = {})
3495
+ if @api_client.config.debugging
3496
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_read ...'
3497
+ end
3498
+ # verify the required parameter 'owner' is set
3499
+ if @api_client.config.client_side_validation && owner.nil?
3500
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_read"
3501
+ end
3502
+ # verify the required parameter 'identifier' is set
3503
+ if @api_client.config.client_side_validation && identifier.nil?
3504
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_read"
3505
+ end
3506
+ # verify the required parameter 'slug_perm' is set
3507
+ if @api_client.config.client_side_validation && slug_perm.nil?
3508
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_read"
3509
+ end
3510
+ # resource path
3511
+ local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3512
+
3513
+ # query parameters
3514
+ query_params = {}
3515
+
3516
+ # header parameters
3517
+ header_params = {}
3518
+ # HTTP header 'Accept' (if needed)
3519
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3520
+ # HTTP header 'Content-Type'
3521
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3522
+
3523
+ # form parameters
3524
+ form_params = {}
3525
+
3526
+ # http body (model)
3527
+ post_body = nil
3528
+ auth_names = ['apikey']
3529
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3530
+ :header_params => header_params,
3531
+ :query_params => query_params,
3532
+ :form_params => form_params,
3533
+ :body => post_body,
3534
+ :auth_names => auth_names,
3535
+ :return_type => 'NpmUpstream')
3536
+ if @api_client.config.debugging
3537
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3538
+ end
3539
+ return data, status_code, headers
3540
+ end
3541
+ # Update a npm upstream config for this repository.
3542
+ # Update a npm upstream config for this repository.
3543
+ # @param owner
3544
+ # @param identifier
3545
+ # @param slug_perm
3546
+ # @param [Hash] opts the optional parameters
3547
+ # @option opts [NpmUpstreamRequest] :data
3548
+ # @return [NpmUpstream]
3549
+ def repos_upstream_npm_update(owner, identifier, slug_perm, opts = {})
3550
+ data, _status_code, _headers = repos_upstream_npm_update_with_http_info(owner, identifier, slug_perm, opts)
3551
+ data
3552
+ end
3553
+
3554
+ # Update a npm upstream config for this repository.
3555
+ # Update a npm upstream config for this repository.
3556
+ # @param owner
3557
+ # @param identifier
3558
+ # @param slug_perm
3559
+ # @param [Hash] opts the optional parameters
3560
+ # @option opts [NpmUpstreamRequest] :data
3561
+ # @return [Array<(NpmUpstream, Fixnum, Hash)>] NpmUpstream data, response status code and response headers
3562
+ def repos_upstream_npm_update_with_http_info(owner, identifier, slug_perm, opts = {})
3563
+ if @api_client.config.debugging
3564
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_update ...'
3565
+ end
3566
+ # verify the required parameter 'owner' is set
3567
+ if @api_client.config.client_side_validation && owner.nil?
3568
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_update"
3569
+ end
3570
+ # verify the required parameter 'identifier' is set
3571
+ if @api_client.config.client_side_validation && identifier.nil?
3572
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_update"
3573
+ end
3574
+ # verify the required parameter 'slug_perm' is set
3575
+ if @api_client.config.client_side_validation && slug_perm.nil?
3576
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_update"
3577
+ end
3578
+ # resource path
3579
+ local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3580
+
3581
+ # query parameters
3582
+ query_params = {}
3583
+
3584
+ # header parameters
3585
+ header_params = {}
3586
+ # HTTP header 'Accept' (if needed)
3587
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3588
+ # HTTP header 'Content-Type'
3589
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3590
+
3591
+ # form parameters
3592
+ form_params = {}
3593
+
3594
+ # http body (model)
3595
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3596
+ auth_names = ['apikey']
3597
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3598
+ :header_params => header_params,
3599
+ :query_params => query_params,
3600
+ :form_params => form_params,
3601
+ :body => post_body,
3602
+ :auth_names => auth_names,
3603
+ :return_type => 'NpmUpstream')
3604
+ if @api_client.config.debugging
3605
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3606
+ end
3607
+ return data, status_code, headers
3608
+ end
3609
+ # Create a NuGet upstream config for this repository.
3610
+ # Create a NuGet upstream config for this repository.
3611
+ # @param owner
3612
+ # @param identifier
3613
+ # @param [Hash] opts the optional parameters
3614
+ # @option opts [NugetUpstreamRequest] :data
3615
+ # @return [NugetUpstream]
3616
+ def repos_upstream_nuget_create(owner, identifier, opts = {})
3617
+ data, _status_code, _headers = repos_upstream_nuget_create_with_http_info(owner, identifier, opts)
3618
+ data
3619
+ end
3620
+
3621
+ # Create a NuGet upstream config for this repository.
3622
+ # Create a NuGet upstream config for this repository.
3623
+ # @param owner
3624
+ # @param identifier
3625
+ # @param [Hash] opts the optional parameters
3626
+ # @option opts [NugetUpstreamRequest] :data
3627
+ # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers
3628
+ def repos_upstream_nuget_create_with_http_info(owner, identifier, opts = {})
3629
+ if @api_client.config.debugging
3630
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_create ...'
3631
+ end
3632
+ # verify the required parameter 'owner' is set
3633
+ if @api_client.config.client_side_validation && owner.nil?
3634
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_create"
3635
+ end
3636
+ # verify the required parameter 'identifier' is set
3637
+ if @api_client.config.client_side_validation && identifier.nil?
3638
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_create"
3639
+ end
3640
+ # resource path
3641
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
3642
+
3643
+ # query parameters
3644
+ query_params = {}
3645
+
3646
+ # header parameters
3647
+ header_params = {}
3648
+ # HTTP header 'Accept' (if needed)
3649
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3650
+ # HTTP header 'Content-Type'
3651
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3652
+
3653
+ # form parameters
3654
+ form_params = {}
3655
+
3656
+ # http body (model)
3657
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3658
+ auth_names = ['apikey']
3659
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3660
+ :header_params => header_params,
3661
+ :query_params => query_params,
3662
+ :form_params => form_params,
3663
+ :body => post_body,
3664
+ :auth_names => auth_names,
3665
+ :return_type => 'NugetUpstream')
3666
+ if @api_client.config.debugging
3667
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3668
+ end
3669
+ return data, status_code, headers
3670
+ end
3671
+ # Delete a NuGet upstream config for this repository.
3672
+ # Delete a NuGet upstream config for this repository.
3673
+ # @param owner
3674
+ # @param identifier
3675
+ # @param slug_perm
3676
+ # @param [Hash] opts the optional parameters
3677
+ # @return [nil]
3678
+ def repos_upstream_nuget_delete(owner, identifier, slug_perm, opts = {})
3679
+ repos_upstream_nuget_delete_with_http_info(owner, identifier, slug_perm, opts)
3680
+ nil
3681
+ end
3682
+
3683
+ # Delete a NuGet upstream config for this repository.
3684
+ # Delete a NuGet upstream config for this repository.
3685
+ # @param owner
3686
+ # @param identifier
3687
+ # @param slug_perm
3688
+ # @param [Hash] opts the optional parameters
3689
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3690
+ def repos_upstream_nuget_delete_with_http_info(owner, identifier, slug_perm, opts = {})
3691
+ if @api_client.config.debugging
3692
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_delete ...'
3693
+ end
3694
+ # verify the required parameter 'owner' is set
3695
+ if @api_client.config.client_side_validation && owner.nil?
3696
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_delete"
3697
+ end
3698
+ # verify the required parameter 'identifier' is set
3699
+ if @api_client.config.client_side_validation && identifier.nil?
3700
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_delete"
3701
+ end
3702
+ # verify the required parameter 'slug_perm' is set
3703
+ if @api_client.config.client_side_validation && slug_perm.nil?
3704
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_delete"
3705
+ end
3706
+ # resource path
3707
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3708
+
3709
+ # query parameters
3710
+ query_params = {}
3711
+
3712
+ # header parameters
3713
+ header_params = {}
3714
+ # HTTP header 'Accept' (if needed)
3715
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3716
+ # HTTP header 'Content-Type'
3717
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3718
+
3719
+ # form parameters
3720
+ form_params = {}
3721
+
3722
+ # http body (model)
3723
+ post_body = nil
3724
+ auth_names = ['apikey']
3725
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
3726
+ :header_params => header_params,
3727
+ :query_params => query_params,
3728
+ :form_params => form_params,
3729
+ :body => post_body,
3730
+ :auth_names => auth_names)
3731
+ if @api_client.config.debugging
3732
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3733
+ end
3734
+ return data, status_code, headers
3735
+ end
3736
+ # List NuGet upstream configs for this repository.
3737
+ # List NuGet upstream configs for this repository.
3738
+ # @param owner
3739
+ # @param identifier
3740
+ # @param [Hash] opts the optional parameters
3741
+ # @option opts [Integer] :page A page number within the paginated result set.
3742
+ # @option opts [Integer] :page_size Number of results to return per page.
3743
+ # @return [Array<NugetUpstream>]
3744
+ def repos_upstream_nuget_list(owner, identifier, opts = {})
3745
+ data, _status_code, _headers = repos_upstream_nuget_list_with_http_info(owner, identifier, opts)
3746
+ data
3747
+ end
3748
+
3749
+ # List NuGet upstream configs for this repository.
3750
+ # List NuGet upstream configs for this repository.
3751
+ # @param owner
3752
+ # @param identifier
3753
+ # @param [Hash] opts the optional parameters
3754
+ # @option opts [Integer] :page A page number within the paginated result set.
3755
+ # @option opts [Integer] :page_size Number of results to return per page.
3756
+ # @return [Array<(Array<NugetUpstream>, Fixnum, Hash)>] Array<NugetUpstream> data, response status code and response headers
3757
+ def repos_upstream_nuget_list_with_http_info(owner, identifier, opts = {})
3758
+ if @api_client.config.debugging
3759
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_list ...'
3760
+ end
3761
+ # verify the required parameter 'owner' is set
3762
+ if @api_client.config.client_side_validation && owner.nil?
3763
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_list"
3764
+ end
3765
+ # verify the required parameter 'identifier' is set
3766
+ if @api_client.config.client_side_validation && identifier.nil?
3767
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_list"
3768
+ end
3769
+ # resource path
3770
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
3771
+
3772
+ # query parameters
3773
+ query_params = {}
3774
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3775
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3776
+
3777
+ # header parameters
3778
+ header_params = {}
3779
+ # HTTP header 'Accept' (if needed)
3780
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3781
+ # HTTP header 'Content-Type'
3782
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3783
+
3784
+ # form parameters
3785
+ form_params = {}
3786
+
3787
+ # http body (model)
3788
+ post_body = nil
3789
+ auth_names = ['apikey']
3790
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3791
+ :header_params => header_params,
3792
+ :query_params => query_params,
3793
+ :form_params => form_params,
3794
+ :body => post_body,
3795
+ :auth_names => auth_names,
3796
+ :return_type => 'Array<NugetUpstream>')
3797
+ if @api_client.config.debugging
3798
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3799
+ end
3800
+ return data, status_code, headers
3801
+ end
3802
+ # Partially update a NuGet upstream config for this repository.
3803
+ # Partially update a NuGet upstream config for this repository.
3804
+ # @param owner
3805
+ # @param identifier
3806
+ # @param slug_perm
3807
+ # @param [Hash] opts the optional parameters
3808
+ # @option opts [NugetUpstreamRequestPatch] :data
3809
+ # @return [NugetUpstream]
3810
+ def repos_upstream_nuget_partial_update(owner, identifier, slug_perm, opts = {})
3811
+ data, _status_code, _headers = repos_upstream_nuget_partial_update_with_http_info(owner, identifier, slug_perm, opts)
3812
+ data
3813
+ end
3814
+
3815
+ # Partially update a NuGet upstream config for this repository.
3816
+ # Partially update a NuGet upstream config for this repository.
3817
+ # @param owner
3818
+ # @param identifier
3819
+ # @param slug_perm
3820
+ # @param [Hash] opts the optional parameters
3821
+ # @option opts [NugetUpstreamRequestPatch] :data
3822
+ # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers
3823
+ def repos_upstream_nuget_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
3824
+ if @api_client.config.debugging
3825
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_partial_update ...'
3826
+ end
3827
+ # verify the required parameter 'owner' is set
3828
+ if @api_client.config.client_side_validation && owner.nil?
3829
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_partial_update"
3830
+ end
3831
+ # verify the required parameter 'identifier' is set
3832
+ if @api_client.config.client_side_validation && identifier.nil?
3833
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_partial_update"
3834
+ end
3835
+ # verify the required parameter 'slug_perm' is set
3836
+ if @api_client.config.client_side_validation && slug_perm.nil?
3837
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_partial_update"
3838
+ end
3839
+ # resource path
3840
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3841
+
3842
+ # query parameters
3843
+ query_params = {}
3844
+
3845
+ # header parameters
3846
+ header_params = {}
3847
+ # HTTP header 'Accept' (if needed)
3848
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3849
+ # HTTP header 'Content-Type'
3850
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3851
+
3852
+ # form parameters
3853
+ form_params = {}
3854
+
3855
+ # http body (model)
3856
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3857
+ auth_names = ['apikey']
3858
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3859
+ :header_params => header_params,
3860
+ :query_params => query_params,
3861
+ :form_params => form_params,
3862
+ :body => post_body,
3863
+ :auth_names => auth_names,
3864
+ :return_type => 'NugetUpstream')
3865
+ if @api_client.config.debugging
3866
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3867
+ end
3868
+ return data, status_code, headers
3869
+ end
3870
+ # Retrieve a NuGet upstream config for this repository.
3871
+ # Retrieve a NuGet upstream config for this repository.
3872
+ # @param owner
3873
+ # @param identifier
3874
+ # @param slug_perm
3875
+ # @param [Hash] opts the optional parameters
3876
+ # @return [NugetUpstream]
3877
+ def repos_upstream_nuget_read(owner, identifier, slug_perm, opts = {})
3878
+ data, _status_code, _headers = repos_upstream_nuget_read_with_http_info(owner, identifier, slug_perm, opts)
3879
+ data
3880
+ end
3881
+
3882
+ # Retrieve a NuGet upstream config for this repository.
3883
+ # Retrieve a NuGet upstream config for this repository.
3884
+ # @param owner
3885
+ # @param identifier
3886
+ # @param slug_perm
3887
+ # @param [Hash] opts the optional parameters
3888
+ # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers
3889
+ def repos_upstream_nuget_read_with_http_info(owner, identifier, slug_perm, opts = {})
3890
+ if @api_client.config.debugging
3891
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_read ...'
3892
+ end
3893
+ # verify the required parameter 'owner' is set
3894
+ if @api_client.config.client_side_validation && owner.nil?
3895
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_read"
3896
+ end
3897
+ # verify the required parameter 'identifier' is set
3898
+ if @api_client.config.client_side_validation && identifier.nil?
3899
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_read"
3900
+ end
3901
+ # verify the required parameter 'slug_perm' is set
3902
+ if @api_client.config.client_side_validation && slug_perm.nil?
3903
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_read"
3904
+ end
3905
+ # resource path
3906
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3907
+
3908
+ # query parameters
3909
+ query_params = {}
3910
+
3911
+ # header parameters
3912
+ header_params = {}
3913
+ # HTTP header 'Accept' (if needed)
3914
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3915
+ # HTTP header 'Content-Type'
3916
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3917
+
3918
+ # form parameters
3919
+ form_params = {}
3920
+
3921
+ # http body (model)
3922
+ post_body = nil
3923
+ auth_names = ['apikey']
3924
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3925
+ :header_params => header_params,
3926
+ :query_params => query_params,
3927
+ :form_params => form_params,
3928
+ :body => post_body,
3929
+ :auth_names => auth_names,
3930
+ :return_type => 'NugetUpstream')
3931
+ if @api_client.config.debugging
3932
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3933
+ end
3934
+ return data, status_code, headers
3935
+ end
3936
+ # Update a NuGet upstream config for this repository.
3937
+ # Update a NuGet upstream config for this repository.
3938
+ # @param owner
3939
+ # @param identifier
3940
+ # @param slug_perm
3941
+ # @param [Hash] opts the optional parameters
3942
+ # @option opts [NugetUpstreamRequest] :data
3943
+ # @return [NugetUpstream]
3944
+ def repos_upstream_nuget_update(owner, identifier, slug_perm, opts = {})
3945
+ data, _status_code, _headers = repos_upstream_nuget_update_with_http_info(owner, identifier, slug_perm, opts)
3946
+ data
3947
+ end
3948
+
3949
+ # Update a NuGet upstream config for this repository.
3950
+ # Update a NuGet upstream config for this repository.
3951
+ # @param owner
3952
+ # @param identifier
3953
+ # @param slug_perm
3954
+ # @param [Hash] opts the optional parameters
3955
+ # @option opts [NugetUpstreamRequest] :data
3956
+ # @return [Array<(NugetUpstream, Fixnum, Hash)>] NugetUpstream data, response status code and response headers
3957
+ def repos_upstream_nuget_update_with_http_info(owner, identifier, slug_perm, opts = {})
3958
+ if @api_client.config.debugging
3959
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_update ...'
3960
+ end
3961
+ # verify the required parameter 'owner' is set
3962
+ if @api_client.config.client_side_validation && owner.nil?
3963
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_update"
3964
+ end
3965
+ # verify the required parameter 'identifier' is set
3966
+ if @api_client.config.client_side_validation && identifier.nil?
3967
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_update"
3968
+ end
3969
+ # verify the required parameter 'slug_perm' is set
3970
+ if @api_client.config.client_side_validation && slug_perm.nil?
3971
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_update"
3972
+ end
3973
+ # resource path
3974
+ local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
3975
+
3976
+ # query parameters
3977
+ query_params = {}
3978
+
3979
+ # header parameters
3980
+ header_params = {}
3981
+ # HTTP header 'Accept' (if needed)
3982
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3983
+ # HTTP header 'Content-Type'
3984
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3985
+
3986
+ # form parameters
3987
+ form_params = {}
3988
+
3989
+ # http body (model)
3990
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3991
+ auth_names = ['apikey']
3992
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3993
+ :header_params => header_params,
3994
+ :query_params => query_params,
3995
+ :form_params => form_params,
3996
+ :body => post_body,
3997
+ :auth_names => auth_names,
3998
+ :return_type => 'NugetUpstream')
3999
+ if @api_client.config.debugging
4000
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4001
+ end
4002
+ return data, status_code, headers
4003
+ end
4004
+ # Create a Python upstream config for this repository.
4005
+ # Create a Python upstream config for this repository.
4006
+ # @param owner
4007
+ # @param identifier
4008
+ # @param [Hash] opts the optional parameters
4009
+ # @option opts [PythonUpstreamRequest] :data
4010
+ # @return [PythonUpstream]
4011
+ def repos_upstream_python_create(owner, identifier, opts = {})
4012
+ data, _status_code, _headers = repos_upstream_python_create_with_http_info(owner, identifier, opts)
4013
+ data
4014
+ end
4015
+
4016
+ # Create a Python upstream config for this repository.
4017
+ # Create a Python upstream config for this repository.
4018
+ # @param owner
4019
+ # @param identifier
4020
+ # @param [Hash] opts the optional parameters
4021
+ # @option opts [PythonUpstreamRequest] :data
4022
+ # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers
4023
+ def repos_upstream_python_create_with_http_info(owner, identifier, opts = {})
4024
+ if @api_client.config.debugging
4025
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_create ...'
4026
+ end
4027
+ # verify the required parameter 'owner' is set
4028
+ if @api_client.config.client_side_validation && owner.nil?
4029
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_create"
4030
+ end
4031
+ # verify the required parameter 'identifier' is set
4032
+ if @api_client.config.client_side_validation && identifier.nil?
4033
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_create"
4034
+ end
4035
+ # resource path
4036
+ local_var_path = '/repos/{owner}/{identifier}/upstream/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4037
+
4038
+ # query parameters
4039
+ query_params = {}
4040
+
4041
+ # header parameters
4042
+ header_params = {}
4043
+ # HTTP header 'Accept' (if needed)
4044
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4045
+ # HTTP header 'Content-Type'
4046
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4047
+
4048
+ # form parameters
4049
+ form_params = {}
4050
+
4051
+ # http body (model)
4052
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4053
+ auth_names = ['apikey']
4054
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4055
+ :header_params => header_params,
4056
+ :query_params => query_params,
4057
+ :form_params => form_params,
4058
+ :body => post_body,
4059
+ :auth_names => auth_names,
4060
+ :return_type => 'PythonUpstream')
4061
+ if @api_client.config.debugging
4062
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4063
+ end
4064
+ return data, status_code, headers
4065
+ end
4066
+ # Delete a Python upstream config for this repository.
4067
+ # Delete a Python upstream config for this repository.
4068
+ # @param owner
4069
+ # @param identifier
4070
+ # @param slug_perm
4071
+ # @param [Hash] opts the optional parameters
4072
+ # @return [nil]
4073
+ def repos_upstream_python_delete(owner, identifier, slug_perm, opts = {})
4074
+ repos_upstream_python_delete_with_http_info(owner, identifier, slug_perm, opts)
4075
+ nil
4076
+ end
4077
+
4078
+ # Delete a Python upstream config for this repository.
4079
+ # Delete a Python upstream config for this repository.
4080
+ # @param owner
4081
+ # @param identifier
4082
+ # @param slug_perm
4083
+ # @param [Hash] opts the optional parameters
4084
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4085
+ def repos_upstream_python_delete_with_http_info(owner, identifier, slug_perm, opts = {})
4086
+ if @api_client.config.debugging
4087
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_delete ...'
4088
+ end
4089
+ # verify the required parameter 'owner' is set
4090
+ if @api_client.config.client_side_validation && owner.nil?
4091
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_delete"
4092
+ end
4093
+ # verify the required parameter 'identifier' is set
4094
+ if @api_client.config.client_side_validation && identifier.nil?
4095
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_delete"
4096
+ end
4097
+ # verify the required parameter 'slug_perm' is set
4098
+ if @api_client.config.client_side_validation && slug_perm.nil?
4099
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_delete"
4100
+ end
4101
+ # resource path
4102
+ local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4103
+
4104
+ # query parameters
4105
+ query_params = {}
4106
+
4107
+ # header parameters
4108
+ header_params = {}
4109
+ # HTTP header 'Accept' (if needed)
4110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4111
+ # HTTP header 'Content-Type'
4112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4113
+
4114
+ # form parameters
4115
+ form_params = {}
4116
+
4117
+ # http body (model)
4118
+ post_body = nil
4119
+ auth_names = ['apikey']
4120
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4121
+ :header_params => header_params,
4122
+ :query_params => query_params,
4123
+ :form_params => form_params,
4124
+ :body => post_body,
4125
+ :auth_names => auth_names)
4126
+ if @api_client.config.debugging
4127
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4128
+ end
4129
+ return data, status_code, headers
4130
+ end
4131
+ # List Python upstream configs for this repository.
4132
+ # List Python upstream configs for this repository.
4133
+ # @param owner
4134
+ # @param identifier
4135
+ # @param [Hash] opts the optional parameters
4136
+ # @option opts [Integer] :page A page number within the paginated result set.
4137
+ # @option opts [Integer] :page_size Number of results to return per page.
4138
+ # @return [Array<PythonUpstream>]
4139
+ def repos_upstream_python_list(owner, identifier, opts = {})
4140
+ data, _status_code, _headers = repos_upstream_python_list_with_http_info(owner, identifier, opts)
4141
+ data
4142
+ end
4143
+
4144
+ # List Python upstream configs for this repository.
4145
+ # List Python upstream configs for this repository.
4146
+ # @param owner
4147
+ # @param identifier
4148
+ # @param [Hash] opts the optional parameters
4149
+ # @option opts [Integer] :page A page number within the paginated result set.
4150
+ # @option opts [Integer] :page_size Number of results to return per page.
4151
+ # @return [Array<(Array<PythonUpstream>, Fixnum, Hash)>] Array<PythonUpstream> data, response status code and response headers
4152
+ def repos_upstream_python_list_with_http_info(owner, identifier, opts = {})
4153
+ if @api_client.config.debugging
4154
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_list ...'
4155
+ end
4156
+ # verify the required parameter 'owner' is set
4157
+ if @api_client.config.client_side_validation && owner.nil?
4158
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_list"
4159
+ end
4160
+ # verify the required parameter 'identifier' is set
4161
+ if @api_client.config.client_side_validation && identifier.nil?
4162
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_list"
4163
+ end
4164
+ # resource path
4165
+ local_var_path = '/repos/{owner}/{identifier}/upstream/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4166
+
4167
+ # query parameters
4168
+ query_params = {}
4169
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
4170
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
4171
+
4172
+ # header parameters
4173
+ header_params = {}
4174
+ # HTTP header 'Accept' (if needed)
4175
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4176
+ # HTTP header 'Content-Type'
4177
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4178
+
4179
+ # form parameters
4180
+ form_params = {}
4181
+
4182
+ # http body (model)
4183
+ post_body = nil
4184
+ auth_names = ['apikey']
4185
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4186
+ :header_params => header_params,
4187
+ :query_params => query_params,
4188
+ :form_params => form_params,
4189
+ :body => post_body,
4190
+ :auth_names => auth_names,
4191
+ :return_type => 'Array<PythonUpstream>')
4192
+ if @api_client.config.debugging
4193
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4194
+ end
4195
+ return data, status_code, headers
4196
+ end
4197
+ # Partially update a Python upstream config for this repository.
4198
+ # Partially update a Python upstream config for this repository.
4199
+ # @param owner
4200
+ # @param identifier
4201
+ # @param slug_perm
4202
+ # @param [Hash] opts the optional parameters
4203
+ # @option opts [PythonUpstreamRequestPatch] :data
4204
+ # @return [PythonUpstream]
4205
+ def repos_upstream_python_partial_update(owner, identifier, slug_perm, opts = {})
4206
+ data, _status_code, _headers = repos_upstream_python_partial_update_with_http_info(owner, identifier, slug_perm, opts)
4207
+ data
4208
+ end
4209
+
4210
+ # Partially update a Python upstream config for this repository.
4211
+ # Partially update a Python upstream config for this repository.
4212
+ # @param owner
4213
+ # @param identifier
4214
+ # @param slug_perm
4215
+ # @param [Hash] opts the optional parameters
4216
+ # @option opts [PythonUpstreamRequestPatch] :data
4217
+ # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers
4218
+ def repos_upstream_python_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
4219
+ if @api_client.config.debugging
4220
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_partial_update ...'
4221
+ end
4222
+ # verify the required parameter 'owner' is set
4223
+ if @api_client.config.client_side_validation && owner.nil?
4224
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_partial_update"
4225
+ end
4226
+ # verify the required parameter 'identifier' is set
4227
+ if @api_client.config.client_side_validation && identifier.nil?
4228
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_partial_update"
4229
+ end
4230
+ # verify the required parameter 'slug_perm' is set
4231
+ if @api_client.config.client_side_validation && slug_perm.nil?
4232
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_partial_update"
4233
+ end
4234
+ # resource path
4235
+ local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4236
+
4237
+ # query parameters
4238
+ query_params = {}
4239
+
4240
+ # header parameters
4241
+ header_params = {}
4242
+ # HTTP header 'Accept' (if needed)
4243
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4244
+ # HTTP header 'Content-Type'
4245
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4246
+
4247
+ # form parameters
4248
+ form_params = {}
4249
+
4250
+ # http body (model)
4251
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4252
+ auth_names = ['apikey']
4253
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
4254
+ :header_params => header_params,
4255
+ :query_params => query_params,
4256
+ :form_params => form_params,
4257
+ :body => post_body,
4258
+ :auth_names => auth_names,
4259
+ :return_type => 'PythonUpstream')
4260
+ if @api_client.config.debugging
4261
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4262
+ end
4263
+ return data, status_code, headers
4264
+ end
4265
+ # Retrieve a Python upstream config for this repository.
4266
+ # Retrieve a Python upstream config for this repository.
4267
+ # @param owner
4268
+ # @param identifier
4269
+ # @param slug_perm
4270
+ # @param [Hash] opts the optional parameters
4271
+ # @return [PythonUpstream]
4272
+ def repos_upstream_python_read(owner, identifier, slug_perm, opts = {})
4273
+ data, _status_code, _headers = repos_upstream_python_read_with_http_info(owner, identifier, slug_perm, opts)
4274
+ data
4275
+ end
4276
+
4277
+ # Retrieve a Python upstream config for this repository.
4278
+ # Retrieve a Python upstream config for this repository.
4279
+ # @param owner
4280
+ # @param identifier
4281
+ # @param slug_perm
4282
+ # @param [Hash] opts the optional parameters
4283
+ # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers
4284
+ def repos_upstream_python_read_with_http_info(owner, identifier, slug_perm, opts = {})
4285
+ if @api_client.config.debugging
4286
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_read ...'
4287
+ end
4288
+ # verify the required parameter 'owner' is set
4289
+ if @api_client.config.client_side_validation && owner.nil?
4290
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_read"
4291
+ end
4292
+ # verify the required parameter 'identifier' is set
4293
+ if @api_client.config.client_side_validation && identifier.nil?
4294
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_read"
4295
+ end
4296
+ # verify the required parameter 'slug_perm' is set
4297
+ if @api_client.config.client_side_validation && slug_perm.nil?
4298
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_read"
4299
+ end
4300
+ # resource path
4301
+ local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4302
+
4303
+ # query parameters
4304
+ query_params = {}
4305
+
4306
+ # header parameters
4307
+ header_params = {}
4308
+ # HTTP header 'Accept' (if needed)
4309
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4310
+ # HTTP header 'Content-Type'
4311
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4312
+
4313
+ # form parameters
4314
+ form_params = {}
4315
+
4316
+ # http body (model)
4317
+ post_body = nil
4318
+ auth_names = ['apikey']
4319
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4320
+ :header_params => header_params,
4321
+ :query_params => query_params,
4322
+ :form_params => form_params,
4323
+ :body => post_body,
4324
+ :auth_names => auth_names,
4325
+ :return_type => 'PythonUpstream')
4326
+ if @api_client.config.debugging
4327
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4328
+ end
4329
+ return data, status_code, headers
4330
+ end
4331
+ # Update a Python upstream config for this repository.
4332
+ # Update a Python upstream config for this repository.
4333
+ # @param owner
4334
+ # @param identifier
4335
+ # @param slug_perm
4336
+ # @param [Hash] opts the optional parameters
4337
+ # @option opts [PythonUpstreamRequest] :data
4338
+ # @return [PythonUpstream]
4339
+ def repos_upstream_python_update(owner, identifier, slug_perm, opts = {})
4340
+ data, _status_code, _headers = repos_upstream_python_update_with_http_info(owner, identifier, slug_perm, opts)
4341
+ data
4342
+ end
4343
+
4344
+ # Update a Python upstream config for this repository.
4345
+ # Update a Python upstream config for this repository.
4346
+ # @param owner
4347
+ # @param identifier
4348
+ # @param slug_perm
4349
+ # @param [Hash] opts the optional parameters
4350
+ # @option opts [PythonUpstreamRequest] :data
4351
+ # @return [Array<(PythonUpstream, Fixnum, Hash)>] PythonUpstream data, response status code and response headers
4352
+ def repos_upstream_python_update_with_http_info(owner, identifier, slug_perm, opts = {})
4353
+ if @api_client.config.debugging
4354
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_update ...'
4355
+ end
4356
+ # verify the required parameter 'owner' is set
4357
+ if @api_client.config.client_side_validation && owner.nil?
4358
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_update"
4359
+ end
4360
+ # verify the required parameter 'identifier' is set
4361
+ if @api_client.config.client_side_validation && identifier.nil?
4362
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_update"
4363
+ end
4364
+ # verify the required parameter 'slug_perm' is set
4365
+ if @api_client.config.client_side_validation && slug_perm.nil?
4366
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_update"
4367
+ end
4368
+ # resource path
4369
+ local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4370
+
4371
+ # query parameters
4372
+ query_params = {}
4373
+
4374
+ # header parameters
4375
+ header_params = {}
4376
+ # HTTP header 'Accept' (if needed)
4377
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4378
+ # HTTP header 'Content-Type'
4379
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4380
+
4381
+ # form parameters
4382
+ form_params = {}
4383
+
4384
+ # http body (model)
4385
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4386
+ auth_names = ['apikey']
4387
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4388
+ :header_params => header_params,
4389
+ :query_params => query_params,
4390
+ :form_params => form_params,
4391
+ :body => post_body,
4392
+ :auth_names => auth_names,
4393
+ :return_type => 'PythonUpstream')
4394
+ if @api_client.config.debugging
4395
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4396
+ end
4397
+ return data, status_code, headers
4398
+ end
4399
+ # Create a RedHat upstream config for this repository.
4400
+ # Create a RedHat upstream config for this repository.
4401
+ # @param owner
4402
+ # @param identifier
4403
+ # @param [Hash] opts the optional parameters
4404
+ # @option opts [RpmUpstreamRequest] :data
4405
+ # @return [RpmUpstream]
4406
+ def repos_upstream_rpm_create(owner, identifier, opts = {})
4407
+ data, _status_code, _headers = repos_upstream_rpm_create_with_http_info(owner, identifier, opts)
4408
+ data
4409
+ end
4410
+
4411
+ # Create a RedHat upstream config for this repository.
4412
+ # Create a RedHat upstream config for this repository.
4413
+ # @param owner
4414
+ # @param identifier
4415
+ # @param [Hash] opts the optional parameters
4416
+ # @option opts [RpmUpstreamRequest] :data
4417
+ # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers
4418
+ def repos_upstream_rpm_create_with_http_info(owner, identifier, opts = {})
4419
+ if @api_client.config.debugging
4420
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_create ...'
4421
+ end
4422
+ # verify the required parameter 'owner' is set
4423
+ if @api_client.config.client_side_validation && owner.nil?
4424
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_create"
4425
+ end
4426
+ # verify the required parameter 'identifier' is set
4427
+ if @api_client.config.client_side_validation && identifier.nil?
4428
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_create"
4429
+ end
4430
+ # resource path
4431
+ local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4432
+
4433
+ # query parameters
4434
+ query_params = {}
4435
+
4436
+ # header parameters
4437
+ header_params = {}
4438
+ # HTTP header 'Accept' (if needed)
4439
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4440
+ # HTTP header 'Content-Type'
4441
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4442
+
4443
+ # form parameters
4444
+ form_params = {}
4445
+
4446
+ # http body (model)
4447
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4448
+ auth_names = ['apikey']
4449
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4450
+ :header_params => header_params,
4451
+ :query_params => query_params,
4452
+ :form_params => form_params,
4453
+ :body => post_body,
4454
+ :auth_names => auth_names,
4455
+ :return_type => 'RpmUpstream')
4456
+ if @api_client.config.debugging
4457
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4458
+ end
4459
+ return data, status_code, headers
4460
+ end
4461
+ # Delete a RedHat upstream config for this repository.
4462
+ # Delete a RedHat upstream config for this repository.
4463
+ # @param owner
4464
+ # @param identifier
4465
+ # @param slug_perm
4466
+ # @param [Hash] opts the optional parameters
4467
+ # @return [nil]
4468
+ def repos_upstream_rpm_delete(owner, identifier, slug_perm, opts = {})
4469
+ repos_upstream_rpm_delete_with_http_info(owner, identifier, slug_perm, opts)
4470
+ nil
4471
+ end
4472
+
4473
+ # Delete a RedHat upstream config for this repository.
4474
+ # Delete a RedHat upstream config for this repository.
4475
+ # @param owner
4476
+ # @param identifier
4477
+ # @param slug_perm
4478
+ # @param [Hash] opts the optional parameters
4479
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4480
+ def repos_upstream_rpm_delete_with_http_info(owner, identifier, slug_perm, opts = {})
4481
+ if @api_client.config.debugging
4482
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_delete ...'
4483
+ end
4484
+ # verify the required parameter 'owner' is set
4485
+ if @api_client.config.client_side_validation && owner.nil?
4486
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_delete"
4487
+ end
4488
+ # verify the required parameter 'identifier' is set
4489
+ if @api_client.config.client_side_validation && identifier.nil?
4490
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_delete"
4491
+ end
4492
+ # verify the required parameter 'slug_perm' is set
4493
+ if @api_client.config.client_side_validation && slug_perm.nil?
4494
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_delete"
4495
+ end
4496
+ # resource path
4497
+ local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4498
+
4499
+ # query parameters
4500
+ query_params = {}
4501
+
4502
+ # header parameters
4503
+ header_params = {}
4504
+ # HTTP header 'Accept' (if needed)
4505
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4506
+ # HTTP header 'Content-Type'
4507
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4508
+
4509
+ # form parameters
4510
+ form_params = {}
4511
+
4512
+ # http body (model)
4513
+ post_body = nil
4514
+ auth_names = ['apikey']
4515
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4516
+ :header_params => header_params,
4517
+ :query_params => query_params,
4518
+ :form_params => form_params,
4519
+ :body => post_body,
4520
+ :auth_names => auth_names)
4521
+ if @api_client.config.debugging
4522
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4523
+ end
4524
+ return data, status_code, headers
4525
+ end
4526
+ # List RedHat upstream configs for this repository.
4527
+ # List RedHat upstream configs for this repository.
4528
+ # @param owner
4529
+ # @param identifier
4530
+ # @param [Hash] opts the optional parameters
4531
+ # @option opts [Integer] :page A page number within the paginated result set.
4532
+ # @option opts [Integer] :page_size Number of results to return per page.
4533
+ # @return [Array<RpmUpstream>]
4534
+ def repos_upstream_rpm_list(owner, identifier, opts = {})
4535
+ data, _status_code, _headers = repos_upstream_rpm_list_with_http_info(owner, identifier, opts)
4536
+ data
4537
+ end
4538
+
4539
+ # List RedHat upstream configs for this repository.
4540
+ # List RedHat upstream configs for this repository.
4541
+ # @param owner
4542
+ # @param identifier
4543
+ # @param [Hash] opts the optional parameters
4544
+ # @option opts [Integer] :page A page number within the paginated result set.
4545
+ # @option opts [Integer] :page_size Number of results to return per page.
4546
+ # @return [Array<(Array<RpmUpstream>, Fixnum, Hash)>] Array<RpmUpstream> data, response status code and response headers
4547
+ def repos_upstream_rpm_list_with_http_info(owner, identifier, opts = {})
4548
+ if @api_client.config.debugging
4549
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_list ...'
4550
+ end
4551
+ # verify the required parameter 'owner' is set
4552
+ if @api_client.config.client_side_validation && owner.nil?
4553
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_list"
4554
+ end
4555
+ # verify the required parameter 'identifier' is set
4556
+ if @api_client.config.client_side_validation && identifier.nil?
4557
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_list"
4558
+ end
4559
+ # resource path
4560
+ local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4561
+
4562
+ # query parameters
4563
+ query_params = {}
4564
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
4565
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
4566
+
4567
+ # header parameters
4568
+ header_params = {}
4569
+ # HTTP header 'Accept' (if needed)
4570
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4571
+ # HTTP header 'Content-Type'
4572
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4573
+
4574
+ # form parameters
4575
+ form_params = {}
4576
+
4577
+ # http body (model)
4578
+ post_body = nil
4579
+ auth_names = ['apikey']
4580
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4581
+ :header_params => header_params,
4582
+ :query_params => query_params,
4583
+ :form_params => form_params,
4584
+ :body => post_body,
4585
+ :auth_names => auth_names,
4586
+ :return_type => 'Array<RpmUpstream>')
4587
+ if @api_client.config.debugging
4588
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4589
+ end
4590
+ return data, status_code, headers
4591
+ end
4592
+ # Partially update a RedHat upstream config for this repository.
4593
+ # Partially update a RedHat upstream config for this repository.
4594
+ # @param owner
4595
+ # @param identifier
4596
+ # @param slug_perm
4597
+ # @param [Hash] opts the optional parameters
4598
+ # @option opts [RpmUpstreamRequestPatch] :data
4599
+ # @return [RpmUpstream]
4600
+ def repos_upstream_rpm_partial_update(owner, identifier, slug_perm, opts = {})
4601
+ data, _status_code, _headers = repos_upstream_rpm_partial_update_with_http_info(owner, identifier, slug_perm, opts)
4602
+ data
4603
+ end
4604
+
4605
+ # Partially update a RedHat upstream config for this repository.
4606
+ # Partially update a RedHat upstream config for this repository.
4607
+ # @param owner
4608
+ # @param identifier
4609
+ # @param slug_perm
4610
+ # @param [Hash] opts the optional parameters
4611
+ # @option opts [RpmUpstreamRequestPatch] :data
4612
+ # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers
4613
+ def repos_upstream_rpm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
4614
+ if @api_client.config.debugging
4615
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_partial_update ...'
4616
+ end
4617
+ # verify the required parameter 'owner' is set
4618
+ if @api_client.config.client_side_validation && owner.nil?
4619
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_partial_update"
4620
+ end
4621
+ # verify the required parameter 'identifier' is set
4622
+ if @api_client.config.client_side_validation && identifier.nil?
4623
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_partial_update"
4624
+ end
4625
+ # verify the required parameter 'slug_perm' is set
4626
+ if @api_client.config.client_side_validation && slug_perm.nil?
4627
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_partial_update"
4628
+ end
4629
+ # resource path
4630
+ local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4631
+
4632
+ # query parameters
4633
+ query_params = {}
4634
+
4635
+ # header parameters
4636
+ header_params = {}
4637
+ # HTTP header 'Accept' (if needed)
4638
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4639
+ # HTTP header 'Content-Type'
4640
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4641
+
4642
+ # form parameters
4643
+ form_params = {}
4644
+
4645
+ # http body (model)
4646
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4647
+ auth_names = ['apikey']
4648
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
4649
+ :header_params => header_params,
4650
+ :query_params => query_params,
4651
+ :form_params => form_params,
4652
+ :body => post_body,
4653
+ :auth_names => auth_names,
4654
+ :return_type => 'RpmUpstream')
4655
+ if @api_client.config.debugging
4656
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4657
+ end
4658
+ return data, status_code, headers
4659
+ end
4660
+ # Retrieve a RedHat upstream config for this repository.
4661
+ # Retrieve a RedHat upstream config for this repository.
4662
+ # @param owner
4663
+ # @param identifier
4664
+ # @param slug_perm
4665
+ # @param [Hash] opts the optional parameters
4666
+ # @return [RpmUpstream]
4667
+ def repos_upstream_rpm_read(owner, identifier, slug_perm, opts = {})
4668
+ data, _status_code, _headers = repos_upstream_rpm_read_with_http_info(owner, identifier, slug_perm, opts)
4669
+ data
4670
+ end
4671
+
4672
+ # Retrieve a RedHat upstream config for this repository.
4673
+ # Retrieve a RedHat upstream config for this repository.
4674
+ # @param owner
4675
+ # @param identifier
4676
+ # @param slug_perm
4677
+ # @param [Hash] opts the optional parameters
4678
+ # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers
4679
+ def repos_upstream_rpm_read_with_http_info(owner, identifier, slug_perm, opts = {})
4680
+ if @api_client.config.debugging
4681
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_read ...'
4682
+ end
4683
+ # verify the required parameter 'owner' is set
4684
+ if @api_client.config.client_side_validation && owner.nil?
4685
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_read"
4686
+ end
4687
+ # verify the required parameter 'identifier' is set
4688
+ if @api_client.config.client_side_validation && identifier.nil?
4689
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_read"
4690
+ end
4691
+ # verify the required parameter 'slug_perm' is set
4692
+ if @api_client.config.client_side_validation && slug_perm.nil?
4693
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_read"
4694
+ end
4695
+ # resource path
4696
+ local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4697
+
4698
+ # query parameters
4699
+ query_params = {}
4700
+
4701
+ # header parameters
4702
+ header_params = {}
4703
+ # HTTP header 'Accept' (if needed)
4704
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4705
+ # HTTP header 'Content-Type'
4706
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4707
+
4708
+ # form parameters
4709
+ form_params = {}
4710
+
4711
+ # http body (model)
4712
+ post_body = nil
4713
+ auth_names = ['apikey']
4714
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4715
+ :header_params => header_params,
4716
+ :query_params => query_params,
4717
+ :form_params => form_params,
4718
+ :body => post_body,
4719
+ :auth_names => auth_names,
4720
+ :return_type => 'RpmUpstream')
4721
+ if @api_client.config.debugging
4722
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4723
+ end
4724
+ return data, status_code, headers
4725
+ end
4726
+ # Update a RedHat upstream config for this repository.
4727
+ # Update a RedHat upstream config for this repository.
4728
+ # @param owner
4729
+ # @param identifier
4730
+ # @param slug_perm
4731
+ # @param [Hash] opts the optional parameters
4732
+ # @option opts [RpmUpstreamRequest] :data
4733
+ # @return [RpmUpstream]
4734
+ def repos_upstream_rpm_update(owner, identifier, slug_perm, opts = {})
4735
+ data, _status_code, _headers = repos_upstream_rpm_update_with_http_info(owner, identifier, slug_perm, opts)
4736
+ data
4737
+ end
4738
+
4739
+ # Update a RedHat upstream config for this repository.
4740
+ # Update a RedHat upstream config for this repository.
4741
+ # @param owner
4742
+ # @param identifier
4743
+ # @param slug_perm
4744
+ # @param [Hash] opts the optional parameters
4745
+ # @option opts [RpmUpstreamRequest] :data
4746
+ # @return [Array<(RpmUpstream, Fixnum, Hash)>] RpmUpstream data, response status code and response headers
4747
+ def repos_upstream_rpm_update_with_http_info(owner, identifier, slug_perm, opts = {})
4748
+ if @api_client.config.debugging
4749
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_update ...'
4750
+ end
4751
+ # verify the required parameter 'owner' is set
4752
+ if @api_client.config.client_side_validation && owner.nil?
4753
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_update"
4754
+ end
4755
+ # verify the required parameter 'identifier' is set
4756
+ if @api_client.config.client_side_validation && identifier.nil?
4757
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_update"
4758
+ end
4759
+ # verify the required parameter 'slug_perm' is set
4760
+ if @api_client.config.client_side_validation && slug_perm.nil?
4761
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_update"
4762
+ end
4763
+ # resource path
4764
+ local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4765
+
4766
+ # query parameters
4767
+ query_params = {}
4768
+
4769
+ # header parameters
4770
+ header_params = {}
4771
+ # HTTP header 'Accept' (if needed)
4772
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4773
+ # HTTP header 'Content-Type'
4774
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4775
+
4776
+ # form parameters
4777
+ form_params = {}
4778
+
4779
+ # http body (model)
4780
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4781
+ auth_names = ['apikey']
4782
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4783
+ :header_params => header_params,
4784
+ :query_params => query_params,
4785
+ :form_params => form_params,
4786
+ :body => post_body,
4787
+ :auth_names => auth_names,
4788
+ :return_type => 'RpmUpstream')
4789
+ if @api_client.config.debugging
4790
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4791
+ end
4792
+ return data, status_code, headers
4793
+ end
4794
+ # Create a Ruby upstream config for this repository.
4795
+ # Create a Ruby upstream config for this repository.
4796
+ # @param owner
4797
+ # @param identifier
4798
+ # @param [Hash] opts the optional parameters
4799
+ # @option opts [RubyUpstreamRequest] :data
4800
+ # @return [RubyUpstream]
4801
+ def repos_upstream_ruby_create(owner, identifier, opts = {})
4802
+ data, _status_code, _headers = repos_upstream_ruby_create_with_http_info(owner, identifier, opts)
4803
+ data
4804
+ end
4805
+
4806
+ # Create a Ruby upstream config for this repository.
4807
+ # Create a Ruby upstream config for this repository.
4808
+ # @param owner
4809
+ # @param identifier
4810
+ # @param [Hash] opts the optional parameters
4811
+ # @option opts [RubyUpstreamRequest] :data
4812
+ # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers
4813
+ def repos_upstream_ruby_create_with_http_info(owner, identifier, opts = {})
4814
+ if @api_client.config.debugging
4815
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_create ...'
4816
+ end
4817
+ # verify the required parameter 'owner' is set
4818
+ if @api_client.config.client_side_validation && owner.nil?
4819
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_create"
4820
+ end
4821
+ # verify the required parameter 'identifier' is set
4822
+ if @api_client.config.client_side_validation && identifier.nil?
4823
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_create"
4824
+ end
4825
+ # resource path
4826
+ local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4827
+
4828
+ # query parameters
4829
+ query_params = {}
4830
+
4831
+ # header parameters
4832
+ header_params = {}
4833
+ # HTTP header 'Accept' (if needed)
4834
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4835
+ # HTTP header 'Content-Type'
4836
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4837
+
4838
+ # form parameters
4839
+ form_params = {}
4840
+
4841
+ # http body (model)
4842
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4843
+ auth_names = ['apikey']
4844
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4845
+ :header_params => header_params,
4846
+ :query_params => query_params,
4847
+ :form_params => form_params,
4848
+ :body => post_body,
4849
+ :auth_names => auth_names,
4850
+ :return_type => 'RubyUpstream')
4851
+ if @api_client.config.debugging
4852
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4853
+ end
4854
+ return data, status_code, headers
4855
+ end
4856
+ # Delete a Ruby upstream config for this repository.
4857
+ # Delete a Ruby upstream config for this repository.
4858
+ # @param owner
4859
+ # @param identifier
4860
+ # @param slug_perm
4861
+ # @param [Hash] opts the optional parameters
4862
+ # @return [nil]
4863
+ def repos_upstream_ruby_delete(owner, identifier, slug_perm, opts = {})
4864
+ repos_upstream_ruby_delete_with_http_info(owner, identifier, slug_perm, opts)
4865
+ nil
4866
+ end
4867
+
4868
+ # Delete a Ruby upstream config for this repository.
4869
+ # Delete a Ruby upstream config for this repository.
4870
+ # @param owner
4871
+ # @param identifier
4872
+ # @param slug_perm
4873
+ # @param [Hash] opts the optional parameters
4874
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4875
+ def repos_upstream_ruby_delete_with_http_info(owner, identifier, slug_perm, opts = {})
4876
+ if @api_client.config.debugging
4877
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_delete ...'
4878
+ end
4879
+ # verify the required parameter 'owner' is set
4880
+ if @api_client.config.client_side_validation && owner.nil?
4881
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_delete"
4882
+ end
4883
+ # verify the required parameter 'identifier' is set
4884
+ if @api_client.config.client_side_validation && identifier.nil?
4885
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_delete"
4886
+ end
4887
+ # verify the required parameter 'slug_perm' is set
4888
+ if @api_client.config.client_side_validation && slug_perm.nil?
4889
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_delete"
4890
+ end
4891
+ # resource path
4892
+ local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4893
+
4894
+ # query parameters
4895
+ query_params = {}
4896
+
4897
+ # header parameters
4898
+ header_params = {}
4899
+ # HTTP header 'Accept' (if needed)
4900
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4901
+ # HTTP header 'Content-Type'
4902
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4903
+
4904
+ # form parameters
4905
+ form_params = {}
4906
+
4907
+ # http body (model)
4908
+ post_body = nil
4909
+ auth_names = ['apikey']
4910
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4911
+ :header_params => header_params,
4912
+ :query_params => query_params,
4913
+ :form_params => form_params,
4914
+ :body => post_body,
4915
+ :auth_names => auth_names)
4916
+ if @api_client.config.debugging
4917
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4918
+ end
4919
+ return data, status_code, headers
4920
+ end
4921
+ # List Ruby upstream configs for this repository.
4922
+ # List Ruby upstream configs for this repository.
4923
+ # @param owner
4924
+ # @param identifier
4925
+ # @param [Hash] opts the optional parameters
4926
+ # @option opts [Integer] :page A page number within the paginated result set.
4927
+ # @option opts [Integer] :page_size Number of results to return per page.
4928
+ # @return [Array<RubyUpstream>]
4929
+ def repos_upstream_ruby_list(owner, identifier, opts = {})
4930
+ data, _status_code, _headers = repos_upstream_ruby_list_with_http_info(owner, identifier, opts)
4931
+ data
4932
+ end
4933
+
4934
+ # List Ruby upstream configs for this repository.
4935
+ # List Ruby upstream configs for this repository.
4936
+ # @param owner
4937
+ # @param identifier
4938
+ # @param [Hash] opts the optional parameters
4939
+ # @option opts [Integer] :page A page number within the paginated result set.
4940
+ # @option opts [Integer] :page_size Number of results to return per page.
4941
+ # @return [Array<(Array<RubyUpstream>, Fixnum, Hash)>] Array<RubyUpstream> data, response status code and response headers
4942
+ def repos_upstream_ruby_list_with_http_info(owner, identifier, opts = {})
4943
+ if @api_client.config.debugging
4944
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_list ...'
4945
+ end
4946
+ # verify the required parameter 'owner' is set
4947
+ if @api_client.config.client_side_validation && owner.nil?
4948
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_list"
4949
+ end
4950
+ # verify the required parameter 'identifier' is set
4951
+ if @api_client.config.client_side_validation && identifier.nil?
4952
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_list"
4953
+ end
4954
+ # resource path
4955
+ local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4956
+
4957
+ # query parameters
4958
+ query_params = {}
4959
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
4960
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
4961
+
4962
+ # header parameters
4963
+ header_params = {}
4964
+ # HTTP header 'Accept' (if needed)
4965
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4966
+ # HTTP header 'Content-Type'
4967
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4968
+
4969
+ # form parameters
4970
+ form_params = {}
4971
+
4972
+ # http body (model)
4973
+ post_body = nil
4974
+ auth_names = ['apikey']
4975
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4976
+ :header_params => header_params,
4977
+ :query_params => query_params,
4978
+ :form_params => form_params,
4979
+ :body => post_body,
4980
+ :auth_names => auth_names,
4981
+ :return_type => 'Array<RubyUpstream>')
4982
+ if @api_client.config.debugging
4983
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4984
+ end
4985
+ return data, status_code, headers
4986
+ end
4987
+ # Partially update a Ruby upstream config for this repository.
4988
+ # Partially update a Ruby upstream config for this repository.
4989
+ # @param owner
4990
+ # @param identifier
4991
+ # @param slug_perm
4992
+ # @param [Hash] opts the optional parameters
4993
+ # @option opts [RubyUpstreamRequestPatch] :data
4994
+ # @return [RubyUpstream]
4995
+ def repos_upstream_ruby_partial_update(owner, identifier, slug_perm, opts = {})
4996
+ data, _status_code, _headers = repos_upstream_ruby_partial_update_with_http_info(owner, identifier, slug_perm, opts)
4997
+ data
4998
+ end
4999
+
5000
+ # Partially update a Ruby upstream config for this repository.
5001
+ # Partially update a Ruby upstream config for this repository.
5002
+ # @param owner
5003
+ # @param identifier
5004
+ # @param slug_perm
5005
+ # @param [Hash] opts the optional parameters
5006
+ # @option opts [RubyUpstreamRequestPatch] :data
5007
+ # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers
5008
+ def repos_upstream_ruby_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
5009
+ if @api_client.config.debugging
5010
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_partial_update ...'
5011
+ end
5012
+ # verify the required parameter 'owner' is set
5013
+ if @api_client.config.client_side_validation && owner.nil?
5014
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_partial_update"
5015
+ end
5016
+ # verify the required parameter 'identifier' is set
5017
+ if @api_client.config.client_side_validation && identifier.nil?
5018
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_partial_update"
5019
+ end
5020
+ # verify the required parameter 'slug_perm' is set
5021
+ if @api_client.config.client_side_validation && slug_perm.nil?
5022
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_partial_update"
5023
+ end
5024
+ # resource path
5025
+ local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
5026
+
5027
+ # query parameters
5028
+ query_params = {}
5029
+
5030
+ # header parameters
5031
+ header_params = {}
5032
+ # HTTP header 'Accept' (if needed)
5033
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5034
+ # HTTP header 'Content-Type'
5035
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5036
+
5037
+ # form parameters
5038
+ form_params = {}
5039
+
5040
+ # http body (model)
5041
+ post_body = @api_client.object_to_http_body(opts[:'data'])
5042
+ auth_names = ['apikey']
5043
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
5044
+ :header_params => header_params,
5045
+ :query_params => query_params,
5046
+ :form_params => form_params,
5047
+ :body => post_body,
5048
+ :auth_names => auth_names,
5049
+ :return_type => 'RubyUpstream')
5050
+ if @api_client.config.debugging
5051
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5052
+ end
5053
+ return data, status_code, headers
5054
+ end
5055
+ # Retrieve a Ruby upstream config for this repository.
5056
+ # Retrieve a Ruby upstream config for this repository.
5057
+ # @param owner
5058
+ # @param identifier
5059
+ # @param slug_perm
5060
+ # @param [Hash] opts the optional parameters
5061
+ # @return [RubyUpstream]
5062
+ def repos_upstream_ruby_read(owner, identifier, slug_perm, opts = {})
5063
+ data, _status_code, _headers = repos_upstream_ruby_read_with_http_info(owner, identifier, slug_perm, opts)
5064
+ data
5065
+ end
5066
+
5067
+ # Retrieve a Ruby upstream config for this repository.
5068
+ # Retrieve a Ruby upstream config for this repository.
5069
+ # @param owner
5070
+ # @param identifier
5071
+ # @param slug_perm
5072
+ # @param [Hash] opts the optional parameters
5073
+ # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers
5074
+ def repos_upstream_ruby_read_with_http_info(owner, identifier, slug_perm, opts = {})
5075
+ if @api_client.config.debugging
5076
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_read ...'
5077
+ end
5078
+ # verify the required parameter 'owner' is set
5079
+ if @api_client.config.client_side_validation && owner.nil?
5080
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_read"
5081
+ end
5082
+ # verify the required parameter 'identifier' is set
5083
+ if @api_client.config.client_side_validation && identifier.nil?
5084
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_read"
5085
+ end
5086
+ # verify the required parameter 'slug_perm' is set
5087
+ if @api_client.config.client_side_validation && slug_perm.nil?
5088
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_read"
5089
+ end
5090
+ # resource path
5091
+ local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
5092
+
5093
+ # query parameters
5094
+ query_params = {}
5095
+
5096
+ # header parameters
5097
+ header_params = {}
5098
+ # HTTP header 'Accept' (if needed)
5099
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5100
+ # HTTP header 'Content-Type'
5101
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5102
+
5103
+ # form parameters
5104
+ form_params = {}
5105
+
5106
+ # http body (model)
5107
+ post_body = nil
5108
+ auth_names = ['apikey']
5109
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
5110
+ :header_params => header_params,
5111
+ :query_params => query_params,
5112
+ :form_params => form_params,
5113
+ :body => post_body,
5114
+ :auth_names => auth_names,
5115
+ :return_type => 'RubyUpstream')
5116
+ if @api_client.config.debugging
5117
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5118
+ end
5119
+ return data, status_code, headers
5120
+ end
5121
+ # Update a Ruby upstream config for this repository.
5122
+ # Update a Ruby upstream config for this repository.
5123
+ # @param owner
5124
+ # @param identifier
5125
+ # @param slug_perm
5126
+ # @param [Hash] opts the optional parameters
5127
+ # @option opts [RubyUpstreamRequest] :data
5128
+ # @return [RubyUpstream]
5129
+ def repos_upstream_ruby_update(owner, identifier, slug_perm, opts = {})
5130
+ data, _status_code, _headers = repos_upstream_ruby_update_with_http_info(owner, identifier, slug_perm, opts)
5131
+ data
5132
+ end
5133
+
5134
+ # Update a Ruby upstream config for this repository.
5135
+ # Update a Ruby upstream config for this repository.
5136
+ # @param owner
5137
+ # @param identifier
5138
+ # @param slug_perm
5139
+ # @param [Hash] opts the optional parameters
5140
+ # @option opts [RubyUpstreamRequest] :data
5141
+ # @return [Array<(RubyUpstream, Fixnum, Hash)>] RubyUpstream data, response status code and response headers
5142
+ def repos_upstream_ruby_update_with_http_info(owner, identifier, slug_perm, opts = {})
5143
+ if @api_client.config.debugging
5144
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_update ...'
5145
+ end
5146
+ # verify the required parameter 'owner' is set
5147
+ if @api_client.config.client_side_validation && owner.nil?
5148
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_update"
5149
+ end
5150
+ # verify the required parameter 'identifier' is set
5151
+ if @api_client.config.client_side_validation && identifier.nil?
5152
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_update"
5153
+ end
5154
+ # verify the required parameter 'slug_perm' is set
5155
+ if @api_client.config.client_side_validation && slug_perm.nil?
5156
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_update"
5157
+ end
5158
+ # resource path
5159
+ local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
5160
+
5161
+ # query parameters
5162
+ query_params = {}
5163
+
5164
+ # header parameters
5165
+ header_params = {}
5166
+ # HTTP header 'Accept' (if needed)
5167
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5168
+ # HTTP header 'Content-Type'
5169
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5170
+
5171
+ # form parameters
5172
+ form_params = {}
5173
+
5174
+ # http body (model)
5175
+ post_body = @api_client.object_to_http_body(opts[:'data'])
5176
+ auth_names = ['apikey']
5177
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
5178
+ :header_params => header_params,
5179
+ :query_params => query_params,
5180
+ :form_params => form_params,
5181
+ :body => post_body,
5182
+ :auth_names => auth_names,
5183
+ :return_type => 'RubyUpstream')
5184
+ if @api_client.config.debugging
5185
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5186
+ end
5187
+ return data, status_code, headers
5188
+ end
1239
5189
  # Get a list of all repositories associated with current user.
1240
5190
  # Get a list of all repositories associated with current user.
1241
5191
  # @param [Hash] opts the optional parameters