pulp_file_client 1.8.0.dev1621916753 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -21
  3. data/lib/pulp_file_client.rb +0 -9
  4. data/lib/pulp_file_client/version.rb +1 -1
  5. metadata +4 -40
  6. data/docs/ExportResponse.md +0 -25
  7. data/docs/ExportersFileExportsApi.md +0 -243
  8. data/docs/ExportersFilesystemApi.md +0 -362
  9. data/docs/FileFileFilesystemExporter.md +0 -19
  10. data/docs/FileFileFilesystemExporterResponse.md +0 -23
  11. data/docs/PaginatedExportResponseList.md +0 -23
  12. data/docs/PaginatedfileFileFilesystemExporterResponseList.md +0 -23
  13. data/docs/PatchedfileFileFilesystemExporter.md +0 -19
  14. data/docs/PublicationExport.md +0 -17
  15. data/lib/pulp_file_client/api/exporters_file_exports_api.rb +0 -297
  16. data/lib/pulp_file_client/api/exporters_filesystem_api.rb +0 -442
  17. data/lib/pulp_file_client/models/export_response.rb +0 -250
  18. data/lib/pulp_file_client/models/file_file_filesystem_exporter.rb +0 -228
  19. data/lib/pulp_file_client/models/file_file_filesystem_exporter_response.rb +0 -247
  20. data/lib/pulp_file_client/models/paginated_export_response_list.rb +0 -237
  21. data/lib/pulp_file_client/models/paginatedfile_file_filesystem_exporter_response_list.rb +0 -237
  22. data/lib/pulp_file_client/models/patchedfile_file_filesystem_exporter.rb +0 -218
  23. data/lib/pulp_file_client/models/publication_export.rb +0 -213
  24. data/spec/api/exporters_file_exports_api_spec.rb +0 -91
  25. data/spec/api/exporters_filesystem_api_spec.rb +0 -120
  26. data/spec/models/export_response_spec.rb +0 -65
  27. data/spec/models/file_file_filesystem_exporter_response_spec.rb +0 -59
  28. data/spec/models/file_file_filesystem_exporter_spec.rb +0 -47
  29. data/spec/models/paginated_export_response_list_spec.rb +0 -59
  30. data/spec/models/paginatedfile_file_filesystem_exporter_response_list_spec.rb +0 -59
  31. data/spec/models/patchedfile_file_filesystem_exporter_spec.rb +0 -47
  32. data/spec/models/publication_export_spec.rb +0 -41
@@ -1,213 +0,0 @@
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
- # Serializer for exporting publications.
17
- class PublicationExport
18
- # A URI of the publication to be exported.
19
- attr_accessor :publication
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'publication' => :'publication'
25
- }
26
- end
27
-
28
- # Attribute type mapping.
29
- def self.openapi_types
30
- {
31
- :'publication' => :'String'
32
- }
33
- end
34
-
35
- # List of attributes with nullable: true
36
- def self.openapi_nullable
37
- Set.new([
38
- ])
39
- end
40
-
41
- # Initializes the object
42
- # @param [Hash] attributes Model attributes in the form of hash
43
- def initialize(attributes = {})
44
- if (!attributes.is_a?(Hash))
45
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpFileClient::PublicationExport` initialize method"
46
- end
47
-
48
- # check to see if the attribute exists and convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}) { |(k, v), h|
50
- if (!self.class.attribute_map.key?(k.to_sym))
51
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpFileClient::PublicationExport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
- end
53
- h[k.to_sym] = v
54
- }
55
-
56
- if attributes.key?(:'publication')
57
- self.publication = attributes[:'publication']
58
- end
59
- end
60
-
61
- # Show invalid properties with the reasons. Usually used together with valid?
62
- # @return Array for valid properties with the reasons
63
- def list_invalid_properties
64
- invalid_properties = Array.new
65
- if @publication.nil?
66
- invalid_properties.push('invalid value for "publication", publication cannot be nil.')
67
- end
68
-
69
- invalid_properties
70
- end
71
-
72
- # Check to see if the all the properties in the model are valid
73
- # @return true if the model is valid
74
- def valid?
75
- return false if @publication.nil?
76
- true
77
- end
78
-
79
- # Checks equality by comparing each attribute.
80
- # @param [Object] Object to be compared
81
- def ==(o)
82
- return true if self.equal?(o)
83
- self.class == o.class &&
84
- publication == o.publication
85
- end
86
-
87
- # @see the `==` method
88
- # @param [Object] Object to be compared
89
- def eql?(o)
90
- self == o
91
- end
92
-
93
- # Calculates hash code according to all attributes.
94
- # @return [Integer] Hash code
95
- def hash
96
- [publication].hash
97
- end
98
-
99
- # Builds the object from hash
100
- # @param [Hash] attributes Model attributes in the form of hash
101
- # @return [Object] Returns the model itself
102
- def self.build_from_hash(attributes)
103
- new.build_from_hash(attributes)
104
- end
105
-
106
- # Builds the object from hash
107
- # @param [Hash] attributes Model attributes in the form of hash
108
- # @return [Object] Returns the model itself
109
- def build_from_hash(attributes)
110
- return nil unless attributes.is_a?(Hash)
111
- self.class.openapi_types.each_pair do |key, type|
112
- if type =~ /\AArray<(.*)>/i
113
- # check to ensure the input is an array given that the attribute
114
- # is documented as an array but the input is not
115
- if attributes[self.class.attribute_map[key]].is_a?(Array)
116
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
- end
118
- elsif !attributes[self.class.attribute_map[key]].nil?
119
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
- end # or else data not found in attributes(hash), not an issue as the data can be optional
121
- end
122
-
123
- self
124
- end
125
-
126
- # Deserializes the data based on type
127
- # @param string type Data type
128
- # @param string value Value to be deserialized
129
- # @return [Object] Deserialized data
130
- def _deserialize(type, value)
131
- case type.to_sym
132
- when :DateTime
133
- DateTime.parse(value)
134
- when :Date
135
- Date.parse(value)
136
- when :String
137
- value.to_s
138
- when :Integer
139
- value.to_i
140
- when :Float
141
- value.to_f
142
- when :Boolean
143
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
- true
145
- else
146
- false
147
- end
148
- when :Object
149
- # generic object (usually a Hash), return directly
150
- value
151
- when /\AArray<(?<inner_type>.+)>\z/
152
- inner_type = Regexp.last_match[:inner_type]
153
- value.map { |v| _deserialize(inner_type, v) }
154
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
- k_type = Regexp.last_match[:k_type]
156
- v_type = Regexp.last_match[:v_type]
157
- {}.tap do |hash|
158
- value.each do |k, v|
159
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
- end
161
- end
162
- else # model
163
- PulpFileClient.const_get(type).build_from_hash(value)
164
- end
165
- end
166
-
167
- # Returns the string representation of the object
168
- # @return [String] String presentation of the object
169
- def to_s
170
- to_hash.to_s
171
- end
172
-
173
- # to_body is an alias to to_hash (backward compatibility)
174
- # @return [Hash] Returns the object in the form of hash
175
- def to_body
176
- to_hash
177
- end
178
-
179
- # Returns the object in the form of hash
180
- # @return [Hash] Returns the object in the form of hash
181
- def to_hash
182
- hash = {}
183
- self.class.attribute_map.each_pair do |attr, param|
184
- value = self.send(attr)
185
- if value.nil?
186
- is_nullable = self.class.openapi_nullable.include?(attr)
187
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
- end
189
-
190
- hash[param] = _to_hash(value)
191
- end
192
- hash
193
- end
194
-
195
- # Outputs non-array value in the form of hash
196
- # For object, use to_hash. Otherwise, just return the value
197
- # @param [Object] value Any valid value
198
- # @return [Hash] Returns the value in the form of hash
199
- def _to_hash(value)
200
- if value.is_a?(Array)
201
- value.compact.map { |v| _to_hash(v) }
202
- elsif value.is_a?(Hash)
203
- {}.tap do |hash|
204
- value.each { |k, v| hash[k] = _to_hash(v) }
205
- end
206
- elsif value.respond_to? :to_hash
207
- value.to_hash
208
- else
209
- value
210
- end
211
- end
212
- end
213
- end
@@ -1,91 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for PulpFileClient::ExportersFileExportsApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'ExportersFileExportsApi' do
20
- before do
21
- # run before each test
22
- @api_instance = PulpFileClient::ExportersFileExportsApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of ExportersFileExportsApi' do
30
- it 'should create an instance of ExportersFileExportsApi' do
31
- expect(@api_instance).to be_instance_of(PulpFileClient::ExportersFileExportsApi)
32
- end
33
- end
34
-
35
- # unit tests for create
36
- # Create an export
37
- # Trigger an asynchronous task to export a file publication.
38
- # @param file_file_filesystem_exporter_href
39
- # @param publication_export
40
- # @param [Hash] opts the optional parameters
41
- # @return [AsyncOperationResponse]
42
- describe 'create test' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
-
48
- # unit tests for delete
49
- # Delete an export
50
- # FilesystemExports provide a history of previous exports.
51
- # @param file_filesystem_export_href
52
- # @param [Hash] opts the optional parameters
53
- # @return [nil]
54
- describe 'delete test' do
55
- it 'should work' do
56
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
- end
58
- end
59
-
60
- # unit tests for list
61
- # List exports
62
- # FilesystemExports provide a history of previous exports.
63
- # @param file_file_filesystem_exporter_href
64
- # @param [Hash] opts the optional parameters
65
- # @option opts [Integer] :limit Number of results to return per page.
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
- # @option opts [String] :fields A list of fields to include in the response.
69
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
70
- # @return [PaginatedExportResponseList]
71
- describe 'list test' 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
-
77
- # unit tests for read
78
- # Inspect an export
79
- # FilesystemExports provide a history of previous exports.
80
- # @param file_filesystem_export_href
81
- # @param [Hash] opts the optional parameters
82
- # @option opts [String] :fields A list of fields to include in the response.
83
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
84
- # @return [ExportResponse]
85
- describe 'read test' do
86
- it 'should work' do
87
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
88
- end
89
- end
90
-
91
- end
@@ -1,120 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for PulpFileClient::ExportersFilesystemApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'ExportersFilesystemApi' do
20
- before do
21
- # run before each test
22
- @api_instance = PulpFileClient::ExportersFilesystemApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of ExportersFilesystemApi' do
30
- it 'should create an instance of ExportersFilesystemApi' do
31
- expect(@api_instance).to be_instance_of(PulpFileClient::ExportersFilesystemApi)
32
- end
33
- end
34
-
35
- # unit tests for create
36
- # Create a file filesystem exporter
37
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
38
- # @param file_file_filesystem_exporter
39
- # @param [Hash] opts the optional parameters
40
- # @return [FileFileFilesystemExporterResponse]
41
- describe 'create test' 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
- # unit tests for delete
48
- # Delete a file filesystem exporter
49
- # Trigger an asynchronous delete task
50
- # @param file_file_filesystem_exporter_href
51
- # @param [Hash] opts the optional parameters
52
- # @return [AsyncOperationResponse]
53
- describe 'delete test' do
54
- it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- end
57
- end
58
-
59
- # unit tests for list
60
- # List file filesystem exporters
61
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
62
- # @param [Hash] opts the optional parameters
63
- # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name
65
- # @option opts [String] :name__contains Filter results where name contains value
66
- # @option opts [String] :name__icontains Filter results where name contains value
67
- # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
- # @option opts [String] :name__startswith Filter results where name starts with value
69
- # @option opts [Integer] :offset The initial index from which to return the results.
70
- # @option opts [String] :ordering Which field to use when ordering the results.
71
- # @option opts [String] :fields A list of fields to include in the response.
72
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
- # @return [PaginatedfileFileFilesystemExporterResponseList]
74
- describe 'list test' do
75
- it 'should work' do
76
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
- end
78
- end
79
-
80
- # unit tests for partial_update
81
- # Update a file filesystem exporter
82
- # Trigger an asynchronous partial update task
83
- # @param file_file_filesystem_exporter_href
84
- # @param patchedfile_file_filesystem_exporter
85
- # @param [Hash] opts the optional parameters
86
- # @return [AsyncOperationResponse]
87
- describe 'partial_update test' do
88
- it 'should work' do
89
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
- end
91
- end
92
-
93
- # unit tests for read
94
- # Inspect a file filesystem exporter
95
- # FilesystemExporters export content from a publication to a path on the file system. WARNING: This feature is provided as a tech preview and may change in the future. Backwards compatibility is not guaranteed.
96
- # @param file_file_filesystem_exporter_href
97
- # @param [Hash] opts the optional parameters
98
- # @option opts [String] :fields A list of fields to include in the response.
99
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
100
- # @return [FileFileFilesystemExporterResponse]
101
- describe 'read test' do
102
- it 'should work' do
103
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
- end
105
- end
106
-
107
- # unit tests for update
108
- # Update a file filesystem exporter
109
- # Trigger an asynchronous update task
110
- # @param file_file_filesystem_exporter_href
111
- # @param file_file_filesystem_exporter
112
- # @param [Hash] opts the optional parameters
113
- # @return [AsyncOperationResponse]
114
- describe 'update test' do
115
- it 'should work' do
116
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
- end
118
- end
119
-
120
- end
@@ -1,65 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for PulpFileClient::ExportResponse
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'ExportResponse' do
21
- before do
22
- # run before each test
23
- @instance = PulpFileClient::ExportResponse.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- describe 'test an instance of ExportResponse' do
31
- it 'should create an instance of ExportResponse' do
32
- expect(@instance).to be_instance_of(PulpFileClient::ExportResponse)
33
- end
34
- end
35
- describe 'test attribute "pulp_href"' 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 "pulp_created"' 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
- describe 'test attribute "task"' 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
-
53
- describe 'test attribute "exported_resources"' do
54
- it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- end
57
- end
58
-
59
- describe 'test attribute "params"' do
60
- it 'should work' do
61
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
- end
63
- end
64
-
65
- end