pulp_file_client 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +51 -37
  3. data/docs/ContentFilesApi.md +24 -24
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsFileApi.md +108 -60
  7. data/docs/{Export.md → ExportResponse.md} +2 -2
  8. data/docs/ExportersFileExportsApi.md +34 -34
  9. data/docs/ExportersFilesystemApi.md +61 -61
  10. data/docs/FileFileContent.md +5 -17
  11. data/docs/FileFileContentResponse.md +35 -0
  12. data/docs/FileFileDistribution.md +1 -7
  13. data/docs/FileFileDistributionResponse.md +29 -0
  14. data/docs/FileFileFilesystemExporter.md +1 -5
  15. data/docs/FileFileFilesystemExporterResponse.md +23 -0
  16. data/docs/FileFilePublication.md +1 -7
  17. data/docs/FileFilePublicationResponse.md +27 -0
  18. data/docs/FileFileRemote.md +4 -10
  19. data/docs/FileFileRemoteResponse.md +43 -0
  20. data/docs/FileFileRepository.md +4 -10
  21. data/docs/FileFileRepositoryResponse.md +29 -0
  22. data/docs/InlineResponse200.md +3 -3
  23. data/docs/InlineResponse2001.md +3 -3
  24. data/docs/InlineResponse2002.md +3 -3
  25. data/docs/InlineResponse2003.md +3 -3
  26. data/docs/InlineResponse2004.md +3 -3
  27. data/docs/InlineResponse2005.md +3 -3
  28. data/docs/InlineResponse2006.md +3 -3
  29. data/docs/InlineResponse2007.md +3 -3
  30. data/docs/PatchedfileFileDistribution.md +23 -0
  31. data/docs/PatchedfileFileFilesystemExporter.md +19 -0
  32. data/docs/PatchedfileFileRemote.md +37 -0
  33. data/docs/PatchedfileFileRepository.md +21 -0
  34. data/docs/PolicyEnum.md +16 -0
  35. data/docs/PublicationsFileApi.md +40 -40
  36. data/docs/RemotesFileApi.md +125 -65
  37. data/docs/RepositoriesFileApi.md +97 -73
  38. data/docs/RepositoriesFileVersionsApi.md +94 -62
  39. data/docs/RepositoryAddRemoveContent.md +2 -2
  40. data/docs/RepositorySyncURL.md +1 -1
  41. data/docs/RepositoryVersion.md +1 -9
  42. data/docs/RepositoryVersionResponse.md +25 -0
  43. data/lib/pulp_file_client/api/content_files_api.rb +32 -36
  44. data/lib/pulp_file_client/api/distributions_file_api.rb +153 -90
  45. data/lib/pulp_file_client/api/exporters_file_exports_api.rb +55 -55
  46. data/lib/pulp_file_client/api/exporters_filesystem_api.rb +102 -102
  47. data/lib/pulp_file_client/api/publications_file_api.rb +59 -59
  48. data/lib/pulp_file_client/api/remotes_file_api.rb +181 -100
  49. data/lib/pulp_file_client/api/repositories_file_api.rb +145 -118
  50. data/lib/pulp_file_client/api/repositories_file_versions_api.rb +137 -92
  51. data/lib/pulp_file_client/api_client.rb +2 -2
  52. data/lib/pulp_file_client/api_error.rb +2 -2
  53. data/lib/pulp_file_client/configuration.rb +3 -3
  54. data/lib/pulp_file_client/models/async_operation_response.rb +3 -2
  55. data/lib/pulp_file_client/models/content_summary.rb +9 -15
  56. data/lib/pulp_file_client/models/content_summary_response.rb +240 -0
  57. data/lib/pulp_file_client/models/{export.rb → export_response.rb} +6 -5
  58. data/lib/pulp_file_client/models/file_file_content.rb +18 -185
  59. data/lib/pulp_file_client/models/file_file_content_response.rb +302 -0
  60. data/lib/pulp_file_client/models/file_file_distribution.rb +4 -85
  61. data/lib/pulp_file_client/models/file_file_distribution_response.rb +279 -0
  62. data/lib/pulp_file_client/models/file_file_filesystem_exporter.rb +4 -60
  63. data/lib/pulp_file_client/models/file_file_filesystem_exporter_response.rb +247 -0
  64. data/lib/pulp_file_client/models/file_file_publication.rb +4 -49
  65. data/lib/pulp_file_client/models/file_file_publication_response.rb +260 -0
  66. data/lib/pulp_file_client/models/file_file_remote.rb +7 -199
  67. data/lib/pulp_file_client/models/file_file_remote_response.rb +368 -0
  68. data/lib/pulp_file_client/models/file_file_repository.rb +18 -78
  69. data/lib/pulp_file_client/models/file_file_repository_response.rb +271 -0
  70. data/lib/pulp_file_client/models/inline_response200.rb +3 -13
  71. data/lib/pulp_file_client/models/inline_response2001.rb +3 -13
  72. data/lib/pulp_file_client/models/inline_response2002.rb +3 -13
  73. data/lib/pulp_file_client/models/inline_response2003.rb +3 -13
  74. data/lib/pulp_file_client/models/inline_response2004.rb +3 -13
  75. data/lib/pulp_file_client/models/inline_response2005.rb +3 -13
  76. data/lib/pulp_file_client/models/inline_response2006.rb +3 -13
  77. data/lib/pulp_file_client/models/inline_response2007.rb +3 -13
  78. data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +240 -0
  79. data/lib/pulp_file_client/models/patchedfile_file_filesystem_exporter.rb +218 -0
  80. data/lib/pulp_file_client/models/patchedfile_file_remote.rb +329 -0
  81. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +229 -0
  82. data/lib/pulp_file_client/models/policy_enum.rb +37 -0
  83. data/lib/pulp_file_client/models/publication_export.rb +3 -2
  84. data/lib/pulp_file_client/models/repository_add_remove_content.rb +5 -4
  85. data/lib/pulp_file_client/models/repository_sync_url.rb +3 -8
  86. data/lib/pulp_file_client/models/repository_version.rb +7 -43
  87. data/lib/pulp_file_client/models/repository_version_response.rb +246 -0
  88. data/lib/pulp_file_client/version.rb +3 -3
  89. data/lib/pulp_file_client.rb +16 -3
  90. data/pulp_file_client.gemspec +4 -4
  91. data/spec/api/content_files_api_spec.rb +10 -10
  92. data/spec/api/distributions_file_api_spec.rb +39 -18
  93. data/spec/api/exporters_file_exports_api_spec.rb +9 -9
  94. data/spec/api/exporters_filesystem_api_spec.rb +23 -23
  95. data/spec/api/publications_file_api_spec.rb +14 -14
  96. data/spec/api/remotes_file_api_spec.rb +48 -21
  97. data/spec/api/repositories_file_api_spec.rb +28 -19
  98. data/spec/api/repositories_file_versions_api_spec.rb +38 -23
  99. data/spec/api_client_spec.rb +2 -2
  100. data/spec/configuration_spec.rb +2 -2
  101. data/spec/models/async_operation_response_spec.rb +2 -2
  102. data/spec/models/content_summary_response_spec.rb +53 -0
  103. data/spec/models/content_summary_spec.rb +2 -2
  104. data/spec/models/{export_spec.rb → export_response_spec.rb} +8 -8
  105. data/spec/models/file_file_content_response_spec.rb +95 -0
  106. data/spec/models/file_file_content_spec.rb +4 -40
  107. data/spec/models/file_file_distribution_response_spec.rb +77 -0
  108. data/spec/models/file_file_distribution_spec.rb +2 -20
  109. data/spec/models/file_file_filesystem_exporter_response_spec.rb +59 -0
  110. data/spec/models/file_file_filesystem_exporter_spec.rb +2 -14
  111. data/spec/models/file_file_publication_response_spec.rb +71 -0
  112. data/spec/models/file_file_publication_spec.rb +2 -20
  113. data/spec/models/file_file_remote_response_spec.rb +119 -0
  114. data/spec/models/file_file_remote_spec.rb +2 -24
  115. data/spec/models/file_file_repository_response_spec.rb +77 -0
  116. data/spec/models/file_file_repository_spec.rb +5 -23
  117. data/spec/models/inline_response2001_spec.rb +2 -2
  118. data/spec/models/inline_response2002_spec.rb +2 -2
  119. data/spec/models/inline_response2003_spec.rb +2 -2
  120. data/spec/models/inline_response2004_spec.rb +2 -2
  121. data/spec/models/inline_response2005_spec.rb +2 -2
  122. data/spec/models/inline_response2006_spec.rb +2 -2
  123. data/spec/models/inline_response2007_spec.rb +2 -2
  124. data/spec/models/inline_response200_spec.rb +2 -2
  125. data/spec/models/patchedfile_file_distribution_spec.rb +59 -0
  126. data/spec/models/patchedfile_file_filesystem_exporter_spec.rb +47 -0
  127. data/spec/models/patchedfile_file_remote_spec.rb +101 -0
  128. data/spec/models/patchedfile_file_repository_spec.rb +53 -0
  129. data/spec/models/policy_enum_spec.rb +35 -0
  130. data/spec/models/publication_export_spec.rb +2 -2
  131. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  132. data/spec/models/repository_sync_url_spec.rb +2 -2
  133. data/spec/models/repository_version_response_spec.rb +65 -0
  134. data/spec/models/repository_version_spec.rb +2 -26
  135. data/spec/spec_helper.rb +2 -2
  136. metadata +76 -24
@@ -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,38 +13,22 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpFileClient
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
16
17
  class RepositoryVersion
17
- attr_accessor :pulp_href
18
-
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
- attr_accessor :number
23
-
24
18
  # A repository version whose content was used as the initial set of content for this repository version
25
19
  attr_accessor :base_version
26
20
 
27
- attr_accessor :content_summary
28
-
29
21
  # Attribute mapping from ruby-style variable name to JSON key.
30
22
  def self.attribute_map
31
23
  {
32
- :'pulp_href' => :'pulp_href',
33
- :'pulp_created' => :'pulp_created',
34
- :'number' => :'number',
35
- :'base_version' => :'base_version',
36
- :'content_summary' => :'content_summary'
24
+ :'base_version' => :'base_version'
37
25
  }
38
26
  end
39
27
 
40
28
  # Attribute type mapping.
41
29
  def self.openapi_types
42
30
  {
43
- :'pulp_href' => :'String',
44
- :'pulp_created' => :'DateTime',
45
- :'number' => :'Integer',
46
- :'base_version' => :'String',
47
- :'content_summary' => :'ContentSummary'
31
+ :'base_version' => :'String'
48
32
  }
49
33
  end
50
34
 
@@ -69,25 +53,9 @@ module PulpFileClient
69
53
  h[k.to_sym] = v
70
54
  }
71
55
 
72
- if attributes.key?(:'pulp_href')
73
- self.pulp_href = attributes[:'pulp_href']
74
- end
75
-
76
- if attributes.key?(:'pulp_created')
77
- self.pulp_created = attributes[:'pulp_created']
78
- end
79
-
80
- if attributes.key?(:'number')
81
- self.number = attributes[:'number']
82
- end
83
-
84
56
  if attributes.key?(:'base_version')
85
57
  self.base_version = attributes[:'base_version']
86
58
  end
87
-
88
- if attributes.key?(:'content_summary')
89
- self.content_summary = attributes[:'content_summary']
90
- end
91
59
  end
92
60
 
93
61
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -108,11 +76,7 @@ module PulpFileClient
108
76
  def ==(o)
109
77
  return true if self.equal?(o)
110
78
  self.class == o.class &&
111
- pulp_href == o.pulp_href &&
112
- pulp_created == o.pulp_created &&
113
- number == o.number &&
114
- base_version == o.base_version &&
115
- content_summary == o.content_summary
79
+ base_version == o.base_version
116
80
  end
117
81
 
118
82
  # @see the `==` method
@@ -124,7 +88,7 @@ module PulpFileClient
124
88
  # Calculates hash code according to all attributes.
125
89
  # @return [Integer] Hash code
126
90
  def hash
127
- [pulp_href, pulp_created, number, base_version, content_summary].hash
91
+ [base_version].hash
128
92
  end
129
93
 
130
94
  # Builds the object from hash
@@ -0,0 +1,246 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpFileClient
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ class RepositoryVersionResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ attr_accessor :number
24
+
25
+ # A repository version whose content was used as the initial set of content for this repository version
26
+ attr_accessor :base_version
27
+
28
+ # Various count summaries of the content in the version and the HREF to view them.
29
+ attr_accessor :content_summary
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'pulp_href' => :'pulp_href',
35
+ :'pulp_created' => :'pulp_created',
36
+ :'number' => :'number',
37
+ :'base_version' => :'base_version',
38
+ :'content_summary' => :'content_summary'
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'pulp_href' => :'String',
46
+ :'pulp_created' => :'DateTime',
47
+ :'number' => :'Integer',
48
+ :'base_version' => :'String',
49
+ :'content_summary' => :'ContentSummaryResponse'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ ])
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpFileClient::RepositoryVersionResponse` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!self.class.attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpFileClient::RepositoryVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'pulp_href')
75
+ self.pulp_href = attributes[:'pulp_href']
76
+ end
77
+
78
+ if attributes.key?(:'pulp_created')
79
+ self.pulp_created = attributes[:'pulp_created']
80
+ end
81
+
82
+ if attributes.key?(:'number')
83
+ self.number = attributes[:'number']
84
+ end
85
+
86
+ if attributes.key?(:'base_version')
87
+ self.base_version = attributes[:'base_version']
88
+ end
89
+
90
+ if attributes.key?(:'content_summary')
91
+ self.content_summary = attributes[:'content_summary']
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ true
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ pulp_href == o.pulp_href &&
114
+ pulp_created == o.pulp_created &&
115
+ number == o.number &&
116
+ base_version == o.base_version &&
117
+ content_summary == o.content_summary
118
+ end
119
+
120
+ # @see the `==` method
121
+ # @param [Object] Object to be compared
122
+ def eql?(o)
123
+ self == o
124
+ end
125
+
126
+ # Calculates hash code according to all attributes.
127
+ # @return [Integer] Hash code
128
+ def hash
129
+ [pulp_href, pulp_created, number, base_version, content_summary].hash
130
+ end
131
+
132
+ # Builds the object from hash
133
+ # @param [Hash] attributes Model attributes in the form of hash
134
+ # @return [Object] Returns the model itself
135
+ def self.build_from_hash(attributes)
136
+ new.build_from_hash(attributes)
137
+ end
138
+
139
+ # Builds the object from hash
140
+ # @param [Hash] attributes Model attributes in the form of hash
141
+ # @return [Object] Returns the model itself
142
+ def build_from_hash(attributes)
143
+ return nil unless attributes.is_a?(Hash)
144
+ self.class.openapi_types.each_pair do |key, type|
145
+ if type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
150
+ end
151
+ elsif !attributes[self.class.attribute_map[key]].nil?
152
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
153
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
154
+ end
155
+
156
+ self
157
+ end
158
+
159
+ # Deserializes the data based on type
160
+ # @param string type Data type
161
+ # @param string value Value to be deserialized
162
+ # @return [Object] Deserialized data
163
+ def _deserialize(type, value)
164
+ case type.to_sym
165
+ when :DateTime
166
+ DateTime.parse(value)
167
+ when :Date
168
+ Date.parse(value)
169
+ when :String
170
+ value.to_s
171
+ when :Integer
172
+ value.to_i
173
+ when :Float
174
+ value.to_f
175
+ when :Boolean
176
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
+ true
178
+ else
179
+ false
180
+ end
181
+ when :Object
182
+ # generic object (usually a Hash), return directly
183
+ value
184
+ when /\AArray<(?<inner_type>.+)>\z/
185
+ inner_type = Regexp.last_match[:inner_type]
186
+ value.map { |v| _deserialize(inner_type, v) }
187
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
+ k_type = Regexp.last_match[:k_type]
189
+ v_type = Regexp.last_match[:v_type]
190
+ {}.tap do |hash|
191
+ value.each do |k, v|
192
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
+ end
194
+ end
195
+ else # model
196
+ PulpFileClient.const_get(type).build_from_hash(value)
197
+ end
198
+ end
199
+
200
+ # Returns the string representation of the object
201
+ # @return [String] String presentation of the object
202
+ def to_s
203
+ to_hash.to_s
204
+ end
205
+
206
+ # to_body is an alias to to_hash (backward compatibility)
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_body
209
+ to_hash
210
+ end
211
+
212
+ # Returns the object in the form of hash
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_hash
215
+ hash = {}
216
+ self.class.attribute_map.each_pair do |attr, param|
217
+ value = self.send(attr)
218
+ if value.nil?
219
+ is_nullable = self.class.openapi_nullable.include?(attr)
220
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
221
+ end
222
+
223
+ hash[param] = _to_hash(value)
224
+ end
225
+ hash
226
+ end
227
+
228
+ # Outputs non-array value in the form of hash
229
+ # For object, use to_hash. Otherwise, just return the value
230
+ # @param [Object] value Any valid value
231
+ # @return [Hash] Returns the value in the form of hash
232
+ def _to_hash(value)
233
+ if value.is_a?(Array)
234
+ value.compact.map { |v| _to_hash(v) }
235
+ elsif value.is_a?(Hash)
236
+ {}.tap do |hash|
237
+ value.each { |k, v| hash[k] = _to_hash(v) }
238
+ end
239
+ elsif value.respond_to? :to_hash
240
+ value.to_hash
241
+ else
242
+ value
243
+ end
244
+ end
245
+ end
246
+ end
@@ -1,15 +1,15 @@
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
 
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '1.1.0'
14
+ VERSION = '1.2.0'
15
15
  end
@@ -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
 
@@ -19,13 +19,20 @@ require 'pulp_file_client/configuration'
19
19
  # Models
20
20
  require 'pulp_file_client/models/async_operation_response'
21
21
  require 'pulp_file_client/models/content_summary'
22
- require 'pulp_file_client/models/export'
22
+ require 'pulp_file_client/models/content_summary_response'
23
+ require 'pulp_file_client/models/export_response'
23
24
  require 'pulp_file_client/models/file_file_content'
25
+ require 'pulp_file_client/models/file_file_content_response'
24
26
  require 'pulp_file_client/models/file_file_distribution'
27
+ require 'pulp_file_client/models/file_file_distribution_response'
25
28
  require 'pulp_file_client/models/file_file_filesystem_exporter'
29
+ require 'pulp_file_client/models/file_file_filesystem_exporter_response'
26
30
  require 'pulp_file_client/models/file_file_publication'
31
+ require 'pulp_file_client/models/file_file_publication_response'
27
32
  require 'pulp_file_client/models/file_file_remote'
33
+ require 'pulp_file_client/models/file_file_remote_response'
28
34
  require 'pulp_file_client/models/file_file_repository'
35
+ require 'pulp_file_client/models/file_file_repository_response'
29
36
  require 'pulp_file_client/models/inline_response200'
30
37
  require 'pulp_file_client/models/inline_response2001'
31
38
  require 'pulp_file_client/models/inline_response2002'
@@ -34,10 +41,16 @@ require 'pulp_file_client/models/inline_response2004'
34
41
  require 'pulp_file_client/models/inline_response2005'
35
42
  require 'pulp_file_client/models/inline_response2006'
36
43
  require 'pulp_file_client/models/inline_response2007'
44
+ require 'pulp_file_client/models/patchedfile_file_distribution'
45
+ require 'pulp_file_client/models/patchedfile_file_filesystem_exporter'
46
+ require 'pulp_file_client/models/patchedfile_file_remote'
47
+ require 'pulp_file_client/models/patchedfile_file_repository'
48
+ require 'pulp_file_client/models/policy_enum'
37
49
  require 'pulp_file_client/models/publication_export'
38
50
  require 'pulp_file_client/models/repository_add_remove_content'
39
51
  require 'pulp_file_client/models/repository_sync_url'
40
52
  require 'pulp_file_client/models/repository_version'
53
+ require 'pulp_file_client/models/repository_version_response'
41
54
 
42
55
  # APIs
43
56
  require 'pulp_file_client/api/content_files_api'
@@ -3,10 +3,10 @@
3
3
  =begin
4
4
  #Pulp 3 API
5
5
 
6
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ #Fetch, Upload, Organize, and Distribute Software Packages
7
7
 
8
8
  The version of the OpenAPI document: v3
9
-
9
+ Contact: pulp-list@redhat.com
10
10
  Generated by: https://openapi-generator.tech
11
11
  OpenAPI Generator version: 4.2.3
12
12
 
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
20
20
  s.version = PulpFileClient::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["OpenAPI-Generator"]
23
- s.email = [""]
23
+ s.email = ["pulp-list@redhat.com"]
24
24
  s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
- s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
26
+ s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
@@ -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
 
@@ -51,14 +51,14 @@ describe 'ContentFilesApi' do
51
51
  # List file contents
52
52
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
53
53
  # @param [Hash] opts the optional parameters
54
- # @option opts [String] :ordering Which field to use when ordering the results.
55
- # @option opts [String] :relative_path Filter results where relative_path matches value
56
- # @option opts [String] :sha256
57
- # @option opts [String] :repository_version Repository Version referenced by HREF
58
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
59
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
60
54
  # @option opts [Integer] :limit Number of results to return per page.
61
55
  # @option opts [Integer] :offset The initial index from which to return the results.
56
+ # @option opts [String] :ordering Which field to use when ordering the results.
57
+ # @option opts [String] :relative_path relative_path
58
+ # @option opts [String] :repository_version repository_version
59
+ # @option opts [String] :repository_version_added repository_version_added
60
+ # @option opts [String] :repository_version_removed repository_version_removed
61
+ # @option opts [String] :sha256 sha256
62
62
  # @option opts [String] :fields A list of fields to include in the response.
63
63
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
64
64
  # @return [InlineResponse200]
@@ -71,11 +71,11 @@ describe 'ContentFilesApi' do
71
71
  # unit tests for read
72
72
  # Inspect a file content
73
73
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
74
- # @param file_content_href URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
74
+ # @param file_file_content_href
75
75
  # @param [Hash] opts the optional parameters
76
76
  # @option opts [String] :fields A list of fields to include in the response.
77
77
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
- # @return [FileFileContent]
78
+ # @return [FileFileContentResponse]
79
79
  describe 'read test' do
80
80
  it 'should work' do
81
81
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -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
 
@@ -35,7 +35,7 @@ describe 'DistributionsFileApi' do
35
35
  # unit tests for create
36
36
  # Create a file distribution
37
37
  # Trigger an asynchronous create task
38
- # @param data
38
+ # @param file_file_distribution
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [AsyncOperationResponse]
41
41
  describe 'create test' do
@@ -47,8 +47,15 @@ describe 'DistributionsFileApi' do
47
47
  # unit tests for delete
48
48
  # Delete a file distribution
49
49
  # Trigger an asynchronous delete task
50
- # @param file_distribution_href URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
50
+ # @param file_file_distribution_href
51
51
  # @param [Hash] opts the optional parameters
52
+ # @option opts [String] :base_path base_path
53
+ # @option opts [String] :base_path__contains base_path__contains
54
+ # @option opts [String] :base_path__icontains base_path__icontains
55
+ # @option opts [String] :base_path__in base_path__in
56
+ # @option opts [String] :name name
57
+ # @option opts [String] :name__in name__in
58
+ # @option opts [String] :ordering Which field to use when ordering the results.
52
59
  # @return [AsyncOperationResponse]
53
60
  describe 'delete test' do
54
61
  it 'should work' do
@@ -60,15 +67,15 @@ describe 'DistributionsFileApi' do
60
67
  # List file distributions
61
68
  # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
62
69
  # @param [Hash] opts the optional parameters
63
- # @option opts [String] :ordering Which field to use when ordering the results.
64
- # @option opts [String] :name
65
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
66
- # @option opts [String] :base_path
67
- # @option opts [String] :base_path__contains Filter results where base_path contains value
68
- # @option opts [String] :base_path__icontains Filter results where base_path contains value
69
- # @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
70
+ # @option opts [String] :base_path base_path
71
+ # @option opts [String] :base_path__contains base_path__contains
72
+ # @option opts [String] :base_path__icontains base_path__icontains
73
+ # @option opts [String] :base_path__in base_path__in
70
74
  # @option opts [Integer] :limit Number of results to return per page.
75
+ # @option opts [String] :name name
76
+ # @option opts [String] :name__in name__in
71
77
  # @option opts [Integer] :offset The initial index from which to return the results.
78
+ # @option opts [String] :ordering Which field to use when ordering the results.
72
79
  # @option opts [String] :fields A list of fields to include in the response.
73
80
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
81
  # @return [InlineResponse2001]
@@ -79,11 +86,18 @@ describe 'DistributionsFileApi' do
79
86
  end
80
87
 
81
88
  # unit tests for partial_update
82
- # Partially update a file distribution
89
+ # Update a file distribution
83
90
  # Trigger an asynchronous partial update task
84
- # @param file_distribution_href URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
85
- # @param data
91
+ # @param file_file_distribution_href
92
+ # @param patchedfile_file_distribution
86
93
  # @param [Hash] opts the optional parameters
94
+ # @option opts [String] :base_path base_path
95
+ # @option opts [String] :base_path__contains base_path__contains
96
+ # @option opts [String] :base_path__icontains base_path__icontains
97
+ # @option opts [String] :base_path__in base_path__in
98
+ # @option opts [String] :name name
99
+ # @option opts [String] :name__in name__in
100
+ # @option opts [String] :ordering Which field to use when ordering the results.
87
101
  # @return [AsyncOperationResponse]
88
102
  describe 'partial_update test' do
89
103
  it 'should work' do
@@ -94,11 +108,11 @@ describe 'DistributionsFileApi' do
94
108
  # unit tests for read
95
109
  # Inspect a file distribution
96
110
  # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
97
- # @param file_distribution_href URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
111
+ # @param file_file_distribution_href
98
112
  # @param [Hash] opts the optional parameters
99
113
  # @option opts [String] :fields A list of fields to include in the response.
100
114
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
101
- # @return [FileFileDistribution]
115
+ # @return [FileFileDistributionResponse]
102
116
  describe 'read test' do
103
117
  it 'should work' do
104
118
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -108,9 +122,16 @@ describe 'DistributionsFileApi' do
108
122
  # unit tests for update
109
123
  # Update a file distribution
110
124
  # Trigger an asynchronous update task
111
- # @param file_distribution_href URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
112
- # @param data
125
+ # @param file_file_distribution_href
126
+ # @param file_file_distribution
113
127
  # @param [Hash] opts the optional parameters
128
+ # @option opts [String] :base_path base_path
129
+ # @option opts [String] :base_path__contains base_path__contains
130
+ # @option opts [String] :base_path__icontains base_path__icontains
131
+ # @option opts [String] :base_path__in base_path__in
132
+ # @option opts [String] :name name
133
+ # @option opts [String] :name__in name__in
134
+ # @option opts [String] :ordering Which field to use when ordering the results.
114
135
  # @return [AsyncOperationResponse]
115
136
  describe 'update test' do
116
137
  it 'should work' do
@@ -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
 
@@ -35,8 +35,8 @@ describe 'ExportersFileExportsApi' do
35
35
  # unit tests for create
36
36
  # Create an export
37
37
  # Trigger an asynchronous task to export a file publication.
38
- # @param file_filesystem_exporter_href URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
39
- # @param data
38
+ # @param file_filesystem_export_href
39
+ # @param publication_export
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @return [AsyncOperationResponse]
42
42
  describe 'create test' do
@@ -48,7 +48,7 @@ describe 'ExportersFileExportsApi' do
48
48
  # unit tests for delete
49
49
  # Delete an export
50
50
  # FilesystemExports provide a history of previous exports.
51
- # @param export_href URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
51
+ # @param file_filesystem_export_href
52
52
  # @param [Hash] opts the optional parameters
53
53
  # @return [nil]
54
54
  describe 'delete test' do
@@ -60,11 +60,11 @@ describe 'ExportersFileExportsApi' do
60
60
  # unit tests for list
61
61
  # List exports
62
62
  # FilesystemExports provide a history of previous exports.
63
- # @param file_filesystem_exporter_href URI of File Filesystem Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
63
+ # @param file_file_filesystem_exporter_href
64
64
  # @param [Hash] opts the optional parameters
65
- # @option opts [String] :ordering Which field to use when ordering the results.
66
65
  # @option opts [Integer] :limit Number of results to return per page.
67
66
  # @option opts [Integer] :offset The initial index from which to return the results.
67
+ # @option opts [String] :ordering Which field to use when ordering the results.
68
68
  # @option opts [String] :fields A list of fields to include in the response.
69
69
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
70
70
  # @return [InlineResponse2003]
@@ -77,11 +77,11 @@ describe 'ExportersFileExportsApi' do
77
77
  # unit tests for read
78
78
  # Inspect an export
79
79
  # FilesystemExports provide a history of previous exports.
80
- # @param export_href URI of Export. e.g.: /pulp/api/v3/exporters/file/filesystem/1/exports/1/
80
+ # @param file_filesystem_export_href
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @option opts [String] :fields A list of fields to include in the response.
83
83
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
84
- # @return [Export]
84
+ # @return [ExportResponse]
85
85
  describe 'read test' do
86
86
  it 'should work' do
87
87
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers