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.

Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -23
  3. data/docs/ContentCommitsApi.md +138 -0
  4. data/docs/ContentConfigsApi.md +138 -0
  5. data/docs/ContentObjectsApi.md +138 -0
  6. data/docs/ContentRefsApi.md +138 -0
  7. data/docs/{ContentOstreeApi.md → ContentSummariesApi.md} +21 -75
  8. data/docs/DistributionsOstreeApi.md +3 -3
  9. data/docs/OstreeOstreeCommitResponse.md +25 -0
  10. data/docs/OstreeOstreeConfigResponse.md +21 -0
  11. data/docs/OstreeOstreeDistribution.md +2 -2
  12. data/docs/OstreeOstreeDistributionResponse.md +2 -2
  13. data/docs/OstreeOstreeObjectResponse.md +27 -0
  14. data/docs/OstreeOstreeRefResponse.md +25 -0
  15. data/docs/OstreeOstreeRemote.md +4 -2
  16. data/docs/OstreeOstreeRemoteResponse.md +4 -2
  17. data/docs/OstreeOstreeRepository.md +3 -3
  18. data/docs/OstreeOstreeRepositoryResponse.md +3 -3
  19. data/docs/{OstreeOstreeContentResponse.md → OstreeOstreeSummaryResponse.md} +2 -2
  20. data/docs/OstreeRepoImport.md +23 -0
  21. data/docs/{PaginatedostreeOstreePublicationResponseList.md → PaginatedostreeOstreeCommitResponseList.md} +3 -3
  22. data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
  23. data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
  24. data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
  25. data/docs/{PaginatedostreeOstreeContentResponseList.md → PaginatedostreeOstreeSummaryResponseList.md} +3 -3
  26. data/docs/PatchedostreeOstreeDistribution.md +2 -2
  27. data/docs/PatchedostreeOstreeRemote.md +4 -2
  28. data/docs/PatchedostreeOstreeRepository.md +3 -3
  29. data/docs/RemotesOstreeApi.md +4 -4
  30. data/docs/RepositoriesOstreeApi.md +60 -4
  31. data/docs/RepositoriesOstreeVersionsApi.md +3 -3
  32. data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
  33. data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
  34. data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
  35. data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
  36. data/lib/pulp_ostree_client/api/{content_ostree_api.rb → content_summaries_api.rb} +29 -93
  37. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +4 -4
  38. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +6 -6
  39. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +76 -6
  40. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +4 -4
  41. data/lib/pulp_ostree_client/configuration.rb +2 -2
  42. data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
  43. data/lib/pulp_ostree_client/models/{ostree_ostree_publication_response.rb → ostree_ostree_config_response.rb} +17 -21
  44. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +10 -10
  45. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +10 -10
  46. data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
  47. data/lib/pulp_ostree_client/models/{ostree_ostree_content.rb → ostree_ostree_ref_response.rb} +47 -15
  48. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +34 -7
  49. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +34 -7
  50. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +18 -17
  51. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +18 -17
  52. data/lib/pulp_ostree_client/models/{ostree_ostree_content_response.rb → ostree_ostree_summary_response.rb} +4 -4
  53. data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
  54. data/lib/pulp_ostree_client/models/{paginatedostree_ostree_publication_response_list.rb → paginatedostree_ostree_commit_response_list.rb} +4 -4
  55. data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
  56. data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
  57. data/lib/pulp_ostree_client/models/{ostree_ostree_publication.rb → paginatedostree_ostree_ref_response_list.rb} +38 -18
  58. data/lib/pulp_ostree_client/models/{paginatedostree_ostree_content_response_list.rb → paginatedostree_ostree_summary_response_list.rb} +4 -4
  59. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +10 -10
  60. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +34 -7
  61. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +18 -17
  62. data/lib/pulp_ostree_client/models/policy_enum.rb +1 -1
  63. data/lib/pulp_ostree_client/version.rb +1 -1
  64. data/lib/pulp_ostree_client.rb +16 -8
  65. data/spec/api/{content_ostree_api_spec.rb → content_commits_api_spec.rb} +13 -25
  66. data/spec/api/content_configs_api_spec.rb +68 -0
  67. data/spec/api/content_objects_api_spec.rb +68 -0
  68. data/spec/api/content_refs_api_spec.rb +68 -0
  69. data/spec/api/content_summaries_api_spec.rb +68 -0
  70. data/spec/api/distributions_ostree_api_spec.rb +2 -2
  71. data/spec/api/remotes_ostree_api_spec.rb +3 -3
  72. data/spec/api/repositories_ostree_api_spec.rb +16 -3
  73. data/spec/api/repositories_ostree_versions_api_spec.rb +2 -2
  74. data/spec/configuration_spec.rb +3 -3
  75. data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
  76. data/spec/models/{ostree_ostree_content_spec.rb → ostree_ostree_config_response_spec.rb} +14 -8
  77. data/spec/models/ostree_ostree_distribution_response_spec.rb +1 -1
  78. data/spec/models/ostree_ostree_distribution_spec.rb +1 -1
  79. data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
  80. data/spec/models/{ostree_ostree_publication_response_spec.rb → ostree_ostree_ref_response_spec.rb} +14 -8
  81. data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
  82. data/spec/models/ostree_ostree_remote_spec.rb +6 -0
  83. data/spec/models/ostree_ostree_repository_response_spec.rb +1 -1
  84. data/spec/models/ostree_ostree_repository_spec.rb +1 -1
  85. data/spec/models/{ostree_ostree_content_response_spec.rb → ostree_ostree_summary_response_spec.rb} +6 -6
  86. data/spec/models/ostree_repo_import_spec.rb +59 -0
  87. data/spec/models/{paginatedostree_ostree_publication_response_list_spec.rb → paginatedostree_ostree_commit_response_list_spec.rb} +6 -6
  88. data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
  89. data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
  90. data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
  91. data/spec/models/{paginatedostree_ostree_content_response_list_spec.rb → paginatedostree_ostree_summary_response_list_spec.rb} +6 -6
  92. data/spec/models/patchedostree_ostree_distribution_spec.rb +1 -1
  93. data/spec/models/patchedostree_ostree_remote_spec.rb +6 -0
  94. data/spec/models/patchedostree_ostree_repository_spec.rb +1 -1
  95. metadata +81 -49
  96. data/docs/OstreeOstreeContent.md +0 -19
  97. data/docs/OstreeOstreePublication.md +0 -19
  98. data/docs/OstreeOstreePublicationResponse.md +0 -23
  99. data/docs/PublicationsOstreeApi.md +0 -257
  100. data/lib/pulp_ostree_client/api/publications_ostree_api.rb +0 -312
  101. data/spec/api/publications_ostree_api_spec.rb +0 -98
  102. 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 for OstreeRemote. Add any new fields if defined on OstreeRemote. Similar to the example above, in OstreeContentSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RemoteSerializer.Meta.validators + [myValidator1, myValidator2] By default the 'policy' field in platform.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows:: policy = serializers.ChoiceField( help_text=\"The policy to use when downloading content. The possible values include: \" \"'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.\", choices=models.Remote.POLICY_CHOICES, default=models.Remote.IMMEDIATE )
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
- # The policy to use when downloading content.
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 OstreeRepository. Add any new fields if defined on OstreeRepository. Similar to the example above, in OstreeContentSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
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 :retained_versions
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
- :'retained_versions' => :'retained_versions',
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
- :'retained_versions' => :'Integer',
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
- :'retained_versions',
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?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
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 !@retained_versions.nil? && @retained_versions < 1
103
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
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 !@retained_versions.nil? && @retained_versions < 1
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] retained_versions Value to be assigned
118
- def retained_versions=(retained_versions)
119
- if !retained_versions.nil? && retained_versions < 1
120
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
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
- @retained_versions = retained_versions
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
- retained_versions == o.retained_versions &&
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, retained_versions, remote].hash
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
- WHEN_SYNCING_DOWNLOAD_ALL_METADATA_AND_CONTENT_NOW = "When syncing, download all metadata and content now.".freeze
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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpOstreeClient
14
- VERSION = '2.0.0a1.dev1626751709'
14
+ VERSION = '2.0.0a1.dev1631416829'
15
15
  end
@@ -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/ostree_ostree_content'
24
- require 'pulp_ostree_client/models/ostree_ostree_content_response'
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/ostree_ostree_publication'
28
- require 'pulp_ostree_client/models/ostree_ostree_publication_response'
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/paginatedostree_ostree_content_response_list'
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/paginatedostree_ostree_publication_response_list'
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/content_ostree_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::ContentOstreeApi
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 'ContentOstreeApi' do
19
+ describe 'ContentCommitsApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = PulpOstreeClient::ContentOstreeApi.new
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 ContentOstreeApi' do
30
- it 'should create an instance of ContentOstreeApi' do
31
- expect(@api_instance).to be_instance_of(PulpOstreeClient::ContentOstreeApi)
32
- end
33
- end
34
-
35
- # unit tests for create
36
- # Create an ostree content
37
- # Perform bookkeeping when saving Content. \&quot;Artifacts\&quot; 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 contents
49
- # A ViewSet for OstreeContent. Define endpoint name which will appear in the API endpoint for this content type. For example:: https://pulp.example.com/pulp/api/v3/content/ostree/units/ Also specify queryset and serializer for OstreeContent.
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 [PaginatedostreeOstreeContentResponseList]
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 content
68
- # A ViewSet for OstreeContent. Define endpoint name which will appear in the API endpoint for this content type. For example:: https://pulp.example.com/pulp/api/v3/content/ostree/units/ Also specify queryset and serializer for OstreeContent.
69
- # @param ostree_ostree_content_href
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 [OstreeOstreeContentResponse]
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