cloudsmith-api 2.0.23 → 2.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +17 -4
  4. data/build.json +1 -1
  5. data/docs/FormatSupport.md +1 -0
  6. data/docs/GenericPackageUpload.md +90 -0
  7. data/docs/GenericPackageUploadRequest.md +13 -0
  8. data/docs/GenericUpstream.md +33 -0
  9. data/docs/GenericUpstreamRequest.md +21 -0
  10. data/docs/GenericUpstreamRequestPatch.md +21 -0
  11. data/docs/MavenUpstream.md +1 -0
  12. data/docs/MavenUpstreamRequest.md +1 -0
  13. data/docs/MavenUpstreamRequestPatch.md +1 -0
  14. data/docs/OrganizationTeam.md +1 -1
  15. data/docs/OrganizationTeamRequest.md +1 -1
  16. data/docs/OrganizationTeamRequestPatch.md +1 -1
  17. data/docs/Package.md +1 -0
  18. data/docs/PackageCopy.md +1 -0
  19. data/docs/PackageCopyRequest.md +1 -1
  20. data/docs/PackageMove.md +1 -0
  21. data/docs/PackageMoveRequest.md +1 -1
  22. data/docs/PackageQuarantine.md +1 -0
  23. data/docs/PackageResync.md +1 -0
  24. data/docs/PackageTag.md +1 -0
  25. data/docs/PackagesApi.md +131 -0
  26. data/docs/ReposApi.md +401 -0
  27. data/lib/cloudsmith-api/api/packages_api.rb +123 -0
  28. data/lib/cloudsmith-api/api/repos_api.rb +395 -0
  29. data/lib/cloudsmith-api/models/format_support.rb +16 -1
  30. data/lib/cloudsmith-api/models/generic_package_upload.rb +992 -0
  31. data/lib/cloudsmith-api/models/generic_package_upload_request.rb +245 -0
  32. data/lib/cloudsmith-api/models/generic_upstream.rb +503 -0
  33. data/lib/cloudsmith-api/models/generic_upstream_request.rb +375 -0
  34. data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +365 -0
  35. data/lib/cloudsmith-api/models/maven_upstream.rb +25 -1
  36. data/lib/cloudsmith-api/models/maven_upstream_request.rb +25 -1
  37. data/lib/cloudsmith-api/models/maven_upstream_request_patch.rb +25 -1
  38. data/lib/cloudsmith-api/models/organization_team.rb +1 -0
  39. data/lib/cloudsmith-api/models/organization_team_request.rb +1 -0
  40. data/lib/cloudsmith-api/models/organization_team_request_patch.rb +1 -0
  41. data/lib/cloudsmith-api/models/package.rb +11 -1
  42. data/lib/cloudsmith-api/models/package_copy.rb +11 -1
  43. data/lib/cloudsmith-api/models/package_copy_request.rb +1 -0
  44. data/lib/cloudsmith-api/models/package_move.rb +11 -1
  45. data/lib/cloudsmith-api/models/package_move_request.rb +1 -0
  46. data/lib/cloudsmith-api/models/package_quarantine.rb +11 -1
  47. data/lib/cloudsmith-api/models/package_resync.rb +11 -1
  48. data/lib/cloudsmith-api/models/package_tag.rb +11 -1
  49. data/lib/cloudsmith-api/version.rb +1 -1
  50. data/lib/cloudsmith-api.rb +5 -0
  51. data/spec/api/packages_api_spec.rb +28 -0
  52. data/spec/api/repos_api_spec.rb +87 -0
  53. data/spec/models/format_support_spec.rb +6 -0
  54. data/spec/models/generic_package_upload_request_spec.rb +71 -0
  55. data/spec/models/generic_package_upload_spec.rb +537 -0
  56. data/spec/models/generic_upstream_request_patch_spec.rb +127 -0
  57. data/spec/models/generic_upstream_request_spec.rb +127 -0
  58. data/spec/models/generic_upstream_spec.rb +203 -0
  59. data/spec/models/maven_upstream_request_patch_spec.rb +10 -0
  60. data/spec/models/maven_upstream_request_spec.rb +10 -0
  61. data/spec/models/maven_upstream_spec.rb +10 -0
  62. data/spec/models/package_copy_spec.rb +6 -0
  63. data/spec/models/package_move_spec.rb +6 -0
  64. data/spec/models/package_quarantine_spec.rb +6 -0
  65. data/spec/models/package_resync_spec.rb +6 -0
  66. data/spec/models/package_spec.rb +6 -0
  67. data/spec/models/package_tag_spec.rb +6 -0
  68. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.1/gem_make.out +1 -1
  69. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/gem_make.out +2 -2
  70. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/mkmf.log +4 -4
  71. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/gem_make.out +2 -2
  72. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/mkmf.log +1 -1
  73. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  74. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  75. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.0.1/ext/bigdecimal/Makefile +2 -2
  76. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.3/ext/ffi_c/Makefile +2 -2
  77. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  78. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  79. metadata +25 -5
@@ -4426,6 +4426,401 @@ module CloudsmithApi
4426
4426
  end
4427
4427
  return data, status_code, headers
4428
4428
  end
4429
+ # Create a Generic upstream config for this repository.
4430
+ # Create a Generic upstream config for this repository.
4431
+ # @param owner
4432
+ # @param identifier
4433
+ # @param [Hash] opts the optional parameters
4434
+ # @option opts [GenericUpstreamRequest] :data
4435
+ # @return [GenericUpstream]
4436
+ def repos_upstream_generic_create(owner, identifier, opts = {})
4437
+ data, _status_code, _headers = repos_upstream_generic_create_with_http_info(owner, identifier, opts)
4438
+ data
4439
+ end
4440
+
4441
+ # Create a Generic upstream config for this repository.
4442
+ # Create a Generic upstream config for this repository.
4443
+ # @param owner
4444
+ # @param identifier
4445
+ # @param [Hash] opts the optional parameters
4446
+ # @option opts [GenericUpstreamRequest] :data
4447
+ # @return [Array<(GenericUpstream, Fixnum, Hash)>] GenericUpstream data, response status code and response headers
4448
+ def repos_upstream_generic_create_with_http_info(owner, identifier, opts = {})
4449
+ if @api_client.config.debugging
4450
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_generic_create ...'
4451
+ end
4452
+ # verify the required parameter 'owner' is set
4453
+ if @api_client.config.client_side_validation && owner.nil?
4454
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_generic_create"
4455
+ end
4456
+ # verify the required parameter 'identifier' is set
4457
+ if @api_client.config.client_side_validation && identifier.nil?
4458
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_generic_create"
4459
+ end
4460
+ # resource path
4461
+ local_var_path = '/repos/{owner}/{identifier}/upstream/generic/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4462
+
4463
+ # query parameters
4464
+ query_params = {}
4465
+
4466
+ # header parameters
4467
+ header_params = {}
4468
+ # HTTP header 'Accept' (if needed)
4469
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4470
+ # HTTP header 'Content-Type'
4471
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4472
+
4473
+ # form parameters
4474
+ form_params = {}
4475
+
4476
+ # http body (model)
4477
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4478
+ auth_names = ['apikey', 'basic']
4479
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4480
+ :header_params => header_params,
4481
+ :query_params => query_params,
4482
+ :form_params => form_params,
4483
+ :body => post_body,
4484
+ :auth_names => auth_names,
4485
+ :return_type => 'GenericUpstream')
4486
+ if @api_client.config.debugging
4487
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_generic_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4488
+ end
4489
+ return data, status_code, headers
4490
+ end
4491
+ # Delete a Generic upstream config for this repository.
4492
+ # Delete a Generic upstream config for this repository.
4493
+ # @param owner
4494
+ # @param identifier
4495
+ # @param slug_perm
4496
+ # @param [Hash] opts the optional parameters
4497
+ # @return [nil]
4498
+ def repos_upstream_generic_delete(owner, identifier, slug_perm, opts = {})
4499
+ repos_upstream_generic_delete_with_http_info(owner, identifier, slug_perm, opts)
4500
+ nil
4501
+ end
4502
+
4503
+ # Delete a Generic upstream config for this repository.
4504
+ # Delete a Generic upstream config for this repository.
4505
+ # @param owner
4506
+ # @param identifier
4507
+ # @param slug_perm
4508
+ # @param [Hash] opts the optional parameters
4509
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4510
+ def repos_upstream_generic_delete_with_http_info(owner, identifier, slug_perm, opts = {})
4511
+ if @api_client.config.debugging
4512
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_generic_delete ...'
4513
+ end
4514
+ # verify the required parameter 'owner' is set
4515
+ if @api_client.config.client_side_validation && owner.nil?
4516
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_generic_delete"
4517
+ end
4518
+ # verify the required parameter 'identifier' is set
4519
+ if @api_client.config.client_side_validation && identifier.nil?
4520
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_generic_delete"
4521
+ end
4522
+ # verify the required parameter 'slug_perm' is set
4523
+ if @api_client.config.client_side_validation && slug_perm.nil?
4524
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_generic_delete"
4525
+ end
4526
+ # resource path
4527
+ local_var_path = '/repos/{owner}/{identifier}/upstream/generic/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4528
+
4529
+ # query parameters
4530
+ query_params = {}
4531
+
4532
+ # header parameters
4533
+ header_params = {}
4534
+ # HTTP header 'Accept' (if needed)
4535
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4536
+ # HTTP header 'Content-Type'
4537
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4538
+
4539
+ # form parameters
4540
+ form_params = {}
4541
+
4542
+ # http body (model)
4543
+ post_body = nil
4544
+ auth_names = ['apikey', 'basic']
4545
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4546
+ :header_params => header_params,
4547
+ :query_params => query_params,
4548
+ :form_params => form_params,
4549
+ :body => post_body,
4550
+ :auth_names => auth_names)
4551
+ if @api_client.config.debugging
4552
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_generic_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4553
+ end
4554
+ return data, status_code, headers
4555
+ end
4556
+ # List Generic upstream configs for this repository.
4557
+ # List Generic upstream configs for this repository.
4558
+ # @param owner
4559
+ # @param identifier
4560
+ # @param [Hash] opts the optional parameters
4561
+ # @option opts [Integer] :page A page number within the paginated result set.
4562
+ # @option opts [Integer] :page_size Number of results to return per page.
4563
+ # @return [Array<GenericUpstream>]
4564
+ def repos_upstream_generic_list(owner, identifier, opts = {})
4565
+ data, _status_code, _headers = repos_upstream_generic_list_with_http_info(owner, identifier, opts)
4566
+ data
4567
+ end
4568
+
4569
+ # List Generic upstream configs for this repository.
4570
+ # List Generic upstream configs for this repository.
4571
+ # @param owner
4572
+ # @param identifier
4573
+ # @param [Hash] opts the optional parameters
4574
+ # @option opts [Integer] :page A page number within the paginated result set.
4575
+ # @option opts [Integer] :page_size Number of results to return per page.
4576
+ # @return [Array<(Array<GenericUpstream>, Fixnum, Hash)>] Array<GenericUpstream> data, response status code and response headers
4577
+ def repos_upstream_generic_list_with_http_info(owner, identifier, opts = {})
4578
+ if @api_client.config.debugging
4579
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_generic_list ...'
4580
+ end
4581
+ # verify the required parameter 'owner' is set
4582
+ if @api_client.config.client_side_validation && owner.nil?
4583
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_generic_list"
4584
+ end
4585
+ # verify the required parameter 'identifier' is set
4586
+ if @api_client.config.client_side_validation && identifier.nil?
4587
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_generic_list"
4588
+ end
4589
+ # resource path
4590
+ local_var_path = '/repos/{owner}/{identifier}/upstream/generic/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
4591
+
4592
+ # query parameters
4593
+ query_params = {}
4594
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
4595
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
4596
+
4597
+ # header parameters
4598
+ header_params = {}
4599
+ # HTTP header 'Accept' (if needed)
4600
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4601
+ # HTTP header 'Content-Type'
4602
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4603
+
4604
+ # form parameters
4605
+ form_params = {}
4606
+
4607
+ # http body (model)
4608
+ post_body = nil
4609
+ auth_names = ['apikey', 'basic']
4610
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4611
+ :header_params => header_params,
4612
+ :query_params => query_params,
4613
+ :form_params => form_params,
4614
+ :body => post_body,
4615
+ :auth_names => auth_names,
4616
+ :return_type => 'Array<GenericUpstream>')
4617
+ if @api_client.config.debugging
4618
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_generic_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4619
+ end
4620
+ return data, status_code, headers
4621
+ end
4622
+ # Partially update a Generic upstream config for this repository.
4623
+ # Partially update a Generic upstream config for this repository.
4624
+ # @param owner
4625
+ # @param identifier
4626
+ # @param slug_perm
4627
+ # @param [Hash] opts the optional parameters
4628
+ # @option opts [GenericUpstreamRequestPatch] :data
4629
+ # @return [GenericUpstream]
4630
+ def repos_upstream_generic_partial_update(owner, identifier, slug_perm, opts = {})
4631
+ data, _status_code, _headers = repos_upstream_generic_partial_update_with_http_info(owner, identifier, slug_perm, opts)
4632
+ data
4633
+ end
4634
+
4635
+ # Partially update a Generic upstream config for this repository.
4636
+ # Partially update a Generic upstream config for this repository.
4637
+ # @param owner
4638
+ # @param identifier
4639
+ # @param slug_perm
4640
+ # @param [Hash] opts the optional parameters
4641
+ # @option opts [GenericUpstreamRequestPatch] :data
4642
+ # @return [Array<(GenericUpstream, Fixnum, Hash)>] GenericUpstream data, response status code and response headers
4643
+ def repos_upstream_generic_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
4644
+ if @api_client.config.debugging
4645
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_generic_partial_update ...'
4646
+ end
4647
+ # verify the required parameter 'owner' is set
4648
+ if @api_client.config.client_side_validation && owner.nil?
4649
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_generic_partial_update"
4650
+ end
4651
+ # verify the required parameter 'identifier' is set
4652
+ if @api_client.config.client_side_validation && identifier.nil?
4653
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_generic_partial_update"
4654
+ end
4655
+ # verify the required parameter 'slug_perm' is set
4656
+ if @api_client.config.client_side_validation && slug_perm.nil?
4657
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_generic_partial_update"
4658
+ end
4659
+ # resource path
4660
+ local_var_path = '/repos/{owner}/{identifier}/upstream/generic/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4661
+
4662
+ # query parameters
4663
+ query_params = {}
4664
+
4665
+ # header parameters
4666
+ header_params = {}
4667
+ # HTTP header 'Accept' (if needed)
4668
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4669
+ # HTTP header 'Content-Type'
4670
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4671
+
4672
+ # form parameters
4673
+ form_params = {}
4674
+
4675
+ # http body (model)
4676
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4677
+ auth_names = ['apikey', 'basic']
4678
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
4679
+ :header_params => header_params,
4680
+ :query_params => query_params,
4681
+ :form_params => form_params,
4682
+ :body => post_body,
4683
+ :auth_names => auth_names,
4684
+ :return_type => 'GenericUpstream')
4685
+ if @api_client.config.debugging
4686
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_generic_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4687
+ end
4688
+ return data, status_code, headers
4689
+ end
4690
+ # Retrieve a Generic upstream config for this repository.
4691
+ # Retrieve a Generic upstream config for this repository.
4692
+ # @param owner
4693
+ # @param identifier
4694
+ # @param slug_perm
4695
+ # @param [Hash] opts the optional parameters
4696
+ # @return [GenericUpstream]
4697
+ def repos_upstream_generic_read(owner, identifier, slug_perm, opts = {})
4698
+ data, _status_code, _headers = repos_upstream_generic_read_with_http_info(owner, identifier, slug_perm, opts)
4699
+ data
4700
+ end
4701
+
4702
+ # Retrieve a Generic upstream config for this repository.
4703
+ # Retrieve a Generic upstream config for this repository.
4704
+ # @param owner
4705
+ # @param identifier
4706
+ # @param slug_perm
4707
+ # @param [Hash] opts the optional parameters
4708
+ # @return [Array<(GenericUpstream, Fixnum, Hash)>] GenericUpstream data, response status code and response headers
4709
+ def repos_upstream_generic_read_with_http_info(owner, identifier, slug_perm, opts = {})
4710
+ if @api_client.config.debugging
4711
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_generic_read ...'
4712
+ end
4713
+ # verify the required parameter 'owner' is set
4714
+ if @api_client.config.client_side_validation && owner.nil?
4715
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_generic_read"
4716
+ end
4717
+ # verify the required parameter 'identifier' is set
4718
+ if @api_client.config.client_side_validation && identifier.nil?
4719
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_generic_read"
4720
+ end
4721
+ # verify the required parameter 'slug_perm' is set
4722
+ if @api_client.config.client_side_validation && slug_perm.nil?
4723
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_generic_read"
4724
+ end
4725
+ # resource path
4726
+ local_var_path = '/repos/{owner}/{identifier}/upstream/generic/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4727
+
4728
+ # query parameters
4729
+ query_params = {}
4730
+
4731
+ # header parameters
4732
+ header_params = {}
4733
+ # HTTP header 'Accept' (if needed)
4734
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4735
+ # HTTP header 'Content-Type'
4736
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4737
+
4738
+ # form parameters
4739
+ form_params = {}
4740
+
4741
+ # http body (model)
4742
+ post_body = nil
4743
+ auth_names = ['apikey', 'basic']
4744
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4745
+ :header_params => header_params,
4746
+ :query_params => query_params,
4747
+ :form_params => form_params,
4748
+ :body => post_body,
4749
+ :auth_names => auth_names,
4750
+ :return_type => 'GenericUpstream')
4751
+ if @api_client.config.debugging
4752
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_generic_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4753
+ end
4754
+ return data, status_code, headers
4755
+ end
4756
+ # Update a Generic upstream config for this repository.
4757
+ # Update a Generic upstream config for this repository.
4758
+ # @param owner
4759
+ # @param identifier
4760
+ # @param slug_perm
4761
+ # @param [Hash] opts the optional parameters
4762
+ # @option opts [GenericUpstreamRequest] :data
4763
+ # @return [GenericUpstream]
4764
+ def repos_upstream_generic_update(owner, identifier, slug_perm, opts = {})
4765
+ data, _status_code, _headers = repos_upstream_generic_update_with_http_info(owner, identifier, slug_perm, opts)
4766
+ data
4767
+ end
4768
+
4769
+ # Update a Generic upstream config for this repository.
4770
+ # Update a Generic upstream config for this repository.
4771
+ # @param owner
4772
+ # @param identifier
4773
+ # @param slug_perm
4774
+ # @param [Hash] opts the optional parameters
4775
+ # @option opts [GenericUpstreamRequest] :data
4776
+ # @return [Array<(GenericUpstream, Fixnum, Hash)>] GenericUpstream data, response status code and response headers
4777
+ def repos_upstream_generic_update_with_http_info(owner, identifier, slug_perm, opts = {})
4778
+ if @api_client.config.debugging
4779
+ @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_generic_update ...'
4780
+ end
4781
+ # verify the required parameter 'owner' is set
4782
+ if @api_client.config.client_side_validation && owner.nil?
4783
+ fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_generic_update"
4784
+ end
4785
+ # verify the required parameter 'identifier' is set
4786
+ if @api_client.config.client_side_validation && identifier.nil?
4787
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_generic_update"
4788
+ end
4789
+ # verify the required parameter 'slug_perm' is set
4790
+ if @api_client.config.client_side_validation && slug_perm.nil?
4791
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_generic_update"
4792
+ end
4793
+ # resource path
4794
+ local_var_path = '/repos/{owner}/{identifier}/upstream/generic/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
4795
+
4796
+ # query parameters
4797
+ query_params = {}
4798
+
4799
+ # header parameters
4800
+ header_params = {}
4801
+ # HTTP header 'Accept' (if needed)
4802
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4803
+ # HTTP header 'Content-Type'
4804
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4805
+
4806
+ # form parameters
4807
+ form_params = {}
4808
+
4809
+ # http body (model)
4810
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4811
+ auth_names = ['apikey', 'basic']
4812
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4813
+ :header_params => header_params,
4814
+ :query_params => query_params,
4815
+ :form_params => form_params,
4816
+ :body => post_body,
4817
+ :auth_names => auth_names,
4818
+ :return_type => 'GenericUpstream')
4819
+ if @api_client.config.debugging
4820
+ @api_client.config.logger.debug "API called: ReposApi#repos_upstream_generic_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4821
+ end
4822
+ return data, status_code, headers
4823
+ end
4429
4824
  # Create a Go upstream config for this repository.
4430
4825
  # Create a Go upstream config for this repository.
4431
4826
  # @param owner
@@ -24,6 +24,9 @@ class FormatSupport
24
24
  # If true the package format supports file lists
25
25
  attr_accessor :file_lists
26
26
 
27
+ # If true the package format supports filepaths
28
+ attr_accessor :filepaths
29
+
27
30
  # If true the package format supports metadata
28
31
  attr_accessor :metadata
29
32
 
@@ -38,6 +41,7 @@ class FormatSupport
38
41
  :'dependencies' => :'dependencies',
39
42
  :'distributions' => :'distributions',
40
43
  :'file_lists' => :'file_lists',
44
+ :'filepaths' => :'filepaths',
41
45
  :'metadata' => :'metadata',
42
46
  :'upstreams' => :'upstreams',
43
47
  :'versioning' => :'versioning'
@@ -50,6 +54,7 @@ class FormatSupport
50
54
  :'dependencies' => :'BOOLEAN',
51
55
  :'distributions' => :'BOOLEAN',
52
56
  :'file_lists' => :'BOOLEAN',
57
+ :'filepaths' => :'BOOLEAN',
53
58
  :'metadata' => :'BOOLEAN',
54
59
  :'upstreams' => :'FormatSupportUpstream',
55
60
  :'versioning' => :'BOOLEAN'
@@ -76,6 +81,10 @@ class FormatSupport
76
81
  self.file_lists = attributes[:'file_lists']
77
82
  end
78
83
 
84
+ if attributes.has_key?(:'filepaths')
85
+ self.filepaths = attributes[:'filepaths']
86
+ end
87
+
79
88
  if attributes.has_key?(:'metadata')
80
89
  self.metadata = attributes[:'metadata']
81
90
  end
@@ -105,6 +114,10 @@ class FormatSupport
105
114
  invalid_properties.push('invalid value for "file_lists", file_lists cannot be nil.')
106
115
  end
107
116
 
117
+ if @filepaths.nil?
118
+ invalid_properties.push('invalid value for "filepaths", filepaths cannot be nil.')
119
+ end
120
+
108
121
  if @metadata.nil?
109
122
  invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
110
123
  end
@@ -126,6 +139,7 @@ class FormatSupport
126
139
  return false if @dependencies.nil?
127
140
  return false if @distributions.nil?
128
141
  return false if @file_lists.nil?
142
+ return false if @filepaths.nil?
129
143
  return false if @metadata.nil?
130
144
  return false if @upstreams.nil?
131
145
  return false if @versioning.nil?
@@ -140,6 +154,7 @@ class FormatSupport
140
154
  dependencies == o.dependencies &&
141
155
  distributions == o.distributions &&
142
156
  file_lists == o.file_lists &&
157
+ filepaths == o.filepaths &&
143
158
  metadata == o.metadata &&
144
159
  upstreams == o.upstreams &&
145
160
  versioning == o.versioning
@@ -154,7 +169,7 @@ class FormatSupport
154
169
  # Calculates hash code according to all attributes.
155
170
  # @return [Fixnum] Hash code
156
171
  def hash
157
- [dependencies, distributions, file_lists, metadata, upstreams, versioning].hash
172
+ [dependencies, distributions, file_lists, filepaths, metadata, upstreams, versioning].hash
158
173
  end
159
174
 
160
175
  # Builds the object from hash