pulp_ostree_client 2.0.0a1.dev1626751709 → 2.0.0a1.dev1631416829
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 +41 -23
- data/docs/ContentCommitsApi.md +138 -0
- data/docs/ContentConfigsApi.md +138 -0
- data/docs/ContentObjectsApi.md +138 -0
- data/docs/ContentRefsApi.md +138 -0
- data/docs/{ContentOstreeApi.md → ContentSummariesApi.md} +21 -75
- data/docs/DistributionsOstreeApi.md +3 -3
- data/docs/OstreeOstreeCommitResponse.md +25 -0
- data/docs/OstreeOstreeConfigResponse.md +21 -0
- data/docs/OstreeOstreeDistribution.md +2 -2
- data/docs/OstreeOstreeDistributionResponse.md +2 -2
- data/docs/OstreeOstreeObjectResponse.md +27 -0
- data/docs/OstreeOstreeRefResponse.md +25 -0
- data/docs/OstreeOstreeRemote.md +4 -2
- data/docs/OstreeOstreeRemoteResponse.md +4 -2
- data/docs/OstreeOstreeRepository.md +3 -3
- data/docs/OstreeOstreeRepositoryResponse.md +3 -3
- data/docs/{OstreeOstreeContentResponse.md → OstreeOstreeSummaryResponse.md} +2 -2
- data/docs/OstreeRepoImport.md +23 -0
- data/docs/{PaginatedostreeOstreePublicationResponseList.md → PaginatedostreeOstreeCommitResponseList.md} +3 -3
- data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
- data/docs/{PaginatedostreeOstreeContentResponseList.md → PaginatedostreeOstreeSummaryResponseList.md} +3 -3
- data/docs/PatchedostreeOstreeDistribution.md +2 -2
- data/docs/PatchedostreeOstreeRemote.md +4 -2
- data/docs/PatchedostreeOstreeRepository.md +3 -3
- data/docs/RemotesOstreeApi.md +4 -4
- data/docs/RepositoriesOstreeApi.md +60 -4
- data/docs/RepositoriesOstreeVersionsApi.md +3 -3
- data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
- data/lib/pulp_ostree_client/api/{content_ostree_api.rb → content_summaries_api.rb} +29 -93
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +4 -4
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +6 -6
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +76 -6
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +4 -4
- data/lib/pulp_ostree_client/configuration.rb +2 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
- data/lib/pulp_ostree_client/models/{ostree_ostree_publication_response.rb → ostree_ostree_config_response.rb} +17 -21
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +10 -10
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +10 -10
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
- data/lib/pulp_ostree_client/models/{ostree_ostree_content.rb → ostree_ostree_ref_response.rb} +47 -15
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +34 -7
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +34 -7
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +18 -17
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +18 -17
- data/lib/pulp_ostree_client/models/{ostree_ostree_content_response.rb → ostree_ostree_summary_response.rb} +4 -4
- data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
- data/lib/pulp_ostree_client/models/{paginatedostree_ostree_publication_response_list.rb → paginatedostree_ostree_commit_response_list.rb} +4 -4
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/{ostree_ostree_publication.rb → paginatedostree_ostree_ref_response_list.rb} +38 -18
- data/lib/pulp_ostree_client/models/{paginatedostree_ostree_content_response_list.rb → paginatedostree_ostree_summary_response_list.rb} +4 -4
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +10 -10
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +34 -7
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +18 -17
- data/lib/pulp_ostree_client/models/policy_enum.rb +1 -1
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +16 -8
- data/spec/api/{content_ostree_api_spec.rb → content_commits_api_spec.rb} +13 -25
- data/spec/api/content_configs_api_spec.rb +68 -0
- data/spec/api/content_objects_api_spec.rb +68 -0
- data/spec/api/content_refs_api_spec.rb +68 -0
- data/spec/api/content_summaries_api_spec.rb +68 -0
- data/spec/api/distributions_ostree_api_spec.rb +2 -2
- data/spec/api/remotes_ostree_api_spec.rb +3 -3
- data/spec/api/repositories_ostree_api_spec.rb +16 -3
- data/spec/api/repositories_ostree_versions_api_spec.rb +2 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
- data/spec/models/{ostree_ostree_content_spec.rb → ostree_ostree_config_response_spec.rb} +14 -8
- data/spec/models/ostree_ostree_distribution_response_spec.rb +1 -1
- data/spec/models/ostree_ostree_distribution_spec.rb +1 -1
- data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
- data/spec/models/{ostree_ostree_publication_response_spec.rb → ostree_ostree_ref_response_spec.rb} +14 -8
- data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_remote_spec.rb +6 -0
- data/spec/models/ostree_ostree_repository_response_spec.rb +1 -1
- data/spec/models/ostree_ostree_repository_spec.rb +1 -1
- data/spec/models/{ostree_ostree_content_response_spec.rb → ostree_ostree_summary_response_spec.rb} +6 -6
- data/spec/models/ostree_repo_import_spec.rb +59 -0
- data/spec/models/{paginatedostree_ostree_publication_response_list_spec.rb → paginatedostree_ostree_commit_response_list_spec.rb} +6 -6
- data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
- data/spec/models/{paginatedostree_ostree_content_response_list_spec.rb → paginatedostree_ostree_summary_response_list_spec.rb} +6 -6
- data/spec/models/patchedostree_ostree_distribution_spec.rb +1 -1
- data/spec/models/patchedostree_ostree_remote_spec.rb +6 -0
- data/spec/models/patchedostree_ostree_repository_spec.rb +1 -1
- metadata +81 -49
- data/docs/OstreeOstreeContent.md +0 -19
- data/docs/OstreeOstreePublication.md +0 -19
- data/docs/OstreeOstreePublicationResponse.md +0 -23
- data/docs/PublicationsOstreeApi.md +0 -257
- data/lib/pulp_ostree_client/api/publications_ostree_api.rb +0 -312
- data/spec/api/publications_ostree_api_spec.rb +0 -98
- data/spec/models/ostree_ostree_publication_spec.rb +0 -47
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpOstreeClient
|
16
|
-
# A Serializer
|
16
|
+
# A Serializer class for a remote OSTree repository.
|
17
17
|
class PatchedostreeOstreeRemote
|
18
18
|
# A unique name for this remote.
|
19
19
|
attr_accessor :name
|
@@ -56,7 +56,7 @@ module PulpOstreeClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
#
|
59
|
+
# immediate - All OSTree objects are downloaded and saved during synchronization. on_demand - Only commits, dirtrees, and refs are downloaded. Other OSTree objects are not downloaded until they are requested for the first time by a client.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -77,6 +77,9 @@ module PulpOstreeClient
|
|
77
77
|
# Limits total download rate in requests per second
|
78
78
|
attr_accessor :rate_limit
|
79
79
|
|
80
|
+
# An option to specify how many commits to traverse.
|
81
|
+
attr_accessor :depth
|
82
|
+
|
80
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
81
84
|
def self.attribute_map
|
82
85
|
{
|
@@ -100,7 +103,8 @@ module PulpOstreeClient
|
|
100
103
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
101
104
|
:'sock_read_timeout' => :'sock_read_timeout',
|
102
105
|
:'headers' => :'headers',
|
103
|
-
:'rate_limit' => :'rate_limit'
|
106
|
+
:'rate_limit' => :'rate_limit',
|
107
|
+
:'depth' => :'depth'
|
104
108
|
}
|
105
109
|
end
|
106
110
|
|
@@ -127,7 +131,8 @@ module PulpOstreeClient
|
|
127
131
|
:'sock_connect_timeout' => :'Float',
|
128
132
|
:'sock_read_timeout' => :'Float',
|
129
133
|
:'headers' => :'Array<Object>',
|
130
|
-
:'rate_limit' => :'Integer'
|
134
|
+
:'rate_limit' => :'Integer',
|
135
|
+
:'depth' => :'Integer'
|
131
136
|
}
|
132
137
|
end
|
133
138
|
|
@@ -148,7 +153,7 @@ module PulpOstreeClient
|
|
148
153
|
:'connect_timeout',
|
149
154
|
:'sock_connect_timeout',
|
150
155
|
:'sock_read_timeout',
|
151
|
-
:'rate_limit'
|
156
|
+
:'rate_limit',
|
152
157
|
])
|
153
158
|
end
|
154
159
|
|
@@ -252,6 +257,12 @@ module PulpOstreeClient
|
|
252
257
|
if attributes.key?(:'rate_limit')
|
253
258
|
self.rate_limit = attributes[:'rate_limit']
|
254
259
|
end
|
260
|
+
|
261
|
+
if attributes.key?(:'depth')
|
262
|
+
self.depth = attributes[:'depth']
|
263
|
+
else
|
264
|
+
self.depth = 0
|
265
|
+
end
|
255
266
|
end
|
256
267
|
|
257
268
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -278,6 +289,10 @@ module PulpOstreeClient
|
|
278
289
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
279
290
|
end
|
280
291
|
|
292
|
+
if !@depth.nil? && @depth < 0
|
293
|
+
invalid_properties.push('invalid value for "depth", must be greater than or equal to 0.')
|
294
|
+
end
|
295
|
+
|
281
296
|
invalid_properties
|
282
297
|
end
|
283
298
|
|
@@ -289,6 +304,7 @@ module PulpOstreeClient
|
|
289
304
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
290
305
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
291
306
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
307
|
+
return false if !@depth.nil? && @depth < 0
|
292
308
|
true
|
293
309
|
end
|
294
310
|
|
@@ -342,6 +358,16 @@ module PulpOstreeClient
|
|
342
358
|
@sock_read_timeout = sock_read_timeout
|
343
359
|
end
|
344
360
|
|
361
|
+
# Custom attribute writer method with validation
|
362
|
+
# @param [Object] depth Value to be assigned
|
363
|
+
def depth=(depth)
|
364
|
+
if !depth.nil? && depth < 0
|
365
|
+
fail ArgumentError, 'invalid value for "depth", must be greater than or equal to 0.'
|
366
|
+
end
|
367
|
+
|
368
|
+
@depth = depth
|
369
|
+
end
|
370
|
+
|
345
371
|
# Checks equality by comparing each attribute.
|
346
372
|
# @param [Object] Object to be compared
|
347
373
|
def ==(o)
|
@@ -367,7 +393,8 @@ module PulpOstreeClient
|
|
367
393
|
sock_connect_timeout == o.sock_connect_timeout &&
|
368
394
|
sock_read_timeout == o.sock_read_timeout &&
|
369
395
|
headers == o.headers &&
|
370
|
-
rate_limit == o.rate_limit
|
396
|
+
rate_limit == o.rate_limit &&
|
397
|
+
depth == o.depth
|
371
398
|
end
|
372
399
|
|
373
400
|
# @see the `==` method
|
@@ -379,7 +406,7 @@ module PulpOstreeClient
|
|
379
406
|
# Calculates hash code according to all attributes.
|
380
407
|
# @return [Integer] Hash code
|
381
408
|
def hash
|
382
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
409
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, depth].hash
|
383
410
|
end
|
384
411
|
|
385
412
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpOstreeClient
|
16
|
-
# A Serializer for
|
16
|
+
# A Serializer class for an OSTree repository.
|
17
17
|
class PatchedostreeOstreeRepository
|
18
18
|
attr_accessor :pulp_labels
|
19
19
|
|
@@ -24,8 +24,9 @@ module PulpOstreeClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +35,7 @@ module PulpOstreeClient
|
|
34
35
|
:'pulp_labels' => :'pulp_labels',
|
35
36
|
:'name' => :'name',
|
36
37
|
:'description' => :'description',
|
37
|
-
:'
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
39
|
:'remote' => :'remote'
|
39
40
|
}
|
40
41
|
end
|
@@ -45,7 +46,7 @@ module PulpOstreeClient
|
|
45
46
|
:'pulp_labels' => :'Object',
|
46
47
|
:'name' => :'String',
|
47
48
|
:'description' => :'String',
|
48
|
-
:'
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
49
50
|
:'remote' => :'String'
|
50
51
|
}
|
51
52
|
end
|
@@ -54,7 +55,7 @@ module PulpOstreeClient
|
|
54
55
|
def self.openapi_nullable
|
55
56
|
Set.new([
|
56
57
|
:'description',
|
57
|
-
:'
|
58
|
+
:'retain_repo_versions',
|
58
59
|
:'remote'
|
59
60
|
])
|
60
61
|
end
|
@@ -86,8 +87,8 @@ module PulpOstreeClient
|
|
86
87
|
self.description = attributes[:'description']
|
87
88
|
end
|
88
89
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
91
92
|
end
|
92
93
|
|
93
94
|
if attributes.key?(:'remote')
|
@@ -99,8 +100,8 @@ module PulpOstreeClient
|
|
99
100
|
# @return Array for valid properties with the reasons
|
100
101
|
def list_invalid_properties
|
101
102
|
invalid_properties = Array.new
|
102
|
-
if !@
|
103
|
-
invalid_properties.push('invalid value for "
|
103
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
104
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
104
105
|
end
|
105
106
|
|
106
107
|
invalid_properties
|
@@ -109,18 +110,18 @@ module PulpOstreeClient
|
|
109
110
|
# Check to see if the all the properties in the model are valid
|
110
111
|
# @return true if the model is valid
|
111
112
|
def valid?
|
112
|
-
return false if !@
|
113
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
113
114
|
true
|
114
115
|
end
|
115
116
|
|
116
117
|
# Custom attribute writer method with validation
|
117
|
-
# @param [Object]
|
118
|
-
def
|
119
|
-
if !
|
120
|
-
fail ArgumentError, 'invalid value for "
|
118
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
119
|
+
def retain_repo_versions=(retain_repo_versions)
|
120
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
121
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
121
122
|
end
|
122
123
|
|
123
|
-
@
|
124
|
+
@retain_repo_versions = retain_repo_versions
|
124
125
|
end
|
125
126
|
|
126
127
|
# Checks equality by comparing each attribute.
|
@@ -131,7 +132,7 @@ module PulpOstreeClient
|
|
131
132
|
pulp_labels == o.pulp_labels &&
|
132
133
|
name == o.name &&
|
133
134
|
description == o.description &&
|
134
|
-
|
135
|
+
retain_repo_versions == o.retain_repo_versions &&
|
135
136
|
remote == o.remote
|
136
137
|
end
|
137
138
|
|
@@ -144,7 +145,7 @@ module PulpOstreeClient
|
|
144
145
|
# Calculates hash code according to all attributes.
|
145
146
|
# @return [Integer] Hash code
|
146
147
|
def hash
|
147
|
-
[pulp_labels, name, description,
|
148
|
+
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
148
149
|
end
|
149
150
|
|
150
151
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module PulpOstreeClient
|
16
16
|
class PolicyEnum
|
17
17
|
IMMEDIATE = "immediate".freeze
|
18
|
-
|
18
|
+
ON_DEMAND = "on_demand".freeze
|
19
19
|
|
20
20
|
# Builds the enum from string
|
21
21
|
# @param [String] The enum value in the form of the string
|
data/lib/pulp_ostree_client.rb
CHANGED
@@ -20,22 +20,27 @@ require 'pulp_ostree_client/configuration'
|
|
20
20
|
require 'pulp_ostree_client/models/async_operation_response'
|
21
21
|
require 'pulp_ostree_client/models/content_summary'
|
22
22
|
require 'pulp_ostree_client/models/content_summary_response'
|
23
|
-
require 'pulp_ostree_client/models/
|
24
|
-
require 'pulp_ostree_client/models/
|
23
|
+
require 'pulp_ostree_client/models/ostree_ostree_commit_response'
|
24
|
+
require 'pulp_ostree_client/models/ostree_ostree_config_response'
|
25
25
|
require 'pulp_ostree_client/models/ostree_ostree_distribution'
|
26
26
|
require 'pulp_ostree_client/models/ostree_ostree_distribution_response'
|
27
|
-
require 'pulp_ostree_client/models/
|
28
|
-
require 'pulp_ostree_client/models/
|
27
|
+
require 'pulp_ostree_client/models/ostree_ostree_object_response'
|
28
|
+
require 'pulp_ostree_client/models/ostree_ostree_ref_response'
|
29
29
|
require 'pulp_ostree_client/models/ostree_ostree_remote'
|
30
30
|
require 'pulp_ostree_client/models/ostree_ostree_remote_response'
|
31
31
|
require 'pulp_ostree_client/models/ostree_ostree_repository'
|
32
32
|
require 'pulp_ostree_client/models/ostree_ostree_repository_response'
|
33
|
+
require 'pulp_ostree_client/models/ostree_ostree_summary_response'
|
34
|
+
require 'pulp_ostree_client/models/ostree_repo_import'
|
33
35
|
require 'pulp_ostree_client/models/paginated_repository_version_response_list'
|
34
|
-
require 'pulp_ostree_client/models/
|
36
|
+
require 'pulp_ostree_client/models/paginatedostree_ostree_commit_response_list'
|
37
|
+
require 'pulp_ostree_client/models/paginatedostree_ostree_config_response_list'
|
35
38
|
require 'pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list'
|
36
|
-
require 'pulp_ostree_client/models/
|
39
|
+
require 'pulp_ostree_client/models/paginatedostree_ostree_object_response_list'
|
40
|
+
require 'pulp_ostree_client/models/paginatedostree_ostree_ref_response_list'
|
37
41
|
require 'pulp_ostree_client/models/paginatedostree_ostree_remote_response_list'
|
38
42
|
require 'pulp_ostree_client/models/paginatedostree_ostree_repository_response_list'
|
43
|
+
require 'pulp_ostree_client/models/paginatedostree_ostree_summary_response_list'
|
39
44
|
require 'pulp_ostree_client/models/patchedostree_ostree_distribution'
|
40
45
|
require 'pulp_ostree_client/models/patchedostree_ostree_remote'
|
41
46
|
require 'pulp_ostree_client/models/patchedostree_ostree_repository'
|
@@ -46,9 +51,12 @@ require 'pulp_ostree_client/models/repository_version'
|
|
46
51
|
require 'pulp_ostree_client/models/repository_version_response'
|
47
52
|
|
48
53
|
# APIs
|
49
|
-
require 'pulp_ostree_client/api/
|
54
|
+
require 'pulp_ostree_client/api/content_commits_api'
|
55
|
+
require 'pulp_ostree_client/api/content_configs_api'
|
56
|
+
require 'pulp_ostree_client/api/content_objects_api'
|
57
|
+
require 'pulp_ostree_client/api/content_refs_api'
|
58
|
+
require 'pulp_ostree_client/api/content_summaries_api'
|
50
59
|
require 'pulp_ostree_client/api/distributions_ostree_api'
|
51
|
-
require 'pulp_ostree_client/api/publications_ostree_api'
|
52
60
|
require 'pulp_ostree_client/api/remotes_ostree_api'
|
53
61
|
require 'pulp_ostree_client/api/repositories_ostree_api'
|
54
62
|
require 'pulp_ostree_client/api/repositories_ostree_versions_api'
|
@@ -13,40 +13,28 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpOstreeClient::
|
16
|
+
# Unit tests for PulpOstreeClient::ContentCommitsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'ContentCommitsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpOstreeClient::
|
22
|
+
@api_instance = PulpOstreeClient::ContentCommitsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpOstreeClient::
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for create
|
36
|
-
# Create an ostree content
|
37
|
-
# Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
38
|
-
# @param ostree_ostree_content
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [OstreeOstreeContentResponse]
|
41
|
-
describe 'create test' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
29
|
+
describe 'test an instance of ContentCommitsApi' do
|
30
|
+
it 'should create an instance of ContentCommitsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpOstreeClient::ContentCommitsApi)
|
44
32
|
end
|
45
33
|
end
|
46
34
|
|
47
35
|
# unit tests for list
|
48
|
-
# List ostree
|
49
|
-
# A ViewSet
|
36
|
+
# List ostree commits
|
37
|
+
# A ViewSet class for OSTree commits.
|
50
38
|
# @param [Hash] opts the optional parameters
|
51
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
52
40
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
@@ -56,7 +44,7 @@ describe 'ContentOstreeApi' do
|
|
56
44
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
57
45
|
# @option opts [String] :fields A list of fields to include in the response.
|
58
46
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
59
|
-
# @return [
|
47
|
+
# @return [PaginatedostreeOstreeCommitResponseList]
|
60
48
|
describe 'list test' do
|
61
49
|
it 'should work' do
|
62
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -64,13 +52,13 @@ describe 'ContentOstreeApi' do
|
|
64
52
|
end
|
65
53
|
|
66
54
|
# unit tests for read
|
67
|
-
# Inspect an ostree
|
68
|
-
# A ViewSet
|
69
|
-
# @param
|
55
|
+
# Inspect an ostree commit
|
56
|
+
# A ViewSet class for OSTree commits.
|
57
|
+
# @param ostree_ostree_commit_href
|
70
58
|
# @param [Hash] opts the optional parameters
|
71
59
|
# @option opts [String] :fields A list of fields to include in the response.
|
72
60
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
73
|
-
# @return [
|
61
|
+
# @return [OstreeOstreeCommitResponse]
|
74
62
|
describe 'read test' do
|
75
63
|
it 'should work' do
|
76
64
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,68 @@
|
|
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
|
+
|
16
|
+
# Unit tests for PulpOstreeClient::ContentConfigsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentConfigsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpOstreeClient::ContentConfigsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentConfigsApi' do
|
30
|
+
it 'should create an instance of ContentConfigsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpOstreeClient::ContentConfigsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list
|
36
|
+
# List ostree configs
|
37
|
+
# A ViewSet class for OSTree repository configurations.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
40
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
42
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
43
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
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.
|
47
|
+
# @return [PaginatedostreeOstreeConfigResponseList]
|
48
|
+
describe 'list test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for read
|
55
|
+
# Inspect an ostree config
|
56
|
+
# A ViewSet class for OSTree repository configurations.
|
57
|
+
# @param ostree_ostree_config_href
|
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.
|
61
|
+
# @return [OstreeOstreeConfigResponse]
|
62
|
+
describe 'read test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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
|
+
|
16
|
+
# Unit tests for PulpOstreeClient::ContentObjectsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentObjectsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpOstreeClient::ContentObjectsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentObjectsApi' do
|
30
|
+
it 'should create an instance of ContentObjectsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpOstreeClient::ContentObjectsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for list
|
36
|
+
# List ostree objects
|
37
|
+
# A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
40
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
42
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
43
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
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.
|
47
|
+
# @return [PaginatedostreeOstreeObjectResponseList]
|
48
|
+
describe 'list test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for read
|
55
|
+
# Inspect an ostree object
|
56
|
+
# A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
|
57
|
+
# @param ostree_ostree_object_href
|
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.
|
61
|
+
# @return [OstreeOstreeObjectResponse]
|
62
|
+
describe 'read test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|