pulp_container_client 2.16.4 → 2.18.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 +40 -6
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +10 -8
- data/docs/ContainerContainerPullThroughDistribution.md +35 -0
- data/docs/ContainerContainerPullThroughDistributionResponse.md +41 -0
- data/docs/ContainerContainerPullThroughRemote.md +57 -0
- data/docs/ContainerContainerPullThroughRemoteResponse.md +55 -0
- data/docs/{ContainerContainerRemoteResponseHiddenFields.md → ContainerContainerPullThroughRemoteResponseHiddenFields.md} +2 -2
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +2 -2
- data/docs/ContentBlobsApi.md +2 -0
- data/docs/ContentManifestsApi.md +2 -0
- data/docs/ContentSignaturesApi.md +2 -0
- data/docs/ContentTagsApi.md +2 -0
- data/docs/DistributionsPullThroughApi.md +736 -0
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +23 -0
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +23 -0
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +35 -0
- data/docs/PatchedcontainerContainerPullThroughRemote.md +57 -0
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/{PolicyEnum.md → Policy762Enum.md} +2 -2
- data/docs/Policy8e2Enum.md +16 -0
- data/docs/RemotesPullThroughApi.md +734 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +3 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +907 -0
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +904 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +26 -26
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -33
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +373 -0
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +349 -0
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +668 -0
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +496 -0
- data/lib/pulp_container_client/models/{container_container_remote_response_hidden_fields.rb → container_container_pull_through_remote_response_hidden_fields.rb} +3 -3
- data/lib/pulp_container_client/models/container_container_push_repository.rb +47 -47
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +56 -56
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +2 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +237 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +237 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +26 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +350 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +650 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +39 -39
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/{policy_enum.rb → policy762_enum.rb} +3 -3
- data/lib/pulp_container_client/models/policy8e2_enum.rb +35 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +13 -2
- data/spec/api/content_blobs_api_spec.rb +1 -0
- data/spec/api/content_manifests_api_spec.rb +1 -0
- data/spec/api/content_signatures_api_spec.rb +1 -0
- data/spec/api/content_tags_api_spec.rb +1 -0
- data/spec/api/distributions_pull_through_api_spec.rb +215 -0
- data/spec/api/remotes_pull_through_api_spec.rb +214 -0
- data/spec/models/container_container_distribution_response_spec.rb +12 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +113 -0
- data/spec/models/container_container_pull_through_distribution_spec.rb +95 -0
- data/spec/models/{container_container_remote_response_hidden_fields_spec.rb → container_container_pull_through_remote_response_hidden_fields_spec.rb} +6 -6
- data/spec/models/container_container_pull_through_remote_response_spec.rb +155 -0
- data/spec/models/container_container_pull_through_remote_spec.rb +161 -0
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/paginatedcontainer_container_pull_through_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_pull_through_remote_response_list_spec.rb +59 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +95 -0
- data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +161 -0
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/{policy_enum_spec.rb → policy762_enum_spec.rb} +6 -6
- data/spec/models/policy8e2_enum_spec.rb +35 -0
- metadata +103 -59
@@ -15,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
# An optional description.
|
19
|
-
attr_accessor :description
|
20
|
-
|
21
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
22
|
-
attr_accessor :retain_repo_versions
|
23
|
-
|
24
18
|
# A reference to an associated signing service.
|
25
19
|
attr_accessor :manifest_signing_service
|
26
20
|
|
27
21
|
# A unique name for this repository.
|
28
22
|
attr_accessor :name
|
29
23
|
|
24
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
25
|
+
attr_accessor :retain_repo_versions
|
26
|
+
|
27
|
+
# An optional description.
|
28
|
+
attr_accessor :description
|
29
|
+
|
30
30
|
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'description' => :'description',
|
36
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
37
35
|
:'manifest_signing_service' => :'manifest_signing_service',
|
38
36
|
:'name' => :'name',
|
37
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
|
+
:'description' => :'description',
|
39
39
|
:'pulp_labels' => :'pulp_labels'
|
40
40
|
}
|
41
41
|
end
|
@@ -43,10 +43,10 @@ module PulpContainerClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'description' => :'String',
|
47
|
-
:'retain_repo_versions' => :'Integer',
|
48
46
|
:'manifest_signing_service' => :'String',
|
49
47
|
:'name' => :'String',
|
48
|
+
:'retain_repo_versions' => :'Integer',
|
49
|
+
:'description' => :'String',
|
50
50
|
:'pulp_labels' => :'Hash<String, String>'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,9 +54,9 @@ module PulpContainerClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'description',
|
58
|
-
:'retain_repo_versions',
|
59
57
|
:'manifest_signing_service',
|
58
|
+
:'retain_repo_versions',
|
59
|
+
:'description',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,14 +75,6 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'description')
|
79
|
-
self.description = attributes[:'description']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'retain_repo_versions')
|
83
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
84
|
-
end
|
85
|
-
|
86
78
|
if attributes.key?(:'manifest_signing_service')
|
87
79
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
88
80
|
end
|
@@ -91,6 +83,14 @@ module PulpContainerClient
|
|
91
83
|
self.name = attributes[:'name']
|
92
84
|
end
|
93
85
|
|
86
|
+
if attributes.key?(:'retain_repo_versions')
|
87
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'description')
|
91
|
+
self.description = attributes[:'description']
|
92
|
+
end
|
93
|
+
|
94
94
|
if attributes.key?(:'pulp_labels')
|
95
95
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
96
|
self.pulp_labels = value
|
@@ -102,16 +102,16 @@ module PulpContainerClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@
|
106
|
-
invalid_properties.push('invalid value for "
|
105
|
+
if !@name.nil? && @name.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
107
|
end
|
108
108
|
|
109
109
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
110
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
111
|
end
|
112
112
|
|
113
|
-
if !@
|
114
|
-
invalid_properties.push('invalid value for "
|
113
|
+
if !@description.nil? && @description.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
115
|
end
|
116
116
|
|
117
117
|
invalid_properties
|
@@ -120,20 +120,20 @@ module PulpContainerClient
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
124
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
123
|
return false if !@name.nil? && @name.to_s.length < 1
|
124
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
129
|
# Custom attribute writer method with validation
|
130
|
-
# @param [Object]
|
131
|
-
def
|
132
|
-
if !
|
133
|
-
fail ArgumentError, 'invalid value for "
|
130
|
+
# @param [Object] name Value to be assigned
|
131
|
+
def name=(name)
|
132
|
+
if !name.nil? && name.to_s.length < 1
|
133
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
134
134
|
end
|
135
135
|
|
136
|
-
@
|
136
|
+
@name = name
|
137
137
|
end
|
138
138
|
|
139
139
|
# Custom attribute writer method with validation
|
@@ -147,13 +147,13 @@ module PulpContainerClient
|
|
147
147
|
end
|
148
148
|
|
149
149
|
# Custom attribute writer method with validation
|
150
|
-
# @param [Object]
|
151
|
-
def
|
152
|
-
if !
|
153
|
-
fail ArgumentError, 'invalid value for "
|
150
|
+
# @param [Object] description Value to be assigned
|
151
|
+
def description=(description)
|
152
|
+
if !description.nil? && description.to_s.length < 1
|
153
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
154
154
|
end
|
155
155
|
|
156
|
-
@
|
156
|
+
@description = description
|
157
157
|
end
|
158
158
|
|
159
159
|
# Checks equality by comparing each attribute.
|
@@ -161,10 +161,10 @@ module PulpContainerClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
description == o.description &&
|
165
|
-
retain_repo_versions == o.retain_repo_versions &&
|
166
164
|
manifest_signing_service == o.manifest_signing_service &&
|
167
165
|
name == o.name &&
|
166
|
+
retain_repo_versions == o.retain_repo_versions &&
|
167
|
+
description == o.description &&
|
168
168
|
pulp_labels == o.pulp_labels
|
169
169
|
end
|
170
170
|
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[
|
180
|
+
[manifest_signing_service, name, retain_repo_versions, description, pulp_labels].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -137,7 +137,7 @@ module PulpContainerClient
|
|
137
137
|
:'pulp_labels' => :'Hash<String, String>',
|
138
138
|
:'download_concurrency' => :'Integer',
|
139
139
|
:'max_retries' => :'Integer',
|
140
|
-
:'policy' => :'
|
140
|
+
:'policy' => :'Policy762Enum',
|
141
141
|
:'total_timeout' => :'Float',
|
142
142
|
:'connect_timeout' => :'Float',
|
143
143
|
:'sock_connect_timeout' => :'Float',
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpContainerClient
|
16
|
-
class
|
16
|
+
class Policy762Enum
|
17
17
|
IMMEDIATE = "immediate".freeze
|
18
18
|
ON_DEMAND = "on_demand".freeze
|
19
19
|
STREAMED = "streamed".freeze
|
@@ -29,8 +29,8 @@ module PulpContainerClient
|
|
29
29
|
# @param [String] The enum value in the form of the string
|
30
30
|
# @return [String] The enum value
|
31
31
|
def build_from_hash(value)
|
32
|
-
constantValues =
|
33
|
-
raise "Invalid ENUM value #{value} for class #
|
32
|
+
constantValues = Policy762Enum.constants.select { |c| Policy762Enum::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #Policy762Enum" if constantValues.empty?
|
34
34
|
value
|
35
35
|
end
|
36
36
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpContainerClient
|
16
|
+
class Policy8e2Enum
|
17
|
+
ON_DEMAND = "on_demand".freeze
|
18
|
+
|
19
|
+
# Builds the enum from string
|
20
|
+
# @param [String] The enum value in the form of the string
|
21
|
+
# @return [String] The enum value
|
22
|
+
def self.build_from_hash(value)
|
23
|
+
new.build_from_hash(value)
|
24
|
+
end
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def build_from_hash(value)
|
30
|
+
constantValues = Policy8e2Enum.constants.select { |c| Policy8e2Enum::const_get(c) == value }
|
31
|
+
raise "Invalid ENUM value #{value} for class #Policy8e2Enum" if constantValues.empty?
|
32
|
+
value
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -23,11 +23,15 @@ require 'pulp_container_client/models/container_container_distribution'
|
|
23
23
|
require 'pulp_container_client/models/container_container_distribution_response'
|
24
24
|
require 'pulp_container_client/models/container_container_namespace'
|
25
25
|
require 'pulp_container_client/models/container_container_namespace_response'
|
26
|
+
require 'pulp_container_client/models/container_container_pull_through_distribution'
|
27
|
+
require 'pulp_container_client/models/container_container_pull_through_distribution_response'
|
28
|
+
require 'pulp_container_client/models/container_container_pull_through_remote'
|
29
|
+
require 'pulp_container_client/models/container_container_pull_through_remote_response'
|
30
|
+
require 'pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields'
|
26
31
|
require 'pulp_container_client/models/container_container_push_repository'
|
27
32
|
require 'pulp_container_client/models/container_container_push_repository_response'
|
28
33
|
require 'pulp_container_client/models/container_container_remote'
|
29
34
|
require 'pulp_container_client/models/container_container_remote_response'
|
30
|
-
require 'pulp_container_client/models/container_container_remote_response_hidden_fields'
|
31
35
|
require 'pulp_container_client/models/container_container_repository'
|
32
36
|
require 'pulp_container_client/models/container_container_repository_response'
|
33
37
|
require 'pulp_container_client/models/container_manifest_response'
|
@@ -46,6 +50,8 @@ require 'pulp_container_client/models/paginated_repository_version_response_list
|
|
46
50
|
require 'pulp_container_client/models/paginatedcontainer_blob_response_list'
|
47
51
|
require 'pulp_container_client/models/paginatedcontainer_container_distribution_response_list'
|
48
52
|
require 'pulp_container_client/models/paginatedcontainer_container_namespace_response_list'
|
53
|
+
require 'pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list'
|
54
|
+
require 'pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list'
|
49
55
|
require 'pulp_container_client/models/paginatedcontainer_container_push_repository_response_list'
|
50
56
|
require 'pulp_container_client/models/paginatedcontainer_container_remote_response_list'
|
51
57
|
require 'pulp_container_client/models/paginatedcontainer_container_repository_response_list'
|
@@ -53,10 +59,13 @@ require 'pulp_container_client/models/paginatedcontainer_manifest_response_list'
|
|
53
59
|
require 'pulp_container_client/models/paginatedcontainer_manifest_signature_response_list'
|
54
60
|
require 'pulp_container_client/models/paginatedcontainer_tag_response_list'
|
55
61
|
require 'pulp_container_client/models/patchedcontainer_container_distribution'
|
62
|
+
require 'pulp_container_client/models/patchedcontainer_container_pull_through_distribution'
|
63
|
+
require 'pulp_container_client/models/patchedcontainer_container_pull_through_remote'
|
56
64
|
require 'pulp_container_client/models/patchedcontainer_container_push_repository'
|
57
65
|
require 'pulp_container_client/models/patchedcontainer_container_remote'
|
58
66
|
require 'pulp_container_client/models/patchedcontainer_container_repository'
|
59
|
-
require 'pulp_container_client/models/
|
67
|
+
require 'pulp_container_client/models/policy762_enum'
|
68
|
+
require 'pulp_container_client/models/policy8e2_enum'
|
60
69
|
require 'pulp_container_client/models/recursive_manage'
|
61
70
|
require 'pulp_container_client/models/remove_image'
|
62
71
|
require 'pulp_container_client/models/remove_signatures'
|
@@ -78,10 +87,12 @@ require 'pulp_container_client/api/content_manifests_api'
|
|
78
87
|
require 'pulp_container_client/api/content_signatures_api'
|
79
88
|
require 'pulp_container_client/api/content_tags_api'
|
80
89
|
require 'pulp_container_client/api/distributions_container_api'
|
90
|
+
require 'pulp_container_client/api/distributions_pull_through_api'
|
81
91
|
require 'pulp_container_client/api/index_dynamic_api'
|
82
92
|
require 'pulp_container_client/api/index_static_api'
|
83
93
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
84
94
|
require 'pulp_container_client/api/remotes_container_api'
|
95
|
+
require 'pulp_container_client/api/remotes_pull_through_api'
|
85
96
|
require 'pulp_container_client/api/repositories_container_api'
|
86
97
|
require 'pulp_container_client/api/repositories_container_push_api'
|
87
98
|
require 'pulp_container_client/api/repositories_container_push_versions_api'
|
@@ -41,6 +41,7 @@ describe 'ContentBlobsApi' do
|
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
42
42
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
43
43
|
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
44
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
44
45
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
45
46
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
46
47
|
# @option opts [String] :q
|
@@ -42,6 +42,7 @@ describe 'ContentManifestsApi' do
|
|
42
42
|
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
44
44
|
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `schema_version` - Schema version * `-schema_version` - Schema version (descending) * `media_type` - Media type * `-media_type` - Media type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
45
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
45
46
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
46
47
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
47
48
|
# @option opts [String] :q
|
@@ -53,6 +53,7 @@ describe 'ContentSignaturesApi' do
|
|
53
53
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
54
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
55
55
|
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
56
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
56
57
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
57
58
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
58
59
|
# @option opts [String] :q
|
@@ -43,6 +43,7 @@ describe 'ContentTagsApi' do
|
|
43
43
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
44
44
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
45
45
|
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
46
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
46
47
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
47
48
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
48
49
|
# @option opts [String] :q
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpContainerClient::DistributionsPullThroughApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DistributionsPullThroughApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpContainerClient::DistributionsPullThroughApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DistributionsPullThroughApi' do
|
30
|
+
it 'should create an instance of DistributionsPullThroughApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpContainerClient::DistributionsPullThroughApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for add_role
|
36
|
+
# Add a role
|
37
|
+
# Add a role for this object to users/groups.
|
38
|
+
# @param container_container_pull_through_distribution_href
|
39
|
+
# @param nested_role
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [NestedRoleResponse]
|
42
|
+
describe 'add_role test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for create
|
49
|
+
# Create a container pull through distribution
|
50
|
+
# Trigger an asynchronous create task
|
51
|
+
# @param container_container_pull_through_distribution
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [AsyncOperationResponse]
|
54
|
+
describe 'create test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for delete
|
61
|
+
# Delete a container pull through distribution
|
62
|
+
# Trigger an asynchronous delete task
|
63
|
+
# @param container_container_pull_through_distribution_href
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [AsyncOperationResponse]
|
66
|
+
describe 'delete test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for list
|
73
|
+
# List container pull through distributions
|
74
|
+
# A special pull-through Container Distribution that will reference distributions serving content.
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
77
|
+
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
78
|
+
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
79
|
+
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
80
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
81
|
+
# @option opts [String] :name Filter results where name matches value
|
82
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
83
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
84
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
85
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
86
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
87
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
88
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
89
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
90
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
91
|
+
# @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) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
92
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
93
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
94
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
95
|
+
# @option opts [String] :q
|
96
|
+
# @option opts [String] :repository Filter results where repository matches value
|
97
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
98
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
99
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
100
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
101
|
+
# @return [PaginatedcontainerContainerPullThroughDistributionResponseList]
|
102
|
+
describe 'list test' do
|
103
|
+
it 'should work' do
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# unit tests for list_roles
|
109
|
+
# List roles
|
110
|
+
# List roles assigned to this object.
|
111
|
+
# @param container_container_pull_through_distribution_href
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
114
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
115
|
+
# @return [ObjectRolesResponse]
|
116
|
+
describe 'list_roles test' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# unit tests for my_permissions
|
123
|
+
# List user permissions
|
124
|
+
# List permissions available to the current user on this object.
|
125
|
+
# @param container_container_pull_through_distribution_href
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
128
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
129
|
+
# @return [MyPermissionsResponse]
|
130
|
+
describe 'my_permissions test' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# unit tests for partial_update
|
137
|
+
# Update a container pull through distribution
|
138
|
+
# Trigger an asynchronous partial update task
|
139
|
+
# @param container_container_pull_through_distribution_href
|
140
|
+
# @param patchedcontainer_container_pull_through_distribution
|
141
|
+
# @param [Hash] opts the optional parameters
|
142
|
+
# @return [AsyncOperationResponse]
|
143
|
+
describe 'partial_update test' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# unit tests for read
|
150
|
+
# Inspect a container pull through distribution
|
151
|
+
# A special pull-through Container Distribution that will reference distributions serving content.
|
152
|
+
# @param container_container_pull_through_distribution_href
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
155
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
156
|
+
# @return [ContainerContainerPullThroughDistributionResponse]
|
157
|
+
describe 'read test' do
|
158
|
+
it 'should work' do
|
159
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# unit tests for remove_role
|
164
|
+
# Remove a role
|
165
|
+
# Remove a role for this object from users/groups.
|
166
|
+
# @param container_container_pull_through_distribution_href
|
167
|
+
# @param nested_role
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [NestedRoleResponse]
|
170
|
+
describe 'remove_role test' do
|
171
|
+
it 'should work' do
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# unit tests for set_label
|
177
|
+
# Set a label
|
178
|
+
# Set a single pulp_label on the object to a specific value or null.
|
179
|
+
# @param container_container_pull_through_distribution_href
|
180
|
+
# @param set_label
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @return [SetLabelResponse]
|
183
|
+
describe 'set_label test' do
|
184
|
+
it 'should work' do
|
185
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# unit tests for unset_label
|
190
|
+
# Unset a label
|
191
|
+
# Unset a single pulp_label on the object.
|
192
|
+
# @param container_container_pull_through_distribution_href
|
193
|
+
# @param unset_label
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [UnsetLabelResponse]
|
196
|
+
describe 'unset_label test' do
|
197
|
+
it 'should work' do
|
198
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# unit tests for update
|
203
|
+
# Update a container pull through distribution
|
204
|
+
# Trigger an asynchronous update task
|
205
|
+
# @param container_container_pull_through_distribution_href
|
206
|
+
# @param container_container_pull_through_distribution
|
207
|
+
# @param [Hash] opts the optional parameters
|
208
|
+
# @return [AsyncOperationResponse]
|
209
|
+
describe 'update test' do
|
210
|
+
it 'should work' do
|
211
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|