pulp_file_client 0.1.0rc1 → 0.1.0rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/FileFilePublication.md +0 -2
- data/docs/RepositoriesFileVersionsApi.md +4 -4
- data/lib/pulp_file_client/api/content_files_api.rb +1 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +1 -1
- data/lib/pulp_file_client/api/file_exporters_file_api.rb +1 -1
- data/lib/pulp_file_client/api/publications_file_api.rb +1 -1
- data/lib/pulp_file_client/api/remotes_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +10 -10
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +2 -2
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/content_summary.rb +1 -1
- data/lib/pulp_file_client/models/file_file_content.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_file_file_system_exporter.rb +1 -1
- data/lib/pulp_file_client/models/file_file_publication.rb +2 -12
- data/lib/pulp_file_client/models/file_file_remote.rb +1 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +1 -1
- data/lib/pulp_file_client/models/inline_response200.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_file_client/models/publication_export.rb +1 -1
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/models/repository_version.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 +1 -1
- data/spec/api/content_files_api_spec.rb +1 -1
- data/spec/api/distributions_file_api_spec.rb +1 -1
- data/spec/api/file_exporters_file_api_spec.rb +1 -1
- data/spec/api/publications_file_api_spec.rb +1 -1
- data/spec/api/remotes_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_versions_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/file_file_content_spec.rb +1 -1
- data/spec/models/file_file_distribution_spec.rb +1 -1
- data/spec/models/file_file_file_system_exporter_spec.rb +1 -1
- data/spec/models/file_file_publication_spec.rb +1 -7
- data/spec/models/file_file_remote_spec.rb +1 -1
- data/spec/models/file_file_repository_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/publication_export_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdab28f541cdc4c56c7f20cd4328261dbe67ad73bbf4296035ccd4a11c5475a7
|
4
|
+
data.tar.gz: 98fdf0f0ba88c861e88c720864b04e7554909ced74fbdd9b70c4c09a2abac353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1b343ce4c677faba0b03c7f3079e0a09178a0505f25db7a1f0d586512f72b7a278707deaa607c4495a13c8bf2aea386364139d6030dea03376b59972c571736
|
7
|
+
data.tar.gz: 152b918708ddc3a8b9fe2c69260c194dfd6e0a0cc194ecd1dfe9b1a5fa7fda3ed04b831d8b93e4b130c47b2a54ff37311e16114f372acd32274ef24ea7350a6b
|
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.0rc2
|
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.0rc2.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.0rc2.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.0rc2'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
data/docs/FileFilePublication.md
CHANGED
@@ -6,7 +6,6 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**publisher** | **String** | | [optional]
|
10
9
|
**repository_version** | **String** | | [optional]
|
11
10
|
**repository** | **String** | A URI of the repository to be published. | [optional]
|
12
11
|
**distributions** | **Array<String>** | This publication is currently hosted as defined by these distributions. | [optional] [readonly]
|
@@ -19,7 +18,6 @@ require 'PulpFileClient'
|
|
19
18
|
|
20
19
|
instance = PulpFileClient::FileFilePublication.new(pulp_href: null,
|
21
20
|
pulp_created: null,
|
22
|
-
publisher: null,
|
23
21
|
repository_version: null,
|
24
22
|
repository: null,
|
25
23
|
distributions: null,
|
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|
65
65
|
|
66
66
|
## list
|
67
67
|
|
68
|
-
> InlineResponse2006 list(
|
68
|
+
> InlineResponse2006 list(file_repository_href, opts)
|
69
69
|
|
70
70
|
List repository versions
|
71
71
|
|
@@ -84,7 +84,7 @@ PulpFileClient.configure do |config|
|
|
84
84
|
end
|
85
85
|
|
86
86
|
api_instance = PulpFileClient::RepositoriesFileVersionsApi.new
|
87
|
-
|
87
|
+
file_repository_href = 'file_repository_href_example' # String | URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/
|
88
88
|
opts = {
|
89
89
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
90
90
|
number: 3.4, # Float |
|
@@ -108,7 +108,7 @@ opts = {
|
|
108
108
|
|
109
109
|
begin
|
110
110
|
#List repository versions
|
111
|
-
result = api_instance.list(
|
111
|
+
result = api_instance.list(file_repository_href, opts)
|
112
112
|
p result
|
113
113
|
rescue PulpFileClient::ApiError => e
|
114
114
|
puts "Exception when calling RepositoriesFileVersionsApi->list: #{e}"
|
@@ -120,7 +120,7 @@ end
|
|
120
120
|
|
121
121
|
Name | Type | Description | Notes
|
122
122
|
------------- | ------------- | ------------- | -------------
|
123
|
-
**
|
123
|
+
**file_repository_href** | **String**| URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/ |
|
124
124
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
125
125
|
**number** | **Float**| | [optional]
|
126
126
|
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -83,7 +83,7 @@ module PulpFileClient
|
|
83
83
|
|
84
84
|
# List repository versions
|
85
85
|
# FileRepositoryVersion represents a single file repository version.
|
86
|
-
# @param
|
86
|
+
# @param file_repository_href [String] URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
89
89
|
# @option opts [Float] :number
|
@@ -104,14 +104,14 @@ module PulpFileClient
|
|
104
104
|
# @option opts [String] :fields A list of fields to include in the response.
|
105
105
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
106
|
# @return [InlineResponse2006]
|
107
|
-
def list(
|
108
|
-
data, _status_code, _headers = list_with_http_info(
|
107
|
+
def list(file_repository_href, opts = {})
|
108
|
+
data, _status_code, _headers = list_with_http_info(file_repository_href, opts)
|
109
109
|
data
|
110
110
|
end
|
111
111
|
|
112
112
|
# List repository versions
|
113
113
|
# FileRepositoryVersion represents a single file repository version.
|
114
|
-
# @param
|
114
|
+
# @param file_repository_href [String] URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/
|
115
115
|
# @param [Hash] opts the optional parameters
|
116
116
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
117
117
|
# @option opts [Float] :number
|
@@ -132,16 +132,16 @@ module PulpFileClient
|
|
132
132
|
# @option opts [String] :fields A list of fields to include in the response.
|
133
133
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
134
134
|
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
135
|
-
def list_with_http_info(
|
135
|
+
def list_with_http_info(file_repository_href, opts = {})
|
136
136
|
if @api_client.config.debugging
|
137
137
|
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.list ...'
|
138
138
|
end
|
139
|
-
# verify the required parameter '
|
140
|
-
if @api_client.config.client_side_validation &&
|
141
|
-
fail ArgumentError, "Missing the required parameter '
|
139
|
+
# verify the required parameter 'file_repository_href' is set
|
140
|
+
if @api_client.config.client_side_validation && file_repository_href.nil?
|
141
|
+
fail ArgumentError, "Missing the required parameter 'file_repository_href' when calling RepositoriesFileVersionsApi.list"
|
142
142
|
end
|
143
143
|
# resource path
|
144
|
-
local_var_path = '{file_repository_href}versions/'.sub('{' + '
|
144
|
+
local_var_path = '{file_repository_href}versions/'.sub('{' + 'file_repository_href' + '}', CGI.escape(file_repository_href.to_s).gsub('%2F', '/'))
|
145
145
|
|
146
146
|
# query parameters
|
147
147
|
query_params = opts[:query_params] || {}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -203,7 +203,7 @@ module PulpFileClient
|
|
203
203
|
[
|
204
204
|
{
|
205
205
|
url: "http://localhost:24817/",
|
206
|
-
description: "No
|
206
|
+
description: "No description provided",
|
207
207
|
}
|
208
208
|
]
|
209
209
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,8 +19,6 @@ module PulpFileClient
|
|
19
19
|
# Timestamp of creation.
|
20
20
|
attr_accessor :pulp_created
|
21
21
|
|
22
|
-
attr_accessor :publisher
|
23
|
-
|
24
22
|
attr_accessor :repository_version
|
25
23
|
|
26
24
|
# A URI of the repository to be published.
|
@@ -37,7 +35,6 @@ module PulpFileClient
|
|
37
35
|
{
|
38
36
|
:'pulp_href' => :'pulp_href',
|
39
37
|
:'pulp_created' => :'pulp_created',
|
40
|
-
:'publisher' => :'publisher',
|
41
38
|
:'repository_version' => :'repository_version',
|
42
39
|
:'repository' => :'repository',
|
43
40
|
:'distributions' => :'distributions',
|
@@ -50,7 +47,6 @@ module PulpFileClient
|
|
50
47
|
{
|
51
48
|
:'pulp_href' => :'String',
|
52
49
|
:'pulp_created' => :'DateTime',
|
53
|
-
:'publisher' => :'String',
|
54
50
|
:'repository_version' => :'String',
|
55
51
|
:'repository' => :'String',
|
56
52
|
:'distributions' => :'Array<String>',
|
@@ -61,7 +57,6 @@ module PulpFileClient
|
|
61
57
|
# List of attributes with nullable: true
|
62
58
|
def self.openapi_nullable
|
63
59
|
Set.new([
|
64
|
-
:'publisher',
|
65
60
|
])
|
66
61
|
end
|
67
62
|
|
@@ -88,10 +83,6 @@ module PulpFileClient
|
|
88
83
|
self.pulp_created = attributes[:'pulp_created']
|
89
84
|
end
|
90
85
|
|
91
|
-
if attributes.key?(:'publisher')
|
92
|
-
self.publisher = attributes[:'publisher']
|
93
|
-
end
|
94
|
-
|
95
86
|
if attributes.key?(:'repository_version')
|
96
87
|
self.repository_version = attributes[:'repository_version']
|
97
88
|
end
|
@@ -148,7 +139,6 @@ module PulpFileClient
|
|
148
139
|
self.class == o.class &&
|
149
140
|
pulp_href == o.pulp_href &&
|
150
141
|
pulp_created == o.pulp_created &&
|
151
|
-
publisher == o.publisher &&
|
152
142
|
repository_version == o.repository_version &&
|
153
143
|
repository == o.repository &&
|
154
144
|
distributions == o.distributions &&
|
@@ -164,7 +154,7 @@ module PulpFileClient
|
|
164
154
|
# Calculates hash code according to all attributes.
|
165
155
|
# @return [Integer] Hash code
|
166
156
|
def hash
|
167
|
-
[pulp_href, pulp_created,
|
157
|
+
[pulp_href, pulp_created, repository_version, repository, distributions, manifest].hash
|
168
158
|
end
|
169
159
|
|
170
160
|
# Builds the object from hash
|
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpFileClient
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.0rc2'
|
15
15
|
end
|
data/lib/pulp_file_client.rb
CHANGED
data/pulp_file_client.gemspec
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -47,7 +47,7 @@ describe 'RepositoriesFileVersionsApi' do
|
|
47
47
|
# unit tests for list
|
48
48
|
# List repository versions
|
49
49
|
# FileRepositoryVersion represents a single file repository version.
|
50
|
-
# @param
|
50
|
+
# @param file_repository_href URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
53
53
|
# @option opts [Float] :number
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -44,12 +44,6 @@ describe 'FileFilePublication' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "publisher"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
47
|
describe 'test attribute "repository_version"' do
|
54
48
|
it 'should work' do
|
55
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.1.0rc2
|
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-
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|