pulp_ansible_client 0.12.0.dev1640920642 → 0.12.0.dev1641266221

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.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

@@ -15,45 +15,39 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # A unique name for this remote.
19
- attr_accessor :name
18
+ # Total number of simultaneous connections. If not set then the default value will be used.
19
+ attr_accessor :download_concurrency
20
20
 
21
21
  # A PEM encoded client certificate used for authentication.
22
22
  attr_accessor :client_cert
23
23
 
24
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
25
- attr_accessor :max_retries
24
+ # 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.
25
+ attr_accessor :sock_connect_timeout
26
+
27
+ # Timestamp of creation.
28
+ attr_accessor :pulp_created
26
29
 
27
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
31
  attr_accessor :ca_cert
29
32
 
33
+ attr_accessor :pulp_labels
34
+
30
35
  # The URL of an external content source.
31
36
  attr_accessor :url
32
37
 
33
38
  attr_accessor :pulp_href
34
39
 
35
- attr_accessor :pulp_labels
36
-
37
- # 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.
38
- attr_accessor :sock_connect_timeout
39
-
40
- # Limits requests per second for each concurrent downloader
41
- attr_accessor :rate_limit
42
-
43
- # Headers for aiohttp.Clientsession
44
- attr_accessor :headers
45
-
46
- # Timestamp of the most recent update of the remote.
47
- attr_accessor :pulp_last_updated
48
-
49
40
  # 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.
50
41
  attr_accessor :sock_read_timeout
51
42
 
43
+ # A unique name for this remote.
44
+ attr_accessor :name
45
+
52
46
  # If True, TLS peer validation must be performed.
53
47
  attr_accessor :tls_validation
54
48
 
55
- # Total number of simultaneous connections. If not set then the default value will be used.
56
- attr_accessor :download_concurrency
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
57
51
 
58
52
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
59
53
  attr_accessor :connect_timeout
@@ -61,11 +55,17 @@ module PulpAnsibleClient
61
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.
62
56
  attr_accessor :total_timeout
63
57
 
58
+ # Headers for aiohttp.Clientsession
59
+ attr_accessor :headers
60
+
61
+ # Limits requests per second for each concurrent downloader
62
+ attr_accessor :rate_limit
63
+
64
64
  # The proxy URL. Format: scheme://host:port
65
65
  attr_accessor :proxy_url
66
66
 
67
- # Timestamp of creation.
68
- attr_accessor :pulp_created
67
+ # Timestamp of the most recent update of the remote.
68
+ attr_accessor :pulp_last_updated
69
69
 
70
70
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
71
71
  attr_accessor :metadata_only
@@ -76,24 +76,24 @@ module PulpAnsibleClient
76
76
  # Attribute mapping from ruby-style variable name to JSON key.
77
77
  def self.attribute_map
78
78
  {
79
- :'name' => :'name',
79
+ :'download_concurrency' => :'download_concurrency',
80
80
  :'client_cert' => :'client_cert',
81
- :'max_retries' => :'max_retries',
81
+ :'sock_connect_timeout' => :'sock_connect_timeout',
82
+ :'pulp_created' => :'pulp_created',
82
83
  :'ca_cert' => :'ca_cert',
84
+ :'pulp_labels' => :'pulp_labels',
83
85
  :'url' => :'url',
84
86
  :'pulp_href' => :'pulp_href',
85
- :'pulp_labels' => :'pulp_labels',
86
- :'sock_connect_timeout' => :'sock_connect_timeout',
87
- :'rate_limit' => :'rate_limit',
88
- :'headers' => :'headers',
89
- :'pulp_last_updated' => :'pulp_last_updated',
90
87
  :'sock_read_timeout' => :'sock_read_timeout',
88
+ :'name' => :'name',
91
89
  :'tls_validation' => :'tls_validation',
92
- :'download_concurrency' => :'download_concurrency',
90
+ :'max_retries' => :'max_retries',
93
91
  :'connect_timeout' => :'connect_timeout',
94
92
  :'total_timeout' => :'total_timeout',
93
+ :'headers' => :'headers',
94
+ :'rate_limit' => :'rate_limit',
95
95
  :'proxy_url' => :'proxy_url',
96
- :'pulp_created' => :'pulp_created',
96
+ :'pulp_last_updated' => :'pulp_last_updated',
97
97
  :'metadata_only' => :'metadata_only',
98
98
  :'git_ref' => :'git_ref'
99
99
  }
@@ -102,24 +102,24 @@ module PulpAnsibleClient
102
102
  # Attribute type mapping.
103
103
  def self.openapi_types
104
104
  {
105
- :'name' => :'String',
105
+ :'download_concurrency' => :'Integer',
106
106
  :'client_cert' => :'String',
107
- :'max_retries' => :'Integer',
107
+ :'sock_connect_timeout' => :'Float',
108
+ :'pulp_created' => :'DateTime',
108
109
  :'ca_cert' => :'String',
110
+ :'pulp_labels' => :'Object',
109
111
  :'url' => :'String',
110
112
  :'pulp_href' => :'String',
111
- :'pulp_labels' => :'Object',
112
- :'sock_connect_timeout' => :'Float',
113
- :'rate_limit' => :'Integer',
114
- :'headers' => :'Array<Object>',
115
- :'pulp_last_updated' => :'DateTime',
116
113
  :'sock_read_timeout' => :'Float',
114
+ :'name' => :'String',
117
115
  :'tls_validation' => :'Boolean',
118
- :'download_concurrency' => :'Integer',
116
+ :'max_retries' => :'Integer',
119
117
  :'connect_timeout' => :'Float',
120
118
  :'total_timeout' => :'Float',
119
+ :'headers' => :'Array<Object>',
120
+ :'rate_limit' => :'Integer',
121
121
  :'proxy_url' => :'String',
122
- :'pulp_created' => :'DateTime',
122
+ :'pulp_last_updated' => :'DateTime',
123
123
  :'metadata_only' => :'Boolean',
124
124
  :'git_ref' => :'String'
125
125
  }
@@ -128,15 +128,15 @@ module PulpAnsibleClient
128
128
  # List of attributes with nullable: true
129
129
  def self.openapi_nullable
130
130
  Set.new([
131
+ :'download_concurrency',
131
132
  :'client_cert',
132
- :'max_retries',
133
- :'ca_cert',
134
133
  :'sock_connect_timeout',
135
- :'rate_limit',
134
+ :'ca_cert',
136
135
  :'sock_read_timeout',
137
- :'download_concurrency',
136
+ :'max_retries',
138
137
  :'connect_timeout',
139
138
  :'total_timeout',
139
+ :'rate_limit',
140
140
  :'proxy_url',
141
141
  ])
142
142
  end
@@ -156,62 +156,52 @@ module PulpAnsibleClient
156
156
  h[k.to_sym] = v
157
157
  }
158
158
 
159
- if attributes.key?(:'name')
160
- self.name = attributes[:'name']
159
+ if attributes.key?(:'download_concurrency')
160
+ self.download_concurrency = attributes[:'download_concurrency']
161
161
  end
162
162
 
163
163
  if attributes.key?(:'client_cert')
164
164
  self.client_cert = attributes[:'client_cert']
165
165
  end
166
166
 
167
- if attributes.key?(:'max_retries')
168
- self.max_retries = attributes[:'max_retries']
169
- end
170
-
171
- if attributes.key?(:'ca_cert')
172
- self.ca_cert = attributes[:'ca_cert']
167
+ if attributes.key?(:'sock_connect_timeout')
168
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
173
169
  end
174
170
 
175
- if attributes.key?(:'url')
176
- self.url = attributes[:'url']
171
+ if attributes.key?(:'pulp_created')
172
+ self.pulp_created = attributes[:'pulp_created']
177
173
  end
178
174
 
179
- if attributes.key?(:'pulp_href')
180
- self.pulp_href = attributes[:'pulp_href']
175
+ if attributes.key?(:'ca_cert')
176
+ self.ca_cert = attributes[:'ca_cert']
181
177
  end
182
178
 
183
179
  if attributes.key?(:'pulp_labels')
184
180
  self.pulp_labels = attributes[:'pulp_labels']
185
181
  end
186
182
 
187
- if attributes.key?(:'sock_connect_timeout')
188
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
189
- end
190
-
191
- if attributes.key?(:'rate_limit')
192
- self.rate_limit = attributes[:'rate_limit']
193
- end
194
-
195
- if attributes.key?(:'headers')
196
- if (value = attributes[:'headers']).is_a?(Array)
197
- self.headers = value
198
- end
183
+ if attributes.key?(:'url')
184
+ self.url = attributes[:'url']
199
185
  end
200
186
 
201
- if attributes.key?(:'pulp_last_updated')
202
- self.pulp_last_updated = attributes[:'pulp_last_updated']
187
+ if attributes.key?(:'pulp_href')
188
+ self.pulp_href = attributes[:'pulp_href']
203
189
  end
204
190
 
205
191
  if attributes.key?(:'sock_read_timeout')
206
192
  self.sock_read_timeout = attributes[:'sock_read_timeout']
207
193
  end
208
194
 
195
+ if attributes.key?(:'name')
196
+ self.name = attributes[:'name']
197
+ end
198
+
209
199
  if attributes.key?(:'tls_validation')
210
200
  self.tls_validation = attributes[:'tls_validation']
211
201
  end
212
202
 
213
- if attributes.key?(:'download_concurrency')
214
- self.download_concurrency = attributes[:'download_concurrency']
203
+ if attributes.key?(:'max_retries')
204
+ self.max_retries = attributes[:'max_retries']
215
205
  end
216
206
 
217
207
  if attributes.key?(:'connect_timeout')
@@ -222,12 +212,22 @@ module PulpAnsibleClient
222
212
  self.total_timeout = attributes[:'total_timeout']
223
213
  end
224
214
 
215
+ if attributes.key?(:'headers')
216
+ if (value = attributes[:'headers']).is_a?(Array)
217
+ self.headers = value
218
+ end
219
+ end
220
+
221
+ if attributes.key?(:'rate_limit')
222
+ self.rate_limit = attributes[:'rate_limit']
223
+ end
224
+
225
225
  if attributes.key?(:'proxy_url')
226
226
  self.proxy_url = attributes[:'proxy_url']
227
227
  end
228
228
 
229
- if attributes.key?(:'pulp_created')
230
- self.pulp_created = attributes[:'pulp_created']
229
+ if attributes.key?(:'pulp_last_updated')
230
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
231
231
  end
232
232
 
233
233
  if attributes.key?(:'metadata_only')
@@ -243,24 +243,24 @@ module PulpAnsibleClient
243
243
  # @return Array for valid properties with the reasons
244
244
  def list_invalid_properties
245
245
  invalid_properties = Array.new
246
- if @name.nil?
247
- invalid_properties.push('invalid value for "name", name cannot be nil.')
248
- end
249
-
250
- if @url.nil?
251
- invalid_properties.push('invalid value for "url", url cannot be nil.')
246
+ if !@download_concurrency.nil? && @download_concurrency < 1
247
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
252
248
  end
253
249
 
254
250
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
255
251
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
256
252
  end
257
253
 
254
+ if @url.nil?
255
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
256
+ end
257
+
258
258
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
259
259
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
260
260
  end
261
261
 
262
- if !@download_concurrency.nil? && @download_concurrency < 1
263
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
262
+ if @name.nil?
263
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
264
264
  end
265
265
 
266
266
  if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -277,16 +277,26 @@ module PulpAnsibleClient
277
277
  # Check to see if the all the properties in the model are valid
278
278
  # @return true if the model is valid
279
279
  def valid?
280
- return false if @name.nil?
281
- return false if @url.nil?
280
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
282
281
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
282
+ return false if @url.nil?
283
283
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
- return false if !@download_concurrency.nil? && @download_concurrency < 1
284
+ return false if @name.nil?
285
285
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
286
286
  return false if !@total_timeout.nil? && @total_timeout < 0.0
287
287
  true
288
288
  end
289
289
 
290
+ # Custom attribute writer method with validation
291
+ # @param [Object] download_concurrency Value to be assigned
292
+ def download_concurrency=(download_concurrency)
293
+ if !download_concurrency.nil? && download_concurrency < 1
294
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
295
+ end
296
+
297
+ @download_concurrency = download_concurrency
298
+ end
299
+
290
300
  # Custom attribute writer method with validation
291
301
  # @param [Object] sock_connect_timeout Value to be assigned
292
302
  def sock_connect_timeout=(sock_connect_timeout)
@@ -307,16 +317,6 @@ module PulpAnsibleClient
307
317
  @sock_read_timeout = sock_read_timeout
308
318
  end
309
319
 
310
- # Custom attribute writer method with validation
311
- # @param [Object] download_concurrency Value to be assigned
312
- def download_concurrency=(download_concurrency)
313
- if !download_concurrency.nil? && download_concurrency < 1
314
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
315
- end
316
-
317
- @download_concurrency = download_concurrency
318
- end
319
-
320
320
  # Custom attribute writer method with validation
321
321
  # @param [Object] connect_timeout Value to be assigned
322
322
  def connect_timeout=(connect_timeout)
@@ -342,24 +342,24 @@ module PulpAnsibleClient
342
342
  def ==(o)
343
343
  return true if self.equal?(o)
344
344
  self.class == o.class &&
345
- name == o.name &&
345
+ download_concurrency == o.download_concurrency &&
346
346
  client_cert == o.client_cert &&
347
- max_retries == o.max_retries &&
347
+ sock_connect_timeout == o.sock_connect_timeout &&
348
+ pulp_created == o.pulp_created &&
348
349
  ca_cert == o.ca_cert &&
350
+ pulp_labels == o.pulp_labels &&
349
351
  url == o.url &&
350
352
  pulp_href == o.pulp_href &&
351
- pulp_labels == o.pulp_labels &&
352
- sock_connect_timeout == o.sock_connect_timeout &&
353
- rate_limit == o.rate_limit &&
354
- headers == o.headers &&
355
- pulp_last_updated == o.pulp_last_updated &&
356
353
  sock_read_timeout == o.sock_read_timeout &&
354
+ name == o.name &&
357
355
  tls_validation == o.tls_validation &&
358
- download_concurrency == o.download_concurrency &&
356
+ max_retries == o.max_retries &&
359
357
  connect_timeout == o.connect_timeout &&
360
358
  total_timeout == o.total_timeout &&
359
+ headers == o.headers &&
360
+ rate_limit == o.rate_limit &&
361
361
  proxy_url == o.proxy_url &&
362
- pulp_created == o.pulp_created &&
362
+ pulp_last_updated == o.pulp_last_updated &&
363
363
  metadata_only == o.metadata_only &&
364
364
  git_ref == o.git_ref
365
365
  end
@@ -373,7 +373,7 @@ module PulpAnsibleClient
373
373
  # Calculates hash code according to all attributes.
374
374
  # @return [Integer] Hash code
375
375
  def hash
376
- [name, client_cert, max_retries, ca_cert, url, pulp_href, pulp_labels, sock_connect_timeout, rate_limit, headers, pulp_last_updated, sock_read_timeout, tls_validation, download_concurrency, connect_timeout, total_timeout, proxy_url, pulp_created, metadata_only, git_ref].hash
376
+ [download_concurrency, client_cert, sock_connect_timeout, pulp_created, ca_cert, pulp_labels, url, pulp_href, sock_read_timeout, name, tls_validation, max_retries, connect_timeout, total_timeout, headers, rate_limit, proxy_url, pulp_last_updated, metadata_only, git_ref].hash
377
377
  end
378
378
 
379
379
  # Builds the object from hash
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- attr_accessor :pulp_href
19
-
20
18
  # Timestamp of creation.
21
19
  attr_accessor :pulp_created
22
20
 
21
+ attr_accessor :pulp_href
22
+
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
@@ -32,8 +32,8 @@ 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',
36
35
  :'pulp_created' => :'pulp_created',
36
+ :'pulp_href' => :'pulp_href',
37
37
  :'artifact' => :'artifact',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
@@ -44,8 +44,8 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'pulp_href' => :'String',
48
47
  :'pulp_created' => :'DateTime',
48
+ :'pulp_href' => :'String',
49
49
  :'artifact' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
@@ -74,14 +74,14 @@ 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
-
81
77
  if attributes.key?(:'pulp_created')
82
78
  self.pulp_created = attributes[:'pulp_created']
83
79
  end
84
80
 
81
+ if attributes.key?(:'pulp_href')
82
+ self.pulp_href = attributes[:'pulp_href']
83
+ end
84
+
85
85
  if attributes.key?(:'artifact')
86
86
  self.artifact = attributes[:'artifact']
87
87
  end
@@ -137,8 +137,8 @@ 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 &&
141
140
  pulp_created == o.pulp_created &&
141
+ pulp_href == o.pulp_href &&
142
142
  artifact == o.artifact &&
143
143
  version == o.version &&
144
144
  name == o.name &&
@@ -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
- [pulp_href, pulp_created, artifact, version, name, namespace].hash
157
+ [pulp_created, pulp_href, artifact, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash