pulp_file_client 3.123.3 → 3.124.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46d152d8a1ec0f5ea52f52fffe5a424338e633a88678127c5bc10716b3a85f40
4
- data.tar.gz: e858ab2ad882d53b9d9f950a387e99dcaf54e8785bb15fac797025c7033f3817
3
+ metadata.gz: '0539032a313b8e547d9f5cd51967b474211f02a8b406bf40c9d5cfe17ef00631'
4
+ data.tar.gz: 853bcf95c10ef9657e801664a66fcbf8320c52e4296da04a35df0f47bd9aa9e7
5
5
  SHA512:
6
- metadata.gz: b991cc1ae40dd13184c9189bd934164af20f27163f420054fddfd666eb06e581fdacd7f05fcbedcc73abf198799c15ed8839299c17a419bf5733221fbafa0f72
7
- data.tar.gz: c1b2d3e4fe4905a36310b43fda67925b5aea3c0acc741657d4c77293ab4473070c64c1bc7d1023d6672a7df0502f14e3271105c37da049b77775d2d73b3addcc
6
+ metadata.gz: fcc52b54034d2a58ac57931f33f3e6c3ffda0ee87bc14fa6dd3d08601eeb9e3a3ff063b86ed94cf2d05162e59f54bdea53c028b6e26e5243c554c2efcd20dce6
7
+ data.tar.gz: 51582e9e29a77eb857a06ab6a3e5d65ec238853224c084049fa5de2f6cb798de008d66734fa62a96c5fdaeb4262842d7bd29a9669a2f264f01d607a797f12c98
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: 3.123.3
10
+ - Package version: 3.124.0
11
11
  - Generator version: 7.10.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
@@ -25,16 +25,16 @@ gem build pulp_file_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_file_client-3.123.3.gem
28
+ gem install ./pulp_file_client-3.124.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_file_client-3.123.3.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_file_client-3.124.0.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'pulp_file_client', '~> 3.123.3'
37
+ gem 'pulp_file_client', '~> 3.124.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -216,6 +216,7 @@ Class | Method | HTTP request | Description
216
216
  - [PulpFileClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
217
217
  - [PulpFileClient::SetLabel](docs/SetLabel.md)
218
218
  - [PulpFileClient::SetLabelResponse](docs/SetLabelResponse.md)
219
+ - [PulpFileClient::Sha256sumsEnum](docs/Sha256sumsEnum.md)
219
220
  - [PulpFileClient::TaskGroupOperationResponse](docs/TaskGroupOperationResponse.md)
220
221
  - [PulpFileClient::UnsetLabel](docs/UnsetLabel.md)
221
222
  - [PulpFileClient::UnsetLabelResponse](docs/UnsetLabelResponse.md)
@@ -7,6 +7,7 @@
7
7
  | **repository_version** | **String** | | [optional] |
8
8
  | **repository** | **String** | A URI of the repository to be published. | [optional] |
9
9
  | **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
10
+ | **sha256sums** | [**Sha256sumsEnum**](Sha256sumsEnum.md) | Whether to generate SHA256SUMS files, and where to place them. Defaults to the setting on the repository being published. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory. | [optional] |
10
11
  | **checkpoint** | **Boolean** | | [optional] |
11
12
 
12
13
  ## Example
@@ -18,6 +19,7 @@ instance = PulpFileClient::FileFilePublication.new(
18
19
  repository_version: null,
19
20
  repository: null,
20
21
  manifest: null,
22
+ sha256sums: null,
21
23
  checkpoint: null
22
24
  )
23
25
  ```
@@ -12,6 +12,7 @@
12
12
  | **repository** | **String** | A URI of the repository to be published. | [optional] |
13
13
  | **distributions** | **Array<String>** | This publication is currently hosted as defined by these distributions. | [optional] |
14
14
  | **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
15
+ | **sha256sums** | [**Sha256sumsEnum**](Sha256sumsEnum.md) | Whether to generate SHA256SUMS files, and where to place them. Defaults to the setting on the repository being published. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory. | [optional] |
15
16
  | **checkpoint** | **Boolean** | | [optional] |
16
17
 
17
18
  ## Example
@@ -28,6 +29,7 @@ instance = PulpFileClient::FileFilePublicationResponse.new(
28
29
  repository: null,
29
30
  distributions: null,
30
31
  manifest: null,
32
+ sha256sums: null,
31
33
  checkpoint: null
32
34
  )
33
35
  ```
@@ -12,6 +12,7 @@
12
12
  | **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
13
13
  | **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
14
14
  | **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
15
+ | **sha256sums** | [**Sha256sumsEnum**](Sha256sumsEnum.md) | Whether to generate SHA256SUMS files, and where to place them. 'root' writes a single file at the root of the repository, 'directory' writes one in every directory. Each file lists every file below it, with paths relative to itself. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory. | [optional] |
15
16
 
16
17
  ## Example
17
18
 
@@ -26,7 +27,8 @@ instance = PulpFileClient::FileFileRepository.new(
26
27
  retain_checkpoints: null,
27
28
  remote: null,
28
29
  autopublish: null,
29
- manifest: null
30
+ manifest: null,
31
+ sha256sums: null
30
32
  )
31
33
  ```
32
34
 
@@ -18,6 +18,7 @@
18
18
  | **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
19
19
  | **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
20
20
  | **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
21
+ | **sha256sums** | [**Sha256sumsEnum**](Sha256sumsEnum.md) | Whether to generate SHA256SUMS files, and where to place them. 'root' writes a single file at the root of the repository, 'directory' writes one in every directory. Each file lists every file below it, with paths relative to itself. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory. | [optional] |
21
22
  | **last_sync_details** | **Object** | | [optional] |
22
23
 
23
24
  ## Example
@@ -40,6 +41,7 @@ instance = PulpFileClient::FileFileRepositoryResponse.new(
40
41
  remote: null,
41
42
  autopublish: null,
42
43
  manifest: null,
44
+ sha256sums: null,
43
45
  last_sync_details: null
44
46
  )
45
47
  ```
@@ -12,6 +12,7 @@
12
12
  | **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
13
13
  | **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
14
14
  | **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
15
+ | **sha256sums** | [**Sha256sumsEnum**](Sha256sumsEnum.md) | Whether to generate SHA256SUMS files, and where to place them. 'root' writes a single file at the root of the repository, 'directory' writes one in every directory. Each file lists every file below it, with paths relative to itself. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory. | [optional] |
15
16
 
16
17
  ## Example
17
18
 
@@ -26,7 +27,8 @@ instance = PulpFileClient::PatchedfileFileRepository.new(
26
27
  retain_checkpoints: null,
27
28
  remote: null,
28
29
  autopublish: null,
29
- manifest: null
30
+ manifest: null,
31
+ sha256sums: null
30
32
  )
31
33
  ```
32
34
 
@@ -0,0 +1,15 @@
1
+ # PulpFileClient::Sha256sumsEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'pulp_file_client'
12
+
13
+ instance = PulpFileClient::Sha256sumsEnum.new()
14
+ ```
15
+
@@ -24,14 +24,40 @@ module PulpFileClient
24
24
  # Filename to use for manifest file containing metadata for all the files.
25
25
  attr_accessor :manifest
26
26
 
27
+ # Whether to generate SHA256SUMS files, and where to place them. Defaults to the setting on the repository being published. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory.
28
+ attr_accessor :sha256sums
29
+
27
30
  attr_accessor :checkpoint
28
31
 
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
29
54
  # Attribute mapping from ruby-style variable name to JSON key.
30
55
  def self.attribute_map
31
56
  {
32
57
  :'repository_version' => :'repository_version',
33
58
  :'repository' => :'repository',
34
59
  :'manifest' => :'manifest',
60
+ :'sha256sums' => :'sha256sums',
35
61
  :'checkpoint' => :'checkpoint'
36
62
  }
37
63
  end
@@ -47,6 +73,7 @@ module PulpFileClient
47
73
  :'repository_version' => :'String',
48
74
  :'repository' => :'String',
49
75
  :'manifest' => :'String',
76
+ :'sha256sums' => :'Sha256sumsEnum',
50
77
  :'checkpoint' => :'Boolean'
51
78
  }
52
79
  end
@@ -87,6 +114,10 @@ module PulpFileClient
87
114
  self.manifest = 'PULP_MANIFEST'
88
115
  end
89
116
 
117
+ if attributes.key?(:'sha256sums')
118
+ self.sha256sums = attributes[:'sha256sums']
119
+ end
120
+
90
121
  if attributes.key?(:'checkpoint')
91
122
  self.checkpoint = attributes[:'checkpoint']
92
123
  end
@@ -130,6 +161,7 @@ module PulpFileClient
130
161
  repository_version == o.repository_version &&
131
162
  repository == o.repository &&
132
163
  manifest == o.manifest &&
164
+ sha256sums == o.sha256sums &&
133
165
  checkpoint == o.checkpoint
134
166
  end
135
167
 
@@ -142,7 +174,7 @@ module PulpFileClient
142
174
  # Calculates hash code according to all attributes.
143
175
  # @return [Integer] Hash code
144
176
  def hash
145
- [repository_version, repository, manifest, checkpoint].hash
177
+ [repository_version, repository, manifest, sha256sums, checkpoint].hash
146
178
  end
147
179
 
148
180
  # Builds the object from hash
@@ -38,8 +38,33 @@ module PulpFileClient
38
38
  # Filename to use for manifest file containing metadata for all the files.
39
39
  attr_accessor :manifest
40
40
 
41
+ # Whether to generate SHA256SUMS files, and where to place them. Defaults to the setting on the repository being published. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory.
42
+ attr_accessor :sha256sums
43
+
41
44
  attr_accessor :checkpoint
42
45
 
46
+ class EnumAttributeValidator
47
+ attr_reader :datatype
48
+ attr_reader :allowable_values
49
+
50
+ def initialize(datatype, allowable_values)
51
+ @allowable_values = allowable_values.map do |value|
52
+ case datatype.to_s
53
+ when /Integer/i
54
+ value.to_i
55
+ when /Float/i
56
+ value.to_f
57
+ else
58
+ value
59
+ end
60
+ end
61
+ end
62
+
63
+ def valid?(value)
64
+ !value || allowable_values.include?(value)
65
+ end
66
+ end
67
+
43
68
  # Attribute mapping from ruby-style variable name to JSON key.
44
69
  def self.attribute_map
45
70
  {
@@ -51,6 +76,7 @@ module PulpFileClient
51
76
  :'repository' => :'repository',
52
77
  :'distributions' => :'distributions',
53
78
  :'manifest' => :'manifest',
79
+ :'sha256sums' => :'sha256sums',
54
80
  :'checkpoint' => :'checkpoint'
55
81
  }
56
82
  end
@@ -71,6 +97,7 @@ module PulpFileClient
71
97
  :'repository' => :'String',
72
98
  :'distributions' => :'Array<String>',
73
99
  :'manifest' => :'String',
100
+ :'sha256sums' => :'Sha256sumsEnum',
74
101
  :'checkpoint' => :'Boolean'
75
102
  }
76
103
  end
@@ -133,6 +160,10 @@ module PulpFileClient
133
160
  self.manifest = 'PULP_MANIFEST'
134
161
  end
135
162
 
163
+ if attributes.key?(:'sha256sums')
164
+ self.sha256sums = attributes[:'sha256sums']
165
+ end
166
+
136
167
  if attributes.key?(:'checkpoint')
137
168
  self.checkpoint = attributes[:'checkpoint']
138
169
  end
@@ -166,6 +197,7 @@ module PulpFileClient
166
197
  repository == o.repository &&
167
198
  distributions == o.distributions &&
168
199
  manifest == o.manifest &&
200
+ sha256sums == o.sha256sums &&
169
201
  checkpoint == o.checkpoint
170
202
  end
171
203
 
@@ -178,7 +210,7 @@ module PulpFileClient
178
210
  # Calculates hash code according to all attributes.
179
211
  # @return [Integer] Hash code
180
212
  def hash
181
- [pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, distributions, manifest, checkpoint].hash
213
+ [pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, distributions, manifest, sha256sums, checkpoint].hash
182
214
  end
183
215
 
184
216
  # Builds the object from hash
@@ -39,6 +39,31 @@ module PulpFileClient
39
39
  # Filename to use for manifest file containing metadata for all the files.
40
40
  attr_accessor :manifest
41
41
 
42
+ # Whether to generate SHA256SUMS files, and where to place them. 'root' writes a single file at the root of the repository, 'directory' writes one in every directory. Each file lists every file below it, with paths relative to itself. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory.
43
+ attr_accessor :sha256sums
44
+
45
+ class EnumAttributeValidator
46
+ attr_reader :datatype
47
+ attr_reader :allowable_values
48
+
49
+ def initialize(datatype, allowable_values)
50
+ @allowable_values = allowable_values.map do |value|
51
+ case datatype.to_s
52
+ when /Integer/i
53
+ value.to_i
54
+ when /Float/i
55
+ value.to_f
56
+ else
57
+ value
58
+ end
59
+ end
60
+ end
61
+
62
+ def valid?(value)
63
+ !value || allowable_values.include?(value)
64
+ end
65
+ end
66
+
42
67
  # Attribute mapping from ruby-style variable name to JSON key.
43
68
  def self.attribute_map
44
69
  {
@@ -49,7 +74,8 @@ module PulpFileClient
49
74
  :'retain_checkpoints' => :'retain_checkpoints',
50
75
  :'remote' => :'remote',
51
76
  :'autopublish' => :'autopublish',
52
- :'manifest' => :'manifest'
77
+ :'manifest' => :'manifest',
78
+ :'sha256sums' => :'sha256sums'
53
79
  }
54
80
  end
55
81
 
@@ -68,7 +94,8 @@ module PulpFileClient
68
94
  :'retain_checkpoints' => :'Integer',
69
95
  :'remote' => :'String',
70
96
  :'autopublish' => :'Boolean',
71
- :'manifest' => :'String'
97
+ :'manifest' => :'String',
98
+ :'sha256sums' => :'Sha256sumsEnum'
72
99
  }
73
100
  end
74
101
 
@@ -79,7 +106,7 @@ module PulpFileClient
79
106
  :'retain_repo_versions',
80
107
  :'retain_checkpoints',
81
108
  :'remote',
82
- :'manifest'
109
+ :'manifest',
83
110
  ])
84
111
  end
85
112
 
@@ -137,6 +164,10 @@ module PulpFileClient
137
164
  else
138
165
  self.manifest = 'PULP_MANIFEST'
139
166
  end
167
+
168
+ if attributes.key?(:'sha256sums')
169
+ self.sha256sums = attributes[:'sha256sums']
170
+ end
140
171
  end
141
172
 
142
173
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -250,7 +281,8 @@ module PulpFileClient
250
281
  retain_checkpoints == o.retain_checkpoints &&
251
282
  remote == o.remote &&
252
283
  autopublish == o.autopublish &&
253
- manifest == o.manifest
284
+ manifest == o.manifest &&
285
+ sha256sums == o.sha256sums
254
286
  end
255
287
 
256
288
  # @see the `==` method
@@ -262,7 +294,7 @@ module PulpFileClient
262
294
  # Calculates hash code according to all attributes.
263
295
  # @return [Integer] Hash code
264
296
  def hash
265
- [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest].hash
297
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest, sha256sums].hash
266
298
  end
267
299
 
268
300
  # Builds the object from hash
@@ -54,8 +54,33 @@ module PulpFileClient
54
54
  # Filename to use for manifest file containing metadata for all the files.
55
55
  attr_accessor :manifest
56
56
 
57
+ # Whether to generate SHA256SUMS files, and where to place them. 'root' writes a single file at the root of the repository, 'directory' writes one in every directory. Each file lists every file below it, with paths relative to itself. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory.
58
+ attr_accessor :sha256sums
59
+
57
60
  attr_accessor :last_sync_details
58
61
 
62
+ class EnumAttributeValidator
63
+ attr_reader :datatype
64
+ attr_reader :allowable_values
65
+
66
+ def initialize(datatype, allowable_values)
67
+ @allowable_values = allowable_values.map do |value|
68
+ case datatype.to_s
69
+ when /Integer/i
70
+ value.to_i
71
+ when /Float/i
72
+ value.to_f
73
+ else
74
+ value
75
+ end
76
+ end
77
+ end
78
+
79
+ def valid?(value)
80
+ !value || allowable_values.include?(value)
81
+ end
82
+ end
83
+
59
84
  # Attribute mapping from ruby-style variable name to JSON key.
60
85
  def self.attribute_map
61
86
  {
@@ -73,6 +98,7 @@ module PulpFileClient
73
98
  :'remote' => :'remote',
74
99
  :'autopublish' => :'autopublish',
75
100
  :'manifest' => :'manifest',
101
+ :'sha256sums' => :'sha256sums',
76
102
  :'last_sync_details' => :'last_sync_details'
77
103
  }
78
104
  end
@@ -99,6 +125,7 @@ module PulpFileClient
99
125
  :'remote' => :'String',
100
126
  :'autopublish' => :'Boolean',
101
127
  :'manifest' => :'String',
128
+ :'sha256sums' => :'Sha256sumsEnum',
102
129
  :'last_sync_details' => :'Object'
103
130
  }
104
131
  end
@@ -194,6 +221,10 @@ module PulpFileClient
194
221
  self.manifest = 'PULP_MANIFEST'
195
222
  end
196
223
 
224
+ if attributes.key?(:'sha256sums')
225
+ self.sha256sums = attributes[:'sha256sums']
226
+ end
227
+
197
228
  if attributes.key?(:'last_sync_details')
198
229
  self.last_sync_details = attributes[:'last_sync_details']
199
230
  end
@@ -268,6 +299,7 @@ module PulpFileClient
268
299
  remote == o.remote &&
269
300
  autopublish == o.autopublish &&
270
301
  manifest == o.manifest &&
302
+ sha256sums == o.sha256sums &&
271
303
  last_sync_details == o.last_sync_details
272
304
  end
273
305
 
@@ -280,7 +312,7 @@ module PulpFileClient
280
312
  # Calculates hash code according to all attributes.
281
313
  # @return [Integer] Hash code
282
314
  def hash
283
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest, last_sync_details].hash
315
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest, sha256sums, last_sync_details].hash
284
316
  end
285
317
 
286
318
  # Builds the object from hash
@@ -39,6 +39,31 @@ module PulpFileClient
39
39
  # Filename to use for manifest file containing metadata for all the files.
40
40
  attr_accessor :manifest
41
41
 
42
+ # Whether to generate SHA256SUMS files, and where to place them. 'root' writes a single file at the root of the repository, 'directory' writes one in every directory. Each file lists every file below it, with paths relative to itself. * `disabled` - Do not generate SHA256SUMS files. * `root` - Generate a single SHA256SUMS at the root of the repository, listing every file by its path relative to the root. * `directory` - Generate a SHA256SUMS in every directory of the repository, each listing every file below it by its path relative to that directory.
43
+ attr_accessor :sha256sums
44
+
45
+ class EnumAttributeValidator
46
+ attr_reader :datatype
47
+ attr_reader :allowable_values
48
+
49
+ def initialize(datatype, allowable_values)
50
+ @allowable_values = allowable_values.map do |value|
51
+ case datatype.to_s
52
+ when /Integer/i
53
+ value.to_i
54
+ when /Float/i
55
+ value.to_f
56
+ else
57
+ value
58
+ end
59
+ end
60
+ end
61
+
62
+ def valid?(value)
63
+ !value || allowable_values.include?(value)
64
+ end
65
+ end
66
+
42
67
  # Attribute mapping from ruby-style variable name to JSON key.
43
68
  def self.attribute_map
44
69
  {
@@ -49,7 +74,8 @@ module PulpFileClient
49
74
  :'retain_checkpoints' => :'retain_checkpoints',
50
75
  :'remote' => :'remote',
51
76
  :'autopublish' => :'autopublish',
52
- :'manifest' => :'manifest'
77
+ :'manifest' => :'manifest',
78
+ :'sha256sums' => :'sha256sums'
53
79
  }
54
80
  end
55
81
 
@@ -68,7 +94,8 @@ module PulpFileClient
68
94
  :'retain_checkpoints' => :'Integer',
69
95
  :'remote' => :'String',
70
96
  :'autopublish' => :'Boolean',
71
- :'manifest' => :'String'
97
+ :'manifest' => :'String',
98
+ :'sha256sums' => :'Sha256sumsEnum'
72
99
  }
73
100
  end
74
101
 
@@ -79,7 +106,7 @@ module PulpFileClient
79
106
  :'retain_repo_versions',
80
107
  :'retain_checkpoints',
81
108
  :'remote',
82
- :'manifest'
109
+ :'manifest',
83
110
  ])
84
111
  end
85
112
 
@@ -135,6 +162,10 @@ module PulpFileClient
135
162
  else
136
163
  self.manifest = 'PULP_MANIFEST'
137
164
  end
165
+
166
+ if attributes.key?(:'sha256sums')
167
+ self.sha256sums = attributes[:'sha256sums']
168
+ end
138
169
  end
139
170
 
140
171
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -243,7 +274,8 @@ module PulpFileClient
243
274
  retain_checkpoints == o.retain_checkpoints &&
244
275
  remote == o.remote &&
245
276
  autopublish == o.autopublish &&
246
- manifest == o.manifest
277
+ manifest == o.manifest &&
278
+ sha256sums == o.sha256sums
247
279
  end
248
280
 
249
281
  # @see the `==` method
@@ -255,7 +287,7 @@ module PulpFileClient
255
287
  # Calculates hash code according to all attributes.
256
288
  # @return [Integer] Hash code
257
289
  def hash
258
- [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest].hash
290
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest, sha256sums].hash
259
291
  end
260
292
 
261
293
  # Builds the object from hash
@@ -0,0 +1,41 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PulpFileClient
17
+ class Sha256sumsEnum
18
+ DISABLED = "disabled".freeze
19
+ ROOT = "root".freeze
20
+ DIRECTORY = "directory".freeze
21
+
22
+ def self.all_vars
23
+ @all_vars ||= [DISABLED, ROOT, DIRECTORY].freeze
24
+ end
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def self.build_from_hash(value)
30
+ new.build_from_hash(value)
31
+ end
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
+ def build_from_hash(value)
37
+ return value if Sha256sumsEnum.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #Sha256sumsEnum"
39
+ end
40
+ end
41
+ end
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '3.123.3'
14
+ VERSION = '3.124.0'
15
15
  end
@@ -60,6 +60,7 @@ require 'pulp_file_client/models/repository_add_remove_content'
60
60
  require 'pulp_file_client/models/repository_version_response'
61
61
  require 'pulp_file_client/models/set_label'
62
62
  require 'pulp_file_client/models/set_label_response'
63
+ require 'pulp_file_client/models/sha256sums_enum'
63
64
  require 'pulp_file_client/models/task_group_operation_response'
64
65
  require 'pulp_file_client/models/unset_label'
65
66
  require 'pulp_file_client/models/unset_label_response'
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
27
  s.license = "GPLv2+"
28
- s.required_ruby_version = ">= 2.7"
28
+ s.required_ruby_version = ">= 3.3"
29
29
  s.metadata = {}
30
30
 
31
31
  s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.9'
@@ -75,6 +75,12 @@ describe PulpFileClient::FileFilePublicationResponse do
75
75
  end
76
76
  end
77
77
 
78
+ describe 'test attribute "sha256sums"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
78
84
  describe 'test attribute "checkpoint"' do
79
85
  it 'should work' do
80
86
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -45,6 +45,12 @@ describe PulpFileClient::FileFilePublication do
45
45
  end
46
46
  end
47
47
 
48
+ describe 'test attribute "sha256sums"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
48
54
  describe 'test attribute "checkpoint"' do
49
55
  it 'should work' do
50
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -111,6 +111,12 @@ describe PulpFileClient::FileFileRepositoryResponse do
111
111
  end
112
112
  end
113
113
 
114
+ describe 'test attribute "sha256sums"' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
117
+ end
118
+ end
119
+
114
120
  describe 'test attribute "last_sync_details"' do
115
121
  it 'should work' do
116
122
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -75,4 +75,10 @@ describe PulpFileClient::FileFileRepository do
75
75
  end
76
76
  end
77
77
 
78
+ describe 'test attribute "sha256sums"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
78
84
  end
@@ -75,4 +75,10 @@ describe PulpFileClient::PatchedfileFileRepository do
75
75
  end
76
76
  end
77
77
 
78
+ describe 'test attribute "sha256sums"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
78
84
  end
@@ -0,0 +1,30 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpFileClient::Sha256sumsEnum
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PulpFileClient::Sha256sumsEnum do
21
+ let(:instance) { PulpFileClient::Sha256sumsEnum.new }
22
+
23
+ describe 'test an instance of Sha256sumsEnum' do
24
+ it 'should create an instance of Sha256sumsEnum' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpFileClient::Sha256sumsEnum)
27
+ end
28
+ end
29
+
30
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_file_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.123.3
4
+ version: 3.124.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -138,6 +138,7 @@ files:
138
138
  - docs/RepositoryVersionResponse.md
139
139
  - docs/SetLabel.md
140
140
  - docs/SetLabelResponse.md
141
+ - docs/Sha256sumsEnum.md
141
142
  - docs/TaskGroupOperationResponse.md
142
143
  - docs/UnsetLabel.md
143
144
  - docs/UnsetLabelResponse.md
@@ -196,6 +197,7 @@ files:
196
197
  - lib/pulp_file_client/models/repository_version_response.rb
197
198
  - lib/pulp_file_client/models/set_label.rb
198
199
  - lib/pulp_file_client/models/set_label_response.rb
200
+ - lib/pulp_file_client/models/sha256sums_enum.rb
199
201
  - lib/pulp_file_client/models/task_group_operation_response.rb
200
202
  - lib/pulp_file_client/models/unset_label.rb
201
203
  - lib/pulp_file_client/models/unset_label_response.rb
@@ -252,6 +254,7 @@ files:
252
254
  - spec/models/repository_version_response_spec.rb
253
255
  - spec/models/set_label_response_spec.rb
254
256
  - spec/models/set_label_spec.rb
257
+ - spec/models/sha256sums_enum_spec.rb
255
258
  - spec/models/task_group_operation_response_spec.rb
256
259
  - spec/models/unset_label_response_spec.rb
257
260
  - spec/models/unset_label_spec.rb
@@ -267,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
267
270
  requirements:
268
271
  - - ">="
269
272
  - !ruby/object:Gem::Version
270
- version: '2.7'
273
+ version: '3.3'
271
274
  required_rubygems_version: !ruby/object:Gem::Requirement
272
275
  requirements:
273
276
  - - ">="
@@ -329,6 +332,7 @@ test_files:
329
332
  - spec/models/repository_version_response_spec.rb
330
333
  - spec/models/set_label_response_spec.rb
331
334
  - spec/models/set_label_spec.rb
335
+ - spec/models/sha256sums_enum_spec.rb
332
336
  - spec/models/task_group_operation_response_spec.rb
333
337
  - spec/models/unset_label_response_spec.rb
334
338
  - spec/models/unset_label_spec.rb