pulp_ostree_client 2.0.0a1 → 2.0.0a2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/ContentCommitsApi.md +2 -0
  4. data/docs/ContentObjectsApi.md +2 -0
  5. data/docs/ContentRefsApi.md +12 -0
  6. data/docs/OstreeOstreeCommitResponse.md +5 -1
  7. data/docs/OstreeOstreeConfigResponse.md +3 -1
  8. data/docs/OstreeOstreeObjectResponse.md +2 -2
  9. data/docs/OstreeOstreeRefResponse.md +4 -0
  10. data/docs/OstreeOstreeSummaryResponse.md +3 -1
  11. data/docs/{RepositoryAddRemoveContent.md → OstreeRepositoryAddRemoveContent.md} +2 -2
  12. data/docs/RepositoriesOstreeApi.md +8 -8
  13. data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
  14. data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
  15. data/lib/pulp_ostree_client/api/content_refs_api.rb +18 -0
  16. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +13 -13
  17. data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +35 -4
  18. data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +19 -4
  19. data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +11 -10
  20. data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +25 -1
  21. data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +19 -4
  22. data/lib/pulp_ostree_client/models/{repository_add_remove_content.rb → ostree_repository_add_remove_content.rb} +4 -4
  23. data/lib/pulp_ostree_client/version.rb +1 -1
  24. data/lib/pulp_ostree_client.rb +1 -1
  25. data/spec/api/content_commits_api_spec.rb +1 -0
  26. data/spec/api/content_objects_api_spec.rb +1 -0
  27. data/spec/api/content_refs_api_spec.rb +6 -0
  28. data/spec/api/repositories_ostree_api_spec.rb +3 -3
  29. data/spec/models/ostree_ostree_commit_response_spec.rb +12 -0
  30. data/spec/models/ostree_ostree_config_response_spec.rb +6 -0
  31. data/spec/models/ostree_ostree_object_response_spec.rb +1 -1
  32. data/spec/models/ostree_ostree_ref_response_spec.rb +12 -0
  33. data/spec/models/ostree_ostree_summary_response_spec.rb +6 -0
  34. data/spec/models/{repository_add_remove_content_spec.rb → ostree_repository_add_remove_content_spec.rb} +6 -6
  35. metadata +30 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c263bb2409ae8957279ac0a95f577122a2a7d168e3e5b0fa7bb1f0a0780741ec
4
- data.tar.gz: 213166cfe96d69d53227de1a2aa8f08ce0a9148f1e7f071c4ca551c803ae0997
3
+ metadata.gz: 8c94bab247a576719f46c515c8214f4e23c561f2595f168190c9ed248c27c784
4
+ data.tar.gz: 13d658a4c64b422d63fc350712da03bb3fac75c142e545d9c31d018c9062372a
5
5
  SHA512:
6
- metadata.gz: c46daf80e796483a517a3ff7f5d26f78e87b2d6b390cc151e9547ed6a6c00a09df4237e4d8ee8978b03cedba2dca35afb06266418d3b56e72cc028e2eb39e6fe
7
- data.tar.gz: 310dddc3cf6b2d7479be4f89228db76382649bb07ae985e5d8a023b23aff53c65393a5b3c371978be9d1b216c07a3a8e4889a3f3c793096b93ac7422ad44bd8e
6
+ metadata.gz: 4820a9bba716d485f803e8c328baae58ac31795c28a853f866082a91f7e88debad951e99e922cf75b68763dceaf5c555756b5cd2e557f597b4c7d17c46fef40b
7
+ data.tar.gz: 830b6be7d642b712b13975891f9ce36c9cd607e673e422ff1c908132362a848b03a4714ea7bc531cbc4d21eb8e269a7a3a00e1bb139f4f3435e3487cd7e46ad6
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
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: 2.0.0a1
10
+ - Package version: 2.0.0a2
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_ostree_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_ostree_client-2.0.0a1.gem
27
+ gem install ./pulp_ostree_client-2.0.0a2.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_ostree_client-2.0.0a1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_ostree_client-2.0.0a2.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_ostree_client', '~> 2.0.0a1'
36
+ gem 'pulp_ostree_client', '~> 2.0.0a2'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -66,6 +66,7 @@ end
66
66
 
67
67
  api_instance = PulpOstreeClient::ContentCommitsApi.new
68
68
  opts = {
69
+ checksum: 'checksum_example', # String | Filter results where checksum matches value
69
70
  limit: 56, # Integer | Number of results to return per page.
70
71
  offset: 56, # Integer | The initial index from which to return the results.
71
72
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
@@ -118,7 +119,7 @@ Class | Method | HTTP request | Description
118
119
  *PulpOstreeClient::RepositoriesOstreeApi* | [**delete**](docs/RepositoriesOstreeApi.md#delete) | **DELETE** {ostree_ostree_repository_href} | Delete an ostree repository
119
120
  *PulpOstreeClient::RepositoriesOstreeApi* | [**import_commits**](docs/RepositoriesOstreeApi.md#import_commits) | **POST** {ostree_ostree_repository_href}import_commits/ | Import commits to a repository
120
121
  *PulpOstreeClient::RepositoriesOstreeApi* | [**list**](docs/RepositoriesOstreeApi.md#list) | **GET** /pulp/api/v3/repositories/ostree/ostree/ | List ostree repositorys
121
- *PulpOstreeClient::RepositoriesOstreeApi* | [**modify**](docs/RepositoriesOstreeApi.md#modify) | **POST** {ostree_ostree_repository_href}modify/ | Modify Repository Content
122
+ *PulpOstreeClient::RepositoriesOstreeApi* | [**modify**](docs/RepositoriesOstreeApi.md#modify) | **POST** {ostree_ostree_repository_href}modify/ | Modify repository
122
123
  *PulpOstreeClient::RepositoriesOstreeApi* | [**partial_update**](docs/RepositoriesOstreeApi.md#partial_update) | **PATCH** {ostree_ostree_repository_href} | Update an ostree repository
123
124
  *PulpOstreeClient::RepositoriesOstreeApi* | [**read**](docs/RepositoriesOstreeApi.md#read) | **GET** {ostree_ostree_repository_href} | Inspect an ostree repository
124
125
  *PulpOstreeClient::RepositoriesOstreeApi* | [**sync**](docs/RepositoriesOstreeApi.md#sync) | **POST** {ostree_ostree_repository_href}sync/ | Sync from remote
@@ -146,6 +147,7 @@ Class | Method | HTTP request | Description
146
147
  - [PulpOstreeClient::OstreeOstreeRepositoryResponse](docs/OstreeOstreeRepositoryResponse.md)
147
148
  - [PulpOstreeClient::OstreeOstreeSummaryResponse](docs/OstreeOstreeSummaryResponse.md)
148
149
  - [PulpOstreeClient::OstreeRepoImport](docs/OstreeRepoImport.md)
150
+ - [PulpOstreeClient::OstreeRepositoryAddRemoveContent](docs/OstreeRepositoryAddRemoveContent.md)
149
151
  - [PulpOstreeClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
150
152
  - [PulpOstreeClient::PaginatedostreeOstreeCommitResponseList](docs/PaginatedostreeOstreeCommitResponseList.md)
151
153
  - [PulpOstreeClient::PaginatedostreeOstreeConfigResponseList](docs/PaginatedostreeOstreeConfigResponseList.md)
@@ -159,7 +161,6 @@ Class | Method | HTTP request | Description
159
161
  - [PulpOstreeClient::PatchedostreeOstreeRemote](docs/PatchedostreeOstreeRemote.md)
160
162
  - [PulpOstreeClient::PatchedostreeOstreeRepository](docs/PatchedostreeOstreeRepository.md)
161
163
  - [PulpOstreeClient::PolicyEnum](docs/PolicyEnum.md)
162
- - [PulpOstreeClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
163
164
  - [PulpOstreeClient::RepositorySyncURL](docs/RepositorySyncURL.md)
164
165
  - [PulpOstreeClient::RepositoryVersion](docs/RepositoryVersion.md)
165
166
  - [PulpOstreeClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
@@ -31,6 +31,7 @@ end
31
31
 
32
32
  api_instance = PulpOstreeClient::ContentCommitsApi.new
33
33
  opts = {
34
+ checksum: 'checksum_example', # String | Filter results where checksum matches value
34
35
  limit: 56, # Integer | Number of results to return per page.
35
36
  offset: 56, # Integer | The initial index from which to return the results.
36
37
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
@@ -55,6 +56,7 @@ end
55
56
 
56
57
  Name | Type | Description | Notes
57
58
  ------------- | ------------- | ------------- | -------------
59
+ **checksum** | **String**| Filter results where checksum matches value | [optional]
58
60
  **limit** | **Integer**| Number of results to return per page. | [optional]
59
61
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
60
62
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
@@ -31,6 +31,7 @@ end
31
31
 
32
32
  api_instance = PulpOstreeClient::ContentObjectsApi.new
33
33
  opts = {
34
+ checksum: 'checksum_example', # String | Filter results where checksum matches value
34
35
  limit: 56, # Integer | Number of results to return per page.
35
36
  offset: 56, # Integer | The initial index from which to return the results.
36
37
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
@@ -55,6 +56,7 @@ end
55
56
 
56
57
  Name | Type | Description | Notes
57
58
  ------------- | ------------- | ------------- | -------------
59
+ **checksum** | **String**| Filter results where checksum matches value | [optional]
58
60
  **limit** | **Integer**| Number of results to return per page. | [optional]
59
61
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
60
62
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
@@ -31,7 +31,13 @@ end
31
31
 
32
32
  api_instance = PulpOstreeClient::ContentRefsApi.new
33
33
  opts = {
34
+ checksum: 'checksum_example', # String |
34
35
  limit: 56, # Integer | Number of results to return per page.
36
+ name: 'name_example', # String | Filter results where name matches value
37
+ name__contains: 'name__contains_example', # String | Filter results where name contains value
38
+ name__icontains: 'name__icontains_example', # String | Filter results where name contains value
39
+ name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
40
+ name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
35
41
  offset: 56, # Integer | The initial index from which to return the results.
36
42
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
37
43
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
@@ -55,7 +61,13 @@ end
55
61
 
56
62
  Name | Type | Description | Notes
57
63
  ------------- | ------------- | ------------- | -------------
64
+ **checksum** | **String**| | [optional]
58
65
  **limit** | **Integer**| Number of results to return per page. | [optional]
66
+ **name** | **String**| Filter results where name matches value | [optional]
67
+ **name__contains** | **String**| Filter results where name contains value | [optional]
68
+ **name__icontains** | **String**| Filter results where name contains value | [optional]
69
+ **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
70
+ **name__startswith** | **String**| Filter results where name starts with value | [optional]
59
71
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
60
72
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
61
73
  **repository_version** | **String**| Repository Version referenced by HREF | [optional]
@@ -7,8 +7,10 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **artifact** | **String** | Artifact file representing the physical content |
10
+ **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
10
11
  **parent_commit** | **String** | | [optional]
11
12
  **checksum** | **String** | |
13
+ **objs** | **Array&lt;String&gt;** | |
12
14
 
13
15
  ## Code Sample
14
16
 
@@ -18,8 +20,10 @@ require 'PulpOstreeClient'
18
20
  instance = PulpOstreeClient::OstreeOstreeCommitResponse.new(pulp_href: null,
19
21
  pulp_created: null,
20
22
  artifact: null,
23
+ relative_path: null,
21
24
  parent_commit: null,
22
- checksum: null)
25
+ checksum: null,
26
+ objs: null)
23
27
  ```
24
28
 
25
29
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **artifact** | **String** | Artifact file representing the physical content |
10
+ **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
10
11
 
11
12
  ## Code Sample
12
13
 
@@ -15,7 +16,8 @@ require 'PulpOstreeClient'
15
16
 
16
17
  instance = PulpOstreeClient::OstreeOstreeConfigResponse.new(pulp_href: null,
17
18
  pulp_created: null,
18
- artifact: null)
19
+ artifact: null,
20
+ relative_path: null)
19
21
  ```
20
22
 
21
23
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **artifact** | **String** | Artifact file representing the physical content |
10
- **commit** | **String** | |
10
+ **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
11
11
  **checksum** | **String** | |
12
12
  **typ** | **Integer** | The type of an object. All values are described by the mapping declared at https://lazka.github.io/pgi-docs/OSTree-1.0/enums.html#OSTree.ObjectType |
13
13
 
@@ -19,7 +19,7 @@ require 'PulpOstreeClient'
19
19
  instance = PulpOstreeClient::OstreeOstreeObjectResponse.new(pulp_href: null,
20
20
  pulp_created: null,
21
21
  artifact: null,
22
- commit: null,
22
+ relative_path: null,
23
23
  checksum: null,
24
24
  typ: null)
25
25
  ```
@@ -7,7 +7,9 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **artifact** | **String** | Artifact file representing the physical content |
10
+ **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
10
11
  **commit** | **String** | |
12
+ **checksum** | **String** | | [optional] [readonly]
11
13
  **name** | **String** | |
12
14
 
13
15
  ## Code Sample
@@ -18,7 +20,9 @@ require 'PulpOstreeClient'
18
20
  instance = PulpOstreeClient::OstreeOstreeRefResponse.new(pulp_href: null,
19
21
  pulp_created: null,
20
22
  artifact: null,
23
+ relative_path: null,
21
24
  commit: null,
25
+ checksum: null,
22
26
  name: null)
23
27
  ```
24
28
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **artifact** | **String** | Artifact file representing the physical content |
10
+ **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
10
11
 
11
12
  ## Code Sample
12
13
 
@@ -15,7 +16,8 @@ require 'PulpOstreeClient'
15
16
 
16
17
  instance = PulpOstreeClient::OstreeOstreeSummaryResponse.new(pulp_href: null,
17
18
  pulp_created: null,
18
- artifact: null)
19
+ artifact: null,
20
+ relative_path: null)
19
21
  ```
20
22
 
21
23
 
@@ -1,4 +1,4 @@
1
- # PulpOstreeClient::RepositoryAddRemoveContent
1
+ # PulpOstreeClient::OstreeRepositoryAddRemoveContent
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  ```ruby
14
14
  require 'PulpOstreeClient'
15
15
 
16
- instance = PulpOstreeClient::RepositoryAddRemoveContent.new(add_content_units: null,
16
+ instance = PulpOstreeClient::OstreeRepositoryAddRemoveContent.new(add_content_units: null,
17
17
  remove_content_units: null,
18
18
  base_version: null)
19
19
  ```
@@ -8,7 +8,7 @@ Method | HTTP request | Description
8
8
  [**delete**](RepositoriesOstreeApi.md#delete) | **DELETE** {ostree_ostree_repository_href} | Delete an ostree repository
9
9
  [**import_commits**](RepositoriesOstreeApi.md#import_commits) | **POST** {ostree_ostree_repository_href}import_commits/ | Import commits to a repository
10
10
  [**list**](RepositoriesOstreeApi.md#list) | **GET** /pulp/api/v3/repositories/ostree/ostree/ | List ostree repositorys
11
- [**modify**](RepositoriesOstreeApi.md#modify) | **POST** {ostree_ostree_repository_href}modify/ | Modify Repository Content
11
+ [**modify**](RepositoriesOstreeApi.md#modify) | **POST** {ostree_ostree_repository_href}modify/ | Modify repository
12
12
  [**partial_update**](RepositoriesOstreeApi.md#partial_update) | **PATCH** {ostree_ostree_repository_href} | Update an ostree repository
13
13
  [**read**](RepositoriesOstreeApi.md#read) | **GET** {ostree_ostree_repository_href} | Inspect an ostree repository
14
14
  [**sync**](RepositoriesOstreeApi.md#sync) | **POST** {ostree_ostree_repository_href}sync/ | Sync from remote
@@ -254,11 +254,11 @@ Name | Type | Description | Notes
254
254
 
255
255
  ## modify
256
256
 
257
- > AsyncOperationResponse modify(ostree_ostree_repository_href, repository_add_remove_content)
257
+ > AsyncOperationResponse modify(ostree_ostree_repository_href, ostree_repository_add_remove_content)
258
258
 
259
- Modify Repository Content
259
+ Modify repository
260
260
 
261
- Trigger an asynchronous task to create a new repository version.
261
+ Trigger an asynchronous task to modify content.
262
262
 
263
263
  ### Example
264
264
 
@@ -274,11 +274,11 @@ end
274
274
 
275
275
  api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
276
276
  ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
277
- repository_add_remove_content = PulpOstreeClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
277
+ ostree_repository_add_remove_content = PulpOstreeClient::OstreeRepositoryAddRemoveContent.new # OstreeRepositoryAddRemoveContent |
278
278
 
279
279
  begin
280
- #Modify Repository Content
281
- result = api_instance.modify(ostree_ostree_repository_href, repository_add_remove_content)
280
+ #Modify repository
281
+ result = api_instance.modify(ostree_ostree_repository_href, ostree_repository_add_remove_content)
282
282
  p result
283
283
  rescue PulpOstreeClient::ApiError => e
284
284
  puts "Exception when calling RepositoriesOstreeApi->modify: #{e}"
@@ -291,7 +291,7 @@ end
291
291
  Name | Type | Description | Notes
292
292
  ------------- | ------------- | ------------- | -------------
293
293
  **ostree_ostree_repository_href** | **String**| |
294
- **repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
294
+ **ostree_repository_add_remove_content** | [**OstreeRepositoryAddRemoveContent**](OstreeRepositoryAddRemoveContent.md)| |
295
295
 
296
296
  ### Return type
297
297
 
@@ -22,6 +22,7 @@ module PulpOstreeClient
22
22
  # List ostree commits
23
23
  # A ViewSet class for OSTree commits.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :checksum Filter results where checksum matches value
25
26
  # @option opts [Integer] :limit Number of results to return per page.
26
27
  # @option opts [Integer] :offset The initial index from which to return the results.
27
28
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -39,6 +40,7 @@ module PulpOstreeClient
39
40
  # List ostree commits
40
41
  # A ViewSet class for OSTree commits.
41
42
  # @param [Hash] opts the optional parameters
43
+ # @option opts [String] :checksum Filter results where checksum matches value
42
44
  # @option opts [Integer] :limit Number of results to return per page.
43
45
  # @option opts [Integer] :offset The initial index from which to return the results.
44
46
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -57,6 +59,7 @@ module PulpOstreeClient
57
59
 
58
60
  # query parameters
59
61
  query_params = opts[:query_params] || {}
62
+ query_params[:'checksum'] = opts[:'checksum'] if !opts[:'checksum'].nil?
60
63
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
64
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
65
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -22,6 +22,7 @@ module PulpOstreeClient
22
22
  # List ostree objects
23
23
  # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :checksum Filter results where checksum matches value
25
26
  # @option opts [Integer] :limit Number of results to return per page.
26
27
  # @option opts [Integer] :offset The initial index from which to return the results.
27
28
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -39,6 +40,7 @@ module PulpOstreeClient
39
40
  # List ostree objects
40
41
  # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
41
42
  # @param [Hash] opts the optional parameters
43
+ # @option opts [String] :checksum Filter results where checksum matches value
42
44
  # @option opts [Integer] :limit Number of results to return per page.
43
45
  # @option opts [Integer] :offset The initial index from which to return the results.
44
46
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -57,6 +59,7 @@ module PulpOstreeClient
57
59
 
58
60
  # query parameters
59
61
  query_params = opts[:query_params] || {}
62
+ query_params[:'checksum'] = opts[:'checksum'] if !opts[:'checksum'].nil?
60
63
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
64
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
65
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -22,7 +22,13 @@ module PulpOstreeClient
22
22
  # List ostree refs
23
23
  # A ViewSet class for OSTree head commits.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :checksum
25
26
  # @option opts [Integer] :limit Number of results to return per page.
27
+ # @option opts [String] :name Filter results where name matches value
28
+ # @option opts [String] :name__contains Filter results where name contains value
29
+ # @option opts [String] :name__icontains Filter results where name contains value
30
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
31
+ # @option opts [String] :name__startswith Filter results where name starts with value
26
32
  # @option opts [Integer] :offset The initial index from which to return the results.
27
33
  # @option opts [String] :ordering Which field to use when ordering the results.
28
34
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -39,7 +45,13 @@ module PulpOstreeClient
39
45
  # List ostree refs
40
46
  # A ViewSet class for OSTree head commits.
41
47
  # @param [Hash] opts the optional parameters
48
+ # @option opts [String] :checksum
42
49
  # @option opts [Integer] :limit Number of results to return per page.
50
+ # @option opts [String] :name Filter results where name matches value
51
+ # @option opts [String] :name__contains Filter results where name contains value
52
+ # @option opts [String] :name__icontains Filter results where name contains value
53
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
54
+ # @option opts [String] :name__startswith Filter results where name starts with value
43
55
  # @option opts [Integer] :offset The initial index from which to return the results.
44
56
  # @option opts [String] :ordering Which field to use when ordering the results.
45
57
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -57,7 +69,13 @@ module PulpOstreeClient
57
69
 
58
70
  # query parameters
59
71
  query_params = opts[:query_params] || {}
72
+ query_params[:'checksum'] = opts[:'checksum'] if !opts[:'checksum'].nil?
60
73
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
74
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
75
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
76
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
77
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
78
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
61
79
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
80
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
63
81
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -304,24 +304,24 @@ module PulpOstreeClient
304
304
  return data, status_code, headers
305
305
  end
306
306
 
307
- # Modify Repository Content
308
- # Trigger an asynchronous task to create a new repository version.
307
+ # Modify repository
308
+ # Trigger an asynchronous task to modify content.
309
309
  # @param ostree_ostree_repository_href [String]
310
- # @param repository_add_remove_content [RepositoryAddRemoveContent]
310
+ # @param ostree_repository_add_remove_content [OstreeRepositoryAddRemoveContent]
311
311
  # @param [Hash] opts the optional parameters
312
312
  # @return [AsyncOperationResponse]
313
- def modify(ostree_ostree_repository_href, repository_add_remove_content, opts = {})
314
- data, _status_code, _headers = modify_with_http_info(ostree_ostree_repository_href, repository_add_remove_content, opts)
313
+ def modify(ostree_ostree_repository_href, ostree_repository_add_remove_content, opts = {})
314
+ data, _status_code, _headers = modify_with_http_info(ostree_ostree_repository_href, ostree_repository_add_remove_content, opts)
315
315
  data
316
316
  end
317
317
 
318
- # Modify Repository Content
319
- # Trigger an asynchronous task to create a new repository version.
318
+ # Modify repository
319
+ # Trigger an asynchronous task to modify content.
320
320
  # @param ostree_ostree_repository_href [String]
321
- # @param repository_add_remove_content [RepositoryAddRemoveContent]
321
+ # @param ostree_repository_add_remove_content [OstreeRepositoryAddRemoveContent]
322
322
  # @param [Hash] opts the optional parameters
323
323
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
324
- def modify_with_http_info(ostree_ostree_repository_href, repository_add_remove_content, opts = {})
324
+ def modify_with_http_info(ostree_ostree_repository_href, ostree_repository_add_remove_content, opts = {})
325
325
  if @api_client.config.debugging
326
326
  @api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.modify ...'
327
327
  end
@@ -329,9 +329,9 @@ module PulpOstreeClient
329
329
  if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
330
330
  fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.modify"
331
331
  end
332
- # verify the required parameter 'repository_add_remove_content' is set
333
- if @api_client.config.client_side_validation && repository_add_remove_content.nil?
334
- fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesOstreeApi.modify"
332
+ # verify the required parameter 'ostree_repository_add_remove_content' is set
333
+ if @api_client.config.client_side_validation && ostree_repository_add_remove_content.nil?
334
+ fail ArgumentError, "Missing the required parameter 'ostree_repository_add_remove_content' when calling RepositoriesOstreeApi.modify"
335
335
  end
336
336
  # resource path
337
337
  local_var_path = '{ostree_ostree_repository_href}modify/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
@@ -350,7 +350,7 @@ module PulpOstreeClient
350
350
  form_params = opts[:form_params] || {}
351
351
 
352
352
  # http body (model)
353
- post_body = opts[:body] || @api_client.object_to_http_body(repository_add_remove_content)
353
+ post_body = opts[:body] || @api_client.object_to_http_body(ostree_repository_add_remove_content)
354
354
 
355
355
  # return_type
356
356
  return_type = opts[:return_type] || 'AsyncOperationResponse'
@@ -23,18 +23,25 @@ module PulpOstreeClient
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
26
+ # Path where the artifact is located relative to distributions base_path
27
+ attr_accessor :relative_path
28
+
26
29
  attr_accessor :parent_commit
27
30
 
28
31
  attr_accessor :checksum
29
32
 
33
+ attr_accessor :objs
34
+
30
35
  # Attribute mapping from ruby-style variable name to JSON key.
31
36
  def self.attribute_map
32
37
  {
33
38
  :'pulp_href' => :'pulp_href',
34
39
  :'pulp_created' => :'pulp_created',
35
40
  :'artifact' => :'artifact',
41
+ :'relative_path' => :'relative_path',
36
42
  :'parent_commit' => :'parent_commit',
37
- :'checksum' => :'checksum'
43
+ :'checksum' => :'checksum',
44
+ :'objs' => :'objs'
38
45
  }
39
46
  end
40
47
 
@@ -44,8 +51,10 @@ module PulpOstreeClient
44
51
  :'pulp_href' => :'String',
45
52
  :'pulp_created' => :'DateTime',
46
53
  :'artifact' => :'String',
54
+ :'relative_path' => :'String',
47
55
  :'parent_commit' => :'String',
48
- :'checksum' => :'String'
56
+ :'checksum' => :'String',
57
+ :'objs' => :'Array<String>'
49
58
  }
50
59
  end
51
60
 
@@ -83,6 +92,10 @@ module PulpOstreeClient
83
92
  self.artifact = attributes[:'artifact']
84
93
  end
85
94
 
95
+ if attributes.key?(:'relative_path')
96
+ self.relative_path = attributes[:'relative_path']
97
+ end
98
+
86
99
  if attributes.key?(:'parent_commit')
87
100
  self.parent_commit = attributes[:'parent_commit']
88
101
  end
@@ -90,6 +103,12 @@ module PulpOstreeClient
90
103
  if attributes.key?(:'checksum')
91
104
  self.checksum = attributes[:'checksum']
92
105
  end
106
+
107
+ if attributes.key?(:'objs')
108
+ if (value = attributes[:'objs']).is_a?(Array)
109
+ self.objs = value
110
+ end
111
+ end
93
112
  end
94
113
 
95
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -100,10 +119,18 @@ module PulpOstreeClient
100
119
  invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
101
120
  end
102
121
 
122
+ if @relative_path.nil?
123
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
124
+ end
125
+
103
126
  if @checksum.nil?
104
127
  invalid_properties.push('invalid value for "checksum", checksum cannot be nil.')
105
128
  end
106
129
 
130
+ if @objs.nil?
131
+ invalid_properties.push('invalid value for "objs", objs cannot be nil.')
132
+ end
133
+
107
134
  invalid_properties
108
135
  end
109
136
 
@@ -111,7 +138,9 @@ module PulpOstreeClient
111
138
  # @return true if the model is valid
112
139
  def valid?
113
140
  return false if @artifact.nil?
141
+ return false if @relative_path.nil?
114
142
  return false if @checksum.nil?
143
+ return false if @objs.nil?
115
144
  true
116
145
  end
117
146
 
@@ -123,8 +152,10 @@ module PulpOstreeClient
123
152
  pulp_href == o.pulp_href &&
124
153
  pulp_created == o.pulp_created &&
125
154
  artifact == o.artifact &&
155
+ relative_path == o.relative_path &&
126
156
  parent_commit == o.parent_commit &&
127
- checksum == o.checksum
157
+ checksum == o.checksum &&
158
+ objs == o.objs
128
159
  end
129
160
 
130
161
  # @see the `==` method
@@ -136,7 +167,7 @@ module PulpOstreeClient
136
167
  # Calculates hash code according to all attributes.
137
168
  # @return [Integer] Hash code
138
169
  def hash
139
- [pulp_href, pulp_created, artifact, parent_commit, checksum].hash
170
+ [pulp_href, pulp_created, artifact, relative_path, parent_commit, checksum, objs].hash
140
171
  end
141
172
 
142
173
  # Builds the object from hash
@@ -23,12 +23,16 @@ module PulpOstreeClient
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
26
+ # Path where the artifact is located relative to distributions base_path
27
+ attr_accessor :relative_path
28
+
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
27
30
  def self.attribute_map
28
31
  {
29
32
  :'pulp_href' => :'pulp_href',
30
33
  :'pulp_created' => :'pulp_created',
31
- :'artifact' => :'artifact'
34
+ :'artifact' => :'artifact',
35
+ :'relative_path' => :'relative_path'
32
36
  }
33
37
  end
34
38
 
@@ -37,7 +41,8 @@ module PulpOstreeClient
37
41
  {
38
42
  :'pulp_href' => :'String',
39
43
  :'pulp_created' => :'DateTime',
40
- :'artifact' => :'String'
44
+ :'artifact' => :'String',
45
+ :'relative_path' => :'String'
41
46
  }
42
47
  end
43
48
 
@@ -73,6 +78,10 @@ module PulpOstreeClient
73
78
  if attributes.key?(:'artifact')
74
79
  self.artifact = attributes[:'artifact']
75
80
  end
81
+
82
+ if attributes.key?(:'relative_path')
83
+ self.relative_path = attributes[:'relative_path']
84
+ end
76
85
  end
77
86
 
78
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -83,6 +92,10 @@ module PulpOstreeClient
83
92
  invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
84
93
  end
85
94
 
95
+ if @relative_path.nil?
96
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
97
+ end
98
+
86
99
  invalid_properties
87
100
  end
88
101
 
@@ -90,6 +103,7 @@ module PulpOstreeClient
90
103
  # @return true if the model is valid
91
104
  def valid?
92
105
  return false if @artifact.nil?
106
+ return false if @relative_path.nil?
93
107
  true
94
108
  end
95
109
 
@@ -100,7 +114,8 @@ module PulpOstreeClient
100
114
  self.class == o.class &&
101
115
  pulp_href == o.pulp_href &&
102
116
  pulp_created == o.pulp_created &&
103
- artifact == o.artifact
117
+ artifact == o.artifact &&
118
+ relative_path == o.relative_path
104
119
  end
105
120
 
106
121
  # @see the `==` method
@@ -112,7 +127,7 @@ module PulpOstreeClient
112
127
  # Calculates hash code according to all attributes.
113
128
  # @return [Integer] Hash code
114
129
  def hash
115
- [pulp_href, pulp_created, artifact].hash
130
+ [pulp_href, pulp_created, artifact, relative_path].hash
116
131
  end
117
132
 
118
133
  # Builds the object from hash
@@ -23,7 +23,8 @@ module PulpOstreeClient
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
26
- attr_accessor :commit
26
+ # Path where the artifact is located relative to distributions base_path
27
+ attr_accessor :relative_path
27
28
 
28
29
  attr_accessor :checksum
29
30
 
@@ -36,7 +37,7 @@ module PulpOstreeClient
36
37
  :'pulp_href' => :'pulp_href',
37
38
  :'pulp_created' => :'pulp_created',
38
39
  :'artifact' => :'artifact',
39
- :'commit' => :'commit',
40
+ :'relative_path' => :'relative_path',
40
41
  :'checksum' => :'checksum',
41
42
  :'typ' => :'typ'
42
43
  }
@@ -48,7 +49,7 @@ module PulpOstreeClient
48
49
  :'pulp_href' => :'String',
49
50
  :'pulp_created' => :'DateTime',
50
51
  :'artifact' => :'String',
51
- :'commit' => :'String',
52
+ :'relative_path' => :'String',
52
53
  :'checksum' => :'String',
53
54
  :'typ' => :'Integer'
54
55
  }
@@ -87,8 +88,8 @@ module PulpOstreeClient
87
88
  self.artifact = attributes[:'artifact']
88
89
  end
89
90
 
90
- if attributes.key?(:'commit')
91
- self.commit = attributes[:'commit']
91
+ if attributes.key?(:'relative_path')
92
+ self.relative_path = attributes[:'relative_path']
92
93
  end
93
94
 
94
95
  if attributes.key?(:'checksum')
@@ -108,8 +109,8 @@ module PulpOstreeClient
108
109
  invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
109
110
  end
110
111
 
111
- if @commit.nil?
112
- invalid_properties.push('invalid value for "commit", commit cannot be nil.')
112
+ if @relative_path.nil?
113
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
113
114
  end
114
115
 
115
116
  if @checksum.nil?
@@ -127,7 +128,7 @@ module PulpOstreeClient
127
128
  # @return true if the model is valid
128
129
  def valid?
129
130
  return false if @artifact.nil?
130
- return false if @commit.nil?
131
+ return false if @relative_path.nil?
131
132
  return false if @checksum.nil?
132
133
  return false if @typ.nil?
133
134
  true
@@ -141,7 +142,7 @@ module PulpOstreeClient
141
142
  pulp_href == o.pulp_href &&
142
143
  pulp_created == o.pulp_created &&
143
144
  artifact == o.artifact &&
144
- commit == o.commit &&
145
+ relative_path == o.relative_path &&
145
146
  checksum == o.checksum &&
146
147
  typ == o.typ
147
148
  end
@@ -155,7 +156,7 @@ module PulpOstreeClient
155
156
  # Calculates hash code according to all attributes.
156
157
  # @return [Integer] Hash code
157
158
  def hash
158
- [pulp_href, pulp_created, artifact, commit, checksum, typ].hash
159
+ [pulp_href, pulp_created, artifact, relative_path, checksum, typ].hash
159
160
  end
160
161
 
161
162
  # Builds the object from hash
@@ -23,8 +23,13 @@ module PulpOstreeClient
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
26
+ # Path where the artifact is located relative to distributions base_path
27
+ attr_accessor :relative_path
28
+
26
29
  attr_accessor :commit
27
30
 
31
+ attr_accessor :checksum
32
+
28
33
  attr_accessor :name
29
34
 
30
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,7 +38,9 @@ module PulpOstreeClient
33
38
  :'pulp_href' => :'pulp_href',
34
39
  :'pulp_created' => :'pulp_created',
35
40
  :'artifact' => :'artifact',
41
+ :'relative_path' => :'relative_path',
36
42
  :'commit' => :'commit',
43
+ :'checksum' => :'checksum',
37
44
  :'name' => :'name'
38
45
  }
39
46
  end
@@ -44,7 +51,9 @@ module PulpOstreeClient
44
51
  :'pulp_href' => :'String',
45
52
  :'pulp_created' => :'DateTime',
46
53
  :'artifact' => :'String',
54
+ :'relative_path' => :'String',
47
55
  :'commit' => :'String',
56
+ :'checksum' => :'String',
48
57
  :'name' => :'String'
49
58
  }
50
59
  end
@@ -82,10 +91,18 @@ module PulpOstreeClient
82
91
  self.artifact = attributes[:'artifact']
83
92
  end
84
93
 
94
+ if attributes.key?(:'relative_path')
95
+ self.relative_path = attributes[:'relative_path']
96
+ end
97
+
85
98
  if attributes.key?(:'commit')
86
99
  self.commit = attributes[:'commit']
87
100
  end
88
101
 
102
+ if attributes.key?(:'checksum')
103
+ self.checksum = attributes[:'checksum']
104
+ end
105
+
89
106
  if attributes.key?(:'name')
90
107
  self.name = attributes[:'name']
91
108
  end
@@ -99,6 +116,10 @@ module PulpOstreeClient
99
116
  invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
100
117
  end
101
118
 
119
+ if @relative_path.nil?
120
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
121
+ end
122
+
102
123
  if @commit.nil?
103
124
  invalid_properties.push('invalid value for "commit", commit cannot be nil.')
104
125
  end
@@ -114,6 +135,7 @@ module PulpOstreeClient
114
135
  # @return true if the model is valid
115
136
  def valid?
116
137
  return false if @artifact.nil?
138
+ return false if @relative_path.nil?
117
139
  return false if @commit.nil?
118
140
  return false if @name.nil?
119
141
  true
@@ -127,7 +149,9 @@ module PulpOstreeClient
127
149
  pulp_href == o.pulp_href &&
128
150
  pulp_created == o.pulp_created &&
129
151
  artifact == o.artifact &&
152
+ relative_path == o.relative_path &&
130
153
  commit == o.commit &&
154
+ checksum == o.checksum &&
131
155
  name == o.name
132
156
  end
133
157
 
@@ -140,7 +164,7 @@ module PulpOstreeClient
140
164
  # Calculates hash code according to all attributes.
141
165
  # @return [Integer] Hash code
142
166
  def hash
143
- [pulp_href, pulp_created, artifact, commit, name].hash
167
+ [pulp_href, pulp_created, artifact, relative_path, commit, checksum, name].hash
144
168
  end
145
169
 
146
170
  # Builds the object from hash
@@ -23,12 +23,16 @@ module PulpOstreeClient
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
26
+ # Path where the artifact is located relative to distributions base_path
27
+ attr_accessor :relative_path
28
+
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
27
30
  def self.attribute_map
28
31
  {
29
32
  :'pulp_href' => :'pulp_href',
30
33
  :'pulp_created' => :'pulp_created',
31
- :'artifact' => :'artifact'
34
+ :'artifact' => :'artifact',
35
+ :'relative_path' => :'relative_path'
32
36
  }
33
37
  end
34
38
 
@@ -37,7 +41,8 @@ module PulpOstreeClient
37
41
  {
38
42
  :'pulp_href' => :'String',
39
43
  :'pulp_created' => :'DateTime',
40
- :'artifact' => :'String'
44
+ :'artifact' => :'String',
45
+ :'relative_path' => :'String'
41
46
  }
42
47
  end
43
48
 
@@ -73,6 +78,10 @@ module PulpOstreeClient
73
78
  if attributes.key?(:'artifact')
74
79
  self.artifact = attributes[:'artifact']
75
80
  end
81
+
82
+ if attributes.key?(:'relative_path')
83
+ self.relative_path = attributes[:'relative_path']
84
+ end
76
85
  end
77
86
 
78
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -83,6 +92,10 @@ module PulpOstreeClient
83
92
  invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
84
93
  end
85
94
 
95
+ if @relative_path.nil?
96
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
97
+ end
98
+
86
99
  invalid_properties
87
100
  end
88
101
 
@@ -90,6 +103,7 @@ module PulpOstreeClient
90
103
  # @return true if the model is valid
91
104
  def valid?
92
105
  return false if @artifact.nil?
106
+ return false if @relative_path.nil?
93
107
  true
94
108
  end
95
109
 
@@ -100,7 +114,8 @@ module PulpOstreeClient
100
114
  self.class == o.class &&
101
115
  pulp_href == o.pulp_href &&
102
116
  pulp_created == o.pulp_created &&
103
- artifact == o.artifact
117
+ artifact == o.artifact &&
118
+ relative_path == o.relative_path
104
119
  end
105
120
 
106
121
  # @see the `==` method
@@ -112,7 +127,7 @@ module PulpOstreeClient
112
127
  # Calculates hash code according to all attributes.
113
128
  # @return [Integer] Hash code
114
129
  def hash
115
- [pulp_href, pulp_created, artifact].hash
130
+ [pulp_href, pulp_created, artifact, relative_path].hash
116
131
  end
117
132
 
118
133
  # Builds the object from hash
@@ -13,8 +13,8 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpOstreeClient
16
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class RepositoryAddRemoveContent
16
+ # A Serializer class for modifying a repository from an existing repository.
17
+ class OstreeRepositoryAddRemoveContent
18
18
  # A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
19
19
  attr_accessor :add_content_units
20
20
 
@@ -52,13 +52,13 @@ module PulpOstreeClient
52
52
  # @param [Hash] attributes Model attributes in the form of hash
53
53
  def initialize(attributes = {})
54
54
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::RepositoryAddRemoveContent` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeRepositoryAddRemoveContent` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::RepositoryAddRemoveContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeRepositoryAddRemoveContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpOstreeClient
14
- VERSION = '2.0.0a1'
14
+ VERSION = '2.0.0a2'
15
15
  end
@@ -32,6 +32,7 @@ require 'pulp_ostree_client/models/ostree_ostree_repository'
32
32
  require 'pulp_ostree_client/models/ostree_ostree_repository_response'
33
33
  require 'pulp_ostree_client/models/ostree_ostree_summary_response'
34
34
  require 'pulp_ostree_client/models/ostree_repo_import'
35
+ require 'pulp_ostree_client/models/ostree_repository_add_remove_content'
35
36
  require 'pulp_ostree_client/models/paginated_repository_version_response_list'
36
37
  require 'pulp_ostree_client/models/paginatedostree_ostree_commit_response_list'
37
38
  require 'pulp_ostree_client/models/paginatedostree_ostree_config_response_list'
@@ -45,7 +46,6 @@ require 'pulp_ostree_client/models/patchedostree_ostree_distribution'
45
46
  require 'pulp_ostree_client/models/patchedostree_ostree_remote'
46
47
  require 'pulp_ostree_client/models/patchedostree_ostree_repository'
47
48
  require 'pulp_ostree_client/models/policy_enum'
48
- require 'pulp_ostree_client/models/repository_add_remove_content'
49
49
  require 'pulp_ostree_client/models/repository_sync_url'
50
50
  require 'pulp_ostree_client/models/repository_version'
51
51
  require 'pulp_ostree_client/models/repository_version_response'
@@ -36,6 +36,7 @@ describe 'ContentCommitsApi' do
36
36
  # List ostree commits
37
37
  # A ViewSet class for OSTree commits.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :checksum Filter results where checksum matches value
39
40
  # @option opts [Integer] :limit Number of results to return per page.
40
41
  # @option opts [Integer] :offset The initial index from which to return the results.
41
42
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -36,6 +36,7 @@ describe 'ContentObjectsApi' do
36
36
  # List ostree objects
37
37
  # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :checksum Filter results where checksum matches value
39
40
  # @option opts [Integer] :limit Number of results to return per page.
40
41
  # @option opts [Integer] :offset The initial index from which to return the results.
41
42
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -36,7 +36,13 @@ describe 'ContentRefsApi' do
36
36
  # List ostree refs
37
37
  # A ViewSet class for OSTree head commits.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :checksum
39
40
  # @option opts [Integer] :limit Number of results to return per page.
41
+ # @option opts [String] :name Filter results where name matches value
42
+ # @option opts [String] :name__contains Filter results where name contains value
43
+ # @option opts [String] :name__icontains Filter results where name contains value
44
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
45
+ # @option opts [String] :name__startswith Filter results where name starts with value
40
46
  # @option opts [Integer] :offset The initial index from which to return the results.
41
47
  # @option opts [String] :ordering Which field to use when ordering the results.
42
48
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -92,10 +92,10 @@ describe 'RepositoriesOstreeApi' do
92
92
  end
93
93
 
94
94
  # unit tests for modify
95
- # Modify Repository Content
96
- # Trigger an asynchronous task to create a new repository version.
95
+ # Modify repository
96
+ # Trigger an asynchronous task to modify content.
97
97
  # @param ostree_ostree_repository_href
98
- # @param repository_add_remove_content
98
+ # @param ostree_repository_add_remove_content
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [AsyncOperationResponse]
101
101
  describe 'modify test' do
@@ -50,6 +50,12 @@ describe 'OstreeOstreeCommitResponse' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "relative_path"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "parent_commit"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -62,4 +68,10 @@ describe 'OstreeOstreeCommitResponse' do
62
68
  end
63
69
  end
64
70
 
71
+ describe 'test attribute "objs"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
65
77
  end
@@ -50,4 +50,10 @@ describe 'OstreeOstreeConfigResponse' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "relative_path"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  end
@@ -50,7 +50,7 @@ describe 'OstreeOstreeObjectResponse' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "commit"' do
53
+ describe 'test attribute "relative_path"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
@@ -50,12 +50,24 @@ describe 'OstreeOstreeRefResponse' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "relative_path"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "commit"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
62
  end
57
63
  end
58
64
 
65
+ describe 'test attribute "checksum"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
59
71
  describe 'test attribute "name"' do
60
72
  it 'should work' do
61
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,4 +50,10 @@ describe 'OstreeOstreeSummaryResponse' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "relative_path"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  end
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for PulpOstreeClient::RepositoryAddRemoveContent
17
+ # Unit tests for PulpOstreeClient::OstreeRepositoryAddRemoveContent
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'RepositoryAddRemoveContent' do
20
+ describe 'OstreeRepositoryAddRemoveContent' do
21
21
  before do
22
22
  # run before each test
23
- @instance = PulpOstreeClient::RepositoryAddRemoveContent.new
23
+ @instance = PulpOstreeClient::OstreeRepositoryAddRemoveContent.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of RepositoryAddRemoveContent' do
31
- it 'should create an instance of RepositoryAddRemoveContent' do
32
- expect(@instance).to be_instance_of(PulpOstreeClient::RepositoryAddRemoveContent)
30
+ describe 'test an instance of OstreeRepositoryAddRemoveContent' do
31
+ it 'should create an instance of OstreeRepositoryAddRemoveContent' do
32
+ expect(@instance).to be_instance_of(PulpOstreeClient::OstreeRepositoryAddRemoveContent)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "add_content_units"' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_ostree_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0a1
4
+ version: 2.0.0a2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-08 00:00:00.000000000 Z
11
+ date: 2021-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -95,6 +95,7 @@ files:
95
95
  - docs/OstreeOstreeRepositoryResponse.md
96
96
  - docs/OstreeOstreeSummaryResponse.md
97
97
  - docs/OstreeRepoImport.md
98
+ - docs/OstreeRepositoryAddRemoveContent.md
98
99
  - docs/PaginatedRepositoryVersionResponseList.md
99
100
  - docs/PaginatedostreeOstreeCommitResponseList.md
100
101
  - docs/PaginatedostreeOstreeConfigResponseList.md
@@ -111,7 +112,6 @@ files:
111
112
  - docs/RemotesOstreeApi.md
112
113
  - docs/RepositoriesOstreeApi.md
113
114
  - docs/RepositoriesOstreeVersionsApi.md
114
- - docs/RepositoryAddRemoveContent.md
115
115
  - docs/RepositorySyncURL.md
116
116
  - docs/RepositoryVersion.md
117
117
  - docs/RepositoryVersionResponse.md
@@ -144,6 +144,7 @@ files:
144
144
  - lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb
145
145
  - lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb
146
146
  - lib/pulp_ostree_client/models/ostree_repo_import.rb
147
+ - lib/pulp_ostree_client/models/ostree_repository_add_remove_content.rb
147
148
  - lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb
148
149
  - lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb
149
150
  - lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb
@@ -157,7 +158,6 @@ files:
157
158
  - lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb
158
159
  - lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb
159
160
  - lib/pulp_ostree_client/models/policy_enum.rb
160
- - lib/pulp_ostree_client/models/repository_add_remove_content.rb
161
161
  - lib/pulp_ostree_client/models/repository_sync_url.rb
162
162
  - lib/pulp_ostree_client/models/repository_version.rb
163
163
  - lib/pulp_ostree_client/models/repository_version_response.rb
@@ -189,6 +189,7 @@ files:
189
189
  - spec/models/ostree_ostree_repository_spec.rb
190
190
  - spec/models/ostree_ostree_summary_response_spec.rb
191
191
  - spec/models/ostree_repo_import_spec.rb
192
+ - spec/models/ostree_repository_add_remove_content_spec.rb
192
193
  - spec/models/paginated_repository_version_response_list_spec.rb
193
194
  - spec/models/paginatedostree_ostree_commit_response_list_spec.rb
194
195
  - spec/models/paginatedostree_ostree_config_response_list_spec.rb
@@ -202,7 +203,6 @@ files:
202
203
  - spec/models/patchedostree_ostree_remote_spec.rb
203
204
  - spec/models/patchedostree_ostree_repository_spec.rb
204
205
  - spec/models/policy_enum_spec.rb
205
- - spec/models/repository_add_remove_content_spec.rb
206
206
  - spec/models/repository_sync_url_spec.rb
207
207
  - spec/models/repository_version_response_spec.rb
208
208
  - spec/models/repository_version_spec.rb
@@ -231,47 +231,47 @@ signing_key:
231
231
  specification_version: 4
232
232
  summary: Pulp 3 API Ruby Gem
233
233
  test_files:
234
- - spec/api/content_refs_api_spec.rb
235
234
  - spec/api/content_objects_api_spec.rb
235
+ - spec/api/repositories_ostree_versions_api_spec.rb
236
+ - spec/api/remotes_ostree_api_spec.rb
236
237
  - spec/api/repositories_ostree_api_spec.rb
237
- - spec/api/content_configs_api_spec.rb
238
+ - spec/api/content_refs_api_spec.rb
238
239
  - spec/api/distributions_ostree_api_spec.rb
240
+ - spec/api/content_configs_api_spec.rb
239
241
  - spec/api/content_summaries_api_spec.rb
240
242
  - spec/api/content_commits_api_spec.rb
241
- - spec/api/repositories_ostree_versions_api_spec.rb
242
- - spec/api/remotes_ostree_api_spec.rb
243
243
  - spec/api_client_spec.rb
244
244
  - spec/configuration_spec.rb
245
+ - spec/models/patchedostree_ostree_repository_spec.rb
246
+ - spec/models/content_summary_response_spec.rb
247
+ - spec/models/patchedostree_ostree_distribution_spec.rb
248
+ - spec/models/ostree_ostree_summary_response_spec.rb
249
+ - spec/models/ostree_ostree_repository_response_spec.rb
245
250
  - spec/models/async_operation_response_spec.rb
246
- - spec/models/policy_enum_spec.rb
247
- - spec/models/ostree_ostree_config_response_spec.rb
251
+ - spec/models/paginatedostree_ostree_distribution_response_list_spec.rb
248
252
  - spec/models/ostree_ostree_object_response_spec.rb
249
- - spec/models/patchedostree_ostree_repository_spec.rb
250
- - spec/models/repository_add_remove_content_spec.rb
251
253
  - spec/models/paginatedostree_ostree_commit_response_list_spec.rb
254
+ - spec/models/ostree_ostree_remote_response_spec.rb
252
255
  - spec/models/patchedostree_ostree_remote_spec.rb
253
- - spec/models/repository_version_response_spec.rb
254
256
  - spec/models/ostree_ostree_ref_response_spec.rb
255
- - spec/models/paginated_repository_version_response_list_spec.rb
256
- - spec/models/ostree_ostree_commit_response_spec.rb
257
- - spec/models/repository_version_spec.rb
258
- - spec/models/ostree_ostree_repository_response_spec.rb
257
+ - spec/models/content_summary_spec.rb
258
+ - spec/models/ostree_ostree_remote_spec.rb
259
+ - spec/models/policy_enum_spec.rb
260
+ - spec/models/ostree_ostree_config_response_spec.rb
259
261
  - spec/models/repository_sync_url_spec.rb
260
- - spec/models/paginatedostree_ostree_distribution_response_list_spec.rb
261
- - spec/models/ostree_ostree_repository_spec.rb
262
- - spec/models/ostree_ostree_remote_response_spec.rb
263
262
  - spec/models/ostree_repo_import_spec.rb
264
- - spec/models/ostree_ostree_summary_response_spec.rb
263
+ - spec/models/ostree_ostree_distribution_response_spec.rb
265
264
  - spec/models/paginatedostree_ostree_config_response_list_spec.rb
266
- - spec/models/content_summary_spec.rb
265
+ - spec/models/paginatedostree_ostree_summary_response_list_spec.rb
266
+ - spec/models/paginatedostree_ostree_object_response_list_spec.rb
267
267
  - spec/models/paginatedostree_ostree_remote_response_list_spec.rb
268
- - spec/models/ostree_ostree_distribution_spec.rb
269
- - spec/models/ostree_ostree_distribution_response_spec.rb
270
268
  - spec/models/paginatedostree_ostree_repository_response_list_spec.rb
271
- - spec/models/content_summary_response_spec.rb
272
- - spec/models/paginatedostree_ostree_summary_response_list_spec.rb
273
- - spec/models/patchedostree_ostree_distribution_spec.rb
269
+ - spec/models/repository_version_spec.rb
274
270
  - spec/models/paginatedostree_ostree_ref_response_list_spec.rb
275
- - spec/models/ostree_ostree_remote_spec.rb
276
- - spec/models/paginatedostree_ostree_object_response_list_spec.rb
271
+ - spec/models/ostree_repository_add_remove_content_spec.rb
272
+ - spec/models/ostree_ostree_distribution_spec.rb
273
+ - spec/models/paginated_repository_version_response_list_spec.rb
274
+ - spec/models/ostree_ostree_repository_spec.rb
275
+ - spec/models/ostree_ostree_commit_response_spec.rb
276
+ - spec/models/repository_version_response_spec.rb
277
277
  - spec/spec_helper.rb