pulp_container_client 2.15.6 → 2.16.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 +27 -36
- 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/ContentBlobsApi.md +1 -3
- data/docs/ContentManifestsApi.md +1 -3
- data/docs/ContentSignaturesApi.md +1 -11
- data/docs/ContentTagsApi.md +1 -3
- data/docs/DistributionsContainerApi.md +10 -136
- data/docs/IndexDynamicApi.md +50 -0
- data/docs/IndexStaticApi.md +50 -0
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PulpContainerNamespacesApi.md +9 -23
- data/docs/RemotesContainerApi.md +9 -135
- data/docs/RepositoriesContainerApi.md +11 -137
- data/docs/RepositoriesContainerPushApi.md +10 -24
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -3
- data/docs/RepositoriesContainerVersionsApi.md +1 -3
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +0 -3
- data/lib/pulp_container_client/api/content_manifests_api.rb +0 -3
- data/lib/pulp_container_client/api/content_signatures_api.rb +0 -15
- data/lib/pulp_container_client/api/content_tags_api.rb +0 -3
- data/lib/pulp_container_client/api/distributions_container_api.rb +0 -163
- data/lib/pulp_container_client/api/index_dynamic_api.rb +74 -0
- data/lib/pulp_container_client/api/index_static_api.rb +74 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +0 -23
- data/lib/pulp_container_client/api/remotes_container_api.rb +0 -163
- data/lib/pulp_container_client/api/repositories_container_api.rb +2 -165
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +0 -23
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +0 -3
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +0 -3
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +29 -29
- data/lib/pulp_container_client/models/container_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +49 -49
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +2 -4
- data/spec/api/content_blobs_api_spec.rb +0 -1
- data/spec/api/content_manifests_api_spec.rb +0 -1
- data/spec/api/content_signatures_api_spec.rb +0 -5
- data/spec/api/content_tags_api_spec.rb +0 -1
- data/spec/api/distributions_container_api_spec.rb +0 -35
- data/spec/{models/set_label_spec.rb → api/index_dynamic_api_spec.rb} +11 -13
- data/spec/{models/unset_label_spec.rb → api/index_static_api_spec.rb} +12 -8
- data/spec/api/pulp_container_namespaces_api_spec.rb +0 -9
- data/spec/api/remotes_container_api_spec.rb +0 -35
- data/spec/api/repositories_container_api_spec.rb +1 -36
- data/spec/api/repositories_container_push_api_spec.rb +0 -9
- data/spec/api/repositories_container_push_versions_api_spec.rb +0 -1
- data/spec/api/repositories_container_versions_api_spec.rb +0 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +4 -4
- data/spec/models/container_container_distribution_spec.rb +4 -4
- 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 +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +57 -65
- data/docs/SetLabel.md +0 -19
- data/docs/SetLabelResponse.md +0 -19
- data/docs/UnsetLabel.md +0 -17
- data/docs/UnsetLabelResponse.md +0 -19
- data/lib/pulp_container_client/models/set_label.rb +0 -252
- data/lib/pulp_container_client/models/set_label_response.rb +0 -243
- data/lib/pulp_container_client/models/unset_label.rb +0 -242
- data/lib/pulp_container_client/models/unset_label_response.rb +0 -242
- data/spec/models/set_label_response_spec.rb +0 -47
- data/spec/models/unset_label_response_spec.rb +0 -47
@@ -89,7 +89,6 @@ module PulpContainerClient
|
|
89
89
|
return data, status_code, headers
|
90
90
|
end
|
91
91
|
|
92
|
-
# Add a role
|
93
92
|
# Add a role for this object to users/groups.
|
94
93
|
# @param container_container_repository_href [String]
|
95
94
|
# @param nested_role [NestedRole]
|
@@ -100,7 +99,6 @@ module PulpContainerClient
|
|
100
99
|
data
|
101
100
|
end
|
102
101
|
|
103
|
-
# Add a role
|
104
102
|
# Add a role for this object to users/groups.
|
105
103
|
# @param container_container_repository_href [String]
|
106
104
|
# @param nested_role [NestedRole]
|
@@ -160,7 +158,7 @@ module PulpContainerClient
|
|
160
158
|
end
|
161
159
|
|
162
160
|
# Build an Image
|
163
|
-
# 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
|
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 in tech preview. Backwards compatibility when upgrading is not guaranteed.
|
164
162
|
# @param container_container_repository_href [String]
|
165
163
|
# @param [Hash] opts the optional parameters
|
166
164
|
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run podman-build.
|
@@ -174,7 +172,7 @@ module PulpContainerClient
|
|
174
172
|
end
|
175
173
|
|
176
174
|
# Build an Image
|
177
|
-
# 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
|
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 in tech preview. Backwards compatibility when upgrading is not guaranteed.
|
178
176
|
# @param container_container_repository_href [String]
|
179
177
|
# @param [Hash] opts the optional parameters
|
180
178
|
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run podman-build.
|
@@ -513,18 +511,13 @@ module PulpContainerClient
|
|
513
511
|
# @option opts [String] :name Filter results where name matches value
|
514
512
|
# @option opts [String] :name__contains Filter results where name contains value
|
515
513
|
# @option opts [String] :name__icontains Filter results where name contains value
|
516
|
-
# @option opts [String] :name__iexact Filter results where name matches value
|
517
514
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
518
|
-
# @option opts [String] :name__iregex Filter results where name matches regex value
|
519
|
-
# @option opts [String] :name__istartswith Filter results where name starts with value
|
520
|
-
# @option opts [String] :name__regex Filter results where name matches regex value
|
521
515
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
522
516
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
523
517
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
524
518
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
525
519
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
526
520
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
527
|
-
# @option opts [String] :q
|
528
521
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
529
522
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
530
523
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -551,18 +544,13 @@ module PulpContainerClient
|
|
551
544
|
# @option opts [String] :name Filter results where name matches value
|
552
545
|
# @option opts [String] :name__contains Filter results where name contains value
|
553
546
|
# @option opts [String] :name__icontains Filter results where name contains value
|
554
|
-
# @option opts [String] :name__iexact Filter results where name matches value
|
555
547
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
556
|
-
# @option opts [String] :name__iregex Filter results where name matches regex value
|
557
|
-
# @option opts [String] :name__istartswith Filter results where name starts with value
|
558
|
-
# @option opts [String] :name__regex Filter results where name matches regex value
|
559
548
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
560
549
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
561
550
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
562
551
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
563
552
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
564
553
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
565
|
-
# @option opts [String] :q
|
566
554
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
567
555
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
568
556
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -594,18 +582,13 @@ module PulpContainerClient
|
|
594
582
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
595
583
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
596
584
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
597
|
-
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
598
585
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
599
|
-
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
600
|
-
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
601
|
-
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
602
586
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
603
587
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
604
588
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
605
589
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
606
590
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
607
591
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
608
|
-
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
609
592
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
610
593
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
611
594
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -652,7 +635,6 @@ module PulpContainerClient
|
|
652
635
|
return data, status_code, headers
|
653
636
|
end
|
654
637
|
|
655
|
-
# List roles
|
656
638
|
# List roles assigned to this object.
|
657
639
|
# @param container_container_repository_href [String]
|
658
640
|
# @param [Hash] opts the optional parameters
|
@@ -664,7 +646,6 @@ module PulpContainerClient
|
|
664
646
|
data
|
665
647
|
end
|
666
648
|
|
667
|
-
# List roles
|
668
649
|
# List roles assigned to this object.
|
669
650
|
# @param container_container_repository_href [String]
|
670
651
|
# @param [Hash] opts the optional parameters
|
@@ -720,7 +701,6 @@ module PulpContainerClient
|
|
720
701
|
return data, status_code, headers
|
721
702
|
end
|
722
703
|
|
723
|
-
# List user permissions
|
724
704
|
# List permissions available to the current user on this object.
|
725
705
|
# @param container_container_repository_href [String]
|
726
706
|
# @param [Hash] opts the optional parameters
|
@@ -732,7 +712,6 @@ module PulpContainerClient
|
|
732
712
|
data
|
733
713
|
end
|
734
714
|
|
735
|
-
# List user permissions
|
736
715
|
# List permissions available to the current user on this object.
|
737
716
|
# @param container_container_repository_href [String]
|
738
717
|
# @param [Hash] opts the optional parameters
|
@@ -996,7 +975,6 @@ module PulpContainerClient
|
|
996
975
|
return data, status_code, headers
|
997
976
|
end
|
998
977
|
|
999
|
-
# Remove a role
|
1000
978
|
# Remove a role for this object from users/groups.
|
1001
979
|
# @param container_container_repository_href [String]
|
1002
980
|
# @param nested_role [NestedRole]
|
@@ -1007,7 +985,6 @@ module PulpContainerClient
|
|
1007
985
|
data
|
1008
986
|
end
|
1009
987
|
|
1010
|
-
# Remove a role
|
1011
988
|
# Remove a role for this object from users/groups.
|
1012
989
|
# @param container_container_repository_href [String]
|
1013
990
|
# @param nested_role [NestedRole]
|
@@ -1066,76 +1043,6 @@ module PulpContainerClient
|
|
1066
1043
|
return data, status_code, headers
|
1067
1044
|
end
|
1068
1045
|
|
1069
|
-
# Set a label
|
1070
|
-
# Set a single pulp_label on the object to a specific value or null.
|
1071
|
-
# @param container_container_repository_href [String]
|
1072
|
-
# @param set_label [SetLabel]
|
1073
|
-
# @param [Hash] opts the optional parameters
|
1074
|
-
# @return [SetLabelResponse]
|
1075
|
-
def set_label(container_container_repository_href, set_label, opts = {})
|
1076
|
-
data, _status_code, _headers = set_label_with_http_info(container_container_repository_href, set_label, opts)
|
1077
|
-
data
|
1078
|
-
end
|
1079
|
-
|
1080
|
-
# Set a label
|
1081
|
-
# Set a single pulp_label on the object to a specific value or null.
|
1082
|
-
# @param container_container_repository_href [String]
|
1083
|
-
# @param set_label [SetLabel]
|
1084
|
-
# @param [Hash] opts the optional parameters
|
1085
|
-
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
1086
|
-
def set_label_with_http_info(container_container_repository_href, set_label, opts = {})
|
1087
|
-
if @api_client.config.debugging
|
1088
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.set_label ...'
|
1089
|
-
end
|
1090
|
-
# verify the required parameter 'container_container_repository_href' is set
|
1091
|
-
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
1092
|
-
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.set_label"
|
1093
|
-
end
|
1094
|
-
# verify the required parameter 'set_label' is set
|
1095
|
-
if @api_client.config.client_side_validation && set_label.nil?
|
1096
|
-
fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesContainerApi.set_label"
|
1097
|
-
end
|
1098
|
-
# resource path
|
1099
|
-
local_var_path = '{container_container_repository_href}set_label/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
1100
|
-
|
1101
|
-
# query parameters
|
1102
|
-
query_params = opts[:query_params] || {}
|
1103
|
-
|
1104
|
-
# header parameters
|
1105
|
-
header_params = opts[:header_params] || {}
|
1106
|
-
# HTTP header 'Accept' (if needed)
|
1107
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1108
|
-
# HTTP header 'Content-Type'
|
1109
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
1110
|
-
|
1111
|
-
# form parameters
|
1112
|
-
form_params = opts[:form_params] || {}
|
1113
|
-
|
1114
|
-
# http body (model)
|
1115
|
-
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
1116
|
-
|
1117
|
-
# return_type
|
1118
|
-
return_type = opts[:return_type] || 'SetLabelResponse'
|
1119
|
-
|
1120
|
-
# auth_names
|
1121
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
1122
|
-
|
1123
|
-
new_options = opts.merge(
|
1124
|
-
:header_params => header_params,
|
1125
|
-
:query_params => query_params,
|
1126
|
-
:form_params => form_params,
|
1127
|
-
:body => post_body,
|
1128
|
-
:auth_names => auth_names,
|
1129
|
-
:return_type => return_type
|
1130
|
-
)
|
1131
|
-
|
1132
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1133
|
-
if @api_client.config.debugging
|
1134
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1135
|
-
end
|
1136
|
-
return data, status_code, headers
|
1137
|
-
end
|
1138
|
-
|
1139
1046
|
# Sign images in the repo
|
1140
1047
|
# Trigger an asynchronous task to sign content.
|
1141
1048
|
# @param container_container_repository_href [String]
|
@@ -1346,76 +1253,6 @@ module PulpContainerClient
|
|
1346
1253
|
return data, status_code, headers
|
1347
1254
|
end
|
1348
1255
|
|
1349
|
-
# Unset a label
|
1350
|
-
# Unset a single pulp_label on the object.
|
1351
|
-
# @param container_container_repository_href [String]
|
1352
|
-
# @param unset_label [UnsetLabel]
|
1353
|
-
# @param [Hash] opts the optional parameters
|
1354
|
-
# @return [UnsetLabelResponse]
|
1355
|
-
def unset_label(container_container_repository_href, unset_label, opts = {})
|
1356
|
-
data, _status_code, _headers = unset_label_with_http_info(container_container_repository_href, unset_label, opts)
|
1357
|
-
data
|
1358
|
-
end
|
1359
|
-
|
1360
|
-
# Unset a label
|
1361
|
-
# Unset a single pulp_label on the object.
|
1362
|
-
# @param container_container_repository_href [String]
|
1363
|
-
# @param unset_label [UnsetLabel]
|
1364
|
-
# @param [Hash] opts the optional parameters
|
1365
|
-
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
1366
|
-
def unset_label_with_http_info(container_container_repository_href, unset_label, opts = {})
|
1367
|
-
if @api_client.config.debugging
|
1368
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.unset_label ...'
|
1369
|
-
end
|
1370
|
-
# verify the required parameter 'container_container_repository_href' is set
|
1371
|
-
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
1372
|
-
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.unset_label"
|
1373
|
-
end
|
1374
|
-
# verify the required parameter 'unset_label' is set
|
1375
|
-
if @api_client.config.client_side_validation && unset_label.nil?
|
1376
|
-
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesContainerApi.unset_label"
|
1377
|
-
end
|
1378
|
-
# resource path
|
1379
|
-
local_var_path = '{container_container_repository_href}unset_label/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
1380
|
-
|
1381
|
-
# query parameters
|
1382
|
-
query_params = opts[:query_params] || {}
|
1383
|
-
|
1384
|
-
# header parameters
|
1385
|
-
header_params = opts[:header_params] || {}
|
1386
|
-
# HTTP header 'Accept' (if needed)
|
1387
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1388
|
-
# HTTP header 'Content-Type'
|
1389
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
1390
|
-
|
1391
|
-
# form parameters
|
1392
|
-
form_params = opts[:form_params] || {}
|
1393
|
-
|
1394
|
-
# http body (model)
|
1395
|
-
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
1396
|
-
|
1397
|
-
# return_type
|
1398
|
-
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
1399
|
-
|
1400
|
-
# auth_names
|
1401
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
1402
|
-
|
1403
|
-
new_options = opts.merge(
|
1404
|
-
:header_params => header_params,
|
1405
|
-
:query_params => query_params,
|
1406
|
-
:form_params => form_params,
|
1407
|
-
:body => post_body,
|
1408
|
-
:auth_names => auth_names,
|
1409
|
-
:return_type => return_type
|
1410
|
-
)
|
1411
|
-
|
1412
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1413
|
-
if @api_client.config.debugging
|
1414
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1415
|
-
end
|
1416
|
-
return data, status_code, headers
|
1417
|
-
end
|
1418
|
-
|
1419
1256
|
# Delete a tag
|
1420
1257
|
# Trigger an asynchronous task to untag an image in the repository
|
1421
1258
|
# @param container_container_repository_href [String]
|
@@ -19,7 +19,6 @@ module PulpContainerClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Add a role
|
23
22
|
# Add a role for this object to users/groups.
|
24
23
|
# @param container_container_push_repository_href [String]
|
25
24
|
# @param nested_role [NestedRole]
|
@@ -30,7 +29,6 @@ module PulpContainerClient
|
|
30
29
|
data
|
31
30
|
end
|
32
31
|
|
33
|
-
# Add a role
|
34
32
|
# Add a role for this object to users/groups.
|
35
33
|
# @param container_container_push_repository_href [String]
|
36
34
|
# @param nested_role [NestedRole]
|
@@ -97,18 +95,13 @@ module PulpContainerClient
|
|
97
95
|
# @option opts [String] :name Filter results where name matches value
|
98
96
|
# @option opts [String] :name__contains Filter results where name contains value
|
99
97
|
# @option opts [String] :name__icontains Filter results where name contains value
|
100
|
-
# @option opts [String] :name__iexact Filter results where name matches value
|
101
98
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
102
|
-
# @option opts [String] :name__iregex Filter results where name matches regex value
|
103
|
-
# @option opts [String] :name__istartswith Filter results where name starts with value
|
104
|
-
# @option opts [String] :name__regex Filter results where name matches regex value
|
105
99
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
106
100
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
107
101
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
108
102
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
109
103
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
110
104
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
111
|
-
# @option opts [String] :q
|
112
105
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
113
106
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
114
107
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -135,18 +128,13 @@ module PulpContainerClient
|
|
135
128
|
# @option opts [String] :name Filter results where name matches value
|
136
129
|
# @option opts [String] :name__contains Filter results where name contains value
|
137
130
|
# @option opts [String] :name__icontains Filter results where name contains value
|
138
|
-
# @option opts [String] :name__iexact Filter results where name matches value
|
139
131
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
140
|
-
# @option opts [String] :name__iregex Filter results where name matches regex value
|
141
|
-
# @option opts [String] :name__istartswith Filter results where name starts with value
|
142
|
-
# @option opts [String] :name__regex Filter results where name matches regex value
|
143
132
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
144
133
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
145
134
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
146
135
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
147
136
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
148
137
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
149
|
-
# @option opts [String] :q
|
150
138
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
151
139
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
152
140
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -178,18 +166,13 @@ module PulpContainerClient
|
|
178
166
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
179
167
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
180
168
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
181
|
-
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
182
169
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
183
|
-
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
184
|
-
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
185
|
-
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
186
170
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
187
171
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
188
172
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
189
173
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
190
174
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
191
175
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
192
|
-
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
193
176
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
194
177
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
195
178
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -236,7 +219,6 @@ module PulpContainerClient
|
|
236
219
|
return data, status_code, headers
|
237
220
|
end
|
238
221
|
|
239
|
-
# List roles
|
240
222
|
# List roles assigned to this object.
|
241
223
|
# @param container_container_push_repository_href [String]
|
242
224
|
# @param [Hash] opts the optional parameters
|
@@ -248,7 +230,6 @@ module PulpContainerClient
|
|
248
230
|
data
|
249
231
|
end
|
250
232
|
|
251
|
-
# List roles
|
252
233
|
# List roles assigned to this object.
|
253
234
|
# @param container_container_push_repository_href [String]
|
254
235
|
# @param [Hash] opts the optional parameters
|
@@ -304,7 +285,6 @@ module PulpContainerClient
|
|
304
285
|
return data, status_code, headers
|
305
286
|
end
|
306
287
|
|
307
|
-
# List user permissions
|
308
288
|
# List permissions available to the current user on this object.
|
309
289
|
# @param container_container_push_repository_href [String]
|
310
290
|
# @param [Hash] opts the optional parameters
|
@@ -316,7 +296,6 @@ module PulpContainerClient
|
|
316
296
|
data
|
317
297
|
end
|
318
298
|
|
319
|
-
# List user permissions
|
320
299
|
# List permissions available to the current user on this object.
|
321
300
|
# @param container_container_push_repository_href [String]
|
322
301
|
# @param [Hash] opts the optional parameters
|
@@ -580,7 +559,6 @@ module PulpContainerClient
|
|
580
559
|
return data, status_code, headers
|
581
560
|
end
|
582
561
|
|
583
|
-
# Remove a role
|
584
562
|
# Remove a role for this object from users/groups.
|
585
563
|
# @param container_container_push_repository_href [String]
|
586
564
|
# @param nested_role [NestedRole]
|
@@ -591,7 +569,6 @@ module PulpContainerClient
|
|
591
569
|
data
|
592
570
|
end
|
593
571
|
|
594
|
-
# Remove a role
|
595
572
|
# Remove a role for this object from users/groups.
|
596
573
|
# @param container_container_push_repository_href [String]
|
597
574
|
# @param nested_role [NestedRole]
|
@@ -103,7 +103,6 @@ module PulpContainerClient
|
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
-
# @option opts [String] :q
|
107
106
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
107
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
108
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -134,7 +133,6 @@ module PulpContainerClient
|
|
134
133
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
135
134
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
136
135
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
-
# @option opts [String] :q
|
138
136
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
139
137
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
138
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -173,7 +171,6 @@ module PulpContainerClient
|
|
173
171
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
174
172
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
175
173
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
176
|
-
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
177
174
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
178
175
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
179
176
|
|
@@ -103,7 +103,6 @@ module PulpContainerClient
|
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
-
# @option opts [String] :q
|
107
106
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
107
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
108
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -134,7 +133,6 @@ module PulpContainerClient
|
|
134
133
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
135
134
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
136
135
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
-
# @option opts [String] :q
|
138
136
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
139
137
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
138
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -173,7 +171,6 @@ module PulpContainerClient
|
|
173
171
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
174
172
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
175
173
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
176
|
-
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
177
174
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
178
175
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
179
176
|
|
@@ -127,7 +127,7 @@ module PulpContainerClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
130
|
+
@scheme = 'https'
|
131
131
|
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
@@ -210,7 +210,7 @@ module PulpContainerClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "https://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
18
|
# Whether this distribution should be shown in the content app.
|
22
19
|
attr_accessor :hidden
|
23
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
24
23
|
# The latest RepositoryVersion for this Repository will be served.
|
25
24
|
attr_accessor :repository
|
26
25
|
|
27
|
-
attr_accessor :pulp_labels
|
28
|
-
|
29
26
|
# An optional content-guard. If none is specified, a default one will be used.
|
30
27
|
attr_accessor :content_guard
|
31
28
|
|
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\")
|
30
|
+
attr_accessor :base_path
|
31
|
+
|
32
32
|
# A unique name. Ex, `rawhide` and `stable`.
|
33
33
|
attr_accessor :name
|
34
34
|
|
@@ -44,11 +44,11 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'base_path' => :'base_path',
|
48
47
|
:'hidden' => :'hidden',
|
49
|
-
:'repository' => :'repository',
|
50
48
|
:'pulp_labels' => :'pulp_labels',
|
49
|
+
:'repository' => :'repository',
|
51
50
|
:'content_guard' => :'content_guard',
|
51
|
+
:'base_path' => :'base_path',
|
52
52
|
:'name' => :'name',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
@@ -59,11 +59,11 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'base_path' => :'String',
|
63
62
|
:'hidden' => :'Boolean',
|
64
|
-
:'repository' => :'String',
|
65
63
|
:'pulp_labels' => :'Hash<String, String>',
|
64
|
+
:'repository' => :'String',
|
66
65
|
:'content_guard' => :'String',
|
66
|
+
:'base_path' => :'String',
|
67
67
|
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
@@ -95,30 +95,30 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'base_path')
|
99
|
-
self.base_path = attributes[:'base_path']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes.key?(:'hidden')
|
103
99
|
self.hidden = attributes[:'hidden']
|
104
100
|
else
|
105
101
|
self.hidden = false
|
106
102
|
end
|
107
103
|
|
108
|
-
if attributes.key?(:'repository')
|
109
|
-
self.repository = attributes[:'repository']
|
110
|
-
end
|
111
|
-
|
112
104
|
if attributes.key?(:'pulp_labels')
|
113
105
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
114
106
|
self.pulp_labels = value
|
115
107
|
end
|
116
108
|
end
|
117
109
|
|
110
|
+
if attributes.key?(:'repository')
|
111
|
+
self.repository = attributes[:'repository']
|
112
|
+
end
|
113
|
+
|
118
114
|
if attributes.key?(:'content_guard')
|
119
115
|
self.content_guard = attributes[:'content_guard']
|
120
116
|
end
|
121
117
|
|
118
|
+
if attributes.key?(:'base_path')
|
119
|
+
self.base_path = attributes[:'base_path']
|
120
|
+
end
|
121
|
+
|
122
122
|
if attributes.key?(:'name')
|
123
123
|
self.name = attributes[:'name']
|
124
124
|
end
|
@@ -217,11 +217,11 @@ module PulpContainerClient
|
|
217
217
|
def ==(o)
|
218
218
|
return true if self.equal?(o)
|
219
219
|
self.class == o.class &&
|
220
|
-
base_path == o.base_path &&
|
221
220
|
hidden == o.hidden &&
|
222
|
-
repository == o.repository &&
|
223
221
|
pulp_labels == o.pulp_labels &&
|
222
|
+
repository == o.repository &&
|
224
223
|
content_guard == o.content_guard &&
|
224
|
+
base_path == o.base_path &&
|
225
225
|
name == o.name &&
|
226
226
|
repository_version == o.repository_version &&
|
227
227
|
private == o.private &&
|
@@ -237,7 +237,7 @@ module PulpContainerClient
|
|
237
237
|
# Calculates hash code according to all attributes.
|
238
238
|
# @return [Integer] Hash code
|
239
239
|
def hash
|
240
|
-
[
|
240
|
+
[hidden, pulp_labels, repository, content_guard, base_path, name, repository_version, private, description].hash
|
241
241
|
end
|
242
242
|
|
243
243
|
# Builds the object from hash
|