pulp_python_client 3.4.1 → 3.5.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 +4 -4
- data/README.md +5 -5
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/DistributionsPypiApi.md +1 -1
- data/docs/PatchedpythonPythonRemote.md +7 -5
- data/docs/PatchedpythonPythonRepository.md +3 -3
- data/docs/PublicationsPypiApi.md +1 -1
- data/docs/PypiApi.md +1 -1
- data/docs/PypiLegacyApi.md +1 -1
- data/docs/PypiMetadataApi.md +1 -1
- data/docs/PypiSimpleApi.md +1 -1
- data/docs/PythonPythonRemote.md +7 -5
- data/docs/PythonPythonRemoteResponse.md +7 -5
- data/docs/PythonPythonRepository.md +3 -3
- data/docs/PythonPythonRepositoryResponse.md +3 -3
- data/docs/RemotesPythonApi.md +1 -1
- data/docs/RepositoriesPythonApi.md +1 -1
- data/docs/RepositoriesPythonVersionsApi.md +1 -1
- data/lib/pulp_python_client/configuration.rb +2 -2
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +18 -6
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +17 -16
- data/lib/pulp_python_client/models/python_python_remote.rb +18 -6
- data/lib/pulp_python_client/models/python_python_remote_response.rb +18 -6
- data/lib/pulp_python_client/models/python_python_repository.rb +17 -16
- data/lib/pulp_python_client/models/python_python_repository_response.rb +17 -16
- data/lib/pulp_python_client/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/patchedpython_python_remote_spec.rb +6 -0
- data/spec/models/patchedpython_python_repository_spec.rb +1 -1
- data/spec/models/python_python_remote_response_spec.rb +6 -0
- data/spec/models/python_python_remote_spec.rb +6 -0
- data/spec/models/python_python_repository_response_spec.rb +1 -1
- data/spec/models/python_python_repository_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 431954fcdf19f301d3a9e9595fcb9765dfcfc01a724028de33ba3924b3b1b532
|
|
4
|
+
data.tar.gz: 825e8b28a436296e9436ffef2b56bbb6cb100ec9c6b0d21ae6a993a9c34d6716
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4363b0fb06eb1a7f51a094de9f20b6e58e93852e20bd88846dc39a0cf91a26ead1a85c53d8aad3168e3c7ee2df8f0e645f0df9c02d3ed5da0bb761695dbd540b
|
|
7
|
+
data.tar.gz: '08670098e3abebb3b0093ea8d90b57a68265e05ff368e779414934c1f67e0cb515e5b2dcd4c513b81283dddf8c8b9f55c625b2186ac71b6ce9b0cb01001cdc41'
|
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.
|
|
10
|
+
- Package version: 3.5.0
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build pulp_python_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./pulp_python_client-3.
|
|
27
|
+
gem install ./pulp_python_client-3.5.0.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_python_client-3.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_python_client-3.5.0.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'pulp_python_client', '~> 3.
|
|
36
|
+
gem 'pulp_python_client', '~> 3.5.0'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -106,7 +106,7 @@ end
|
|
|
106
106
|
|
|
107
107
|
## Documentation for API Endpoints
|
|
108
108
|
|
|
109
|
-
All URIs are relative to *
|
|
109
|
+
All URIs are relative to *https://pulp*
|
|
110
110
|
|
|
111
111
|
Class | Method | HTTP request | Description
|
|
112
112
|
------------ | ------------- | ------------- | -------------
|
data/docs/ContentPackagesApi.md
CHANGED
|
@@ -16,12 +16,13 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
19
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
|
19
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
20
21
|
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. | [optional]
|
|
21
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
|
|
22
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
|
23
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
|
24
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
|
22
|
+
**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]
|
|
23
|
+
**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]
|
|
24
|
+
**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]
|
|
25
|
+
**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]
|
|
25
26
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
26
27
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
|
27
28
|
**includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
|
|
@@ -49,6 +50,7 @@ instance = PulpPythonClient::PatchedpythonPythonRemote.new(name: null,
|
|
|
49
50
|
password: null,
|
|
50
51
|
pulp_labels: null,
|
|
51
52
|
download_concurrency: null,
|
|
53
|
+
max_retries: null,
|
|
52
54
|
policy: null,
|
|
53
55
|
total_timeout: null,
|
|
54
56
|
connect_timeout: null,
|
|
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
8
8
|
**name** | **String** | A unique name for this repository. | [optional]
|
|
9
9
|
**description** | **String** | An optional description. | [optional]
|
|
10
|
-
**
|
|
11
|
-
**remote** | **String** |
|
|
10
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
11
|
+
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
|
12
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
|
13
13
|
|
|
14
14
|
## Code Sample
|
|
@@ -19,7 +19,7 @@ require 'PulpPythonClient'
|
|
|
19
19
|
instance = PulpPythonClient::PatchedpythonPythonRepository.new(pulp_labels: null,
|
|
20
20
|
name: null,
|
|
21
21
|
description: null,
|
|
22
|
-
|
|
22
|
+
retain_repo_versions: null,
|
|
23
23
|
remote: null,
|
|
24
24
|
autopublish: null)
|
|
25
25
|
```
|
data/docs/PublicationsPypiApi.md
CHANGED
data/docs/PypiApi.md
CHANGED
data/docs/PypiLegacyApi.md
CHANGED
data/docs/PypiMetadataApi.md
CHANGED
data/docs/PypiSimpleApi.md
CHANGED
data/docs/PythonPythonRemote.md
CHANGED
|
@@ -16,12 +16,13 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
19
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
|
19
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
20
21
|
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. | [optional]
|
|
21
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
|
|
22
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
|
23
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
|
24
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
|
22
|
+
**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]
|
|
23
|
+
**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]
|
|
24
|
+
**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]
|
|
25
|
+
**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]
|
|
25
26
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
26
27
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
|
27
28
|
**includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
|
|
@@ -49,6 +50,7 @@ instance = PulpPythonClient::PythonPythonRemote.new(name: null,
|
|
|
49
50
|
password: null,
|
|
50
51
|
pulp_labels: null,
|
|
51
52
|
download_concurrency: null,
|
|
53
|
+
max_retries: null,
|
|
52
54
|
policy: null,
|
|
53
55
|
total_timeout: null,
|
|
54
56
|
connect_timeout: null,
|
|
@@ -14,12 +14,13 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
15
15
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
16
16
|
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
|
17
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
|
17
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
18
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
18
19
|
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. | [optional]
|
|
19
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
|
|
20
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
|
21
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
|
22
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
|
20
|
+
**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]
|
|
21
|
+
**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]
|
|
22
|
+
**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]
|
|
23
|
+
**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]
|
|
23
24
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
24
25
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
|
25
26
|
**includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
|
|
@@ -45,6 +46,7 @@ instance = PulpPythonClient::PythonPythonRemoteResponse.new(pulp_href: null,
|
|
|
45
46
|
pulp_labels: null,
|
|
46
47
|
pulp_last_updated: null,
|
|
47
48
|
download_concurrency: null,
|
|
49
|
+
max_retries: null,
|
|
48
50
|
policy: null,
|
|
49
51
|
total_timeout: null,
|
|
50
52
|
connect_timeout: null,
|
|
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
8
8
|
**name** | **String** | A unique name for this repository. |
|
|
9
9
|
**description** | **String** | An optional description. | [optional]
|
|
10
|
-
**
|
|
11
|
-
**remote** | **String** |
|
|
10
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
11
|
+
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
|
12
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
|
13
13
|
|
|
14
14
|
## Code Sample
|
|
@@ -19,7 +19,7 @@ require 'PulpPythonClient'
|
|
|
19
19
|
instance = PulpPythonClient::PythonPythonRepository.new(pulp_labels: null,
|
|
20
20
|
name: null,
|
|
21
21
|
description: null,
|
|
22
|
-
|
|
22
|
+
retain_repo_versions: null,
|
|
23
23
|
remote: null,
|
|
24
24
|
autopublish: null)
|
|
25
25
|
```
|
|
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**latest_version_href** | **String** | | [optional] [readonly]
|
|
12
12
|
**name** | **String** | A unique name for this repository. |
|
|
13
13
|
**description** | **String** | An optional description. | [optional]
|
|
14
|
-
**
|
|
15
|
-
**remote** | **String** |
|
|
14
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
15
|
+
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
|
16
16
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
|
17
17
|
|
|
18
18
|
## Code Sample
|
|
@@ -27,7 +27,7 @@ instance = PulpPythonClient::PythonPythonRepositoryResponse.new(pulp_href: null,
|
|
|
27
27
|
latest_version_href: null,
|
|
28
28
|
name: null,
|
|
29
29
|
description: null,
|
|
30
|
-
|
|
30
|
+
retain_repo_versions: null,
|
|
31
31
|
remote: null,
|
|
32
32
|
autopublish: null)
|
|
33
33
|
```
|
data/docs/RemotesPythonApi.md
CHANGED
|
@@ -127,7 +127,7 @@ module PulpPythonClient
|
|
|
127
127
|
attr_accessor :force_ending_format
|
|
128
128
|
|
|
129
129
|
def initialize
|
|
130
|
-
@scheme = '
|
|
130
|
+
@scheme = 'https'
|
|
131
131
|
@host = 'pulp'
|
|
132
132
|
@base_path = ''
|
|
133
133
|
@api_key = {}
|
|
@@ -209,7 +209,7 @@ module PulpPythonClient
|
|
|
209
209
|
def server_settings
|
|
210
210
|
[
|
|
211
211
|
{
|
|
212
|
-
url: "
|
|
212
|
+
url: "https://pulp/",
|
|
213
213
|
description: "No description provided",
|
|
214
214
|
}
|
|
215
215
|
]
|
|
@@ -50,22 +50,25 @@ module PulpPythonClient
|
|
|
50
50
|
|
|
51
51
|
attr_accessor :pulp_labels
|
|
52
52
|
|
|
53
|
-
# Total number of simultaneous connections.
|
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
54
54
|
attr_accessor :download_concurrency
|
|
55
55
|
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
57
|
+
attr_accessor :max_retries
|
|
58
|
+
|
|
56
59
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
|
57
60
|
attr_accessor :policy
|
|
58
61
|
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
60
63
|
attr_accessor :total_timeout
|
|
61
64
|
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
63
66
|
attr_accessor :connect_timeout
|
|
64
67
|
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
|
68
|
+
# 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.
|
|
66
69
|
attr_accessor :sock_connect_timeout
|
|
67
70
|
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
71
|
+
# 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.
|
|
69
72
|
attr_accessor :sock_read_timeout
|
|
70
73
|
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
|
@@ -108,6 +111,7 @@ module PulpPythonClient
|
|
|
108
111
|
:'password' => :'password',
|
|
109
112
|
:'pulp_labels' => :'pulp_labels',
|
|
110
113
|
:'download_concurrency' => :'download_concurrency',
|
|
114
|
+
:'max_retries' => :'max_retries',
|
|
111
115
|
:'policy' => :'policy',
|
|
112
116
|
:'total_timeout' => :'total_timeout',
|
|
113
117
|
:'connect_timeout' => :'connect_timeout',
|
|
@@ -140,6 +144,7 @@ module PulpPythonClient
|
|
|
140
144
|
:'password' => :'String',
|
|
141
145
|
:'pulp_labels' => :'Object',
|
|
142
146
|
:'download_concurrency' => :'Integer',
|
|
147
|
+
:'max_retries' => :'Integer',
|
|
143
148
|
:'policy' => :'PolicyEnum',
|
|
144
149
|
:'total_timeout' => :'Float',
|
|
145
150
|
:'connect_timeout' => :'Float',
|
|
@@ -167,6 +172,8 @@ module PulpPythonClient
|
|
|
167
172
|
:'proxy_password',
|
|
168
173
|
:'username',
|
|
169
174
|
:'password',
|
|
175
|
+
:'download_concurrency',
|
|
176
|
+
:'max_retries',
|
|
170
177
|
:'total_timeout',
|
|
171
178
|
:'connect_timeout',
|
|
172
179
|
:'sock_connect_timeout',
|
|
@@ -242,6 +249,10 @@ module PulpPythonClient
|
|
|
242
249
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
243
250
|
end
|
|
244
251
|
|
|
252
|
+
if attributes.key?(:'max_retries')
|
|
253
|
+
self.max_retries = attributes[:'max_retries']
|
|
254
|
+
end
|
|
255
|
+
|
|
245
256
|
if attributes.key?(:'policy')
|
|
246
257
|
self.policy = attributes[:'policy']
|
|
247
258
|
end
|
|
@@ -409,6 +420,7 @@ module PulpPythonClient
|
|
|
409
420
|
password == o.password &&
|
|
410
421
|
pulp_labels == o.pulp_labels &&
|
|
411
422
|
download_concurrency == o.download_concurrency &&
|
|
423
|
+
max_retries == o.max_retries &&
|
|
412
424
|
policy == o.policy &&
|
|
413
425
|
total_timeout == o.total_timeout &&
|
|
414
426
|
connect_timeout == o.connect_timeout &&
|
|
@@ -433,7 +445,7 @@ module PulpPythonClient
|
|
|
433
445
|
# Calculates hash code according to all attributes.
|
|
434
446
|
# @return [Integer] Hash code
|
|
435
447
|
def hash
|
|
436
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
448
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
437
449
|
end
|
|
438
450
|
|
|
439
451
|
# Builds the object from hash
|
|
@@ -24,8 +24,9 @@ module PulpPythonClient
|
|
|
24
24
|
attr_accessor :description
|
|
25
25
|
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
27
|
-
attr_accessor :
|
|
27
|
+
attr_accessor :retain_repo_versions
|
|
28
28
|
|
|
29
|
+
# An optional remote to use by default when syncing.
|
|
29
30
|
attr_accessor :remote
|
|
30
31
|
|
|
31
32
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
|
@@ -37,7 +38,7 @@ module PulpPythonClient
|
|
|
37
38
|
:'pulp_labels' => :'pulp_labels',
|
|
38
39
|
:'name' => :'name',
|
|
39
40
|
:'description' => :'description',
|
|
40
|
-
:'
|
|
41
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
41
42
|
:'remote' => :'remote',
|
|
42
43
|
:'autopublish' => :'autopublish'
|
|
43
44
|
}
|
|
@@ -49,7 +50,7 @@ module PulpPythonClient
|
|
|
49
50
|
:'pulp_labels' => :'Object',
|
|
50
51
|
:'name' => :'String',
|
|
51
52
|
:'description' => :'String',
|
|
52
|
-
:'
|
|
53
|
+
:'retain_repo_versions' => :'Integer',
|
|
53
54
|
:'remote' => :'String',
|
|
54
55
|
:'autopublish' => :'Boolean'
|
|
55
56
|
}
|
|
@@ -59,7 +60,7 @@ module PulpPythonClient
|
|
|
59
60
|
def self.openapi_nullable
|
|
60
61
|
Set.new([
|
|
61
62
|
:'description',
|
|
62
|
-
:'
|
|
63
|
+
:'retain_repo_versions',
|
|
63
64
|
:'remote',
|
|
64
65
|
])
|
|
65
66
|
end
|
|
@@ -91,8 +92,8 @@ module PulpPythonClient
|
|
|
91
92
|
self.description = attributes[:'description']
|
|
92
93
|
end
|
|
93
94
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
95
|
+
if attributes.key?(:'retain_repo_versions')
|
|
96
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
96
97
|
end
|
|
97
98
|
|
|
98
99
|
if attributes.key?(:'remote')
|
|
@@ -110,8 +111,8 @@ module PulpPythonClient
|
|
|
110
111
|
# @return Array for valid properties with the reasons
|
|
111
112
|
def list_invalid_properties
|
|
112
113
|
invalid_properties = Array.new
|
|
113
|
-
if !@
|
|
114
|
-
invalid_properties.push('invalid value for "
|
|
114
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
115
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
115
116
|
end
|
|
116
117
|
|
|
117
118
|
invalid_properties
|
|
@@ -120,18 +121,18 @@ module PulpPythonClient
|
|
|
120
121
|
# Check to see if the all the properties in the model are valid
|
|
121
122
|
# @return true if the model is valid
|
|
122
123
|
def valid?
|
|
123
|
-
return false if !@
|
|
124
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
124
125
|
true
|
|
125
126
|
end
|
|
126
127
|
|
|
127
128
|
# Custom attribute writer method with validation
|
|
128
|
-
# @param [Object]
|
|
129
|
-
def
|
|
130
|
-
if !
|
|
131
|
-
fail ArgumentError, 'invalid value for "
|
|
129
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
130
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
131
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
132
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
132
133
|
end
|
|
133
134
|
|
|
134
|
-
@
|
|
135
|
+
@retain_repo_versions = retain_repo_versions
|
|
135
136
|
end
|
|
136
137
|
|
|
137
138
|
# Checks equality by comparing each attribute.
|
|
@@ -142,7 +143,7 @@ module PulpPythonClient
|
|
|
142
143
|
pulp_labels == o.pulp_labels &&
|
|
143
144
|
name == o.name &&
|
|
144
145
|
description == o.description &&
|
|
145
|
-
|
|
146
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
146
147
|
remote == o.remote &&
|
|
147
148
|
autopublish == o.autopublish
|
|
148
149
|
end
|
|
@@ -156,7 +157,7 @@ module PulpPythonClient
|
|
|
156
157
|
# Calculates hash code according to all attributes.
|
|
157
158
|
# @return [Integer] Hash code
|
|
158
159
|
def hash
|
|
159
|
-
[pulp_labels, name, description,
|
|
160
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish].hash
|
|
160
161
|
end
|
|
161
162
|
|
|
162
163
|
# Builds the object from hash
|
|
@@ -50,22 +50,25 @@ module PulpPythonClient
|
|
|
50
50
|
|
|
51
51
|
attr_accessor :pulp_labels
|
|
52
52
|
|
|
53
|
-
# Total number of simultaneous connections.
|
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
54
54
|
attr_accessor :download_concurrency
|
|
55
55
|
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
57
|
+
attr_accessor :max_retries
|
|
58
|
+
|
|
56
59
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
|
57
60
|
attr_accessor :policy
|
|
58
61
|
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
60
63
|
attr_accessor :total_timeout
|
|
61
64
|
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
63
66
|
attr_accessor :connect_timeout
|
|
64
67
|
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
|
68
|
+
# 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.
|
|
66
69
|
attr_accessor :sock_connect_timeout
|
|
67
70
|
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
71
|
+
# 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.
|
|
69
72
|
attr_accessor :sock_read_timeout
|
|
70
73
|
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
|
@@ -108,6 +111,7 @@ module PulpPythonClient
|
|
|
108
111
|
:'password' => :'password',
|
|
109
112
|
:'pulp_labels' => :'pulp_labels',
|
|
110
113
|
:'download_concurrency' => :'download_concurrency',
|
|
114
|
+
:'max_retries' => :'max_retries',
|
|
111
115
|
:'policy' => :'policy',
|
|
112
116
|
:'total_timeout' => :'total_timeout',
|
|
113
117
|
:'connect_timeout' => :'connect_timeout',
|
|
@@ -140,6 +144,7 @@ module PulpPythonClient
|
|
|
140
144
|
:'password' => :'String',
|
|
141
145
|
:'pulp_labels' => :'Object',
|
|
142
146
|
:'download_concurrency' => :'Integer',
|
|
147
|
+
:'max_retries' => :'Integer',
|
|
143
148
|
:'policy' => :'PolicyEnum',
|
|
144
149
|
:'total_timeout' => :'Float',
|
|
145
150
|
:'connect_timeout' => :'Float',
|
|
@@ -167,6 +172,8 @@ module PulpPythonClient
|
|
|
167
172
|
:'proxy_password',
|
|
168
173
|
:'username',
|
|
169
174
|
:'password',
|
|
175
|
+
:'download_concurrency',
|
|
176
|
+
:'max_retries',
|
|
170
177
|
:'total_timeout',
|
|
171
178
|
:'connect_timeout',
|
|
172
179
|
:'sock_connect_timeout',
|
|
@@ -242,6 +249,10 @@ module PulpPythonClient
|
|
|
242
249
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
243
250
|
end
|
|
244
251
|
|
|
252
|
+
if attributes.key?(:'max_retries')
|
|
253
|
+
self.max_retries = attributes[:'max_retries']
|
|
254
|
+
end
|
|
255
|
+
|
|
245
256
|
if attributes.key?(:'policy')
|
|
246
257
|
self.policy = attributes[:'policy']
|
|
247
258
|
end
|
|
@@ -419,6 +430,7 @@ module PulpPythonClient
|
|
|
419
430
|
password == o.password &&
|
|
420
431
|
pulp_labels == o.pulp_labels &&
|
|
421
432
|
download_concurrency == o.download_concurrency &&
|
|
433
|
+
max_retries == o.max_retries &&
|
|
422
434
|
policy == o.policy &&
|
|
423
435
|
total_timeout == o.total_timeout &&
|
|
424
436
|
connect_timeout == o.connect_timeout &&
|
|
@@ -443,7 +455,7 @@ module PulpPythonClient
|
|
|
443
455
|
# Calculates hash code according to all attributes.
|
|
444
456
|
# @return [Integer] Hash code
|
|
445
457
|
def hash
|
|
446
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
458
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
447
459
|
end
|
|
448
460
|
|
|
449
461
|
# Builds the object from hash
|
|
@@ -43,22 +43,25 @@ module PulpPythonClient
|
|
|
43
43
|
# Timestamp of the most recent update of the remote.
|
|
44
44
|
attr_accessor :pulp_last_updated
|
|
45
45
|
|
|
46
|
-
# Total number of simultaneous connections.
|
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
47
47
|
attr_accessor :download_concurrency
|
|
48
48
|
|
|
49
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
50
|
+
attr_accessor :max_retries
|
|
51
|
+
|
|
49
52
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
|
50
53
|
attr_accessor :policy
|
|
51
54
|
|
|
52
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
53
56
|
attr_accessor :total_timeout
|
|
54
57
|
|
|
55
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
56
59
|
attr_accessor :connect_timeout
|
|
57
60
|
|
|
58
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
|
61
|
+
# 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.
|
|
59
62
|
attr_accessor :sock_connect_timeout
|
|
60
63
|
|
|
61
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
64
|
+
# 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.
|
|
62
65
|
attr_accessor :sock_read_timeout
|
|
63
66
|
|
|
64
67
|
# Headers for aiohttp.Clientsession
|
|
@@ -99,6 +102,7 @@ module PulpPythonClient
|
|
|
99
102
|
:'pulp_labels' => :'pulp_labels',
|
|
100
103
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
101
104
|
:'download_concurrency' => :'download_concurrency',
|
|
105
|
+
:'max_retries' => :'max_retries',
|
|
102
106
|
:'policy' => :'policy',
|
|
103
107
|
:'total_timeout' => :'total_timeout',
|
|
104
108
|
:'connect_timeout' => :'connect_timeout',
|
|
@@ -129,6 +133,7 @@ module PulpPythonClient
|
|
|
129
133
|
:'pulp_labels' => :'Object',
|
|
130
134
|
:'pulp_last_updated' => :'DateTime',
|
|
131
135
|
:'download_concurrency' => :'Integer',
|
|
136
|
+
:'max_retries' => :'Integer',
|
|
132
137
|
:'policy' => :'PolicyEnum',
|
|
133
138
|
:'total_timeout' => :'Float',
|
|
134
139
|
:'connect_timeout' => :'Float',
|
|
@@ -151,6 +156,8 @@ module PulpPythonClient
|
|
|
151
156
|
:'ca_cert',
|
|
152
157
|
:'client_cert',
|
|
153
158
|
:'proxy_url',
|
|
159
|
+
:'download_concurrency',
|
|
160
|
+
:'max_retries',
|
|
154
161
|
:'total_timeout',
|
|
155
162
|
:'connect_timeout',
|
|
156
163
|
:'sock_connect_timeout',
|
|
@@ -218,6 +225,10 @@ module PulpPythonClient
|
|
|
218
225
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
219
226
|
end
|
|
220
227
|
|
|
228
|
+
if attributes.key?(:'max_retries')
|
|
229
|
+
self.max_retries = attributes[:'max_retries']
|
|
230
|
+
end
|
|
231
|
+
|
|
221
232
|
if attributes.key?(:'policy')
|
|
222
233
|
self.policy = attributes[:'policy']
|
|
223
234
|
end
|
|
@@ -393,6 +404,7 @@ module PulpPythonClient
|
|
|
393
404
|
pulp_labels == o.pulp_labels &&
|
|
394
405
|
pulp_last_updated == o.pulp_last_updated &&
|
|
395
406
|
download_concurrency == o.download_concurrency &&
|
|
407
|
+
max_retries == o.max_retries &&
|
|
396
408
|
policy == o.policy &&
|
|
397
409
|
total_timeout == o.total_timeout &&
|
|
398
410
|
connect_timeout == o.connect_timeout &&
|
|
@@ -417,7 +429,7 @@ module PulpPythonClient
|
|
|
417
429
|
# Calculates hash code according to all attributes.
|
|
418
430
|
# @return [Integer] Hash code
|
|
419
431
|
def hash
|
|
420
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
432
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
|
421
433
|
end
|
|
422
434
|
|
|
423
435
|
# Builds the object from hash
|
|
@@ -24,8 +24,9 @@ module PulpPythonClient
|
|
|
24
24
|
attr_accessor :description
|
|
25
25
|
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
27
|
-
attr_accessor :
|
|
27
|
+
attr_accessor :retain_repo_versions
|
|
28
28
|
|
|
29
|
+
# An optional remote to use by default when syncing.
|
|
29
30
|
attr_accessor :remote
|
|
30
31
|
|
|
31
32
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
|
@@ -37,7 +38,7 @@ module PulpPythonClient
|
|
|
37
38
|
:'pulp_labels' => :'pulp_labels',
|
|
38
39
|
:'name' => :'name',
|
|
39
40
|
:'description' => :'description',
|
|
40
|
-
:'
|
|
41
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
41
42
|
:'remote' => :'remote',
|
|
42
43
|
:'autopublish' => :'autopublish'
|
|
43
44
|
}
|
|
@@ -49,7 +50,7 @@ module PulpPythonClient
|
|
|
49
50
|
:'pulp_labels' => :'Object',
|
|
50
51
|
:'name' => :'String',
|
|
51
52
|
:'description' => :'String',
|
|
52
|
-
:'
|
|
53
|
+
:'retain_repo_versions' => :'Integer',
|
|
53
54
|
:'remote' => :'String',
|
|
54
55
|
:'autopublish' => :'Boolean'
|
|
55
56
|
}
|
|
@@ -59,7 +60,7 @@ module PulpPythonClient
|
|
|
59
60
|
def self.openapi_nullable
|
|
60
61
|
Set.new([
|
|
61
62
|
:'description',
|
|
62
|
-
:'
|
|
63
|
+
:'retain_repo_versions',
|
|
63
64
|
:'remote',
|
|
64
65
|
])
|
|
65
66
|
end
|
|
@@ -91,8 +92,8 @@ module PulpPythonClient
|
|
|
91
92
|
self.description = attributes[:'description']
|
|
92
93
|
end
|
|
93
94
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
95
|
+
if attributes.key?(:'retain_repo_versions')
|
|
96
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
96
97
|
end
|
|
97
98
|
|
|
98
99
|
if attributes.key?(:'remote')
|
|
@@ -114,8 +115,8 @@ module PulpPythonClient
|
|
|
114
115
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
115
116
|
end
|
|
116
117
|
|
|
117
|
-
if !@
|
|
118
|
-
invalid_properties.push('invalid value for "
|
|
118
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
119
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
119
120
|
end
|
|
120
121
|
|
|
121
122
|
invalid_properties
|
|
@@ -125,18 +126,18 @@ module PulpPythonClient
|
|
|
125
126
|
# @return true if the model is valid
|
|
126
127
|
def valid?
|
|
127
128
|
return false if @name.nil?
|
|
128
|
-
return false if !@
|
|
129
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
129
130
|
true
|
|
130
131
|
end
|
|
131
132
|
|
|
132
133
|
# Custom attribute writer method with validation
|
|
133
|
-
# @param [Object]
|
|
134
|
-
def
|
|
135
|
-
if !
|
|
136
|
-
fail ArgumentError, 'invalid value for "
|
|
134
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
135
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
136
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
137
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
137
138
|
end
|
|
138
139
|
|
|
139
|
-
@
|
|
140
|
+
@retain_repo_versions = retain_repo_versions
|
|
140
141
|
end
|
|
141
142
|
|
|
142
143
|
# Checks equality by comparing each attribute.
|
|
@@ -147,7 +148,7 @@ module PulpPythonClient
|
|
|
147
148
|
pulp_labels == o.pulp_labels &&
|
|
148
149
|
name == o.name &&
|
|
149
150
|
description == o.description &&
|
|
150
|
-
|
|
151
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
151
152
|
remote == o.remote &&
|
|
152
153
|
autopublish == o.autopublish
|
|
153
154
|
end
|
|
@@ -161,7 +162,7 @@ module PulpPythonClient
|
|
|
161
162
|
# Calculates hash code according to all attributes.
|
|
162
163
|
# @return [Integer] Hash code
|
|
163
164
|
def hash
|
|
164
|
-
[pulp_labels, name, description,
|
|
165
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish].hash
|
|
165
166
|
end
|
|
166
167
|
|
|
167
168
|
# Builds the object from hash
|
|
@@ -33,8 +33,9 @@ module PulpPythonClient
|
|
|
33
33
|
attr_accessor :description
|
|
34
34
|
|
|
35
35
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
36
|
-
attr_accessor :
|
|
36
|
+
attr_accessor :retain_repo_versions
|
|
37
37
|
|
|
38
|
+
# An optional remote to use by default when syncing.
|
|
38
39
|
attr_accessor :remote
|
|
39
40
|
|
|
40
41
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
|
@@ -50,7 +51,7 @@ module PulpPythonClient
|
|
|
50
51
|
:'latest_version_href' => :'latest_version_href',
|
|
51
52
|
:'name' => :'name',
|
|
52
53
|
:'description' => :'description',
|
|
53
|
-
:'
|
|
54
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
54
55
|
:'remote' => :'remote',
|
|
55
56
|
:'autopublish' => :'autopublish'
|
|
56
57
|
}
|
|
@@ -66,7 +67,7 @@ module PulpPythonClient
|
|
|
66
67
|
:'latest_version_href' => :'String',
|
|
67
68
|
:'name' => :'String',
|
|
68
69
|
:'description' => :'String',
|
|
69
|
-
:'
|
|
70
|
+
:'retain_repo_versions' => :'Integer',
|
|
70
71
|
:'remote' => :'String',
|
|
71
72
|
:'autopublish' => :'Boolean'
|
|
72
73
|
}
|
|
@@ -76,7 +77,7 @@ module PulpPythonClient
|
|
|
76
77
|
def self.openapi_nullable
|
|
77
78
|
Set.new([
|
|
78
79
|
:'description',
|
|
79
|
-
:'
|
|
80
|
+
:'retain_repo_versions',
|
|
80
81
|
:'remote',
|
|
81
82
|
])
|
|
82
83
|
end
|
|
@@ -124,8 +125,8 @@ module PulpPythonClient
|
|
|
124
125
|
self.description = attributes[:'description']
|
|
125
126
|
end
|
|
126
127
|
|
|
127
|
-
if attributes.key?(:'
|
|
128
|
-
self.
|
|
128
|
+
if attributes.key?(:'retain_repo_versions')
|
|
129
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
129
130
|
end
|
|
130
131
|
|
|
131
132
|
if attributes.key?(:'remote')
|
|
@@ -147,8 +148,8 @@ module PulpPythonClient
|
|
|
147
148
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
148
149
|
end
|
|
149
150
|
|
|
150
|
-
if !@
|
|
151
|
-
invalid_properties.push('invalid value for "
|
|
151
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
152
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
152
153
|
end
|
|
153
154
|
|
|
154
155
|
invalid_properties
|
|
@@ -158,18 +159,18 @@ module PulpPythonClient
|
|
|
158
159
|
# @return true if the model is valid
|
|
159
160
|
def valid?
|
|
160
161
|
return false if @name.nil?
|
|
161
|
-
return false if !@
|
|
162
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
162
163
|
true
|
|
163
164
|
end
|
|
164
165
|
|
|
165
166
|
# Custom attribute writer method with validation
|
|
166
|
-
# @param [Object]
|
|
167
|
-
def
|
|
168
|
-
if !
|
|
169
|
-
fail ArgumentError, 'invalid value for "
|
|
167
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
168
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
169
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
170
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
170
171
|
end
|
|
171
172
|
|
|
172
|
-
@
|
|
173
|
+
@retain_repo_versions = retain_repo_versions
|
|
173
174
|
end
|
|
174
175
|
|
|
175
176
|
# Checks equality by comparing each attribute.
|
|
@@ -184,7 +185,7 @@ module PulpPythonClient
|
|
|
184
185
|
latest_version_href == o.latest_version_href &&
|
|
185
186
|
name == o.name &&
|
|
186
187
|
description == o.description &&
|
|
187
|
-
|
|
188
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
188
189
|
remote == o.remote &&
|
|
189
190
|
autopublish == o.autopublish
|
|
190
191
|
end
|
|
@@ -198,7 +199,7 @@ module PulpPythonClient
|
|
|
198
199
|
# Calculates hash code according to all attributes.
|
|
199
200
|
# @return [Integer] Hash code
|
|
200
201
|
def hash
|
|
201
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
|
202
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish].hash
|
|
202
203
|
end
|
|
203
204
|
|
|
204
205
|
# Builds the object from hash
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -18,7 +18,7 @@ describe PulpPythonClient::Configuration do
|
|
|
18
18
|
before(:each) do
|
|
19
19
|
# uncomment below to setup host and base_path
|
|
20
20
|
# require 'URI'
|
|
21
|
-
# uri = URI.parse("
|
|
21
|
+
# uri = URI.parse("https://pulp")
|
|
22
22
|
# PulpPythonClient.configure do |c|
|
|
23
23
|
# c.host = uri.host
|
|
24
24
|
# c.base_path = uri.path
|
|
@@ -28,14 +28,14 @@ describe PulpPythonClient::Configuration do
|
|
|
28
28
|
describe '#base_url' do
|
|
29
29
|
it 'should have the default value' do
|
|
30
30
|
# uncomment below to test default value of the base path
|
|
31
|
-
# expect(config.base_url).to eq("
|
|
31
|
+
# expect(config.base_url).to eq("https://pulp")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'should remove trailing slashes' do
|
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
|
36
36
|
config.base_path = base_path
|
|
37
37
|
# uncomment below to test trailing slashes
|
|
38
|
-
# expect(config.base_url).to eq("
|
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -110,6 +110,12 @@ describe 'PatchedpythonPythonRemote' do
|
|
|
110
110
|
end
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
+
describe 'test attribute "max_retries"' do
|
|
114
|
+
it 'should work' do
|
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
113
119
|
describe 'test attribute "policy"' do
|
|
114
120
|
it 'should work' do
|
|
115
121
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -50,7 +50,7 @@ describe 'PatchedpythonPythonRepository' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
@@ -98,6 +98,12 @@ describe 'PythonPythonRemoteResponse' do
|
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
+
describe 'test attribute "max_retries"' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
101
107
|
describe 'test attribute "policy"' do
|
|
102
108
|
it 'should work' do
|
|
103
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -110,6 +110,12 @@ describe 'PythonPythonRemote' do
|
|
|
110
110
|
end
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
+
describe 'test attribute "max_retries"' do
|
|
114
|
+
it 'should work' do
|
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
113
119
|
describe 'test attribute "policy"' do
|
|
114
120
|
it 'should work' do
|
|
115
121
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -74,7 +74,7 @@ describe 'PythonPythonRepositoryResponse' do
|
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
describe 'test attribute "
|
|
77
|
+
describe 'test attribute "retain_repo_versions"' do
|
|
78
78
|
it 'should work' do
|
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
80
|
end
|
|
@@ -50,7 +50,7 @@ describe 'PythonPythonRepository' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
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.
|
|
4
|
+
version: 3.5.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: 2021-08-
|
|
11
|
+
date: 2021-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|