pulp_ansible_client 0.11.0.dev1636341492 → 0.11.0.dev1636686953

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