pulp_file_client 0.1.0b2 → 0.1.0b3

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: b378d8a3555bf0b8064b31f7a5c4104da0b1f8802cc86ce077734b8db5240eef
4
- data.tar.gz: 52d5f9427f44ec87d8d4ddd9f0b6d0772f5638dce330ac63c8aa96eb5ac0c290
3
+ metadata.gz: a50e7f718040ddd27ad3420b3ab45cda74d0bd1e5094162a7814d0752993a85b
4
+ data.tar.gz: 37035f0dce577819ed728b1f9484704e199ce7017f5df39d8c2f44cc7f120db6
5
5
  SHA512:
6
- metadata.gz: 8b66e8be5befe47b7792446c26d2738d1a6c1aea434f1c70f5a06cb42ca04987043e2b2a701d3fac0c05761be341ee946aacd80ddb373cc83f9513916b5db618
7
- data.tar.gz: b299941e89a09c67ce55dd47dc354ecbf1f16f34b6cbb3d37ef09010285d57ddc381c742b382e9ae6ed124425f7cc70675ffbd2da62384a71d06216464cc1061
6
+ metadata.gz: 3d38d041e95559baf9ba7e8e6a864053cf2fb3a9ad2055f397378568a39e122b2a27152b9f1c1f5068b3984516d4906ff7cd6e6bae2b779cbb1dffee39a783cc
7
+ data.tar.gz: bed875f9829b186b2f576cce47c485751c3fa2e9ca9155a1b99e60bc6317ba17eebbb1e0a9cddbd50716e8c2ffb1af972e4f203392f947e4f16018b2f15859ab
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
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: 0.1.0b2
10
+ - Package version: 0.1.0b3
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build pulp_file_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./pulp_file_client-0.1.0b2.gem
26
+ gem install ./pulp_file_client-0.1.0b3.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulp_file_client-0.1.0b2.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulp_file_client-0.1.0b3.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'pulp_file_client', '~> 0.1.0b2'
35
+ gem 'pulp_file_client', '~> 0.1.0b3'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -64,11 +64,16 @@ PulpFileClient.configure do |config|
64
64
  end
65
65
 
66
66
  api_instance = PulpFileClient::ContentFilesApi.new
67
- data = PulpFileClient::FileContent.new # FileContent |
67
+ relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
68
+ opts = {
69
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
70
+ file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
71
+ repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
72
+ }
68
73
 
69
74
  begin
70
75
  #Create a file content
71
- result = api_instance.create(data)
76
+ result = api_instance.create(relative_path, opts)
72
77
  p result
73
78
  rescue PulpFileClient::ApiError => e
74
79
  puts "Exception when calling ContentFilesApi->create: #{e}"
@@ -12,11 +12,11 @@ Method | HTTP request | Description
12
12
 
13
13
  ## create
14
14
 
15
- > FileContent create(data)
15
+ > AsyncOperationResponse create(relative_path, opts)
16
16
 
17
17
  Create a file content
18
18
 
19
- <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
19
+ Trigger an asynchronous task to create content,optionally create new repository version.
20
20
 
21
21
  ### Example
22
22
 
@@ -31,11 +31,16 @@ PulpFileClient.configure do |config|
31
31
  end
32
32
 
33
33
  api_instance = PulpFileClient::ContentFilesApi.new
34
- data = PulpFileClient::FileContent.new # FileContent |
34
+ relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
35
+ opts = {
36
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
37
+ file: File.new('/path/to/file'), # File | An uploaded file that should 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
+ }
35
40
 
36
41
  begin
37
42
  #Create a file content
38
- result = api_instance.create(data)
43
+ result = api_instance.create(relative_path, opts)
39
44
  p result
40
45
  rescue PulpFileClient::ApiError => e
41
46
  puts "Exception when calling ContentFilesApi->create: #{e}"
@@ -47,11 +52,14 @@ end
47
52
 
48
53
  Name | Type | Description | Notes
49
54
  ------------- | ------------- | ------------- | -------------
50
- **data** | [**FileContent**](FileContent.md)| |
55
+ **relative_path** | **String**| Path where the artifact is located relative to distributions base_path |
56
+ **artifact** | **String**| Artifact file representing the physical content | [optional]
57
+ **file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
58
+ **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
51
59
 
52
60
  ### Return type
53
61
 
54
- [**FileContent**](FileContent.md)
62
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
55
63
 
56
64
  ### Authorization
57
65
 
@@ -59,7 +67,7 @@ Name | Type | Description | Notes
59
67
 
60
68
  ### HTTP request headers
61
69
 
62
- - **Content-Type**: application/json
70
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
63
71
  - **Accept**: application/json
64
72
 
65
73
 
@@ -69,7 +77,7 @@ Name | Type | Description | Notes
69
77
 
70
78
  List file contents
71
79
 
72
- <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
80
+ FileContent represents a single file and its metadata, which can be added and removed from repositories.
73
81
 
74
82
  ### Example
75
83
 
@@ -138,7 +146,7 @@ Name | Type | Description | Notes
138
146
 
139
147
  Inspect a file content
140
148
 
141
- <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
149
+ FileContent represents a single file and its metadata, which can be added and removed from repositories.
142
150
 
143
151
  ### Example
144
152
 
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
125
125
 
126
126
  List file distributions
127
127
 
128
- <!-- User-facing documentation, rendered as html--> FileDistributions host <a href=\"#operation/publications_file_file_list\">File Publications</a> which makes the metadata and the referenced <a href=\"#operation/content_file_files_list\">File Content</a> available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a <a href=\"#operation/remotes_file_file_list\">File Remote</a> , allowing another instance of Pulp to sync the content.
128
+ FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
129
129
 
130
130
  ### Example
131
131
 
@@ -251,7 +251,7 @@ Name | Type | Description | Notes
251
251
 
252
252
  Inspect a file distribution
253
253
 
254
- <!-- User-facing documentation, rendered as html--> FileDistributions host <a href=\"#operation/publications_file_file_list\">File Publications</a> which makes the metadata and the referenced <a href=\"#operation/content_file_files_list\">File Content</a> available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a <a href=\"#operation/remotes_file_file_list\">File Remote</a> , allowing another instance of Pulp to sync the content.
254
+ FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
255
255
 
256
256
  ### Example
257
257
 
data/docs/FileContent.md CHANGED
@@ -4,34 +4,38 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
7
8
  **_created** | **DateTime** | Timestamp of creation. | [optional]
8
9
  **_type** | **String** | | [optional]
9
- **_artifact** | **String** | Artifact file representing the physical content |
10
- **_href** | **String** | | [optional]
10
+ **artifact** | **String** | Artifact file representing the physical content | [optional]
11
+ **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
12
+ **file** | **String** | An uploaded file that should be turned into the artifact of the content unit. | [optional]
13
+ **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
11
14
  **md5** | **String** | The MD5 checksum if available. | [optional]
12
15
  **sha1** | **String** | The SHA-1 checksum if available. | [optional]
13
16
  **sha224** | **String** | The SHA-224 checksum if available. | [optional]
14
17
  **sha256** | **String** | The SHA-256 checksum if available. | [optional]
15
18
  **sha384** | **String** | The SHA-384 checksum if available. | [optional]
16
19
  **sha512** | **String** | The SHA-512 checksum if available. | [optional]
17
- **relative_path** | **String** | Relative location of the file within the repository. Example: &#x60;path/to/file.txt&#x60; |
18
20
 
19
21
  ## Code Sample
20
22
 
21
23
  ```ruby
22
24
  require 'PulpFileClient'
23
25
 
24
- instance = PulpFileClient::FileContent.new(_created: null,
26
+ instance = PulpFileClient::FileContent.new(_href: null,
27
+ _created: null,
25
28
  _type: null,
26
- _artifact: null,
27
- _href: null,
29
+ artifact: null,
30
+ relative_path: null,
31
+ file: null,
32
+ repository: null,
28
33
  md5: null,
29
34
  sha1: null,
30
35
  sha224: null,
31
36
  sha256: null,
32
37
  sha384: null,
33
- sha512: null,
34
- relative_path: null)
38
+ sha512: null)
35
39
  ```
36
40
 
37
41
 
@@ -70,7 +70,7 @@ Name | Type | Description | Notes
70
70
 
71
71
  Delete a file publication
72
72
 
73
- <!-- User-facing documentation, rendered as html--> A FilePublication contains metadata about all the <a href=\"#operation/content_file_files_list\">File Content</a> in a particular <a href=\"https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\">Repository Version.</a> Once a FilePublication has been created, it can be hosted using the <a href=\"#operation/distributions_file_file_list\">File Distribution API.</a>
73
+ A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
74
74
 
75
75
  ### Example
76
76
 
@@ -122,7 +122,7 @@ nil (empty response body)
122
122
 
123
123
  List file publications
124
124
 
125
- <!-- User-facing documentation, rendered as html--> A FilePublication contains metadata about all the <a href=\"#operation/content_file_files_list\">File Content</a> in a particular <a href=\"https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\">Repository Version.</a> Once a FilePublication has been created, it can be hosted using the <a href=\"#operation/distributions_file_file_list\">File Distribution API.</a>
125
+ A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
126
126
 
127
127
  ### Example
128
128
 
@@ -183,7 +183,7 @@ Name | Type | Description | Notes
183
183
 
184
184
  Inspect a file publication
185
185
 
186
- <!-- User-facing documentation, rendered as html--> A FilePublication contains metadata about all the <a href=\"#operation/content_file_files_list\">File Content</a> in a particular <a href=\"https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\">Repository Version.</a> Once a FilePublication has been created, it can be hosted using the <a href=\"#operation/distributions_file_file_list\">File Distribution API.</a>
186
+ A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
187
187
 
188
188
  ### Example
189
189
 
@@ -20,7 +20,7 @@ Method | HTTP request | Description
20
20
 
21
21
  Create a file remote
22
22
 
23
- <!-- User-facing documentation, rendered as html--> FileRemote represents an external source of <a href=\"#operation/content_file_files_list\">File Content</a>. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
23
+ FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
24
24
 
25
25
  ### Example
26
26
 
@@ -126,7 +126,7 @@ Name | Type | Description | Notes
126
126
 
127
127
  List file remotes
128
128
 
129
- <!-- User-facing documentation, rendered as html--> FileRemote represents an external source of <a href=\"#operation/content_file_files_list\">File Content</a>. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
129
+ FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
130
130
 
131
131
  ### Example
132
132
 
@@ -256,7 +256,7 @@ Name | Type | Description | Notes
256
256
 
257
257
  Inspect a file remote
258
258
 
259
- <!-- User-facing documentation, rendered as html--> FileRemote represents an external source of <a href=\"#operation/content_file_files_list\">File Content</a>. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
259
+ FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
260
260
 
261
261
  ### Example
262
262
 
@@ -20,28 +20,38 @@ module PulpFileClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a file content
23
- # <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
24
- # @param data [FileContent]
23
+ # Trigger an asynchronous task to create content,optionally create new repository version.
24
+ # @param relative_path [String] Path where the artifact is located relative to distributions base_path
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [FileContent]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @option opts [String] :artifact Artifact file representing the physical content
27
+ # @option opts [File] :file An uploaded file that should 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
+ # @return [AsyncOperationResponse]
30
+ def create(relative_path, opts = {})
31
+ data, _status_code, _headers = create_with_http_info(relative_path, opts)
29
32
  data
30
33
  end
31
34
 
32
35
  # Create a file content
33
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileContent represents a single file and its metadata, which can be added and removed from repositories.
34
- # @param data [FileContent]
36
+ # Trigger an asynchronous task to create content,optionally create new repository version.
37
+ # @param relative_path [String] Path where the artifact is located relative to distributions base_path
35
38
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(FileContent, Integer, Hash)>] FileContent data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
39
+ # @option opts [String] :artifact Artifact file representing the physical content
40
+ # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
41
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
43
+ def create_with_http_info(relative_path, opts = {})
38
44
  if @api_client.config.debugging
39
45
  @api_client.config.logger.debug 'Calling API: ContentFilesApi.create ...'
40
46
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentFilesApi.create"
47
+ # verify the required parameter 'relative_path' is set
48
+ if @api_client.config.client_side_validation && relative_path.nil?
49
+ fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentFilesApi.create"
50
+ end
51
+ if @api_client.config.client_side_validation && relative_path.to_s.length < 1
52
+ fail ArgumentError, 'invalid value for "relative_path" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
44
53
  end
54
+
45
55
  # resource path
46
56
  local_var_path = '/pulp/api/v3/content/file/files/'
47
57
 
@@ -53,16 +63,20 @@ module PulpFileClient
53
63
  # HTTP header 'Accept' (if needed)
54
64
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
65
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
57
67
 
58
68
  # form parameters
59
69
  form_params = opts[:form_params] || {}
70
+ form_params['relative_path'] = relative_path
71
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
72
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
73
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
60
74
 
61
75
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
76
+ post_body = opts[:body]
63
77
 
64
78
  # return_type
65
- return_type = opts[:return_type] || 'FileContent'
79
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
66
80
 
67
81
  # auth_names
68
82
  auth_names = opts[:auth_names] || ['Basic']
@@ -84,7 +98,7 @@ module PulpFileClient
84
98
  end
85
99
 
86
100
  # List file contents
87
- # <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
101
+ # FileContent represents a single file and its metadata, which can be added and removed from repositories.
88
102
  # @param [Hash] opts the optional parameters
89
103
  # @option opts [String] :relative_path Filter results where relative_path matches value
90
104
  # @option opts [String] :digest Filter results where digest matches value
@@ -101,7 +115,7 @@ module PulpFileClient
101
115
  end
102
116
 
103
117
  # List file contents
104
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileContent represents a single file and its metadata, which can be added and removed from repositories.
118
+ # FileContent represents a single file and its metadata, which can be added and removed from repositories.
105
119
  # @param [Hash] opts the optional parameters
106
120
  # @option opts [String] :relative_path Filter results where relative_path matches value
107
121
  # @option opts [String] :digest Filter results where digest matches value
@@ -164,7 +178,7 @@ module PulpFileClient
164
178
  end
165
179
 
166
180
  # Inspect a file content
167
- # <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
181
+ # FileContent represents a single file and its metadata, which can be added and removed from repositories.
168
182
  # @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
169
183
  # @param [Hash] opts the optional parameters
170
184
  # @option opts [String] :fields A list of fields to include in the response.
@@ -175,7 +189,7 @@ module PulpFileClient
175
189
  end
176
190
 
177
191
  # Inspect a file content
178
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileContent represents a single file and its metadata, which can be added and removed from repositories.
192
+ # FileContent represents a single file and its metadata, which can be added and removed from repositories.
179
193
  # @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
180
194
  # @param [Hash] opts the optional parameters
181
195
  # @option opts [String] :fields A list of fields to include in the response.
@@ -146,7 +146,7 @@ module PulpFileClient
146
146
  end
147
147
 
148
148
  # List file distributions
149
- # <!-- User-facing documentation, rendered as html--> FileDistributions host <a href=\"#operation/publications_file_file_list\">File Publications</a> which makes the metadata and the referenced <a href=\"#operation/content_file_files_list\">File Content</a> available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a <a href=\"#operation/remotes_file_file_list\">File Remote</a> , allowing another instance of Pulp to sync the content.
149
+ # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [String] :name
152
152
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
@@ -164,7 +164,7 @@ module PulpFileClient
164
164
  end
165
165
 
166
166
  # List file distributions
167
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileDistributions host &lt;a href&#x3D;\&quot;#operation/publications_file_file_list\&quot;&gt;File Publications&lt;/a&gt; which makes the metadata and the referenced &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a &lt;a href&#x3D;\&quot;#operation/remotes_file_file_list\&quot;&gt;File Remote&lt;/a&gt; , allowing another instance of Pulp to sync the content.
167
+ # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
168
168
  # @param [Hash] opts the optional parameters
169
169
  # @option opts [String] :name
170
170
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
@@ -299,7 +299,7 @@ module PulpFileClient
299
299
  end
300
300
 
301
301
  # Inspect a file distribution
302
- # <!-- User-facing documentation, rendered as html--> FileDistributions host <a href=\"#operation/publications_file_file_list\">File Publications</a> which makes the metadata and the referenced <a href=\"#operation/content_file_files_list\">File Content</a> available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a <a href=\"#operation/remotes_file_file_list\">File Remote</a> , allowing another instance of Pulp to sync the content.
302
+ # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
303
303
  # @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
304
304
  # @param [Hash] opts the optional parameters
305
305
  # @option opts [String] :fields A list of fields to include in the response.
@@ -310,7 +310,7 @@ module PulpFileClient
310
310
  end
311
311
 
312
312
  # Inspect a file distribution
313
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileDistributions host &lt;a href&#x3D;\&quot;#operation/publications_file_file_list\&quot;&gt;File Publications&lt;/a&gt; which makes the metadata and the referenced &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a &lt;a href&#x3D;\&quot;#operation/remotes_file_file_list\&quot;&gt;File Remote&lt;/a&gt; , allowing another instance of Pulp to sync the content.
313
+ # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
314
314
  # @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
315
315
  # @param [Hash] opts the optional parameters
316
316
  # @option opts [String] :fields A list of fields to include in the response.
@@ -84,7 +84,7 @@ module PulpFileClient
84
84
  end
85
85
 
86
86
  # Delete a file publication
87
- # <!-- User-facing documentation, rendered as html--> A FilePublication contains metadata about all the <a href=\"#operation/content_file_files_list\">File Content</a> in a particular <a href=\"https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\">Repository Version.</a> Once a FilePublication has been created, it can be hosted using the <a href=\"#operation/distributions_file_file_list\">File Distribution API.</a>
87
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
88
88
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
@@ -94,7 +94,7 @@ module PulpFileClient
94
94
  end
95
95
 
96
96
  # Delete a file publication
97
- # &lt;!-- User-facing documentation, rendered as html--&gt; A FilePublication contains metadata about all the &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; in a particular &lt;a href&#x3D;\&quot;https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\&quot;&gt;Repository Version.&lt;/a&gt; Once a FilePublication has been created, it can be hosted using the &lt;a href&#x3D;\&quot;#operation/distributions_file_file_list\&quot;&gt;File Distribution API.&lt;/a&gt;
97
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
98
98
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -144,7 +144,7 @@ module PulpFileClient
144
144
  end
145
145
 
146
146
  # List file publications
147
- # <!-- User-facing documentation, rendered as html--> A FilePublication contains metadata about all the <a href=\"#operation/content_file_files_list\">File Content</a> in a particular <a href=\"https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\">Repository Version.</a> Once a FilePublication has been created, it can be hosted using the <a href=\"#operation/distributions_file_file_list\">File Distribution API.</a>
147
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @option opts [String] :ordering Which field to use when ordering the results.
150
150
  # @option opts [Integer] :limit Number of results to return per page.
@@ -157,7 +157,7 @@ module PulpFileClient
157
157
  end
158
158
 
159
159
  # List file publications
160
- # &lt;!-- User-facing documentation, rendered as html--&gt; A FilePublication contains metadata about all the &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; in a particular &lt;a href&#x3D;\&quot;https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\&quot;&gt;Repository Version.&lt;/a&gt; Once a FilePublication has been created, it can be hosted using the &lt;a href&#x3D;\&quot;#operation/distributions_file_file_list\&quot;&gt;File Distribution API.&lt;/a&gt;
160
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
161
161
  # @param [Hash] opts the optional parameters
162
162
  # @option opts [String] :ordering Which field to use when ordering the results.
163
163
  # @option opts [Integer] :limit Number of results to return per page.
@@ -212,7 +212,7 @@ module PulpFileClient
212
212
  end
213
213
 
214
214
  # Inspect a file publication
215
- # <!-- User-facing documentation, rendered as html--> A FilePublication contains metadata about all the <a href=\"#operation/content_file_files_list\">File Content</a> in a particular <a href=\"https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\">Repository Version.</a> Once a FilePublication has been created, it can be hosted using the <a href=\"#operation/distributions_file_file_list\">File Distribution API.</a>
215
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
216
216
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
217
217
  # @param [Hash] opts the optional parameters
218
218
  # @option opts [String] :fields A list of fields to include in the response.
@@ -223,7 +223,7 @@ module PulpFileClient
223
223
  end
224
224
 
225
225
  # Inspect a file publication
226
- # &lt;!-- User-facing documentation, rendered as html--&gt; A FilePublication contains metadata about all the &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; in a particular &lt;a href&#x3D;\&quot;https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\&quot;&gt;Repository Version.&lt;/a&gt; Once a FilePublication has been created, it can be hosted using the &lt;a href&#x3D;\&quot;#operation/distributions_file_file_list\&quot;&gt;File Distribution API.&lt;/a&gt;
226
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
227
227
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
228
228
  # @param [Hash] opts the optional parameters
229
229
  # @option opts [String] :fields A list of fields to include in the response.
@@ -20,7 +20,7 @@ module PulpFileClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a file remote
23
- # <!-- User-facing documentation, rendered as html--> FileRemote represents an external source of <a href=\"#operation/content_file_files_list\">File Content</a>. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
23
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
24
24
  # @param data [FileRemote]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [FileRemote]
@@ -30,7 +30,7 @@ module PulpFileClient
30
30
  end
31
31
 
32
32
  # Create a file remote
33
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileRemote represents an external source of &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt;. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
33
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
34
34
  # @param data [FileRemote]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(FileRemote, Integer, Hash)>] FileRemote data, response status code and response headers
@@ -146,7 +146,7 @@ module PulpFileClient
146
146
  end
147
147
 
148
148
  # List file remotes
149
- # <!-- User-facing documentation, rendered as html--> FileRemote represents an external source of <a href=\"#operation/content_file_files_list\">File Content</a>. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
149
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [String] :name
152
152
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
@@ -166,7 +166,7 @@ module PulpFileClient
166
166
  end
167
167
 
168
168
  # List file remotes
169
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileRemote represents an external source of &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt;. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
169
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @option opts [String] :name
172
172
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
@@ -305,7 +305,7 @@ module PulpFileClient
305
305
  end
306
306
 
307
307
  # Inspect a file remote
308
- # <!-- User-facing documentation, rendered as html--> FileRemote represents an external source of <a href=\"#operation/content_file_files_list\">File Content</a>. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
308
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
309
309
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
310
310
  # @param [Hash] opts the optional parameters
311
311
  # @option opts [String] :fields A list of fields to include in the response.
@@ -316,7 +316,7 @@ module PulpFileClient
316
316
  end
317
317
 
318
318
  # Inspect a file remote
319
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileRemote represents an external source of &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt;. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
319
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
320
320
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
321
321
  # @param [Hash] opts the optional parameters
322
322
  # @option opts [String] :fields A list of fields to include in the response.
@@ -14,15 +14,24 @@ require 'date'
14
14
 
15
15
  module PulpFileClient
16
16
  class FileContent
17
+ attr_accessor :_href
18
+
17
19
  # Timestamp of creation.
18
20
  attr_accessor :_created
19
21
 
20
22
  attr_accessor :_type
21
23
 
22
24
  # Artifact file representing the physical content
23
- attr_accessor :_artifact
25
+ attr_accessor :artifact
24
26
 
25
- attr_accessor :_href
27
+ # Path where the artifact is located relative to distributions base_path
28
+ attr_accessor :relative_path
29
+
30
+ # An uploaded file that should be turned into the artifact of the content unit.
31
+ attr_accessor :file
32
+
33
+ # A URI of a repository the new content unit should be associated with.
34
+ attr_accessor :repository
26
35
 
27
36
  # The MD5 checksum if available.
28
37
  attr_accessor :md5
@@ -42,40 +51,41 @@ module PulpFileClient
42
51
  # The SHA-512 checksum if available.
43
52
  attr_accessor :sha512
44
53
 
45
- # Relative location of the file within the repository. Example: `path/to/file.txt`
46
- attr_accessor :relative_path
47
-
48
54
  # Attribute mapping from ruby-style variable name to JSON key.
49
55
  def self.attribute_map
50
56
  {
57
+ :'_href' => :'_href',
51
58
  :'_created' => :'_created',
52
59
  :'_type' => :'_type',
53
- :'_artifact' => :'_artifact',
54
- :'_href' => :'_href',
60
+ :'artifact' => :'artifact',
61
+ :'relative_path' => :'relative_path',
62
+ :'file' => :'file',
63
+ :'repository' => :'repository',
55
64
  :'md5' => :'md5',
56
65
  :'sha1' => :'sha1',
57
66
  :'sha224' => :'sha224',
58
67
  :'sha256' => :'sha256',
59
68
  :'sha384' => :'sha384',
60
- :'sha512' => :'sha512',
61
- :'relative_path' => :'relative_path'
69
+ :'sha512' => :'sha512'
62
70
  }
63
71
  end
64
72
 
65
73
  # Attribute type mapping.
66
74
  def self.openapi_types
67
75
  {
76
+ :'_href' => :'String',
68
77
  :'_created' => :'DateTime',
69
78
  :'_type' => :'String',
70
- :'_artifact' => :'String',
71
- :'_href' => :'String',
79
+ :'artifact' => :'String',
80
+ :'relative_path' => :'String',
81
+ :'file' => :'String',
82
+ :'repository' => :'String',
72
83
  :'md5' => :'String',
73
84
  :'sha1' => :'String',
74
85
  :'sha224' => :'String',
75
86
  :'sha256' => :'String',
76
87
  :'sha384' => :'String',
77
- :'sha512' => :'String',
78
- :'relative_path' => :'String'
88
+ :'sha512' => :'String'
79
89
  }
80
90
  end
81
91
 
@@ -94,6 +104,10 @@ module PulpFileClient
94
104
  h[k.to_sym] = v
95
105
  }
96
106
 
107
+ if attributes.key?(:'_href')
108
+ self._href = attributes[:'_href']
109
+ end
110
+
97
111
  if attributes.key?(:'_created')
98
112
  self._created = attributes[:'_created']
99
113
  end
@@ -102,12 +116,20 @@ module PulpFileClient
102
116
  self._type = attributes[:'_type']
103
117
  end
104
118
 
105
- if attributes.key?(:'_artifact')
106
- self._artifact = attributes[:'_artifact']
119
+ if attributes.key?(:'artifact')
120
+ self.artifact = attributes[:'artifact']
107
121
  end
108
122
 
109
- if attributes.key?(:'_href')
110
- self._href = attributes[:'_href']
123
+ if attributes.key?(:'relative_path')
124
+ self.relative_path = attributes[:'relative_path']
125
+ end
126
+
127
+ if attributes.key?(:'file')
128
+ self.file = attributes[:'file']
129
+ end
130
+
131
+ if attributes.key?(:'repository')
132
+ self.repository = attributes[:'repository']
111
133
  end
112
134
 
113
135
  if attributes.key?(:'md5')
@@ -133,10 +155,6 @@ module PulpFileClient
133
155
  if attributes.key?(:'sha512')
134
156
  self.sha512 = attributes[:'sha512']
135
157
  end
136
-
137
- if attributes.key?(:'relative_path')
138
- self.relative_path = attributes[:'relative_path']
139
- end
140
158
  end
141
159
 
142
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -147,8 +165,12 @@ module PulpFileClient
147
165
  invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
148
166
  end
149
167
 
150
- if @_artifact.nil?
151
- invalid_properties.push('invalid value for "_artifact", _artifact cannot be nil.')
168
+ if @relative_path.nil?
169
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
170
+ end
171
+
172
+ if @relative_path.to_s.length < 1
173
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
152
174
  end
153
175
 
154
176
  if !@md5.nil? && @md5.to_s.length < 1
@@ -175,14 +197,6 @@ module PulpFileClient
175
197
  invalid_properties.push('invalid value for "sha512", the character length must be great than or equal to 1.')
176
198
  end
177
199
 
178
- if @relative_path.nil?
179
- invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
180
- end
181
-
182
- if @relative_path.to_s.length < 1
183
- invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
184
- end
185
-
186
200
  invalid_properties
187
201
  end
188
202
 
@@ -190,15 +204,14 @@ module PulpFileClient
190
204
  # @return true if the model is valid
191
205
  def valid?
192
206
  return false if !@_type.nil? && @_type.to_s.length < 1
193
- return false if @_artifact.nil?
207
+ return false if @relative_path.nil?
208
+ return false if @relative_path.to_s.length < 1
194
209
  return false if !@md5.nil? && @md5.to_s.length < 1
195
210
  return false if !@sha1.nil? && @sha1.to_s.length < 1
196
211
  return false if !@sha224.nil? && @sha224.to_s.length < 1
197
212
  return false if !@sha256.nil? && @sha256.to_s.length < 1
198
213
  return false if !@sha384.nil? && @sha384.to_s.length < 1
199
214
  return false if !@sha512.nil? && @sha512.to_s.length < 1
200
- return false if @relative_path.nil?
201
- return false if @relative_path.to_s.length < 1
202
215
  true
203
216
  end
204
217
 
@@ -212,6 +225,20 @@ module PulpFileClient
212
225
  @_type = _type
213
226
  end
214
227
 
228
+ # Custom attribute writer method with validation
229
+ # @param [Object] relative_path Value to be assigned
230
+ def relative_path=(relative_path)
231
+ if relative_path.nil?
232
+ fail ArgumentError, 'relative_path cannot be nil'
233
+ end
234
+
235
+ if relative_path.to_s.length < 1
236
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
237
+ end
238
+
239
+ @relative_path = relative_path
240
+ end
241
+
215
242
  # Custom attribute writer method with validation
216
243
  # @param [Object] md5 Value to be assigned
217
244
  def md5=(md5)
@@ -272,36 +299,24 @@ module PulpFileClient
272
299
  @sha512 = sha512
273
300
  end
274
301
 
275
- # Custom attribute writer method with validation
276
- # @param [Object] relative_path Value to be assigned
277
- def relative_path=(relative_path)
278
- if relative_path.nil?
279
- fail ArgumentError, 'relative_path cannot be nil'
280
- end
281
-
282
- if relative_path.to_s.length < 1
283
- fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
284
- end
285
-
286
- @relative_path = relative_path
287
- end
288
-
289
302
  # Checks equality by comparing each attribute.
290
303
  # @param [Object] Object to be compared
291
304
  def ==(o)
292
305
  return true if self.equal?(o)
293
306
  self.class == o.class &&
307
+ _href == o._href &&
294
308
  _created == o._created &&
295
309
  _type == o._type &&
296
- _artifact == o._artifact &&
297
- _href == o._href &&
310
+ artifact == o.artifact &&
311
+ relative_path == o.relative_path &&
312
+ file == o.file &&
313
+ repository == o.repository &&
298
314
  md5 == o.md5 &&
299
315
  sha1 == o.sha1 &&
300
316
  sha224 == o.sha224 &&
301
317
  sha256 == o.sha256 &&
302
318
  sha384 == o.sha384 &&
303
- sha512 == o.sha512 &&
304
- relative_path == o.relative_path
319
+ sha512 == o.sha512
305
320
  end
306
321
 
307
322
  # @see the `==` method
@@ -313,7 +328,7 @@ module PulpFileClient
313
328
  # Calculates hash code according to all attributes.
314
329
  # @return [Integer] Hash code
315
330
  def hash
316
- [_created, _type, _artifact, _href, md5, sha1, sha224, sha256, sha384, sha512, relative_path].hash
331
+ [_href, _created, _type, artifact, relative_path, file, repository, md5, sha1, sha224, sha256, sha384, sha512].hash
317
332
  end
318
333
 
319
334
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.1.3-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '0.1.0b2'
14
+ VERSION = '0.1.0b3'
15
15
  end
@@ -34,10 +34,13 @@ describe 'ContentFilesApi' do
34
34
 
35
35
  # unit tests for create
36
36
  # Create a file content
37
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileContent represents a single file and its metadata, which can be added and removed from repositories.
38
- # @param data
37
+ # Trigger an asynchronous task to create content,optionally create new repository version.
38
+ # @param relative_path Path where the artifact is located relative to distributions base_path
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [FileContent]
40
+ # @option opts [String] :artifact Artifact file representing the physical content
41
+ # @option opts [File] :file An uploaded file that should 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
+ # @return [AsyncOperationResponse]
41
44
  describe 'create test' do
42
45
  it 'should work' do
43
46
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -46,7 +49,7 @@ describe 'ContentFilesApi' do
46
49
 
47
50
  # unit tests for list
48
51
  # List file contents
49
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileContent represents a single file and its metadata, which can be added and removed from repositories.
52
+ # FileContent represents a single file and its metadata, which can be added and removed from repositories.
50
53
  # @param [Hash] opts the optional parameters
51
54
  # @option opts [String] :relative_path Filter results where relative_path matches value
52
55
  # @option opts [String] :digest Filter results where digest matches value
@@ -65,7 +68,7 @@ describe 'ContentFilesApi' do
65
68
 
66
69
  # unit tests for read
67
70
  # Inspect a file content
68
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileContent represents a single file and its metadata, which can be added and removed from repositories.
71
+ # FileContent represents a single file and its metadata, which can be added and removed from repositories.
69
72
  # @param file_content_href URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
70
73
  # @param [Hash] opts the optional parameters
71
74
  # @option opts [String] :fields A list of fields to include in the response.
@@ -58,7 +58,7 @@ describe 'DistributionsFileApi' do
58
58
 
59
59
  # unit tests for list
60
60
  # List file distributions
61
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileDistributions host &lt;a href&#x3D;\&quot;#operation/publications_file_file_list\&quot;&gt;File Publications&lt;/a&gt; which makes the metadata and the referenced &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a &lt;a href&#x3D;\&quot;#operation/remotes_file_file_list\&quot;&gt;File Remote&lt;/a&gt; , allowing another instance of Pulp to sync the content.
61
+ # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [String] :name
64
64
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
@@ -91,7 +91,7 @@ describe 'DistributionsFileApi' do
91
91
 
92
92
  # unit tests for read
93
93
  # Inspect a file distribution
94
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileDistributions host &lt;a href&#x3D;\&quot;#operation/publications_file_file_list\&quot;&gt;File Publications&lt;/a&gt; which makes the metadata and the referenced &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a &lt;a href&#x3D;\&quot;#operation/remotes_file_file_list\&quot;&gt;File Remote&lt;/a&gt; , allowing another instance of Pulp to sync the content.
94
+ # FileDistributions host File Publications which makes the metadata and the referenced File Content available to HTTP clients. Additionally, a FileDistribution with an associated FilePublication can be the target url of a File Remote , allowing another instance of Pulp to sync the content.
95
95
  # @param file_distribution_href URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @option opts [String] :fields A list of fields to include in the response.
@@ -46,7 +46,7 @@ describe 'PublicationsFileApi' do
46
46
 
47
47
  # unit tests for delete
48
48
  # Delete a file publication
49
- # &lt;!-- User-facing documentation, rendered as html--&gt; A FilePublication contains metadata about all the &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; in a particular &lt;a href&#x3D;\&quot;https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\&quot;&gt;Repository Version.&lt;/a&gt; Once a FilePublication has been created, it can be hosted using the &lt;a href&#x3D;\&quot;#operation/distributions_file_file_list\&quot;&gt;File Distribution API.&lt;/a&gt;
49
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
50
50
  # @param file_publication_href URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @return [nil]
@@ -58,7 +58,7 @@ describe 'PublicationsFileApi' do
58
58
 
59
59
  # unit tests for list
60
60
  # List file publications
61
- # &lt;!-- User-facing documentation, rendered as html--&gt; A FilePublication contains metadata about all the &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; in a particular &lt;a href&#x3D;\&quot;https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\&quot;&gt;Repository Version.&lt;/a&gt; Once a FilePublication has been created, it can be hosted using the &lt;a href&#x3D;\&quot;#operation/distributions_file_file_list\&quot;&gt;File Distribution API.&lt;/a&gt;
61
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [String] :ordering Which field to use when ordering the results.
64
64
  # @option opts [Integer] :limit Number of results to return per page.
@@ -73,7 +73,7 @@ describe 'PublicationsFileApi' do
73
73
 
74
74
  # unit tests for read
75
75
  # Inspect a file publication
76
- # &lt;!-- User-facing documentation, rendered as html--&gt; A FilePublication contains metadata about all the &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt; in a particular &lt;a href&#x3D;\&quot;https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_list\&quot;&gt;Repository Version.&lt;/a&gt; Once a FilePublication has been created, it can be hosted using the &lt;a href&#x3D;\&quot;#operation/distributions_file_file_list\&quot;&gt;File Distribution API.&lt;/a&gt;
76
+ # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
77
77
  # @param file_publication_href URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @option opts [String] :fields A list of fields to include in the response.
@@ -34,7 +34,7 @@ describe 'RemotesFileApi' do
34
34
 
35
35
  # unit tests for create
36
36
  # Create a file remote
37
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileRemote represents an external source of &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt;. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
37
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [FileRemote]
@@ -58,7 +58,7 @@ describe 'RemotesFileApi' do
58
58
 
59
59
  # unit tests for list
60
60
  # List file remotes
61
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileRemote represents an external source of &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt;. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
61
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [String] :name
64
64
  # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
@@ -93,7 +93,7 @@ describe 'RemotesFileApi' do
93
93
 
94
94
  # unit tests for read
95
95
  # Inspect a file remote
96
- # &lt;!-- User-facing documentation, rendered as html--&gt; FileRemote represents an external source of &lt;a href&#x3D;\&quot;#operation/content_file_files_list\&quot;&gt;File Content&lt;/a&gt;. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
96
+ # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
97
97
  # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
98
98
  # @param [Hash] opts the optional parameters
99
99
  # @option opts [String] :fields A list of fields to include in the response.
@@ -32,6 +32,12 @@ describe 'FileContent' do
32
32
  expect(@instance).to be_instance_of(PulpFileClient::FileContent)
33
33
  end
34
34
  end
35
+ describe 'test attribute "_href"' 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 "_created"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,13 +50,25 @@ describe 'FileContent' do
44
50
  end
45
51
  end
46
52
 
47
- describe 'test attribute "_artifact"' do
53
+ describe 'test attribute "artifact"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
56
  end
51
57
  end
52
58
 
53
- describe 'test attribute "_href"' do
59
+ describe 'test attribute "relative_path"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "file"' 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
+
71
+ describe 'test attribute "repository"' do
54
72
  it 'should work' do
55
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
74
  end
@@ -92,10 +110,4 @@ describe 'FileContent' do
92
110
  end
93
111
  end
94
112
 
95
- describe 'test attribute "relative_path"' do
96
- it 'should work' do
97
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
- end
99
- end
100
-
101
113
  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: 0.1.0b2
4
+ version: 0.1.0b3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-11 00:00:00.000000000 Z
11
+ date: 2019-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday