pulp_ansible_client 0.29.2 → 0.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/AnsibleCollectionRemote.md +6 -6
  4. data/docs/AnsibleCollectionRemoteResponse.md +8 -8
  5. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  6. data/docs/AnsibleGitRemote.md +28 -28
  7. data/docs/AnsibleGitRemoteResponse.md +28 -28
  8. data/docs/AnsibleRoleRemote.md +6 -6
  9. data/docs/AnsibleRoleRemoteResponse.md +9 -9
  10. data/docs/AnsibleRoleResponse.md +6 -6
  11. data/docs/ContentCollectionSignaturesApi.md +3 -1
  12. data/docs/ContentCollectionVersionsApi.md +4 -2
  13. data/docs/PatchedansibleCollectionRemote.md +6 -6
  14. data/docs/PatchedansibleGitRemote.md +28 -28
  15. data/docs/PatchedansibleRoleRemote.md +6 -6
  16. data/docs/RemoteNetworkConfig.md +50 -0
  17. data/docs/RemoteNetworkConfigResponse.md +40 -0
  18. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  19. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -3
  20. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +33 -33
  21. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +45 -45
  22. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +32 -32
  23. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +253 -253
  24. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +152 -152
  25. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +33 -33
  26. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +49 -49
  27. data/lib/pulp_ansible_client/models/ansible_role_response.rb +32 -32
  28. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +33 -33
  29. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +244 -244
  30. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +33 -33
  31. data/lib/pulp_ansible_client/models/remote_network_config.rb +573 -0
  32. data/lib/pulp_ansible_client/models/remote_network_config_response.rb +398 -0
  33. data/lib/pulp_ansible_client/version.rb +1 -1
  34. data/lib/pulp_ansible_client.rb +2 -0
  35. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  36. data/spec/api/content_collection_versions_api_spec.rb +2 -1
  37. data/spec/models/ansible_collection_remote_response_spec.rb +10 -10
  38. data/spec/models/ansible_collection_remote_spec.rb +17 -17
  39. data/spec/models/ansible_collection_version_response_spec.rb +6 -6
  40. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  41. data/spec/models/ansible_git_remote_spec.rb +19 -19
  42. data/spec/models/ansible_role_remote_response_spec.rb +10 -10
  43. data/spec/models/ansible_role_remote_spec.rb +17 -17
  44. data/spec/models/ansible_role_response_spec.rb +6 -6
  45. data/spec/models/patchedansible_collection_remote_spec.rb +17 -17
  46. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  47. data/spec/models/patchedansible_role_remote_spec.rb +17 -17
  48. data/spec/models/remote_network_config_response_spec.rb +102 -0
  49. data/spec/models/remote_network_config_spec.rb +132 -0
  50. metadata +10 -2
@@ -33,6 +33,14 @@ module PulpAnsibleClient
33
33
  # The URL of an external content source.
34
34
  attr_accessor :url
35
35
 
36
+ attr_accessor :pulp_labels
37
+
38
+ # The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
39
+ attr_accessor :policy
40
+
41
+ # List of hidden (write only) fields
42
+ attr_accessor :hidden_fields
43
+
36
44
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
37
45
  attr_accessor :ca_cert
38
46
 
@@ -45,17 +53,9 @@ module PulpAnsibleClient
45
53
  # The proxy URL. Format: scheme://host:port
46
54
  attr_accessor :proxy_url
47
55
 
48
- attr_accessor :pulp_labels
49
-
50
- # Total number of simultaneous connections. If not set then the default value will be used.
51
- attr_accessor :download_concurrency
52
-
53
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
57
  attr_accessor :max_retries
55
58
 
56
- # The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
57
- attr_accessor :policy
58
-
59
59
  # 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
60
  attr_accessor :total_timeout
61
61
 
@@ -71,12 +71,12 @@ module PulpAnsibleClient
71
71
  # Headers for aiohttp.Clientsession
72
72
  attr_accessor :headers
73
73
 
74
+ # Total number of simultaneous connections. If not set then the default value will be used.
75
+ attr_accessor :download_concurrency
76
+
74
77
  # Limits requests per second for each concurrent downloader
75
78
  attr_accessor :rate_limit
76
79
 
77
- # List of hidden (write only) fields
78
- attr_accessor :hidden_fields
79
-
80
80
  # The string version of Collection requirements yaml.
81
81
  attr_accessor :requirements_file
82
82
 
@@ -122,21 +122,21 @@ module PulpAnsibleClient
122
122
  :'pulp_last_updated' => :'pulp_last_updated',
123
123
  :'name' => :'name',
124
124
  :'url' => :'url',
125
+ :'pulp_labels' => :'pulp_labels',
126
+ :'policy' => :'policy',
127
+ :'hidden_fields' => :'hidden_fields',
125
128
  :'ca_cert' => :'ca_cert',
126
129
  :'client_cert' => :'client_cert',
127
130
  :'tls_validation' => :'tls_validation',
128
131
  :'proxy_url' => :'proxy_url',
129
- :'pulp_labels' => :'pulp_labels',
130
- :'download_concurrency' => :'download_concurrency',
131
132
  :'max_retries' => :'max_retries',
132
- :'policy' => :'policy',
133
133
  :'total_timeout' => :'total_timeout',
134
134
  :'connect_timeout' => :'connect_timeout',
135
135
  :'sock_connect_timeout' => :'sock_connect_timeout',
136
136
  :'sock_read_timeout' => :'sock_read_timeout',
137
137
  :'headers' => :'headers',
138
+ :'download_concurrency' => :'download_concurrency',
138
139
  :'rate_limit' => :'rate_limit',
139
- :'hidden_fields' => :'hidden_fields',
140
140
  :'requirements_file' => :'requirements_file',
141
141
  :'auth_url' => :'auth_url',
142
142
  :'sync_dependencies' => :'sync_dependencies',
@@ -159,21 +159,21 @@ module PulpAnsibleClient
159
159
  :'pulp_last_updated' => :'Time',
160
160
  :'name' => :'String',
161
161
  :'url' => :'String',
162
+ :'pulp_labels' => :'Hash<String, String>',
163
+ :'policy' => :'PolicyEnum',
164
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
162
165
  :'ca_cert' => :'String',
163
166
  :'client_cert' => :'String',
164
167
  :'tls_validation' => :'Boolean',
165
168
  :'proxy_url' => :'String',
166
- :'pulp_labels' => :'Hash<String, String>',
167
- :'download_concurrency' => :'Integer',
168
169
  :'max_retries' => :'Integer',
169
- :'policy' => :'PolicyEnum',
170
170
  :'total_timeout' => :'Float',
171
171
  :'connect_timeout' => :'Float',
172
172
  :'sock_connect_timeout' => :'Float',
173
173
  :'sock_read_timeout' => :'Float',
174
174
  :'headers' => :'Array<Object>',
175
+ :'download_concurrency' => :'Integer',
175
176
  :'rate_limit' => :'Integer',
176
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
177
177
  :'requirements_file' => :'String',
178
178
  :'auth_url' => :'String',
179
179
  :'sync_dependencies' => :'Boolean',
@@ -188,12 +188,12 @@ module PulpAnsibleClient
188
188
  :'ca_cert',
189
189
  :'client_cert',
190
190
  :'proxy_url',
191
- :'download_concurrency',
192
191
  :'max_retries',
193
192
  :'total_timeout',
194
193
  :'connect_timeout',
195
194
  :'sock_connect_timeout',
196
195
  :'sock_read_timeout',
196
+ :'download_concurrency',
197
197
  :'rate_limit',
198
198
  :'requirements_file',
199
199
  :'auth_url',
@@ -243,6 +243,22 @@ module PulpAnsibleClient
243
243
  self.url = nil
244
244
  end
245
245
 
246
+ if attributes.key?(:'pulp_labels')
247
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
248
+ self.pulp_labels = value
249
+ end
250
+ end
251
+
252
+ if attributes.key?(:'policy')
253
+ self.policy = attributes[:'policy']
254
+ end
255
+
256
+ if attributes.key?(:'hidden_fields')
257
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
258
+ self.hidden_fields = value
259
+ end
260
+ end
261
+
246
262
  if attributes.key?(:'ca_cert')
247
263
  self.ca_cert = attributes[:'ca_cert']
248
264
  end
@@ -259,24 +275,10 @@ module PulpAnsibleClient
259
275
  self.proxy_url = attributes[:'proxy_url']
260
276
  end
261
277
 
262
- if attributes.key?(:'pulp_labels')
263
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
264
- self.pulp_labels = value
265
- end
266
- end
267
-
268
- if attributes.key?(:'download_concurrency')
269
- self.download_concurrency = attributes[:'download_concurrency']
270
- end
271
-
272
278
  if attributes.key?(:'max_retries')
273
279
  self.max_retries = attributes[:'max_retries']
274
280
  end
275
281
 
276
- if attributes.key?(:'policy')
277
- self.policy = attributes[:'policy']
278
- end
279
-
280
282
  if attributes.key?(:'total_timeout')
281
283
  self.total_timeout = attributes[:'total_timeout']
282
284
  end
@@ -299,14 +301,12 @@ module PulpAnsibleClient
299
301
  end
300
302
  end
301
303
 
302
- if attributes.key?(:'rate_limit')
303
- self.rate_limit = attributes[:'rate_limit']
304
+ if attributes.key?(:'download_concurrency')
305
+ self.download_concurrency = attributes[:'download_concurrency']
304
306
  end
305
307
 
306
- if attributes.key?(:'hidden_fields')
307
- if (value = attributes[:'hidden_fields']).is_a?(Array)
308
- self.hidden_fields = value
309
- end
308
+ if attributes.key?(:'rate_limit')
309
+ self.rate_limit = attributes[:'rate_limit']
310
310
  end
311
311
 
312
312
  if attributes.key?(:'requirements_file')
@@ -426,21 +426,21 @@ module PulpAnsibleClient
426
426
  pulp_last_updated == o.pulp_last_updated &&
427
427
  name == o.name &&
428
428
  url == o.url &&
429
+ pulp_labels == o.pulp_labels &&
430
+ policy == o.policy &&
431
+ hidden_fields == o.hidden_fields &&
429
432
  ca_cert == o.ca_cert &&
430
433
  client_cert == o.client_cert &&
431
434
  tls_validation == o.tls_validation &&
432
435
  proxy_url == o.proxy_url &&
433
- pulp_labels == o.pulp_labels &&
434
- download_concurrency == o.download_concurrency &&
435
436
  max_retries == o.max_retries &&
436
- policy == o.policy &&
437
437
  total_timeout == o.total_timeout &&
438
438
  connect_timeout == o.connect_timeout &&
439
439
  sock_connect_timeout == o.sock_connect_timeout &&
440
440
  sock_read_timeout == o.sock_read_timeout &&
441
441
  headers == o.headers &&
442
+ download_concurrency == o.download_concurrency &&
442
443
  rate_limit == o.rate_limit &&
443
- hidden_fields == o.hidden_fields &&
444
444
  requirements_file == o.requirements_file &&
445
445
  auth_url == o.auth_url &&
446
446
  sync_dependencies == o.sync_dependencies &&
@@ -457,7 +457,7 @@ module PulpAnsibleClient
457
457
  # Calculates hash code according to all attributes.
458
458
  # @return [Integer] Hash code
459
459
  def hash
460
- [pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
460
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
461
461
  end
462
462
 
463
463
  # Builds the object from hash
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for CollectionVersion Content.
18
18
  class AnsibleCollectionVersionResponse
19
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
20
+ attr_accessor :pulp_last_updated
21
+
19
22
  # Timestamp of creation.
20
23
  attr_accessor :pulp_created
21
24
 
25
+ attr_accessor :pulp_href
26
+
22
27
  # Artifact file representing the physical content
23
28
  attr_accessor :artifact
24
29
 
25
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
- attr_accessor :pulp_labels
27
-
28
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
29
- attr_accessor :pulp_last_updated
30
-
31
30
  attr_accessor :vuln_report
32
31
 
33
- attr_accessor :pulp_href
34
-
35
32
  # The Pulp Resource Name (PRN).
36
33
  attr_accessor :prn
37
34
 
35
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
36
+ attr_accessor :pulp_labels
37
+
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
40
40
 
@@ -97,13 +97,13 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
+ :'pulp_last_updated' => :'pulp_last_updated',
100
101
  :'pulp_created' => :'pulp_created',
102
+ :'pulp_href' => :'pulp_href',
101
103
  :'artifact' => :'artifact',
102
- :'pulp_labels' => :'pulp_labels',
103
- :'pulp_last_updated' => :'pulp_last_updated',
104
104
  :'vuln_report' => :'vuln_report',
105
- :'pulp_href' => :'pulp_href',
106
105
  :'prn' => :'prn',
106
+ :'pulp_labels' => :'pulp_labels',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -135,13 +135,13 @@ module PulpAnsibleClient
135
135
  # Attribute type mapping.
136
136
  def self.openapi_types
137
137
  {
138
+ :'pulp_last_updated' => :'Time',
138
139
  :'pulp_created' => :'Time',
140
+ :'pulp_href' => :'String',
139
141
  :'artifact' => :'String',
140
- :'pulp_labels' => :'Hash<String, String>',
141
- :'pulp_last_updated' => :'Time',
142
142
  :'vuln_report' => :'String',
143
- :'pulp_href' => :'String',
144
143
  :'prn' => :'String',
144
+ :'pulp_labels' => :'Hash<String, String>',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -187,36 +187,36 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
- if attributes.key?(:'pulp_created')
191
- self.pulp_created = attributes[:'pulp_created']
190
+ if attributes.key?(:'pulp_last_updated')
191
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
192
192
  end
193
193
 
194
- if attributes.key?(:'artifact')
195
- self.artifact = attributes[:'artifact']
194
+ if attributes.key?(:'pulp_created')
195
+ self.pulp_created = attributes[:'pulp_created']
196
196
  end
197
197
 
198
- if attributes.key?(:'pulp_labels')
199
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
200
- self.pulp_labels = value
201
- end
198
+ if attributes.key?(:'pulp_href')
199
+ self.pulp_href = attributes[:'pulp_href']
202
200
  end
203
201
 
204
- if attributes.key?(:'pulp_last_updated')
205
- self.pulp_last_updated = attributes[:'pulp_last_updated']
202
+ if attributes.key?(:'artifact')
203
+ self.artifact = attributes[:'artifact']
206
204
  end
207
205
 
208
206
  if attributes.key?(:'vuln_report')
209
207
  self.vuln_report = attributes[:'vuln_report']
210
208
  end
211
209
 
212
- if attributes.key?(:'pulp_href')
213
- self.pulp_href = attributes[:'pulp_href']
214
- end
215
-
216
210
  if attributes.key?(:'prn')
217
211
  self.prn = attributes[:'prn']
218
212
  end
219
213
 
214
+ if attributes.key?(:'pulp_labels')
215
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
216
+ self.pulp_labels = value
217
+ end
218
+ end
219
+
220
220
  if attributes.key?(:'sha256')
221
221
  self.sha256 = attributes[:'sha256']
222
222
  end
@@ -457,13 +457,13 @@ module PulpAnsibleClient
457
457
  def ==(o)
458
458
  return true if self.equal?(o)
459
459
  self.class == o.class &&
460
+ pulp_last_updated == o.pulp_last_updated &&
460
461
  pulp_created == o.pulp_created &&
462
+ pulp_href == o.pulp_href &&
461
463
  artifact == o.artifact &&
462
- pulp_labels == o.pulp_labels &&
463
- pulp_last_updated == o.pulp_last_updated &&
464
464
  vuln_report == o.vuln_report &&
465
- pulp_href == o.pulp_href &&
466
465
  prn == o.prn &&
466
+ pulp_labels == o.pulp_labels &&
467
467
  sha256 == o.sha256 &&
468
468
  md5 == o.md5 &&
469
469
  sha1 == o.sha1 &&
@@ -495,7 +495,7 @@ module PulpAnsibleClient
495
495
  # Calculates hash code according to all attributes.
496
496
  # @return [Integer] Hash code
497
497
  def hash
498
- [pulp_created, artifact, pulp_labels, pulp_last_updated, vuln_report, pulp_href, prn, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
498
+ [pulp_last_updated, pulp_created, pulp_href, artifact, vuln_report, prn, pulp_labels, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
499
499
  end
500
500
 
501
501
  # Builds the object from hash