pulp_file_client 3.55.3 → 3.56.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27ddc40f295bfc4967eb6fc783dbab11d0f8ade903cdcb5dbe2eefcd95d5fc07
4
- data.tar.gz: f3c2a4ff343bdc399a5b497d49955506c021ba7c883aa6cbbfdd45487d68d360
3
+ metadata.gz: f256072bd353d1e9c7909e085acbff42a65421543c6bce1cdf9bdc0d63bef731
4
+ data.tar.gz: 880fcbae590a2d97700329cfaea82ca5ff41f73891dc7ddc8359ac17869e0c9c
5
5
  SHA512:
6
- metadata.gz: 7d44b711ba5423230a22db5ab5074849c394b1fc6c3546ae3d405a15c17d335d1faecbfea3be6872d31e9cee5cf3763f1d1b6db787bd7ba0fb67803414c7594e
7
- data.tar.gz: 2c86b1e39821c2e3d1e63decc9ae57a51b620d201e60603cf141090717ca2377bb650e430c25bcaf8dc88b8253fa0133c27a4df0a93f0a657d0560cee148cd18
6
+ metadata.gz: f5fb724d69bd64678272bef88ec3c16dedb0543a8aed5537b162fd921a0f06c711954b9f8797ba57584f147d41bf9aa90977cd4127bdd169ec7a345be6e61d80
7
+ data.tar.gz: 02dd616a8a7898b4b0dcfc704befe99c6be521bd4bc2fe777bb01e67087aa3464e6a34ee60cd422fd4baba93d99a95606ef4a936983fbeff5294c200449d4f59
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.55.3
10
+ - Package version: 3.56.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_file_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_file_client-3.55.3.gem
27
+ gem install ./pulp_file_client-3.56.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_file_client-3.55.3.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_file_client-3.56.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_file_client', '~> 3.55.3'
36
+ gem 'pulp_file_client', '~> 3.56.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -36,7 +36,8 @@ opts = {
36
36
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
37
37
  artifact: 'artifact_example', # String | Artifact file representing the physical content
38
38
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
39
- upload: 'upload_example' # String | An uncommitted upload that may be turned into the content unit.
39
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
40
+ url: 'url_example' # String | A url that Pulp can download and turn into the content unit.
40
41
  }
41
42
 
42
43
  begin
@@ -58,6 +59,7 @@ Name | Type | Description | Notes
58
59
  **artifact** | **String**| Artifact file representing the physical content | [optional]
59
60
  **file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
60
61
  **upload** | **String**| An uncommitted upload that may be turned into the content unit. | [optional]
62
+ **url** | **String**| A url that Pulp can download and turn into the content unit. | [optional]
61
63
 
62
64
  ### Return type
63
65
 
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
10
10
  **file** | **File** | An uploaded file that may be turned into the content unit. | [optional]
11
11
  **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional]
12
+ **url** | **String** | A url that Pulp can download and turn into the content unit. | [optional]
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -19,7 +20,8 @@ instance = PulpFileClient::FileFileContent.new(repository: null,
19
20
  artifact: null,
20
21
  relative_path: null,
21
22
  file: null,
22
- upload: null)
23
+ upload: null,
24
+ url: null)
23
25
  ```
24
26
 
25
27
 
@@ -27,6 +27,7 @@ module PulpFileClient
27
27
  # @option opts [String] :artifact Artifact file representing the physical content
28
28
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
29
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
30
+ # @option opts [String] :url A url that Pulp can download and turn into the content unit.
30
31
  # @return [AsyncOperationResponse]
31
32
  def create(relative_path, opts = {})
32
33
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -41,6 +42,7 @@ module PulpFileClient
41
42
  # @option opts [String] :artifact Artifact file representing the physical content
42
43
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
44
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
45
+ # @option opts [String] :url A url that Pulp can download and turn into the content unit.
44
46
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
45
47
  def create_with_http_info(relative_path, opts = {})
46
48
  if @api_client.config.debugging
@@ -54,6 +56,10 @@ module PulpFileClient
54
56
  fail ArgumentError, 'invalid value for "relative_path" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
55
57
  end
56
58
 
59
+ if @api_client.config.client_side_validation && !opts[:'url'].nil? && opts[:'url'].to_s.length < 1
60
+ fail ArgumentError, 'invalid value for "opts[:"url"]" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
61
+ end
62
+
57
63
  # resource path
58
64
  local_var_path = '/pulp/api/v3/content/file/files/'
59
65
 
@@ -74,6 +80,7 @@ module PulpFileClient
74
80
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
75
81
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
76
82
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
83
+ form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
77
84
 
78
85
  # http body (model)
79
86
  post_body = opts[:body]
@@ -30,6 +30,9 @@ module PulpFileClient
30
30
  # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
+ # A url that Pulp can download and turn into the content unit.
34
+ attr_accessor :url
35
+
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
@@ -37,7 +40,8 @@ module PulpFileClient
37
40
  :'artifact' => :'artifact',
38
41
  :'relative_path' => :'relative_path',
39
42
  :'file' => :'file',
40
- :'upload' => :'upload'
43
+ :'upload' => :'upload',
44
+ :'url' => :'url'
41
45
  }
42
46
  end
43
47
 
@@ -48,7 +52,8 @@ module PulpFileClient
48
52
  :'artifact' => :'String',
49
53
  :'relative_path' => :'String',
50
54
  :'file' => :'File',
51
- :'upload' => :'String'
55
+ :'upload' => :'String',
56
+ :'url' => :'String'
52
57
  }
53
58
  end
54
59
 
@@ -92,6 +97,10 @@ module PulpFileClient
92
97
  if attributes.key?(:'upload')
93
98
  self.upload = attributes[:'upload']
94
99
  end
100
+
101
+ if attributes.key?(:'url')
102
+ self.url = attributes[:'url']
103
+ end
95
104
  end
96
105
 
97
106
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,6 +115,10 @@ module PulpFileClient
106
115
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
107
116
  end
108
117
 
118
+ if !@url.nil? && @url.to_s.length < 1
119
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
120
+ end
121
+
109
122
  invalid_properties
110
123
  end
111
124
 
@@ -114,6 +127,7 @@ module PulpFileClient
114
127
  def valid?
115
128
  return false if @relative_path.nil?
116
129
  return false if @relative_path.to_s.length < 1
130
+ return false if !@url.nil? && @url.to_s.length < 1
117
131
  true
118
132
  end
119
133
 
@@ -131,6 +145,16 @@ module PulpFileClient
131
145
  @relative_path = relative_path
132
146
  end
133
147
 
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] url Value to be assigned
150
+ def url=(url)
151
+ if !url.nil? && url.to_s.length < 1
152
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
153
+ end
154
+
155
+ @url = url
156
+ end
157
+
134
158
  # Checks equality by comparing each attribute.
135
159
  # @param [Object] Object to be compared
136
160
  def ==(o)
@@ -140,7 +164,8 @@ module PulpFileClient
140
164
  artifact == o.artifact &&
141
165
  relative_path == o.relative_path &&
142
166
  file == o.file &&
143
- upload == o.upload
167
+ upload == o.upload &&
168
+ url == o.url
144
169
  end
145
170
 
146
171
  # @see the `==` method
@@ -152,7 +177,7 @@ module PulpFileClient
152
177
  # Calculates hash code according to all attributes.
153
178
  # @return [Integer] Hash code
154
179
  def hash
155
- [repository, artifact, relative_path, file, upload].hash
180
+ [repository, artifact, relative_path, file, upload, url].hash
156
181
  end
157
182
 
158
183
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '3.55.3'
14
+ VERSION = '3.56.0'
15
15
  end
@@ -41,6 +41,7 @@ describe 'ContentFilesApi' do
41
41
  # @option opts [String] :artifact Artifact file representing the physical content
42
42
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
+ # @option opts [String] :url A url that Pulp can download and turn into the content unit.
44
45
  # @return [AsyncOperationResponse]
45
46
  describe 'create test' do
46
47
  it 'should work' do
@@ -62,4 +62,10 @@ describe 'FileFileContent' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "url"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  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.55.3
4
+ version: 3.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -254,53 +254,53 @@ signing_key:
254
254
  specification_version: 4
255
255
  summary: Pulp 3 API Ruby Gem
256
256
  test_files:
257
- - spec/api/publications_file_api_spec.rb
258
- - spec/api/repositories_file_api_spec.rb
259
257
  - spec/api/remotes_file_api_spec.rb
260
- - spec/api/acs_file_api_spec.rb
261
- - spec/api/repositories_file_versions_api_spec.rb
262
258
  - spec/api/content_files_api_spec.rb
259
+ - spec/api/acs_file_api_spec.rb
260
+ - spec/api/repositories_file_api_spec.rb
263
261
  - spec/api/distributions_file_api_spec.rb
262
+ - spec/api/publications_file_api_spec.rb
263
+ - spec/api/repositories_file_versions_api_spec.rb
264
264
  - spec/api_client_spec.rb
265
265
  - spec/configuration_spec.rb
266
- - spec/models/file_file_publication_spec.rb
267
- - spec/models/file_file_remote_spec.rb
268
- - spec/models/set_label_spec.rb
269
- - spec/models/paginated_repository_version_response_list_spec.rb
270
266
  - spec/models/file_file_distribution_response_spec.rb
271
- - spec/models/file_file_repository_response_spec.rb
267
+ - spec/models/paginatedfile_file_remote_response_list_spec.rb
268
+ - spec/models/patchedfile_file_remote_spec.rb
269
+ - spec/models/repository_sync_url_spec.rb
270
+ - spec/models/file_file_distribution_spec.rb
272
271
  - spec/models/paginatedfile_file_publication_response_list_spec.rb
273
- - spec/models/my_permissions_response_spec.rb
272
+ - spec/models/repository_version_response_spec.rb
273
+ - spec/models/unset_label_response_spec.rb
274
+ - spec/models/set_label_response_spec.rb
275
+ - spec/models/unset_label_spec.rb
274
276
  - spec/models/paginatedfile_file_distribution_response_list_spec.rb
277
+ - spec/models/file_file_remote_spec.rb
278
+ - spec/models/task_group_operation_response_spec.rb
275
279
  - spec/models/object_roles_response_spec.rb
276
- - spec/models/repository_version_response_spec.rb
277
- - spec/models/paginatedfile_file_remote_response_list_spec.rb
278
- - spec/models/content_summary_response_spec.rb
279
- - spec/models/file_file_distribution_spec.rb
280
- - spec/models/nested_role_response_spec.rb
281
- - spec/models/repository_add_remove_content_spec.rb
282
- - spec/models/paginatedfile_file_repository_response_list_spec.rb
280
+ - spec/models/async_operation_response_spec.rb
281
+ - spec/models/file_file_alternate_content_source_response_spec.rb
282
+ - spec/models/patchedfile_file_repository_spec.rb
283
283
  - spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
284
+ - spec/models/paginated_repository_version_response_list_spec.rb
285
+ - spec/models/nested_role_response_spec.rb
286
+ - spec/models/my_permissions_response_spec.rb
287
+ - spec/models/file_file_repository_response_spec.rb
284
288
  - spec/models/file_file_alternate_content_source_spec.rb
285
- - spec/models/task_group_operation_response_spec.rb
286
- - spec/models/nested_role_spec.rb
289
+ - spec/models/patchedfile_file_alternate_content_source_spec.rb
287
290
  - spec/models/paginatedfile_file_content_response_list_spec.rb
288
- - spec/models/unset_label_response_spec.rb
289
- - spec/models/file_file_alternate_content_source_response_spec.rb
290
- - spec/models/patchedfile_file_distribution_spec.rb
291
- - spec/models/repository_sync_url_spec.rb
292
291
  - spec/models/file_file_remote_response_hidden_fields_spec.rb
293
- - spec/models/async_operation_response_spec.rb
292
+ - spec/models/policy_enum_spec.rb
293
+ - spec/models/set_label_spec.rb
294
+ - spec/models/patchedfile_file_distribution_spec.rb
295
+ - spec/models/repository_add_remove_content_spec.rb
294
296
  - spec/models/file_file_remote_response_spec.rb
295
- - spec/models/repair_spec.rb
296
297
  - spec/models/file_file_content_spec.rb
297
- - spec/models/set_label_response_spec.rb
298
- - spec/models/patchedfile_file_repository_spec.rb
299
- - spec/models/policy_enum_spec.rb
300
- - spec/models/unset_label_spec.rb
301
- - spec/models/file_file_publication_response_spec.rb
302
- - spec/models/patchedfile_file_remote_spec.rb
298
+ - spec/models/content_summary_response_spec.rb
299
+ - spec/models/paginatedfile_file_repository_response_list_spec.rb
300
+ - spec/models/nested_role_spec.rb
303
301
  - spec/models/file_file_content_response_spec.rb
304
- - spec/models/patchedfile_file_alternate_content_source_spec.rb
302
+ - spec/models/repair_spec.rb
303
+ - spec/models/file_file_publication_spec.rb
304
+ - spec/models/file_file_publication_response_spec.rb
305
305
  - spec/models/file_file_repository_spec.rb
306
306
  - spec/spec_helper.rb