pulp_file_client 3.56.0 → 3.56.1

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: f256072bd353d1e9c7909e085acbff42a65421543c6bce1cdf9bdc0d63bef731
4
- data.tar.gz: 880fcbae590a2d97700329cfaea82ca5ff41f73891dc7ddc8359ac17869e0c9c
3
+ metadata.gz: fd745538c1b7d51c819327ded2276eae3370da75de8f7a489ba6c30e4458aea4
4
+ data.tar.gz: be2e8b847ad784a05781a632aa6ea35917f849c347bb06f58142d0bd3677b776
5
5
  SHA512:
6
- metadata.gz: f5fb724d69bd64678272bef88ec3c16dedb0543a8aed5537b162fd921a0f06c711954b9f8797ba57584f147d41bf9aa90977cd4127bdd169ec7a345be6e61d80
7
- data.tar.gz: 02dd616a8a7898b4b0dcfc704befe99c6be521bd4bc2fe777bb01e67087aa3464e6a34ee60cd422fd4baba93d99a95606ef4a936983fbeff5294c200449d4f59
6
+ metadata.gz: 95c0d8fe6b1fc86fea1e7dfa5e48d0d1e1c2a743d657a7e3c79b2c5b8aebe888f91d77a1c8d31fa0c21263f7ad3cde0c94e5cca6d388ecf115ead20766b377ef
7
+ data.tar.gz: 2f7f7180ec302493edaf1a8f1121f40edb8d0acbd928cf39ee27654c59dd78422ecc6d69f825411d201970e606d95c6eb289613fbc5418f6a21d21ac2166d93d
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.56.0
10
+ - Package version: 3.56.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_file_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_file_client-3.56.0.gem
27
+ gem install ./pulp_file_client-3.56.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_file_client-3.56.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_file_client-3.56.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_file_client', '~> 3.56.0'
36
+ gem 'pulp_file_client', '~> 3.56.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -37,7 +37,7 @@ opts = {
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
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
+ file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
41
41
  }
42
42
 
43
43
  begin
@@ -59,7 +59,7 @@ Name | Type | Description | Notes
59
59
  **artifact** | **String**| Artifact file representing the physical content | [optional]
60
60
  **file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
61
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]
62
+ **file_url** | **String**| A url that Pulp can download and turn into the content unit. | [optional]
63
63
 
64
64
  ### Return type
65
65
 
@@ -9,7 +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
+ **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional]
13
13
 
14
14
  ## Code Sample
15
15
 
@@ -21,7 +21,7 @@ instance = PulpFileClient::FileFileContent.new(repository: null,
21
21
  relative_path: null,
22
22
  file: null,
23
23
  upload: null,
24
- url: null)
24
+ file_url: null)
25
25
  ```
26
26
 
27
27
 
@@ -27,7 +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
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
31
31
  # @return [AsyncOperationResponse]
32
32
  def create(relative_path, opts = {})
33
33
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -42,7 +42,7 @@ module PulpFileClient
42
42
  # @option opts [String] :artifact Artifact file representing the physical content
43
43
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
44
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.
45
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
46
46
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
47
47
  def create_with_http_info(relative_path, opts = {})
48
48
  if @api_client.config.debugging
@@ -56,8 +56,8 @@ module PulpFileClient
56
56
  fail ArgumentError, 'invalid value for "relative_path" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
57
57
  end
58
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.'
59
+ if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
60
+ fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
61
61
  end
62
62
 
63
63
  # resource path
@@ -80,7 +80,7 @@ module PulpFileClient
80
80
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
81
81
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
82
82
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
83
- form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
83
+ form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
84
84
 
85
85
  # http body (model)
86
86
  post_body = opts[:body]
@@ -31,7 +31,7 @@ module PulpFileClient
31
31
  attr_accessor :upload
32
32
 
33
33
  # A url that Pulp can download and turn into the content unit.
34
- attr_accessor :url
34
+ attr_accessor :file_url
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
@@ -41,7 +41,7 @@ module PulpFileClient
41
41
  :'relative_path' => :'relative_path',
42
42
  :'file' => :'file',
43
43
  :'upload' => :'upload',
44
- :'url' => :'url'
44
+ :'file_url' => :'file_url'
45
45
  }
46
46
  end
47
47
 
@@ -53,7 +53,7 @@ module PulpFileClient
53
53
  :'relative_path' => :'String',
54
54
  :'file' => :'File',
55
55
  :'upload' => :'String',
56
- :'url' => :'String'
56
+ :'file_url' => :'String'
57
57
  }
58
58
  end
59
59
 
@@ -98,8 +98,8 @@ module PulpFileClient
98
98
  self.upload = attributes[:'upload']
99
99
  end
100
100
 
101
- if attributes.key?(:'url')
102
- self.url = attributes[:'url']
101
+ if attributes.key?(:'file_url')
102
+ self.file_url = attributes[:'file_url']
103
103
  end
104
104
  end
105
105
 
@@ -115,8 +115,8 @@ module PulpFileClient
115
115
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
116
116
  end
117
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.')
118
+ if !@file_url.nil? && @file_url.to_s.length < 1
119
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
120
120
  end
121
121
 
122
122
  invalid_properties
@@ -127,7 +127,7 @@ module PulpFileClient
127
127
  def valid?
128
128
  return false if @relative_path.nil?
129
129
  return false if @relative_path.to_s.length < 1
130
- return false if !@url.nil? && @url.to_s.length < 1
130
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
@@ -146,13 +146,13 @@ module PulpFileClient
146
146
  end
147
147
 
148
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.'
149
+ # @param [Object] file_url Value to be assigned
150
+ def file_url=(file_url)
151
+ if !file_url.nil? && file_url.to_s.length < 1
152
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
153
153
  end
154
154
 
155
- @url = url
155
+ @file_url = file_url
156
156
  end
157
157
 
158
158
  # Checks equality by comparing each attribute.
@@ -165,7 +165,7 @@ module PulpFileClient
165
165
  relative_path == o.relative_path &&
166
166
  file == o.file &&
167
167
  upload == o.upload &&
168
- url == o.url
168
+ file_url == o.file_url
169
169
  end
170
170
 
171
171
  # @see the `==` method
@@ -177,7 +177,7 @@ module PulpFileClient
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [repository, artifact, relative_path, file, upload, url].hash
180
+ [repository, artifact, relative_path, file, upload, file_url].hash
181
181
  end
182
182
 
183
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.56.0'
14
+ VERSION = '3.56.1'
15
15
  end
@@ -41,7 +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
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
45
45
  # @return [AsyncOperationResponse]
46
46
  describe 'create test' do
47
47
  it 'should work' do
@@ -62,7 +62,7 @@ describe 'FileFileContent' do
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "url"' do
65
+ describe 'test attribute "file_url"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_file_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.56.0
4
+ version: 3.56.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: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday