pulp_cookbook_client 0.1.0b9

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 (114) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +162 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentCookbooksApi.md +208 -0
  7. data/docs/ContentSummary.md +21 -0
  8. data/docs/ContentSummaryResponse.md +21 -0
  9. data/docs/CookbookCookbookDistribution.md +27 -0
  10. data/docs/CookbookCookbookDistributionResponse.md +33 -0
  11. data/docs/CookbookCookbookPackageContent.md +25 -0
  12. data/docs/CookbookCookbookPackageContentResponse.md +29 -0
  13. data/docs/CookbookCookbookPublication.md +19 -0
  14. data/docs/CookbookCookbookPublicationResponse.md +25 -0
  15. data/docs/CookbookCookbookRemote.md +59 -0
  16. data/docs/CookbookCookbookRemoteResponse.md +55 -0
  17. data/docs/CookbookCookbookRepository.md +25 -0
  18. data/docs/CookbookCookbookRepositoryResponse.md +33 -0
  19. data/docs/DistributionsCookbookApi.md +372 -0
  20. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  21. data/docs/PaginatedcookbookCookbookDistributionResponseList.md +23 -0
  22. data/docs/PaginatedcookbookCookbookPackageContentResponseList.md +23 -0
  23. data/docs/PaginatedcookbookCookbookPublicationResponseList.md +23 -0
  24. data/docs/PaginatedcookbookCookbookRemoteResponseList.md +23 -0
  25. data/docs/PaginatedcookbookCookbookRepositoryResponseList.md +23 -0
  26. data/docs/PatchedcookbookCookbookDistribution.md +27 -0
  27. data/docs/PatchedcookbookCookbookRemote.md +59 -0
  28. data/docs/PatchedcookbookCookbookRepository.md +25 -0
  29. data/docs/PolicyEnum.md +16 -0
  30. data/docs/PublicationsCookbookApi.md +257 -0
  31. data/docs/RemotesCookbookApi.md +376 -0
  32. data/docs/RepositoriesCookbookApi.md +475 -0
  33. data/docs/RepositoriesCookbookVersionsApi.md +271 -0
  34. data/docs/RepositoryAddRemoveContent.md +21 -0
  35. data/docs/RepositorySyncURL.md +19 -0
  36. data/docs/RepositoryVersion.md +17 -0
  37. data/docs/RepositoryVersionResponse.md +27 -0
  38. data/git_push.sh +58 -0
  39. data/lib/pulp_cookbook_client/api/content_cookbooks_api.rb +264 -0
  40. data/lib/pulp_cookbook_client/api/distributions_cookbook_api.rb +457 -0
  41. data/lib/pulp_cookbook_client/api/publications_cookbook_api.rb +312 -0
  42. data/lib/pulp_cookbook_client/api/remotes_cookbook_api.rb +463 -0
  43. data/lib/pulp_cookbook_client/api/repositories_cookbook_api.rb +583 -0
  44. data/lib/pulp_cookbook_client/api/repositories_cookbook_versions_api.rb +339 -0
  45. data/lib/pulp_cookbook_client/api_client.rb +406 -0
  46. data/lib/pulp_cookbook_client/api_error.rb +57 -0
  47. data/lib/pulp_cookbook_client/configuration.rb +250 -0
  48. data/lib/pulp_cookbook_client/models/async_operation_response.rb +213 -0
  49. data/lib/pulp_cookbook_client/models/content_summary.rb +246 -0
  50. data/lib/pulp_cookbook_client/models/content_summary_response.rb +246 -0
  51. data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution.rb +308 -0
  52. data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution_response.rb +299 -0
  53. data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content.rb +287 -0
  54. data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content_response.rb +272 -0
  55. data/lib/pulp_cookbook_client/models/cookbook_cookbook_publication.rb +217 -0
  56. data/lib/pulp_cookbook_client/models/cookbook_cookbook_publication_response.rb +248 -0
  57. data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote.rb +677 -0
  58. data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote_response.rb +493 -0
  59. data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository.rb +304 -0
  60. data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository_response.rb +307 -0
  61. data/lib/pulp_cookbook_client/models/paginated_repository_version_response_list.rb +237 -0
  62. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_distribution_response_list.rb +237 -0
  63. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_package_content_response_list.rb +237 -0
  64. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_publication_response_list.rb +237 -0
  65. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_remote_response_list.rb +237 -0
  66. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_repository_response_list.rb +237 -0
  67. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_distribution.rb +290 -0
  68. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_remote.rb +659 -0
  69. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_repository.rb +295 -0
  70. data/lib/pulp_cookbook_client/models/policy_enum.rb +37 -0
  71. data/lib/pulp_cookbook_client/models/repository_add_remove_content.rb +232 -0
  72. data/lib/pulp_cookbook_client/models/repository_sync_url.rb +220 -0
  73. data/lib/pulp_cookbook_client/models/repository_version.rb +208 -0
  74. data/lib/pulp_cookbook_client/models/repository_version_response.rb +255 -0
  75. data/lib/pulp_cookbook_client/version.rb +15 -0
  76. data/lib/pulp_cookbook_client.rb +72 -0
  77. data/pulp_cookbook_client.gemspec +39 -0
  78. data/spec/api/content_cookbooks_api_spec.rb +87 -0
  79. data/spec/api/distributions_cookbook_api_spec.rb +125 -0
  80. data/spec/api/publications_cookbook_api_spec.rb +98 -0
  81. data/spec/api/remotes_cookbook_api_spec.rb +127 -0
  82. data/spec/api/repositories_cookbook_api_spec.rb +146 -0
  83. data/spec/api/repositories_cookbook_versions_api_spec.rb +104 -0
  84. data/spec/api_client_spec.rb +188 -0
  85. data/spec/configuration_spec.rb +42 -0
  86. data/spec/models/async_operation_response_spec.rb +41 -0
  87. data/spec/models/content_summary_response_spec.rb +53 -0
  88. data/spec/models/content_summary_spec.rb +53 -0
  89. data/spec/models/cookbook_cookbook_distribution_response_spec.rb +89 -0
  90. data/spec/models/cookbook_cookbook_distribution_spec.rb +71 -0
  91. data/spec/models/cookbook_cookbook_package_content_response_spec.rb +77 -0
  92. data/spec/models/cookbook_cookbook_package_content_spec.rb +65 -0
  93. data/spec/models/cookbook_cookbook_publication_response_spec.rb +65 -0
  94. data/spec/models/cookbook_cookbook_publication_spec.rb +47 -0
  95. data/spec/models/cookbook_cookbook_remote_response_spec.rb +155 -0
  96. data/spec/models/cookbook_cookbook_remote_spec.rb +167 -0
  97. data/spec/models/cookbook_cookbook_repository_response_spec.rb +89 -0
  98. data/spec/models/cookbook_cookbook_repository_spec.rb +65 -0
  99. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  100. data/spec/models/paginatedcookbook_cookbook_distribution_response_list_spec.rb +59 -0
  101. data/spec/models/paginatedcookbook_cookbook_package_content_response_list_spec.rb +59 -0
  102. data/spec/models/paginatedcookbook_cookbook_publication_response_list_spec.rb +59 -0
  103. data/spec/models/paginatedcookbook_cookbook_remote_response_list_spec.rb +59 -0
  104. data/spec/models/paginatedcookbook_cookbook_repository_response_list_spec.rb +59 -0
  105. data/spec/models/patchedcookbook_cookbook_distribution_spec.rb +71 -0
  106. data/spec/models/patchedcookbook_cookbook_remote_spec.rb +167 -0
  107. data/spec/models/patchedcookbook_cookbook_repository_spec.rb +65 -0
  108. data/spec/models/policy_enum_spec.rb +35 -0
  109. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  110. data/spec/models/repository_sync_url_spec.rb +47 -0
  111. data/spec/models/repository_version_response_spec.rb +71 -0
  112. data/spec/models/repository_version_spec.rb +41 -0
  113. data/spec/spec_helper.rb +111 -0
  114. metadata +251 -0
@@ -0,0 +1,271 @@
1
+ # PulpCookbookClient::RepositoriesCookbookVersionsApi
2
+
3
+ All URIs are relative to *https://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete**](RepositoriesCookbookVersionsApi.md#delete) | **DELETE** {cookbook_cookbook_repository_version_href} | Delete a repository version
8
+ [**list**](RepositoriesCookbookVersionsApi.md#list) | **GET** {cookbook_cookbook_repository_href}versions/ | List repository versions
9
+ [**read**](RepositoriesCookbookVersionsApi.md#read) | **GET** {cookbook_cookbook_repository_version_href} | Inspect a repository version
10
+ [**repair**](RepositoriesCookbookVersionsApi.md#repair) | **POST** {cookbook_cookbook_repository_version_href}repair/ |
11
+
12
+
13
+
14
+ ## delete
15
+
16
+ > AsyncOperationResponse delete(cookbook_cookbook_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_cookbook_client'
27
+ # setup authorization
28
+ PulpCookbookClient.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 = PulpCookbookClient::RepositoriesCookbookVersionsApi.new
35
+ cookbook_cookbook_repository_version_href = 'cookbook_cookbook_repository_version_href_example' # String |
36
+
37
+ begin
38
+ #Delete a repository version
39
+ result = api_instance.delete(cookbook_cookbook_repository_version_href)
40
+ p result
41
+ rescue PulpCookbookClient::ApiError => e
42
+ puts "Exception when calling RepositoriesCookbookVersionsApi->delete: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **cookbook_cookbook_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(cookbook_cookbook_repository_href, opts)
70
+
71
+ List repository versions
72
+
73
+ Cookbook Repository Version Endpoint. CookbookRepositoryVersion represents a single cookbook repository version.
74
+
75
+ ### Example
76
+
77
+ ```ruby
78
+ # load the gem
79
+ require 'pulp_cookbook_client'
80
+ # setup authorization
81
+ PulpCookbookClient.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 = PulpCookbookClient::RepositoriesCookbookVersionsApi.new
88
+ cookbook_cookbook_repository_href = 'cookbook_cookbook_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(cookbook_cookbook_repository_href, opts)
114
+ p result
115
+ rescue PulpCookbookClient::ApiError => e
116
+ puts "Exception when calling RepositoriesCookbookVersionsApi->list: #{e}"
117
+ end
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+
123
+ Name | Type | Description | Notes
124
+ ------------- | ------------- | ------------- | -------------
125
+ **cookbook_cookbook_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(cookbook_cookbook_repository_version_href, opts)
163
+
164
+ Inspect a repository version
165
+
166
+ Cookbook Repository Version Endpoint. CookbookRepositoryVersion represents a single cookbook repository version.
167
+
168
+ ### Example
169
+
170
+ ```ruby
171
+ # load the gem
172
+ require 'pulp_cookbook_client'
173
+ # setup authorization
174
+ PulpCookbookClient.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 = PulpCookbookClient::RepositoriesCookbookVersionsApi.new
181
+ cookbook_cookbook_repository_version_href = 'cookbook_cookbook_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(cookbook_cookbook_repository_version_href, opts)
190
+ p result
191
+ rescue PulpCookbookClient::ApiError => e
192
+ puts "Exception when calling RepositoriesCookbookVersionsApi->read: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+
199
+ Name | Type | Description | Notes
200
+ ------------- | ------------- | ------------- | -------------
201
+ **cookbook_cookbook_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(cookbook_cookbook_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_cookbook_client'
232
+ # setup authorization
233
+ PulpCookbookClient.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 = PulpCookbookClient::RepositoriesCookbookVersionsApi.new
240
+ cookbook_cookbook_repository_version_href = 'cookbook_cookbook_repository_version_href_example' # String |
241
+ repository_version = PulpCookbookClient::RepositoryVersion.new # RepositoryVersion |
242
+
243
+ begin
244
+ result = api_instance.repair(cookbook_cookbook_repository_version_href, repository_version)
245
+ p result
246
+ rescue PulpCookbookClient::ApiError => e
247
+ puts "Exception when calling RepositoriesCookbookVersionsApi->repair: #{e}"
248
+ end
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+
254
+ Name | Type | Description | Notes
255
+ ------------- | ------------- | ------------- | -------------
256
+ **cookbook_cookbook_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
+ # PulpCookbookClient::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 'PulpCookbookClient'
15
+
16
+ instance = PulpCookbookClient::RepositoryAddRemoveContent.new(add_content_units: null,
17
+ remove_content_units: null,
18
+ base_version: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # PulpCookbookClient::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 'PulpCookbookClient'
14
+
15
+ instance = PulpCookbookClient::RepositorySyncURL.new(remote: null,
16
+ mirror: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # PulpCookbookClient::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 'PulpCookbookClient'
13
+
14
+ instance = PulpCookbookClient::RepositoryVersion.new(base_version: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,27 @@
1
+ # PulpCookbookClient::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 'PulpCookbookClient'
18
+
19
+ instance = PulpCookbookClient::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,264 @@
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 PulpCookbookClient
16
+ class ContentCookbooksApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a cookbook package content
23
+ # Trigger an asynchronous task to create content,optionally create new repository version.
24
+ # @param name [String] name of the cookbook
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :artifact Artifact file representing the physical content
27
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
28
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
+ # @option opts [String] :version version of the cookbook
30
+ # @return [AsyncOperationResponse]
31
+ def create(name, opts = {})
32
+ data, _status_code, _headers = create_with_http_info(name, opts)
33
+ data
34
+ end
35
+
36
+ # Create a cookbook package content
37
+ # Trigger an asynchronous task to create content,optionally create new repository version.
38
+ # @param name [String] name of the cookbook
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :artifact Artifact file representing the physical content
41
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
+ # @option opts [String] :version version of the cookbook
44
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
45
+ def create_with_http_info(name, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: ContentCookbooksApi.create ...'
48
+ end
49
+ # verify the required parameter 'name' is set
50
+ if @api_client.config.client_side_validation && name.nil?
51
+ fail ArgumentError, "Missing the required parameter 'name' when calling ContentCookbooksApi.create"
52
+ end
53
+ if @api_client.config.client_side_validation && name.to_s.length < 1
54
+ fail ArgumentError, 'invalid value for "name" when calling ContentCookbooksApi.create, the character length must be great than or equal to 1.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && !opts[:'version'].nil? && opts[:'version'].to_s.length < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"version"]" when calling ContentCookbooksApi.create, the character length must be great than or equal to 1.'
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/pulp/api/v3/content/cookbook/cookbooks/'
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
+ # HTTP header 'Content-Type'
72
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+ form_params['name'] = name
77
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
78
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
79
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
80
+ form_params['version'] = opts[:'version'] if !opts[:'version'].nil?
81
+
82
+ # http body (model)
83
+ post_body = opts[:body]
84
+
85
+ # return_type
86
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
87
+
88
+ # auth_names
89
+ auth_names = opts[:auth_names] || ['basicAuth']
90
+
91
+ new_options = opts.merge(
92
+ :header_params => header_params,
93
+ :query_params => query_params,
94
+ :form_params => form_params,
95
+ :body => post_body,
96
+ :auth_names => auth_names,
97
+ :return_type => return_type
98
+ )
99
+
100
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug "API called: ContentCookbooksApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
+ end
104
+ return data, status_code, headers
105
+ end
106
+
107
+ # List cookbook package contents
108
+ # Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
109
+ # @param [Hash] opts the optional parameters
110
+ # @option opts [String] :content_id Filter results where content_id matches value
111
+ # @option opts [Integer] :limit Number of results to return per page.
112
+ # @option opts [String] :name Filter results where name matches value
113
+ # @option opts [Integer] :offset The initial index from which to return the results.
114
+ # @option opts [String] :ordering Which field to use when ordering the results.
115
+ # @option opts [String] :repository_version Repository Version referenced by HREF
116
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
117
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
118
+ # @option opts [String] :version Filter results where version matches value
119
+ # @option opts [String] :fields A list of fields to include in the response.
120
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
121
+ # @return [PaginatedcookbookCookbookPackageContentResponseList]
122
+ def list(opts = {})
123
+ data, _status_code, _headers = list_with_http_info(opts)
124
+ data
125
+ end
126
+
127
+ # List cookbook package contents
128
+ # Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
129
+ # @param [Hash] opts the optional parameters
130
+ # @option opts [String] :content_id Filter results where content_id matches value
131
+ # @option opts [Integer] :limit Number of results to return per page.
132
+ # @option opts [String] :name Filter results where name matches value
133
+ # @option opts [Integer] :offset The initial index from which to return the results.
134
+ # @option opts [String] :ordering Which field to use when ordering the results.
135
+ # @option opts [String] :repository_version Repository Version referenced by HREF
136
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
137
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
138
+ # @option opts [String] :version Filter results where version matches value
139
+ # @option opts [String] :fields A list of fields to include in the response.
140
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
141
+ # @return [Array<(PaginatedcookbookCookbookPackageContentResponseList, Integer, Hash)>] PaginatedcookbookCookbookPackageContentResponseList data, response status code and response headers
142
+ def list_with_http_info(opts = {})
143
+ if @api_client.config.debugging
144
+ @api_client.config.logger.debug 'Calling API: ContentCookbooksApi.list ...'
145
+ end
146
+ # resource path
147
+ local_var_path = '/pulp/api/v3/content/cookbook/cookbooks/'
148
+
149
+ # query parameters
150
+ query_params = opts[:query_params] || {}
151
+ query_params[:'content_id'] = opts[:'content_id'] if !opts[:'content_id'].nil?
152
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
153
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
154
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
155
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
156
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
157
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
158
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
159
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
160
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
161
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
162
+
163
+ # header parameters
164
+ header_params = opts[:header_params] || {}
165
+ # HTTP header 'Accept' (if needed)
166
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
167
+
168
+ # form parameters
169
+ form_params = opts[:form_params] || {}
170
+
171
+ # http body (model)
172
+ post_body = opts[:body]
173
+
174
+ # return_type
175
+ return_type = opts[:return_type] || 'PaginatedcookbookCookbookPackageContentResponseList'
176
+
177
+ # auth_names
178
+ auth_names = opts[:auth_names] || ['basicAuth']
179
+
180
+ new_options = opts.merge(
181
+ :header_params => header_params,
182
+ :query_params => query_params,
183
+ :form_params => form_params,
184
+ :body => post_body,
185
+ :auth_names => auth_names,
186
+ :return_type => return_type
187
+ )
188
+
189
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
190
+ if @api_client.config.debugging
191
+ @api_client.config.logger.debug "API called: ContentCookbooksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
192
+ end
193
+ return data, status_code, headers
194
+ end
195
+
196
+ # Inspect a cookbook package content
197
+ # Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
198
+ # @param cookbook_cookbook_package_content_href [String]
199
+ # @param [Hash] opts the optional parameters
200
+ # @option opts [String] :fields A list of fields to include in the response.
201
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
202
+ # @return [CookbookCookbookPackageContentResponse]
203
+ def read(cookbook_cookbook_package_content_href, opts = {})
204
+ data, _status_code, _headers = read_with_http_info(cookbook_cookbook_package_content_href, opts)
205
+ data
206
+ end
207
+
208
+ # Inspect a cookbook package content
209
+ # Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
210
+ # @param cookbook_cookbook_package_content_href [String]
211
+ # @param [Hash] opts the optional parameters
212
+ # @option opts [String] :fields A list of fields to include in the response.
213
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
214
+ # @return [Array<(CookbookCookbookPackageContentResponse, Integer, Hash)>] CookbookCookbookPackageContentResponse data, response status code and response headers
215
+ def read_with_http_info(cookbook_cookbook_package_content_href, opts = {})
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug 'Calling API: ContentCookbooksApi.read ...'
218
+ end
219
+ # verify the required parameter 'cookbook_cookbook_package_content_href' is set
220
+ if @api_client.config.client_side_validation && cookbook_cookbook_package_content_href.nil?
221
+ fail ArgumentError, "Missing the required parameter 'cookbook_cookbook_package_content_href' when calling ContentCookbooksApi.read"
222
+ end
223
+ # resource path
224
+ local_var_path = '{cookbook_cookbook_package_content_href}'.sub('{' + 'cookbook_cookbook_package_content_href' + '}', CGI.escape(cookbook_cookbook_package_content_href.to_s).gsub('%2F', '/'))
225
+
226
+ # query parameters
227
+ query_params = opts[:query_params] || {}
228
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
229
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
230
+
231
+ # header parameters
232
+ header_params = opts[:header_params] || {}
233
+ # HTTP header 'Accept' (if needed)
234
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
235
+
236
+ # form parameters
237
+ form_params = opts[:form_params] || {}
238
+
239
+ # http body (model)
240
+ post_body = opts[:body]
241
+
242
+ # return_type
243
+ return_type = opts[:return_type] || 'CookbookCookbookPackageContentResponse'
244
+
245
+ # auth_names
246
+ auth_names = opts[:auth_names] || ['basicAuth']
247
+
248
+ new_options = opts.merge(
249
+ :header_params => header_params,
250
+ :query_params => query_params,
251
+ :form_params => form_params,
252
+ :body => post_body,
253
+ :auth_names => auth_names,
254
+ :return_type => return_type
255
+ )
256
+
257
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
258
+ if @api_client.config.debugging
259
+ @api_client.config.logger.debug "API called: ContentCookbooksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
260
+ end
261
+ return data, status_code, headers
262
+ end
263
+ end
264
+ end