pulp_gem_client 0.7.6 → 0.8.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: df46a74dcfe58b7b03dafd47a6e5cd09cff617f38fad93bb11dab4804640d9e5
4
- data.tar.gz: e10fab4afdd6fa16f66f1e53401c29d841e157a8016cf03c418023f6251f7f0a
3
+ metadata.gz: '0392db07d365490142de0fb78dbfa6002d04daa972dd2c58b9fff97a8f7d7d42'
4
+ data.tar.gz: 2c87a7a09acd7ad014a3bfcc02c8b9098c38fcd7b36fef8273349090585bc70d
5
5
  SHA512:
6
- metadata.gz: 7bef81b429197e5aab81861bdf75a6b77956170b0035e0fc45d0dac53a981dcdd3ecd060113678cbcdfbba1cc11e14e266058d5f5a19864924e994fd25b2039c
7
- data.tar.gz: ca2e2bcd3ea11915de68b186fa9a221dabff4c8b9b3b1d1a2b09b87bcfdb7258134589ba1d79a8c81aecabb6e915da132ad0a3abdfeee845ab0910b15bbd145a
6
+ metadata.gz: 7ed517311cfb2f919a241a5f435911e7a93a6bed63878f334fd0f6a4477c8afbd248647f9245628c1d35622d854cb14c8c58a15a5ba27edf3ba86254c49c9ed1
7
+ data.tar.gz: 9060104bacd0844a56bd0189f7b5917fd36d4c5393814c7bebd46a123d20357226a17e8d16efd9c5791b860c5258579a9e97301dc31308f2c20b65f2e235f009
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: 0.7.6
10
+ - Package version: 0.8.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_gem_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_gem_client-0.7.6.gem
28
+ gem install ./pulp_gem_client-0.8.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_gem_client-0.7.6.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_gem_client-0.8.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_gem_client', '~> 0.7.6'
37
+ gem 'pulp_gem_client', '~> 0.8.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -73,8 +73,11 @@ opts = {
73
73
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
74
74
  overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
75
75
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
76
- artifact: 'artifact_example', # String | Artifact file representing the physical content
77
- file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
76
+ file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
77
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
78
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
79
+ downloader_config: PulpGemClient::RemoteNetworkConfig.new, # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
80
+ artifact: 'artifact_example' # String | Artifact file representing the physical content
78
81
  }
79
82
 
80
83
  begin
@@ -178,6 +181,8 @@ Class | Method | HTTP request | Description
178
181
  - [PulpGemClient::PatchedgemGemRemote](docs/PatchedgemGemRemote.md)
179
182
  - [PulpGemClient::PatchedgemGemRepository](docs/PatchedgemGemRepository.md)
180
183
  - [PulpGemClient::PolicyEnum](docs/PolicyEnum.md)
184
+ - [PulpGemClient::RemoteNetworkConfig](docs/RemoteNetworkConfig.md)
185
+ - [PulpGemClient::RemoteNetworkConfigResponse](docs/RemoteNetworkConfigResponse.md)
181
186
  - [PulpGemClient::Repair](docs/Repair.md)
182
187
  - [PulpGemClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
183
188
  - [PulpGemClient::RepositorySyncURL](docs/RepositorySyncURL.md)
@@ -37,8 +37,11 @@ opts = {
37
37
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
38
38
  overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
39
39
  pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
40
- artifact: 'artifact_example', # String | Artifact file representing the physical content
41
- file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
40
+ file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
41
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
42
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
43
+ downloader_config: PulpGemClient::RemoteNetworkConfig.new, # RemoteNetworkConfig | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
44
+ artifact: 'artifact_example' # String | Artifact file representing the physical content
42
45
  }
43
46
 
44
47
  begin
@@ -76,8 +79,11 @@ end
76
79
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
77
80
  | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
78
81
  | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
82
+ | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
83
+ | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
84
+ | **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
85
+ | **downloader_config** | [**RemoteNetworkConfig**](RemoteNetworkConfig.md) | Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url. | [optional] |
79
86
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
80
- | **file** | **File** | An uploaded file that should be turned into the artifact of the content unit. | [optional] |
81
87
 
82
88
  ### Return type
83
89
 
@@ -0,0 +1,50 @@
1
+ # PulpGemClient::RemoteNetworkConfig
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
8
+ | **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
9
+ | **client_key** | **String** | A PEM encoded private key used for authentication. | [optional] |
10
+ | **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional] |
11
+ | **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional] |
12
+ | **proxy_username** | **String** | The username to authenticte to the proxy. | [optional] |
13
+ | **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
14
+ | **username** | **String** | The username to be used for authentication when syncing. | [optional] |
15
+ | **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] |
16
+ | **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
17
+ | **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
18
+ | **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
19
+ | **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
20
+ | **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
21
+ | **headers** | **Array&lt;Object&gt;** | Headers for aiohttp.Clientsession | [optional] |
22
+ | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
23
+ | **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
24
+
25
+ ## Example
26
+
27
+ ```ruby
28
+ require 'pulp_gem_client'
29
+
30
+ instance = PulpGemClient::RemoteNetworkConfig.new(
31
+ ca_cert: null,
32
+ client_cert: null,
33
+ client_key: null,
34
+ tls_validation: null,
35
+ proxy_url: null,
36
+ proxy_username: null,
37
+ proxy_password: null,
38
+ username: null,
39
+ password: null,
40
+ max_retries: null,
41
+ total_timeout: null,
42
+ connect_timeout: null,
43
+ sock_connect_timeout: null,
44
+ sock_read_timeout: null,
45
+ headers: null,
46
+ download_concurrency: null,
47
+ rate_limit: null
48
+ )
49
+ ```
50
+
@@ -0,0 +1,40 @@
1
+ # PulpGemClient::RemoteNetworkConfigResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] |
8
+ | **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional] |
9
+ | **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional] |
10
+ | **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional] |
11
+ | **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] |
12
+ | **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
13
+ | **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
14
+ | **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
15
+ | **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
16
+ | **headers** | **Array&lt;Object&gt;** | Headers for aiohttp.Clientsession | [optional] |
17
+ | **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] |
18
+ | **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'pulp_gem_client'
24
+
25
+ instance = PulpGemClient::RemoteNetworkConfigResponse.new(
26
+ ca_cert: null,
27
+ client_cert: null,
28
+ tls_validation: null,
29
+ proxy_url: null,
30
+ max_retries: null,
31
+ total_timeout: null,
32
+ connect_timeout: null,
33
+ sock_connect_timeout: null,
34
+ sock_read_timeout: null,
35
+ headers: null,
36
+ download_concurrency: null,
37
+ rate_limit: null
38
+ )
39
+ ```
40
+
@@ -26,8 +26,11 @@ module PulpGemClient
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
27
  # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
28
28
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
29
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
30
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
31
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
32
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
29
33
  # @option opts [String] :artifact Artifact file representing the physical content
30
- # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
31
34
  # @return [AsyncOperationResponse]
32
35
  def create(opts = {})
33
36
  data, _status_code, _headers = create_with_http_info(opts)
@@ -41,13 +44,20 @@ module PulpGemClient
41
44
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
45
  # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
43
46
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
47
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
48
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
49
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
50
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
44
51
  # @option opts [String] :artifact Artifact file representing the physical content
45
- # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
46
52
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
47
53
  def create_with_http_info(opts = {})
48
54
  if @api_client.config.debugging
49
55
  @api_client.config.logger.debug 'Calling API: ContentGemApi.create ...'
50
56
  end
57
+ if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentGemApi.create, the character length must be great than or equal to 1.'
59
+ end
60
+
51
61
  # resource path
52
62
  local_var_path = '/pulp/api/v3/content/gem/gem/'
53
63
 
@@ -70,8 +80,11 @@ module PulpGemClient
70
80
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
71
81
  form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
72
82
  form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
73
- form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
74
83
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
84
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
85
+ form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
86
+ form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
87
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
75
88
 
76
89
  # http body (model)
77
90
  post_body = opts[:debug_body]