pulp_python_client 3.18.0 → 3.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f112f5914b388f20226293b324b016927bce790ca00897548e0d9d53615f7ca
4
- data.tar.gz: de1b3a7438c13e2cd852b9e4a84750c7b94b26ce15ee4504f674ded47436493d
3
+ metadata.gz: 0a30f503d2c2b3b163497086c61cf1630ffdd6a1fbd0226f0ed9a9eabb23b000
4
+ data.tar.gz: a07c3020bccc22627e05bb25f8349bb7adbd610dc286ab2500f25e5ecd873a95
5
5
  SHA512:
6
- metadata.gz: 42aa79374feb731ca0ccc7300be2d2cf0e7881be4e90c525e6acd5a508ebbb0d4b9c9c3749ac51a236f4fdcadf7190b15b179e04a3eb8553f331820d136355bb
7
- data.tar.gz: cd3ae5a046974925d0daf27c4e26969399a10e733379a7caad869be6197e10e6dff4cb06e9b8b8798a2cb5669abdec28ccf531a3d1ab4c6e914045953c6d1e92
6
+ metadata.gz: ea6383542080682e471e9e781515b83671725d9f5bc80e5f14bedb2dcf56fb8fe28a4bba4f272a8465bb4e9e3bf75ebc9df49dba13c5c5723f476354a94cdad8
7
+ data.tar.gz: dd8134e5c05c4712fe2880bbff533db798e4b549809b800ed459317aea79c280eccf01894b3650c8cc7aa29b14e99e5662d490fa2703b570ea590b1fb55d577d
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.18.0
10
+ - Package version: 3.19.0
11
11
  - Generator version: 7.10.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
@@ -25,16 +25,16 @@ gem build pulp_python_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_python_client-3.18.0.gem
28
+ gem install ./pulp_python_client-3.19.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_python_client-3.18.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_python_client-3.19.0.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'pulp_python_client', '~> 3.18.0'
37
+ gem 'pulp_python_client', '~> 3.19.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -97,7 +97,7 @@ opts = {
97
97
  requires_external: TODO, # Object |
98
98
  requires_dist: TODO, # Object |
99
99
  requires_python: 'requires_python_example', # String | The Python version(s) that the distribution is guaranteed to be compatible with.
100
- description_content_type: 'description_content_type_example', # String | A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description.
100
+ description_content_type: 'description_content_type_example', # String | A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
101
101
  provides_extras: TODO, # Object |
102
102
  dynamic: TODO, # Object |
103
103
  license_expression: 'license_expression_example', # String | Text string that is a valid SPDX license expression.
@@ -126,6 +126,7 @@ Class | Method | HTTP request | Description
126
126
  *PulpPythonClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content
127
127
  *PulpPythonClient::ContentPackagesApi* | [**set_label**](docs/ContentPackagesApi.md#set_label) | **POST** {python_python_package_content_href}set_label/ | Set a label
128
128
  *PulpPythonClient::ContentPackagesApi* | [**unset_label**](docs/ContentPackagesApi.md#unset_label) | **POST** {python_python_package_content_href}unset_label/ | Unset a label
129
+ *PulpPythonClient::ContentPackagesApi* | [**upload**](docs/ContentPackagesApi.md#upload) | **POST** /pulp/api/v3/content/python/packages/upload/ | Synchronous Python package upload
129
130
  *PulpPythonClient::DistributionsPypiApi* | [**add_role**](docs/DistributionsPypiApi.md#add_role) | **POST** {python_python_distribution_href}add_role/ | Add a role
130
131
  *PulpPythonClient::DistributionsPypiApi* | [**create**](docs/DistributionsPypiApi.md#create) | **POST** /pulp/api/v3/distributions/python/pypi/ | Create a python distribution
131
132
  *PulpPythonClient::DistributionsPypiApi* | [**delete**](docs/DistributionsPypiApi.md#delete) | **DELETE** {python_python_distribution_href} | Delete a python distribution
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost:24817*
9
9
  | [**read**](ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content |
10
10
  | [**set_label**](ContentPackagesApi.md#set_label) | **POST** {python_python_package_content_href}set_label/ | Set a label |
11
11
  | [**unset_label**](ContentPackagesApi.md#unset_label) | **POST** {python_python_package_content_href}unset_label/ | Unset a label |
12
+ | [**upload**](ContentPackagesApi.md#upload) | **POST** /pulp/api/v3/content/python/packages/upload/ | Synchronous Python package upload |
12
13
 
13
14
 
14
15
  ## create
@@ -61,7 +62,7 @@ opts = {
61
62
  requires_external: TODO, # Object |
62
63
  requires_dist: TODO, # Object |
63
64
  requires_python: 'requires_python_example', # String | The Python version(s) that the distribution is guaranteed to be compatible with.
64
- description_content_type: 'description_content_type_example', # String | A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description.
65
+ description_content_type: 'description_content_type_example', # String | A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
65
66
  provides_extras: TODO, # Object |
66
67
  dynamic: TODO, # Object |
67
68
  license_expression: 'license_expression_example', # String | Text string that is a valid SPDX license expression.
@@ -128,7 +129,7 @@ end
128
129
  | **requires_external** | [**Object**](Object.md) | | [optional] |
129
130
  | **requires_dist** | [**Object**](Object.md) | | [optional] |
130
131
  | **requires_python** | **String** | The Python version(s) that the distribution is guaranteed to be compatible with. | [optional] |
131
- | **description_content_type** | **String** | A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description. | [optional] |
132
+ | **description_content_type** | **String** | A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description. | [optional] |
132
133
  | **provides_extras** | [**Object**](Object.md) | | [optional] |
133
134
  | **dynamic** | [**Object**](Object.md) | | [optional] |
134
135
  | **license_expression** | **String** | Text string that is a valid SPDX license expression. | [optional] |
@@ -520,3 +521,137 @@ end
520
521
  - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
521
522
  - **Accept**: application/json
522
523
 
524
+
525
+ ## upload
526
+
527
+ > <PythonPythonPackageContentResponse> upload(opts)
528
+
529
+ Synchronous Python package upload
530
+
531
+ Create a Python package.
532
+
533
+ ### Examples
534
+
535
+ ```ruby
536
+ require 'time'
537
+ require 'pulp_python_client'
538
+ # setup authorization
539
+ PulpPythonClient.configure do |config|
540
+ # Configure HTTP basic authorization: basicAuth
541
+ config.username = 'YOUR USERNAME'
542
+ config.password = 'YOUR PASSWORD'
543
+ end
544
+
545
+ api_instance = PulpPythonClient::ContentPackagesApi.new
546
+ opts = {
547
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
548
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
549
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
550
+ file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
551
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
552
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
553
+ author: 'author_example', # String | Text containing the author's name. Contact information can also be added, separated with newlines.
554
+ author_email: 'author_email_example', # String | The author's e-mail address.
555
+ description: 'description_example', # String | A longer description of the package that can run to several paragraphs.
556
+ home_page: 'home_page_example', # String | The URL for the package's home page.
557
+ keywords: 'keywords_example', # String | Additional keywords to be used to assist searching for the package in a larger catalog.
558
+ license: 'license_example', # String | Text indicating the license covering the distribution
559
+ platform: 'platform_example', # String | A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
560
+ summary: 'summary_example', # String | A one-line summary of what the package does.
561
+ classifiers: TODO, # Object |
562
+ download_url: 'download_url_example', # String | Legacy field denoting the URL from which this package can be downloaded.
563
+ supported_platform: 'supported_platform_example', # String | Field to specify the OS and CPU for which the binary package was compiled.
564
+ maintainer: 'maintainer_example', # String | The maintainer's name at a minimum; additional contact information may be provided.
565
+ maintainer_email: 'maintainer_email_example', # String | The maintainer's e-mail address.
566
+ obsoletes_dist: TODO, # Object |
567
+ project_url: 'project_url_example', # String | A browsable URL for the project and a label for it, separated by a comma.
568
+ project_urls: TODO, # Object |
569
+ provides_dist: TODO, # Object |
570
+ requires_external: TODO, # Object |
571
+ requires_dist: TODO, # Object |
572
+ requires_python: 'requires_python_example', # String | The Python version(s) that the distribution is guaranteed to be compatible with.
573
+ description_content_type: 'description_content_type_example', # String | A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
574
+ provides_extras: TODO, # Object |
575
+ dynamic: TODO, # Object |
576
+ license_expression: 'license_expression_example', # String | Text string that is a valid SPDX license expression.
577
+ license_file: TODO, # Object |
578
+ sha256: 'sha256_example' # String | The SHA256 digest of this package.
579
+ }
580
+
581
+ begin
582
+ # Synchronous Python package upload
583
+ result = api_instance.upload(opts)
584
+ p result
585
+ rescue PulpPythonClient::ApiError => e
586
+ puts "Error when calling ContentPackagesApi->upload: #{e}"
587
+ end
588
+ ```
589
+
590
+ #### Using the upload_with_http_info variant
591
+
592
+ This returns an Array which contains the response data, status code and headers.
593
+
594
+ > <Array(<PythonPythonPackageContentResponse>, Integer, Hash)> upload_with_http_info(opts)
595
+
596
+ ```ruby
597
+ begin
598
+ # Synchronous Python package upload
599
+ data, status_code, headers = api_instance.upload_with_http_info(opts)
600
+ p status_code # => 2xx
601
+ p headers # => { ... }
602
+ p data # => <PythonPythonPackageContentResponse>
603
+ rescue PulpPythonClient::ApiError => e
604
+ puts "Error when calling ContentPackagesApi->upload_with_http_info: #{e}"
605
+ end
606
+ ```
607
+
608
+ ### Parameters
609
+
610
+ | Name | Type | Description | Notes |
611
+ | ---- | ---- | ----------- | ----- |
612
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
613
+ | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
614
+ | **artifact** | **String** | Artifact file representing the physical content | [optional] |
615
+ | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
616
+ | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
617
+ | **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
618
+ | **author** | **String** | Text containing the author&#39;s name. Contact information can also be added, separated with newlines. | [optional] |
619
+ | **author_email** | **String** | The author&#39;s e-mail address. | [optional] |
620
+ | **description** | **String** | A longer description of the package that can run to several paragraphs. | [optional] |
621
+ | **home_page** | **String** | The URL for the package&#39;s home page. | [optional] |
622
+ | **keywords** | **String** | Additional keywords to be used to assist searching for the package in a larger catalog. | [optional] |
623
+ | **license** | **String** | Text indicating the license covering the distribution | [optional] |
624
+ | **platform** | **String** | A comma-separated list of platform specifications, summarizing the operating systems supported by the package. | [optional] |
625
+ | **summary** | **String** | A one-line summary of what the package does. | [optional] |
626
+ | **classifiers** | [**Object**](Object.md) | | [optional] |
627
+ | **download_url** | **String** | Legacy field denoting the URL from which this package can be downloaded. | [optional] |
628
+ | **supported_platform** | **String** | Field to specify the OS and CPU for which the binary package was compiled. | [optional] |
629
+ | **maintainer** | **String** | The maintainer&#39;s name at a minimum; additional contact information may be provided. | [optional] |
630
+ | **maintainer_email** | **String** | The maintainer&#39;s e-mail address. | [optional] |
631
+ | **obsoletes_dist** | [**Object**](Object.md) | | [optional] |
632
+ | **project_url** | **String** | A browsable URL for the project and a label for it, separated by a comma. | [optional] |
633
+ | **project_urls** | [**Object**](Object.md) | | [optional] |
634
+ | **provides_dist** | [**Object**](Object.md) | | [optional] |
635
+ | **requires_external** | [**Object**](Object.md) | | [optional] |
636
+ | **requires_dist** | [**Object**](Object.md) | | [optional] |
637
+ | **requires_python** | **String** | The Python version(s) that the distribution is guaranteed to be compatible with. | [optional] |
638
+ | **description_content_type** | **String** | A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description. | [optional] |
639
+ | **provides_extras** | [**Object**](Object.md) | | [optional] |
640
+ | **dynamic** | [**Object**](Object.md) | | [optional] |
641
+ | **license_expression** | **String** | Text string that is a valid SPDX license expression. | [optional] |
642
+ | **license_file** | [**Object**](Object.md) | | [optional] |
643
+ | **sha256** | **String** | The SHA256 digest of this package. | [optional][default to &#39;&#39;] |
644
+
645
+ ### Return type
646
+
647
+ [**PythonPythonPackageContentResponse**](PythonPythonPackageContentResponse.md)
648
+
649
+ ### Authorization
650
+
651
+ [basicAuth](../README.md#basicAuth)
652
+
653
+ ### HTTP request headers
654
+
655
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
656
+ - **Accept**: application/json
657
+
@@ -34,7 +34,7 @@
34
34
  | **requires_external** | **Object** | | [optional] |
35
35
  | **requires_dist** | **Object** | | [optional] |
36
36
  | **requires_python** | **String** | The Python version(s) that the distribution is guaranteed to be compatible with. | [optional] |
37
- | **description_content_type** | **String** | A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description. | [optional] |
37
+ | **description_content_type** | **String** | A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description. | [optional] |
38
38
  | **provides_extras** | **Object** | | [optional] |
39
39
  | **dynamic** | **Object** | | [optional] |
40
40
  | **license_expression** | **String** | Text string that is a valid SPDX license expression. | [optional] |
@@ -50,7 +50,7 @@ module PulpPythonClient
50
50
  # @option opts [Object] :requires_external
51
51
  # @option opts [Object] :requires_dist
52
52
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
53
- # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description.
53
+ # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description.
54
54
  # @option opts [Object] :provides_extras
55
55
  # @option opts [Object] :dynamic
56
56
  # @option opts [String] :license_expression Text string that is a valid SPDX license expression.
@@ -93,7 +93,7 @@ module PulpPythonClient
93
93
  # @option opts [Object] :requires_external
94
94
  # @option opts [Object] :requires_dist
95
95
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
96
- # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description.
96
+ # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description.
97
97
  # @option opts [Object] :provides_extras
98
98
  # @option opts [Object] :dynamic
99
99
  # @option opts [String] :license_expression Text string that is a valid SPDX license expression.
@@ -597,5 +597,171 @@ module PulpPythonClient
597
597
  end
598
598
  return data, status_code, headers
599
599
  end
600
+
601
+ # Synchronous Python package upload
602
+ # Create a Python package.
603
+ # @param [Hash] opts the optional parameters
604
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
605
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
606
+ # @option opts [String] :artifact Artifact file representing the physical content
607
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
608
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
609
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
610
+ # @option opts [String] :author Text containing the author&#39;s name. Contact information can also be added, separated with newlines.
611
+ # @option opts [String] :author_email The author&#39;s e-mail address.
612
+ # @option opts [String] :description A longer description of the package that can run to several paragraphs.
613
+ # @option opts [String] :home_page The URL for the package&#39;s home page.
614
+ # @option opts [String] :keywords Additional keywords to be used to assist searching for the package in a larger catalog.
615
+ # @option opts [String] :license Text indicating the license covering the distribution
616
+ # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
617
+ # @option opts [String] :summary A one-line summary of what the package does.
618
+ # @option opts [Object] :classifiers
619
+ # @option opts [String] :download_url Legacy field denoting the URL from which this package can be downloaded.
620
+ # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
621
+ # @option opts [String] :maintainer The maintainer&#39;s name at a minimum; additional contact information may be provided.
622
+ # @option opts [String] :maintainer_email The maintainer&#39;s e-mail address.
623
+ # @option opts [Object] :obsoletes_dist
624
+ # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
625
+ # @option opts [Object] :project_urls
626
+ # @option opts [Object] :provides_dist
627
+ # @option opts [Object] :requires_external
628
+ # @option opts [Object] :requires_dist
629
+ # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
630
+ # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description.
631
+ # @option opts [Object] :provides_extras
632
+ # @option opts [Object] :dynamic
633
+ # @option opts [String] :license_expression Text string that is a valid SPDX license expression.
634
+ # @option opts [Object] :license_file
635
+ # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
636
+ # @return [PythonPythonPackageContentResponse]
637
+ def upload(opts = {})
638
+ data, _status_code, _headers = upload_with_http_info(opts)
639
+ data
640
+ end
641
+
642
+ # Synchronous Python package upload
643
+ # Create a Python package.
644
+ # @param [Hash] opts the optional parameters
645
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
646
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
647
+ # @option opts [String] :artifact Artifact file representing the physical content
648
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
649
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
650
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
651
+ # @option opts [String] :author Text containing the author&#39;s name. Contact information can also be added, separated with newlines.
652
+ # @option opts [String] :author_email The author&#39;s e-mail address.
653
+ # @option opts [String] :description A longer description of the package that can run to several paragraphs.
654
+ # @option opts [String] :home_page The URL for the package&#39;s home page.
655
+ # @option opts [String] :keywords Additional keywords to be used to assist searching for the package in a larger catalog.
656
+ # @option opts [String] :license Text indicating the license covering the distribution
657
+ # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
658
+ # @option opts [String] :summary A one-line summary of what the package does.
659
+ # @option opts [Object] :classifiers
660
+ # @option opts [String] :download_url Legacy field denoting the URL from which this package can be downloaded.
661
+ # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
662
+ # @option opts [String] :maintainer The maintainer&#39;s name at a minimum; additional contact information may be provided.
663
+ # @option opts [String] :maintainer_email The maintainer&#39;s e-mail address.
664
+ # @option opts [Object] :obsoletes_dist
665
+ # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
666
+ # @option opts [Object] :project_urls
667
+ # @option opts [Object] :provides_dist
668
+ # @option opts [Object] :requires_external
669
+ # @option opts [Object] :requires_dist
670
+ # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
671
+ # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description.
672
+ # @option opts [Object] :provides_extras
673
+ # @option opts [Object] :dynamic
674
+ # @option opts [String] :license_expression Text string that is a valid SPDX license expression.
675
+ # @option opts [Object] :license_file
676
+ # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
677
+ # @return [Array<(PythonPythonPackageContentResponse, Integer, Hash)>] PythonPythonPackageContentResponse data, response status code and response headers
678
+ def upload_with_http_info(opts = {})
679
+ if @api_client.config.debugging
680
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.upload ...'
681
+ end
682
+ if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
683
+ fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentPackagesApi.upload, the character length must be great than or equal to 1.'
684
+ end
685
+
686
+ if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
687
+ fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ContentPackagesApi.upload, the character length must be great than or equal to 1.'
688
+ end
689
+
690
+ # resource path
691
+ local_var_path = '/pulp/api/v3/content/python/packages/upload/'
692
+
693
+ # query parameters
694
+ query_params = opts[:query_params] || {}
695
+
696
+ # header parameters
697
+ header_params = opts[:header_params] || {}
698
+ # HTTP header 'Accept' (if needed)
699
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
700
+ # HTTP header 'Content-Type'
701
+ content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
702
+ if !content_type.nil?
703
+ header_params['Content-Type'] = content_type
704
+ end
705
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
706
+
707
+ # form parameters
708
+ form_params = opts[:form_params] || {}
709
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
710
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
711
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
712
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
713
+ form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
714
+ form_params['author'] = opts[:'author'] if !opts[:'author'].nil?
715
+ form_params['author_email'] = opts[:'author_email'] if !opts[:'author_email'].nil?
716
+ form_params['description'] = opts[:'description'] if !opts[:'description'].nil?
717
+ form_params['home_page'] = opts[:'home_page'] if !opts[:'home_page'].nil?
718
+ form_params['keywords'] = opts[:'keywords'] if !opts[:'keywords'].nil?
719
+ form_params['license'] = opts[:'license'] if !opts[:'license'].nil?
720
+ form_params['platform'] = opts[:'platform'] if !opts[:'platform'].nil?
721
+ form_params['summary'] = opts[:'summary'] if !opts[:'summary'].nil?
722
+ form_params['classifiers'] = opts[:'classifiers'] if !opts[:'classifiers'].nil?
723
+ form_params['download_url'] = opts[:'download_url'] if !opts[:'download_url'].nil?
724
+ form_params['supported_platform'] = opts[:'supported_platform'] if !opts[:'supported_platform'].nil?
725
+ form_params['maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
726
+ form_params['maintainer_email'] = opts[:'maintainer_email'] if !opts[:'maintainer_email'].nil?
727
+ form_params['obsoletes_dist'] = opts[:'obsoletes_dist'] if !opts[:'obsoletes_dist'].nil?
728
+ form_params['project_url'] = opts[:'project_url'] if !opts[:'project_url'].nil?
729
+ form_params['project_urls'] = opts[:'project_urls'] if !opts[:'project_urls'].nil?
730
+ form_params['provides_dist'] = opts[:'provides_dist'] if !opts[:'provides_dist'].nil?
731
+ form_params['requires_external'] = opts[:'requires_external'] if !opts[:'requires_external'].nil?
732
+ form_params['requires_dist'] = opts[:'requires_dist'] if !opts[:'requires_dist'].nil?
733
+ form_params['requires_python'] = opts[:'requires_python'] if !opts[:'requires_python'].nil?
734
+ form_params['description_content_type'] = opts[:'description_content_type'] if !opts[:'description_content_type'].nil?
735
+ form_params['provides_extras'] = opts[:'provides_extras'] if !opts[:'provides_extras'].nil?
736
+ form_params['dynamic'] = opts[:'dynamic'] if !opts[:'dynamic'].nil?
737
+ form_params['license_expression'] = opts[:'license_expression'] if !opts[:'license_expression'].nil?
738
+ form_params['license_file'] = opts[:'license_file'] if !opts[:'license_file'].nil?
739
+ form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
740
+
741
+ # http body (model)
742
+ post_body = opts[:debug_body]
743
+
744
+ # return_type
745
+ return_type = opts[:debug_return_type] || 'PythonPythonPackageContentResponse'
746
+
747
+ # auth_names
748
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
749
+
750
+ new_options = opts.merge(
751
+ :operation => :"ContentPackagesApi.upload",
752
+ :header_params => header_params,
753
+ :query_params => query_params,
754
+ :form_params => form_params,
755
+ :body => post_body,
756
+ :auth_names => auth_names,
757
+ :return_type => return_type
758
+ )
759
+
760
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
761
+ if @api_client.config.debugging
762
+ @api_client.config.logger.debug "API called: ContentPackagesApi#upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
763
+ end
764
+ return data, status_code, headers
765
+ end
600
766
  end
601
767
  end
@@ -98,7 +98,7 @@ module PulpPythonClient
98
98
  # The Python version(s) that the distribution is guaranteed to be compatible with.
99
99
  attr_accessor :requires_python
100
100
 
101
- # A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description.
101
+ # A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
102
102
  attr_accessor :description_content_type
103
103
 
104
104
  attr_accessor :provides_extras
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.18.0'
14
+ VERSION = '3.19.0'
15
15
  end
@@ -64,7 +64,7 @@ describe 'ContentPackagesApi' do
64
64
  # @option opts [Object] :requires_external
65
65
  # @option opts [Object] :requires_dist
66
66
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
67
- # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distributions description, so that tools can intelligently render the description.
67
+ # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description.
68
68
  # @option opts [Object] :provides_extras
69
69
  # @option opts [Object] :dynamic
70
70
  # @option opts [String] :license_expression Text string that is a valid SPDX license expression.
@@ -167,4 +167,47 @@ describe 'ContentPackagesApi' do
167
167
  end
168
168
  end
169
169
 
170
+ # unit tests for upload
171
+ # Synchronous Python package upload
172
+ # Create a Python package.
173
+ # @param [Hash] opts the optional parameters
174
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
175
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
176
+ # @option opts [String] :artifact Artifact file representing the physical content
177
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
178
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
179
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
180
+ # @option opts [String] :author Text containing the author&#39;s name. Contact information can also be added, separated with newlines.
181
+ # @option opts [String] :author_email The author&#39;s e-mail address.
182
+ # @option opts [String] :description A longer description of the package that can run to several paragraphs.
183
+ # @option opts [String] :home_page The URL for the package&#39;s home page.
184
+ # @option opts [String] :keywords Additional keywords to be used to assist searching for the package in a larger catalog.
185
+ # @option opts [String] :license Text indicating the license covering the distribution
186
+ # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
187
+ # @option opts [String] :summary A one-line summary of what the package does.
188
+ # @option opts [Object] :classifiers
189
+ # @option opts [String] :download_url Legacy field denoting the URL from which this package can be downloaded.
190
+ # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
191
+ # @option opts [String] :maintainer The maintainer&#39;s name at a minimum; additional contact information may be provided.
192
+ # @option opts [String] :maintainer_email The maintainer&#39;s e-mail address.
193
+ # @option opts [Object] :obsoletes_dist
194
+ # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
195
+ # @option opts [Object] :project_urls
196
+ # @option opts [Object] :provides_dist
197
+ # @option opts [Object] :requires_external
198
+ # @option opts [Object] :requires_dist
199
+ # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
200
+ # @option opts [String] :description_content_type A string stating the markup syntax (if any) used in the distribution&#39;s description, so that tools can intelligently render the description.
201
+ # @option opts [Object] :provides_extras
202
+ # @option opts [Object] :dynamic
203
+ # @option opts [String] :license_expression Text string that is a valid SPDX license expression.
204
+ # @option opts [Object] :license_file
205
+ # @option opts [String] :sha256 The SHA256 digest of this package.
206
+ # @return [PythonPythonPackageContentResponse]
207
+ describe 'upload test' do
208
+ it 'should work' do
209
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
210
+ end
211
+ end
212
+
170
213
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_python_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.18.0
4
+ version: 3.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-13 00:00:00.000000000 Z
11
+ date: 2025-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday