pulp_python_client 3.10.0 → 3.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -8
  3. data/docs/ContentPackagesApi.md +11 -7
  4. data/docs/DistributionsPypiApi.md +126 -4
  5. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  6. data/docs/PaginatedpythonPythonDistributionResponseList.md +2 -2
  7. data/docs/PaginatedpythonPythonPackageContentResponseList.md +2 -2
  8. data/docs/PaginatedpythonPythonPublicationResponseList.md +2 -2
  9. data/docs/PaginatedpythonPythonRemoteResponseList.md +2 -2
  10. data/docs/PaginatedpythonPythonRepositoryResponseList.md +2 -2
  11. data/docs/PatchedpythonPythonDistribution.md +2 -0
  12. data/docs/PublicationsPypiApi.md +3 -1
  13. data/docs/PypiApi.md +1 -1
  14. data/docs/PypiLegacyApi.md +1 -1
  15. data/docs/PypiMetadataApi.md +1 -1
  16. data/docs/PypiSimpleApi.md +1 -1
  17. data/docs/PythonPythonDistribution.md +2 -0
  18. data/docs/PythonPythonDistributionResponse.md +4 -0
  19. data/docs/PythonPythonPackageContent.md +5 -5
  20. data/docs/PythonPythonPackageContentResponse.md +2 -0
  21. data/docs/PythonPythonPublicationResponse.md +2 -0
  22. data/docs/PythonPythonRemoteResponse.md +2 -2
  23. data/docs/PythonPythonRemoteResponseHiddenFields.md +2 -2
  24. data/docs/PythonPythonRepositoryResponse.md +2 -0
  25. data/docs/RemotesPythonApi.md +123 -1
  26. data/docs/RepositoriesPythonApi.md +124 -2
  27. data/docs/RepositoriesPythonVersionsApi.md +3 -1
  28. data/docs/RepositoryVersionResponse.md +2 -0
  29. data/docs/SetLabel.md +19 -0
  30. data/docs/SetLabelResponse.md +19 -0
  31. data/docs/UnsetLabel.md +17 -0
  32. data/docs/UnsetLabelResponse.md +19 -0
  33. data/lib/pulp_python_client/api/content_packages_api.rb +13 -7
  34. data/lib/pulp_python_client/api/distributions_pypi_api.rb +158 -3
  35. data/lib/pulp_python_client/api/publications_pypi_api.rb +3 -0
  36. data/lib/pulp_python_client/api/remotes_python_api.rb +155 -0
  37. data/lib/pulp_python_client/api/repositories_python_api.rb +155 -0
  38. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +3 -0
  39. data/lib/pulp_python_client/configuration.rb +2 -2
  40. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +10 -0
  41. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +10 -0
  42. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +10 -0
  43. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +10 -0
  44. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +10 -0
  45. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +10 -0
  46. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +13 -1
  47. data/lib/pulp_python_client/models/python_python_distribution.rb +13 -1
  48. data/lib/pulp_python_client/models/python_python_distribution_response.rb +23 -1
  49. data/lib/pulp_python_client/models/python_python_package_content.rb +13 -13
  50. data/lib/pulp_python_client/models/python_python_package_content_response.rb +11 -1
  51. data/lib/pulp_python_client/models/python_python_publication_response.rb +11 -1
  52. data/lib/pulp_python_client/models/python_python_remote_response.rb +11 -11
  53. data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +10 -0
  54. data/lib/pulp_python_client/models/python_python_repository_response.rb +11 -1
  55. data/lib/pulp_python_client/models/repository_version_response.rb +11 -1
  56. data/lib/pulp_python_client/models/set_label.rb +252 -0
  57. data/lib/pulp_python_client/models/set_label_response.rb +243 -0
  58. data/lib/pulp_python_client/models/unset_label.rb +242 -0
  59. data/lib/pulp_python_client/models/unset_label_response.rb +242 -0
  60. data/lib/pulp_python_client/version.rb +1 -1
  61. data/lib/pulp_python_client.rb +4 -0
  62. data/spec/api/content_packages_api_spec.rb +5 -3
  63. data/spec/api/distributions_pypi_api_spec.rb +32 -1
  64. data/spec/api/publications_pypi_api_spec.rb +1 -0
  65. data/spec/api/remotes_python_api_spec.rb +31 -0
  66. data/spec/api/repositories_python_api_spec.rb +31 -0
  67. data/spec/api/repositories_python_versions_api_spec.rb +1 -0
  68. data/spec/configuration_spec.rb +3 -3
  69. data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
  70. data/spec/models/python_python_distribution_response_spec.rb +12 -0
  71. data/spec/models/python_python_distribution_spec.rb +6 -0
  72. data/spec/models/python_python_package_content_response_spec.rb +6 -0
  73. data/spec/models/python_python_package_content_spec.rb +4 -4
  74. data/spec/models/python_python_publication_response_spec.rb +6 -0
  75. data/spec/models/python_python_remote_response_spec.rb +6 -6
  76. data/spec/models/python_python_repository_response_spec.rb +6 -0
  77. data/spec/models/repository_version_response_spec.rb +6 -0
  78. data/spec/models/set_label_response_spec.rb +47 -0
  79. data/spec/models/set_label_spec.rb +47 -0
  80. data/spec/models/unset_label_response_spec.rb +47 -0
  81. data/spec/models/unset_label_spec.rb +41 -0
  82. metadata +47 -31
@@ -0,0 +1,242 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpPythonClient
16
+ # Serializer for synchronously setting a label.
17
+ class UnsetLabelResponse
18
+ attr_accessor :key
19
+
20
+ attr_accessor :value
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'key' => :'key',
26
+ :'value' => :'value'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'key' => :'String',
34
+ :'value' => :'String'
35
+ }
36
+ end
37
+
38
+ # List of attributes with nullable: true
39
+ def self.openapi_nullable
40
+ Set.new([
41
+ ])
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::UnsetLabelResponse` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::UnsetLabelResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'key')
60
+ self.key = attributes[:'key']
61
+ end
62
+
63
+ if attributes.key?(:'value')
64
+ self.value = attributes[:'value']
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ if @key.nil?
73
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
74
+ end
75
+
76
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
77
+ if @key !~ pattern
78
+ invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
79
+ end
80
+
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ return false if @key.nil?
88
+ return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
89
+ true
90
+ end
91
+
92
+ # Custom attribute writer method with validation
93
+ # @param [Object] key Value to be assigned
94
+ def key=(key)
95
+ if key.nil?
96
+ fail ArgumentError, 'key cannot be nil'
97
+ end
98
+
99
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
100
+ if key !~ pattern
101
+ fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
102
+ end
103
+
104
+ @key = key
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ key == o.key &&
113
+ value == o.value
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [key, value].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ new.build_from_hash(attributes)
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.openapi_types.each_pair do |key, type|
141
+ if type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :Boolean
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ PulpPythonClient.const_get(type).build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+ end
242
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.10.0'
14
+ VERSION = '3.11.1'
15
15
  end
@@ -50,7 +50,11 @@ require 'pulp_python_client/models/repair'
50
50
  require 'pulp_python_client/models/repository_add_remove_content'
51
51
  require 'pulp_python_client/models/repository_sync_url'
52
52
  require 'pulp_python_client/models/repository_version_response'
53
+ require 'pulp_python_client/models/set_label'
54
+ require 'pulp_python_client/models/set_label_response'
53
55
  require 'pulp_python_client/models/summary_response'
56
+ require 'pulp_python_client/models/unset_label'
57
+ require 'pulp_python_client/models/unset_label_response'
54
58
 
55
59
  # APIs
56
60
  require 'pulp_python_client/api/content_packages_api'
@@ -37,10 +37,10 @@ describe 'ContentPackagesApi' do
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param relative_path Path where the artifact is located relative to distributions base_path
39
39
  # @param [Hash] opts the optional parameters
40
- # @option opts [String] :artifact Artifact file representing the physical content
41
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
41
+ # @option opts [String] :artifact Artifact file representing the physical content
42
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
44
  # @option opts [String] :sha256 The SHA256 digest of this package.
45
45
  # @option opts [String] :summary A one-line summary of what the package does.
46
46
  # @option opts [String] :description A longer description of the package that can run to several paragraphs.
@@ -86,10 +86,12 @@ describe 'ContentPackagesApi' do
86
86
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
87
87
  # @option opts [Integer] :offset The initial index from which to return the results.
88
88
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;filename&#x60; - Filename * &#x60;-filename&#x60; - Filename (descending) * &#x60;packagetype&#x60; - Packagetype * &#x60;-packagetype&#x60; - Packagetype (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;python_version&#x60; - Python version * &#x60;-python_version&#x60; - Python version (descending) * &#x60;metadata_version&#x60; - Metadata version * &#x60;-metadata_version&#x60; - Metadata version (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;keywords&#x60; - Keywords * &#x60;-keywords&#x60; - Keywords (descending) * &#x60;home_page&#x60; - Home page * &#x60;-home_page&#x60; - Home page (descending) * &#x60;download_url&#x60; - Download url * &#x60;-download_url&#x60; - Download url (descending) * &#x60;author&#x60; - Author * &#x60;-author&#x60; - Author (descending) * &#x60;author_email&#x60; - Author email * &#x60;-author_email&#x60; - Author email (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;maintainer_email&#x60; - Maintainer email * &#x60;-maintainer_email&#x60; - Maintainer email (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;requires_python&#x60; - Requires python * &#x60;-requires_python&#x60; - Requires python (descending) * &#x60;project_url&#x60; - Project url * &#x60;-project_url&#x60; - Project url (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;supported_platform&#x60; - Supported platform * &#x60;-supported_platform&#x60; - Supported platform (descending) * &#x60;requires_dist&#x60; - Requires dist * &#x60;-requires_dist&#x60; - Requires dist (descending) * &#x60;provides_dist&#x60; - Provides dist * &#x60;-provides_dist&#x60; - Provides dist (descending) * &#x60;obsoletes_dist&#x60; - Obsoletes dist * &#x60;-obsoletes_dist&#x60; - Obsoletes dist (descending) * &#x60;requires_external&#x60; - Requires external * &#x60;-requires_external&#x60; - Requires external (descending) * &#x60;classifiers&#x60; - Classifiers * &#x60;-classifiers&#x60; - Classifiers (descending) * &#x60;project_urls&#x60; - Project urls * &#x60;-project_urls&#x60; - Project urls (descending) * &#x60;description_content_type&#x60; - Description content type * &#x60;-description_content_type&#x60; - Description content type (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
89
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
89
90
  # @option opts [String] :packagetype Filter results where packagetype matches value * &#x60;bdist_dmg&#x60; - bdist_dmg * &#x60;bdist_dumb&#x60; - bdist_dumb * &#x60;bdist_egg&#x60; - bdist_egg * &#x60;bdist_msi&#x60; - bdist_msi * &#x60;bdist_rpm&#x60; - bdist_rpm * &#x60;bdist_wheel&#x60; - bdist_wheel * &#x60;bdist_wininst&#x60; - bdist_wininst * &#x60;sdist&#x60; - sdist
90
91
  # @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
91
92
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
92
93
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
94
+ # @option opts [String] :q
93
95
  # @option opts [String] :repository_version Repository Version referenced by HREF
94
96
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
95
97
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -68,13 +68,18 @@ describe 'DistributionsPypiApi' do
68
68
  # @option opts [String] :name Filter results where name matches value
69
69
  # @option opts [String] :name__contains Filter results where name contains value
70
70
  # @option opts [String] :name__icontains Filter results where name contains value
71
+ # @option opts [String] :name__iexact Filter results where name matches value
71
72
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
73
+ # @option opts [String] :name__iregex Filter results where name matches regex value
74
+ # @option opts [String] :name__istartswith Filter results where name starts with value
75
+ # @option opts [String] :name__regex Filter results where name matches regex value
72
76
  # @option opts [String] :name__startswith Filter results where name starts with value
73
77
  # @option opts [Integer] :offset The initial index from which to return the results.
74
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
78
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
75
79
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
76
80
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
77
81
  # @option opts [String] :pulp_label_select Filter labels by search string
82
+ # @option opts [String] :q
78
83
  # @option opts [String] :repository Filter results where repository matches value
79
84
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
80
85
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -114,6 +119,32 @@ describe 'DistributionsPypiApi' do
114
119
  end
115
120
  end
116
121
 
122
+ # unit tests for set_label
123
+ # Set a label
124
+ # Set a single pulp_label on the object to a specific value or null.
125
+ # @param python_python_distribution_href
126
+ # @param set_label
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [SetLabelResponse]
129
+ describe 'set_label test' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
+ end
133
+ end
134
+
135
+ # unit tests for unset_label
136
+ # Unset a label
137
+ # Unset a single pulp_label on the object.
138
+ # @param python_python_distribution_href
139
+ # @param unset_label
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [UnsetLabelResponse]
142
+ describe 'unset_label test' do
143
+ it 'should work' do
144
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
145
+ end
146
+ end
147
+
117
148
  # unit tests for update
118
149
  # Update a python distribution
119
150
  # Trigger an asynchronous update task
@@ -73,6 +73,7 @@ describe 'PublicationsPypiApi' do
73
73
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
74
74
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
75
75
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
76
+ # @option opts [String] :q
76
77
  # @option opts [String] :repository Repository referenced by HREF
77
78
  # @option opts [String] :repository_version Repository Version referenced by HREF
78
79
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -78,7 +78,11 @@ describe 'RemotesPythonApi' do
78
78
  # @option opts [String] :name Filter results where name matches value
79
79
  # @option opts [String] :name__contains Filter results where name contains value
80
80
  # @option opts [String] :name__icontains Filter results where name contains value
81
+ # @option opts [String] :name__iexact Filter results where name matches value
81
82
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
83
+ # @option opts [String] :name__iregex Filter results where name matches regex value
84
+ # @option opts [String] :name__istartswith Filter results where name starts with value
85
+ # @option opts [String] :name__regex Filter results where name matches regex value
82
86
  # @option opts [String] :name__startswith Filter results where name starts with value
83
87
  # @option opts [Integer] :offset The initial index from which to return the results.
84
88
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -91,6 +95,7 @@ describe 'RemotesPythonApi' do
91
95
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
92
96
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
93
97
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
98
+ # @option opts [String] :q
94
99
  # @option opts [Array<String>] :fields A list of fields to include in the response.
95
100
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
96
101
  # @return [PaginatedpythonPythonRemoteResponseList]
@@ -127,6 +132,32 @@ describe 'RemotesPythonApi' do
127
132
  end
128
133
  end
129
134
 
135
+ # unit tests for set_label
136
+ # Set a label
137
+ # Set a single pulp_label on the object to a specific value or null.
138
+ # @param python_python_remote_href
139
+ # @param set_label
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [SetLabelResponse]
142
+ describe 'set_label test' do
143
+ it 'should work' do
144
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
145
+ end
146
+ end
147
+
148
+ # unit tests for unset_label
149
+ # Unset a label
150
+ # Unset a single pulp_label on the object.
151
+ # @param python_python_remote_href
152
+ # @param unset_label
153
+ # @param [Hash] opts the optional parameters
154
+ # @return [UnsetLabelResponse]
155
+ describe 'unset_label test' do
156
+ it 'should work' do
157
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
158
+ end
159
+ end
160
+
130
161
  # unit tests for update
131
162
  # Update a python remote
132
163
  # Trigger an asynchronous update task
@@ -65,13 +65,18 @@ describe 'RepositoriesPythonApi' do
65
65
  # @option opts [String] :name Filter results where name matches value
66
66
  # @option opts [String] :name__contains Filter results where name contains value
67
67
  # @option opts [String] :name__icontains Filter results where name contains value
68
+ # @option opts [String] :name__iexact Filter results where name matches value
68
69
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
70
+ # @option opts [String] :name__iregex Filter results where name matches regex value
71
+ # @option opts [String] :name__istartswith Filter results where name starts with value
72
+ # @option opts [String] :name__regex Filter results where name matches regex value
69
73
  # @option opts [String] :name__startswith Filter results where name starts with value
70
74
  # @option opts [Integer] :offset The initial index from which to return the results.
71
75
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
72
76
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
73
77
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
74
78
  # @option opts [String] :pulp_label_select Filter labels by search string
79
+ # @option opts [String] :q
75
80
  # @option opts [String] :remote Foreign Key referenced by HREF
76
81
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
77
82
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -131,6 +136,19 @@ describe 'RepositoriesPythonApi' do
131
136
  end
132
137
  end
133
138
 
139
+ # unit tests for set_label
140
+ # Set a label
141
+ # Set a single pulp_label on the object to a specific value or null.
142
+ # @param python_python_repository_href
143
+ # @param set_label
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [SetLabelResponse]
146
+ describe 'set_label test' do
147
+ it 'should work' do
148
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
149
+ end
150
+ end
151
+
134
152
  # unit tests for sync
135
153
  # Sync from remote
136
154
  # Trigger an asynchronous task to sync python content. The sync task will retrieve Python content from the specified &#x60;Remote&#x60; and update the specified &#x60;Respository&#x60;, creating a new &#x60;RepositoryVersion&#x60;.
@@ -144,6 +162,19 @@ describe 'RepositoriesPythonApi' do
144
162
  end
145
163
  end
146
164
 
165
+ # unit tests for unset_label
166
+ # Unset a label
167
+ # Unset a single pulp_label on the object.
168
+ # @param python_python_repository_href
169
+ # @param unset_label
170
+ # @param [Hash] opts the optional parameters
171
+ # @return [UnsetLabelResponse]
172
+ describe 'unset_label test' do
173
+ it 'should work' do
174
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
175
+ end
176
+ end
177
+
147
178
  # unit tests for update
148
179
  # Update a python repository
149
180
  # Trigger an asynchronous update task
@@ -67,6 +67,7 @@ describe 'RepositoriesPythonVersionsApi' do
67
67
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
68
68
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
69
69
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
70
+ # @option opts [String] :q
70
71
  # @option opts [Array<String>] :fields A list of fields to include in the response.
71
72
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
72
73
  # @return [PaginatedRepositoryVersionResponseList]
@@ -18,7 +18,7 @@ describe PulpPythonClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("https://pulp")
21
+ # uri = URI.parse("http://pulp")
22
22
  # PulpPythonClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpPythonClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("https://pulp")
31
+ # expect(config.base_url).to eq("http://pulp")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("https://pulp")
38
+ # expect(config.base_url).to eq("http://pulp")
39
39
  end
40
40
  end
41
41
  end
@@ -44,6 +44,12 @@ describe 'PatchedpythonPythonDistribution' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "hidden"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "pulp_labels"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,6 +44,12 @@ describe 'PythonPythonDistributionResponse' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "pulp_last_updated"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "base_path"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -62,6 +68,12 @@ describe 'PythonPythonDistributionResponse' do
62
68
  end
63
69
  end
64
70
 
71
+ describe 'test attribute "hidden"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
65
77
  describe 'test attribute "pulp_labels"' do
66
78
  it 'should work' do
67
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,6 +44,12 @@ describe 'PythonPythonDistribution' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "hidden"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "pulp_labels"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,6 +44,12 @@ describe 'PythonPythonPackageContentResponse' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "pulp_last_updated"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "artifact"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,25 +32,25 @@ describe 'PythonPythonPackageContent' do
32
32
  expect(@instance).to be_instance_of(PulpPythonClient::PythonPythonPackageContent)
33
33
  end
34
34
  end
35
- describe 'test attribute "artifact"' do
35
+ describe 'test attribute "repository"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "relative_path"' do
41
+ describe 'test attribute "artifact"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "file"' do
47
+ describe 'test attribute "relative_path"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "repository"' do
53
+ describe 'test attribute "file"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
@@ -44,6 +44,12 @@ describe 'PythonPythonPublicationResponse' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "pulp_last_updated"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "repository_version"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,6 +44,12 @@ describe 'PythonPythonRemoteResponse' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "pulp_last_updated"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "name"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,12 +92,6 @@ describe 'PythonPythonRemoteResponse' do
86
92
  end
87
93
  end
88
94
 
89
- describe 'test attribute "pulp_last_updated"' do
90
- it 'should work' do
91
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
- end
93
- end
94
-
95
95
  describe 'test attribute "download_concurrency"' do
96
96
  it 'should work' do
97
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers