pulp_file_client 0.1.0b1 → 0.1.0b2
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 +4 -4
- data/README.md +6 -6
- data/docs/ContentFilesApi.md +12 -6
- data/docs/DistributionsFileApi.md +12 -6
- data/docs/FileContent.md +4 -4
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/PublicationsFileApi.md +12 -6
- data/docs/RemotesFileApi.md +12 -6
- data/git_push.sh +10 -7
- data/lib/pulp_file_client/api/content_files_api.rb +15 -9
- data/lib/pulp_file_client/api/distributions_file_api.rb +18 -12
- data/lib/pulp_file_client/api/publications_file_api.rb +16 -10
- data/lib/pulp_file_client/api/remotes_file_api.rb +19 -13
- data/lib/pulp_file_client/api_client.rb +77 -62
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +13 -21
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/file_content.rb +19 -19
- data/lib/pulp_file_client/models/file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_publication.rb +1 -1
- data/lib/pulp_file_client/models/file_remote.rb +1 -1
- data/lib/pulp_file_client/models/inline_response200.rb +11 -11
- data/lib/pulp_file_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_file_client/models/inline_response2002.rb +11 -11
- data/lib/pulp_file_client/models/inline_response2003.rb +11 -11
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +1 -1
- data/pulp_file_client.gemspec +3 -9
- data/spec/api/content_files_api_spec.rb +5 -3
- data/spec/api/distributions_file_api_spec.rb +5 -3
- data/spec/api/publications_file_api_spec.rb +5 -3
- data/spec/api/remotes_file_api_spec.rb +5 -3
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/file_content_spec.rb +3 -3
- data/spec/models/file_distribution_spec.rb +1 -1
- data/spec/models/file_publication_spec.rb +1 -1
- data/spec/models/file_remote_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response2003_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -133
- data/Gemfile.lock +0 -79
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b378d8a3555bf0b8064b31f7a5c4104da0b1f8802cc86ce077734b8db5240eef
|
|
4
|
+
data.tar.gz: 52d5f9427f44ec87d8d4ddd9f0b6d0772f5638dce330ac63c8aa96eb5ac0c290
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b66e8be5befe47b7792446c26d2738d1a6c1aea434f1c70f5a06cb42ca04987043e2b2a701d3fac0c05761be341ee946aacd80ddb373cc83f9513916b5db618
|
|
7
|
+
data.tar.gz: b299941e89a09c67ce55dd47dc354ecbf1f16f34b6cbb3d37ef09010285d57ddc381c742b382e9ae6ed124425f7cc70675ffbd2da62384a71d06216464cc1061
|
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.
|
|
10
|
+
- Package version: 0.1.0b2
|
|
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.
|
|
26
|
+
gem install ./pulp_file_client-0.1.0b2.gem
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
(for development, run `gem install --dev ./pulp_file_client-0.1.
|
|
29
|
+
(for development, run `gem install --dev ./pulp_file_client-0.1.0b2.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.
|
|
35
|
+
gem 'pulp_file_client', '~> 0.1.0b2'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -59,8 +59,8 @@ require 'pulp_file_client'
|
|
|
59
59
|
# Setup authorization
|
|
60
60
|
PulpFileClient.configure do |config|
|
|
61
61
|
# Configure HTTP basic authorization: Basic
|
|
62
|
-
config.username = '
|
|
63
|
-
config.password = '
|
|
62
|
+
config.username = 'YOUR_USERNAME'
|
|
63
|
+
config.password = 'YOUR_PASSWORD'
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
api_instance = PulpFileClient::ContentFilesApi.new
|
data/docs/ContentFilesApi.md
CHANGED
|
@@ -90,8 +90,9 @@ opts = {
|
|
|
90
90
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
91
91
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
92
92
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
94
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
95
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
begin
|
|
@@ -113,8 +114,9 @@ Name | Type | Description | Notes
|
|
|
113
114
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
114
115
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
115
116
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
|
116
|
-
**
|
|
117
|
-
**
|
|
117
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
118
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
119
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
118
120
|
|
|
119
121
|
### Return type
|
|
120
122
|
|
|
@@ -132,7 +134,7 @@ Name | Type | Description | Notes
|
|
|
132
134
|
|
|
133
135
|
## read
|
|
134
136
|
|
|
135
|
-
> FileContent read(file_content_href)
|
|
137
|
+
> FileContent read(file_content_href, opts)
|
|
136
138
|
|
|
137
139
|
Inspect a file content
|
|
138
140
|
|
|
@@ -152,10 +154,13 @@ end
|
|
|
152
154
|
|
|
153
155
|
api_instance = PulpFileClient::ContentFilesApi.new
|
|
154
156
|
file_content_href = 'file_content_href_example' # String | URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
|
|
157
|
+
opts = {
|
|
158
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
159
|
+
}
|
|
155
160
|
|
|
156
161
|
begin
|
|
157
162
|
#Inspect a file content
|
|
158
|
-
result = api_instance.read(file_content_href)
|
|
163
|
+
result = api_instance.read(file_content_href, opts)
|
|
159
164
|
p result
|
|
160
165
|
rescue PulpFileClient::ApiError => e
|
|
161
166
|
puts "Exception when calling ContentFilesApi->read: #{e}"
|
|
@@ -168,6 +173,7 @@ end
|
|
|
168
173
|
Name | Type | Description | Notes
|
|
169
174
|
------------- | ------------- | ------------- | -------------
|
|
170
175
|
**file_content_href** | **String**| URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/ |
|
|
176
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
171
177
|
|
|
172
178
|
### Return type
|
|
173
179
|
|
|
@@ -147,8 +147,9 @@ opts = {
|
|
|
147
147
|
base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
|
|
148
148
|
base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
|
|
149
149
|
base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
151
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
152
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
begin
|
|
@@ -171,8 +172,9 @@ Name | Type | Description | Notes
|
|
|
171
172
|
**base_path__contains** | **String**| Filter results where base_path contains value | [optional]
|
|
172
173
|
**base_path__icontains** | **String**| Filter results where base_path contains value | [optional]
|
|
173
174
|
**base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [optional]
|
|
174
|
-
**
|
|
175
|
-
**
|
|
175
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
176
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
177
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
176
178
|
|
|
177
179
|
### Return type
|
|
178
180
|
|
|
@@ -245,7 +247,7 @@ Name | Type | Description | Notes
|
|
|
245
247
|
|
|
246
248
|
## read
|
|
247
249
|
|
|
248
|
-
> FileDistribution read(file_distribution_href)
|
|
250
|
+
> FileDistribution read(file_distribution_href, opts)
|
|
249
251
|
|
|
250
252
|
Inspect a file distribution
|
|
251
253
|
|
|
@@ -265,10 +267,13 @@ end
|
|
|
265
267
|
|
|
266
268
|
api_instance = PulpFileClient::DistributionsFileApi.new
|
|
267
269
|
file_distribution_href = 'file_distribution_href_example' # String | URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
|
270
|
+
opts = {
|
|
271
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
272
|
+
}
|
|
268
273
|
|
|
269
274
|
begin
|
|
270
275
|
#Inspect a file distribution
|
|
271
|
-
result = api_instance.read(file_distribution_href)
|
|
276
|
+
result = api_instance.read(file_distribution_href, opts)
|
|
272
277
|
p result
|
|
273
278
|
rescue PulpFileClient::ApiError => e
|
|
274
279
|
puts "Exception when calling DistributionsFileApi->read: #{e}"
|
|
@@ -281,6 +286,7 @@ end
|
|
|
281
286
|
Name | Type | Description | Notes
|
|
282
287
|
------------- | ------------- | ------------- | -------------
|
|
283
288
|
**file_distribution_href** | **String**| URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/ |
|
|
289
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
284
290
|
|
|
285
291
|
### Return type
|
|
286
292
|
|
data/docs/FileContent.md
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
|
8
|
-
**_href** | **String** | | [optional]
|
|
9
|
-
**_artifact** | **String** | Artifact file representing the physical content |
|
|
10
8
|
**_type** | **String** | | [optional]
|
|
9
|
+
**_artifact** | **String** | Artifact file representing the physical content |
|
|
10
|
+
**_href** | **String** | | [optional]
|
|
11
11
|
**md5** | **String** | The MD5 checksum if available. | [optional]
|
|
12
12
|
**sha1** | **String** | The SHA-1 checksum if available. | [optional]
|
|
13
13
|
**sha224** | **String** | The SHA-224 checksum if available. | [optional]
|
|
@@ -22,9 +22,9 @@ Name | Type | Description | Notes
|
|
|
22
22
|
require 'PulpFileClient'
|
|
23
23
|
|
|
24
24
|
instance = PulpFileClient::FileContent.new(_created: null,
|
|
25
|
-
_href: null,
|
|
26
|
-
_artifact: null,
|
|
27
25
|
_type: null,
|
|
26
|
+
_artifact: null,
|
|
27
|
+
_href: null,
|
|
28
28
|
md5: null,
|
|
29
29
|
sha1: null,
|
|
30
30
|
sha224: null,
|
data/docs/InlineResponse200.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**count** | **Integer** | |
|
|
7
8
|
**_next** | **String** | | [optional]
|
|
8
9
|
**previous** | **String** | | [optional]
|
|
9
|
-
**count** | **Integer** | |
|
|
10
10
|
**results** | [**Array<FileContent>**](FileContent.md) | |
|
|
11
11
|
|
|
12
12
|
## Code Sample
|
|
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'PulpFileClient'
|
|
16
16
|
|
|
17
|
-
instance = PulpFileClient::InlineResponse200.new(
|
|
17
|
+
instance = PulpFileClient::InlineResponse200.new(count: null,
|
|
18
|
+
_next: null,
|
|
18
19
|
previous: null,
|
|
19
|
-
count: null,
|
|
20
20
|
results: null)
|
|
21
21
|
```
|
|
22
22
|
|
data/docs/InlineResponse2001.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**count** | **Integer** | |
|
|
7
8
|
**_next** | **String** | | [optional]
|
|
8
9
|
**previous** | **String** | | [optional]
|
|
9
|
-
**count** | **Integer** | |
|
|
10
10
|
**results** | [**Array<FileDistribution>**](FileDistribution.md) | |
|
|
11
11
|
|
|
12
12
|
## Code Sample
|
|
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'PulpFileClient'
|
|
16
16
|
|
|
17
|
-
instance = PulpFileClient::InlineResponse2001.new(
|
|
17
|
+
instance = PulpFileClient::InlineResponse2001.new(count: null,
|
|
18
|
+
_next: null,
|
|
18
19
|
previous: null,
|
|
19
|
-
count: null,
|
|
20
20
|
results: null)
|
|
21
21
|
```
|
|
22
22
|
|
data/docs/InlineResponse2002.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**count** | **Integer** | |
|
|
7
8
|
**_next** | **String** | | [optional]
|
|
8
9
|
**previous** | **String** | | [optional]
|
|
9
|
-
**count** | **Integer** | |
|
|
10
10
|
**results** | [**Array<FilePublication>**](FilePublication.md) | |
|
|
11
11
|
|
|
12
12
|
## Code Sample
|
|
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'PulpFileClient'
|
|
16
16
|
|
|
17
|
-
instance = PulpFileClient::InlineResponse2002.new(
|
|
17
|
+
instance = PulpFileClient::InlineResponse2002.new(count: null,
|
|
18
|
+
_next: null,
|
|
18
19
|
previous: null,
|
|
19
|
-
count: null,
|
|
20
20
|
results: null)
|
|
21
21
|
```
|
|
22
22
|
|
data/docs/InlineResponse2003.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**count** | **Integer** | |
|
|
7
8
|
**_next** | **String** | | [optional]
|
|
8
9
|
**previous** | **String** | | [optional]
|
|
9
|
-
**count** | **Integer** | |
|
|
10
10
|
**results** | [**Array<FileRemote>**](FileRemote.md) | |
|
|
11
11
|
|
|
12
12
|
## Code Sample
|
|
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'PulpFileClient'
|
|
16
16
|
|
|
17
|
-
instance = PulpFileClient::InlineResponse2003.new(
|
|
17
|
+
instance = PulpFileClient::InlineResponse2003.new(count: null,
|
|
18
|
+
_next: null,
|
|
18
19
|
previous: null,
|
|
19
|
-
count: null,
|
|
20
20
|
results: null)
|
|
21
21
|
```
|
|
22
22
|
|
data/docs/PublicationsFileApi.md
CHANGED
|
@@ -139,8 +139,9 @@ end
|
|
|
139
139
|
api_instance = PulpFileClient::PublicationsFileApi.new
|
|
140
140
|
opts = {
|
|
141
141
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
143
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
144
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
begin
|
|
@@ -158,8 +159,9 @@ end
|
|
|
158
159
|
Name | Type | Description | Notes
|
|
159
160
|
------------- | ------------- | ------------- | -------------
|
|
160
161
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
161
|
-
**
|
|
162
|
-
**
|
|
162
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
163
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
164
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
163
165
|
|
|
164
166
|
### Return type
|
|
165
167
|
|
|
@@ -177,7 +179,7 @@ Name | Type | Description | Notes
|
|
|
177
179
|
|
|
178
180
|
## read
|
|
179
181
|
|
|
180
|
-
> FilePublication read(file_publication_href)
|
|
182
|
+
> FilePublication read(file_publication_href, opts)
|
|
181
183
|
|
|
182
184
|
Inspect a file publication
|
|
183
185
|
|
|
@@ -197,10 +199,13 @@ end
|
|
|
197
199
|
|
|
198
200
|
api_instance = PulpFileClient::PublicationsFileApi.new
|
|
199
201
|
file_publication_href = 'file_publication_href_example' # String | URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
|
|
202
|
+
opts = {
|
|
203
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
204
|
+
}
|
|
200
205
|
|
|
201
206
|
begin
|
|
202
207
|
#Inspect a file publication
|
|
203
|
-
result = api_instance.read(file_publication_href)
|
|
208
|
+
result = api_instance.read(file_publication_href, opts)
|
|
204
209
|
p result
|
|
205
210
|
rescue PulpFileClient::ApiError => e
|
|
206
211
|
puts "Exception when calling PublicationsFileApi->read: #{e}"
|
|
@@ -213,6 +218,7 @@ end
|
|
|
213
218
|
Name | Type | Description | Notes
|
|
214
219
|
------------- | ------------- | ------------- | -------------
|
|
215
220
|
**file_publication_href** | **String**| URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/ |
|
|
221
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
216
222
|
|
|
217
223
|
### Return type
|
|
218
224
|
|
data/docs/RemotesFileApi.md
CHANGED
|
@@ -150,8 +150,9 @@ opts = {
|
|
|
150
150
|
_last_updated__gte: '_last_updated__gte_example', # String | Filter results where _last_updated is greater than or equal to value
|
|
151
151
|
_last_updated__range: '_last_updated__range_example', # String | Filter results where _last_updated is between two comma separated values
|
|
152
152
|
_last_updated: '_last_updated_example', # String | ISO 8601 formatted dates are supported
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
154
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
155
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
begin
|
|
@@ -176,8 +177,9 @@ Name | Type | Description | Notes
|
|
|
176
177
|
**_last_updated__gte** | **String**| Filter results where _last_updated is greater than or equal to value | [optional]
|
|
177
178
|
**_last_updated__range** | **String**| Filter results where _last_updated is between two comma separated values | [optional]
|
|
178
179
|
**_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
|
179
|
-
**
|
|
180
|
-
**
|
|
180
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
181
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
182
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
181
183
|
|
|
182
184
|
### Return type
|
|
183
185
|
|
|
@@ -250,7 +252,7 @@ Name | Type | Description | Notes
|
|
|
250
252
|
|
|
251
253
|
## read
|
|
252
254
|
|
|
253
|
-
> FileRemote read(file_remote_href)
|
|
255
|
+
> FileRemote read(file_remote_href, opts)
|
|
254
256
|
|
|
255
257
|
Inspect a file remote
|
|
256
258
|
|
|
@@ -270,10 +272,13 @@ end
|
|
|
270
272
|
|
|
271
273
|
api_instance = PulpFileClient::RemotesFileApi.new
|
|
272
274
|
file_remote_href = 'file_remote_href_example' # String | URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
|
|
275
|
+
opts = {
|
|
276
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
|
277
|
+
}
|
|
273
278
|
|
|
274
279
|
begin
|
|
275
280
|
#Inspect a file remote
|
|
276
|
-
result = api_instance.read(file_remote_href)
|
|
281
|
+
result = api_instance.read(file_remote_href, opts)
|
|
277
282
|
p result
|
|
278
283
|
rescue PulpFileClient::ApiError => e
|
|
279
284
|
puts "Exception when calling RemotesFileApi->read: #{e}"
|
|
@@ -286,6 +291,7 @@ end
|
|
|
286
291
|
Name | Type | Description | Notes
|
|
287
292
|
------------- | ------------- | ------------- | -------------
|
|
288
293
|
**file_remote_href** | **String**| URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/ |
|
|
294
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
289
295
|
|
|
290
296
|
### Return type
|
|
291
297
|
|
data/git_push.sh
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
#
|
|
3
|
-
# Generated by: https://openapi-generator.tech
|
|
4
|
-
#
|
|
5
2
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
6
3
|
#
|
|
7
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
|
8
5
|
|
|
9
6
|
git_user_id=$1
|
|
10
7
|
git_repo_id=$2
|
|
11
8
|
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
12
15
|
|
|
13
16
|
if [ "$git_user_id" = "" ]; then
|
|
14
17
|
git_user_id="GIT_USER_ID"
|
|
@@ -40,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
|
|
|
40
43
|
|
|
41
44
|
if [ "$GIT_TOKEN" = "" ]; then
|
|
42
45
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
43
|
-
git remote add origin https
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
44
47
|
else
|
|
45
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}
|
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
46
49
|
fi
|
|
47
50
|
|
|
48
51
|
fi
|
|
@@ -50,6 +53,6 @@ fi
|
|
|
50
53
|
git pull origin master
|
|
51
54
|
|
|
52
55
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
53
|
-
echo "Git pushing to https
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
54
57
|
git push origin master 2>&1 | grep -v 'To https'
|
|
55
58
|
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpFileClient
|
|
16
16
|
class ContentFilesApi
|
|
@@ -91,8 +91,9 @@ module PulpFileClient
|
|
|
91
91
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
92
92
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
93
93
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
94
|
-
# @option opts [Integer] :
|
|
95
|
-
# @option opts [Integer] :
|
|
94
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
95
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
96
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
96
97
|
# @return [InlineResponse200]
|
|
97
98
|
def list(opts = {})
|
|
98
99
|
data, _status_code, _headers = list_with_http_info(opts)
|
|
@@ -107,8 +108,9 @@ module PulpFileClient
|
|
|
107
108
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
108
109
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
109
110
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
110
|
-
# @option opts [Integer] :
|
|
111
|
-
# @option opts [Integer] :
|
|
111
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
112
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
113
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
112
114
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
|
113
115
|
def list_with_http_info(opts = {})
|
|
114
116
|
if @api_client.config.debugging
|
|
@@ -124,8 +126,9 @@ module PulpFileClient
|
|
|
124
126
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
125
127
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
126
128
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
127
|
-
query_params[:'
|
|
128
|
-
query_params[:'
|
|
129
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
130
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
131
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
129
132
|
|
|
130
133
|
# header parameters
|
|
131
134
|
header_params = opts[:header_params] || {}
|
|
@@ -164,6 +167,7 @@ module PulpFileClient
|
|
|
164
167
|
# <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
165
168
|
# @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
|
|
166
169
|
# @param [Hash] opts the optional parameters
|
|
170
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
167
171
|
# @return [FileContent]
|
|
168
172
|
def read(file_content_href, opts = {})
|
|
169
173
|
data, _status_code, _headers = read_with_http_info(file_content_href, opts)
|
|
@@ -174,6 +178,7 @@ module PulpFileClient
|
|
|
174
178
|
# <!-- User-facing documentation, rendered as html--> FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
|
175
179
|
# @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
|
|
176
180
|
# @param [Hash] opts the optional parameters
|
|
181
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
177
182
|
# @return [Array<(FileContent, Integer, Hash)>] FileContent data, response status code and response headers
|
|
178
183
|
def read_with_http_info(file_content_href, opts = {})
|
|
179
184
|
if @api_client.config.debugging
|
|
@@ -184,10 +189,11 @@ module PulpFileClient
|
|
|
184
189
|
fail ArgumentError, "Missing the required parameter 'file_content_href' when calling ContentFilesApi.read"
|
|
185
190
|
end
|
|
186
191
|
# resource path
|
|
187
|
-
local_var_path = '{file_content_href}'.sub('{' + 'file_content_href' + '}', file_content_href.to_s)
|
|
192
|
+
local_var_path = '{file_content_href}'.sub('{' + 'file_content_href' + '}', CGI.escape(file_content_href.to_s).gsub('%2F', '/'))
|
|
188
193
|
|
|
189
194
|
# query parameters
|
|
190
195
|
query_params = opts[:query_params] || {}
|
|
196
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
191
197
|
|
|
192
198
|
# header parameters
|
|
193
199
|
header_params = opts[:header_params] || {}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpFileClient
|
|
16
16
|
class DistributionsFileApi
|
|
@@ -107,7 +107,7 @@ module PulpFileClient
|
|
|
107
107
|
fail ArgumentError, "Missing the required parameter 'file_distribution_href' when calling DistributionsFileApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
|
-
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', file_distribution_href.to_s)
|
|
110
|
+
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', CGI.escape(file_distribution_href.to_s).gsub('%2F', '/'))
|
|
111
111
|
|
|
112
112
|
# query parameters
|
|
113
113
|
query_params = opts[:query_params] || {}
|
|
@@ -154,8 +154,9 @@ module PulpFileClient
|
|
|
154
154
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
|
155
155
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
|
156
156
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
|
157
|
-
# @option opts [Integer] :
|
|
158
|
-
# @option opts [Integer] :
|
|
157
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
158
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
159
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
159
160
|
# @return [InlineResponse2001]
|
|
160
161
|
def list(opts = {})
|
|
161
162
|
data, _status_code, _headers = list_with_http_info(opts)
|
|
@@ -171,8 +172,9 @@ module PulpFileClient
|
|
|
171
172
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
|
172
173
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
|
173
174
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
|
174
|
-
# @option opts [Integer] :
|
|
175
|
-
# @option opts [Integer] :
|
|
175
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
176
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
177
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
176
178
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
177
179
|
def list_with_http_info(opts = {})
|
|
178
180
|
if @api_client.config.debugging
|
|
@@ -189,8 +191,9 @@ module PulpFileClient
|
|
|
189
191
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
|
190
192
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
|
191
193
|
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
|
192
|
-
query_params[:'
|
|
193
|
-
query_params[:'
|
|
194
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
195
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
196
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
194
197
|
|
|
195
198
|
# header parameters
|
|
196
199
|
header_params = opts[:header_params] || {}
|
|
@@ -255,7 +258,7 @@ module PulpFileClient
|
|
|
255
258
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsFileApi.partial_update"
|
|
256
259
|
end
|
|
257
260
|
# resource path
|
|
258
|
-
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', file_distribution_href.to_s)
|
|
261
|
+
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', CGI.escape(file_distribution_href.to_s).gsub('%2F', '/'))
|
|
259
262
|
|
|
260
263
|
# query parameters
|
|
261
264
|
query_params = opts[:query_params] || {}
|
|
@@ -299,6 +302,7 @@ module PulpFileClient
|
|
|
299
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.
|
|
300
303
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
|
301
304
|
# @param [Hash] opts the optional parameters
|
|
305
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
302
306
|
# @return [FileDistribution]
|
|
303
307
|
def read(file_distribution_href, opts = {})
|
|
304
308
|
data, _status_code, _headers = read_with_http_info(file_distribution_href, opts)
|
|
@@ -309,6 +313,7 @@ module PulpFileClient
|
|
|
309
313
|
# <!-- 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.
|
|
310
314
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
|
311
315
|
# @param [Hash] opts the optional parameters
|
|
316
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
312
317
|
# @return [Array<(FileDistribution, Integer, Hash)>] FileDistribution data, response status code and response headers
|
|
313
318
|
def read_with_http_info(file_distribution_href, opts = {})
|
|
314
319
|
if @api_client.config.debugging
|
|
@@ -319,10 +324,11 @@ module PulpFileClient
|
|
|
319
324
|
fail ArgumentError, "Missing the required parameter 'file_distribution_href' when calling DistributionsFileApi.read"
|
|
320
325
|
end
|
|
321
326
|
# resource path
|
|
322
|
-
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', file_distribution_href.to_s)
|
|
327
|
+
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', CGI.escape(file_distribution_href.to_s).gsub('%2F', '/'))
|
|
323
328
|
|
|
324
329
|
# query parameters
|
|
325
330
|
query_params = opts[:query_params] || {}
|
|
331
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
326
332
|
|
|
327
333
|
# header parameters
|
|
328
334
|
header_params = opts[:header_params] || {}
|
|
@@ -387,7 +393,7 @@ module PulpFileClient
|
|
|
387
393
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsFileApi.update"
|
|
388
394
|
end
|
|
389
395
|
# resource path
|
|
390
|
-
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', file_distribution_href.to_s)
|
|
396
|
+
local_var_path = '{file_distribution_href}'.sub('{' + 'file_distribution_href' + '}', CGI.escape(file_distribution_href.to_s).gsub('%2F', '/'))
|
|
391
397
|
|
|
392
398
|
# query parameters
|
|
393
399
|
query_params = opts[:query_params] || {}
|