pulp_python_client 3.0.0b9.dev01590959185 → 3.0.0b11.dev01596922885

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

Potentially problematic release.


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

Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -42
  3. data/docs/ContentPackagesApi.md +56 -58
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsPypiApi.md +110 -62
  7. data/docs/InlineResponse200.md +3 -3
  8. data/docs/InlineResponse2001.md +3 -3
  9. data/docs/InlineResponse2002.md +3 -3
  10. data/docs/InlineResponse2003.md +3 -3
  11. data/docs/InlineResponse2004.md +3 -3
  12. data/docs/InlineResponse2005.md +3 -3
  13. data/docs/PatchedpythonPythonDistribution.md +23 -0
  14. data/docs/PatchedpythonPythonRemote.md +43 -0
  15. data/docs/PatchedpythonPythonRepository.md +21 -0
  16. data/docs/PolicyEnum.md +16 -0
  17. data/docs/PublicationsPypiApi.md +43 -43
  18. data/docs/PythonBanderRemote.md +19 -0
  19. data/docs/PythonPythonDistribution.md +1 -7
  20. data/docs/{PythonPythonDistributionRead.md → PythonPythonDistributionResponse.md} +2 -2
  21. data/docs/PythonPythonPackageContent.md +61 -0
  22. data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContentResponse.md} +3 -3
  23. data/docs/PythonPythonPublication.md +2 -8
  24. data/docs/{PythonPythonPublicationRead.md → PythonPythonPublicationResponse.md} +2 -2
  25. data/docs/PythonPythonRemote.md +6 -12
  26. data/docs/{PythonPythonRemoteRead.md → PythonPythonRemoteResponse.md} +7 -7
  27. data/docs/PythonPythonRepository.md +4 -10
  28. data/docs/{PythonPythonRepositoryRead.md → PythonPythonRepositoryResponse.md} +5 -3
  29. data/docs/RemotesPythonApi.md +184 -68
  30. data/docs/RepositoriesPythonApi.md +97 -73
  31. data/docs/RepositoriesPythonVersionsApi.md +94 -60
  32. data/docs/RepositoryAddRemoveContent.md +2 -2
  33. data/docs/RepositorySyncURL.md +1 -1
  34. data/docs/RepositoryVersion.md +1 -9
  35. data/docs/{RepositoryVersionRead.md → RepositoryVersionResponse.md} +3 -3
  36. data/lib/pulp_python_client.rb +15 -9
  37. data/lib/pulp_python_client/api/content_packages_api.rb +77 -88
  38. data/lib/pulp_python_client/api/distributions_pypi_api.rb +157 -94
  39. data/lib/pulp_python_client/api/publications_pypi_api.rb +65 -65
  40. data/lib/pulp_python_client/api/remotes_python_api.rb +259 -106
  41. data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
  42. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -89
  43. data/lib/pulp_python_client/api_client.rb +2 -2
  44. data/lib/pulp_python_client/api_error.rb +2 -2
  45. data/lib/pulp_python_client/configuration.rb +3 -3
  46. data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
  47. data/lib/pulp_python_client/models/content_summary.rb +9 -15
  48. data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
  49. data/lib/pulp_python_client/models/inline_response200.rb +3 -13
  50. data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
  51. data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
  52. data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
  53. data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
  54. data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
  55. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
  56. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
  57. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
  58. data/lib/pulp_python_client/models/policy_enum.rb +37 -0
  59. data/lib/pulp_python_client/models/{project_specifier.rb → python_bander_remote.rb} +26 -40
  60. data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
  61. data/lib/pulp_python_client/models/{python_python_distribution_read.rb → python_python_distribution_response.rb} +6 -58
  62. data/lib/pulp_python_client/models/python_python_package_content.rb +433 -0
  63. data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content_response.rb} +6 -89
  64. data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
  65. data/lib/pulp_python_client/models/{python_python_publication_read.rb → python_python_publication_response.rb} +6 -5
  66. data/lib/pulp_python_client/models/python_python_remote.rb +13 -209
  67. data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb} +15 -182
  68. data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
  69. data/lib/pulp_python_client/models/{python_python_repository_read.rb → python_python_repository_response.rb} +21 -44
  70. data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
  71. data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
  72. data/lib/pulp_python_client/models/repository_version.rb +7 -43
  73. data/lib/pulp_python_client/models/{repository_version_read.rb → repository_version_response.rb} +8 -6
  74. data/lib/pulp_python_client/version.rb +3 -3
  75. data/pulp_python_client.gemspec +4 -4
  76. data/spec/api/content_packages_api_spec.rb +26 -27
  77. data/spec/api/distributions_pypi_api_spec.rb +41 -20
  78. data/spec/api/publications_pypi_api_spec.rb +17 -17
  79. data/spec/api/remotes_python_api_spec.rb +64 -24
  80. data/spec/api/repositories_python_api_spec.rb +28 -19
  81. data/spec/api/repositories_python_versions_api_spec.rb +38 -22
  82. data/spec/api_client_spec.rb +2 -2
  83. data/spec/configuration_spec.rb +2 -2
  84. data/spec/models/async_operation_response_spec.rb +2 -2
  85. data/spec/models/content_summary_response_spec.rb +53 -0
  86. data/spec/models/content_summary_spec.rb +2 -2
  87. data/spec/models/inline_response2001_spec.rb +2 -2
  88. data/spec/models/inline_response2002_spec.rb +2 -2
  89. data/spec/models/inline_response2003_spec.rb +2 -2
  90. data/spec/models/inline_response2004_spec.rb +2 -2
  91. data/spec/models/inline_response2005_spec.rb +2 -2
  92. data/spec/models/inline_response200_spec.rb +2 -2
  93. data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
  94. data/spec/models/patchedpython_python_remote_spec.rb +119 -0
  95. data/spec/models/patchedpython_python_repository_spec.rb +53 -0
  96. data/spec/models/policy_enum_spec.rb +35 -0
  97. data/spec/models/{project_specifier_spec.rb → python_bander_remote_spec.rb} +10 -10
  98. data/spec/models/{python_python_distribution_read_spec.rb → python_python_distribution_response_spec.rb} +8 -8
  99. data/spec/models/python_python_distribution_spec.rb +2 -20
  100. data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_response_spec.rb} +8 -8
  101. data/spec/models/python_python_package_content_spec.rb +173 -0
  102. data/spec/models/{python_python_publication_read_spec.rb → python_python_publication_response_spec.rb} +8 -8
  103. data/spec/models/python_python_publication_spec.rb +2 -20
  104. data/spec/models/{python_python_remote_read_spec.rb → python_python_remote_response_spec.rb} +8 -12
  105. data/spec/models/python_python_remote_spec.rb +2 -24
  106. data/spec/models/{python_python_repository_read_spec.rb → python_python_repository_response_spec.rb} +14 -8
  107. data/spec/models/python_python_repository_spec.rb +5 -23
  108. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  109. data/spec/models/repository_sync_url_spec.rb +2 -2
  110. data/spec/models/{repository_version_read_spec.rb → repository_version_response_spec.rb} +8 -8
  111. data/spec/models/repository_version_spec.rb +2 -26
  112. data/spec/spec_helper.rb +2 -2
  113. metadata +70 -46
  114. data/docs/ProjectSpecifier.md +0 -19
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpPythonClient
16
- class PythonPythonPackageContentRead
16
+ # A Serializer for PythonPackageContent.
17
+ class PythonPythonPackageContentResponse
17
18
  attr_accessor :pulp_href
18
19
 
19
20
  # Timestamp of creation.
@@ -170,13 +171,13 @@ module PulpPythonClient
170
171
  # @param [Hash] attributes Model attributes in the form of hash
171
172
  def initialize(attributes = {})
172
173
  if (!attributes.is_a?(Hash))
173
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonPackageContentRead` initialize method"
174
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonPackageContentResponse` initialize method"
174
175
  end
175
176
 
176
177
  # check to see if the attribute exists and convert string to symbol for hash key
177
178
  attributes = attributes.each_with_object({}) { |(k, v), h|
178
179
  if (!self.class.attribute_map.key?(k.to_sym))
179
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonPackageContentRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
180
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonPackageContentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
180
181
  end
181
182
  h[k.to_sym] = v
182
183
  }
@@ -294,99 +295,15 @@ module PulpPythonClient
294
295
  # @return Array for valid properties with the reasons
295
296
  def list_invalid_properties
296
297
  invalid_properties = Array.new
297
- if @filename.nil?
298
- invalid_properties.push('invalid value for "filename", filename cannot be nil.')
299
- end
300
-
301
- if @filename.to_s.length < 1
302
- invalid_properties.push('invalid value for "filename", the character length must be great than or equal to 1.')
303
- end
304
-
305
- if !@packagetype.nil? && @packagetype.to_s.length < 1
306
- invalid_properties.push('invalid value for "packagetype", the character length must be great than or equal to 1.')
307
- end
308
-
309
- if !@name.nil? && @name.to_s.length < 1
310
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
311
- end
312
-
313
- if !@version.nil? && @version.to_s.length < 1
314
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
315
- end
316
-
317
- if !@metadata_version.nil? && @metadata_version.to_s.length < 1
318
- invalid_properties.push('invalid value for "metadata_version", the character length must be great than or equal to 1.')
319
- end
320
-
321
298
  invalid_properties
322
299
  end
323
300
 
324
301
  # Check to see if the all the properties in the model are valid
325
302
  # @return true if the model is valid
326
303
  def valid?
327
- return false if @filename.nil?
328
- return false if @filename.to_s.length < 1
329
- return false if !@packagetype.nil? && @packagetype.to_s.length < 1
330
- return false if !@name.nil? && @name.to_s.length < 1
331
- return false if !@version.nil? && @version.to_s.length < 1
332
- return false if !@metadata_version.nil? && @metadata_version.to_s.length < 1
333
304
  true
334
305
  end
335
306
 
336
- # Custom attribute writer method with validation
337
- # @param [Object] filename Value to be assigned
338
- def filename=(filename)
339
- if filename.nil?
340
- fail ArgumentError, 'filename cannot be nil'
341
- end
342
-
343
- if filename.to_s.length < 1
344
- fail ArgumentError, 'invalid value for "filename", the character length must be great than or equal to 1.'
345
- end
346
-
347
- @filename = filename
348
- end
349
-
350
- # Custom attribute writer method with validation
351
- # @param [Object] packagetype Value to be assigned
352
- def packagetype=(packagetype)
353
- if !packagetype.nil? && packagetype.to_s.length < 1
354
- fail ArgumentError, 'invalid value for "packagetype", the character length must be great than or equal to 1.'
355
- end
356
-
357
- @packagetype = packagetype
358
- end
359
-
360
- # Custom attribute writer method with validation
361
- # @param [Object] name Value to be assigned
362
- def name=(name)
363
- if !name.nil? && name.to_s.length < 1
364
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
365
- end
366
-
367
- @name = name
368
- end
369
-
370
- # Custom attribute writer method with validation
371
- # @param [Object] version Value to be assigned
372
- def version=(version)
373
- if !version.nil? && version.to_s.length < 1
374
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
375
- end
376
-
377
- @version = version
378
- end
379
-
380
- # Custom attribute writer method with validation
381
- # @param [Object] metadata_version Value to be assigned
382
- def metadata_version=(metadata_version)
383
- if !metadata_version.nil? && metadata_version.to_s.length < 1
384
- fail ArgumentError, 'invalid value for "metadata_version", the character length must be great than or equal to 1.'
385
- end
386
-
387
- @metadata_version = metadata_version
388
- end
389
-
390
307
  # Checks equality by comparing each attribute.
391
308
  # @param [Object] Object to be compared
392
309
  def ==(o)
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,39 +13,26 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpPythonClient
16
+ # A Serializer for PythonPublication.
16
17
  class PythonPythonPublication
17
- attr_accessor :pulp_href
18
-
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
18
  attr_accessor :repository_version
23
19
 
24
20
  # A URI of the repository to be published.
25
21
  attr_accessor :repository
26
22
 
27
- # This publication is currently being hosted as configured by these distributions.
28
- attr_accessor :distributions
29
-
30
23
  # Attribute mapping from ruby-style variable name to JSON key.
31
24
  def self.attribute_map
32
25
  {
33
- :'pulp_href' => :'pulp_href',
34
- :'pulp_created' => :'pulp_created',
35
26
  :'repository_version' => :'repository_version',
36
- :'repository' => :'repository',
37
- :'distributions' => :'distributions'
27
+ :'repository' => :'repository'
38
28
  }
39
29
  end
40
30
 
41
31
  # Attribute type mapping.
42
32
  def self.openapi_types
43
33
  {
44
- :'pulp_href' => :'String',
45
- :'pulp_created' => :'DateTime',
46
34
  :'repository_version' => :'String',
47
- :'repository' => :'String',
48
- :'distributions' => :'Array<String>'
35
+ :'repository' => :'String'
49
36
  }
50
37
  end
51
38
 
@@ -70,14 +57,6 @@ module PulpPythonClient
70
57
  h[k.to_sym] = v
71
58
  }
72
59
 
73
- if attributes.key?(:'pulp_href')
74
- self.pulp_href = attributes[:'pulp_href']
75
- end
76
-
77
- if attributes.key?(:'pulp_created')
78
- self.pulp_created = attributes[:'pulp_created']
79
- end
80
-
81
60
  if attributes.key?(:'repository_version')
82
61
  self.repository_version = attributes[:'repository_version']
83
62
  end
@@ -85,12 +64,6 @@ module PulpPythonClient
85
64
  if attributes.key?(:'repository')
86
65
  self.repository = attributes[:'repository']
87
66
  end
88
-
89
- if attributes.key?(:'distributions')
90
- if (value = attributes[:'distributions']).is_a?(Array)
91
- self.distributions = value
92
- end
93
- end
94
67
  end
95
68
 
96
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,11 +84,8 @@ module PulpPythonClient
111
84
  def ==(o)
112
85
  return true if self.equal?(o)
113
86
  self.class == o.class &&
114
- pulp_href == o.pulp_href &&
115
- pulp_created == o.pulp_created &&
116
87
  repository_version == o.repository_version &&
117
- repository == o.repository &&
118
- distributions == o.distributions
88
+ repository == o.repository
119
89
  end
120
90
 
121
91
  # @see the `==` method
@@ -127,7 +97,7 @@ module PulpPythonClient
127
97
  # Calculates hash code according to all attributes.
128
98
  # @return [Integer] Hash code
129
99
  def hash
130
- [pulp_href, pulp_created, repository_version, repository, distributions].hash
100
+ [repository_version, repository].hash
131
101
  end
132
102
 
133
103
  # Builds the object from hash
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpPythonClient
16
- class PythonPythonPublicationRead
16
+ # A Serializer for PythonPublication.
17
+ class PythonPythonPublicationResponse
17
18
  attr_accessor :pulp_href
18
19
 
19
20
  # Timestamp of creation.
@@ -59,13 +60,13 @@ module PulpPythonClient
59
60
  # @param [Hash] attributes Model attributes in the form of hash
60
61
  def initialize(attributes = {})
61
62
  if (!attributes.is_a?(Hash))
62
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonPublicationRead` initialize method"
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonPublicationResponse` initialize method"
63
64
  end
64
65
 
65
66
  # check to see if the attribute exists and convert string to symbol for hash key
66
67
  attributes = attributes.each_with_object({}) { |(k, v), h|
67
68
  if (!self.class.attribute_map.key?(k.to_sym))
68
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonPublicationRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonPublicationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
70
  end
70
71
  h[k.to_sym] = v
71
72
  }
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,22 +13,18 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpPythonClient
16
+ # A Serializer for PythonRemote.
16
17
  class PythonPythonRemote
17
- attr_accessor :pulp_href
18
-
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
18
  # A unique name for this remote.
23
19
  attr_accessor :name
24
20
 
25
21
  # The URL of an external content source.
26
22
  attr_accessor :url
27
23
 
28
- # A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped.
24
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
29
25
  attr_accessor :ca_cert
30
26
 
31
- # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped.
27
+ # A PEM encoded client certificate used for authentication.
32
28
  attr_accessor :client_cert
33
29
 
34
30
  # A PEM encoded private key used for authentication.
@@ -46,51 +42,24 @@ module PulpPythonClient
46
42
  # The password to be used for authentication when syncing.
47
43
  attr_accessor :password
48
44
 
49
- # Timestamp of the most recent update of the remote.
50
- attr_accessor :pulp_last_updated
51
-
52
45
  # Total number of simultaneous connections.
53
46
  attr_accessor :download_concurrency
54
47
 
55
48
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default.
56
49
  attr_accessor :policy
57
50
 
58
- # AKA \"Whitelist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}]
51
+ # A JSON list containing project specifiers for Python packages to include.
59
52
  attr_accessor :includes
60
53
 
61
- # \"AKA \"Blacklist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}]
54
+ # A JSON list containing project specifiers for Python packages to exclude.
62
55
  attr_accessor :excludes
63
56
 
64
57
  # Whether or not to include pre-release packages in the sync.
65
58
  attr_accessor :prereleases
66
59
 
67
- class EnumAttributeValidator
68
- attr_reader :datatype
69
- attr_reader :allowable_values
70
-
71
- def initialize(datatype, allowable_values)
72
- @allowable_values = allowable_values.map do |value|
73
- case datatype.to_s
74
- when /Integer/i
75
- value.to_i
76
- when /Float/i
77
- value.to_f
78
- else
79
- value
80
- end
81
- end
82
- end
83
-
84
- def valid?(value)
85
- !value || allowable_values.include?(value)
86
- end
87
- end
88
-
89
60
  # Attribute mapping from ruby-style variable name to JSON key.
90
61
  def self.attribute_map
91
62
  {
92
- :'pulp_href' => :'pulp_href',
93
- :'pulp_created' => :'pulp_created',
94
63
  :'name' => :'name',
95
64
  :'url' => :'url',
96
65
  :'ca_cert' => :'ca_cert',
@@ -100,7 +69,6 @@ module PulpPythonClient
100
69
  :'proxy_url' => :'proxy_url',
101
70
  :'username' => :'username',
102
71
  :'password' => :'password',
103
- :'pulp_last_updated' => :'pulp_last_updated',
104
72
  :'download_concurrency' => :'download_concurrency',
105
73
  :'policy' => :'policy',
106
74
  :'includes' => :'includes',
@@ -112,8 +80,6 @@ module PulpPythonClient
112
80
  # Attribute type mapping.
113
81
  def self.openapi_types
114
82
  {
115
- :'pulp_href' => :'String',
116
- :'pulp_created' => :'DateTime',
117
83
  :'name' => :'String',
118
84
  :'url' => :'String',
119
85
  :'ca_cert' => :'String',
@@ -123,11 +89,10 @@ module PulpPythonClient
123
89
  :'proxy_url' => :'String',
124
90
  :'username' => :'String',
125
91
  :'password' => :'String',
126
- :'pulp_last_updated' => :'DateTime',
127
92
  :'download_concurrency' => :'Integer',
128
- :'policy' => :'String',
129
- :'includes' => :'Array<ProjectSpecifier>',
130
- :'excludes' => :'Array<ProjectSpecifier>',
93
+ :'policy' => :'PolicyEnum',
94
+ :'includes' => :'Object',
95
+ :'excludes' => :'Object',
131
96
  :'prereleases' => :'Boolean'
132
97
  }
133
98
  end
@@ -159,14 +124,6 @@ module PulpPythonClient
159
124
  h[k.to_sym] = v
160
125
  }
161
126
 
162
- if attributes.key?(:'pulp_href')
163
- self.pulp_href = attributes[:'pulp_href']
164
- end
165
-
166
- if attributes.key?(:'pulp_created')
167
- self.pulp_created = attributes[:'pulp_created']
168
- end
169
-
170
127
  if attributes.key?(:'name')
171
128
  self.name = attributes[:'name']
172
129
  end
@@ -203,30 +160,20 @@ module PulpPythonClient
203
160
  self.password = attributes[:'password']
204
161
  end
205
162
 
206
- if attributes.key?(:'pulp_last_updated')
207
- self.pulp_last_updated = attributes[:'pulp_last_updated']
208
- end
209
-
210
163
  if attributes.key?(:'download_concurrency')
211
164
  self.download_concurrency = attributes[:'download_concurrency']
212
165
  end
213
166
 
214
167
  if attributes.key?(:'policy')
215
168
  self.policy = attributes[:'policy']
216
- else
217
- self.policy = 'immediate'
218
169
  end
219
170
 
220
171
  if attributes.key?(:'includes')
221
- if (value = attributes[:'includes']).is_a?(Array)
222
- self.includes = value
223
- end
172
+ self.includes = attributes[:'includes']
224
173
  end
225
174
 
226
175
  if attributes.key?(:'excludes')
227
- if (value = attributes[:'excludes']).is_a?(Array)
228
- self.excludes = value
229
- end
176
+ self.excludes = attributes[:'excludes']
230
177
  end
231
178
 
232
179
  if attributes.key?(:'prereleases')
@@ -242,42 +189,10 @@ module PulpPythonClient
242
189
  invalid_properties.push('invalid value for "name", name cannot be nil.')
243
190
  end
244
191
 
245
- if @name.to_s.length < 1
246
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
247
- end
248
-
249
192
  if @url.nil?
250
193
  invalid_properties.push('invalid value for "url", url cannot be nil.')
251
194
  end
252
195
 
253
- if @url.to_s.length < 1
254
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
255
- end
256
-
257
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
258
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
259
- end
260
-
261
- if !@client_cert.nil? && @client_cert.to_s.length < 1
262
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
263
- end
264
-
265
- if !@client_key.nil? && @client_key.to_s.length < 1
266
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
267
- end
268
-
269
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
270
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
271
- end
272
-
273
- if !@username.nil? && @username.to_s.length < 1
274
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
275
- end
276
-
277
- if !@password.nil? && @password.to_s.length < 1
278
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
279
- end
280
-
281
196
  if !@download_concurrency.nil? && @download_concurrency < 1
282
197
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
283
198
  end
@@ -289,109 +204,11 @@ module PulpPythonClient
289
204
  # @return true if the model is valid
290
205
  def valid?
291
206
  return false if @name.nil?
292
- return false if @name.to_s.length < 1
293
207
  return false if @url.nil?
294
- return false if @url.to_s.length < 1
295
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
296
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
297
- return false if !@client_key.nil? && @client_key.to_s.length < 1
298
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
299
- return false if !@username.nil? && @username.to_s.length < 1
300
- return false if !@password.nil? && @password.to_s.length < 1
301
208
  return false if !@download_concurrency.nil? && @download_concurrency < 1
302
- policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
303
- return false unless policy_validator.valid?(@policy)
304
209
  true
305
210
  end
306
211
 
307
- # Custom attribute writer method with validation
308
- # @param [Object] name Value to be assigned
309
- def name=(name)
310
- if name.nil?
311
- fail ArgumentError, 'name cannot be nil'
312
- end
313
-
314
- if name.to_s.length < 1
315
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
316
- end
317
-
318
- @name = name
319
- end
320
-
321
- # Custom attribute writer method with validation
322
- # @param [Object] url Value to be assigned
323
- def url=(url)
324
- if url.nil?
325
- fail ArgumentError, 'url cannot be nil'
326
- end
327
-
328
- if url.to_s.length < 1
329
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
330
- end
331
-
332
- @url = url
333
- end
334
-
335
- # Custom attribute writer method with validation
336
- # @param [Object] ca_cert Value to be assigned
337
- def ca_cert=(ca_cert)
338
- if !ca_cert.nil? && ca_cert.to_s.length < 1
339
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
340
- end
341
-
342
- @ca_cert = ca_cert
343
- end
344
-
345
- # Custom attribute writer method with validation
346
- # @param [Object] client_cert Value to be assigned
347
- def client_cert=(client_cert)
348
- if !client_cert.nil? && client_cert.to_s.length < 1
349
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
350
- end
351
-
352
- @client_cert = client_cert
353
- end
354
-
355
- # Custom attribute writer method with validation
356
- # @param [Object] client_key Value to be assigned
357
- def client_key=(client_key)
358
- if !client_key.nil? && client_key.to_s.length < 1
359
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
360
- end
361
-
362
- @client_key = client_key
363
- end
364
-
365
- # Custom attribute writer method with validation
366
- # @param [Object] proxy_url Value to be assigned
367
- def proxy_url=(proxy_url)
368
- if !proxy_url.nil? && proxy_url.to_s.length < 1
369
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
370
- end
371
-
372
- @proxy_url = proxy_url
373
- end
374
-
375
- # Custom attribute writer method with validation
376
- # @param [Object] username Value to be assigned
377
- def username=(username)
378
- if !username.nil? && username.to_s.length < 1
379
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
380
- end
381
-
382
- @username = username
383
- end
384
-
385
- # Custom attribute writer method with validation
386
- # @param [Object] password Value to be assigned
387
- def password=(password)
388
- if !password.nil? && password.to_s.length < 1
389
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
390
- end
391
-
392
- @password = password
393
- end
394
-
395
212
  # Custom attribute writer method with validation
396
213
  # @param [Object] download_concurrency Value to be assigned
397
214
  def download_concurrency=(download_concurrency)
@@ -402,23 +219,11 @@ module PulpPythonClient
402
219
  @download_concurrency = download_concurrency
403
220
  end
404
221
 
405
- # Custom attribute writer method checking allowed values (enum).
406
- # @param [Object] policy Object to be assigned
407
- def policy=(policy)
408
- validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
409
- unless validator.valid?(policy)
410
- fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}."
411
- end
412
- @policy = policy
413
- end
414
-
415
222
  # Checks equality by comparing each attribute.
416
223
  # @param [Object] Object to be compared
417
224
  def ==(o)
418
225
  return true if self.equal?(o)
419
226
  self.class == o.class &&
420
- pulp_href == o.pulp_href &&
421
- pulp_created == o.pulp_created &&
422
227
  name == o.name &&
423
228
  url == o.url &&
424
229
  ca_cert == o.ca_cert &&
@@ -428,7 +233,6 @@ module PulpPythonClient
428
233
  proxy_url == o.proxy_url &&
429
234
  username == o.username &&
430
235
  password == o.password &&
431
- pulp_last_updated == o.pulp_last_updated &&
432
236
  download_concurrency == o.download_concurrency &&
433
237
  policy == o.policy &&
434
238
  includes == o.includes &&
@@ -445,7 +249,7 @@ module PulpPythonClient
445
249
  # Calculates hash code according to all attributes.
446
250
  # @return [Integer] Hash code
447
251
  def hash
448
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, includes, excludes, prereleases].hash
252
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, includes, excludes, prereleases].hash
449
253
  end
450
254
 
451
255
  # Builds the object from hash