pulp_deb_client 2.14.1 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContentGenericContentsApi.md +1 -1
  4. data/docs/ContentInstallerFileIndicesApi.md +1 -1
  5. data/docs/ContentInstallerPackagesApi.md +1 -1
  6. data/docs/ContentPackageIndicesApi.md +1 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +1 -1
  8. data/docs/ContentPackagesApi.md +1 -1
  9. data/docs/ContentReleaseArchitecturesApi.md +1 -1
  10. data/docs/ContentReleaseComponentsApi.md +1 -1
  11. data/docs/ContentReleaseFilesApi.md +1 -1
  12. data/docs/ContentReleasesApi.md +1 -1
  13. data/docs/DebAptRepository.md +3 -3
  14. data/docs/DebAptRepositoryResponse.md +3 -3
  15. data/docs/DebPackageIndex.md +2 -2
  16. data/docs/DebPackageIndexResponse.md +2 -2
  17. data/docs/DistributionsAptApi.md +1 -1
  18. data/docs/PatcheddebAptRepository.md +3 -3
  19. data/docs/PublicationsAptApi.md +1 -1
  20. data/docs/PublicationsVerbatimApi.md +1 -1
  21. data/docs/RemotesAptApi.md +1 -1
  22. data/docs/RepositoriesAptApi.md +1 -1
  23. data/docs/RepositoriesAptVersionsApi.md +1 -1
  24. data/lib/pulp_deb_client/configuration.rb +2 -2
  25. data/lib/pulp_deb_client/models/deb_apt_repository.rb +17 -16
  26. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +17 -16
  27. data/lib/pulp_deb_client/models/deb_package_index.rb +0 -10
  28. data/lib/pulp_deb_client/models/deb_package_index_response.rb +0 -10
  29. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +17 -16
  30. data/lib/pulp_deb_client/version.rb +1 -1
  31. data/pulp_deb_client.gemspec +1 -1
  32. data/spec/configuration_spec.rb +3 -3
  33. data/spec/models/deb_apt_repository_response_spec.rb +1 -1
  34. data/spec/models/deb_apt_repository_spec.rb +1 -1
  35. data/spec/models/patcheddeb_apt_repository_spec.rb +1 -1
  36. metadata +65 -59
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd600504f5a62e78e064bb1308b6606d18fdaf6f333714433b542504cdbdfc86
4
- data.tar.gz: 50a4ac8c754f319ae9c661b3d85b94bb07ce33850d16c9fc7a87316418c7f8dd
3
+ metadata.gz: 84a26dfee3c336ce1824c370feaecd6b8024049ddb8b4d32f683d5e6f19e8c84
4
+ data.tar.gz: c07326c6141100bd1ac0def32a97c1bf9cf61057cc9ab8fcf69d7c3be1af0f58
5
5
  SHA512:
6
- metadata.gz: 93cf558596a3a5121e02d3d014af703616591dbc1d5331d8b252b34b02fe0b1968dfce8d5a546e60f5403359f3aa4f713665d9d6ecea9f5bacd1ed2b62f76fc7
7
- data.tar.gz: da5818b756206662bd2046e4a63a542087d8521c6448177afa6c4689b2db97878f3559dca2f25f0c498477dff32382c1f72582d0eae79e9b5934bcc1e594e8f0
6
+ metadata.gz: '08b89bbf84bf8f47fd953f52c4ea5b108fe28285c446d2fe35a940affa467e9f7bfd647e9b18bbf221012620be181f1d6cab82be16fe99b3f24874d8d78c9ff0'
7
+ data.tar.gz: '0505855ad606450920776b9b7b5251684e40b5f6aa753634478cbea058225b4d3ee9eeda20d6641fb7f9920af88e8e33d1c9cf233db9778a9211ff36aa8521b1'
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.14.1
10
+ - Package version: 2.16.1
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.14.1.gem
27
+ gem install ./pulp_deb_client-2.16.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_deb_client-2.14.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_deb_client-2.16.1.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.14.1'
36
+ gem 'pulp_deb_client', '~> 2.16.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -84,7 +84,7 @@ end
84
84
 
85
85
  ## Documentation for API Endpoints
86
86
 
87
- All URIs are relative to *http://pulp*
87
+ All URIs are relative to *https://pulp*
88
88
 
89
89
  Class | Method | HTTP request | Description
90
90
  ------------ | ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentGenericContentsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentInstallerFileIndicesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentInstallerPackagesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentPackageIndicesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentPackageReleaseComponentsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentPackagesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleaseArchitecturesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleaseComponentsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleaseFilesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::ContentReleasesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. |
9
9
  **description** | **String** | An optional description. | [optional]
10
- **retained_versions** | **Integer** | 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. | [optional]
11
- **remote** | **String** | | [optional]
10
+ **retain_repo_versions** | **Integer** | 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. | [optional]
11
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
@@ -18,7 +18,7 @@ require 'PulpDebClient'
18
18
  instance = PulpDebClient::DebAptRepository.new(pulp_labels: null,
19
19
  name: null,
20
20
  description: null,
21
- retained_versions: null,
21
+ retain_repo_versions: null,
22
22
  remote: null)
23
23
  ```
24
24
 
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
11
11
  **latest_version_href** | **String** | | [optional] [readonly]
12
12
  **name** | **String** | A unique name for this repository. |
13
13
  **description** | **String** | An optional description. | [optional]
14
- **retained_versions** | **Integer** | 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. | [optional]
15
- **remote** | **String** | | [optional]
14
+ **retain_repo_versions** | **Integer** | 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. | [optional]
15
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
16
16
 
17
17
  ## Code Sample
18
18
 
@@ -26,7 +26,7 @@ instance = PulpDebClient::DebAptRepositoryResponse.new(pulp_href: null,
26
26
  latest_version_href: null,
27
27
  name: null,
28
28
  description: null,
29
- retained_versions: null,
29
+ retain_repo_versions: null,
30
30
  remote: null)
31
31
  ```
32
32
 
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **artifacts** | [**Object**](.md) | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/' |
8
8
  **release** | **String** | Release this index file belongs to. |
9
- **component** | **String** | Component of the component - architecture combination. |
10
- **architecture** | **String** | Architecture of the component - architecture combination. |
9
+ **component** | **String** | Component of the component - architecture combination. | [optional]
10
+ **architecture** | **String** | Architecture of the component - architecture combination. | [optional]
11
11
  **relative_path** | **String** | Path of file relative to url. | [optional]
12
12
 
13
13
  ## Code Sample
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **artifacts** | [**Object**](.md) | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/' |
10
10
  **release** | **String** | Release this index file belongs to. |
11
- **component** | **String** | Component of the component - architecture combination. |
12
- **architecture** | **String** | Architecture of the component - architecture combination. |
11
+ **component** | **String** | Component of the component - architecture combination. | [optional]
12
+ **architecture** | **String** | Architecture of the component - architecture combination. | [optional]
13
13
  **relative_path** | **String** | Path of file relative to url. | [optional]
14
14
 
15
15
  ## Code Sample
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::DistributionsAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. | [optional]
9
9
  **description** | **String** | An optional description. | [optional]
10
- **retained_versions** | **Integer** | 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. | [optional]
11
- **remote** | **String** | | [optional]
10
+ **retain_repo_versions** | **Integer** | 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. | [optional]
11
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
@@ -18,7 +18,7 @@ require 'PulpDebClient'
18
18
  instance = PulpDebClient::PatcheddebAptRepository.new(pulp_labels: null,
19
19
  name: null,
20
20
  description: null,
21
- retained_versions: null,
21
+ retain_repo_versions: null,
22
22
  remote: null)
23
23
  ```
24
24
 
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::PublicationsAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::PublicationsVerbatimApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::RemotesAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::RepositoriesAptApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpDebClient::RepositoriesAptVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -127,7 +127,7 @@ module PulpDebClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'http'
130
+ @scheme = 'https'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -209,7 +209,7 @@ module PulpDebClient
209
209
  def server_settings
210
210
  [
211
211
  {
212
- url: "http://pulp/",
212
+ url: "https://pulp/",
213
213
  description: "No description provided",
214
214
  }
215
215
  ]
@@ -24,8 +24,9 @@ module PulpDebClient
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
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module PulpDebClient
34
35
  :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retained_versions' => :'retained_versions',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
38
39
  :'remote' => :'remote'
39
40
  }
40
41
  end
@@ -45,7 +46,7 @@ module PulpDebClient
45
46
  :'pulp_labels' => :'Object',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retained_versions' => :'Integer',
49
+ :'retain_repo_versions' => :'Integer',
49
50
  :'remote' => :'String'
50
51
  }
51
52
  end
@@ -54,7 +55,7 @@ module PulpDebClient
54
55
  def self.openapi_nullable
55
56
  Set.new([
56
57
  :'description',
57
- :'retained_versions',
58
+ :'retain_repo_versions',
58
59
  :'remote'
59
60
  ])
60
61
  end
@@ -86,8 +87,8 @@ module PulpDebClient
86
87
  self.description = attributes[:'description']
87
88
  end
88
89
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
92
  end
92
93
 
93
94
  if attributes.key?(:'remote')
@@ -103,8 +104,8 @@ module PulpDebClient
103
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
104
105
  end
105
106
 
106
- if !@retained_versions.nil? && @retained_versions < 1
107
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
107
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
108
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
108
109
  end
109
110
 
110
111
  invalid_properties
@@ -114,18 +115,18 @@ module PulpDebClient
114
115
  # @return true if the model is valid
115
116
  def valid?
116
117
  return false if @name.nil?
117
- return false if !@retained_versions.nil? && @retained_versions < 1
118
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
119
  true
119
120
  end
120
121
 
121
122
  # Custom attribute writer method with validation
122
- # @param [Object] retained_versions Value to be assigned
123
- def retained_versions=(retained_versions)
124
- if !retained_versions.nil? && retained_versions < 1
125
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
123
+ # @param [Object] retain_repo_versions Value to be assigned
124
+ def retain_repo_versions=(retain_repo_versions)
125
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
126
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
126
127
  end
127
128
 
128
- @retained_versions = retained_versions
129
+ @retain_repo_versions = retain_repo_versions
129
130
  end
130
131
 
131
132
  # Checks equality by comparing each attribute.
@@ -136,7 +137,7 @@ module PulpDebClient
136
137
  pulp_labels == o.pulp_labels &&
137
138
  name == o.name &&
138
139
  description == o.description &&
139
- retained_versions == o.retained_versions &&
140
+ retain_repo_versions == o.retain_repo_versions &&
140
141
  remote == o.remote
141
142
  end
142
143
 
@@ -149,7 +150,7 @@ module PulpDebClient
149
150
  # Calculates hash code according to all attributes.
150
151
  # @return [Integer] Hash code
151
152
  def hash
152
- [pulp_labels, name, description, retained_versions, remote].hash
153
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
153
154
  end
154
155
 
155
156
  # Builds the object from hash
@@ -33,8 +33,9 @@ module PulpDebClient
33
33
  attr_accessor :description
34
34
 
35
35
  # 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.
36
- attr_accessor :retained_versions
36
+ attr_accessor :retain_repo_versions
37
37
 
38
+ # An optional remote to use by default when syncing.
38
39
  attr_accessor :remote
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +48,7 @@ module PulpDebClient
47
48
  :'latest_version_href' => :'latest_version_href',
48
49
  :'name' => :'name',
49
50
  :'description' => :'description',
50
- :'retained_versions' => :'retained_versions',
51
+ :'retain_repo_versions' => :'retain_repo_versions',
51
52
  :'remote' => :'remote'
52
53
  }
53
54
  end
@@ -62,7 +63,7 @@ module PulpDebClient
62
63
  :'latest_version_href' => :'String',
63
64
  :'name' => :'String',
64
65
  :'description' => :'String',
65
- :'retained_versions' => :'Integer',
66
+ :'retain_repo_versions' => :'Integer',
66
67
  :'remote' => :'String'
67
68
  }
68
69
  end
@@ -71,7 +72,7 @@ module PulpDebClient
71
72
  def self.openapi_nullable
72
73
  Set.new([
73
74
  :'description',
74
- :'retained_versions',
75
+ :'retain_repo_versions',
75
76
  :'remote'
76
77
  ])
77
78
  end
@@ -119,8 +120,8 @@ module PulpDebClient
119
120
  self.description = attributes[:'description']
120
121
  end
121
122
 
122
- if attributes.key?(:'retained_versions')
123
- self.retained_versions = attributes[:'retained_versions']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
124
125
  end
125
126
 
126
127
  if attributes.key?(:'remote')
@@ -136,8 +137,8 @@ module PulpDebClient
136
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
137
138
  end
138
139
 
139
- if !@retained_versions.nil? && @retained_versions < 1
140
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
140
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
141
142
  end
142
143
 
143
144
  invalid_properties
@@ -147,18 +148,18 @@ module PulpDebClient
147
148
  # @return true if the model is valid
148
149
  def valid?
149
150
  return false if @name.nil?
150
- return false if !@retained_versions.nil? && @retained_versions < 1
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
152
  true
152
153
  end
153
154
 
154
155
  # Custom attribute writer method with validation
155
- # @param [Object] retained_versions Value to be assigned
156
- def retained_versions=(retained_versions)
157
- if !retained_versions.nil? && retained_versions < 1
158
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
156
+ # @param [Object] retain_repo_versions Value to be assigned
157
+ def retain_repo_versions=(retain_repo_versions)
158
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
159
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
159
160
  end
160
161
 
161
- @retained_versions = retained_versions
162
+ @retain_repo_versions = retain_repo_versions
162
163
  end
163
164
 
164
165
  # Checks equality by comparing each attribute.
@@ -173,7 +174,7 @@ module PulpDebClient
173
174
  latest_version_href == o.latest_version_href &&
174
175
  name == o.name &&
175
176
  description == o.description &&
176
- retained_versions == o.retained_versions &&
177
+ retain_repo_versions == o.retain_repo_versions &&
177
178
  remote == o.remote
178
179
  end
179
180
 
@@ -186,7 +187,7 @@ module PulpDebClient
186
187
  # Calculates hash code according to all attributes.
187
188
  # @return [Integer] Hash code
188
189
  def hash
189
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
190
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
190
191
  end
191
192
 
192
193
  # Builds the object from hash
@@ -106,14 +106,6 @@ module PulpDebClient
106
106
  invalid_properties.push('invalid value for "release", release cannot be nil.')
107
107
  end
108
108
 
109
- if @component.nil?
110
- invalid_properties.push('invalid value for "component", component cannot be nil.')
111
- end
112
-
113
- if @architecture.nil?
114
- invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
115
- end
116
-
117
109
  invalid_properties
118
110
  end
119
111
 
@@ -122,8 +114,6 @@ module PulpDebClient
122
114
  def valid?
123
115
  return false if @artifacts.nil?
124
116
  return false if @release.nil?
125
- return false if @component.nil?
126
- return false if @architecture.nil?
127
117
  true
128
118
  end
129
119
 
@@ -123,14 +123,6 @@ module PulpDebClient
123
123
  invalid_properties.push('invalid value for "release", release cannot be nil.')
124
124
  end
125
125
 
126
- if @component.nil?
127
- invalid_properties.push('invalid value for "component", component cannot be nil.')
128
- end
129
-
130
- if @architecture.nil?
131
- invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
132
- end
133
-
134
126
  invalid_properties
135
127
  end
136
128
 
@@ -139,8 +131,6 @@ module PulpDebClient
139
131
  def valid?
140
132
  return false if @artifacts.nil?
141
133
  return false if @release.nil?
142
- return false if @component.nil?
143
- return false if @architecture.nil?
144
134
  true
145
135
  end
146
136
 
@@ -24,8 +24,9 @@ module PulpDebClient
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
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module PulpDebClient
34
35
  :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retained_versions' => :'retained_versions',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
38
39
  :'remote' => :'remote'
39
40
  }
40
41
  end
@@ -45,7 +46,7 @@ module PulpDebClient
45
46
  :'pulp_labels' => :'Object',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retained_versions' => :'Integer',
49
+ :'retain_repo_versions' => :'Integer',
49
50
  :'remote' => :'String'
50
51
  }
51
52
  end
@@ -54,7 +55,7 @@ module PulpDebClient
54
55
  def self.openapi_nullable
55
56
  Set.new([
56
57
  :'description',
57
- :'retained_versions',
58
+ :'retain_repo_versions',
58
59
  :'remote'
59
60
  ])
60
61
  end
@@ -86,8 +87,8 @@ module PulpDebClient
86
87
  self.description = attributes[:'description']
87
88
  end
88
89
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
92
  end
92
93
 
93
94
  if attributes.key?(:'remote')
@@ -99,8 +100,8 @@ module PulpDebClient
99
100
  # @return Array for valid properties with the reasons
100
101
  def list_invalid_properties
101
102
  invalid_properties = Array.new
102
- if !@retained_versions.nil? && @retained_versions < 1
103
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
103
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
104
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
104
105
  end
105
106
 
106
107
  invalid_properties
@@ -109,18 +110,18 @@ module PulpDebClient
109
110
  # Check to see if the all the properties in the model are valid
110
111
  # @return true if the model is valid
111
112
  def valid?
112
- return false if !@retained_versions.nil? && @retained_versions < 1
113
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
113
114
  true
114
115
  end
115
116
 
116
117
  # Custom attribute writer method with validation
117
- # @param [Object] retained_versions Value to be assigned
118
- def retained_versions=(retained_versions)
119
- if !retained_versions.nil? && retained_versions < 1
120
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
118
+ # @param [Object] retain_repo_versions Value to be assigned
119
+ def retain_repo_versions=(retain_repo_versions)
120
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
121
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
121
122
  end
122
123
 
123
- @retained_versions = retained_versions
124
+ @retain_repo_versions = retain_repo_versions
124
125
  end
125
126
 
126
127
  # Checks equality by comparing each attribute.
@@ -131,7 +132,7 @@ module PulpDebClient
131
132
  pulp_labels == o.pulp_labels &&
132
133
  name == o.name &&
133
134
  description == o.description &&
134
- retained_versions == o.retained_versions &&
135
+ retain_repo_versions == o.retain_repo_versions &&
135
136
  remote == o.remote
136
137
  end
137
138
 
@@ -144,7 +145,7 @@ module PulpDebClient
144
145
  # Calculates hash code according to all attributes.
145
146
  # @return [Integer] Hash code
146
147
  def hash
147
- [pulp_labels, name, description, retained_versions, remote].hash
148
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
148
149
  end
149
150
 
150
151
  # 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.14.1'
14
+ VERSION = '2.16.1'
15
15
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '>= 0.14.0'
30
+ s.add_runtime_dependency 'faraday', '~> 1.0', '< 1.9.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -18,7 +18,7 @@ describe PulpDebClient::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
  # PulpDebClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpDebClient::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
@@ -74,7 +74,7 @@ describe 'DebAptRepositoryResponse' 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 'DebAptRepository' 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
@@ -50,7 +50,7 @@ describe 'PatcheddebAptRepository' 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
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_deb_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.1
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-29 00:00:00.000000000 Z
11
+ date: 2022-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: '1.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 1.9.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 0.14.0
32
+ version: 1.9.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: json
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -318,76 +324,76 @@ signing_key:
318
324
  specification_version: 4
319
325
  summary: Pulp 3 API Ruby Gem
320
326
  test_files:
321
- - spec/api/content_releases_api_spec.rb
322
- - spec/api/content_package_indices_api_spec.rb
327
+ - spec/api/content_generic_contents_api_spec.rb
328
+ - spec/api/repositories_apt_api_spec.rb
329
+ - spec/api/publications_apt_api_spec.rb
330
+ - spec/api/content_package_release_components_api_spec.rb
323
331
  - spec/api/content_release_files_api_spec.rb
324
- - spec/api/content_release_architectures_api_spec.rb
332
+ - spec/api/content_releases_api_spec.rb
325
333
  - spec/api/remotes_apt_api_spec.rb
326
- - spec/api/repositories_apt_api_spec.rb
327
- - spec/api/content_installer_file_indices_api_spec.rb
328
334
  - spec/api/distributions_apt_api_spec.rb
329
- - spec/api/content_installer_packages_api_spec.rb
330
- - spec/api/content_package_release_components_api_spec.rb
331
- - spec/api/content_generic_contents_api_spec.rb
332
- - spec/api/publications_apt_api_spec.rb
333
- - spec/api/content_packages_api_spec.rb
335
+ - spec/api/content_installer_file_indices_api_spec.rb
334
336
  - spec/api/repositories_apt_versions_api_spec.rb
337
+ - spec/api/content_package_indices_api_spec.rb
335
338
  - spec/api/content_release_components_api_spec.rb
339
+ - spec/api/content_packages_api_spec.rb
340
+ - spec/api/content_installer_packages_api_spec.rb
341
+ - spec/api/content_release_architectures_api_spec.rb
336
342
  - spec/api/publications_verbatim_api_spec.rb
337
343
  - spec/api_client_spec.rb
338
344
  - spec/configuration_spec.rb
339
- - spec/models/deb_base_package_spec.rb
340
- - spec/models/deb_verbatim_publication_response_spec.rb
341
- - spec/models/paginateddeb_package_release_component_response_list_spec.rb
342
- - spec/models/paginateddeb_release_architecture_response_list_spec.rb
343
- - spec/models/deb_installer_file_index_response_spec.rb
345
+ - spec/models/deb_base_package_response_spec.rb
346
+ - spec/models/deb_apt_distribution_response_spec.rb
347
+ - spec/models/deb_package_release_component_spec.rb
348
+ - spec/models/paginateddeb_release_component_response_list_spec.rb
349
+ - spec/models/deb_release_component_spec.rb
344
350
  - spec/models/deb_apt_remote_response_spec.rb
345
- - spec/models/patcheddeb_apt_remote_spec.rb
346
- - spec/models/deb_release_file_spec.rb
347
- - spec/models/deb_installer_file_index_spec.rb
351
+ - spec/models/content_summary_response_spec.rb
352
+ - spec/models/paginateddeb_apt_remote_response_list_spec.rb
353
+ - spec/models/patcheddeb_apt_distribution_spec.rb
354
+ - spec/models/paginateddeb_release_file_response_list_spec.rb
355
+ - spec/models/paginateddeb_apt_repository_response_list_spec.rb
356
+ - spec/models/deb_apt_publication_spec.rb
348
357
  - spec/models/deb_package_release_component_response_spec.rb
349
- - spec/models/paginateddeb_base_package_response_list_spec.rb
350
- - spec/models/paginateddeb_generic_content_response_list_spec.rb
351
- - spec/models/deb_apt_repository_spec.rb
352
- - spec/models/deb_generic_content_response_spec.rb
358
+ - spec/models/deb_release_file_response_spec.rb
359
+ - spec/models/paginateddeb_release_architecture_response_list_spec.rb
360
+ - spec/models/deb_verbatim_publication_response_spec.rb
361
+ - spec/models/deb_apt_distribution_spec.rb
362
+ - spec/models/deb_release_response_spec.rb
363
+ - spec/models/paginated_repository_version_response_list_spec.rb
364
+ - spec/models/deb_package_index_response_spec.rb
353
365
  - spec/models/deb_apt_repository_response_spec.rb
354
- - spec/models/deb_release_component_spec.rb
355
366
  - spec/models/repository_version_spec.rb
367
+ - spec/models/paginateddeb_release_response_list_spec.rb
368
+ - spec/models/deb_release_architecture_response_spec.rb
369
+ - spec/models/deb_release_spec.rb
356
370
  - spec/models/deb_release_component_response_spec.rb
357
- - spec/models/paginateddeb_apt_publication_response_list_spec.rb
358
- - spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
359
371
  - spec/models/policy_enum_spec.rb
372
+ - spec/models/deb_verbatim_publication_spec.rb
373
+ - spec/models/paginateddeb_base_package_response_list_spec.rb
374
+ - spec/models/patcheddeb_apt_remote_spec.rb
375
+ - spec/models/deb_apt_remote_spec.rb
376
+ - spec/models/content_summary_spec.rb
377
+ - spec/models/deb_generic_content_response_spec.rb
378
+ - spec/models/paginateddeb_installer_file_index_response_list_spec.rb
379
+ - spec/models/paginateddeb_generic_content_response_list_spec.rb
380
+ - spec/models/deb_release_architecture_spec.rb
381
+ - spec/models/repository_sync_url_spec.rb
382
+ - spec/models/async_operation_response_spec.rb
383
+ - spec/models/deb_generic_content_spec.rb
360
384
  - spec/models/repository_version_response_spec.rb
361
- - spec/models/deb_release_spec.rb
362
- - spec/models/deb_release_response_spec.rb
385
+ - spec/models/deb_apt_repository_spec.rb
386
+ - spec/models/deb_base_package_spec.rb
387
+ - spec/models/deb_release_file_spec.rb
388
+ - spec/models/paginateddeb_package_index_response_list_spec.rb
363
389
  - spec/models/patcheddeb_apt_repository_spec.rb
364
- - spec/models/deb_apt_distribution_response_spec.rb
365
- - spec/models/repository_sync_url_spec.rb
366
- - spec/models/deb_apt_publication_spec.rb
367
390
  - spec/models/paginateddeb_apt_distribution_response_list_spec.rb
368
- - spec/models/paginateddeb_installer_file_index_response_list_spec.rb
369
- - spec/models/content_summary_response_spec.rb
370
- - spec/models/deb_package_index_response_spec.rb
371
- - spec/models/deb_package_release_component_spec.rb
372
- - spec/models/deb_generic_content_spec.rb
373
- - spec/models/async_operation_response_spec.rb
374
- - spec/models/paginated_repository_version_response_list_spec.rb
375
- - spec/models/patcheddeb_apt_distribution_spec.rb
376
- - spec/models/deb_apt_remote_spec.rb
377
- - spec/models/deb_package_index_spec.rb
391
+ - spec/models/deb_installer_file_index_spec.rb
392
+ - spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
393
+ - spec/models/paginateddeb_apt_publication_response_list_spec.rb
378
394
  - spec/models/deb_apt_publication_response_spec.rb
379
- - spec/models/deb_release_file_response_spec.rb
380
- - spec/models/deb_verbatim_publication_spec.rb
381
- - spec/models/paginateddeb_release_file_response_list_spec.rb
382
- - spec/models/deb_apt_distribution_spec.rb
383
- - spec/models/content_summary_spec.rb
384
- - spec/models/deb_release_architecture_response_spec.rb
385
- - spec/models/deb_base_package_response_spec.rb
386
- - spec/models/paginateddeb_apt_repository_response_list_spec.rb
387
- - spec/models/paginateddeb_apt_remote_response_list_spec.rb
388
- - spec/models/paginateddeb_release_component_response_list_spec.rb
395
+ - spec/models/deb_package_index_spec.rb
396
+ - spec/models/deb_installer_file_index_response_spec.rb
397
+ - spec/models/paginateddeb_package_release_component_response_list_spec.rb
389
398
  - spec/models/repository_add_remove_content_spec.rb
390
- - spec/models/paginateddeb_package_index_response_list_spec.rb
391
- - spec/models/paginateddeb_release_response_list_spec.rb
392
- - spec/models/deb_release_architecture_spec.rb
393
399
  - spec/spec_helper.rb