pulp_ansible_client 0.13.4 → 0.13.5

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