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
data/docs/ReposApi.md CHANGED
@@ -73,6 +73,12 @@ Method | HTTP request | Description
73
73
  [**repos_upstream_docker_partial_update**](ReposApi.md#repos_upstream_docker_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository.
74
74
  [**repos_upstream_docker_read**](ReposApi.md#repos_upstream_docker_read) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository.
75
75
  [**repos_upstream_docker_update**](ReposApi.md#repos_upstream_docker_update) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository.
76
+ [**repos_upstream_generic_create**](ReposApi.md#repos_upstream_generic_create) | **POST** /repos/{owner}/{identifier}/upstream/generic/ | Create a Generic upstream config for this repository.
77
+ [**repos_upstream_generic_delete**](ReposApi.md#repos_upstream_generic_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Delete a Generic upstream config for this repository.
78
+ [**repos_upstream_generic_list**](ReposApi.md#repos_upstream_generic_list) | **GET** /repos/{owner}/{identifier}/upstream/generic/ | List Generic upstream configs for this repository.
79
+ [**repos_upstream_generic_partial_update**](ReposApi.md#repos_upstream_generic_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Partially update a Generic upstream config for this repository.
80
+ [**repos_upstream_generic_read**](ReposApi.md#repos_upstream_generic_read) | **GET** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Retrieve a Generic upstream config for this repository.
81
+ [**repos_upstream_generic_update**](ReposApi.md#repos_upstream_generic_update) | **PUT** /repos/{owner}/{identifier}/upstream/generic/{slug_perm}/ | Update a Generic upstream config for this repository.
76
82
  [**repos_upstream_go_create**](ReposApi.md#repos_upstream_go_create) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository.
77
83
  [**repos_upstream_go_delete**](ReposApi.md#repos_upstream_go_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository.
78
84
  [**repos_upstream_go_list**](ReposApi.md#repos_upstream_go_list) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository.
@@ -4612,6 +4618,401 @@ Name | Type | Description | Notes
4612
4618
 
4613
4619
 
4614
4620
 
4621
+ # **repos_upstream_generic_create**
4622
+ > GenericUpstream repos_upstream_generic_create(owner, identifier, opts)
4623
+
4624
+ Create a Generic upstream config for this repository.
4625
+
4626
+ Create a Generic upstream config for this repository.
4627
+
4628
+ ### Example
4629
+ ```ruby
4630
+ # load the gem
4631
+ require 'cloudsmith-api'
4632
+ # setup authorization
4633
+ CloudsmithApi.configure do |config|
4634
+ # Configure API key authorization: apikey
4635
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
4636
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4637
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
4638
+
4639
+ # Configure HTTP basic authorization: basic
4640
+ config.username = 'YOUR USERNAME'
4641
+ config.password = 'YOUR PASSWORD'
4642
+ end
4643
+
4644
+ api_instance = CloudsmithApi::ReposApi.new
4645
+
4646
+ owner = 'owner_example' # String |
4647
+
4648
+ identifier = 'identifier_example' # String |
4649
+
4650
+ opts = {
4651
+ data: CloudsmithApi::GenericUpstreamRequest.new # GenericUpstreamRequest |
4652
+ }
4653
+
4654
+ begin
4655
+ #Create a Generic upstream config for this repository.
4656
+ result = api_instance.repos_upstream_generic_create(owner, identifier, opts)
4657
+ p result
4658
+ rescue CloudsmithApi::ApiError => e
4659
+ puts "Exception when calling ReposApi->repos_upstream_generic_create: #{e}"
4660
+ end
4661
+ ```
4662
+
4663
+ ### Parameters
4664
+
4665
+ Name | Type | Description | Notes
4666
+ ------------- | ------------- | ------------- | -------------
4667
+ **owner** | **String**| |
4668
+ **identifier** | **String**| |
4669
+ **data** | [**GenericUpstreamRequest**](GenericUpstreamRequest.md)| | [optional]
4670
+
4671
+ ### Return type
4672
+
4673
+ [**GenericUpstream**](GenericUpstream.md)
4674
+
4675
+ ### Authorization
4676
+
4677
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
4678
+
4679
+ ### HTTP request headers
4680
+
4681
+ - **Content-Type**: application/json
4682
+ - **Accept**: application/json
4683
+
4684
+
4685
+
4686
+ # **repos_upstream_generic_delete**
4687
+ > repos_upstream_generic_delete(owner, identifier, slug_perm)
4688
+
4689
+ Delete a Generic upstream config for this repository.
4690
+
4691
+ Delete a Generic upstream config for this repository.
4692
+
4693
+ ### Example
4694
+ ```ruby
4695
+ # load the gem
4696
+ require 'cloudsmith-api'
4697
+ # setup authorization
4698
+ CloudsmithApi.configure do |config|
4699
+ # Configure API key authorization: apikey
4700
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
4701
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4702
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
4703
+
4704
+ # Configure HTTP basic authorization: basic
4705
+ config.username = 'YOUR USERNAME'
4706
+ config.password = 'YOUR PASSWORD'
4707
+ end
4708
+
4709
+ api_instance = CloudsmithApi::ReposApi.new
4710
+
4711
+ owner = 'owner_example' # String |
4712
+
4713
+ identifier = 'identifier_example' # String |
4714
+
4715
+ slug_perm = 'slug_perm_example' # String |
4716
+
4717
+
4718
+ begin
4719
+ #Delete a Generic upstream config for this repository.
4720
+ api_instance.repos_upstream_generic_delete(owner, identifier, slug_perm)
4721
+ rescue CloudsmithApi::ApiError => e
4722
+ puts "Exception when calling ReposApi->repos_upstream_generic_delete: #{e}"
4723
+ end
4724
+ ```
4725
+
4726
+ ### Parameters
4727
+
4728
+ Name | Type | Description | Notes
4729
+ ------------- | ------------- | ------------- | -------------
4730
+ **owner** | **String**| |
4731
+ **identifier** | **String**| |
4732
+ **slug_perm** | **String**| |
4733
+
4734
+ ### Return type
4735
+
4736
+ nil (empty response body)
4737
+
4738
+ ### Authorization
4739
+
4740
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
4741
+
4742
+ ### HTTP request headers
4743
+
4744
+ - **Content-Type**: application/json
4745
+ - **Accept**: application/json
4746
+
4747
+
4748
+
4749
+ # **repos_upstream_generic_list**
4750
+ > Array<GenericUpstream> repos_upstream_generic_list(owner, identifier, opts)
4751
+
4752
+ List Generic upstream configs for this repository.
4753
+
4754
+ List Generic upstream configs for this repository.
4755
+
4756
+ ### Example
4757
+ ```ruby
4758
+ # load the gem
4759
+ require 'cloudsmith-api'
4760
+ # setup authorization
4761
+ CloudsmithApi.configure do |config|
4762
+ # Configure API key authorization: apikey
4763
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
4764
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4765
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
4766
+
4767
+ # Configure HTTP basic authorization: basic
4768
+ config.username = 'YOUR USERNAME'
4769
+ config.password = 'YOUR PASSWORD'
4770
+ end
4771
+
4772
+ api_instance = CloudsmithApi::ReposApi.new
4773
+
4774
+ owner = 'owner_example' # String |
4775
+
4776
+ identifier = 'identifier_example' # String |
4777
+
4778
+ opts = {
4779
+ page: 56, # Integer | A page number within the paginated result set.
4780
+ page_size: 56 # Integer | Number of results to return per page.
4781
+ }
4782
+
4783
+ begin
4784
+ #List Generic upstream configs for this repository.
4785
+ result = api_instance.repos_upstream_generic_list(owner, identifier, opts)
4786
+ p result
4787
+ rescue CloudsmithApi::ApiError => e
4788
+ puts "Exception when calling ReposApi->repos_upstream_generic_list: #{e}"
4789
+ end
4790
+ ```
4791
+
4792
+ ### Parameters
4793
+
4794
+ Name | Type | Description | Notes
4795
+ ------------- | ------------- | ------------- | -------------
4796
+ **owner** | **String**| |
4797
+ **identifier** | **String**| |
4798
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
4799
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
4800
+
4801
+ ### Return type
4802
+
4803
+ [**Array<GenericUpstream>**](GenericUpstream.md)
4804
+
4805
+ ### Authorization
4806
+
4807
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
4808
+
4809
+ ### HTTP request headers
4810
+
4811
+ - **Content-Type**: application/json
4812
+ - **Accept**: application/json
4813
+
4814
+
4815
+
4816
+ # **repos_upstream_generic_partial_update**
4817
+ > GenericUpstream repos_upstream_generic_partial_update(owner, identifier, slug_perm, opts)
4818
+
4819
+ Partially update a Generic upstream config for this repository.
4820
+
4821
+ Partially update a Generic upstream config for this repository.
4822
+
4823
+ ### Example
4824
+ ```ruby
4825
+ # load the gem
4826
+ require 'cloudsmith-api'
4827
+ # setup authorization
4828
+ CloudsmithApi.configure do |config|
4829
+ # Configure API key authorization: apikey
4830
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
4831
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4832
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
4833
+
4834
+ # Configure HTTP basic authorization: basic
4835
+ config.username = 'YOUR USERNAME'
4836
+ config.password = 'YOUR PASSWORD'
4837
+ end
4838
+
4839
+ api_instance = CloudsmithApi::ReposApi.new
4840
+
4841
+ owner = 'owner_example' # String |
4842
+
4843
+ identifier = 'identifier_example' # String |
4844
+
4845
+ slug_perm = 'slug_perm_example' # String |
4846
+
4847
+ opts = {
4848
+ data: CloudsmithApi::GenericUpstreamRequestPatch.new # GenericUpstreamRequestPatch |
4849
+ }
4850
+
4851
+ begin
4852
+ #Partially update a Generic upstream config for this repository.
4853
+ result = api_instance.repos_upstream_generic_partial_update(owner, identifier, slug_perm, opts)
4854
+ p result
4855
+ rescue CloudsmithApi::ApiError => e
4856
+ puts "Exception when calling ReposApi->repos_upstream_generic_partial_update: #{e}"
4857
+ end
4858
+ ```
4859
+
4860
+ ### Parameters
4861
+
4862
+ Name | Type | Description | Notes
4863
+ ------------- | ------------- | ------------- | -------------
4864
+ **owner** | **String**| |
4865
+ **identifier** | **String**| |
4866
+ **slug_perm** | **String**| |
4867
+ **data** | [**GenericUpstreamRequestPatch**](GenericUpstreamRequestPatch.md)| | [optional]
4868
+
4869
+ ### Return type
4870
+
4871
+ [**GenericUpstream**](GenericUpstream.md)
4872
+
4873
+ ### Authorization
4874
+
4875
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
4876
+
4877
+ ### HTTP request headers
4878
+
4879
+ - **Content-Type**: application/json
4880
+ - **Accept**: application/json
4881
+
4882
+
4883
+
4884
+ # **repos_upstream_generic_read**
4885
+ > GenericUpstream repos_upstream_generic_read(owner, identifier, slug_perm)
4886
+
4887
+ Retrieve a Generic upstream config for this repository.
4888
+
4889
+ Retrieve a Generic upstream config for this repository.
4890
+
4891
+ ### Example
4892
+ ```ruby
4893
+ # load the gem
4894
+ require 'cloudsmith-api'
4895
+ # setup authorization
4896
+ CloudsmithApi.configure do |config|
4897
+ # Configure API key authorization: apikey
4898
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
4899
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4900
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
4901
+
4902
+ # Configure HTTP basic authorization: basic
4903
+ config.username = 'YOUR USERNAME'
4904
+ config.password = 'YOUR PASSWORD'
4905
+ end
4906
+
4907
+ api_instance = CloudsmithApi::ReposApi.new
4908
+
4909
+ owner = 'owner_example' # String |
4910
+
4911
+ identifier = 'identifier_example' # String |
4912
+
4913
+ slug_perm = 'slug_perm_example' # String |
4914
+
4915
+
4916
+ begin
4917
+ #Retrieve a Generic upstream config for this repository.
4918
+ result = api_instance.repos_upstream_generic_read(owner, identifier, slug_perm)
4919
+ p result
4920
+ rescue CloudsmithApi::ApiError => e
4921
+ puts "Exception when calling ReposApi->repos_upstream_generic_read: #{e}"
4922
+ end
4923
+ ```
4924
+
4925
+ ### Parameters
4926
+
4927
+ Name | Type | Description | Notes
4928
+ ------------- | ------------- | ------------- | -------------
4929
+ **owner** | **String**| |
4930
+ **identifier** | **String**| |
4931
+ **slug_perm** | **String**| |
4932
+
4933
+ ### Return type
4934
+
4935
+ [**GenericUpstream**](GenericUpstream.md)
4936
+
4937
+ ### Authorization
4938
+
4939
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
4940
+
4941
+ ### HTTP request headers
4942
+
4943
+ - **Content-Type**: application/json
4944
+ - **Accept**: application/json
4945
+
4946
+
4947
+
4948
+ # **repos_upstream_generic_update**
4949
+ > GenericUpstream repos_upstream_generic_update(owner, identifier, slug_perm, opts)
4950
+
4951
+ Update a Generic upstream config for this repository.
4952
+
4953
+ Update a Generic upstream config for this repository.
4954
+
4955
+ ### Example
4956
+ ```ruby
4957
+ # load the gem
4958
+ require 'cloudsmith-api'
4959
+ # setup authorization
4960
+ CloudsmithApi.configure do |config|
4961
+ # Configure API key authorization: apikey
4962
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
4963
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4964
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
4965
+
4966
+ # Configure HTTP basic authorization: basic
4967
+ config.username = 'YOUR USERNAME'
4968
+ config.password = 'YOUR PASSWORD'
4969
+ end
4970
+
4971
+ api_instance = CloudsmithApi::ReposApi.new
4972
+
4973
+ owner = 'owner_example' # String |
4974
+
4975
+ identifier = 'identifier_example' # String |
4976
+
4977
+ slug_perm = 'slug_perm_example' # String |
4978
+
4979
+ opts = {
4980
+ data: CloudsmithApi::GenericUpstreamRequest.new # GenericUpstreamRequest |
4981
+ }
4982
+
4983
+ begin
4984
+ #Update a Generic upstream config for this repository.
4985
+ result = api_instance.repos_upstream_generic_update(owner, identifier, slug_perm, opts)
4986
+ p result
4987
+ rescue CloudsmithApi::ApiError => e
4988
+ puts "Exception when calling ReposApi->repos_upstream_generic_update: #{e}"
4989
+ end
4990
+ ```
4991
+
4992
+ ### Parameters
4993
+
4994
+ Name | Type | Description | Notes
4995
+ ------------- | ------------- | ------------- | -------------
4996
+ **owner** | **String**| |
4997
+ **identifier** | **String**| |
4998
+ **slug_perm** | **String**| |
4999
+ **data** | [**GenericUpstreamRequest**](GenericUpstreamRequest.md)| | [optional]
5000
+
5001
+ ### Return type
5002
+
5003
+ [**GenericUpstream**](GenericUpstream.md)
5004
+
5005
+ ### Authorization
5006
+
5007
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
5008
+
5009
+ ### HTTP request headers
5010
+
5011
+ - **Content-Type**: application/json
5012
+ - **Accept**: application/json
5013
+
5014
+
5015
+
4615
5016
  # **repos_upstream_go_create**
4616
5017
  > GoUpstream repos_upstream_go_create(owner, identifier, opts)
4617
5018
 
@@ -1524,6 +1524,68 @@ module CloudsmithApi
1524
1524
  end
1525
1525
  return data, status_code, headers
1526
1526
  end
1527
+ # Create a new Generic package
1528
+ # Create a new Generic package
1529
+ # @param owner
1530
+ # @param repo
1531
+ # @param [Hash] opts the optional parameters
1532
+ # @option opts [GenericPackageUploadRequest] :data
1533
+ # @return [GenericPackageUpload]
1534
+ def packages_upload_generic(owner, repo, opts = {})
1535
+ data, _status_code, _headers = packages_upload_generic_with_http_info(owner, repo, opts)
1536
+ data
1537
+ end
1538
+
1539
+ # Create a new Generic package
1540
+ # Create a new Generic package
1541
+ # @param owner
1542
+ # @param repo
1543
+ # @param [Hash] opts the optional parameters
1544
+ # @option opts [GenericPackageUploadRequest] :data
1545
+ # @return [Array<(GenericPackageUpload, Fixnum, Hash)>] GenericPackageUpload data, response status code and response headers
1546
+ def packages_upload_generic_with_http_info(owner, repo, opts = {})
1547
+ if @api_client.config.debugging
1548
+ @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_generic ...'
1549
+ end
1550
+ # verify the required parameter 'owner' is set
1551
+ if @api_client.config.client_side_validation && owner.nil?
1552
+ fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_generic"
1553
+ end
1554
+ # verify the required parameter 'repo' is set
1555
+ if @api_client.config.client_side_validation && repo.nil?
1556
+ fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_generic"
1557
+ end
1558
+ # resource path
1559
+ local_var_path = '/packages/{owner}/{repo}/upload/generic/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
1560
+
1561
+ # query parameters
1562
+ query_params = {}
1563
+
1564
+ # header parameters
1565
+ header_params = {}
1566
+ # HTTP header 'Accept' (if needed)
1567
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1568
+ # HTTP header 'Content-Type'
1569
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1570
+
1571
+ # form parameters
1572
+ form_params = {}
1573
+
1574
+ # http body (model)
1575
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1576
+ auth_names = ['apikey', 'basic']
1577
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1578
+ :header_params => header_params,
1579
+ :query_params => query_params,
1580
+ :form_params => form_params,
1581
+ :body => post_body,
1582
+ :auth_names => auth_names,
1583
+ :return_type => 'GenericPackageUpload')
1584
+ if @api_client.config.debugging
1585
+ @api_client.config.logger.debug "API called: PackagesApi#packages_upload_generic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1586
+ end
1587
+ return data, status_code, headers
1588
+ end
1527
1589
  # Create a new Go package
1528
1590
  # Create a new Go package
1529
1591
  # @param owner
@@ -3126,6 +3188,67 @@ module CloudsmithApi
3126
3188
  end
3127
3189
  return data, status_code, headers
3128
3190
  end
3191
+ # Validate parameters for create Generic package
3192
+ # Validate parameters for create Generic package
3193
+ # @param owner
3194
+ # @param repo
3195
+ # @param [Hash] opts the optional parameters
3196
+ # @option opts [GenericPackageUploadRequest] :data
3197
+ # @return [nil]
3198
+ def packages_validate_upload_generic(owner, repo, opts = {})
3199
+ packages_validate_upload_generic_with_http_info(owner, repo, opts)
3200
+ nil
3201
+ end
3202
+
3203
+ # Validate parameters for create Generic package
3204
+ # Validate parameters for create Generic package
3205
+ # @param owner
3206
+ # @param repo
3207
+ # @param [Hash] opts the optional parameters
3208
+ # @option opts [GenericPackageUploadRequest] :data
3209
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3210
+ def packages_validate_upload_generic_with_http_info(owner, repo, opts = {})
3211
+ if @api_client.config.debugging
3212
+ @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_generic ...'
3213
+ end
3214
+ # verify the required parameter 'owner' is set
3215
+ if @api_client.config.client_side_validation && owner.nil?
3216
+ fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_generic"
3217
+ end
3218
+ # verify the required parameter 'repo' is set
3219
+ if @api_client.config.client_side_validation && repo.nil?
3220
+ fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_generic"
3221
+ end
3222
+ # resource path
3223
+ local_var_path = '/packages/{owner}/{repo}/validate-upload/generic/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
3224
+
3225
+ # query parameters
3226
+ query_params = {}
3227
+
3228
+ # header parameters
3229
+ header_params = {}
3230
+ # HTTP header 'Accept' (if needed)
3231
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3232
+ # HTTP header 'Content-Type'
3233
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3234
+
3235
+ # form parameters
3236
+ form_params = {}
3237
+
3238
+ # http body (model)
3239
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3240
+ auth_names = ['apikey', 'basic']
3241
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3242
+ :header_params => header_params,
3243
+ :query_params => query_params,
3244
+ :form_params => form_params,
3245
+ :body => post_body,
3246
+ :auth_names => auth_names)
3247
+ if @api_client.config.debugging
3248
+ @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_generic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3249
+ end
3250
+ return data, status_code, headers
3251
+ end
3129
3252
  # Validate parameters for create Go package
3130
3253
  # Validate parameters for create Go package
3131
3254
  # @param owner