pulp_cookbook_client 0.1.0b9 → 0.1.0b10.dev1674790537
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.
Potentially problematic release.
This version of pulp_cookbook_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/docs/ContentCookbooksApi.md +16 -14
- data/docs/CookbookCookbookDistribution.md +1 -1
- data/docs/CookbookCookbookDistributionResponse.md +1 -1
- data/docs/CookbookCookbookPackageContent.md +6 -4
- data/docs/CookbookCookbookPackageContentResponse.md +3 -3
- data/docs/CookbookCookbookRemote.md +3 -3
- data/docs/CookbookCookbookRemoteResponse.md +3 -1
- data/docs/CookbookCookbookRemoteResponseHiddenFields.md +19 -0
- data/docs/CookbookCookbookRepository.md +1 -1
- data/docs/CookbookCookbookRepositoryResponse.md +1 -1
- data/docs/DistributionsCookbookApi.md +20 -14
- data/docs/PatchedcookbookCookbookDistribution.md +1 -1
- data/docs/PatchedcookbookCookbookRemote.md +3 -3
- data/docs/PatchedcookbookCookbookRepository.md +1 -1
- data/docs/PublicationsCookbookApi.md +14 -12
- data/docs/RemotesCookbookApi.md +14 -14
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesCookbookApi.md +14 -12
- data/docs/RepositoriesCookbookVersionsApi.md +18 -18
- data/lib/pulp_cookbook_client/api/content_cookbooks_api.rb +28 -21
- data/lib/pulp_cookbook_client/api/distributions_cookbook_api.rb +32 -19
- data/lib/pulp_cookbook_client/api/publications_cookbook_api.rb +24 -17
- data/lib/pulp_cookbook_client/api/remotes_cookbook_api.rb +23 -19
- data/lib/pulp_cookbook_client/api/repositories_cookbook_api.rb +24 -17
- data/lib/pulp_cookbook_client/api/repositories_cookbook_versions_api.rb +32 -28
- data/lib/pulp_cookbook_client/api_client.rb +2 -5
- data/lib/pulp_cookbook_client/configuration.rb +1 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution.rb +4 -2
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution_response.rb +4 -2
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content.rb +25 -15
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content_response.rb +11 -11
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote.rb +6 -4
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote_response.rb +17 -3
- data/lib/pulp_cookbook_client/models/{repository_version.rb → cookbook_cookbook_remote_response_hidden_fields.rb} +19 -12
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository.rb +4 -2
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository_response.rb +4 -2
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_distribution.rb +4 -2
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_remote.rb +6 -4
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_repository.rb +4 -2
- data/lib/pulp_cookbook_client/models/{content_summary.rb → repair.rb} +13 -50
- data/lib/pulp_cookbook_client/version.rb +1 -1
- data/lib/pulp_cookbook_client.rb +2 -2
- data/pulp_cookbook_client.gemspec +3 -3
- data/spec/api/content_cookbooks_api_spec.rb +8 -7
- data/spec/api/distributions_cookbook_api_spec.rb +10 -7
- data/spec/api/publications_cookbook_api_spec.rb +7 -6
- data/spec/api/remotes_cookbook_api_spec.rb +7 -7
- data/spec/api/repositories_cookbook_api_spec.rb +7 -6
- data/spec/api/repositories_cookbook_versions_api_spec.rb +8 -8
- data/spec/models/cookbook_cookbook_package_content_response_spec.rb +2 -2
- data/spec/models/cookbook_cookbook_package_content_spec.rb +8 -2
- data/spec/models/{content_summary_spec.rb → cookbook_cookbook_remote_response_hidden_fields_spec.rb} +8 -14
- data/spec/models/cookbook_cookbook_remote_response_spec.rb +6 -0
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +37 -38
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/git_push.sh +0 -58
@@ -144,16 +144,17 @@ end
|
|
144
144
|
api_instance = PulpCookbookClient::RepositoriesCookbookApi.new
|
145
145
|
opts = {
|
146
146
|
limit: 56, # Integer | Number of results to return per page.
|
147
|
-
name: 'name_example', # String |
|
147
|
+
name: 'name_example', # String | Filter results where name matches value
|
148
148
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
149
149
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
150
150
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
151
151
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
152
152
|
offset: 56, # Integer | The initial index from which to return the results.
|
153
|
-
ordering: 'ordering_example', # String |
|
153
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
154
154
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
155
|
-
|
156
|
-
|
155
|
+
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
156
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
157
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
157
158
|
}
|
158
159
|
|
159
160
|
begin
|
@@ -171,16 +172,17 @@ end
|
|
171
172
|
Name | Type | Description | Notes
|
172
173
|
------------- | ------------- | ------------- | -------------
|
173
174
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
174
|
-
**name** | **String**|
|
175
|
+
**name** | **String**| Filter results where name matches value | [optional]
|
175
176
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
176
177
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
177
178
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
178
179
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
179
180
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
180
|
-
**ordering** | **String
|
181
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
181
182
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
182
|
-
**
|
183
|
-
**
|
183
|
+
**remote** | **String**| Foreign Key referenced by HREF | [optional]
|
184
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
185
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
184
186
|
|
185
187
|
### Return type
|
186
188
|
|
@@ -329,8 +331,8 @@ end
|
|
329
331
|
api_instance = PulpCookbookClient::RepositoriesCookbookApi.new
|
330
332
|
cookbook_cookbook_repository_href = 'cookbook_cookbook_repository_href_example' # String |
|
331
333
|
opts = {
|
332
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
333
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
334
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
335
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
334
336
|
}
|
335
337
|
|
336
338
|
begin
|
@@ -348,8 +350,8 @@ end
|
|
348
350
|
Name | Type | Description | Notes
|
349
351
|
------------- | ------------- | ------------- | -------------
|
350
352
|
**cookbook_cookbook_repository_href** | **String**| |
|
351
|
-
**fields** | **String
|
352
|
-
**exclude_fields** | **String
|
353
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
354
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
353
355
|
|
354
356
|
### Return type
|
355
357
|
|
@@ -90,22 +90,22 @@ opts = {
|
|
90
90
|
content: 'content_example', # String | Content Unit referenced by HREF
|
91
91
|
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
92
92
|
limit: 56, # Integer | Number of results to return per page.
|
93
|
-
number: 56, # Integer |
|
93
|
+
number: 56, # Integer | Filter results where number matches value
|
94
94
|
number__gt: 56, # Integer | Filter results where number is greater than value
|
95
95
|
number__gte: 56, # Integer | Filter results where number is greater than or equal to value
|
96
96
|
number__lt: 56, # Integer | Filter results where number is less than value
|
97
97
|
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
98
98
|
number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
|
99
99
|
offset: 56, # Integer | The initial index from which to return the results.
|
100
|
-
ordering: 'ordering_example', # String |
|
101
|
-
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime |
|
100
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
101
|
+
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created matches value
|
102
102
|
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
103
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
104
|
pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
|
105
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
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.
|
107
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
108
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
109
109
|
}
|
110
110
|
|
111
111
|
begin
|
@@ -126,22 +126,22 @@ Name | Type | Description | Notes
|
|
126
126
|
**content** | **String**| Content Unit referenced by HREF | [optional]
|
127
127
|
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
128
128
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
129
|
-
**number** | **Integer**|
|
129
|
+
**number** | **Integer**| Filter results where number matches value | [optional]
|
130
130
|
**number__gt** | **Integer**| Filter results where number is greater than value | [optional]
|
131
131
|
**number__gte** | **Integer**| Filter results where number is greater than or equal to value | [optional]
|
132
132
|
**number__lt** | **Integer**| Filter results where number is less than value | [optional]
|
133
133
|
**number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
|
134
134
|
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
135
135
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
136
|
-
**ordering** | **String
|
137
|
-
**pulp_created** | **DateTime**|
|
136
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
137
|
+
**pulp_created** | **DateTime**| Filter results where pulp_created matches value | [optional]
|
138
138
|
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
139
139
|
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
140
140
|
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
141
141
|
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
142
142
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
143
|
-
**fields** | **String
|
144
|
-
**exclude_fields** | **String
|
143
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
144
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
145
145
|
|
146
146
|
### Return type
|
147
147
|
|
@@ -180,8 +180,8 @@ end
|
|
180
180
|
api_instance = PulpCookbookClient::RepositoriesCookbookVersionsApi.new
|
181
181
|
cookbook_cookbook_repository_version_href = 'cookbook_cookbook_repository_version_href_example' # String |
|
182
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.
|
183
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
184
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
185
185
|
}
|
186
186
|
|
187
187
|
begin
|
@@ -199,8 +199,8 @@ end
|
|
199
199
|
Name | Type | Description | Notes
|
200
200
|
------------- | ------------- | ------------- | -------------
|
201
201
|
**cookbook_cookbook_repository_version_href** | **String**| |
|
202
|
-
**fields** | **String
|
203
|
-
**exclude_fields** | **String
|
202
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
203
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
204
204
|
|
205
205
|
### Return type
|
206
206
|
|
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
|
|
218
218
|
|
219
219
|
## repair
|
220
220
|
|
221
|
-
> AsyncOperationResponse repair(cookbook_cookbook_repository_version_href,
|
221
|
+
> AsyncOperationResponse repair(cookbook_cookbook_repository_version_href, repair)
|
222
222
|
|
223
223
|
|
224
224
|
|
@@ -238,10 +238,10 @@ end
|
|
238
238
|
|
239
239
|
api_instance = PulpCookbookClient::RepositoriesCookbookVersionsApi.new
|
240
240
|
cookbook_cookbook_repository_version_href = 'cookbook_cookbook_repository_version_href_example' # String |
|
241
|
-
|
241
|
+
repair = PulpCookbookClient::Repair.new # Repair |
|
242
242
|
|
243
243
|
begin
|
244
|
-
result = api_instance.repair(cookbook_cookbook_repository_version_href,
|
244
|
+
result = api_instance.repair(cookbook_cookbook_repository_version_href, repair)
|
245
245
|
p result
|
246
246
|
rescue PulpCookbookClient::ApiError => e
|
247
247
|
puts "Exception when calling RepositoriesCookbookVersionsApi->repair: #{e}"
|
@@ -254,7 +254,7 @@ end
|
|
254
254
|
Name | Type | Description | Notes
|
255
255
|
------------- | ------------- | ------------- | -------------
|
256
256
|
**cookbook_cookbook_repository_version_href** | **String**| |
|
257
|
-
**
|
257
|
+
**repair** | [**Repair**](Repair.md)| |
|
258
258
|
|
259
259
|
### Return type
|
260
260
|
|
@@ -23,9 +23,10 @@ module PulpCookbookClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param name [String] name of the cookbook
|
25
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
26
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
27
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
28
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
29
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
29
30
|
# @option opts [String] :version version of the cookbook
|
30
31
|
# @return [AsyncOperationResponse]
|
31
32
|
def create(name, opts = {})
|
@@ -37,9 +38,10 @@ module PulpCookbookClient
|
|
37
38
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
39
|
# @param name [String] name of the cookbook
|
39
40
|
# @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
41
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
43
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
44
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
43
45
|
# @option opts [String] :version version of the cookbook
|
44
46
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
45
47
|
def create_with_http_info(name, opts = {})
|
@@ -74,9 +76,10 @@ module PulpCookbookClient
|
|
74
76
|
# form parameters
|
75
77
|
form_params = opts[:form_params] || {}
|
76
78
|
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
79
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
80
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
81
|
+
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
82
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
80
83
|
form_params['version'] = opts[:'version'] if !opts[:'version'].nil?
|
81
84
|
|
82
85
|
# http body (model)
|
@@ -111,13 +114,13 @@ module PulpCookbookClient
|
|
111
114
|
# @option opts [Integer] :limit Number of results to return per page.
|
112
115
|
# @option opts [String] :name Filter results where name matches value
|
113
116
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
114
|
-
# @option opts [String] :ordering
|
117
|
+
# @option opts [Array<String>] :ordering Ordering
|
115
118
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
116
119
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
117
120
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
118
121
|
# @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.
|
122
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
123
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
121
124
|
# @return [PaginatedcookbookCookbookPackageContentResponseList]
|
122
125
|
def list(opts = {})
|
123
126
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -131,18 +134,22 @@ module PulpCookbookClient
|
|
131
134
|
# @option opts [Integer] :limit Number of results to return per page.
|
132
135
|
# @option opts [String] :name Filter results where name matches value
|
133
136
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
134
|
-
# @option opts [String] :ordering
|
137
|
+
# @option opts [Array<String>] :ordering Ordering
|
135
138
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
136
139
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
137
140
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
138
141
|
# @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.
|
142
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
143
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
141
144
|
# @return [Array<(PaginatedcookbookCookbookPackageContentResponseList, Integer, Hash)>] PaginatedcookbookCookbookPackageContentResponseList data, response status code and response headers
|
142
145
|
def list_with_http_info(opts = {})
|
143
146
|
if @api_client.config.debugging
|
144
147
|
@api_client.config.logger.debug 'Calling API: ContentCookbooksApi.list ...'
|
145
148
|
end
|
149
|
+
allowable_values = ["-content_id", "-content_id_type", "-dependencies", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-version", "content_id", "content_id_type", "dependencies", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "version"]
|
150
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
151
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
152
|
+
end
|
146
153
|
# resource path
|
147
154
|
local_var_path = '/pulp/api/v3/content/cookbook/cookbooks/'
|
148
155
|
|
@@ -152,13 +159,13 @@ module PulpCookbookClient
|
|
152
159
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
153
160
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
154
161
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
155
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
162
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
156
163
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
157
164
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
158
165
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
159
166
|
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?
|
167
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
168
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
162
169
|
|
163
170
|
# header parameters
|
164
171
|
header_params = opts[:header_params] || {}
|
@@ -197,8 +204,8 @@ module PulpCookbookClient
|
|
197
204
|
# Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
|
198
205
|
# @param cookbook_cookbook_package_content_href [String]
|
199
206
|
# @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.
|
207
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
208
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
202
209
|
# @return [CookbookCookbookPackageContentResponse]
|
203
210
|
def read(cookbook_cookbook_package_content_href, opts = {})
|
204
211
|
data, _status_code, _headers = read_with_http_info(cookbook_cookbook_package_content_href, opts)
|
@@ -209,8 +216,8 @@ module PulpCookbookClient
|
|
209
216
|
# Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
|
210
217
|
# @param cookbook_cookbook_package_content_href [String]
|
211
218
|
# @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.
|
219
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
220
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
214
221
|
# @return [Array<(CookbookCookbookPackageContentResponse, Integer, Hash)>] CookbookCookbookPackageContentResponse data, response status code and response headers
|
215
222
|
def read_with_http_info(cookbook_cookbook_package_content_href, opts = {})
|
216
223
|
if @api_client.config.debugging
|
@@ -225,8 +232,8 @@ module PulpCookbookClient
|
|
225
232
|
|
226
233
|
# query parameters
|
227
234
|
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?
|
235
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
236
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
230
237
|
|
231
238
|
# header parameters
|
232
239
|
header_params = opts[:header_params] || {}
|
@@ -148,21 +148,24 @@ module PulpCookbookClient
|
|
148
148
|
# List cookbook distributions
|
149
149
|
# Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [String] :base_path
|
151
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
152
152
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
153
153
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
154
154
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
155
155
|
# @option opts [Integer] :limit Number of results to return per page.
|
156
|
-
# @option opts [String] :name
|
156
|
+
# @option opts [String] :name Filter results where name matches value
|
157
157
|
# @option opts [String] :name__contains Filter results where name contains value
|
158
158
|
# @option opts [String] :name__icontains Filter results where name contains value
|
159
159
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
160
160
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
161
161
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
|
-
# @option opts [String] :ordering
|
162
|
+
# @option opts [Array<String>] :ordering Ordering
|
163
163
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
164
|
-
# @option opts [String] :
|
165
|
-
# @option opts [String] :
|
164
|
+
# @option opts [String] :repository Filter results where repository matches value
|
165
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
166
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
167
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
168
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
166
169
|
# @return [PaginatedcookbookCookbookDistributionResponseList]
|
167
170
|
def list(opts = {})
|
168
171
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -172,26 +175,33 @@ module PulpCookbookClient
|
|
172
175
|
# List cookbook distributions
|
173
176
|
# Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
|
174
177
|
# @param [Hash] opts the optional parameters
|
175
|
-
# @option opts [String] :base_path
|
178
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
176
179
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
177
180
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
178
181
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
179
182
|
# @option opts [Integer] :limit Number of results to return per page.
|
180
|
-
# @option opts [String] :name
|
183
|
+
# @option opts [String] :name Filter results where name matches value
|
181
184
|
# @option opts [String] :name__contains Filter results where name contains value
|
182
185
|
# @option opts [String] :name__icontains Filter results where name contains value
|
183
186
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
184
187
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
185
188
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
186
|
-
# @option opts [String] :ordering
|
189
|
+
# @option opts [Array<String>] :ordering Ordering
|
187
190
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
188
|
-
# @option opts [String] :
|
189
|
-
# @option opts [String] :
|
191
|
+
# @option opts [String] :repository Filter results where repository matches value
|
192
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
193
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
194
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
195
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
190
196
|
# @return [Array<(PaginatedcookbookCookbookDistributionResponseList, Integer, Hash)>] PaginatedcookbookCookbookDistributionResponseList data, response status code and response headers
|
191
197
|
def list_with_http_info(opts = {})
|
192
198
|
if @api_client.config.debugging
|
193
199
|
@api_client.config.logger.debug 'Calling API: DistributionsCookbookApi.list ...'
|
194
200
|
end
|
201
|
+
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
202
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
203
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
204
|
+
end
|
195
205
|
# resource path
|
196
206
|
local_var_path = '/pulp/api/v3/distributions/cookbook/cookbook/'
|
197
207
|
|
@@ -208,10 +218,13 @@ module PulpCookbookClient
|
|
208
218
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
209
219
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
210
220
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
211
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
221
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
212
222
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
213
|
-
query_params[:'
|
214
|
-
query_params[:'
|
223
|
+
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
224
|
+
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
225
|
+
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
226
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
227
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
215
228
|
|
216
229
|
# header parameters
|
217
230
|
header_params = opts[:header_params] || {}
|
@@ -320,8 +333,8 @@ module PulpCookbookClient
|
|
320
333
|
# Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
|
321
334
|
# @param cookbook_cookbook_distribution_href [String]
|
322
335
|
# @param [Hash] opts the optional parameters
|
323
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
324
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
336
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
337
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
325
338
|
# @return [CookbookCookbookDistributionResponse]
|
326
339
|
def read(cookbook_cookbook_distribution_href, opts = {})
|
327
340
|
data, _status_code, _headers = read_with_http_info(cookbook_cookbook_distribution_href, opts)
|
@@ -332,8 +345,8 @@ module PulpCookbookClient
|
|
332
345
|
# Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
|
333
346
|
# @param cookbook_cookbook_distribution_href [String]
|
334
347
|
# @param [Hash] opts the optional parameters
|
335
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
336
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
348
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
349
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
337
350
|
# @return [Array<(CookbookCookbookDistributionResponse, Integer, Hash)>] CookbookCookbookDistributionResponse data, response status code and response headers
|
338
351
|
def read_with_http_info(cookbook_cookbook_distribution_href, opts = {})
|
339
352
|
if @api_client.config.debugging
|
@@ -348,8 +361,8 @@ module PulpCookbookClient
|
|
348
361
|
|
349
362
|
# query parameters
|
350
363
|
query_params = opts[:query_params] || {}
|
351
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
352
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
364
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
365
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
353
366
|
|
354
367
|
# header parameters
|
355
368
|
header_params = opts[:header_params] || {}
|
@@ -150,16 +150,17 @@ module PulpCookbookClient
|
|
150
150
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
|
-
# @option opts [String] :ordering
|
154
|
-
# @option opts [DateTime] :pulp_created
|
153
|
+
# @option opts [Array<String>] :ordering Ordering
|
154
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
155
155
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
156
156
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
157
157
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
158
158
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
160
|
+
# @option opts [String] :repository Repository referenced by HREF
|
160
161
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
161
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
162
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
162
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
163
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
163
164
|
# @return [PaginatedcookbookCookbookPublicationResponseList]
|
164
165
|
def list(opts = {})
|
165
166
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -173,21 +174,26 @@ module PulpCookbookClient
|
|
173
174
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
174
175
|
# @option opts [Integer] :limit Number of results to return per page.
|
175
176
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
176
|
-
# @option opts [String] :ordering
|
177
|
-
# @option opts [DateTime] :pulp_created
|
177
|
+
# @option opts [Array<String>] :ordering Ordering
|
178
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
178
179
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
179
180
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
180
181
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
181
182
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
182
183
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
184
|
+
# @option opts [String] :repository Repository referenced by HREF
|
183
185
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
184
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
185
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
186
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
187
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
186
188
|
# @return [Array<(PaginatedcookbookCookbookPublicationResponseList, Integer, Hash)>] PaginatedcookbookCookbookPublicationResponseList data, response status code and response headers
|
187
189
|
def list_with_http_info(opts = {})
|
188
190
|
if @api_client.config.debugging
|
189
191
|
@api_client.config.logger.debug 'Calling API: PublicationsCookbookApi.list ...'
|
190
192
|
end
|
193
|
+
allowable_values = ["-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
|
194
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
195
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
196
|
+
end
|
191
197
|
# resource path
|
192
198
|
local_var_path = '/pulp/api/v3/publications/cookbook/cookbook/'
|
193
199
|
|
@@ -197,16 +203,17 @@ module PulpCookbookClient
|
|
197
203
|
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
198
204
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
199
205
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
200
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
206
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
201
207
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
202
208
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
203
209
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
204
210
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
205
211
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
206
212
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
213
|
+
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
207
214
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
208
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
209
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
215
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
216
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
210
217
|
|
211
218
|
# header parameters
|
212
219
|
header_params = opts[:header_params] || {}
|
@@ -245,8 +252,8 @@ module PulpCookbookClient
|
|
245
252
|
# File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
|
246
253
|
# @param cookbook_cookbook_publication_href [String]
|
247
254
|
# @param [Hash] opts the optional parameters
|
248
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
249
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
255
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
256
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
250
257
|
# @return [CookbookCookbookPublicationResponse]
|
251
258
|
def read(cookbook_cookbook_publication_href, opts = {})
|
252
259
|
data, _status_code, _headers = read_with_http_info(cookbook_cookbook_publication_href, opts)
|
@@ -257,8 +264,8 @@ module PulpCookbookClient
|
|
257
264
|
# File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
|
258
265
|
# @param cookbook_cookbook_publication_href [String]
|
259
266
|
# @param [Hash] opts the optional parameters
|
260
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
261
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
267
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
268
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
262
269
|
# @return [Array<(CookbookCookbookPublicationResponse, Integer, Hash)>] CookbookCookbookPublicationResponse data, response status code and response headers
|
263
270
|
def read_with_http_info(cookbook_cookbook_publication_href, opts = {})
|
264
271
|
if @api_client.config.debugging
|
@@ -273,8 +280,8 @@ module PulpCookbookClient
|
|
273
280
|
|
274
281
|
# query parameters
|
275
282
|
query_params = opts[:query_params] || {}
|
276
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
277
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
283
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
284
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
278
285
|
|
279
286
|
# header parameters
|
280
287
|
header_params = opts[:header_params] || {}
|