pulp_ansible_client 0.6.2 → 0.7.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 +9 -6
- data/docs/AnsibleAnsibleRepository.md +6 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
- data/docs/AnsibleCollectionRemote.md +4 -0
- data/docs/AnsibleCollectionRemoteResponse.md +4 -0
- data/docs/AnsibleCollectionVersion.md +7 -1
- data/docs/AnsibleCollectionVersionResponse.md +10 -4
- data/docs/{RepositorySyncURL.md → AnsibleRepositorySyncURL.md} +5 -3
- data/docs/AnsibleRoleRemote.md +5 -1
- data/docs/AnsibleRoleRemoteResponse.md +5 -1
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/CollectionResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +6 -0
- data/docs/DistributionsAnsibleApi.md +8 -0
- data/docs/PatchedansibleAnsibleRepository.md +6 -2
- data/docs/PatchedansibleCollectionRemote.md +4 -0
- data/docs/PatchedansibleRoleRemote.md +5 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +6 -4
- data/docs/PulpAnsibleGalaxyApiV3AllApi.md +138 -0
- data/docs/PulpAnsibleGalaxyV3Api.md +61 -0
- data/docs/RemotesCollectionApi.md +8 -0
- data/docs/RemotesRoleApi.md +8 -0
- data/docs/{PatchedCollection.md → RepoMetadataResponse.md} +3 -3
- data/docs/RepositoriesAnsibleApi.md +12 -4
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +12 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +12 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +190 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_v3_api.rb +88 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +12 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +12 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +21 -9
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +25 -5
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +25 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +21 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +21 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +60 -4
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +69 -13
- data/lib/pulp_ansible_client/models/{repository_sync_url.rb → ansible_repository_sync_url.rb} +20 -8
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +25 -5
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +25 -5
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/collection_response.rb +0 -5
- data/lib/pulp_ansible_client/models/collection_version_response.rb +56 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +25 -5
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +21 -1
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +25 -5
- data/lib/pulp_ansible_client/models/{patched_collection.rb → repo_metadata_response.rb} +16 -11
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -2
- data/spec/api/distributions_ansible_api_spec.rb +4 -0
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +73 -0
- data/spec/api/pulp_ansible_galaxy_v3_api_spec.rb +48 -0
- data/spec/api/remotes_collection_api_spec.rb +4 -0
- data/spec/api/remotes_role_api_spec.rb +4 -0
- data/spec/api/repositories_ansible_api_spec.rb +5 -1
- data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_spec.rb +12 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +12 -0
- data/spec/models/ansible_collection_remote_spec.rb +12 -0
- data/spec/models/ansible_collection_version_response_spec.rb +21 -3
- data/spec/models/ansible_collection_version_spec.rb +18 -0
- data/spec/models/{repository_sync_url_spec.rb → ansible_repository_sync_url_spec.rb} +12 -6
- data/spec/models/ansible_role_remote_response_spec.rb +12 -0
- data/spec/models/ansible_role_remote_spec.rb +12 -0
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/collection_version_response_spec.rb +18 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +12 -0
- data/spec/models/patchedansible_collection_remote_spec.rb +12 -0
- data/spec/models/patchedansible_role_remote_spec.rb +12 -0
- data/spec/models/{patched_collection_spec.rb → repo_metadata_response_spec.rb} +7 -7
- metadata +18 -10
@@ -47,6 +47,8 @@ module PulpAnsibleClient
|
|
47
47
|
# The password to be used for authentication when syncing.
|
48
48
|
attr_accessor :password
|
49
49
|
|
50
|
+
attr_accessor :pulp_labels
|
51
|
+
|
50
52
|
# Timestamp of the most recent update of the remote.
|
51
53
|
attr_accessor :pulp_last_updated
|
52
54
|
|
@@ -68,6 +70,9 @@ module PulpAnsibleClient
|
|
68
70
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
69
71
|
attr_accessor :sock_read_timeout
|
70
72
|
|
73
|
+
# Limits total download rate in requests per second
|
74
|
+
attr_accessor :rate_limit
|
75
|
+
|
71
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
77
|
def self.attribute_map
|
73
78
|
{
|
@@ -82,13 +87,15 @@ module PulpAnsibleClient
|
|
82
87
|
:'proxy_url' => :'proxy_url',
|
83
88
|
:'username' => :'username',
|
84
89
|
:'password' => :'password',
|
90
|
+
:'pulp_labels' => :'pulp_labels',
|
85
91
|
:'pulp_last_updated' => :'pulp_last_updated',
|
86
92
|
:'download_concurrency' => :'download_concurrency',
|
87
93
|
:'policy' => :'policy',
|
88
94
|
:'total_timeout' => :'total_timeout',
|
89
95
|
:'connect_timeout' => :'connect_timeout',
|
90
96
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
91
|
-
:'sock_read_timeout' => :'sock_read_timeout'
|
97
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
+
:'rate_limit' => :'rate_limit'
|
92
99
|
}
|
93
100
|
end
|
94
101
|
|
@@ -106,13 +113,15 @@ module PulpAnsibleClient
|
|
106
113
|
:'proxy_url' => :'String',
|
107
114
|
:'username' => :'String',
|
108
115
|
:'password' => :'String',
|
116
|
+
:'pulp_labels' => :'Object',
|
109
117
|
:'pulp_last_updated' => :'DateTime',
|
110
118
|
:'download_concurrency' => :'Integer',
|
111
119
|
:'policy' => :'PolicyEnum',
|
112
120
|
:'total_timeout' => :'Float',
|
113
121
|
:'connect_timeout' => :'Float',
|
114
122
|
:'sock_connect_timeout' => :'Float',
|
115
|
-
:'sock_read_timeout' => :'Float'
|
123
|
+
:'sock_read_timeout' => :'Float',
|
124
|
+
:'rate_limit' => :'Integer'
|
116
125
|
}
|
117
126
|
end
|
118
127
|
|
@@ -128,7 +137,8 @@ module PulpAnsibleClient
|
|
128
137
|
:'total_timeout',
|
129
138
|
:'connect_timeout',
|
130
139
|
:'sock_connect_timeout',
|
131
|
-
:'sock_read_timeout'
|
140
|
+
:'sock_read_timeout',
|
141
|
+
:'rate_limit'
|
132
142
|
])
|
133
143
|
end
|
134
144
|
|
@@ -191,6 +201,10 @@ module PulpAnsibleClient
|
|
191
201
|
self.password = attributes[:'password']
|
192
202
|
end
|
193
203
|
|
204
|
+
if attributes.key?(:'pulp_labels')
|
205
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
206
|
+
end
|
207
|
+
|
194
208
|
if attributes.key?(:'pulp_last_updated')
|
195
209
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
196
210
|
end
|
@@ -218,6 +232,10 @@ module PulpAnsibleClient
|
|
218
232
|
if attributes.key?(:'sock_read_timeout')
|
219
233
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
220
234
|
end
|
235
|
+
|
236
|
+
if attributes.key?(:'rate_limit')
|
237
|
+
self.rate_limit = attributes[:'rate_limit']
|
238
|
+
end
|
221
239
|
end
|
222
240
|
|
223
241
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -334,13 +352,15 @@ module PulpAnsibleClient
|
|
334
352
|
proxy_url == o.proxy_url &&
|
335
353
|
username == o.username &&
|
336
354
|
password == o.password &&
|
355
|
+
pulp_labels == o.pulp_labels &&
|
337
356
|
pulp_last_updated == o.pulp_last_updated &&
|
338
357
|
download_concurrency == o.download_concurrency &&
|
339
358
|
policy == o.policy &&
|
340
359
|
total_timeout == o.total_timeout &&
|
341
360
|
connect_timeout == o.connect_timeout &&
|
342
361
|
sock_connect_timeout == o.sock_connect_timeout &&
|
343
|
-
sock_read_timeout == o.sock_read_timeout
|
362
|
+
sock_read_timeout == o.sock_read_timeout &&
|
363
|
+
rate_limit == o.rate_limit
|
344
364
|
end
|
345
365
|
|
346
366
|
# @see the `==` method
|
@@ -352,7 +372,7 @@ module PulpAnsibleClient
|
|
352
372
|
# Calculates hash code according to all attributes.
|
353
373
|
# @return [Integer] Hash code
|
354
374
|
def hash
|
355
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
|
375
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
|
356
376
|
end
|
357
377
|
|
358
378
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
18
20
|
# Artifact file representing the physical content
|
19
21
|
attr_accessor :artifact
|
20
22
|
|
21
23
|
# Timestamp of creation.
|
22
24
|
attr_accessor :pulp_created
|
23
25
|
|
24
|
-
attr_accessor :pulp_href
|
25
|
-
|
26
26
|
attr_accessor :version
|
27
27
|
|
28
28
|
attr_accessor :name
|
@@ -32,9 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'pulp_href' => :'pulp_href',
|
35
36
|
:'artifact' => :'artifact',
|
36
37
|
:'pulp_created' => :'pulp_created',
|
37
|
-
:'pulp_href' => :'pulp_href',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
+
:'pulp_href' => :'String',
|
47
48
|
:'artifact' => :'String',
|
48
49
|
:'pulp_created' => :'DateTime',
|
49
|
-
:'pulp_href' => :'String',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,6 +74,10 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
+
if attributes.key?(:'pulp_href')
|
78
|
+
self.pulp_href = attributes[:'pulp_href']
|
79
|
+
end
|
80
|
+
|
77
81
|
if attributes.key?(:'artifact')
|
78
82
|
self.artifact = attributes[:'artifact']
|
79
83
|
end
|
@@ -82,10 +86,6 @@ module PulpAnsibleClient
|
|
82
86
|
self.pulp_created = attributes[:'pulp_created']
|
83
87
|
end
|
84
88
|
|
85
|
-
if attributes.key?(:'pulp_href')
|
86
|
-
self.pulp_href = attributes[:'pulp_href']
|
87
|
-
end
|
88
|
-
|
89
89
|
if attributes.key?(:'version')
|
90
90
|
self.version = attributes[:'version']
|
91
91
|
end
|
@@ -137,9 +137,9 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
+
pulp_href == o.pulp_href &&
|
140
141
|
artifact == o.artifact &&
|
141
142
|
pulp_created == o.pulp_created &&
|
142
|
-
pulp_href == o.pulp_href &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Integer] Hash code
|
156
156
|
def hash
|
157
|
-
[artifact, pulp_created,
|
157
|
+
[pulp_href, artifact, pulp_created, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|
@@ -117,17 +117,12 @@ module PulpAnsibleClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @deprecated.nil?
|
121
|
-
invalid_properties.push('invalid value for "deprecated", deprecated cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
120
|
invalid_properties
|
125
121
|
end
|
126
122
|
|
127
123
|
# Check to see if the all the properties in the model are valid
|
128
124
|
# @return true if the model is valid
|
129
125
|
def valid?
|
130
|
-
return false if @deprecated.nil?
|
131
126
|
true
|
132
127
|
end
|
133
128
|
|
@@ -23,6 +23,14 @@ module PulpAnsibleClient
|
|
23
23
|
|
24
24
|
attr_accessor :updated_at
|
25
25
|
|
26
|
+
# A JSON field holding MANIFEST.json data.
|
27
|
+
attr_accessor :manifest
|
28
|
+
|
29
|
+
# A JSON field holding FILES.json data.
|
30
|
+
attr_accessor :files
|
31
|
+
|
32
|
+
attr_accessor :requires_ansible
|
33
|
+
|
26
34
|
attr_accessor :artifact
|
27
35
|
|
28
36
|
attr_accessor :collection
|
@@ -42,6 +50,9 @@ module PulpAnsibleClient
|
|
42
50
|
:'href' => :'href',
|
43
51
|
:'created_at' => :'created_at',
|
44
52
|
:'updated_at' => :'updated_at',
|
53
|
+
:'manifest' => :'manifest',
|
54
|
+
:'files' => :'files',
|
55
|
+
:'requires_ansible' => :'requires_ansible',
|
45
56
|
:'artifact' => :'artifact',
|
46
57
|
:'collection' => :'collection',
|
47
58
|
:'download_url' => :'download_url',
|
@@ -58,6 +69,9 @@ module PulpAnsibleClient
|
|
58
69
|
:'href' => :'String',
|
59
70
|
:'created_at' => :'DateTime',
|
60
71
|
:'updated_at' => :'DateTime',
|
72
|
+
:'manifest' => :'Object',
|
73
|
+
:'files' => :'Object',
|
74
|
+
:'requires_ansible' => :'String',
|
61
75
|
:'artifact' => :'ArtifactRefResponse',
|
62
76
|
:'collection' => :'CollectionRefResponse',
|
63
77
|
:'download_url' => :'String',
|
@@ -70,6 +84,7 @@ module PulpAnsibleClient
|
|
70
84
|
# List of attributes with nullable: true
|
71
85
|
def self.openapi_nullable
|
72
86
|
Set.new([
|
87
|
+
:'requires_ansible',
|
73
88
|
])
|
74
89
|
end
|
75
90
|
|
@@ -104,6 +119,18 @@ module PulpAnsibleClient
|
|
104
119
|
self.updated_at = attributes[:'updated_at']
|
105
120
|
end
|
106
121
|
|
122
|
+
if attributes.key?(:'manifest')
|
123
|
+
self.manifest = attributes[:'manifest']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'files')
|
127
|
+
self.files = attributes[:'files']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'requires_ansible')
|
131
|
+
self.requires_ansible = attributes[:'requires_ansible']
|
132
|
+
end
|
133
|
+
|
107
134
|
if attributes.key?(:'artifact')
|
108
135
|
self.artifact = attributes[:'artifact']
|
109
136
|
end
|
@@ -141,6 +168,18 @@ module PulpAnsibleClient
|
|
141
168
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
142
169
|
end
|
143
170
|
|
171
|
+
if @manifest.nil?
|
172
|
+
invalid_properties.push('invalid value for "manifest", manifest cannot be nil.')
|
173
|
+
end
|
174
|
+
|
175
|
+
if @files.nil?
|
176
|
+
invalid_properties.push('invalid value for "files", files cannot be nil.')
|
177
|
+
end
|
178
|
+
|
179
|
+
if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
180
|
+
invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
|
181
|
+
end
|
182
|
+
|
144
183
|
invalid_properties
|
145
184
|
end
|
146
185
|
|
@@ -149,9 +188,22 @@ module PulpAnsibleClient
|
|
149
188
|
def valid?
|
150
189
|
return false if @created_at.nil?
|
151
190
|
return false if @updated_at.nil?
|
191
|
+
return false if @manifest.nil?
|
192
|
+
return false if @files.nil?
|
193
|
+
return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
152
194
|
true
|
153
195
|
end
|
154
196
|
|
197
|
+
# Custom attribute writer method with validation
|
198
|
+
# @param [Object] requires_ansible Value to be assigned
|
199
|
+
def requires_ansible=(requires_ansible)
|
200
|
+
if !requires_ansible.nil? && requires_ansible.to_s.length > 255
|
201
|
+
fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
|
202
|
+
end
|
203
|
+
|
204
|
+
@requires_ansible = requires_ansible
|
205
|
+
end
|
206
|
+
|
155
207
|
# Checks equality by comparing each attribute.
|
156
208
|
# @param [Object] Object to be compared
|
157
209
|
def ==(o)
|
@@ -161,6 +213,9 @@ module PulpAnsibleClient
|
|
161
213
|
href == o.href &&
|
162
214
|
created_at == o.created_at &&
|
163
215
|
updated_at == o.updated_at &&
|
216
|
+
manifest == o.manifest &&
|
217
|
+
files == o.files &&
|
218
|
+
requires_ansible == o.requires_ansible &&
|
164
219
|
artifact == o.artifact &&
|
165
220
|
collection == o.collection &&
|
166
221
|
download_url == o.download_url &&
|
@@ -178,7 +233,7 @@ module PulpAnsibleClient
|
|
178
233
|
# Calculates hash code according to all attributes.
|
179
234
|
# @return [Integer] Hash code
|
180
235
|
def hash
|
181
|
-
[version, href, created_at, updated_at, artifact, collection, download_url, name, namespace, metadata].hash
|
236
|
+
[version, href, created_at, updated_at, manifest, files, requires_ansible, artifact, collection, download_url, name, namespace, metadata].hash
|
182
237
|
end
|
183
238
|
|
184
239
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# Serializer for Ansible Repositories.
|
17
17
|
class PatchedansibleAnsibleRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
@@ -23,21 +25,28 @@ module PulpAnsibleClient
|
|
23
25
|
|
24
26
|
attr_accessor :remote
|
25
27
|
|
28
|
+
# Last synced metadata time.
|
29
|
+
attr_accessor :last_synced_metadata_time
|
30
|
+
|
26
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
32
|
def self.attribute_map
|
28
33
|
{
|
34
|
+
:'pulp_labels' => :'pulp_labels',
|
29
35
|
:'name' => :'name',
|
30
36
|
:'description' => :'description',
|
31
|
-
:'remote' => :'remote'
|
37
|
+
:'remote' => :'remote',
|
38
|
+
:'last_synced_metadata_time' => :'last_synced_metadata_time'
|
32
39
|
}
|
33
40
|
end
|
34
41
|
|
35
42
|
# Attribute type mapping.
|
36
43
|
def self.openapi_types
|
37
44
|
{
|
45
|
+
:'pulp_labels' => :'Object',
|
38
46
|
:'name' => :'String',
|
39
47
|
:'description' => :'String',
|
40
|
-
:'remote' => :'String'
|
48
|
+
:'remote' => :'String',
|
49
|
+
:'last_synced_metadata_time' => :'DateTime'
|
41
50
|
}
|
42
51
|
end
|
43
52
|
|
@@ -45,7 +54,8 @@ module PulpAnsibleClient
|
|
45
54
|
def self.openapi_nullable
|
46
55
|
Set.new([
|
47
56
|
:'description',
|
48
|
-
:'remote'
|
57
|
+
:'remote',
|
58
|
+
:'last_synced_metadata_time'
|
49
59
|
])
|
50
60
|
end
|
51
61
|
|
@@ -64,6 +74,10 @@ module PulpAnsibleClient
|
|
64
74
|
h[k.to_sym] = v
|
65
75
|
}
|
66
76
|
|
77
|
+
if attributes.key?(:'pulp_labels')
|
78
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
79
|
+
end
|
80
|
+
|
67
81
|
if attributes.key?(:'name')
|
68
82
|
self.name = attributes[:'name']
|
69
83
|
end
|
@@ -75,6 +89,10 @@ module PulpAnsibleClient
|
|
75
89
|
if attributes.key?(:'remote')
|
76
90
|
self.remote = attributes[:'remote']
|
77
91
|
end
|
92
|
+
|
93
|
+
if attributes.key?(:'last_synced_metadata_time')
|
94
|
+
self.last_synced_metadata_time = attributes[:'last_synced_metadata_time']
|
95
|
+
end
|
78
96
|
end
|
79
97
|
|
80
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -95,9 +113,11 @@ module PulpAnsibleClient
|
|
95
113
|
def ==(o)
|
96
114
|
return true if self.equal?(o)
|
97
115
|
self.class == o.class &&
|
116
|
+
pulp_labels == o.pulp_labels &&
|
98
117
|
name == o.name &&
|
99
118
|
description == o.description &&
|
100
|
-
remote == o.remote
|
119
|
+
remote == o.remote &&
|
120
|
+
last_synced_metadata_time == o.last_synced_metadata_time
|
101
121
|
end
|
102
122
|
|
103
123
|
# @see the `==` method
|
@@ -109,7 +129,7 @@ module PulpAnsibleClient
|
|
109
129
|
# Calculates hash code according to all attributes.
|
110
130
|
# @return [Integer] Hash code
|
111
131
|
def hash
|
112
|
-
[name, description, remote].hash
|
132
|
+
[pulp_labels, name, description, remote, last_synced_metadata_time].hash
|
113
133
|
end
|
114
134
|
|
115
135
|
# Builds the object from hash
|
@@ -42,6 +42,8 @@ module PulpAnsibleClient
|
|
42
42
|
# The password to be used for authentication when syncing.
|
43
43
|
attr_accessor :password
|
44
44
|
|
45
|
+
attr_accessor :pulp_labels
|
46
|
+
|
45
47
|
# Total number of simultaneous connections.
|
46
48
|
attr_accessor :download_concurrency
|
47
49
|
|
@@ -60,6 +62,9 @@ module PulpAnsibleClient
|
|
60
62
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
63
|
attr_accessor :sock_read_timeout
|
62
64
|
|
65
|
+
# Limits total download rate in requests per second
|
66
|
+
attr_accessor :rate_limit
|
67
|
+
|
63
68
|
# The string version of Collection requirements yaml.
|
64
69
|
attr_accessor :requirements_file
|
65
70
|
|
@@ -81,12 +86,14 @@ module PulpAnsibleClient
|
|
81
86
|
:'proxy_url' => :'proxy_url',
|
82
87
|
:'username' => :'username',
|
83
88
|
:'password' => :'password',
|
89
|
+
:'pulp_labels' => :'pulp_labels',
|
84
90
|
:'download_concurrency' => :'download_concurrency',
|
85
91
|
:'policy' => :'policy',
|
86
92
|
:'total_timeout' => :'total_timeout',
|
87
93
|
:'connect_timeout' => :'connect_timeout',
|
88
94
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
95
|
:'sock_read_timeout' => :'sock_read_timeout',
|
96
|
+
:'rate_limit' => :'rate_limit',
|
90
97
|
:'requirements_file' => :'requirements_file',
|
91
98
|
:'auth_url' => :'auth_url',
|
92
99
|
:'token' => :'token'
|
@@ -105,12 +112,14 @@ module PulpAnsibleClient
|
|
105
112
|
:'proxy_url' => :'String',
|
106
113
|
:'username' => :'String',
|
107
114
|
:'password' => :'String',
|
115
|
+
:'pulp_labels' => :'Object',
|
108
116
|
:'download_concurrency' => :'Integer',
|
109
117
|
:'policy' => :'PolicyEnum',
|
110
118
|
:'total_timeout' => :'Float',
|
111
119
|
:'connect_timeout' => :'Float',
|
112
120
|
:'sock_connect_timeout' => :'Float',
|
113
121
|
:'sock_read_timeout' => :'Float',
|
122
|
+
:'rate_limit' => :'Integer',
|
114
123
|
:'requirements_file' => :'String',
|
115
124
|
:'auth_url' => :'String',
|
116
125
|
:'token' => :'String'
|
@@ -130,6 +139,7 @@ module PulpAnsibleClient
|
|
130
139
|
:'connect_timeout',
|
131
140
|
:'sock_connect_timeout',
|
132
141
|
:'sock_read_timeout',
|
142
|
+
:'rate_limit',
|
133
143
|
:'requirements_file',
|
134
144
|
:'auth_url',
|
135
145
|
:'token'
|
@@ -187,6 +197,10 @@ module PulpAnsibleClient
|
|
187
197
|
self.password = attributes[:'password']
|
188
198
|
end
|
189
199
|
|
200
|
+
if attributes.key?(:'pulp_labels')
|
201
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
202
|
+
end
|
203
|
+
|
190
204
|
if attributes.key?(:'download_concurrency')
|
191
205
|
self.download_concurrency = attributes[:'download_concurrency']
|
192
206
|
end
|
@@ -211,6 +225,10 @@ module PulpAnsibleClient
|
|
211
225
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
212
226
|
end
|
213
227
|
|
228
|
+
if attributes.key?(:'rate_limit')
|
229
|
+
self.rate_limit = attributes[:'rate_limit']
|
230
|
+
end
|
231
|
+
|
214
232
|
if attributes.key?(:'requirements_file')
|
215
233
|
self.requirements_file = attributes[:'requirements_file']
|
216
234
|
end
|
@@ -356,12 +374,14 @@ module PulpAnsibleClient
|
|
356
374
|
proxy_url == o.proxy_url &&
|
357
375
|
username == o.username &&
|
358
376
|
password == o.password &&
|
377
|
+
pulp_labels == o.pulp_labels &&
|
359
378
|
download_concurrency == o.download_concurrency &&
|
360
379
|
policy == o.policy &&
|
361
380
|
total_timeout == o.total_timeout &&
|
362
381
|
connect_timeout == o.connect_timeout &&
|
363
382
|
sock_connect_timeout == o.sock_connect_timeout &&
|
364
383
|
sock_read_timeout == o.sock_read_timeout &&
|
384
|
+
rate_limit == o.rate_limit &&
|
365
385
|
requirements_file == o.requirements_file &&
|
366
386
|
auth_url == o.auth_url &&
|
367
387
|
token == o.token
|
@@ -376,7 +396,7 @@ module PulpAnsibleClient
|
|
376
396
|
# Calculates hash code according to all attributes.
|
377
397
|
# @return [Integer] Hash code
|
378
398
|
def hash
|
379
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, requirements_file, auth_url, token].hash
|
399
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, requirements_file, auth_url, token].hash
|
380
400
|
end
|
381
401
|
|
382
402
|
# Builds the object from hash
|
@@ -42,6 +42,8 @@ module PulpAnsibleClient
|
|
42
42
|
# The password to be used for authentication when syncing.
|
43
43
|
attr_accessor :password
|
44
44
|
|
45
|
+
attr_accessor :pulp_labels
|
46
|
+
|
45
47
|
# Total number of simultaneous connections.
|
46
48
|
attr_accessor :download_concurrency
|
47
49
|
|
@@ -60,6 +62,9 @@ module PulpAnsibleClient
|
|
60
62
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
63
|
attr_accessor :sock_read_timeout
|
62
64
|
|
65
|
+
# Limits total download rate in requests per second
|
66
|
+
attr_accessor :rate_limit
|
67
|
+
|
63
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
64
69
|
def self.attribute_map
|
65
70
|
{
|
@@ -72,12 +77,14 @@ module PulpAnsibleClient
|
|
72
77
|
:'proxy_url' => :'proxy_url',
|
73
78
|
:'username' => :'username',
|
74
79
|
:'password' => :'password',
|
80
|
+
:'pulp_labels' => :'pulp_labels',
|
75
81
|
:'download_concurrency' => :'download_concurrency',
|
76
82
|
:'policy' => :'policy',
|
77
83
|
:'total_timeout' => :'total_timeout',
|
78
84
|
:'connect_timeout' => :'connect_timeout',
|
79
85
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
80
|
-
:'sock_read_timeout' => :'sock_read_timeout'
|
86
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
87
|
+
:'rate_limit' => :'rate_limit'
|
81
88
|
}
|
82
89
|
end
|
83
90
|
|
@@ -93,12 +100,14 @@ module PulpAnsibleClient
|
|
93
100
|
:'proxy_url' => :'String',
|
94
101
|
:'username' => :'String',
|
95
102
|
:'password' => :'String',
|
103
|
+
:'pulp_labels' => :'Object',
|
96
104
|
:'download_concurrency' => :'Integer',
|
97
105
|
:'policy' => :'PolicyEnum',
|
98
106
|
:'total_timeout' => :'Float',
|
99
107
|
:'connect_timeout' => :'Float',
|
100
108
|
:'sock_connect_timeout' => :'Float',
|
101
|
-
:'sock_read_timeout' => :'Float'
|
109
|
+
:'sock_read_timeout' => :'Float',
|
110
|
+
:'rate_limit' => :'Integer'
|
102
111
|
}
|
103
112
|
end
|
104
113
|
|
@@ -114,7 +123,8 @@ module PulpAnsibleClient
|
|
114
123
|
:'total_timeout',
|
115
124
|
:'connect_timeout',
|
116
125
|
:'sock_connect_timeout',
|
117
|
-
:'sock_read_timeout'
|
126
|
+
:'sock_read_timeout',
|
127
|
+
:'rate_limit'
|
118
128
|
])
|
119
129
|
end
|
120
130
|
|
@@ -169,6 +179,10 @@ module PulpAnsibleClient
|
|
169
179
|
self.password = attributes[:'password']
|
170
180
|
end
|
171
181
|
|
182
|
+
if attributes.key?(:'pulp_labels')
|
183
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
184
|
+
end
|
185
|
+
|
172
186
|
if attributes.key?(:'download_concurrency')
|
173
187
|
self.download_concurrency = attributes[:'download_concurrency']
|
174
188
|
end
|
@@ -192,6 +206,10 @@ module PulpAnsibleClient
|
|
192
206
|
if attributes.key?(:'sock_read_timeout')
|
193
207
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
194
208
|
end
|
209
|
+
|
210
|
+
if attributes.key?(:'rate_limit')
|
211
|
+
self.rate_limit = attributes[:'rate_limit']
|
212
|
+
end
|
195
213
|
end
|
196
214
|
|
197
215
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -296,12 +314,14 @@ module PulpAnsibleClient
|
|
296
314
|
proxy_url == o.proxy_url &&
|
297
315
|
username == o.username &&
|
298
316
|
password == o.password &&
|
317
|
+
pulp_labels == o.pulp_labels &&
|
299
318
|
download_concurrency == o.download_concurrency &&
|
300
319
|
policy == o.policy &&
|
301
320
|
total_timeout == o.total_timeout &&
|
302
321
|
connect_timeout == o.connect_timeout &&
|
303
322
|
sock_connect_timeout == o.sock_connect_timeout &&
|
304
|
-
sock_read_timeout == o.sock_read_timeout
|
323
|
+
sock_read_timeout == o.sock_read_timeout &&
|
324
|
+
rate_limit == o.rate_limit
|
305
325
|
end
|
306
326
|
|
307
327
|
# @see the `==` method
|
@@ -313,7 +333,7 @@ module PulpAnsibleClient
|
|
313
333
|
# Calculates hash code according to all attributes.
|
314
334
|
# @return [Integer] Hash code
|
315
335
|
def hash
|
316
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
|
336
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
|
317
337
|
end
|
318
338
|
|
319
339
|
# Builds the object from hash
|