pulp_rpm_client 3.22.1 → 3.22.3

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: 7436986a9d449457d0e07129d48031c248133cb14cef4ebc61919f10cb3eb45e
4
- data.tar.gz: 317622b0791fb2fa1aaeccf67e2cb22b54da94713657db9653cef04d877e4d00
3
+ metadata.gz: b508440050bb1680dc01c1f63bae7ace8178c032939d5393e96e751c9bc378d3
4
+ data.tar.gz: 9f176115e7297f6dc294b9b6aea5355bf568942fe2a2d0550916ae864d3e73f3
5
5
  SHA512:
6
- metadata.gz: 10f41931d0a8deff922b0c37f8e8a42d39acf2a424b3a1289254ab02e7eb87abfeaca62ea942f5a3b04576d332c2fc9acff2fd4107716fe8e6bc8153cbf71434
7
- data.tar.gz: 613e147c455d1a591770ed86cbe0b2c594dd3cc66f04941a519ffc584f8edbd3e272e4c6e72eb9ac5f26b6c0f1b7243dd624e630277b01507f1f95899dd4ab8b
6
+ metadata.gz: 129aca6bf77179c0b12ebbd64daf40e3c43e1b3aa93cfcd763f5ad12c592a81eb01ce9e32bae243d19fd833014da4e043103e9ae4623be85f3ab6fb9a793d86f
7
+ data.tar.gz: c909bbdce70b6131d44616643287fd731e70338660c4d68a115d4d82b051d01653819d000996cf203228078237d3ba992f6d0a92cb370e0aa1eb6d51c8018245
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.22.1
10
+ - Package version: 3.22.3
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_rpm_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_rpm_client-3.22.1.gem
27
+ gem install ./pulp_rpm_client-3.22.3.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_rpm_client-3.22.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_rpm_client-3.22.3.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_rpm_client', '~> 3.22.1'
36
+ gem 'pulp_rpm_client', '~> 3.22.3'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -32,8 +32,8 @@ end
32
32
 
33
33
  api_instance = PulpRpmClient::ContentAdvisoriesApi.new
34
34
  opts = {
35
- file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
36
- repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
35
+ repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
36
+ file: File.new('/path/to/file') # File | An uploaded file that may be turned into the artifact of the content unit.
37
37
  }
38
38
 
39
39
  begin
@@ -50,8 +50,8 @@ end
50
50
 
51
51
  Name | Type | Description | Notes
52
52
  ------------- | ------------- | ------------- | -------------
53
- **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
54
53
  **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
54
+ **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
55
55
 
56
56
  ### Return type
57
57
 
@@ -32,10 +32,10 @@ end
32
32
 
33
33
  api_instance = PulpRpmClient::ContentPackagesApi.new
34
34
  opts = {
35
+ repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
35
36
  artifact: 'artifact_example', # String | Artifact file representing the physical content
36
37
  relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
37
38
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
38
- repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
39
  upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit.
40
40
  }
41
41
 
@@ -53,10 +53,10 @@ end
53
53
 
54
54
  Name | Type | Description | Notes
55
55
  ------------- | ------------- | ------------- | -------------
56
+ **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
56
57
  **artifact** | **String**| Artifact file representing the physical content | [optional]
57
58
  **relative_path** | **String**| Path where the artifact is located relative to distributions base_path | [optional]
58
59
  **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
59
- **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
60
60
  **upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
61
61
 
62
62
  ### Return type
data/docs/RpmModulemd.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
7
8
  **name** | **String** | Modulemd name. |
8
9
  **stream** | **String** | Stream name. |
9
10
  **version** | **String** | Modulemd version. |
@@ -22,7 +23,8 @@ Name | Type | Description | Notes
22
23
  ```ruby
23
24
  require 'PulpRpmClient'
24
25
 
25
- instance = PulpRpmClient::RpmModulemd.new(name: null,
26
+ instance = PulpRpmClient::RpmModulemd.new(repository: null,
27
+ name: null,
26
28
  stream: null,
27
29
  version: null,
28
30
  static_context: null,
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
7
8
  **_module** | **String** | Modulemd name. |
8
9
  **stream** | **String** | Modulemd default stream. |
9
10
  **profiles** | [**Object**](.md) | Default profiles for modulemd streams. |
@@ -14,7 +15,8 @@ Name | Type | Description | Notes
14
15
  ```ruby
15
16
  require 'PulpRpmClient'
16
17
 
17
- instance = PulpRpmClient::RpmModulemdDefaults.new(_module: null,
18
+ instance = PulpRpmClient::RpmModulemdDefaults.new(repository: null,
19
+ _module: null,
18
20
  stream: null,
19
21
  profiles: null,
20
22
  snippet: null)
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
7
8
  **modified** | **String** | Obsolete modified time. |
8
9
  **module_name** | **String** | Modulemd name. |
9
10
  **module_stream** | **String** | Modulemd's stream. |
@@ -20,7 +21,8 @@ Name | Type | Description | Notes
20
21
  ```ruby
21
22
  require 'PulpRpmClient'
22
23
 
23
- instance = PulpRpmClient::RpmModulemdObsolete.new(modified: null,
24
+ instance = PulpRpmClient::RpmModulemdObsolete.new(repository: null,
25
+ modified: null,
24
26
  module_name: null,
25
27
  module_stream: null,
26
28
  message: null,
data/docs/RpmPackage.md CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
7
8
  **artifact** | **String** | Artifact file representing the physical content | [optional]
8
9
  **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional]
9
10
  **file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
10
- **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
11
11
  **upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
12
12
 
13
13
  ## Code Sample
@@ -15,10 +15,10 @@ Name | Type | Description | Notes
15
15
  ```ruby
16
16
  require 'PulpRpmClient'
17
17
 
18
- instance = PulpRpmClient::RpmPackage.new(artifact: null,
18
+ instance = PulpRpmClient::RpmPackage.new(repository: null,
19
+ artifact: null,
19
20
  relative_path: null,
20
21
  file: null,
21
- repository: null,
22
22
  upload: null)
23
23
  ```
24
24
 
@@ -4,16 +4,16 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
8
7
  **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
8
+ **file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
12
12
  ```ruby
13
13
  require 'PulpRpmClient'
14
14
 
15
- instance = PulpRpmClient::RpmUpdateRecord.new(file: null,
16
- repository: null)
15
+ instance = PulpRpmClient::RpmUpdateRecord.new(repository: null,
16
+ file: null)
17
17
  ```
18
18
 
19
19
 
@@ -22,8 +22,8 @@ module PulpRpmClient
22
22
  # Create an update record
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
26
25
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
27
27
  # @return [AsyncOperationResponse]
28
28
  def create(opts = {})
29
29
  data, _status_code, _headers = create_with_http_info(opts)
@@ -33,8 +33,8 @@ module PulpRpmClient
33
33
  # Create an update record
34
34
  # Trigger an asynchronous task to create content,optionally create new repository version.
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
37
36
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
37
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
38
38
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
39
  def create_with_http_info(opts = {})
40
40
  if @api_client.config.debugging
@@ -55,8 +55,8 @@ module PulpRpmClient
55
55
 
56
56
  # form parameters
57
57
  form_params = opts[:form_params] || {}
58
- form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
59
58
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
59
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
60
60
 
61
61
  # http body (model)
62
62
  post_body = opts[:body]
@@ -22,10 +22,10 @@ module PulpRpmClient
22
22
  # Create a package
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
25
26
  # @option opts [String] :artifact Artifact file representing the physical content
26
27
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
27
28
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
28
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
29
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
30
30
  # @return [AsyncOperationResponse]
31
31
  def create(opts = {})
@@ -36,10 +36,10 @@ module PulpRpmClient
36
36
  # Create a package
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
39
40
  # @option opts [String] :artifact Artifact file representing the physical content
40
41
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
41
42
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
44
44
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
45
45
  def create_with_http_info(opts = {})
@@ -65,10 +65,10 @@ module PulpRpmClient
65
65
 
66
66
  # form parameters
67
67
  form_params = opts[:form_params] || {}
68
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
68
69
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
69
70
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
70
71
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
71
- form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
72
72
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
73
73
 
74
74
  # http body (model)
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpRpmClient
16
16
  # Modulemd serializer.
17
17
  class RpmModulemd
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # Modulemd name.
19
22
  attr_accessor :name
20
23
 
@@ -54,6 +57,7 @@ module PulpRpmClient
54
57
  # Attribute mapping from ruby-style variable name to JSON key.
55
58
  def self.attribute_map
56
59
  {
60
+ :'repository' => :'repository',
57
61
  :'name' => :'name',
58
62
  :'stream' => :'stream',
59
63
  :'version' => :'version',
@@ -72,6 +76,7 @@ module PulpRpmClient
72
76
  # Attribute type mapping.
73
77
  def self.openapi_types
74
78
  {
79
+ :'repository' => :'String',
75
80
  :'name' => :'String',
76
81
  :'stream' => :'String',
77
82
  :'version' => :'String',
@@ -111,6 +116,10 @@ module PulpRpmClient
111
116
  h[k.to_sym] = v
112
117
  }
113
118
 
119
+ if attributes.key?(:'repository')
120
+ self.repository = attributes[:'repository']
121
+ end
122
+
114
123
  if attributes.key?(:'name')
115
124
  self.name = attributes[:'name']
116
125
  end
@@ -348,6 +357,7 @@ module PulpRpmClient
348
357
  def ==(o)
349
358
  return true if self.equal?(o)
350
359
  self.class == o.class &&
360
+ repository == o.repository &&
351
361
  name == o.name &&
352
362
  stream == o.stream &&
353
363
  version == o.version &&
@@ -371,7 +381,7 @@ module PulpRpmClient
371
381
  # Calculates hash code according to all attributes.
372
382
  # @return [Integer] Hash code
373
383
  def hash
374
- [name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
384
+ [repository, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
375
385
  end
376
386
 
377
387
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpRpmClient
16
16
  # ModulemdDefaults serializer.
17
17
  class RpmModulemdDefaults
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # Modulemd name.
19
22
  attr_accessor :_module
20
23
 
@@ -30,6 +33,7 @@ module PulpRpmClient
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
36
+ :'repository' => :'repository',
33
37
  :'_module' => :'module',
34
38
  :'stream' => :'stream',
35
39
  :'profiles' => :'profiles',
@@ -40,6 +44,7 @@ module PulpRpmClient
40
44
  # Attribute type mapping.
41
45
  def self.openapi_types
42
46
  {
47
+ :'repository' => :'String',
43
48
  :'_module' => :'String',
44
49
  :'stream' => :'String',
45
50
  :'profiles' => :'Object',
@@ -68,6 +73,10 @@ module PulpRpmClient
68
73
  h[k.to_sym] = v
69
74
  }
70
75
 
76
+ if attributes.key?(:'repository')
77
+ self.repository = attributes[:'repository']
78
+ end
79
+
71
80
  if attributes.key?(:'_module')
72
81
  self._module = attributes[:'_module']
73
82
  end
@@ -180,6 +189,7 @@ module PulpRpmClient
180
189
  def ==(o)
181
190
  return true if self.equal?(o)
182
191
  self.class == o.class &&
192
+ repository == o.repository &&
183
193
  _module == o._module &&
184
194
  stream == o.stream &&
185
195
  profiles == o.profiles &&
@@ -195,7 +205,7 @@ module PulpRpmClient
195
205
  # Calculates hash code according to all attributes.
196
206
  # @return [Integer] Hash code
197
207
  def hash
198
- [_module, stream, profiles, snippet].hash
208
+ [repository, _module, stream, profiles, snippet].hash
199
209
  end
200
210
 
201
211
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpRpmClient
16
16
  # ModulemdObsolete serializer.
17
17
  class RpmModulemdObsolete
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # Obsolete modified time.
19
22
  attr_accessor :modified
20
23
 
@@ -48,6 +51,7 @@ module PulpRpmClient
48
51
  # Attribute mapping from ruby-style variable name to JSON key.
49
52
  def self.attribute_map
50
53
  {
54
+ :'repository' => :'repository',
51
55
  :'modified' => :'modified',
52
56
  :'module_name' => :'module_name',
53
57
  :'module_stream' => :'module_stream',
@@ -64,6 +68,7 @@ module PulpRpmClient
64
68
  # Attribute type mapping.
65
69
  def self.openapi_types
66
70
  {
71
+ :'repository' => :'String',
67
72
  :'modified' => :'String',
68
73
  :'module_name' => :'String',
69
74
  :'module_stream' => :'String',
@@ -103,6 +108,10 @@ module PulpRpmClient
103
108
  h[k.to_sym] = v
104
109
  }
105
110
 
111
+ if attributes.key?(:'repository')
112
+ self.repository = attributes[:'repository']
113
+ end
114
+
106
115
  if attributes.key?(:'modified')
107
116
  self.modified = attributes[:'modified']
108
117
  end
@@ -357,6 +366,7 @@ module PulpRpmClient
357
366
  def ==(o)
358
367
  return true if self.equal?(o)
359
368
  self.class == o.class &&
369
+ repository == o.repository &&
360
370
  modified == o.modified &&
361
371
  module_name == o.module_name &&
362
372
  module_stream == o.module_stream &&
@@ -378,7 +388,7 @@ module PulpRpmClient
378
388
  # Calculates hash code according to all attributes.
379
389
  # @return [Integer] Hash code
380
390
  def hash
381
- [modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
391
+ [repository, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
382
392
  end
383
393
 
384
394
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpRpmClient
16
16
  # A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. Provide help_text.
17
17
  class RpmPackage
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
@@ -24,19 +27,16 @@ module PulpRpmClient
24
27
  # An uploaded file that may be turned into the artifact of the content unit.
25
28
  attr_accessor :file
26
29
 
27
- # A URI of a repository the new content unit should be associated with.
28
- attr_accessor :repository
29
-
30
30
  # An uncommitted upload that may be turned into the artifact of the content unit.
31
31
  attr_accessor :upload
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
+ :'repository' => :'repository',
36
37
  :'artifact' => :'artifact',
37
38
  :'relative_path' => :'relative_path',
38
39
  :'file' => :'file',
39
- :'repository' => :'repository',
40
40
  :'upload' => :'upload'
41
41
  }
42
42
  end
@@ -44,10 +44,10 @@ module PulpRpmClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
+ :'repository' => :'String',
47
48
  :'artifact' => :'String',
48
49
  :'relative_path' => :'String',
49
50
  :'file' => :'File',
50
- :'repository' => :'String',
51
51
  :'upload' => :'String'
52
52
  }
53
53
  end
@@ -73,6 +73,10 @@ module PulpRpmClient
73
73
  h[k.to_sym] = v
74
74
  }
75
75
 
76
+ if attributes.key?(:'repository')
77
+ self.repository = attributes[:'repository']
78
+ end
79
+
76
80
  if attributes.key?(:'artifact')
77
81
  self.artifact = attributes[:'artifact']
78
82
  end
@@ -85,10 +89,6 @@ module PulpRpmClient
85
89
  self.file = attributes[:'file']
86
90
  end
87
91
 
88
- if attributes.key?(:'repository')
89
- self.repository = attributes[:'repository']
90
- end
91
-
92
92
  if attributes.key?(:'upload')
93
93
  self.upload = attributes[:'upload']
94
94
  end
@@ -127,10 +127,10 @@ module PulpRpmClient
127
127
  def ==(o)
128
128
  return true if self.equal?(o)
129
129
  self.class == o.class &&
130
+ repository == o.repository &&
130
131
  artifact == o.artifact &&
131
132
  relative_path == o.relative_path &&
132
133
  file == o.file &&
133
- repository == o.repository &&
134
134
  upload == o.upload
135
135
  end
136
136
 
@@ -143,7 +143,7 @@ module PulpRpmClient
143
143
  # Calculates hash code according to all attributes.
144
144
  # @return [Integer] Hash code
145
145
  def hash
146
- [artifact, relative_path, file, repository, upload].hash
146
+ [repository, artifact, relative_path, file, upload].hash
147
147
  end
148
148
 
149
149
  # Builds the object from hash
@@ -15,25 +15,25 @@ require 'date'
15
15
  module PulpRpmClient
16
16
  # A Serializer for UpdateRecord.
17
17
  class RpmUpdateRecord
18
- # An uploaded file that may be turned into the artifact of the content unit.
19
- attr_accessor :file
20
-
21
18
  # A URI of a repository the new content unit should be associated with.
22
19
  attr_accessor :repository
23
20
 
21
+ # An uploaded file that may be turned into the artifact of the content unit.
22
+ attr_accessor :file
23
+
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
- :'file' => :'file',
28
- :'repository' => :'repository'
27
+ :'repository' => :'repository',
28
+ :'file' => :'file'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'file' => :'File',
36
- :'repository' => :'String'
35
+ :'repository' => :'String',
36
+ :'file' => :'File'
37
37
  }
38
38
  end
39
39
 
@@ -58,13 +58,13 @@ module PulpRpmClient
58
58
  h[k.to_sym] = v
59
59
  }
60
60
 
61
- if attributes.key?(:'file')
62
- self.file = attributes[:'file']
63
- end
64
-
65
61
  if attributes.key?(:'repository')
66
62
  self.repository = attributes[:'repository']
67
63
  end
64
+
65
+ if attributes.key?(:'file')
66
+ self.file = attributes[:'file']
67
+ end
68
68
  end
69
69
 
70
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -85,8 +85,8 @@ module PulpRpmClient
85
85
  def ==(o)
86
86
  return true if self.equal?(o)
87
87
  self.class == o.class &&
88
- file == o.file &&
89
- repository == o.repository
88
+ repository == o.repository &&
89
+ file == o.file
90
90
  end
91
91
 
92
92
  # @see the `==` method
@@ -98,7 +98,7 @@ module PulpRpmClient
98
98
  # Calculates hash code according to all attributes.
99
99
  # @return [Integer] Hash code
100
100
  def hash
101
- [file, repository].hash
101
+ [repository, file].hash
102
102
  end
103
103
 
104
104
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.22.1'
14
+ VERSION = '3.22.3'
15
15
  end
@@ -36,8 +36,8 @@ describe 'ContentAdvisoriesApi' do
36
36
  # Create an update record
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
40
39
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
41
41
  # @return [AsyncOperationResponse]
42
42
  describe 'create test' do
43
43
  it 'should work' do
@@ -36,10 +36,10 @@ describe 'ContentPackagesApi' do
36
36
  # Create a package
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
39
40
  # @option opts [String] :artifact Artifact file representing the physical content
40
41
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
41
42
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
44
44
  # @return [AsyncOperationResponse]
45
45
  describe 'create test' do
@@ -32,6 +32,12 @@ describe 'RpmModulemdDefaults' do
32
32
  expect(@instance).to be_instance_of(PulpRpmClient::RpmModulemdDefaults)
33
33
  end
34
34
  end
35
+ describe 'test attribute "repository"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
35
41
  describe 'test attribute "_module"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,6 +32,12 @@ describe 'RpmModulemdObsolete' do
32
32
  expect(@instance).to be_instance_of(PulpRpmClient::RpmModulemdObsolete)
33
33
  end
34
34
  end
35
+ describe 'test attribute "repository"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
35
41
  describe 'test attribute "modified"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,6 +32,12 @@ describe 'RpmModulemd' do
32
32
  expect(@instance).to be_instance_of(PulpRpmClient::RpmModulemd)
33
33
  end
34
34
  end
35
+ describe 'test attribute "repository"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
35
41
  describe 'test attribute "name"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,25 +32,25 @@ describe 'RpmPackage' do
32
32
  expect(@instance).to be_instance_of(PulpRpmClient::RpmPackage)
33
33
  end
34
34
  end
35
- describe 'test attribute "artifact"' do
35
+ describe 'test attribute "repository"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "relative_path"' do
41
+ describe 'test attribute "artifact"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "file"' do
47
+ describe 'test attribute "relative_path"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "repository"' do
53
+ describe 'test attribute "file"' 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
@@ -32,13 +32,13 @@ describe 'RpmUpdateRecord' do
32
32
  expect(@instance).to be_instance_of(PulpRpmClient::RpmUpdateRecord)
33
33
  end
34
34
  end
35
- describe 'test attribute "file"' do
35
+ describe 'test attribute "repository"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "repository"' do
41
+ describe 'test attribute "file"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_rpm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.22.1
4
+ version: 3.22.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-14 00:00:00.000000000 Z
11
+ date: 2023-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -404,103 +404,103 @@ signing_key:
404
404
  specification_version: 4
405
405
  summary: Pulp 3 API Ruby Gem
406
406
  test_files:
407
+ - spec/api/content_advisories_api_spec.rb
408
+ - spec/api/content_packagelangpacks_api_spec.rb
409
+ - spec/api/content_modulemd_defaults_api_spec.rb
410
+ - spec/api/acs_rpm_api_spec.rb
411
+ - spec/api/remotes_rpm_api_spec.rb
412
+ - spec/api/rpm_copy_api_spec.rb
407
413
  - spec/api/content_repo_metadata_files_api_spec.rb
408
414
  - spec/api/remotes_uln_api_spec.rb
409
- - spec/api/distributions_rpm_api_spec.rb
410
- - spec/api/content_modulemd_defaults_api_spec.rb
415
+ - spec/api/content_modulemd_obsoletes_api_spec.rb
411
416
  - spec/api/repositories_rpm_api_spec.rb
412
- - spec/api/content_distribution_trees_api_spec.rb
413
- - spec/api/rpm_copy_api_spec.rb
414
417
  - spec/api/content_packagegroups_api_spec.rb
415
- - spec/api/content_modulemds_api_spec.rb
416
- - spec/api/remotes_rpm_api_spec.rb
417
- - spec/api/content_packages_api_spec.rb
418
- - spec/api/acs_rpm_api_spec.rb
419
- - spec/api/content_packageenvironments_api_spec.rb
418
+ - spec/api/distributions_rpm_api_spec.rb
419
+ - spec/api/publications_rpm_api_spec.rb
420
420
  - spec/api/repositories_rpm_versions_api_spec.rb
421
421
  - spec/api/rpm_comps_api_spec.rb
422
- - spec/api/content_modulemd_obsoletes_api_spec.rb
423
- - spec/api/content_advisories_api_spec.rb
424
- - spec/api/content_packagelangpacks_api_spec.rb
425
- - spec/api/publications_rpm_api_spec.rb
426
422
  - spec/api/content_packagecategories_api_spec.rb
423
+ - spec/api/content_packages_api_spec.rb
424
+ - spec/api/content_distribution_trees_api_spec.rb
425
+ - spec/api/content_packageenvironments_api_spec.rb
426
+ - spec/api/content_modulemds_api_spec.rb
427
427
  - spec/api_client_spec.rb
428
428
  - spec/configuration_spec.rb
429
- - spec/models/checksum_response_spec.rb
430
- - spec/models/rpm_rpm_remote_spec.rb
431
- - spec/models/rpm_rpm_distribution_response_spec.rb
432
- - spec/models/rpm_package_environment_response_spec.rb
433
- - spec/models/rpm_rpm_distribution_spec.rb
434
- - spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb
435
- - spec/models/rpm_rpm_alternate_content_source_spec.rb
436
- - spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
437
- - spec/models/rpm_package_group_response_spec.rb
438
- - spec/models/paginatedrpm_package_category_response_list_spec.rb
439
- - spec/models/repair_spec.rb
429
+ - spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
430
+ - spec/models/rpm_rpm_remote_response_spec.rb
440
431
  - spec/models/rpm_package_response_spec.rb
441
- - spec/models/rpm_distribution_tree_response_spec.rb
432
+ - spec/models/patchedrpm_rpm_alternate_content_source_spec.rb
442
433
  - spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
443
- - spec/models/artifact_response_spec.rb
444
- - spec/models/rpm_uln_remote_response_spec.rb
445
- - spec/models/paginatedrpm_package_environment_response_list_spec.rb
446
- - spec/models/repository_version_response_spec.rb
447
- - spec/models/rpm_modulemd_defaults_response_spec.rb
448
- - spec/models/metadata_checksum_type_enum_spec.rb
449
- - spec/models/patchedrpm_rpm_distribution_spec.rb
450
- - spec/models/rpm_rpm_publication_spec.rb
451
- - spec/models/rpm_package_category_response_spec.rb
452
- - spec/models/repository_add_remove_content_spec.rb
453
- - spec/models/rpm_update_collection_response_spec.rb
454
- - spec/models/paginatedrpm_update_record_response_list_spec.rb
434
+ - spec/models/repair_spec.rb
435
+ - spec/models/patchedrpm_uln_remote_spec.rb
436
+ - spec/models/patchedrpm_rpm_repository_spec.rb
437
+ - spec/models/rpm_uln_remote_spec.rb
455
438
  - spec/models/nested_role_response_spec.rb
456
- - spec/models/patchedrpm_rpm_alternate_content_source_spec.rb
457
- - spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb
439
+ - spec/models/rpm_update_record_spec.rb
440
+ - spec/models/rpm_modulemd_spec.rb
441
+ - spec/models/rpm_rpm_remote_response_hidden_fields_spec.rb
442
+ - spec/models/package_checksum_type_enum_spec.rb
443
+ - spec/models/rpm_package_group_response_spec.rb
444
+ - spec/models/artifact_response_spec.rb
445
+ - spec/models/rpm_rpm_remote_spec.rb
446
+ - spec/models/task_group_operation_response_spec.rb
447
+ - spec/models/rpm_rpm_publication_response_spec.rb
448
+ - spec/models/image_response_spec.rb
458
449
  - spec/models/copy_spec.rb
459
- - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
460
- - spec/models/rpm_package_langpacks_response_spec.rb
450
+ - spec/models/rpm_rpm_alternate_content_source_spec.rb
451
+ - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
461
452
  - spec/models/paginatedrpm_rpm_remote_response_list_spec.rb
462
- - spec/models/paginatedrpm_package_response_list_spec.rb
463
- - spec/models/rpm_rpm_publication_response_spec.rb
453
+ - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
454
+ - spec/models/rpm_package_environment_response_spec.rb
455
+ - spec/models/rpm_rpm_repository_spec.rb
456
+ - spec/models/rpm_rpm_publication_spec.rb
457
+ - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
464
458
  - spec/models/rpm_modulemd_response_spec.rb
465
- - spec/models/async_operation_response_spec.rb
466
- - spec/models/rpm_rpm_remote_response_spec.rb
467
- - spec/models/paginatedrpm_modulemd_response_list_spec.rb
468
- - spec/models/paginatedrpm_uln_remote_response_list_spec.rb
469
- - spec/models/rpm_update_record_spec.rb
470
- - spec/models/my_permissions_response_spec.rb
459
+ - spec/models/rpm_update_collection_response_spec.rb
460
+ - spec/models/rpm_package_spec.rb
461
+ - spec/models/checksum_response_spec.rb
462
+ - spec/models/rpm_uln_remote_response_spec.rb
463
+ - spec/models/paginatedrpm_package_category_response_list_spec.rb
471
464
  - spec/models/rpm_repo_metadata_file_response_spec.rb
472
- - spec/models/variant_response_spec.rb
473
- - spec/models/rpm_rpm_remote_response_hidden_fields_spec.rb
465
+ - spec/models/addon_response_spec.rb
466
+ - spec/models/rpm_modulemd_obsolete_spec.rb
467
+ - spec/models/rpm_modulemd_defaults_response_spec.rb
468
+ - spec/models/async_operation_response_spec.rb
469
+ - spec/models/rpm_rpm_distribution_response_spec.rb
474
470
  - spec/models/nested_role_spec.rb
475
- - spec/models/skip_types_enum_spec.rb
476
- - spec/models/rpm_uln_remote_spec.rb
477
- - spec/models/rpm_modulemd_obsolete_response_spec.rb
478
- - spec/models/rpm_package_spec.rb
479
- - spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
471
+ - spec/models/object_roles_response_spec.rb
472
+ - spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb
473
+ - spec/models/variant_response_spec.rb
480
474
  - spec/models/rpm_rpm_alternate_content_source_response_spec.rb
481
- - spec/models/rpm_modulemd_spec.rb
482
- - spec/models/content_summary_response_spec.rb
483
- - spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
484
- - spec/models/task_group_operation_response_spec.rb
485
- - spec/models/policy_enum_spec.rb
486
- - spec/models/paginatedrpm_package_group_response_list_spec.rb
487
- - spec/models/patchedrpm_rpm_remote_spec.rb
475
+ - spec/models/metadata_checksum_type_enum_spec.rb
476
+ - spec/models/rpm_modulemd_defaults_spec.rb
477
+ - spec/models/rpm_update_collection_spec.rb
488
478
  - spec/models/rpm_update_record_response_spec.rb
489
- - spec/models/paginated_repository_version_response_list_spec.rb
490
- - spec/models/image_response_spec.rb
479
+ - spec/models/comps_xml_spec.rb
480
+ - spec/models/rpm_modulemd_obsolete_response_spec.rb
481
+ - spec/models/paginatedrpm_package_environment_response_list_spec.rb
482
+ - spec/models/my_permissions_response_spec.rb
483
+ - spec/models/repository_version_response_spec.rb
484
+ - spec/models/patchedrpm_rpm_distribution_spec.rb
485
+ - spec/models/policy_enum_spec.rb
486
+ - spec/models/rpm_rpm_distribution_spec.rb
487
+ - spec/models/paginatedrpm_package_response_list_spec.rb
491
488
  - spec/models/rpm_rpm_repository_response_spec.rb
492
- - spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
493
- - spec/models/rpm_modulemd_defaults_spec.rb
489
+ - spec/models/paginatedrpm_modulemd_response_list_spec.rb
490
+ - spec/models/paginatedrpm_package_group_response_list_spec.rb
491
+ - spec/models/repository_add_remove_content_spec.rb
492
+ - spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
493
+ - spec/models/paginatedrpm_uln_remote_response_list_spec.rb
494
+ - spec/models/paginatedrpm_update_record_response_list_spec.rb
495
+ - spec/models/rpm_package_category_response_spec.rb
494
496
  - spec/models/sync_policy_enum_spec.rb
495
- - spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
496
497
  - spec/models/rpm_repository_sync_url_spec.rb
497
- - spec/models/rpm_rpm_repository_spec.rb
498
- - spec/models/comps_xml_spec.rb
499
- - spec/models/rpm_modulemd_obsolete_spec.rb
500
- - spec/models/patchedrpm_uln_remote_spec.rb
501
- - spec/models/patchedrpm_rpm_repository_spec.rb
502
- - spec/models/rpm_update_collection_spec.rb
503
- - spec/models/addon_response_spec.rb
504
- - spec/models/object_roles_response_spec.rb
505
- - spec/models/package_checksum_type_enum_spec.rb
498
+ - spec/models/patchedrpm_rpm_remote_spec.rb
499
+ - spec/models/skip_types_enum_spec.rb
500
+ - spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb
501
+ - spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
502
+ - spec/models/rpm_package_langpacks_response_spec.rb
503
+ - spec/models/paginated_repository_version_response_list_spec.rb
504
+ - spec/models/rpm_distribution_tree_response_spec.rb
505
+ - spec/models/content_summary_response_spec.rb
506
506
  - spec/spec_helper.rb