pulp_ansible_client 0.13.2 → 0.13.5

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