pulp_file_client 1.8.2 → 1.9.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 +21 -15
  3. data/docs/AcsFileApi.md +416 -0
  4. data/docs/ContentFilesApi.md +1 -1
  5. data/docs/DistributionsFileApi.md +1 -1
  6. data/docs/FileFileAlternateContentSource.md +23 -0
  7. data/docs/FileFileAlternateContentSourceResponse.md +27 -0
  8. data/docs/FileFileRepository.md +3 -3
  9. data/docs/FileFileRepositoryResponse.md +3 -3
  10. data/docs/PaginatedfileFileAlternateContentSourceResponseList.md +23 -0
  11. data/docs/PatchedfileFileAlternateContentSource.md +23 -0
  12. data/docs/PatchedfileFileRepository.md +3 -3
  13. data/docs/PublicationsFileApi.md +1 -1
  14. data/docs/RemotesFileApi.md +1 -1
  15. data/docs/RepositoriesFileApi.md +1 -1
  16. data/docs/RepositoriesFileVersionsApi.md +1 -1
  17. data/lib/pulp_file_client/api/acs_file_api.rb +508 -0
  18. data/lib/pulp_file_client/configuration.rb +2 -2
  19. data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +251 -0
  20. data/lib/pulp_file_client/models/file_file_alternate_content_source_response.rb +270 -0
  21. data/lib/pulp_file_client/models/file_file_repository.rb +17 -16
  22. data/lib/pulp_file_client/models/file_file_repository_response.rb +17 -16
  23. data/lib/pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list.rb +237 -0
  24. data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +241 -0
  25. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +17 -16
  26. data/lib/pulp_file_client/version.rb +1 -1
  27. data/lib/pulp_file_client.rb +5 -0
  28. data/spec/api/acs_file_api_spec.rb +132 -0
  29. data/spec/configuration_spec.rb +3 -3
  30. data/spec/models/file_file_alternate_content_source_response_spec.rb +71 -0
  31. data/spec/models/file_file_alternate_content_source_spec.rb +59 -0
  32. data/spec/models/file_file_repository_response_spec.rb +1 -1
  33. data/spec/models/file_file_repository_spec.rb +1 -1
  34. data/spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb +59 -0
  35. data/spec/models/patchedfile_file_alternate_content_source_spec.rb +59 -0
  36. data/spec/models/patchedfile_file_repository_spec.rb +1 -1
  37. metadata +45 -25
@@ -24,8 +24,9 @@ module PulpFileClient
24
24
  attr_accessor :description
25
25
 
26
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
@@ -40,7 +41,7 @@ module PulpFileClient
40
41
  :'pulp_labels' => :'pulp_labels',
41
42
  :'name' => :'name',
42
43
  :'description' => :'description',
43
- :'retained_versions' => :'retained_versions',
44
+ :'retain_repo_versions' => :'retain_repo_versions',
44
45
  :'remote' => :'remote',
45
46
  :'autopublish' => :'autopublish',
46
47
  :'manifest' => :'manifest'
@@ -53,7 +54,7 @@ module PulpFileClient
53
54
  :'pulp_labels' => :'Object',
54
55
  :'name' => :'String',
55
56
  :'description' => :'String',
56
- :'retained_versions' => :'Integer',
57
+ :'retain_repo_versions' => :'Integer',
57
58
  :'remote' => :'String',
58
59
  :'autopublish' => :'Boolean',
59
60
  :'manifest' => :'String'
@@ -64,7 +65,7 @@ module PulpFileClient
64
65
  def self.openapi_nullable
65
66
  Set.new([
66
67
  :'description',
67
- :'retained_versions',
68
+ :'retain_repo_versions',
68
69
  :'remote',
69
70
  ])
70
71
  end
@@ -96,8 +97,8 @@ module PulpFileClient
96
97
  self.description = attributes[:'description']
97
98
  end
98
99
 
99
- if attributes.key?(:'retained_versions')
100
- self.retained_versions = attributes[:'retained_versions']
100
+ if attributes.key?(:'retain_repo_versions')
101
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
101
102
  end
102
103
 
103
104
  if attributes.key?(:'remote')
@@ -121,8 +122,8 @@ module PulpFileClient
121
122
  # @return Array for valid properties with the reasons
122
123
  def list_invalid_properties
123
124
  invalid_properties = Array.new
124
- if !@retained_versions.nil? && @retained_versions < 1
125
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
125
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
126
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
127
  end
127
128
 
128
129
  invalid_properties
@@ -131,18 +132,18 @@ module PulpFileClient
131
132
  # Check to see if the all the properties in the model are valid
132
133
  # @return true if the model is valid
133
134
  def valid?
134
- return false if !@retained_versions.nil? && @retained_versions < 1
135
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
135
136
  true
136
137
  end
137
138
 
138
139
  # Custom attribute writer method with validation
139
- # @param [Object] retained_versions Value to be assigned
140
- def retained_versions=(retained_versions)
141
- if !retained_versions.nil? && retained_versions < 1
142
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
140
+ # @param [Object] retain_repo_versions Value to be assigned
141
+ def retain_repo_versions=(retain_repo_versions)
142
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
143
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
143
144
  end
144
145
 
145
- @retained_versions = retained_versions
146
+ @retain_repo_versions = retain_repo_versions
146
147
  end
147
148
 
148
149
  # Checks equality by comparing each attribute.
@@ -153,7 +154,7 @@ module PulpFileClient
153
154
  pulp_labels == o.pulp_labels &&
154
155
  name == o.name &&
155
156
  description == o.description &&
156
- retained_versions == o.retained_versions &&
157
+ retain_repo_versions == o.retain_repo_versions &&
157
158
  remote == o.remote &&
158
159
  autopublish == o.autopublish &&
159
160
  manifest == o.manifest
@@ -168,7 +169,7 @@ module PulpFileClient
168
169
  # Calculates hash code according to all attributes.
169
170
  # @return [Integer] Hash code
170
171
  def hash
171
- [pulp_labels, name, description, retained_versions, remote, autopublish, manifest].hash
172
+ [pulp_labels, name, description, retain_repo_versions, remote, autopublish, manifest].hash
172
173
  end
173
174
 
174
175
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '1.8.2'
14
+ VERSION = '1.9.0'
15
15
  end
@@ -20,6 +20,8 @@ require 'pulp_file_client/configuration'
20
20
  require 'pulp_file_client/models/async_operation_response'
21
21
  require 'pulp_file_client/models/content_summary'
22
22
  require 'pulp_file_client/models/content_summary_response'
23
+ require 'pulp_file_client/models/file_file_alternate_content_source'
24
+ require 'pulp_file_client/models/file_file_alternate_content_source_response'
23
25
  require 'pulp_file_client/models/file_file_content'
24
26
  require 'pulp_file_client/models/file_file_content_response'
25
27
  require 'pulp_file_client/models/file_file_distribution'
@@ -31,11 +33,13 @@ require 'pulp_file_client/models/file_file_remote_response'
31
33
  require 'pulp_file_client/models/file_file_repository'
32
34
  require 'pulp_file_client/models/file_file_repository_response'
33
35
  require 'pulp_file_client/models/paginated_repository_version_response_list'
36
+ require 'pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list'
34
37
  require 'pulp_file_client/models/paginatedfile_file_content_response_list'
35
38
  require 'pulp_file_client/models/paginatedfile_file_distribution_response_list'
36
39
  require 'pulp_file_client/models/paginatedfile_file_publication_response_list'
37
40
  require 'pulp_file_client/models/paginatedfile_file_remote_response_list'
38
41
  require 'pulp_file_client/models/paginatedfile_file_repository_response_list'
42
+ require 'pulp_file_client/models/patchedfile_file_alternate_content_source'
39
43
  require 'pulp_file_client/models/patchedfile_file_distribution'
40
44
  require 'pulp_file_client/models/patchedfile_file_remote'
41
45
  require 'pulp_file_client/models/patchedfile_file_repository'
@@ -46,6 +50,7 @@ require 'pulp_file_client/models/repository_version'
46
50
  require 'pulp_file_client/models/repository_version_response'
47
51
 
48
52
  # APIs
53
+ require 'pulp_file_client/api/acs_file_api'
49
54
  require 'pulp_file_client/api/content_files_api'
50
55
  require 'pulp_file_client/api/distributions_file_api'
51
56
  require 'pulp_file_client/api/publications_file_api'
@@ -0,0 +1,132 @@
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
+
16
+ # Unit tests for PulpFileClient::AcsFileApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'AcsFileApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpFileClient::AcsFileApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AcsFileApi' do
30
+ it 'should create an instance of AcsFileApi' do
31
+ expect(@api_instance).to be_instance_of(PulpFileClient::AcsFileApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a file alternate content source
37
+ # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
38
+ # @param file_file_alternate_content_source
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [FileFileAlternateContentSourceResponse]
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 alternate content source
49
+ # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
50
+ # @param file_file_alternate_content_source_href
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
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 alternate content sources
61
+ # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
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 [PaginatedfileFileAlternateContentSourceResponseList]
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 alternate content source
82
+ # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
83
+ # @param file_file_alternate_content_source_href
84
+ # @param patchedfile_file_alternate_content_source
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [FileFileAlternateContentSourceResponse]
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 alternate content source
95
+ # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
96
+ # @param file_file_alternate_content_source_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 [FileFileAlternateContentSourceResponse]
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 refresh
108
+ # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
109
+ # @param file_file_alternate_content_source_href
110
+ # @param file_file_alternate_content_source
111
+ # @param [Hash] opts the optional parameters
112
+ # @return [FileFileAlternateContentSourceResponse]
113
+ describe 'refresh test' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ # unit tests for update
120
+ # Update a file alternate content source
121
+ # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
122
+ # @param file_file_alternate_content_source_href
123
+ # @param file_file_alternate_content_source
124
+ # @param [Hash] opts the optional parameters
125
+ # @return [FileFileAlternateContentSourceResponse]
126
+ describe 'update 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
+ end
@@ -18,7 +18,7 @@ describe PulpFileClient::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("http://pulp")
21
+ # uri = URI.parse("https://pulp")
22
22
  # PulpFileClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpFileClient::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("http://pulp")
31
+ # expect(config.base_url).to eq("https://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("http://pulp")
38
+ # expect(config.base_url).to eq("https://pulp")
39
39
  end
40
40
  end
41
41
  end
@@ -0,0 +1,71 @@
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 PulpFileClient::FileFileAlternateContentSourceResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'FileFileAlternateContentSourceResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpFileClient::FileFileAlternateContentSourceResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FileFileAlternateContentSourceResponse' do
31
+ it 'should create an instance of FileFileAlternateContentSourceResponse' do
32
+ expect(@instance).to be_instance_of(PulpFileClient::FileFileAlternateContentSourceResponse)
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 "name"' 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 "last_refreshed"' 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 "paths"' 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
+ describe 'test attribute "remote"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,59 @@
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 PulpFileClient::FileFileAlternateContentSource
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'FileFileAlternateContentSource' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpFileClient::FileFileAlternateContentSource.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FileFileAlternateContentSource' do
31
+ it 'should create an instance of FileFileAlternateContentSource' do
32
+ expect(@instance).to be_instance_of(PulpFileClient::FileFileAlternateContentSource)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' 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 "last_refreshed"' 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 "paths"' 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 "remote"' 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
+ end
@@ -74,7 +74,7 @@ describe 'FileFileRepositoryResponse' do
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "retained_versions"' do
77
+ describe 'test attribute "retain_repo_versions"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
@@ -50,7 +50,7 @@ describe 'FileFileRepository' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "retained_versions"' do
53
+ describe 'test attribute "retain_repo_versions"' 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