pulp_ansible_client 0.24.6 → 0.25.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.
@@ -19,60 +19,60 @@ module PulpAnsibleClient
19
19
  # 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.
20
20
  attr_accessor :sock_read_timeout
21
21
 
22
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
23
- attr_accessor :max_retries
24
-
25
- # The Pulp Resource Name (PRN).
26
- attr_accessor :prn
27
-
28
- # A PEM encoded client certificate used for authentication.
29
- attr_accessor :client_cert
22
+ attr_accessor :pulp_labels
30
23
 
31
24
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
32
25
  attr_accessor :connect_timeout
33
26
 
34
- # Limits requests per second for each concurrent downloader
35
- attr_accessor :rate_limit
27
+ # Timestamp of the most recent update of the remote.
28
+ attr_accessor :pulp_last_updated
36
29
 
37
- # The URL of an external content source.
38
- attr_accessor :url
30
+ # A unique name for this remote.
31
+ attr_accessor :name
39
32
 
40
- # Headers for aiohttp.Clientsession
41
- attr_accessor :headers
33
+ # The proxy URL. Format: scheme://host:port
34
+ attr_accessor :proxy_url
35
+
36
+ # If True, TLS peer validation must be performed.
37
+ attr_accessor :tls_validation
38
+
39
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
40
+ attr_accessor :ca_cert
42
41
 
43
42
  # Total number of simultaneous connections. If not set then the default value will be used.
44
43
  attr_accessor :download_concurrency
45
44
 
46
- # List of hidden (write only) fields
47
- attr_accessor :hidden_fields
45
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
46
+ attr_accessor :max_retries
48
47
 
49
- attr_accessor :pulp_href
48
+ # Timestamp of creation.
49
+ attr_accessor :pulp_created
50
50
 
51
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
52
- attr_accessor :ca_cert
51
+ # The URL of an external content source.
52
+ attr_accessor :url
53
+
54
+ # The Pulp Resource Name (PRN).
55
+ attr_accessor :prn
56
+
57
+ # List of hidden (write only) fields
58
+ attr_accessor :hidden_fields
53
59
 
54
60
  # 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.
55
61
  attr_accessor :sock_connect_timeout
56
62
 
57
- attr_accessor :pulp_labels
63
+ attr_accessor :pulp_href
58
64
 
59
65
  # 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
66
  attr_accessor :total_timeout
61
67
 
62
- # If True, TLS peer validation must be performed.
63
- attr_accessor :tls_validation
64
-
65
- # The proxy URL. Format: scheme://host:port
66
- attr_accessor :proxy_url
67
-
68
- # A unique name for this remote.
69
- attr_accessor :name
68
+ # Headers for aiohttp.Clientsession
69
+ attr_accessor :headers
70
70
 
71
- # Timestamp of creation.
72
- attr_accessor :pulp_created
71
+ # Limits requests per second for each concurrent downloader
72
+ attr_accessor :rate_limit
73
73
 
74
- # Timestamp of the most recent update of the remote.
75
- attr_accessor :pulp_last_updated
74
+ # A PEM encoded client certificate used for authentication.
75
+ attr_accessor :client_cert
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -84,25 +84,25 @@ module PulpAnsibleClient
84
84
  def self.attribute_map
85
85
  {
86
86
  :'sock_read_timeout' => :'sock_read_timeout',
87
- :'max_retries' => :'max_retries',
88
- :'prn' => :'prn',
89
- :'client_cert' => :'client_cert',
87
+ :'pulp_labels' => :'pulp_labels',
90
88
  :'connect_timeout' => :'connect_timeout',
91
- :'rate_limit' => :'rate_limit',
92
- :'url' => :'url',
93
- :'headers' => :'headers',
89
+ :'pulp_last_updated' => :'pulp_last_updated',
90
+ :'name' => :'name',
91
+ :'proxy_url' => :'proxy_url',
92
+ :'tls_validation' => :'tls_validation',
93
+ :'ca_cert' => :'ca_cert',
94
94
  :'download_concurrency' => :'download_concurrency',
95
+ :'max_retries' => :'max_retries',
96
+ :'pulp_created' => :'pulp_created',
97
+ :'url' => :'url',
98
+ :'prn' => :'prn',
95
99
  :'hidden_fields' => :'hidden_fields',
96
- :'pulp_href' => :'pulp_href',
97
- :'ca_cert' => :'ca_cert',
98
100
  :'sock_connect_timeout' => :'sock_connect_timeout',
99
- :'pulp_labels' => :'pulp_labels',
101
+ :'pulp_href' => :'pulp_href',
100
102
  :'total_timeout' => :'total_timeout',
101
- :'tls_validation' => :'tls_validation',
102
- :'proxy_url' => :'proxy_url',
103
- :'name' => :'name',
104
- :'pulp_created' => :'pulp_created',
105
- :'pulp_last_updated' => :'pulp_last_updated',
103
+ :'headers' => :'headers',
104
+ :'rate_limit' => :'rate_limit',
105
+ :'client_cert' => :'client_cert',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -117,25 +117,25 @@ module PulpAnsibleClient
117
117
  def self.openapi_types
118
118
  {
119
119
  :'sock_read_timeout' => :'Float',
120
- :'max_retries' => :'Integer',
121
- :'prn' => :'String',
122
- :'client_cert' => :'String',
120
+ :'pulp_labels' => :'Hash<String, String>',
123
121
  :'connect_timeout' => :'Float',
124
- :'rate_limit' => :'Integer',
125
- :'url' => :'String',
126
- :'headers' => :'Array<Object>',
122
+ :'pulp_last_updated' => :'Time',
123
+ :'name' => :'String',
124
+ :'proxy_url' => :'String',
125
+ :'tls_validation' => :'Boolean',
126
+ :'ca_cert' => :'String',
127
127
  :'download_concurrency' => :'Integer',
128
+ :'max_retries' => :'Integer',
129
+ :'pulp_created' => :'Time',
130
+ :'url' => :'String',
131
+ :'prn' => :'String',
128
132
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
129
- :'pulp_href' => :'String',
130
- :'ca_cert' => :'String',
131
133
  :'sock_connect_timeout' => :'Float',
132
- :'pulp_labels' => :'Hash<String, String>',
134
+ :'pulp_href' => :'String',
133
135
  :'total_timeout' => :'Float',
134
- :'tls_validation' => :'Boolean',
135
- :'proxy_url' => :'String',
136
- :'name' => :'String',
137
- :'pulp_created' => :'Time',
138
- :'pulp_last_updated' => :'Time',
136
+ :'headers' => :'Array<Object>',
137
+ :'rate_limit' => :'Integer',
138
+ :'client_cert' => :'String',
139
139
  :'metadata_only' => :'Boolean',
140
140
  :'git_ref' => :'String'
141
141
  }
@@ -145,15 +145,15 @@ module PulpAnsibleClient
145
145
  def self.openapi_nullable
146
146
  Set.new([
147
147
  :'sock_read_timeout',
148
- :'max_retries',
149
- :'client_cert',
150
148
  :'connect_timeout',
151
- :'rate_limit',
152
- :'download_concurrency',
149
+ :'proxy_url',
153
150
  :'ca_cert',
151
+ :'download_concurrency',
152
+ :'max_retries',
154
153
  :'sock_connect_timeout',
155
154
  :'total_timeout',
156
- :'proxy_url',
155
+ :'rate_limit',
156
+ :'client_cert',
157
157
  ])
158
158
  end
159
159
 
@@ -176,90 +176,90 @@ module PulpAnsibleClient
176
176
  self.sock_read_timeout = attributes[:'sock_read_timeout']
177
177
  end
178
178
 
179
- if attributes.key?(:'max_retries')
180
- self.max_retries = attributes[:'max_retries']
179
+ if attributes.key?(:'pulp_labels')
180
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
181
+ self.pulp_labels = value
182
+ end
181
183
  end
182
184
 
183
- if attributes.key?(:'prn')
184
- self.prn = attributes[:'prn']
185
+ if attributes.key?(:'connect_timeout')
186
+ self.connect_timeout = attributes[:'connect_timeout']
185
187
  end
186
188
 
187
- if attributes.key?(:'client_cert')
188
- self.client_cert = attributes[:'client_cert']
189
+ if attributes.key?(:'pulp_last_updated')
190
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
189
191
  end
190
192
 
191
- if attributes.key?(:'connect_timeout')
192
- self.connect_timeout = attributes[:'connect_timeout']
193
+ if attributes.key?(:'name')
194
+ self.name = attributes[:'name']
195
+ else
196
+ self.name = nil
193
197
  end
194
198
 
195
- if attributes.key?(:'rate_limit')
196
- self.rate_limit = attributes[:'rate_limit']
199
+ if attributes.key?(:'proxy_url')
200
+ self.proxy_url = attributes[:'proxy_url']
197
201
  end
198
202
 
199
- if attributes.key?(:'url')
200
- self.url = attributes[:'url']
201
- else
202
- self.url = nil
203
+ if attributes.key?(:'tls_validation')
204
+ self.tls_validation = attributes[:'tls_validation']
203
205
  end
204
206
 
205
- if attributes.key?(:'headers')
206
- if (value = attributes[:'headers']).is_a?(Array)
207
- self.headers = value
208
- end
207
+ if attributes.key?(:'ca_cert')
208
+ self.ca_cert = attributes[:'ca_cert']
209
209
  end
210
210
 
211
211
  if attributes.key?(:'download_concurrency')
212
212
  self.download_concurrency = attributes[:'download_concurrency']
213
213
  end
214
214
 
215
- if attributes.key?(:'hidden_fields')
216
- if (value = attributes[:'hidden_fields']).is_a?(Array)
217
- self.hidden_fields = value
218
- end
215
+ if attributes.key?(:'max_retries')
216
+ self.max_retries = attributes[:'max_retries']
219
217
  end
220
218
 
221
- if attributes.key?(:'pulp_href')
222
- self.pulp_href = attributes[:'pulp_href']
219
+ if attributes.key?(:'pulp_created')
220
+ self.pulp_created = attributes[:'pulp_created']
223
221
  end
224
222
 
225
- if attributes.key?(:'ca_cert')
226
- self.ca_cert = attributes[:'ca_cert']
223
+ if attributes.key?(:'url')
224
+ self.url = attributes[:'url']
225
+ else
226
+ self.url = nil
227
227
  end
228
228
 
229
- if attributes.key?(:'sock_connect_timeout')
230
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
229
+ if attributes.key?(:'prn')
230
+ self.prn = attributes[:'prn']
231
231
  end
232
232
 
233
- if attributes.key?(:'pulp_labels')
234
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
235
- self.pulp_labels = value
233
+ if attributes.key?(:'hidden_fields')
234
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
235
+ self.hidden_fields = value
236
236
  end
237
237
  end
238
238
 
239
- if attributes.key?(:'total_timeout')
240
- self.total_timeout = attributes[:'total_timeout']
239
+ if attributes.key?(:'sock_connect_timeout')
240
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
241
241
  end
242
242
 
243
- if attributes.key?(:'tls_validation')
244
- self.tls_validation = attributes[:'tls_validation']
243
+ if attributes.key?(:'pulp_href')
244
+ self.pulp_href = attributes[:'pulp_href']
245
245
  end
246
246
 
247
- if attributes.key?(:'proxy_url')
248
- self.proxy_url = attributes[:'proxy_url']
247
+ if attributes.key?(:'total_timeout')
248
+ self.total_timeout = attributes[:'total_timeout']
249
249
  end
250
250
 
251
- if attributes.key?(:'name')
252
- self.name = attributes[:'name']
253
- else
254
- self.name = nil
251
+ if attributes.key?(:'headers')
252
+ if (value = attributes[:'headers']).is_a?(Array)
253
+ self.headers = value
254
+ end
255
255
  end
256
256
 
257
- if attributes.key?(:'pulp_created')
258
- self.pulp_created = attributes[:'pulp_created']
257
+ if attributes.key?(:'rate_limit')
258
+ self.rate_limit = attributes[:'rate_limit']
259
259
  end
260
260
 
261
- if attributes.key?(:'pulp_last_updated')
262
- self.pulp_last_updated = attributes[:'pulp_last_updated']
261
+ if attributes.key?(:'client_cert')
262
+ self.client_cert = attributes[:'client_cert']
263
263
  end
264
264
 
265
265
  if attributes.key?(:'metadata_only')
@@ -284,14 +284,18 @@ module PulpAnsibleClient
284
284
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
285
285
  end
286
286
 
287
- if @url.nil?
288
- invalid_properties.push('invalid value for "url", url cannot be nil.')
287
+ if @name.nil?
288
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
289
289
  end
290
290
 
291
291
  if !@download_concurrency.nil? && @download_concurrency < 1
292
292
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
293
293
  end
294
294
 
295
+ if @url.nil?
296
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
297
+ end
298
+
295
299
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
300
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
297
301
  end
@@ -300,10 +304,6 @@ module PulpAnsibleClient
300
304
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
301
305
  end
302
306
 
303
- if @name.nil?
304
- invalid_properties.push('invalid value for "name", name cannot be nil.')
305
- end
306
-
307
307
  invalid_properties
308
308
  end
309
309
 
@@ -313,11 +313,11 @@ module PulpAnsibleClient
313
313
  warn '[DEPRECATED] the `valid?` method is obsolete'
314
314
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
315
315
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
316
- return false if @url.nil?
316
+ return false if @name.nil?
317
317
  return false if !@download_concurrency.nil? && @download_concurrency < 1
318
+ return false if @url.nil?
318
319
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
319
320
  return false if !@total_timeout.nil? && @total_timeout < 0.0
320
- return false if @name.nil?
321
321
  true
322
322
  end
323
323
 
@@ -377,25 +377,25 @@ module PulpAnsibleClient
377
377
  return true if self.equal?(o)
378
378
  self.class == o.class &&
379
379
  sock_read_timeout == o.sock_read_timeout &&
380
- max_retries == o.max_retries &&
381
- prn == o.prn &&
382
- client_cert == o.client_cert &&
380
+ pulp_labels == o.pulp_labels &&
383
381
  connect_timeout == o.connect_timeout &&
384
- rate_limit == o.rate_limit &&
385
- url == o.url &&
386
- headers == o.headers &&
382
+ pulp_last_updated == o.pulp_last_updated &&
383
+ name == o.name &&
384
+ proxy_url == o.proxy_url &&
385
+ tls_validation == o.tls_validation &&
386
+ ca_cert == o.ca_cert &&
387
387
  download_concurrency == o.download_concurrency &&
388
+ max_retries == o.max_retries &&
389
+ pulp_created == o.pulp_created &&
390
+ url == o.url &&
391
+ prn == o.prn &&
388
392
  hidden_fields == o.hidden_fields &&
389
- pulp_href == o.pulp_href &&
390
- ca_cert == o.ca_cert &&
391
393
  sock_connect_timeout == o.sock_connect_timeout &&
392
- pulp_labels == o.pulp_labels &&
394
+ pulp_href == o.pulp_href &&
393
395
  total_timeout == o.total_timeout &&
394
- tls_validation == o.tls_validation &&
395
- proxy_url == o.proxy_url &&
396
- name == o.name &&
397
- pulp_created == o.pulp_created &&
398
- pulp_last_updated == o.pulp_last_updated &&
396
+ headers == o.headers &&
397
+ rate_limit == o.rate_limit &&
398
+ client_cert == o.client_cert &&
399
399
  metadata_only == o.metadata_only &&
400
400
  git_ref == o.git_ref
401
401
  end
@@ -409,7 +409,7 @@ module PulpAnsibleClient
409
409
  # Calculates hash code according to all attributes.
410
410
  # @return [Integer] Hash code
411
411
  def hash
412
- [sock_read_timeout, max_retries, prn, client_cert, connect_timeout, rate_limit, url, headers, download_concurrency, hidden_fields, pulp_href, ca_cert, sock_connect_timeout, pulp_labels, total_timeout, tls_validation, proxy_url, name, pulp_created, pulp_last_updated, metadata_only, git_ref].hash
412
+ [sock_read_timeout, pulp_labels, connect_timeout, pulp_last_updated, name, proxy_url, tls_validation, ca_cert, download_concurrency, max_retries, pulp_created, url, prn, hidden_fields, sock_connect_timeout, pulp_href, total_timeout, headers, rate_limit, client_cert, metadata_only, git_ref].hash
413
413
  end
414
414
 
415
415
  # Builds the object from hash
@@ -16,23 +16,23 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRoleResponse
19
- attr_accessor :pulp_href
20
-
21
19
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
22
20
  attr_accessor :pulp_labels
23
21
 
24
22
  # The Pulp Resource Name (PRN).
25
23
  attr_accessor :prn
26
24
 
25
+ # 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.
26
+ attr_accessor :pulp_last_updated
27
+
28
+ attr_accessor :pulp_href
29
+
27
30
  # Artifact file representing the physical content
28
31
  attr_accessor :artifact
29
32
 
30
33
  # Timestamp of creation.
31
34
  attr_accessor :pulp_created
32
35
 
33
- # 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.
34
- attr_accessor :pulp_last_updated
35
-
36
36
  attr_accessor :version
37
37
 
38
38
  attr_accessor :name
@@ -42,12 +42,12 @@ module PulpAnsibleClient
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
45
- :'pulp_href' => :'pulp_href',
46
45
  :'pulp_labels' => :'pulp_labels',
47
46
  :'prn' => :'prn',
47
+ :'pulp_last_updated' => :'pulp_last_updated',
48
+ :'pulp_href' => :'pulp_href',
48
49
  :'artifact' => :'artifact',
49
50
  :'pulp_created' => :'pulp_created',
50
- :'pulp_last_updated' => :'pulp_last_updated',
51
51
  :'version' => :'version',
52
52
  :'name' => :'name',
53
53
  :'namespace' => :'namespace'
@@ -62,12 +62,12 @@ module PulpAnsibleClient
62
62
  # Attribute type mapping.
63
63
  def self.openapi_types
64
64
  {
65
- :'pulp_href' => :'String',
66
65
  :'pulp_labels' => :'Hash<String, String>',
67
66
  :'prn' => :'String',
67
+ :'pulp_last_updated' => :'Time',
68
+ :'pulp_href' => :'String',
68
69
  :'artifact' => :'String',
69
70
  :'pulp_created' => :'Time',
70
- :'pulp_last_updated' => :'Time',
71
71
  :'version' => :'String',
72
72
  :'name' => :'String',
73
73
  :'namespace' => :'String'
@@ -95,10 +95,6 @@ module PulpAnsibleClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'pulp_href')
99
- self.pulp_href = attributes[:'pulp_href']
100
- end
101
-
102
98
  if attributes.key?(:'pulp_labels')
103
99
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
100
  self.pulp_labels = value
@@ -109,6 +105,14 @@ module PulpAnsibleClient
109
105
  self.prn = attributes[:'prn']
110
106
  end
111
107
 
108
+ if attributes.key?(:'pulp_last_updated')
109
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
110
+ end
111
+
112
+ if attributes.key?(:'pulp_href')
113
+ self.pulp_href = attributes[:'pulp_href']
114
+ end
115
+
112
116
  if attributes.key?(:'artifact')
113
117
  self.artifact = attributes[:'artifact']
114
118
  else
@@ -119,10 +123,6 @@ module PulpAnsibleClient
119
123
  self.pulp_created = attributes[:'pulp_created']
120
124
  end
121
125
 
122
- if attributes.key?(:'pulp_last_updated')
123
- self.pulp_last_updated = attributes[:'pulp_last_updated']
124
- end
125
-
126
126
  if attributes.key?(:'version')
127
127
  self.version = attributes[:'version']
128
128
  else
@@ -182,12 +182,12 @@ module PulpAnsibleClient
182
182
  def ==(o)
183
183
  return true if self.equal?(o)
184
184
  self.class == o.class &&
185
- pulp_href == o.pulp_href &&
186
185
  pulp_labels == o.pulp_labels &&
187
186
  prn == o.prn &&
187
+ pulp_last_updated == o.pulp_last_updated &&
188
+ pulp_href == o.pulp_href &&
188
189
  artifact == o.artifact &&
189
190
  pulp_created == o.pulp_created &&
190
- pulp_last_updated == o.pulp_last_updated &&
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
- [pulp_href, pulp_labels, prn, artifact, pulp_created, pulp_last_updated, version, name, namespace].hash
205
+ [pulp_labels, prn, pulp_last_updated, pulp_href, artifact, pulp_created, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash