pulp_ansible_client 0.21.10 → 0.21.12

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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +4 -4
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleGitRemote.md +21 -21
  6. data/docs/AnsibleGitRemoteResponse.md +18 -18
  7. data/docs/AnsibleRole.md +3 -3
  8. data/docs/AnsibleRoleResponse.md +3 -3
  9. data/docs/ContentCollectionVersionsApi.md +4 -4
  10. data/docs/PatchedansibleGitRemote.md +21 -21
  11. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  12. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  13. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  14. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +177 -177
  15. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +86 -86
  16. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  17. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  18. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +168 -168
  19. data/lib/pulp_ansible_client/version.rb +1 -1
  20. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  21. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  22. data/spec/models/ansible_collection_version_spec.rb +3 -3
  23. data/spec/models/ansible_git_remote_response_spec.rb +15 -15
  24. data/spec/models/ansible_git_remote_spec.rb +18 -18
  25. data/spec/models/ansible_role_response_spec.rb +2 -2
  26. data/spec/models/ansible_role_spec.rb +2 -2
  27. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  28. metadata +2 -2
@@ -21,22 +21,19 @@ module PulpAnsibleClient
21
21
  # 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.
22
22
  attr_accessor :sock_connect_timeout
23
23
 
24
- # Limits requests per second for each concurrent downloader
25
- attr_accessor :rate_limit
26
-
27
- # Timestamp of creation.
28
- attr_accessor :pulp_created
24
+ # The URL of an external content source.
25
+ attr_accessor :url
29
26
 
30
27
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
31
28
  attr_accessor :ca_cert
32
29
 
30
+ attr_accessor :pulp_href
31
+
33
32
  # A unique name for this remote.
34
33
  attr_accessor :name
35
34
 
36
- attr_accessor :pulp_labels
37
-
38
- # The proxy URL. Format: scheme://host:port
39
- attr_accessor :proxy_url
35
+ # Headers for aiohttp.Clientsession
36
+ attr_accessor :headers
40
37
 
41
38
  # 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.
42
39
  attr_accessor :sock_read_timeout
@@ -44,31 +41,34 @@ module PulpAnsibleClient
44
41
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
45
42
  attr_accessor :max_retries
46
43
 
47
- # Timestamp of the most recent update of the remote.
48
- attr_accessor :pulp_last_updated
44
+ attr_accessor :pulp_labels
49
45
 
50
46
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
51
47
  attr_accessor :connect_timeout
52
48
 
53
- # Headers for aiohttp.Clientsession
54
- attr_accessor :headers
55
-
56
- # The URL of an external content source.
57
- attr_accessor :url
49
+ # The proxy URL. Format: scheme://host:port
50
+ attr_accessor :proxy_url
58
51
 
59
52
  # A PEM encoded client certificate used for authentication.
60
53
  attr_accessor :client_cert
61
54
 
55
+ # Timestamp of the most recent update of the remote.
56
+ attr_accessor :pulp_last_updated
57
+
58
+ # Limits requests per second for each concurrent downloader
59
+ attr_accessor :rate_limit
60
+
61
+ # Timestamp of creation.
62
+ attr_accessor :pulp_created
63
+
62
64
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
63
65
  attr_accessor :total_timeout
64
66
 
65
- # List of hidden (write only) fields
66
- attr_accessor :hidden_fields
67
-
68
67
  # Total number of simultaneous connections. If not set then the default value will be used.
69
68
  attr_accessor :download_concurrency
70
69
 
71
- attr_accessor :pulp_href
70
+ # List of hidden (write only) fields
71
+ attr_accessor :hidden_fields
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -81,23 +81,23 @@ module PulpAnsibleClient
81
81
  {
82
82
  :'tls_validation' => :'tls_validation',
83
83
  :'sock_connect_timeout' => :'sock_connect_timeout',
84
- :'rate_limit' => :'rate_limit',
85
- :'pulp_created' => :'pulp_created',
84
+ :'url' => :'url',
86
85
  :'ca_cert' => :'ca_cert',
86
+ :'pulp_href' => :'pulp_href',
87
87
  :'name' => :'name',
88
- :'pulp_labels' => :'pulp_labels',
89
- :'proxy_url' => :'proxy_url',
88
+ :'headers' => :'headers',
90
89
  :'sock_read_timeout' => :'sock_read_timeout',
91
90
  :'max_retries' => :'max_retries',
92
- :'pulp_last_updated' => :'pulp_last_updated',
91
+ :'pulp_labels' => :'pulp_labels',
93
92
  :'connect_timeout' => :'connect_timeout',
94
- :'headers' => :'headers',
95
- :'url' => :'url',
93
+ :'proxy_url' => :'proxy_url',
96
94
  :'client_cert' => :'client_cert',
95
+ :'pulp_last_updated' => :'pulp_last_updated',
96
+ :'rate_limit' => :'rate_limit',
97
+ :'pulp_created' => :'pulp_created',
97
98
  :'total_timeout' => :'total_timeout',
98
- :'hidden_fields' => :'hidden_fields',
99
99
  :'download_concurrency' => :'download_concurrency',
100
- :'pulp_href' => :'pulp_href',
100
+ :'hidden_fields' => :'hidden_fields',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -108,23 +108,23 @@ module PulpAnsibleClient
108
108
  {
109
109
  :'tls_validation' => :'Boolean',
110
110
  :'sock_connect_timeout' => :'Float',
111
- :'rate_limit' => :'Integer',
112
- :'pulp_created' => :'DateTime',
111
+ :'url' => :'String',
113
112
  :'ca_cert' => :'String',
113
+ :'pulp_href' => :'String',
114
114
  :'name' => :'String',
115
- :'pulp_labels' => :'Hash<String, String>',
116
- :'proxy_url' => :'String',
115
+ :'headers' => :'Array<Object>',
117
116
  :'sock_read_timeout' => :'Float',
118
117
  :'max_retries' => :'Integer',
119
- :'pulp_last_updated' => :'DateTime',
118
+ :'pulp_labels' => :'Hash<String, String>',
120
119
  :'connect_timeout' => :'Float',
121
- :'headers' => :'Array<Object>',
122
- :'url' => :'String',
120
+ :'proxy_url' => :'String',
123
121
  :'client_cert' => :'String',
122
+ :'pulp_last_updated' => :'DateTime',
123
+ :'rate_limit' => :'Integer',
124
+ :'pulp_created' => :'DateTime',
124
125
  :'total_timeout' => :'Float',
125
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
126
126
  :'download_concurrency' => :'Integer',
127
- :'pulp_href' => :'String',
127
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -134,13 +134,13 @@ module PulpAnsibleClient
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
136
  :'sock_connect_timeout',
137
- :'rate_limit',
138
137
  :'ca_cert',
139
- :'proxy_url',
140
138
  :'sock_read_timeout',
141
139
  :'max_retries',
142
140
  :'connect_timeout',
141
+ :'proxy_url',
143
142
  :'client_cert',
143
+ :'rate_limit',
144
144
  :'total_timeout',
145
145
  :'download_concurrency',
146
146
  ])
@@ -169,32 +169,28 @@ module PulpAnsibleClient
169
169
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
170
170
  end
171
171
 
172
- if attributes.key?(:'rate_limit')
173
- self.rate_limit = attributes[:'rate_limit']
174
- end
175
-
176
- if attributes.key?(:'pulp_created')
177
- self.pulp_created = attributes[:'pulp_created']
172
+ if attributes.key?(:'url')
173
+ self.url = attributes[:'url']
178
174
  end
179
175
 
180
176
  if attributes.key?(:'ca_cert')
181
177
  self.ca_cert = attributes[:'ca_cert']
182
178
  end
183
179
 
180
+ if attributes.key?(:'pulp_href')
181
+ self.pulp_href = attributes[:'pulp_href']
182
+ end
183
+
184
184
  if attributes.key?(:'name')
185
185
  self.name = attributes[:'name']
186
186
  end
187
187
 
188
- if attributes.key?(:'pulp_labels')
189
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
190
- self.pulp_labels = value
188
+ if attributes.key?(:'headers')
189
+ if (value = attributes[:'headers']).is_a?(Array)
190
+ self.headers = value
191
191
  end
192
192
  end
193
193
 
194
- if attributes.key?(:'proxy_url')
195
- self.proxy_url = attributes[:'proxy_url']
196
- end
197
-
198
194
  if attributes.key?(:'sock_read_timeout')
199
195
  self.sock_read_timeout = attributes[:'sock_read_timeout']
200
196
  end
@@ -203,44 +199,48 @@ module PulpAnsibleClient
203
199
  self.max_retries = attributes[:'max_retries']
204
200
  end
205
201
 
206
- if attributes.key?(:'pulp_last_updated')
207
- self.pulp_last_updated = attributes[:'pulp_last_updated']
202
+ if attributes.key?(:'pulp_labels')
203
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
204
+ self.pulp_labels = value
205
+ end
208
206
  end
209
207
 
210
208
  if attributes.key?(:'connect_timeout')
211
209
  self.connect_timeout = attributes[:'connect_timeout']
212
210
  end
213
211
 
214
- if attributes.key?(:'headers')
215
- if (value = attributes[:'headers']).is_a?(Array)
216
- self.headers = value
217
- end
218
- end
219
-
220
- if attributes.key?(:'url')
221
- self.url = attributes[:'url']
212
+ if attributes.key?(:'proxy_url')
213
+ self.proxy_url = attributes[:'proxy_url']
222
214
  end
223
215
 
224
216
  if attributes.key?(:'client_cert')
225
217
  self.client_cert = attributes[:'client_cert']
226
218
  end
227
219
 
228
- if attributes.key?(:'total_timeout')
229
- self.total_timeout = attributes[:'total_timeout']
220
+ if attributes.key?(:'pulp_last_updated')
221
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
230
222
  end
231
223
 
232
- if attributes.key?(:'hidden_fields')
233
- if (value = attributes[:'hidden_fields']).is_a?(Array)
234
- self.hidden_fields = value
235
- end
224
+ if attributes.key?(:'rate_limit')
225
+ self.rate_limit = attributes[:'rate_limit']
226
+ end
227
+
228
+ if attributes.key?(:'pulp_created')
229
+ self.pulp_created = attributes[:'pulp_created']
230
+ end
231
+
232
+ if attributes.key?(:'total_timeout')
233
+ self.total_timeout = attributes[:'total_timeout']
236
234
  end
237
235
 
238
236
  if attributes.key?(:'download_concurrency')
239
237
  self.download_concurrency = attributes[:'download_concurrency']
240
238
  end
241
239
 
242
- if attributes.key?(:'pulp_href')
243
- self.pulp_href = attributes[:'pulp_href']
240
+ if attributes.key?(:'hidden_fields')
241
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
242
+ self.hidden_fields = value
243
+ end
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -260,6 +260,10 @@ module PulpAnsibleClient
260
260
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
261
261
  end
262
262
 
263
+ if @url.nil?
264
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
265
+ end
266
+
263
267
  if @name.nil?
264
268
  invalid_properties.push('invalid value for "name", name cannot be nil.')
265
269
  end
@@ -272,10 +276,6 @@ module PulpAnsibleClient
272
276
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
273
277
  end
274
278
 
275
- if @url.nil?
276
- invalid_properties.push('invalid value for "url", url cannot be nil.')
277
- end
278
-
279
279
  if !@total_timeout.nil? && @total_timeout < 0.0
280
280
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
281
281
  end
@@ -291,10 +291,10 @@ module PulpAnsibleClient
291
291
  # @return true if the model is valid
292
292
  def valid?
293
293
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
+ return false if @url.nil?
294
295
  return false if @name.nil?
295
296
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
296
297
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
- return false if @url.nil?
298
298
  return false if !@total_timeout.nil? && @total_timeout < 0.0
299
299
  return false if !@download_concurrency.nil? && @download_concurrency < 1
300
300
  true
@@ -357,23 +357,23 @@ module PulpAnsibleClient
357
357
  self.class == o.class &&
358
358
  tls_validation == o.tls_validation &&
359
359
  sock_connect_timeout == o.sock_connect_timeout &&
360
- rate_limit == o.rate_limit &&
361
- pulp_created == o.pulp_created &&
360
+ url == o.url &&
362
361
  ca_cert == o.ca_cert &&
362
+ pulp_href == o.pulp_href &&
363
363
  name == o.name &&
364
- pulp_labels == o.pulp_labels &&
365
- proxy_url == o.proxy_url &&
364
+ headers == o.headers &&
366
365
  sock_read_timeout == o.sock_read_timeout &&
367
366
  max_retries == o.max_retries &&
368
- pulp_last_updated == o.pulp_last_updated &&
367
+ pulp_labels == o.pulp_labels &&
369
368
  connect_timeout == o.connect_timeout &&
370
- headers == o.headers &&
371
- url == o.url &&
369
+ proxy_url == o.proxy_url &&
372
370
  client_cert == o.client_cert &&
371
+ pulp_last_updated == o.pulp_last_updated &&
372
+ rate_limit == o.rate_limit &&
373
+ pulp_created == o.pulp_created &&
373
374
  total_timeout == o.total_timeout &&
374
- hidden_fields == o.hidden_fields &&
375
375
  download_concurrency == o.download_concurrency &&
376
- pulp_href == o.pulp_href &&
376
+ hidden_fields == o.hidden_fields &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [tls_validation, sock_connect_timeout, rate_limit, pulp_created, ca_cert, name, pulp_labels, proxy_url, sock_read_timeout, max_retries, pulp_last_updated, connect_timeout, headers, url, client_cert, total_timeout, hidden_fields, download_concurrency, pulp_href, metadata_only, git_ref].hash
390
+ [tls_validation, sock_connect_timeout, url, ca_cert, pulp_href, name, headers, sock_read_timeout, max_retries, pulp_labels, connect_timeout, proxy_url, client_cert, pulp_last_updated, rate_limit, pulp_created, total_timeout, download_concurrency, hidden_fields, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRole
18
- # A URI of a repository the new content unit should be associated with.
19
- attr_accessor :repository
20
-
21
18
  # Artifact file representing the physical content
22
19
  attr_accessor :artifact
23
20
 
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
23
+
24
24
  attr_accessor :version
25
25
 
26
26
  attr_accessor :name
@@ -30,8 +30,8 @@ module PulpAnsibleClient
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'repository' => :'repository',
34
33
  :'artifact' => :'artifact',
34
+ :'repository' => :'repository',
35
35
  :'version' => :'version',
36
36
  :'name' => :'name',
37
37
  :'namespace' => :'namespace'
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'repository' => :'String',
45
44
  :'artifact' => :'String',
45
+ :'repository' => :'String',
46
46
  :'version' => :'String',
47
47
  :'name' => :'String',
48
48
  :'namespace' => :'String'
@@ -70,14 +70,14 @@ module PulpAnsibleClient
70
70
  h[k.to_sym] = v
71
71
  }
72
72
 
73
- if attributes.key?(:'repository')
74
- self.repository = attributes[:'repository']
75
- end
76
-
77
73
  if attributes.key?(:'artifact')
78
74
  self.artifact = attributes[:'artifact']
79
75
  end
80
76
 
77
+ if attributes.key?(:'repository')
78
+ self.repository = attributes[:'repository']
79
+ end
80
+
81
81
  if attributes.key?(:'version')
82
82
  self.version = attributes[:'version']
83
83
  end
@@ -186,8 +186,8 @@ module PulpAnsibleClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- repository == o.repository &&
190
189
  artifact == o.artifact &&
190
+ repository == o.repository &&
191
191
  version == o.version &&
192
192
  name == o.name &&
193
193
  namespace == o.namespace
@@ -202,7 +202,7 @@ module PulpAnsibleClient
202
202
  # Calculates hash code according to all attributes.
203
203
  # @return [Integer] Hash code
204
204
  def hash
205
- [repository, artifact, version, name, namespace].hash
205
+ [artifact, repository, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
18
  # 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.
22
19
  attr_accessor :pulp_last_updated
23
20
 
21
+ # Timestamp of creation.
22
+ attr_accessor :pulp_created
23
+
24
24
  # Artifact file representing the physical content
25
25
  attr_accessor :artifact
26
26
 
@@ -35,8 +35,8 @@ module PulpAnsibleClient
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
- :'pulp_created' => :'pulp_created',
39
38
  :'pulp_last_updated' => :'pulp_last_updated',
39
+ :'pulp_created' => :'pulp_created',
40
40
  :'artifact' => :'artifact',
41
41
  :'pulp_href' => :'pulp_href',
42
42
  :'version' => :'version',
@@ -48,8 +48,8 @@ module PulpAnsibleClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'pulp_created' => :'DateTime',
52
51
  :'pulp_last_updated' => :'DateTime',
52
+ :'pulp_created' => :'DateTime',
53
53
  :'artifact' => :'String',
54
54
  :'pulp_href' => :'String',
55
55
  :'version' => :'String',
@@ -79,14 +79,14 @@ module PulpAnsibleClient
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
- if attributes.key?(:'pulp_created')
83
- self.pulp_created = attributes[:'pulp_created']
84
- end
85
-
86
82
  if attributes.key?(:'pulp_last_updated')
87
83
  self.pulp_last_updated = attributes[:'pulp_last_updated']
88
84
  end
89
85
 
86
+ if attributes.key?(:'pulp_created')
87
+ self.pulp_created = attributes[:'pulp_created']
88
+ end
89
+
90
90
  if attributes.key?(:'artifact')
91
91
  self.artifact = attributes[:'artifact']
92
92
  end
@@ -146,8 +146,8 @@ module PulpAnsibleClient
146
146
  def ==(o)
147
147
  return true if self.equal?(o)
148
148
  self.class == o.class &&
149
- pulp_created == o.pulp_created &&
150
149
  pulp_last_updated == o.pulp_last_updated &&
150
+ pulp_created == o.pulp_created &&
151
151
  artifact == o.artifact &&
152
152
  pulp_href == o.pulp_href &&
153
153
  version == o.version &&
@@ -164,7 +164,7 @@ module PulpAnsibleClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [pulp_created, pulp_last_updated, artifact, pulp_href, version, name, namespace].hash
167
+ [pulp_last_updated, pulp_created, artifact, pulp_href, version, name, namespace].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash