pulp_ansible_client 0.16.2 → 0.16.3

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