pulp_ostree_client 2.0.0a6 → 2.0.0a7.dev1668569524
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ostree_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/docs/ContentCommitsApi.md +8 -8
- data/docs/ContentConfigsApi.md +8 -8
- data/docs/ContentObjectsApi.md +8 -8
- data/docs/ContentRefsApi.md +8 -8
- data/docs/ContentSummariesApi.md +8 -8
- data/docs/DistributionsOstreeApi.md +10 -8
- data/docs/OstreeOstreeRemoteResponse.md +2 -0
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +19 -0
- data/docs/RemotesOstreeApi.md +8 -8
- data/docs/RepositoriesOstreeApi.md +10 -8
- data/docs/RepositoriesOstreeVersionsApi.md +8 -8
- data/lib/pulp_ostree_client/api/content_commits_api.rb +12 -12
- data/lib/pulp_ostree_client/api/content_configs_api.rb +12 -12
- data/lib/pulp_ostree_client/api/content_objects_api.rb +12 -12
- data/lib/pulp_ostree_client/api/content_refs_api.rb +12 -12
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +12 -12
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +16 -13
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +12 -12
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +15 -12
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +13 -13
- data/lib/pulp_ostree_client/api_client.rb +1 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +13 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +1 -0
- data/pulp_ostree_client.gemspec +3 -3
- data/spec/api/content_commits_api_spec.rb +4 -4
- data/spec/api/content_configs_api_spec.rb +4 -4
- data/spec/api/content_objects_api_spec.rb +4 -4
- data/spec/api/content_refs_api_spec.rb +4 -4
- data/spec/api/content_summaries_api_spec.rb +4 -4
- data/spec/api/distributions_ostree_api_spec.rb +5 -4
- data/spec/api/remotes_ostree_api_spec.rb +4 -4
- data/spec/api/repositories_ostree_api_spec.rb +5 -4
- data/spec/api/repositories_ostree_versions_api_spec.rb +4 -4
- data/spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
- metadata +43 -40
- data/git_push.sh +0 -58
@@ -70,6 +70,9 @@ module PulpOstreeClient
|
|
70
70
|
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
|
+
# List of hidden (write only) fields
|
74
|
+
attr_accessor :hidden_fields
|
75
|
+
|
73
76
|
# An option to specify how many commits to traverse.
|
74
77
|
attr_accessor :depth
|
75
78
|
|
@@ -101,6 +104,7 @@ module PulpOstreeClient
|
|
101
104
|
:'sock_read_timeout' => :'sock_read_timeout',
|
102
105
|
:'headers' => :'headers',
|
103
106
|
:'rate_limit' => :'rate_limit',
|
107
|
+
:'hidden_fields' => :'hidden_fields',
|
104
108
|
:'depth' => :'depth',
|
105
109
|
:'include_refs' => :'include_refs',
|
106
110
|
:'exclude_refs' => :'exclude_refs'
|
@@ -129,6 +133,7 @@ module PulpOstreeClient
|
|
129
133
|
:'sock_read_timeout' => :'Float',
|
130
134
|
:'headers' => :'Array<Object>',
|
131
135
|
:'rate_limit' => :'Integer',
|
136
|
+
:'hidden_fields' => :'Array<OstreeOstreeRemoteResponseHiddenFields>',
|
132
137
|
:'depth' => :'Integer',
|
133
138
|
:'include_refs' => :'Array<String>',
|
134
139
|
:'exclude_refs' => :'Array<String>'
|
@@ -246,6 +251,12 @@ module PulpOstreeClient
|
|
246
251
|
self.rate_limit = attributes[:'rate_limit']
|
247
252
|
end
|
248
253
|
|
254
|
+
if attributes.key?(:'hidden_fields')
|
255
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
256
|
+
self.hidden_fields = value
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
249
260
|
if attributes.key?(:'depth')
|
250
261
|
self.depth = attributes[:'depth']
|
251
262
|
else
|
@@ -402,6 +413,7 @@ module PulpOstreeClient
|
|
402
413
|
sock_read_timeout == o.sock_read_timeout &&
|
403
414
|
headers == o.headers &&
|
404
415
|
rate_limit == o.rate_limit &&
|
416
|
+
hidden_fields == o.hidden_fields &&
|
405
417
|
depth == o.depth &&
|
406
418
|
include_refs == o.include_refs &&
|
407
419
|
exclude_refs == o.exclude_refs
|
@@ -416,7 +428,7 @@ module PulpOstreeClient
|
|
416
428
|
# Calculates hash code according to all attributes.
|
417
429
|
# @return [Integer] Hash code
|
418
430
|
def hash
|
419
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, depth, include_refs, exclude_refs].hash
|
431
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, depth, include_refs, exclude_refs].hash
|
420
432
|
end
|
421
433
|
|
422
434
|
# Builds the object from hash
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpOstreeClient
|
16
|
+
class OstreeOstreeRemoteResponseHiddenFields
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
attr_accessor :is_set
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'name' => :'name',
|
25
|
+
:'is_set' => :'is_set'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.openapi_types
|
31
|
+
{
|
32
|
+
:'name' => :'String',
|
33
|
+
:'is_set' => :'Boolean'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.openapi_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
if (!attributes.is_a?(Hash))
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields` initialize method"
|
48
|
+
end
|
49
|
+
|
50
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
+
end
|
55
|
+
h[k.to_sym] = v
|
56
|
+
}
|
57
|
+
|
58
|
+
if attributes.key?(:'name')
|
59
|
+
self.name = attributes[:'name']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.key?(:'is_set')
|
63
|
+
self.is_set = attributes[:'is_set']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
name == o.name &&
|
86
|
+
is_set == o.is_set
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Integer] Hash code
|
97
|
+
def hash
|
98
|
+
[name, is_set].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def self.build_from_hash(attributes)
|
105
|
+
new.build_from_hash(attributes)
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def build_from_hash(attributes)
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
113
|
+
self.class.openapi_types.each_pair do |key, type|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
+
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
+
end
|
124
|
+
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :DateTime
|
135
|
+
DateTime.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :Boolean
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
else # model
|
165
|
+
PulpOstreeClient.const_get(type).build_from_hash(value)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# Returns the string representation of the object
|
170
|
+
# @return [String] String presentation of the object
|
171
|
+
def to_s
|
172
|
+
to_hash.to_s
|
173
|
+
end
|
174
|
+
|
175
|
+
# to_body is an alias to to_hash (backward compatibility)
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_body
|
178
|
+
to_hash
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the object in the form of hash
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_hash
|
184
|
+
hash = {}
|
185
|
+
self.class.attribute_map.each_pair do |attr, param|
|
186
|
+
value = self.send(attr)
|
187
|
+
if value.nil?
|
188
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
+
end
|
191
|
+
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Outputs non-array value in the form of hash
|
198
|
+
# For object, use to_hash. Otherwise, just return the value
|
199
|
+
# @param [Object] value Any valid value
|
200
|
+
# @return [Hash] Returns the value in the form of hash
|
201
|
+
def _to_hash(value)
|
202
|
+
if value.is_a?(Array)
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
204
|
+
elsif value.is_a?(Hash)
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
+
end
|
208
|
+
elsif value.respond_to? :to_hash
|
209
|
+
value.to_hash
|
210
|
+
else
|
211
|
+
value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
data/lib/pulp_ostree_client.rb
CHANGED
@@ -29,6 +29,7 @@ require 'pulp_ostree_client/models/ostree_ostree_object_response'
|
|
29
29
|
require 'pulp_ostree_client/models/ostree_ostree_ref_response'
|
30
30
|
require 'pulp_ostree_client/models/ostree_ostree_remote'
|
31
31
|
require 'pulp_ostree_client/models/ostree_ostree_remote_response'
|
32
|
+
require 'pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields'
|
32
33
|
require 'pulp_ostree_client/models/ostree_ostree_repository'
|
33
34
|
require 'pulp_ostree_client/models/ostree_ostree_repository_response'
|
34
35
|
require 'pulp_ostree_client/models/ostree_ostree_summary_response'
|
data/pulp_ostree_client.gemspec
CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://github.com/pulp/pulp_ostree"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPLv2+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -43,8 +43,8 @@ describe 'ContentCommitsApi' do
|
|
43
43
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
44
44
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
45
45
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
46
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
47
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
46
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
47
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
48
48
|
# @return [PaginatedostreeOstreeCommitResponseList]
|
49
49
|
describe 'list test' do
|
50
50
|
it 'should work' do
|
@@ -57,8 +57,8 @@ describe 'ContentCommitsApi' do
|
|
57
57
|
# A ViewSet class for OSTree commits.
|
58
58
|
# @param ostree_ostree_commit_href
|
59
59
|
# @param [Hash] opts the optional parameters
|
60
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
61
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
60
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
62
|
# @return [OstreeOstreeCommitResponse]
|
63
63
|
describe 'read test' do
|
64
64
|
it 'should work' do
|
@@ -42,8 +42,8 @@ describe 'ContentConfigsApi' do
|
|
42
42
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
43
43
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
44
44
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
45
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
46
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
45
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
46
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
47
47
|
# @return [PaginatedostreeOstreeConfigResponseList]
|
48
48
|
describe 'list test' do
|
49
49
|
it 'should work' do
|
@@ -56,8 +56,8 @@ describe 'ContentConfigsApi' do
|
|
56
56
|
# A ViewSet class for OSTree repository configurations.
|
57
57
|
# @param ostree_ostree_config_href
|
58
58
|
# @param [Hash] opts the optional parameters
|
59
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
60
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
59
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
60
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
61
61
|
# @return [OstreeOstreeConfigResponse]
|
62
62
|
describe 'read test' do
|
63
63
|
it 'should work' do
|
@@ -43,8 +43,8 @@ describe 'ContentObjectsApi' do
|
|
43
43
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
44
44
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
45
45
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
46
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
47
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
46
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
47
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
48
48
|
# @return [PaginatedostreeOstreeObjectResponseList]
|
49
49
|
describe 'list test' do
|
50
50
|
it 'should work' do
|
@@ -57,8 +57,8 @@ describe 'ContentObjectsApi' do
|
|
57
57
|
# A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
|
58
58
|
# @param ostree_ostree_object_href
|
59
59
|
# @param [Hash] opts the optional parameters
|
60
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
61
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
60
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
62
|
# @return [OstreeOstreeObjectResponse]
|
63
63
|
describe 'read test' do
|
64
64
|
it 'should work' do
|
@@ -48,8 +48,8 @@ describe 'ContentRefsApi' do
|
|
48
48
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
49
49
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
50
50
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
51
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
52
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
51
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
52
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
53
53
|
# @return [PaginatedostreeOstreeRefResponseList]
|
54
54
|
describe 'list test' do
|
55
55
|
it 'should work' do
|
@@ -62,8 +62,8 @@ describe 'ContentRefsApi' do
|
|
62
62
|
# A ViewSet class for OSTree head commits.
|
63
63
|
# @param ostree_ostree_ref_href
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
66
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
65
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
66
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
67
67
|
# @return [OstreeOstreeRefResponse]
|
68
68
|
describe 'read test' do
|
69
69
|
it 'should work' do
|
@@ -42,8 +42,8 @@ describe 'ContentSummariesApi' do
|
|
42
42
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
43
43
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
44
44
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
45
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
46
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
45
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
46
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
47
47
|
# @return [PaginatedostreeOstreeSummaryResponseList]
|
48
48
|
describe 'list test' do
|
49
49
|
it 'should work' do
|
@@ -56,8 +56,8 @@ describe 'ContentSummariesApi' do
|
|
56
56
|
# A ViewSet class for OSTree repository summary files.
|
57
57
|
# @param ostree_ostree_summary_href
|
58
58
|
# @param [Hash] opts the optional parameters
|
59
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
60
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
59
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
60
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
61
61
|
# @return [OstreeOstreeSummaryResponse]
|
62
62
|
describe 'read test' do
|
63
63
|
it 'should work' do
|
@@ -73,8 +73,9 @@ describe 'DistributionsOstreeApi' do
|
|
73
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
74
|
# @option opts [Array<String>] :ordering Ordering
|
75
75
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
76
|
-
# @option opts [String] :
|
77
|
-
# @option opts [String] :
|
76
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
77
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
78
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
78
79
|
# @return [PaginatedostreeOstreeDistributionResponseList]
|
79
80
|
describe 'list test' do
|
80
81
|
it 'should work' do
|
@@ -100,8 +101,8 @@ describe 'DistributionsOstreeApi' do
|
|
100
101
|
# A ViewSet class for OSTree distributions.
|
101
102
|
# @param ostree_ostree_distribution_href
|
102
103
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
104
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
104
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
105
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
105
106
|
# @return [OstreeOstreeDistributionResponse]
|
106
107
|
describe 'read test' do
|
107
108
|
it 'should work' do
|
@@ -75,8 +75,8 @@ describe 'RemotesOstreeApi' do
|
|
75
75
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
76
76
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
77
77
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
78
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
79
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
78
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
79
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
80
|
# @return [PaginatedostreeOstreeRemoteResponseList]
|
81
81
|
describe 'list test' do
|
82
82
|
it 'should work' do
|
@@ -102,8 +102,8 @@ describe 'RemotesOstreeApi' do
|
|
102
102
|
# A ViewSet class for OSTree remote repositories.
|
103
103
|
# @param ostree_ostree_remote_href
|
104
104
|
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
106
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
105
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
106
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [OstreeOstreeRemoteResponse]
|
108
108
|
describe 'read test' do
|
109
109
|
it 'should work' do
|
@@ -95,8 +95,9 @@ describe 'RepositoriesOstreeApi' do
|
|
95
95
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
96
96
|
# @option opts [Array<String>] :ordering Ordering
|
97
97
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
98
|
-
# @option opts [String] :
|
99
|
-
# @option opts [String] :
|
98
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
99
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
100
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
100
101
|
# @return [PaginatedostreeOstreeRepositoryResponseList]
|
101
102
|
describe 'list test' do
|
102
103
|
it 'should work' do
|
@@ -135,8 +136,8 @@ describe 'RepositoriesOstreeApi' do
|
|
135
136
|
# A ViewSet class for OSTree repositories.
|
136
137
|
# @param ostree_ostree_repository_href
|
137
138
|
# @param [Hash] opts the optional parameters
|
138
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
139
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
139
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
140
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
141
|
# @return [OstreeOstreeRepositoryResponse]
|
141
142
|
describe 'read test' do
|
142
143
|
it 'should work' do
|
@@ -66,8 +66,8 @@ describe 'RepositoriesOstreeVersionsApi' do
|
|
66
66
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
67
67
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
68
68
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
69
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
70
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
69
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
70
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
71
71
|
# @return [PaginatedRepositoryVersionResponseList]
|
72
72
|
describe 'list test' do
|
73
73
|
it 'should work' do
|
@@ -80,8 +80,8 @@ describe 'RepositoriesOstreeVersionsApi' do
|
|
80
80
|
# A ViewSet class that represents a single OSTree repository version.
|
81
81
|
# @param ostree_ostree_repository_version_href
|
82
82
|
# @param [Hash] opts the optional parameters
|
83
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
84
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
83
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
84
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
85
85
|
# @return [RepositoryVersionResponse]
|
86
86
|
describe 'read test' do
|
87
87
|
it 'should work' do
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'OstreeOstreeRemoteResponseHiddenFields' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of OstreeOstreeRemoteResponseHiddenFields' do
|
31
|
+
it 'should create an instance of OstreeOstreeRemoteResponseHiddenFields' do
|
32
|
+
expect(@instance).to be_instance_of(PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' 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
|
+
|
41
|
+
describe 'test attribute "is_set"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -146,6 +146,12 @@ describe 'OstreeOstreeRemoteResponse' do
|
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
+
describe 'test attribute "hidden_fields"' do
|
150
|
+
it 'should work' do
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
149
155
|
describe 'test attribute "depth"' do
|
150
156
|
it 'should work' do
|
151
157
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|