pulp_deb_client 2.19.3 → 2.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdbcd17bc3976788bc1ea9b620c5ae4ab93917ce96552cdd022013d510678133
4
- data.tar.gz: 58bd8cf79e2949323d76b5d0060342e5a6f9d0386be868297c12954ca02449db
3
+ metadata.gz: 69a066d0e0f8c247416aed3556b2778e85defce56b05fd1f22489cba102b7811
4
+ data.tar.gz: 7348aff1063c1495ae9f6bf98e2c4298ed05f3618feee691ef242b2cca881fab
5
5
  SHA512:
6
- metadata.gz: 7efdf5815dc5e503a668d9ebf76c07ea6f479daf5ebd6cb741d114e80884d94527a966116b41562fd71a9fae6d1a09d2a9b452f29f0077ea46e1a83785c99e12
7
- data.tar.gz: 8689cbf69c878de4c04cf8ded0f31cdef75f0bb5dd2be2a653d184f0a5b6b62b5125a005d5e4f4d384aa051702f61db103628f30c0cdca8763e07b778810677a
6
+ metadata.gz: 5df818df04c072dca4e793447ef9740f5c4f8207a78a6c66e1d510a41eb65effa68079f12e68dc00ed00c5d55ec1630d5aa9621ba57b54f83250c2135463c485
7
+ data.tar.gz: 4c2f329fbe624123d8a8282a84a1332a31d99e88820b825a8a4549caec0a6858fa861e83e16723a0558cbf4de677965b3eee2becaab818ee0dd7bdcc9b476e2c
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 2.19.3
10
+ - Package version: 2.20.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_deb_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_deb_client-2.19.3.gem
27
+ gem install ./pulp_deb_client-2.20.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_deb_client-2.19.3.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_deb_client-2.20.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_deb_client', '~> 2.19.3'
36
+ gem 'pulp_deb_client', '~> 2.20.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -156,6 +156,7 @@ Class | Method | HTTP request | Description
156
156
 
157
157
  ## Documentation for Models
158
158
 
159
+ - [PulpDebClient::AptRepositorySyncURL](docs/AptRepositorySyncURL.md)
159
160
  - [PulpDebClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
160
161
  - [PulpDebClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
161
162
  - [PulpDebClient::Copy](docs/Copy.md)
@@ -208,7 +209,6 @@ Class | Method | HTTP request | Description
208
209
  - [PulpDebClient::PolicyEnum](docs/PolicyEnum.md)
209
210
  - [PulpDebClient::Repair](docs/Repair.md)
210
211
  - [PulpDebClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
211
- - [PulpDebClient::RepositorySyncURL](docs/RepositorySyncURL.md)
212
212
  - [PulpDebClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
213
213
 
214
214
 
@@ -0,0 +1,21 @@
1
+ # PulpDebClient::AptRepositorySyncURL
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
8
+ **mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
9
+ **optimize** | **Boolean** | Using optimize sync, will skip the processing of metadata if the checksum has not changed since the last sync. This greately improves re-sync performance in such situations. If you feel the sync is missing something that has changed about the remote repository you are syncing, try using optimize=False for a full re-sync. Consider opening an issue on why we should not optimize in your use case. | [optional] [default to true]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpDebClient'
15
+
16
+ instance = PulpDebClient::AptRepositorySyncURL.new(remote: null,
17
+ mirror: null,
18
+ optimize: null)
19
+ ```
20
+
21
+
@@ -154,6 +154,7 @@ opts = {
154
154
  offset: 56, # Integer | The initial index from which to return the results.
155
155
  ordering: ['ordering_example'], # Array<String> | Ordering
156
156
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
157
+ with_content: 'with_content_example', # String | Filter distributions based on the content served by them
157
158
  fields: 'fields_example', # String | A list of fields to include in the response.
158
159
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
159
160
  }
@@ -185,6 +186,7 @@ Name | Type | Description | Notes
185
186
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
186
187
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
187
188
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
189
+ **with_content** | **String**| Filter distributions based on the content served by them | [optional]
188
190
  **fields** | **String**| A list of fields to include in the response. | [optional]
189
191
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
190
192
 
@@ -152,6 +152,7 @@ opts = {
152
152
  offset: 56, # Integer | The initial index from which to return the results.
153
153
  ordering: ['ordering_example'], # Array<String> | Ordering
154
154
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
155
+ remote: 'remote_example', # String | Foreign Key referenced by HREF
155
156
  fields: 'fields_example', # String | A list of fields to include in the response.
156
157
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
157
158
  }
@@ -179,6 +180,7 @@ Name | Type | Description | Notes
179
180
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
180
181
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
181
182
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
183
+ **remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
182
184
  **fields** | **String**| A list of fields to include in the response. | [optional]
183
185
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
184
186
 
@@ -367,7 +369,7 @@ Name | Type | Description | Notes
367
369
 
368
370
  ## sync
369
371
 
370
- > AsyncOperationResponse sync(deb_apt_repository_href, repository_sync_url)
372
+ > AsyncOperationResponse sync(deb_apt_repository_href, apt_repository_sync_url)
371
373
 
372
374
  Sync from remote
373
375
 
@@ -387,11 +389,11 @@ end
387
389
 
388
390
  api_instance = PulpDebClient::RepositoriesAptApi.new
389
391
  deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
390
- repository_sync_url = PulpDebClient::RepositorySyncURL.new # RepositorySyncURL |
392
+ apt_repository_sync_url = PulpDebClient::AptRepositorySyncURL.new # AptRepositorySyncURL |
391
393
 
392
394
  begin
393
395
  #Sync from remote
394
- result = api_instance.sync(deb_apt_repository_href, repository_sync_url)
396
+ result = api_instance.sync(deb_apt_repository_href, apt_repository_sync_url)
395
397
  p result
396
398
  rescue PulpDebClient::ApiError => e
397
399
  puts "Exception when calling RepositoriesAptApi->sync: #{e}"
@@ -404,7 +406,7 @@ end
404
406
  Name | Type | Description | Notes
405
407
  ------------- | ------------- | ------------- | -------------
406
408
  **deb_apt_repository_href** | **String**| |
407
- **repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
409
+ **apt_repository_sync_url** | [**AptRepositorySyncURL**](AptRepositorySyncURL.md)| |
408
410
 
409
411
  ### Return type
410
412
 
@@ -161,6 +161,7 @@ module PulpDebClient
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
162
  # @option opts [Array<String>] :ordering Ordering
163
163
  # @option opts [String] :pulp_label_select Filter labels by search string
164
+ # @option opts [String] :with_content Filter distributions based on the content served by them
164
165
  # @option opts [String] :fields A list of fields to include in the response.
165
166
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
167
  # @return [PaginateddebAptDistributionResponseList]
@@ -185,6 +186,7 @@ module PulpDebClient
185
186
  # @option opts [Integer] :offset The initial index from which to return the results.
186
187
  # @option opts [Array<String>] :ordering Ordering
187
188
  # @option opts [String] :pulp_label_select Filter labels by search string
189
+ # @option opts [String] :with_content Filter distributions based on the content served by them
188
190
  # @option opts [String] :fields A list of fields to include in the response.
189
191
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
190
192
  # @return [Array<(PaginateddebAptDistributionResponseList, Integer, Hash)>] PaginateddebAptDistributionResponseList data, response status code and response headers
@@ -214,6 +216,7 @@ module PulpDebClient
214
216
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
215
217
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
216
218
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
219
+ query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
217
220
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
218
221
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
219
222
 
@@ -157,6 +157,7 @@ module PulpDebClient
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
+ # @option opts [String] :remote Foreign Key referenced by HREF
160
161
  # @option opts [String] :fields A list of fields to include in the response.
161
162
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
163
  # @return [PaginateddebAptRepositoryResponseList]
@@ -177,6 +178,7 @@ module PulpDebClient
177
178
  # @option opts [Integer] :offset The initial index from which to return the results.
178
179
  # @option opts [Array<String>] :ordering Ordering
179
180
  # @option opts [String] :pulp_label_select Filter labels by search string
181
+ # @option opts [String] :remote Foreign Key referenced by HREF
180
182
  # @option opts [String] :fields A list of fields to include in the response.
181
183
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
184
  # @return [Array<(PaginateddebAptRepositoryResponseList, Integer, Hash)>] PaginateddebAptRepositoryResponseList data, response status code and response headers
@@ -202,6 +204,7 @@ module PulpDebClient
202
204
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
203
205
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
204
206
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
207
+ query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
205
208
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
206
209
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
207
210
 
@@ -449,21 +452,21 @@ module PulpDebClient
449
452
  # Sync from remote
450
453
  # Trigger an asynchronous task to sync content
451
454
  # @param deb_apt_repository_href [String]
452
- # @param repository_sync_url [RepositorySyncURL]
455
+ # @param apt_repository_sync_url [AptRepositorySyncURL]
453
456
  # @param [Hash] opts the optional parameters
454
457
  # @return [AsyncOperationResponse]
455
- def sync(deb_apt_repository_href, repository_sync_url, opts = {})
456
- data, _status_code, _headers = sync_with_http_info(deb_apt_repository_href, repository_sync_url, opts)
458
+ def sync(deb_apt_repository_href, apt_repository_sync_url, opts = {})
459
+ data, _status_code, _headers = sync_with_http_info(deb_apt_repository_href, apt_repository_sync_url, opts)
457
460
  data
458
461
  end
459
462
 
460
463
  # Sync from remote
461
464
  # Trigger an asynchronous task to sync content
462
465
  # @param deb_apt_repository_href [String]
463
- # @param repository_sync_url [RepositorySyncURL]
466
+ # @param apt_repository_sync_url [AptRepositorySyncURL]
464
467
  # @param [Hash] opts the optional parameters
465
468
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
466
- def sync_with_http_info(deb_apt_repository_href, repository_sync_url, opts = {})
469
+ def sync_with_http_info(deb_apt_repository_href, apt_repository_sync_url, opts = {})
467
470
  if @api_client.config.debugging
468
471
  @api_client.config.logger.debug 'Calling API: RepositoriesAptApi.sync ...'
469
472
  end
@@ -471,9 +474,9 @@ module PulpDebClient
471
474
  if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
472
475
  fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.sync"
473
476
  end
474
- # verify the required parameter 'repository_sync_url' is set
475
- if @api_client.config.client_side_validation && repository_sync_url.nil?
476
- fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesAptApi.sync"
477
+ # verify the required parameter 'apt_repository_sync_url' is set
478
+ if @api_client.config.client_side_validation && apt_repository_sync_url.nil?
479
+ fail ArgumentError, "Missing the required parameter 'apt_repository_sync_url' when calling RepositoriesAptApi.sync"
477
480
  end
478
481
  # resource path
479
482
  local_var_path = '{deb_apt_repository_href}sync/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
@@ -492,7 +495,7 @@ module PulpDebClient
492
495
  form_params = opts[:form_params] || {}
493
496
 
494
497
  # http body (model)
495
- post_body = opts[:body] || @api_client.object_to_http_body(repository_sync_url)
498
+ post_body = opts[:body] || @api_client.object_to_http_body(apt_repository_sync_url)
496
499
 
497
500
  # return_type
498
501
  return_type = opts[:return_type] || 'AsyncOperationResponse'
@@ -142,7 +142,7 @@ module PulpDebClient
142
142
  if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptVersionsApi.list"
144
144
  end
145
- allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
145
+ allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
146
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
148
  end
@@ -13,19 +13,23 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- # A mixin for validating unknown serializers' fields.
17
- class RepositorySyncURL
16
+ # A Serializer for AptRepository Sync.
17
+ class AptRepositorySyncURL
18
18
  # A remote to sync from. This will override a remote set on repository.
19
19
  attr_accessor :remote
20
20
 
21
21
  # If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
22
22
  attr_accessor :mirror
23
23
 
24
+ # Using optimize sync, will skip the processing of metadata if the checksum has not changed since the last sync. This greately improves re-sync performance in such situations. If you feel the sync is missing something that has changed about the remote repository you are syncing, try using optimize=False for a full re-sync. Consider opening an issue on why we should not optimize in your use case.
25
+ attr_accessor :optimize
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'remote' => :'remote',
28
- :'mirror' => :'mirror'
31
+ :'mirror' => :'mirror',
32
+ :'optimize' => :'optimize'
29
33
  }
30
34
  end
31
35
 
@@ -33,7 +37,8 @@ module PulpDebClient
33
37
  def self.openapi_types
34
38
  {
35
39
  :'remote' => :'String',
36
- :'mirror' => :'Boolean'
40
+ :'mirror' => :'Boolean',
41
+ :'optimize' => :'Boolean'
37
42
  }
38
43
  end
39
44
 
@@ -47,13 +52,13 @@ module PulpDebClient
47
52
  # @param [Hash] attributes Model attributes in the form of hash
48
53
  def initialize(attributes = {})
49
54
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::RepositorySyncURL` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::AptRepositorySyncURL` initialize method"
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
54
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
60
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::RepositorySyncURL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::AptRepositorySyncURL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
62
  end
58
63
  h[k.to_sym] = v
59
64
  }
@@ -67,6 +72,12 @@ module PulpDebClient
67
72
  else
68
73
  self.mirror = false
69
74
  end
75
+
76
+ if attributes.key?(:'optimize')
77
+ self.optimize = attributes[:'optimize']
78
+ else
79
+ self.optimize = true
80
+ end
70
81
  end
71
82
 
72
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +99,8 @@ module PulpDebClient
88
99
  return true if self.equal?(o)
89
100
  self.class == o.class &&
90
101
  remote == o.remote &&
91
- mirror == o.mirror
102
+ mirror == o.mirror &&
103
+ optimize == o.optimize
92
104
  end
93
105
 
94
106
  # @see the `==` method
@@ -100,7 +112,7 @@ module PulpDebClient
100
112
  # Calculates hash code according to all attributes.
101
113
  # @return [Integer] Hash code
102
114
  def hash
103
- [remote, mirror].hash
115
+ [remote, mirror, optimize].hash
104
116
  end
105
117
 
106
118
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '2.19.3'
14
+ VERSION = '2.20.0'
15
15
  end
@@ -17,6 +17,7 @@ require 'pulp_deb_client/version'
17
17
  require 'pulp_deb_client/configuration'
18
18
 
19
19
  # Models
20
+ require 'pulp_deb_client/models/apt_repository_sync_url'
20
21
  require 'pulp_deb_client/models/async_operation_response'
21
22
  require 'pulp_deb_client/models/content_summary_response'
22
23
  require 'pulp_deb_client/models/copy'
@@ -69,7 +70,6 @@ require 'pulp_deb_client/models/patcheddeb_apt_repository'
69
70
  require 'pulp_deb_client/models/policy_enum'
70
71
  require 'pulp_deb_client/models/repair'
71
72
  require 'pulp_deb_client/models/repository_add_remove_content'
72
- require 'pulp_deb_client/models/repository_sync_url'
73
73
  require 'pulp_deb_client/models/repository_version_response'
74
74
 
75
75
  # APIs
@@ -73,6 +73,7 @@ describe 'DistributionsAptApi' do
73
73
  # @option opts [Integer] :offset The initial index from which to return the results.
74
74
  # @option opts [Array<String>] :ordering Ordering
75
75
  # @option opts [String] :pulp_label_select Filter labels by search string
76
+ # @option opts [String] :with_content Filter distributions based on the content served by them
76
77
  # @option opts [String] :fields A list of fields to include in the response.
77
78
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
79
  # @return [PaginateddebAptDistributionResponseList]
@@ -69,6 +69,7 @@ describe 'RepositoriesAptApi' do
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [Array<String>] :ordering Ordering
71
71
  # @option opts [String] :pulp_label_select Filter labels by search string
72
+ # @option opts [String] :remote Foreign Key referenced by HREF
72
73
  # @option opts [String] :fields A list of fields to include in the response.
73
74
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
75
  # @return [PaginateddebAptRepositoryResponseList]
@@ -122,7 +123,7 @@ describe 'RepositoriesAptApi' do
122
123
  # Sync from remote
123
124
  # Trigger an asynchronous task to sync content
124
125
  # @param deb_apt_repository_href
125
- # @param repository_sync_url
126
+ # @param apt_repository_sync_url
126
127
  # @param [Hash] opts the optional parameters
127
128
  # @return [AsyncOperationResponse]
128
129
  describe 'sync test' do
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for PulpDebClient::RepositorySyncURL
17
+ # Unit tests for PulpDebClient::AptRepositorySyncURL
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'RepositorySyncURL' do
20
+ describe 'AptRepositorySyncURL' do
21
21
  before do
22
22
  # run before each test
23
- @instance = PulpDebClient::RepositorySyncURL.new
23
+ @instance = PulpDebClient::AptRepositorySyncURL.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of RepositorySyncURL' do
31
- it 'should create an instance of RepositorySyncURL' do
32
- expect(@instance).to be_instance_of(PulpDebClient::RepositorySyncURL)
30
+ describe 'test an instance of AptRepositorySyncURL' do
31
+ it 'should create an instance of AptRepositorySyncURL' do
32
+ expect(@instance).to be_instance_of(PulpDebClient::AptRepositorySyncURL)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "remote"' do
@@ -44,4 +44,10 @@ describe 'RepositorySyncURL' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "optimize"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_deb_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.3
4
+ version: 2.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-07 00:00:00.000000000 Z
11
+ date: 2022-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -80,6 +80,7 @@ files:
80
80
  - Gemfile
81
81
  - README.md
82
82
  - Rakefile
83
+ - docs/AptRepositorySyncURL.md
83
84
  - docs/AsyncOperationResponse.md
84
85
  - docs/ContentGenericContentsApi.md
85
86
  - docs/ContentInstallerFileIndicesApi.md
@@ -149,7 +150,6 @@ files:
149
150
  - docs/RepositoriesAptApi.md
150
151
  - docs/RepositoriesAptVersionsApi.md
151
152
  - docs/RepositoryAddRemoveContent.md
152
- - docs/RepositorySyncURL.md
153
153
  - docs/RepositoryVersionResponse.md
154
154
  - lib/pulp_deb_client.rb
155
155
  - lib/pulp_deb_client/api/content_generic_contents_api.rb
@@ -172,6 +172,7 @@ files:
172
172
  - lib/pulp_deb_client/api_client.rb
173
173
  - lib/pulp_deb_client/api_error.rb
174
174
  - lib/pulp_deb_client/configuration.rb
175
+ - lib/pulp_deb_client/models/apt_repository_sync_url.rb
175
176
  - lib/pulp_deb_client/models/async_operation_response.rb
176
177
  - lib/pulp_deb_client/models/content_summary_response.rb
177
178
  - lib/pulp_deb_client/models/copy.rb
@@ -224,7 +225,6 @@ files:
224
225
  - lib/pulp_deb_client/models/policy_enum.rb
225
226
  - lib/pulp_deb_client/models/repair.rb
226
227
  - lib/pulp_deb_client/models/repository_add_remove_content.rb
227
- - lib/pulp_deb_client/models/repository_sync_url.rb
228
228
  - lib/pulp_deb_client/models/repository_version_response.rb
229
229
  - lib/pulp_deb_client/version.rb
230
230
  - pulp_deb_client.gemspec
@@ -247,6 +247,7 @@ files:
247
247
  - spec/api/repositories_apt_versions_api_spec.rb
248
248
  - spec/api_client_spec.rb
249
249
  - spec/configuration_spec.rb
250
+ - spec/models/apt_repository_sync_url_spec.rb
250
251
  - spec/models/async_operation_response_spec.rb
251
252
  - spec/models/content_summary_response_spec.rb
252
253
  - spec/models/copy_spec.rb
@@ -299,7 +300,6 @@ files:
299
300
  - spec/models/policy_enum_spec.rb
300
301
  - spec/models/repair_spec.rb
301
302
  - spec/models/repository_add_remove_content_spec.rb
302
- - spec/models/repository_sync_url_spec.rb
303
303
  - spec/models/repository_version_response_spec.rb
304
304
  - spec/spec_helper.rb
305
305
  homepage: https://github.com/pulp/pulp_deb
@@ -326,77 +326,77 @@ signing_key:
326
326
  specification_version: 4
327
327
  summary: Pulp 3 API Ruby Gem
328
328
  test_files:
329
- - spec/api/repositories_apt_api_spec.rb
330
- - spec/api/content_release_components_api_spec.rb
331
- - spec/api/content_installer_packages_api_spec.rb
332
- - spec/api/distributions_apt_api_spec.rb
333
- - spec/api/content_package_release_components_api_spec.rb
334
329
  - spec/api/repositories_apt_versions_api_spec.rb
335
- - spec/api/content_releases_api_spec.rb
336
- - spec/api/deb_copy_api_spec.rb
337
- - spec/api/publications_apt_api_spec.rb
330
+ - spec/api/content_release_files_api_spec.rb
338
331
  - spec/api/publications_verbatim_api_spec.rb
332
+ - spec/api/content_packages_api_spec.rb
333
+ - spec/api/repositories_apt_api_spec.rb
339
334
  - spec/api/content_generic_contents_api_spec.rb
340
- - spec/api/content_installer_file_indices_api_spec.rb
335
+ - spec/api/publications_apt_api_spec.rb
336
+ - spec/api/deb_copy_api_spec.rb
337
+ - spec/api/distributions_apt_api_spec.rb
338
+ - spec/api/content_package_release_components_api_spec.rb
341
339
  - spec/api/content_package_indices_api_spec.rb
342
340
  - spec/api/content_release_architectures_api_spec.rb
343
- - spec/api/content_release_files_api_spec.rb
344
341
  - spec/api/remotes_apt_api_spec.rb
345
- - spec/api/content_packages_api_spec.rb
342
+ - spec/api/content_installer_packages_api_spec.rb
343
+ - spec/api/content_installer_file_indices_api_spec.rb
344
+ - spec/api/content_releases_api_spec.rb
345
+ - spec/api/content_release_components_api_spec.rb
346
346
  - spec/api_client_spec.rb
347
347
  - spec/configuration_spec.rb
348
- - spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
349
- - spec/models/deb_apt_remote_spec.rb
350
- - spec/models/deb_base_package_response_spec.rb
351
- - spec/models/patcheddeb_apt_distribution_spec.rb
352
- - spec/models/paginateddeb_apt_distribution_response_list_spec.rb
353
- - spec/models/deb_release_file_response_spec.rb
354
- - spec/models/deb_generic_content_response_spec.rb
355
- - spec/models/deb_release_component_response_spec.rb
356
- - spec/models/async_operation_response_spec.rb
357
- - spec/models/paginated_repository_version_response_list_spec.rb
358
- - spec/models/repair_spec.rb
359
- - spec/models/repository_sync_url_spec.rb
360
348
  - spec/models/paginateddeb_generic_content_response_list_spec.rb
361
- - spec/models/deb_package_release_component_response_spec.rb
362
- - spec/models/paginateddeb_base_package_response_list_spec.rb
349
+ - spec/models/repository_version_response_spec.rb
350
+ - spec/models/paginateddeb_apt_publication_response_list_spec.rb
351
+ - spec/models/deb_installer_file_index_spec.rb
352
+ - spec/models/paginateddeb_package_index_response_list_spec.rb
353
+ - spec/models/deb_verbatim_publication_spec.rb
354
+ - spec/models/deb_base_package_response_spec.rb
363
355
  - spec/models/paginateddeb_release_component_response_list_spec.rb
364
- - spec/models/paginateddeb_release_file_response_list_spec.rb
365
- - spec/models/deb_base_package_spec.rb
366
- - spec/models/deb_apt_repository_spec.rb
356
+ - spec/models/paginateddeb_apt_remote_response_list_spec.rb
357
+ - spec/models/paginateddeb_apt_repository_response_list_spec.rb
358
+ - spec/models/patcheddeb_apt_remote_spec.rb
367
359
  - spec/models/deb_package_release_component_spec.rb
368
- - spec/models/repository_version_response_spec.rb
369
- - spec/models/deb_apt_repository_response_spec.rb
370
- - spec/models/deb_package_index_spec.rb
371
- - spec/models/copy_spec.rb
372
- - spec/models/deb_apt_publication_spec.rb
373
- - spec/models/deb_apt_publication_response_spec.rb
360
+ - spec/models/deb_release_file_response_spec.rb
374
361
  - spec/models/deb_release_architecture_spec.rb
375
- - spec/models/deb_apt_distribution_response_spec.rb
376
- - spec/models/deb_release_spec.rb
377
- - spec/models/paginateddeb_apt_publication_response_list_spec.rb
378
- - spec/models/deb_apt_distribution_spec.rb
379
362
  - spec/models/deb_release_architecture_response_spec.rb
380
- - spec/models/deb_installer_file_index_response_spec.rb
363
+ - spec/models/paginateddeb_release_file_response_list_spec.rb
364
+ - spec/models/async_operation_response_spec.rb
365
+ - spec/models/deb_apt_distribution_spec.rb
366
+ - spec/models/paginateddeb_installer_file_index_response_list_spec.rb
367
+ - spec/models/deb_apt_repository_spec.rb
368
+ - spec/models/deb_apt_remote_spec.rb
369
+ - spec/models/content_summary_response_spec.rb
370
+ - spec/models/deb_package_index_response_spec.rb
371
+ - spec/models/deb_generic_content_spec.rb
372
+ - spec/models/deb_release_file_spec.rb
373
+ - spec/models/deb_generic_content_response_spec.rb
374
+ - spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
375
+ - spec/models/policy_enum_spec.rb
376
+ - spec/models/repair_spec.rb
377
+ - spec/models/paginated_repository_version_response_list_spec.rb
378
+ - spec/models/apt_repository_sync_url_spec.rb
379
+ - spec/models/deb_apt_publication_response_spec.rb
380
+ - spec/models/paginateddeb_release_architecture_response_list_spec.rb
381
381
  - spec/models/deb_release_component_spec.rb
382
- - spec/models/paginateddeb_apt_repository_response_list_spec.rb
383
- - spec/models/patcheddeb_apt_remote_spec.rb
382
+ - spec/models/deb_release_component_response_spec.rb
383
+ - spec/models/deb_apt_repository_response_spec.rb
384
+ - spec/models/patcheddeb_apt_distribution_spec.rb
385
+ - spec/models/deb_apt_distribution_response_spec.rb
386
+ - spec/models/paginateddeb_package_release_component_response_list_spec.rb
387
+ - spec/models/deb_apt_publication_spec.rb
388
+ - spec/models/deb_base_package_spec.rb
389
+ - spec/models/deb_package_index_spec.rb
384
390
  - spec/models/patcheddeb_apt_repository_spec.rb
385
- - spec/models/paginateddeb_release_response_list_spec.rb
386
- - spec/models/deb_verbatim_publication_response_spec.rb
387
- - spec/models/paginateddeb_release_architecture_response_list_spec.rb
388
- - spec/models/deb_release_file_spec.rb
389
- - spec/models/repository_add_remove_content_spec.rb
391
+ - spec/models/deb_package_release_component_response_spec.rb
390
392
  - spec/models/deb_release_response_spec.rb
391
- - spec/models/paginateddeb_package_index_response_list_spec.rb
393
+ - spec/models/paginateddeb_base_package_response_list_spec.rb
394
+ - spec/models/repository_add_remove_content_spec.rb
392
395
  - spec/models/deb_apt_remote_response_spec.rb
393
- - spec/models/deb_installer_file_index_spec.rb
394
- - spec/models/deb_generic_content_spec.rb
395
- - spec/models/paginateddeb_installer_file_index_response_list_spec.rb
396
- - spec/models/policy_enum_spec.rb
397
- - spec/models/deb_package_index_response_spec.rb
398
- - spec/models/content_summary_response_spec.rb
399
- - spec/models/paginateddeb_apt_remote_response_list_spec.rb
400
- - spec/models/deb_verbatim_publication_spec.rb
401
- - spec/models/paginateddeb_package_release_component_response_list_spec.rb
396
+ - spec/models/deb_verbatim_publication_response_spec.rb
397
+ - spec/models/paginateddeb_apt_distribution_response_list_spec.rb
398
+ - spec/models/copy_spec.rb
399
+ - spec/models/deb_installer_file_index_response_spec.rb
400
+ - spec/models/paginateddeb_release_response_list_spec.rb
401
+ - spec/models/deb_release_spec.rb
402
402
  - spec/spec_helper.rb
@@ -1,19 +0,0 @@
1
- # PulpDebClient::RepositorySyncURL
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
8
- **mirror** | **Boolean** | If &#x60;&#x60;True&#x60;&#x60;, synchronization will remove all content that is not present in the remote repository. If &#x60;&#x60;False&#x60;&#x60;, sync will be additive only. | [optional] [default to false]
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'PulpDebClient'
14
-
15
- instance = PulpDebClient::RepositorySyncURL.new(remote: null,
16
- mirror: null)
17
- ```
18
-
19
-