pulp_gem_client 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -5
  3. data/docs/ContentGemApi.md +3 -1
  4. data/docs/DistributionsGemApi.md +119 -1
  5. data/docs/PublicationsGemApi.md +3 -1
  6. data/docs/RemotesGemApi.md +119 -1
  7. data/docs/RepositoriesGemApi.md +119 -1
  8. data/docs/RepositoriesGemVersionsApi.md +3 -1
  9. data/docs/SetLabel.md +19 -0
  10. data/docs/SetLabelResponse.md +19 -0
  11. data/docs/UnsetLabel.md +17 -0
  12. data/docs/UnsetLabelResponse.md +19 -0
  13. data/lib/pulp_gem_client/api/content_gem_api.rb +3 -0
  14. data/lib/pulp_gem_client/api/distributions_gem_api.rb +149 -0
  15. data/lib/pulp_gem_client/api/publications_gem_api.rb +3 -0
  16. data/lib/pulp_gem_client/api/remotes_gem_api.rb +149 -0
  17. data/lib/pulp_gem_client/api/repositories_gem_api.rb +149 -0
  18. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
  19. data/lib/pulp_gem_client/configuration.rb +2 -2
  20. data/lib/pulp_gem_client/models/set_label.rb +252 -0
  21. data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
  22. data/lib/pulp_gem_client/models/unset_label.rb +242 -0
  23. data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
  24. data/lib/pulp_gem_client/version.rb +1 -1
  25. data/lib/pulp_gem_client.rb +4 -0
  26. data/spec/api/content_gem_api_spec.rb +1 -0
  27. data/spec/api/distributions_gem_api_spec.rb +29 -0
  28. data/spec/api/publications_gem_api_spec.rb +1 -0
  29. data/spec/api/remotes_gem_api_spec.rb +29 -0
  30. data/spec/api/repositories_gem_api_spec.rb +29 -0
  31. data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
  32. data/spec/configuration_spec.rb +3 -3
  33. data/spec/models/set_label_response_spec.rb +47 -0
  34. data/spec/models/set_label_spec.rb +47 -0
  35. data/spec/models/unset_label_response_spec.rb +47 -0
  36. data/spec/models/unset_label_spec.rb +41 -0
  37. metadata +37 -21
@@ -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 PulpGemClient
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 `PulpGemClient::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 `PulpGemClient::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
+ PulpGemClient.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 PulpGemClient
14
- VERSION = '0.2.0'
14
+ VERSION = '0.3.0'
15
15
  end
@@ -44,6 +44,10 @@ require 'pulp_gem_client/models/repair'
44
44
  require 'pulp_gem_client/models/repository_add_remove_content'
45
45
  require 'pulp_gem_client/models/repository_sync_url'
46
46
  require 'pulp_gem_client/models/repository_version_response'
47
+ require 'pulp_gem_client/models/set_label'
48
+ require 'pulp_gem_client/models/set_label_response'
49
+ require 'pulp_gem_client/models/unset_label'
50
+ require 'pulp_gem_client/models/unset_label_response'
47
51
 
48
52
  # APIs
49
53
  require 'pulp_gem_client/api/content_gem_api'
@@ -58,6 +58,7 @@ describe 'ContentGemApi' do
58
58
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
59
59
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
60
60
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
61
+ # @option opts [String] :q
61
62
  # @option opts [String] :repository_version Repository Version referenced by HREF
62
63
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
63
64
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -68,13 +68,16 @@ describe 'DistributionsGemApi' 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__istartswith Filter results where name starts with value
72
74
  # @option opts [String] :name__startswith Filter results where name starts with value
73
75
  # @option opts [Integer] :offset The initial index from which to return the results.
74
76
  # @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
77
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
76
78
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
77
79
  # @option opts [String] :pulp_label_select Filter labels by search string
80
+ # @option opts [String] :q
78
81
  # @option opts [String] :repository Filter results where repository matches value
79
82
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
80
83
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -114,6 +117,32 @@ describe 'DistributionsGemApi' do
114
117
  end
115
118
  end
116
119
 
120
+ # unit tests for set_label
121
+ # Set a label
122
+ # Set a single pulp_label on the object to a specific value or null.
123
+ # @param gem_gem_distribution_href
124
+ # @param set_label
125
+ # @param [Hash] opts the optional parameters
126
+ # @return [SetLabelResponse]
127
+ describe 'set_label test' do
128
+ it 'should work' do
129
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
130
+ end
131
+ end
132
+
133
+ # unit tests for unset_label
134
+ # Unset a label
135
+ # Unset a single pulp_label on the object.
136
+ # @param gem_gem_distribution_href
137
+ # @param unset_label
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [UnsetLabelResponse]
140
+ describe 'unset_label test' do
141
+ it 'should work' do
142
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
143
+ end
144
+ end
145
+
117
146
  # unit tests for update
118
147
  # Update a gem distribution
119
148
  # Trigger an asynchronous update task
@@ -73,6 +73,7 @@ describe 'PublicationsGemApi' 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.
@@ -64,7 +64,9 @@ describe 'RemotesGemApi' do
64
64
  # @option opts [String] :name Filter results where name matches value
65
65
  # @option opts [String] :name__contains Filter results where name contains value
66
66
  # @option opts [String] :name__icontains Filter results where name contains value
67
+ # @option opts [String] :name__iexact Filter results where name matches value
67
68
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
69
+ # @option opts [String] :name__istartswith Filter results where name starts with value
68
70
  # @option opts [String] :name__startswith Filter results where name starts with value
69
71
  # @option opts [Integer] :offset The initial index from which to return the results.
70
72
  # @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)
@@ -77,6 +79,7 @@ describe 'RemotesGemApi' do
77
79
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
78
80
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
79
81
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
82
+ # @option opts [String] :q
80
83
  # @option opts [Array<String>] :fields A list of fields to include in the response.
81
84
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
82
85
  # @return [PaginatedgemGemRemoteResponseList]
@@ -113,6 +116,32 @@ describe 'RemotesGemApi' do
113
116
  end
114
117
  end
115
118
 
119
+ # unit tests for set_label
120
+ # Set a label
121
+ # Set a single pulp_label on the object to a specific value or null.
122
+ # @param gem_gem_remote_href
123
+ # @param set_label
124
+ # @param [Hash] opts the optional parameters
125
+ # @return [SetLabelResponse]
126
+ describe 'set_label test' do
127
+ it 'should work' do
128
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
129
+ end
130
+ end
131
+
132
+ # unit tests for unset_label
133
+ # Unset a label
134
+ # Unset a single pulp_label on the object.
135
+ # @param gem_gem_remote_href
136
+ # @param unset_label
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [UnsetLabelResponse]
139
+ describe 'unset_label test' do
140
+ it 'should work' do
141
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
142
+ end
143
+ end
144
+
116
145
  # unit tests for update
117
146
  # Update a gem remote
118
147
  # Trigger an asynchronous update task
@@ -65,13 +65,16 @@ describe 'RepositoriesGemApi' 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__istartswith Filter results where name starts with value
69
71
  # @option opts [String] :name__startswith Filter results where name starts with value
70
72
  # @option opts [Integer] :offset The initial index from which to return the results.
71
73
  # @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
74
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
73
75
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
74
76
  # @option opts [String] :pulp_label_select Filter labels by search string
77
+ # @option opts [String] :q
75
78
  # @option opts [String] :remote Foreign Key referenced by HREF
76
79
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
77
80
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -131,6 +134,19 @@ describe 'RepositoriesGemApi' do
131
134
  end
132
135
  end
133
136
 
137
+ # unit tests for set_label
138
+ # Set a label
139
+ # Set a single pulp_label on the object to a specific value or null.
140
+ # @param gem_gem_repository_href
141
+ # @param set_label
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [SetLabelResponse]
144
+ describe 'set_label test' do
145
+ it 'should work' do
146
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
147
+ end
148
+ end
149
+
134
150
  # unit tests for sync
135
151
  # Sync from a remote
136
152
  # Trigger an asynchronous task to sync gem content.
@@ -144,6 +160,19 @@ describe 'RepositoriesGemApi' do
144
160
  end
145
161
  end
146
162
 
163
+ # unit tests for unset_label
164
+ # Unset a label
165
+ # Unset a single pulp_label on the object.
166
+ # @param gem_gem_repository_href
167
+ # @param unset_label
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [UnsetLabelResponse]
170
+ describe 'unset_label test' do
171
+ it 'should work' do
172
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
173
+ end
174
+ end
175
+
147
176
  # unit tests for update
148
177
  # Update a gem repository
149
178
  # Trigger an asynchronous update task
@@ -67,6 +67,7 @@ describe 'RepositoriesGemVersionsApi' 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 PulpGemClient::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
  # PulpGemClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpGemClient::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
@@ -0,0 +1,47 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpGemClient::SetLabelResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SetLabelResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpGemClient::SetLabelResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SetLabelResponse' do
31
+ it 'should create an instance of SetLabelResponse' do
32
+ expect(@instance).to be_instance_of(PulpGemClient::SetLabelResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "value"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,47 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpGemClient::SetLabel
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SetLabel' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpGemClient::SetLabel.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SetLabel' do
31
+ it 'should create an instance of SetLabel' do
32
+ expect(@instance).to be_instance_of(PulpGemClient::SetLabel)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "value"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,47 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpGemClient::UnsetLabelResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'UnsetLabelResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpGemClient::UnsetLabelResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UnsetLabelResponse' do
31
+ it 'should create an instance of UnsetLabelResponse' do
32
+ expect(@instance).to be_instance_of(PulpGemClient::UnsetLabelResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "value"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,41 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpGemClient::UnsetLabel
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'UnsetLabel' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpGemClient::UnsetLabel.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UnsetLabel' do
31
+ it 'should create an instance of UnsetLabel' do
32
+ expect(@instance).to be_instance_of(PulpGemClient::UnsetLabel)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end