pulp_ansible_client 0.12.0.dev1640661396 → 0.12.0.dev1640747746

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

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