pulp_ostree_client 2.0.0a1

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 (138) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +174 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentCommitsApi.md +138 -0
  7. data/docs/ContentConfigsApi.md +138 -0
  8. data/docs/ContentObjectsApi.md +138 -0
  9. data/docs/ContentRefsApi.md +138 -0
  10. data/docs/ContentSummariesApi.md +138 -0
  11. data/docs/ContentSummary.md +21 -0
  12. data/docs/ContentSummaryResponse.md +21 -0
  13. data/docs/DistributionsOstreeApi.md +372 -0
  14. data/docs/OstreeOstreeCommitResponse.md +25 -0
  15. data/docs/OstreeOstreeConfigResponse.md +21 -0
  16. data/docs/OstreeOstreeDistribution.md +27 -0
  17. data/docs/OstreeOstreeDistributionResponse.md +33 -0
  18. data/docs/OstreeOstreeObjectResponse.md +27 -0
  19. data/docs/OstreeOstreeRefResponse.md +25 -0
  20. data/docs/OstreeOstreeRemote.md +59 -0
  21. data/docs/OstreeOstreeRemoteResponse.md +55 -0
  22. data/docs/OstreeOstreeRepository.md +25 -0
  23. data/docs/OstreeOstreeRepositoryResponse.md +33 -0
  24. data/docs/OstreeOstreeSummaryResponse.md +21 -0
  25. data/docs/OstreeRepoImport.md +23 -0
  26. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  27. data/docs/PaginatedostreeOstreeCommitResponseList.md +23 -0
  28. data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
  29. data/docs/PaginatedostreeOstreeDistributionResponseList.md +23 -0
  30. data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
  31. data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
  32. data/docs/PaginatedostreeOstreeRemoteResponseList.md +23 -0
  33. data/docs/PaginatedostreeOstreeRepositoryResponseList.md +23 -0
  34. data/docs/PaginatedostreeOstreeSummaryResponseList.md +23 -0
  35. data/docs/PatchedostreeOstreeDistribution.md +27 -0
  36. data/docs/PatchedostreeOstreeRemote.md +59 -0
  37. data/docs/PatchedostreeOstreeRepository.md +25 -0
  38. data/docs/PolicyEnum.md +16 -0
  39. data/docs/RemotesOstreeApi.md +376 -0
  40. data/docs/RepositoriesOstreeApi.md +532 -0
  41. data/docs/RepositoriesOstreeVersionsApi.md +271 -0
  42. data/docs/RepositoryAddRemoveContent.md +21 -0
  43. data/docs/RepositorySyncURL.md +19 -0
  44. data/docs/RepositoryVersion.md +17 -0
  45. data/docs/RepositoryVersionResponse.md +27 -0
  46. data/git_push.sh +58 -0
  47. data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
  48. data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
  49. data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
  50. data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
  51. data/lib/pulp_ostree_client/api/content_summaries_api.rb +170 -0
  52. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +457 -0
  53. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +463 -0
  54. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +655 -0
  55. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +339 -0
  56. data/lib/pulp_ostree_client/api_client.rb +406 -0
  57. data/lib/pulp_ostree_client/api_error.rb +57 -0
  58. data/lib/pulp_ostree_client/configuration.rb +250 -0
  59. data/lib/pulp_ostree_client/models/async_operation_response.rb +213 -0
  60. data/lib/pulp_ostree_client/models/content_summary.rb +246 -0
  61. data/lib/pulp_ostree_client/models/content_summary_response.rb +246 -0
  62. data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
  63. data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +232 -0
  64. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +270 -0
  65. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +299 -0
  66. data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
  67. data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +260 -0
  68. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +536 -0
  69. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +510 -0
  70. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +270 -0
  71. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +307 -0
  72. data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +232 -0
  73. data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
  74. data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +237 -0
  75. data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +237 -0
  76. data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
  77. data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +237 -0
  78. data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
  79. data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +237 -0
  80. data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +237 -0
  81. data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +237 -0
  82. data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +237 -0
  83. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +260 -0
  84. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +526 -0
  85. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +265 -0
  86. data/lib/pulp_ostree_client/models/policy_enum.rb +36 -0
  87. data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +232 -0
  88. data/lib/pulp_ostree_client/models/repository_sync_url.rb +220 -0
  89. data/lib/pulp_ostree_client/models/repository_version.rb +208 -0
  90. data/lib/pulp_ostree_client/models/repository_version_response.rb +255 -0
  91. data/lib/pulp_ostree_client/version.rb +15 -0
  92. data/lib/pulp_ostree_client.rb +80 -0
  93. data/pulp_ostree_client.gemspec +39 -0
  94. data/spec/api/content_commits_api_spec.rb +68 -0
  95. data/spec/api/content_configs_api_spec.rb +68 -0
  96. data/spec/api/content_objects_api_spec.rb +68 -0
  97. data/spec/api/content_refs_api_spec.rb +68 -0
  98. data/spec/api/content_summaries_api_spec.rb +68 -0
  99. data/spec/api/distributions_ostree_api_spec.rb +125 -0
  100. data/spec/api/remotes_ostree_api_spec.rb +127 -0
  101. data/spec/api/repositories_ostree_api_spec.rb +160 -0
  102. data/spec/api/repositories_ostree_versions_api_spec.rb +104 -0
  103. data/spec/api_client_spec.rb +188 -0
  104. data/spec/configuration_spec.rb +42 -0
  105. data/spec/models/async_operation_response_spec.rb +41 -0
  106. data/spec/models/content_summary_response_spec.rb +53 -0
  107. data/spec/models/content_summary_spec.rb +53 -0
  108. data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
  109. data/spec/models/ostree_ostree_config_response_spec.rb +53 -0
  110. data/spec/models/ostree_ostree_distribution_response_spec.rb +89 -0
  111. data/spec/models/ostree_ostree_distribution_spec.rb +71 -0
  112. data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
  113. data/spec/models/ostree_ostree_ref_response_spec.rb +65 -0
  114. data/spec/models/ostree_ostree_remote_response_spec.rb +155 -0
  115. data/spec/models/ostree_ostree_remote_spec.rb +167 -0
  116. data/spec/models/ostree_ostree_repository_response_spec.rb +89 -0
  117. data/spec/models/ostree_ostree_repository_spec.rb +65 -0
  118. data/spec/models/ostree_ostree_summary_response_spec.rb +53 -0
  119. data/spec/models/ostree_repo_import_spec.rb +59 -0
  120. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  121. data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +59 -0
  122. data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
  123. data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +59 -0
  124. data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
  125. data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
  126. data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +59 -0
  127. data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +59 -0
  128. data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +59 -0
  129. data/spec/models/patchedostree_ostree_distribution_spec.rb +71 -0
  130. data/spec/models/patchedostree_ostree_remote_spec.rb +167 -0
  131. data/spec/models/patchedostree_ostree_repository_spec.rb +65 -0
  132. data/spec/models/policy_enum_spec.rb +35 -0
  133. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  134. data/spec/models/repository_sync_url_spec.rb +47 -0
  135. data/spec/models/repository_version_response_spec.rb +71 -0
  136. data/spec/models/repository_version_spec.rb +41 -0
  137. data/spec/spec_helper.rb +111 -0
  138. metadata +277 -0
@@ -0,0 +1,271 @@
1
+ # PulpOstreeClient::RepositoriesOstreeVersionsApi
2
+
3
+ All URIs are relative to *https://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete**](RepositoriesOstreeVersionsApi.md#delete) | **DELETE** {ostree_ostree_repository_version_href} | Delete a repository version
8
+ [**list**](RepositoriesOstreeVersionsApi.md#list) | **GET** {ostree_ostree_repository_href}versions/ | List repository versions
9
+ [**read**](RepositoriesOstreeVersionsApi.md#read) | **GET** {ostree_ostree_repository_version_href} | Inspect a repository version
10
+ [**repair**](RepositoriesOstreeVersionsApi.md#repair) | **POST** {ostree_ostree_repository_version_href}repair/ |
11
+
12
+
13
+
14
+ ## delete
15
+
16
+ > AsyncOperationResponse delete(ostree_ostree_repository_version_href)
17
+
18
+ Delete a repository version
19
+
20
+ Trigger an asynchronous task to delete a repository version.
21
+
22
+ ### Example
23
+
24
+ ```ruby
25
+ # load the gem
26
+ require 'pulp_ostree_client'
27
+ # setup authorization
28
+ PulpOstreeClient.configure do |config|
29
+ # Configure HTTP basic authorization: basicAuth
30
+ config.username = 'YOUR USERNAME'
31
+ config.password = 'YOUR PASSWORD'
32
+ end
33
+
34
+ api_instance = PulpOstreeClient::RepositoriesOstreeVersionsApi.new
35
+ ostree_ostree_repository_version_href = 'ostree_ostree_repository_version_href_example' # String |
36
+
37
+ begin
38
+ #Delete a repository version
39
+ result = api_instance.delete(ostree_ostree_repository_version_href)
40
+ p result
41
+ rescue PulpOstreeClient::ApiError => e
42
+ puts "Exception when calling RepositoriesOstreeVersionsApi->delete: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **ostree_ostree_repository_version_href** | **String**| |
52
+
53
+ ### Return type
54
+
55
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ [basicAuth](../README.md#basicAuth)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: Not defined
64
+ - **Accept**: application/json
65
+
66
+
67
+ ## list
68
+
69
+ > PaginatedRepositoryVersionResponseList list(ostree_ostree_repository_href, opts)
70
+
71
+ List repository versions
72
+
73
+ A ViewSet class that represents a single OSTree repository version.
74
+
75
+ ### Example
76
+
77
+ ```ruby
78
+ # load the gem
79
+ require 'pulp_ostree_client'
80
+ # setup authorization
81
+ PulpOstreeClient.configure do |config|
82
+ # Configure HTTP basic authorization: basicAuth
83
+ config.username = 'YOUR USERNAME'
84
+ config.password = 'YOUR PASSWORD'
85
+ end
86
+
87
+ api_instance = PulpOstreeClient::RepositoriesOstreeVersionsApi.new
88
+ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
89
+ opts = {
90
+ content: 'content_example', # String | Content Unit referenced by HREF
91
+ content__in: 'content__in_example', # String | Content Unit referenced by HREF
92
+ limit: 56, # Integer | Number of results to return per page.
93
+ number: 56, # Integer |
94
+ number__gt: 56, # Integer | Filter results where number is greater than value
95
+ number__gte: 56, # Integer | Filter results where number is greater than or equal to value
96
+ number__lt: 56, # Integer | Filter results where number is less than value
97
+ number__lte: 56, # Integer | Filter results where number is less than or equal to value
98
+ number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
99
+ offset: 56, # Integer | The initial index from which to return the results.
100
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
101
+ pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
102
+ pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
103
+ pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
104
+ pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
105
+ pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
106
+ pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
107
+ fields: 'fields_example', # String | A list of fields to include in the response.
108
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
109
+ }
110
+
111
+ begin
112
+ #List repository versions
113
+ result = api_instance.list(ostree_ostree_repository_href, opts)
114
+ p result
115
+ rescue PulpOstreeClient::ApiError => e
116
+ puts "Exception when calling RepositoriesOstreeVersionsApi->list: #{e}"
117
+ end
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+
123
+ Name | Type | Description | Notes
124
+ ------------- | ------------- | ------------- | -------------
125
+ **ostree_ostree_repository_href** | **String**| |
126
+ **content** | **String**| Content Unit referenced by HREF | [optional]
127
+ **content__in** | **String**| Content Unit referenced by HREF | [optional]
128
+ **limit** | **Integer**| Number of results to return per page. | [optional]
129
+ **number** | **Integer**| | [optional]
130
+ **number__gt** | **Integer**| Filter results where number is greater than value | [optional]
131
+ **number__gte** | **Integer**| Filter results where number is greater than or equal to value | [optional]
132
+ **number__lt** | **Integer**| Filter results where number is less than value | [optional]
133
+ **number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
134
+ **number__range** | [**Array&lt;Integer&gt;**](Integer.md)| Filter results where number is between two comma separated values | [optional]
135
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
136
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
137
+ **pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
138
+ **pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
139
+ **pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
140
+ **pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
141
+ **pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
142
+ **pulp_created__range** | [**Array&lt;DateTime&gt;**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
143
+ **fields** | **String**| A list of fields to include in the response. | [optional]
144
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
145
+
146
+ ### Return type
147
+
148
+ [**PaginatedRepositoryVersionResponseList**](PaginatedRepositoryVersionResponseList.md)
149
+
150
+ ### Authorization
151
+
152
+ [basicAuth](../README.md#basicAuth)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: Not defined
157
+ - **Accept**: application/json
158
+
159
+
160
+ ## read
161
+
162
+ > RepositoryVersionResponse read(ostree_ostree_repository_version_href, opts)
163
+
164
+ Inspect a repository version
165
+
166
+ A ViewSet class that represents a single OSTree repository version.
167
+
168
+ ### Example
169
+
170
+ ```ruby
171
+ # load the gem
172
+ require 'pulp_ostree_client'
173
+ # setup authorization
174
+ PulpOstreeClient.configure do |config|
175
+ # Configure HTTP basic authorization: basicAuth
176
+ config.username = 'YOUR USERNAME'
177
+ config.password = 'YOUR PASSWORD'
178
+ end
179
+
180
+ api_instance = PulpOstreeClient::RepositoriesOstreeVersionsApi.new
181
+ ostree_ostree_repository_version_href = 'ostree_ostree_repository_version_href_example' # String |
182
+ opts = {
183
+ fields: 'fields_example', # String | A list of fields to include in the response.
184
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
185
+ }
186
+
187
+ begin
188
+ #Inspect a repository version
189
+ result = api_instance.read(ostree_ostree_repository_version_href, opts)
190
+ p result
191
+ rescue PulpOstreeClient::ApiError => e
192
+ puts "Exception when calling RepositoriesOstreeVersionsApi->read: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+
199
+ Name | Type | Description | Notes
200
+ ------------- | ------------- | ------------- | -------------
201
+ **ostree_ostree_repository_version_href** | **String**| |
202
+ **fields** | **String**| A list of fields to include in the response. | [optional]
203
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
204
+
205
+ ### Return type
206
+
207
+ [**RepositoryVersionResponse**](RepositoryVersionResponse.md)
208
+
209
+ ### Authorization
210
+
211
+ [basicAuth](../README.md#basicAuth)
212
+
213
+ ### HTTP request headers
214
+
215
+ - **Content-Type**: Not defined
216
+ - **Accept**: application/json
217
+
218
+
219
+ ## repair
220
+
221
+ > AsyncOperationResponse repair(ostree_ostree_repository_version_href, repository_version)
222
+
223
+
224
+
225
+ Trigger an asynchronous task to repair a repository version.
226
+
227
+ ### Example
228
+
229
+ ```ruby
230
+ # load the gem
231
+ require 'pulp_ostree_client'
232
+ # setup authorization
233
+ PulpOstreeClient.configure do |config|
234
+ # Configure HTTP basic authorization: basicAuth
235
+ config.username = 'YOUR USERNAME'
236
+ config.password = 'YOUR PASSWORD'
237
+ end
238
+
239
+ api_instance = PulpOstreeClient::RepositoriesOstreeVersionsApi.new
240
+ ostree_ostree_repository_version_href = 'ostree_ostree_repository_version_href_example' # String |
241
+ repository_version = PulpOstreeClient::RepositoryVersion.new # RepositoryVersion |
242
+
243
+ begin
244
+ result = api_instance.repair(ostree_ostree_repository_version_href, repository_version)
245
+ p result
246
+ rescue PulpOstreeClient::ApiError => e
247
+ puts "Exception when calling RepositoriesOstreeVersionsApi->repair: #{e}"
248
+ end
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+
254
+ Name | Type | Description | Notes
255
+ ------------- | ------------- | ------------- | -------------
256
+ **ostree_ostree_repository_version_href** | **String**| |
257
+ **repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
258
+
259
+ ### Return type
260
+
261
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
262
+
263
+ ### Authorization
264
+
265
+ [basicAuth](../README.md#basicAuth)
266
+
267
+ ### HTTP request headers
268
+
269
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
270
+ - **Accept**: application/json
271
+
@@ -0,0 +1,21 @@
1
+ # PulpOstreeClient::RepositoryAddRemoveContent
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **add_content_units** | [**Array&lt;AnyType&gt;**](AnyType.md) | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
8
+ **remove_content_units** | [**Array&lt;AnyType&gt;**](AnyType.md) | A list of content units to remove from the latest repository version. You may also specify &#39;*&#39; as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
9
+ **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpOstreeClient'
15
+
16
+ instance = PulpOstreeClient::RepositoryAddRemoveContent.new(add_content_units: null,
17
+ remove_content_units: null,
18
+ base_version: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # PulpOstreeClient::RepositorySyncURL
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
8
+ **mirror** | **Boolean** | If &#x60;&#x60;True&#x60;&#x60;, synchronization will remove all content that is not present in the remote repository. If &#x60;&#x60;False&#x60;&#x60;, sync will be additive only. | [optional] [default to false]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpOstreeClient'
14
+
15
+ instance = PulpOstreeClient::RepositorySyncURL.new(remote: null,
16
+ mirror: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # PulpOstreeClient::RepositoryVersion
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpOstreeClient'
13
+
14
+ instance = PulpOstreeClient::RepositoryVersion.new(base_version: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,27 @@
1
+ # PulpOstreeClient::RepositoryVersionResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **number** | **Integer** | | [optional] [readonly]
10
+ **repository** | **String** | | [optional] [readonly]
11
+ **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
12
+ **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'PulpOstreeClient'
18
+
19
+ instance = PulpOstreeClient::RepositoryVersionResponse.new(pulp_href: null,
20
+ pulp_created: null,
21
+ number: null,
22
+ repository: null,
23
+ base_version: null,
24
+ content_summary: null)
25
+ ```
26
+
27
+
data/git_push.sh ADDED
@@ -0,0 +1,58 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=`git remote`
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
58
+
@@ -0,0 +1,170 @@
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 'cgi'
14
+
15
+ module PulpOstreeClient
16
+ class ContentCommitsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List ostree commits
23
+ # A ViewSet class for OSTree commits.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [Integer] :offset The initial index from which to return the results.
27
+ # @option opts [String] :ordering Which field to use when ordering the results.
28
+ # @option opts [String] :repository_version Repository Version referenced by HREF
29
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
31
+ # @option opts [String] :fields A list of fields to include in the response.
32
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
33
+ # @return [PaginatedostreeOstreeCommitResponseList]
34
+ def list(opts = {})
35
+ data, _status_code, _headers = list_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # List ostree commits
40
+ # A ViewSet class for OSTree commits.
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [Integer] :limit Number of results to return per page.
43
+ # @option opts [Integer] :offset The initial index from which to return the results.
44
+ # @option opts [String] :ordering Which field to use when ordering the results.
45
+ # @option opts [String] :repository_version Repository Version referenced by HREF
46
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
48
+ # @option opts [String] :fields A list of fields to include in the response.
49
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
+ # @return [Array<(PaginatedostreeOstreeCommitResponseList, Integer, Hash)>] PaginatedostreeOstreeCommitResponseList data, response status code and response headers
51
+ def list_with_http_info(opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug 'Calling API: ContentCommitsApi.list ...'
54
+ end
55
+ # resource path
56
+ local_var_path = '/pulp/api/v3/content/ostree/commits/'
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
63
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
66
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
67
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
68
+
69
+ # header parameters
70
+ header_params = opts[:header_params] || {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:body]
79
+
80
+ # return_type
81
+ return_type = opts[:return_type] || 'PaginatedostreeOstreeCommitResponseList'
82
+
83
+ # auth_names
84
+ auth_names = opts[:auth_names] || ['basicAuth']
85
+
86
+ new_options = opts.merge(
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: ContentCommitsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+
102
+ # Inspect an ostree commit
103
+ # A ViewSet class for OSTree commits.
104
+ # @param ostree_ostree_commit_href [String]
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [String] :fields A list of fields to include in the response.
107
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
+ # @return [OstreeOstreeCommitResponse]
109
+ def read(ostree_ostree_commit_href, opts = {})
110
+ data, _status_code, _headers = read_with_http_info(ostree_ostree_commit_href, opts)
111
+ data
112
+ end
113
+
114
+ # Inspect an ostree commit
115
+ # A ViewSet class for OSTree commits.
116
+ # @param ostree_ostree_commit_href [String]
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :fields A list of fields to include in the response.
119
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
+ # @return [Array<(OstreeOstreeCommitResponse, Integer, Hash)>] OstreeOstreeCommitResponse data, response status code and response headers
121
+ def read_with_http_info(ostree_ostree_commit_href, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: ContentCommitsApi.read ...'
124
+ end
125
+ # verify the required parameter 'ostree_ostree_commit_href' is set
126
+ if @api_client.config.client_side_validation && ostree_ostree_commit_href.nil?
127
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_commit_href' when calling ContentCommitsApi.read"
128
+ end
129
+ # resource path
130
+ local_var_path = '{ostree_ostree_commit_href}'.sub('{' + 'ostree_ostree_commit_href' + '}', CGI.escape(ostree_ostree_commit_href.to_s).gsub('%2F', '/'))
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
135
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
136
+
137
+ # header parameters
138
+ header_params = opts[:header_params] || {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
141
+
142
+ # form parameters
143
+ form_params = opts[:form_params] || {}
144
+
145
+ # http body (model)
146
+ post_body = opts[:body]
147
+
148
+ # return_type
149
+ return_type = opts[:return_type] || 'OstreeOstreeCommitResponse'
150
+
151
+ # auth_names
152
+ auth_names = opts[:auth_names] || ['basicAuth']
153
+
154
+ new_options = opts.merge(
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => return_type
161
+ )
162
+
163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: ContentCommitsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+ end
170
+ end