pulp_container_client 2.20.0 → 2.20.2
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 -7
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -7
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
- data/docs/ContainerContainerRemoteResponse.md +2 -2
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/DistributionsPullThroughApi.md +1 -1
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedcontainerBlobResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
- data/docs/PaginatedcontainerTagResponseList.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RemotesPullThroughApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -33
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +43 -33
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +64 -54
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +11 -5
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -5
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +14 -8
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +6 -6
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +73 -81
- data/docs/IndexDynamicApi.md +0 -50
- data/docs/IndexStaticApi.md +0 -50
- data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
- data/lib/pulp_container_client/api/index_static_api.rb +0 -74
- data/spec/api/index_dynamic_api_spec.rb +0 -45
- data/spec/api/index_static_api_spec.rb +0 -45
@@ -303,20 +303,20 @@ module PulpContainerClient
|
|
303
303
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
304
304
|
end
|
305
305
|
|
306
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
307
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
306
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
307
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
308
308
|
end
|
309
309
|
|
310
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
311
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
310
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
311
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
312
312
|
end
|
313
313
|
|
314
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
315
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
314
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
315
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
316
316
|
end
|
317
317
|
|
318
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
319
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
318
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
319
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
320
320
|
end
|
321
321
|
|
322
322
|
invalid_properties
|
@@ -336,10 +336,10 @@ module PulpContainerClient
|
|
336
336
|
return false if !@username.nil? && @username.to_s.length < 1
|
337
337
|
return false if !@password.nil? && @password.to_s.length < 1
|
338
338
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
339
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
340
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
341
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
342
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
339
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
340
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
341
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
342
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
343
343
|
true
|
344
344
|
end
|
345
345
|
|
@@ -456,8 +456,8 @@ module PulpContainerClient
|
|
456
456
|
# Custom attribute writer method with validation
|
457
457
|
# @param [Object] total_timeout Value to be assigned
|
458
458
|
def total_timeout=(total_timeout)
|
459
|
-
if !total_timeout.nil? && total_timeout < 0
|
460
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
459
|
+
if !total_timeout.nil? && total_timeout < 0
|
460
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
461
461
|
end
|
462
462
|
|
463
463
|
@total_timeout = total_timeout
|
@@ -466,8 +466,8 @@ module PulpContainerClient
|
|
466
466
|
# Custom attribute writer method with validation
|
467
467
|
# @param [Object] connect_timeout Value to be assigned
|
468
468
|
def connect_timeout=(connect_timeout)
|
469
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
470
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
469
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
470
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
471
471
|
end
|
472
472
|
|
473
473
|
@connect_timeout = connect_timeout
|
@@ -476,8 +476,8 @@ module PulpContainerClient
|
|
476
476
|
# Custom attribute writer method with validation
|
477
477
|
# @param [Object] sock_connect_timeout Value to be assigned
|
478
478
|
def sock_connect_timeout=(sock_connect_timeout)
|
479
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
480
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
479
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
480
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
481
481
|
end
|
482
482
|
|
483
483
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -486,8 +486,8 @@ module PulpContainerClient
|
|
486
486
|
# Custom attribute writer method with validation
|
487
487
|
# @param [Object] sock_read_timeout Value to be assigned
|
488
488
|
def sock_read_timeout=(sock_read_timeout)
|
489
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
490
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
489
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
490
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
491
491
|
end
|
492
492
|
|
493
493
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,39 +15,39 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# A reference to an associated signing service.
|
22
|
-
attr_accessor :manifest_signing_service
|
18
|
+
# A unique name for this repository.
|
19
|
+
attr_accessor :name
|
23
20
|
|
24
21
|
attr_accessor :pulp_labels
|
25
22
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
23
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
24
|
+
attr_accessor :retain_repo_versions
|
28
25
|
|
29
26
|
# An optional description.
|
30
27
|
attr_accessor :description
|
31
28
|
|
29
|
+
# A reference to an associated signing service.
|
30
|
+
attr_accessor :manifest_signing_service
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'pulp_labels' => :'pulp_labels',
|
38
35
|
:'name' => :'name',
|
39
|
-
:'
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
|
+
:'description' => :'description',
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'retain_repo_versions' => :'Integer',
|
47
|
-
:'manifest_signing_service' => :'String',
|
48
|
-
:'pulp_labels' => :'Hash<String, String>',
|
49
46
|
:'name' => :'String',
|
50
|
-
:'
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
|
+
:'retain_repo_versions' => :'Integer',
|
49
|
+
:'description' => :'String',
|
50
|
+
:'manifest_signing_service' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'retain_repo_versions',
|
58
|
-
:'
|
59
|
-
:'
|
58
|
+
:'description',
|
59
|
+
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,12 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'manifest_signing_service')
|
83
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
78
|
+
if attributes.key?(:'name')
|
79
|
+
self.name = attributes[:'name']
|
84
80
|
end
|
85
81
|
|
86
82
|
if attributes.key?(:'pulp_labels')
|
@@ -89,27 +85,31 @@ module PulpContainerClient
|
|
89
85
|
end
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'retain_repo_versions')
|
89
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
90
|
end
|
95
91
|
|
96
92
|
if attributes.key?(:'description')
|
97
93
|
self.description = attributes[:'description']
|
98
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'manifest_signing_service')
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
|
-
end
|
108
|
-
|
109
105
|
if !@name.nil? && @name.to_s.length < 1
|
110
106
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
111
107
|
end
|
112
108
|
|
109
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
110
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
|
+
end
|
112
|
+
|
113
113
|
if !@description.nil? && @description.to_s.length < 1
|
114
114
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
115
|
end
|
@@ -120,22 +120,12 @@ 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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
124
123
|
return false if !@name.nil? && @name.to_s.length < 1
|
124
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
125
|
return false if !@description.nil? && @description.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
-
# Custom attribute writer method with validation
|
130
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
131
|
-
def retain_repo_versions=(retain_repo_versions)
|
132
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
133
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
134
|
-
end
|
135
|
-
|
136
|
-
@retain_repo_versions = retain_repo_versions
|
137
|
-
end
|
138
|
-
|
139
129
|
# Custom attribute writer method with validation
|
140
130
|
# @param [Object] name Value to be assigned
|
141
131
|
def name=(name)
|
@@ -146,6 +136,16 @@ module PulpContainerClient
|
|
146
136
|
@name = name
|
147
137
|
end
|
148
138
|
|
139
|
+
# Custom attribute writer method with validation
|
140
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
141
|
+
def retain_repo_versions=(retain_repo_versions)
|
142
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
143
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
144
|
+
end
|
145
|
+
|
146
|
+
@retain_repo_versions = retain_repo_versions
|
147
|
+
end
|
148
|
+
|
149
149
|
# Custom attribute writer method with validation
|
150
150
|
# @param [Object] description Value to be assigned
|
151
151
|
def description=(description)
|
@@ -161,11 +161,11 @@ module PulpContainerClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
retain_repo_versions == o.retain_repo_versions &&
|
165
|
-
manifest_signing_service == o.manifest_signing_service &&
|
166
|
-
pulp_labels == o.pulp_labels &&
|
167
164
|
name == o.name &&
|
168
|
-
|
165
|
+
pulp_labels == o.pulp_labels &&
|
166
|
+
retain_repo_versions == o.retain_repo_versions &&
|
167
|
+
description == o.description &&
|
168
|
+
manifest_signing_service == o.manifest_signing_service
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -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
|
+
[name, pulp_labels, retain_repo_versions, description, manifest_signing_service].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -346,20 +346,20 @@ module PulpContainerClient
|
|
346
346
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
347
347
|
end
|
348
348
|
|
349
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
350
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
349
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
350
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
351
351
|
end
|
352
352
|
|
353
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
354
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
353
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
354
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
357
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
358
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
361
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
362
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
363
363
|
end
|
364
364
|
|
365
365
|
if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
@@ -387,10 +387,10 @@ module PulpContainerClient
|
|
387
387
|
return false if !@username.nil? && @username.to_s.length < 1
|
388
388
|
return false if !@password.nil? && @password.to_s.length < 1
|
389
389
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
390
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
391
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
392
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
393
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
390
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
391
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
392
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
393
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
394
394
|
return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
395
395
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
396
396
|
true
|
@@ -509,8 +509,8 @@ module PulpContainerClient
|
|
509
509
|
# Custom attribute writer method with validation
|
510
510
|
# @param [Object] total_timeout Value to be assigned
|
511
511
|
def total_timeout=(total_timeout)
|
512
|
-
if !total_timeout.nil? && total_timeout < 0
|
513
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
512
|
+
if !total_timeout.nil? && total_timeout < 0
|
513
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
514
514
|
end
|
515
515
|
|
516
516
|
@total_timeout = total_timeout
|
@@ -519,8 +519,8 @@ module PulpContainerClient
|
|
519
519
|
# Custom attribute writer method with validation
|
520
520
|
# @param [Object] connect_timeout Value to be assigned
|
521
521
|
def connect_timeout=(connect_timeout)
|
522
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
523
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
522
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
523
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
524
524
|
end
|
525
525
|
|
526
526
|
@connect_timeout = connect_timeout
|
@@ -529,8 +529,8 @@ module PulpContainerClient
|
|
529
529
|
# Custom attribute writer method with validation
|
530
530
|
# @param [Object] sock_connect_timeout Value to be assigned
|
531
531
|
def sock_connect_timeout=(sock_connect_timeout)
|
532
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
533
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
532
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
533
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
534
534
|
end
|
535
535
|
|
536
536
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -539,8 +539,8 @@ module PulpContainerClient
|
|
539
539
|
# Custom attribute writer method with validation
|
540
540
|
# @param [Object] sock_read_timeout Value to be assigned
|
541
541
|
def sock_read_timeout=(sock_read_timeout)
|
542
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
543
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
542
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
543
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
544
544
|
end
|
545
545
|
|
546
546
|
@sock_read_timeout = sock_read_timeout
|
@@ -20,6 +20,9 @@ module PulpContainerClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
attr_accessor :number
|
24
27
|
|
25
28
|
attr_accessor :repository
|
@@ -35,6 +38,7 @@ module PulpContainerClient
|
|
35
38
|
{
|
36
39
|
:'pulp_href' => :'pulp_href',
|
37
40
|
:'pulp_created' => :'pulp_created',
|
41
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
38
42
|
:'number' => :'number',
|
39
43
|
:'repository' => :'repository',
|
40
44
|
:'base_version' => :'base_version',
|
@@ -47,6 +51,7 @@ module PulpContainerClient
|
|
47
51
|
{
|
48
52
|
:'pulp_href' => :'String',
|
49
53
|
:'pulp_created' => :'DateTime',
|
54
|
+
:'pulp_last_updated' => :'DateTime',
|
50
55
|
:'number' => :'Integer',
|
51
56
|
:'repository' => :'String',
|
52
57
|
:'base_version' => :'String',
|
@@ -83,6 +88,10 @@ module PulpContainerClient
|
|
83
88
|
self.pulp_created = attributes[:'pulp_created']
|
84
89
|
end
|
85
90
|
|
91
|
+
if attributes.key?(:'pulp_last_updated')
|
92
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
93
|
+
end
|
94
|
+
|
86
95
|
if attributes.key?(:'number')
|
87
96
|
self.number = attributes[:'number']
|
88
97
|
end
|
@@ -120,6 +129,7 @@ module PulpContainerClient
|
|
120
129
|
self.class == o.class &&
|
121
130
|
pulp_href == o.pulp_href &&
|
122
131
|
pulp_created == o.pulp_created &&
|
132
|
+
pulp_last_updated == o.pulp_last_updated &&
|
123
133
|
number == o.number &&
|
124
134
|
repository == o.repository &&
|
125
135
|
base_version == o.base_version &&
|
@@ -135,7 +145,7 @@ module PulpContainerClient
|
|
135
145
|
# Calculates hash code according to all attributes.
|
136
146
|
# @return [Integer] Hash code
|
137
147
|
def hash
|
138
|
-
[pulp_href, pulp_created, number, repository, base_version, content_summary].hash
|
148
|
+
[pulp_href, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
|
139
149
|
end
|
140
150
|
|
141
151
|
# Builds the object from hash
|
@@ -88,8 +88,6 @@ require 'pulp_container_client/api/content_signatures_api'
|
|
88
88
|
require 'pulp_container_client/api/content_tags_api'
|
89
89
|
require 'pulp_container_client/api/distributions_container_api'
|
90
90
|
require 'pulp_container_client/api/distributions_pull_through_api'
|
91
|
-
require 'pulp_container_client/api/index_dynamic_api'
|
92
|
-
require 'pulp_container_client/api/index_static_api'
|
93
91
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
94
92
|
require 'pulp_container_client/api/remotes_container_api'
|
95
93
|
require 'pulp_container_client/api/remotes_pull_through_api'
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpContainerClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("http://
|
21
|
+
# uri = URI.parse("http://localhost:24817")
|
22
22
|
# PulpContainerClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpContainerClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://
|
31
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://
|
38
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -44,6 +44,12 @@ describe 'ContainerBlobResponse' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "pulp_last_updated"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "artifact"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,13 +32,13 @@ describe 'ContainerContainerDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "hidden"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "content_guard"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
@@ -50,7 +50,7 @@ describe 'ContainerContainerDistributionResponse' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "name"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -68,13 +68,19 @@ describe 'ContainerContainerDistributionResponse' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "pulp_last_updated"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "pulp_created"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "base_path"' do
|
78
84
|
it 'should work' do
|
79
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
86
|
end
|
@@ -32,37 +32,37 @@ describe 'ContainerContainerDistribution' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "hidden"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "content_guard"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "name"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "pulp_labels"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "repository"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "base_path"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
@@ -44,6 +44,12 @@ describe 'ContainerContainerNamespaceResponse' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "pulp_last_updated"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "name"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,13 +32,13 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPullThroughDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "hidden"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "content_guard"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
@@ -50,7 +50,7 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "name"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -68,13 +68,19 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "pulp_last_updated"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "pulp_created"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "base_path"' do
|
78
84
|
it 'should work' do
|
79
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
86
|
end
|