pulp_container_client 2.12.3 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/ContainerContainerRemote.md +2 -2
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentSignaturesApi.md +2 -2
- data/docs/ContentTagsApi.md +2 -2
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/OCIBuildImage.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +2 -2
- data/docs/PulpContainerNamespacesApi.md +2 -2
- data/docs/RemotesContainerApi.md +2 -2
- data/docs/RepositoriesContainerApi.md +6 -6
- data/docs/RepositoriesContainerPushApi.md +2 -2
- data/docs/RepositoriesContainerPushVersionsApi.md +2 -2
- data/docs/RepositoriesContainerVersionsApi.md +2 -2
- data/git_push.sh +58 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +7 -3
- data/lib/pulp_container_client/api/content_manifests_api.rb +7 -3
- data/lib/pulp_container_client/api/content_signatures_api.rb +7 -3
- data/lib/pulp_container_client/api/content_tags_api.rb +7 -3
- data/lib/pulp_container_client/api/distributions_container_api.rb +7 -3
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +7 -3
- data/lib/pulp_container_client/api/remotes_container_api.rb +7 -3
- data/lib/pulp_container_client/api/repositories_container_api.rb +11 -7
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +7 -3
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +7 -3
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +7 -3
- data/lib/pulp_container_client/api_client.rb +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +37 -37
- data/lib/pulp_container_client/models/container_container_namespace.rb +0 -9
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +0 -19
- data/lib/pulp_container_client/models/container_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +53 -53
- data/lib/pulp_container_client/models/container_container_remote.rb +2 -2
- data/lib/pulp_container_client/models/oci_build_image.rb +2 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +2 -2
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +3 -3
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_signatures_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/api/remotes_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_push_api_spec.rb +1 -1
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
- data/spec/api/repositories_container_versions_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +57 -56
@@ -26,7 +26,7 @@ module PulpContainerClient
|
|
26
26
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
27
27
|
# @option opts [Integer] :limit Number of results to return per page.
|
28
28
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
29
|
-
# @option opts [String] :ordering
|
29
|
+
# @option opts [Array<String>] :ordering Ordering
|
30
30
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
31
31
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
32
32
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -45,7 +45,7 @@ module PulpContainerClient
|
|
45
45
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
46
46
|
# @option opts [Integer] :limit Number of results to return per page.
|
47
47
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
48
|
-
# @option opts [String] :ordering
|
48
|
+
# @option opts [Array<String>] :ordering Ordering
|
49
49
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
50
50
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
51
51
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -56,6 +56,10 @@ module PulpContainerClient
|
|
56
56
|
if @api_client.config.debugging
|
57
57
|
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.list ...'
|
58
58
|
end
|
59
|
+
allowable_values = ["-_artifacts", "-config_blob", "-container_manifest", "-content_ptr", "-contentartifact", "-digest", "-group_roles", "-manifest_blobs", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "config_blob", "container_manifest", "content_ptr", "contentartifact", "digest", "group_roles", "manifest_blobs", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
60
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
61
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
62
|
+
end
|
59
63
|
# resource path
|
60
64
|
local_var_path = '/pulp/api/v3/content/container/blobs/'
|
61
65
|
|
@@ -65,7 +69,7 @@ module PulpContainerClient
|
|
65
69
|
query_params[:'digest__in'] = @api_client.build_collection_param(opts[:'digest__in'], :csv) if !opts[:'digest__in'].nil?
|
66
70
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
67
71
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
68
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
72
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
69
73
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
70
74
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
71
75
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -27,7 +27,7 @@ module PulpContainerClient
|
|
27
27
|
# @option opts [Integer] :limit Number of results to return per page.
|
28
28
|
# @option opts [Array<String>] :media_type
|
29
29
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
30
|
-
# @option opts [String] :ordering
|
30
|
+
# @option opts [Array<String>] :ordering Ordering
|
31
31
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
32
32
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
33
33
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -47,7 +47,7 @@ module PulpContainerClient
|
|
47
47
|
# @option opts [Integer] :limit Number of results to return per page.
|
48
48
|
# @option opts [Array<String>] :media_type
|
49
49
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
50
|
-
# @option opts [String] :ordering
|
50
|
+
# @option opts [Array<String>] :ordering Ordering
|
51
51
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
52
52
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
53
53
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -62,6 +62,10 @@ module PulpContainerClient
|
|
62
62
|
if @api_client.config.client_side_validation && opts[:'media_type'] && !opts[:'media_type'].all? { |item| allowable_values.include?(item) }
|
63
63
|
fail ArgumentError, "invalid value for \"media_type\", must include one of #{allowable_values}"
|
64
64
|
end
|
65
|
+
allowable_values = ["-_artifacts", "-blob_manifests", "-blobs", "-config_blob", "-container_manifest", "-content_ptr", "-contentartifact", "-digest", "-group_roles", "-image_manifests", "-listed_manifests", "-manifest_lists", "-media_type", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-schema_version", "-signed_manifests", "-tagged_manifests", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "blob_manifests", "blobs", "config_blob", "container_manifest", "content_ptr", "contentartifact", "digest", "group_roles", "image_manifests", "listed_manifests", "manifest_lists", "media_type", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "schema_version", "signed_manifests", "tagged_manifests", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
66
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
67
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
68
|
+
end
|
65
69
|
# resource path
|
66
70
|
local_var_path = '/pulp/api/v3/content/container/manifests/'
|
67
71
|
|
@@ -72,7 +76,7 @@ module PulpContainerClient
|
|
72
76
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
73
77
|
query_params[:'media_type'] = @api_client.build_collection_param(opts[:'media_type'], :multi) if !opts[:'media_type'].nil?
|
74
78
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
75
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
79
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
76
80
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
77
81
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
78
82
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -34,7 +34,7 @@ module PulpContainerClient
|
|
34
34
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
35
35
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
36
36
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
37
|
-
# @option opts [String] :ordering
|
37
|
+
# @option opts [Array<String>] :ordering Ordering
|
38
38
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
39
39
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
40
40
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -61,7 +61,7 @@ module PulpContainerClient
|
|
61
61
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
62
62
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
63
63
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
64
|
-
# @option opts [String] :ordering
|
64
|
+
# @option opts [Array<String>] :ordering Ordering
|
65
65
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
66
66
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
67
67
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -72,6 +72,10 @@ module PulpContainerClient
|
|
72
72
|
if @api_client.config.debugging
|
73
73
|
@api_client.config.logger.debug 'Calling API: ContentSignaturesApi.list ...'
|
74
74
|
end
|
75
|
+
allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-creator", "-data", "-digest", "-group_roles", "-key_id", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-signed_manifest", "-timestamp", "-timestamp_of_interest", "-type", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "creator", "data", "digest", "group_roles", "key_id", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "signed_manifest", "timestamp", "timestamp_of_interest", "type", "upstream_id", "user_roles", "version_memberships"]
|
76
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
77
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
78
|
+
end
|
75
79
|
# resource path
|
76
80
|
local_var_path = '/pulp/api/v3/content/container/signatures/'
|
77
81
|
|
@@ -89,7 +93,7 @@ module PulpContainerClient
|
|
89
93
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
90
94
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
91
95
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
92
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
96
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
93
97
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
94
98
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
95
99
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -28,7 +28,7 @@ module PulpContainerClient
|
|
28
28
|
# @option opts [String] :name Filter results where name matches value
|
29
29
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
30
30
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
31
|
-
# @option opts [String] :ordering
|
31
|
+
# @option opts [Array<String>] :ordering Ordering
|
32
32
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
33
33
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
34
34
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -49,7 +49,7 @@ module PulpContainerClient
|
|
49
49
|
# @option opts [String] :name Filter results where name matches value
|
50
50
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
51
51
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
52
|
-
# @option opts [String] :ordering
|
52
|
+
# @option opts [Array<String>] :ordering Ordering
|
53
53
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
54
54
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
55
55
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -64,6 +64,10 @@ module PulpContainerClient
|
|
64
64
|
if @api_client.config.client_side_validation && opts[:'media_type'] && !opts[:'media_type'].all? { |item| allowable_values.include?(item) }
|
65
65
|
fail ArgumentError, "invalid value for \"media_type\", must include one of #{allowable_values}"
|
66
66
|
end
|
67
|
+
allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-tagged_manifest", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "tagged_manifest", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
68
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
69
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
70
|
+
end
|
67
71
|
# resource path
|
68
72
|
local_var_path = '/pulp/api/v3/content/container/tags/'
|
69
73
|
|
@@ -75,7 +79,7 @@ module PulpContainerClient
|
|
75
79
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
76
80
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
77
81
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
78
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
82
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
79
83
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
80
84
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
81
85
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -228,7 +228,7 @@ module PulpContainerClient
|
|
228
228
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
229
229
|
# @option opts [String] :namespace__name
|
230
230
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
231
|
-
# @option opts [String] :ordering
|
231
|
+
# @option opts [Array<String>] :ordering Ordering
|
232
232
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
233
233
|
# @option opts [String] :fields A list of fields to include in the response.
|
234
234
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -253,7 +253,7 @@ module PulpContainerClient
|
|
253
253
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
254
254
|
# @option opts [String] :namespace__name
|
255
255
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
256
|
-
# @option opts [String] :ordering
|
256
|
+
# @option opts [Array<String>] :ordering Ordering
|
257
257
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
258
258
|
# @option opts [String] :fields A list of fields to include in the response.
|
259
259
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -262,6 +262,10 @@ module PulpContainerClient
|
|
262
262
|
if @api_client.config.debugging
|
263
263
|
@api_client.config.logger.debug 'Calling API: DistributionsContainerApi.list ...'
|
264
264
|
end
|
265
|
+
allowable_values = ["-base_path", "-content_guard", "-description", "-distribution_ptr", "-group_roles", "-name", "-namespace", "-pk", "-private", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "description", "distribution_ptr", "group_roles", "name", "namespace", "pk", "private", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
|
266
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
267
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
268
|
+
end
|
265
269
|
# resource path
|
266
270
|
local_var_path = '/pulp/api/v3/distributions/container/container/'
|
267
271
|
|
@@ -279,7 +283,7 @@ module PulpContainerClient
|
|
279
283
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
280
284
|
query_params[:'namespace__name'] = opts[:'namespace__name'] if !opts[:'namespace__name'].nil?
|
281
285
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
282
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
286
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
283
287
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
284
288
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
285
289
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
223
223
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
224
224
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
225
225
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
|
-
# @option opts [String] :ordering
|
226
|
+
# @option opts [Array<String>] :ordering Ordering
|
227
227
|
# @option opts [String] :fields A list of fields to include in the response.
|
228
228
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
229
229
|
# @return [PaginatedcontainerContainerNamespaceResponseList]
|
@@ -242,7 +242,7 @@ module PulpContainerClient
|
|
242
242
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
243
243
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
244
244
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
245
|
-
# @option opts [String] :ordering
|
245
|
+
# @option opts [Array<String>] :ordering Ordering
|
246
246
|
# @option opts [String] :fields A list of fields to include in the response.
|
247
247
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
248
248
|
# @return [Array<(PaginatedcontainerContainerNamespaceResponseList, Integer, Hash)>] PaginatedcontainerContainerNamespaceResponseList data, response status code and response headers
|
@@ -250,6 +250,10 @@ module PulpContainerClient
|
|
250
250
|
if @api_client.config.debugging
|
251
251
|
@api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.list ...'
|
252
252
|
end
|
253
|
+
allowable_values = ["-container_distributions", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-user_roles", "container_distributions", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "user_roles"]
|
254
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
255
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
256
|
+
end
|
253
257
|
# resource path
|
254
258
|
local_var_path = '/pulp/api/v3/pulp_container/namespaces/'
|
255
259
|
|
@@ -262,7 +266,7 @@ module PulpContainerClient
|
|
262
266
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
263
267
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
264
268
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
265
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
269
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
266
270
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
267
271
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
268
272
|
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
223
223
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
224
224
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
225
225
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
|
-
# @option opts [String] :ordering
|
226
|
+
# @option opts [Array<String>] :ordering Ordering
|
227
227
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
228
228
|
# @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
|
229
229
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
@@ -249,7 +249,7 @@ module PulpContainerClient
|
|
249
249
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
250
250
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
251
251
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
252
|
-
# @option opts [String] :ordering
|
252
|
+
# @option opts [Array<String>] :ordering Ordering
|
253
253
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
254
254
|
# @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
|
255
255
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
@@ -264,6 +264,10 @@ module PulpContainerClient
|
|
264
264
|
if @api_client.config.debugging
|
265
265
|
@api_client.config.logger.debug 'Calling API: RemotesContainerApi.list ...'
|
266
266
|
end
|
267
|
+
allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-container_containerremote", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-remoteartifact", "-repository", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "container_containerremote", "distribution", "download_concurrency", "group_roles", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "remoteartifact", "repository", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
|
268
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
269
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
270
|
+
end
|
267
271
|
# resource path
|
268
272
|
local_var_path = '/pulp/api/v3/remotes/container/container/'
|
269
273
|
|
@@ -276,7 +280,7 @@ module PulpContainerClient
|
|
276
280
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
277
281
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
278
282
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
279
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
283
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
280
284
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
281
285
|
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
282
286
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
@@ -161,8 +161,8 @@ module PulpContainerClient
|
|
161
161
|
# Trigger an asynchronous task to build an OCI image from a Containerfile. A new repository version is created with the new image and tag. This API is tech preview in Pulp Container 1.1. Backwards compatibility when upgrading is not guaranteed.
|
162
162
|
# @param container_container_repository_href [String]
|
163
163
|
# @param [Hash] opts the optional parameters
|
164
|
-
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run
|
165
|
-
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run
|
164
|
+
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run podman-build.
|
165
|
+
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run podman-build.
|
166
166
|
# @option opts [String] :tag A tag name for the new image being built. (default to 'latest')
|
167
167
|
# @option opts [Object] :artifacts A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile.
|
168
168
|
# @return [AsyncOperationResponse]
|
@@ -175,8 +175,8 @@ module PulpContainerClient
|
|
175
175
|
# Trigger an asynchronous task to build an OCI image from a Containerfile. A new repository version is created with the new image and tag. This API is tech preview in Pulp Container 1.1. Backwards compatibility when upgrading is not guaranteed.
|
176
176
|
# @param container_container_repository_href [String]
|
177
177
|
# @param [Hash] opts the optional parameters
|
178
|
-
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run
|
179
|
-
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run
|
178
|
+
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run podman-build.
|
179
|
+
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run podman-build.
|
180
180
|
# @option opts [String] :tag A tag name for the new image being built.
|
181
181
|
# @option opts [Object] :artifacts A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile.
|
182
182
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
@@ -513,7 +513,7 @@ module PulpContainerClient
|
|
513
513
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
514
514
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
515
515
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
516
|
-
# @option opts [String] :ordering
|
516
|
+
# @option opts [Array<String>] :ordering Ordering
|
517
517
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
518
518
|
# @option opts [String] :fields A list of fields to include in the response.
|
519
519
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -533,7 +533,7 @@ module PulpContainerClient
|
|
533
533
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
534
534
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
535
535
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
536
|
-
# @option opts [String] :ordering
|
536
|
+
# @option opts [Array<String>] :ordering Ordering
|
537
537
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
538
538
|
# @option opts [String] :fields A list of fields to include in the response.
|
539
539
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -542,6 +542,10 @@ module PulpContainerClient
|
|
542
542
|
if @api_client.config.debugging
|
543
543
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.list ...'
|
544
544
|
end
|
545
|
+
allowable_values = ["-alternatecontentsourcepath", "-container_containerpushrepository", "-container_containerrepository", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-uploads", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "container_containerpushrepository", "container_containerrepository", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "uploads", "user_hidden", "user_roles", "versions"]
|
546
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
547
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
548
|
+
end
|
545
549
|
# resource path
|
546
550
|
local_var_path = '/pulp/api/v3/repositories/container/container/'
|
547
551
|
|
@@ -554,7 +558,7 @@ module PulpContainerClient
|
|
554
558
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
555
559
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
556
560
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
557
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
561
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
558
562
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
559
563
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
560
564
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
@@ -97,7 +97,7 @@ module PulpContainerClient
|
|
97
97
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
98
98
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
99
99
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
100
|
-
# @option opts [String] :ordering
|
100
|
+
# @option opts [Array<String>] :ordering Ordering
|
101
101
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
102
102
|
# @option opts [String] :fields A list of fields to include in the response.
|
103
103
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -117,7 +117,7 @@ module PulpContainerClient
|
|
117
117
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
118
118
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
119
119
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
120
|
-
# @option opts [String] :ordering
|
120
|
+
# @option opts [Array<String>] :ordering Ordering
|
121
121
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
122
122
|
# @option opts [String] :fields A list of fields to include in the response.
|
123
123
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -126,6 +126,10 @@ module PulpContainerClient
|
|
126
126
|
if @api_client.config.debugging
|
127
127
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.list ...'
|
128
128
|
end
|
129
|
+
allowable_values = ["-alternatecontentsourcepath", "-container_containerpushrepository", "-container_containerrepository", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-uploads", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "container_containerpushrepository", "container_containerrepository", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "uploads", "user_hidden", "user_roles", "versions"]
|
130
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
131
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
132
|
+
end
|
129
133
|
# resource path
|
130
134
|
local_var_path = '/pulp/api/v3/repositories/container/container-push/'
|
131
135
|
|
@@ -138,7 +142,7 @@ module PulpContainerClient
|
|
138
142
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
139
143
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
140
144
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
141
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
145
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
142
146
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
143
147
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
144
148
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
@@ -95,7 +95,7 @@ module PulpContainerClient
|
|
95
95
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
96
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
-
# @option opts [String] :ordering
|
98
|
+
# @option opts [Array<String>] :ordering Ordering
|
99
99
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
100
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
101
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -124,7 +124,7 @@ module PulpContainerClient
|
|
124
124
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
125
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
|
-
# @option opts [String] :ordering
|
127
|
+
# @option opts [Array<String>] :ordering Ordering
|
128
128
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
129
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
130
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -142,6 +142,10 @@ module PulpContainerClient
|
|
142
142
|
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
143
143
|
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushVersionsApi.list"
|
144
144
|
end
|
145
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
146
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
147
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
148
|
+
end
|
145
149
|
# resource path
|
146
150
|
local_var_path = '{container_container_push_repository_href}versions/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
147
151
|
|
@@ -157,7 +161,7 @@ module PulpContainerClient
|
|
157
161
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
158
162
|
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
159
163
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
164
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
161
165
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
162
166
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
163
167
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
@@ -95,7 +95,7 @@ module PulpContainerClient
|
|
95
95
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
96
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
-
# @option opts [String] :ordering
|
98
|
+
# @option opts [Array<String>] :ordering Ordering
|
99
99
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
100
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
101
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -124,7 +124,7 @@ module PulpContainerClient
|
|
124
124
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
125
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
|
-
# @option opts [String] :ordering
|
127
|
+
# @option opts [Array<String>] :ordering Ordering
|
128
128
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
129
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
130
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -142,6 +142,10 @@ module PulpContainerClient
|
|
142
142
|
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
143
143
|
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.list"
|
144
144
|
end
|
145
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
146
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
147
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
148
|
+
end
|
145
149
|
# resource path
|
146
150
|
local_var_path = '{container_container_repository_href}versions/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
147
151
|
|
@@ -157,7 +161,7 @@ module PulpContainerClient
|
|
157
161
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
158
162
|
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
159
163
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
164
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
161
165
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
162
166
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
163
167
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
@@ -154,7 +154,7 @@ module PulpContainerClient
|
|
154
154
|
case value
|
155
155
|
when ::File, ::Tempfile
|
156
156
|
# TODO hardcode to application/octet-stream, need better way to detect content type
|
157
|
-
data[key] = Faraday::
|
157
|
+
data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
|
158
158
|
when ::Array, nil
|
159
159
|
# let Faraday handle Array and nil parameters
|
160
160
|
data[key] = value
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
20
|
+
# The latest RepositoryVersion for this Repository will be served.
|
21
|
+
attr_accessor :repository
|
22
|
+
|
18
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
19
24
|
attr_accessor :name
|
20
25
|
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
26
|
# An optional content-guard. If none is specified, a default one will be used.
|
24
27
|
attr_accessor :content_guard
|
25
28
|
|
26
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
27
30
|
attr_accessor :base_path
|
28
31
|
|
29
|
-
# The latest RepositoryVersion for this Repository will be served.
|
30
|
-
attr_accessor :repository
|
31
|
-
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
34
34
|
|
@@ -41,11 +41,11 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'name' => :'name',
|
45
44
|
:'pulp_labels' => :'pulp_labels',
|
45
|
+
:'repository' => :'repository',
|
46
|
+
:'name' => :'name',
|
46
47
|
:'content_guard' => :'content_guard',
|
47
48
|
:'base_path' => :'base_path',
|
48
|
-
:'repository' => :'repository',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -55,11 +55,11 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'name' => :'String',
|
59
58
|
:'pulp_labels' => :'Object',
|
59
|
+
:'repository' => :'String',
|
60
|
+
:'name' => :'String',
|
60
61
|
:'content_guard' => :'String',
|
61
62
|
:'base_path' => :'String',
|
62
|
-
:'repository' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,14 +90,18 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'name')
|
94
|
-
self.name = attributes[:'name']
|
95
|
-
end
|
96
|
-
|
97
93
|
if attributes.key?(:'pulp_labels')
|
98
94
|
self.pulp_labels = attributes[:'pulp_labels']
|
99
95
|
end
|
100
96
|
|
97
|
+
if attributes.key?(:'repository')
|
98
|
+
self.repository = attributes[:'repository']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'name')
|
102
|
+
self.name = attributes[:'name']
|
103
|
+
end
|
104
|
+
|
101
105
|
if attributes.key?(:'content_guard')
|
102
106
|
self.content_guard = attributes[:'content_guard']
|
103
107
|
end
|
@@ -106,10 +110,6 @@ module PulpContainerClient
|
|
106
110
|
self.base_path = attributes[:'base_path']
|
107
111
|
end
|
108
112
|
|
109
|
-
if attributes.key?(:'repository')
|
110
|
-
self.repository = attributes[:'repository']
|
111
|
-
end
|
112
|
-
|
113
113
|
if attributes.key?(:'repository_version')
|
114
114
|
self.repository_version = attributes[:'repository_version']
|
115
115
|
end
|
@@ -204,11 +204,11 @@ module PulpContainerClient
|
|
204
204
|
def ==(o)
|
205
205
|
return true if self.equal?(o)
|
206
206
|
self.class == o.class &&
|
207
|
-
name == o.name &&
|
208
207
|
pulp_labels == o.pulp_labels &&
|
208
|
+
repository == o.repository &&
|
209
|
+
name == o.name &&
|
209
210
|
content_guard == o.content_guard &&
|
210
211
|
base_path == o.base_path &&
|
211
|
-
repository == o.repository &&
|
212
212
|
repository_version == o.repository_version &&
|
213
213
|
private == o.private &&
|
214
214
|
description == o.description
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[
|
226
|
+
[pulp_labels, repository, name, content_guard, base_path, repository_version, private, description].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|