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
@@ -15,56 +15,61 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
19
|
-
attr_accessor :retain_repo_versions
|
18
|
+
attr_accessor :versions_href
|
20
19
|
|
21
20
|
attr_accessor :pulp_href
|
22
21
|
|
23
|
-
# A
|
24
|
-
attr_accessor :
|
25
|
-
|
26
|
-
# Timestamp of creation.
|
27
|
-
attr_accessor :pulp_created
|
28
|
-
|
29
|
-
attr_accessor :latest_version_href
|
22
|
+
# A unique name for this repository.
|
23
|
+
attr_accessor :name
|
30
24
|
|
31
25
|
attr_accessor :pulp_labels
|
32
26
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
27
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
28
|
+
attr_accessor :retain_repo_versions
|
35
29
|
|
36
|
-
|
30
|
+
# 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.
|
31
|
+
attr_accessor :pulp_last_updated
|
37
32
|
|
38
33
|
# An optional description.
|
39
34
|
attr_accessor :description
|
40
35
|
|
36
|
+
# Timestamp of creation.
|
37
|
+
attr_accessor :pulp_created
|
38
|
+
|
39
|
+
attr_accessor :latest_version_href
|
40
|
+
|
41
|
+
# A reference to an associated signing service.
|
42
|
+
attr_accessor :manifest_signing_service
|
43
|
+
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
45
|
def self.attribute_map
|
43
46
|
{
|
44
|
-
:'
|
47
|
+
:'versions_href' => :'versions_href',
|
45
48
|
:'pulp_href' => :'pulp_href',
|
46
|
-
:'
|
49
|
+
:'name' => :'name',
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
51
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
52
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
53
|
+
:'description' => :'description',
|
47
54
|
:'pulp_created' => :'pulp_created',
|
48
55
|
:'latest_version_href' => :'latest_version_href',
|
49
|
-
:'
|
50
|
-
:'name' => :'name',
|
51
|
-
:'versions_href' => :'versions_href',
|
52
|
-
:'description' => :'description'
|
56
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
53
57
|
}
|
54
58
|
end
|
55
59
|
|
56
60
|
# Attribute type mapping.
|
57
61
|
def self.openapi_types
|
58
62
|
{
|
59
|
-
:'
|
63
|
+
:'versions_href' => :'String',
|
60
64
|
:'pulp_href' => :'String',
|
61
|
-
:'
|
65
|
+
:'name' => :'String',
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
67
|
+
:'retain_repo_versions' => :'Integer',
|
68
|
+
:'pulp_last_updated' => :'DateTime',
|
69
|
+
:'description' => :'String',
|
62
70
|
:'pulp_created' => :'DateTime',
|
63
71
|
:'latest_version_href' => :'String',
|
64
|
-
:'
|
65
|
-
:'name' => :'String',
|
66
|
-
:'versions_href' => :'String',
|
67
|
-
:'description' => :'String'
|
72
|
+
:'manifest_signing_service' => :'String'
|
68
73
|
}
|
69
74
|
end
|
70
75
|
|
@@ -72,8 +77,8 @@ module PulpContainerClient
|
|
72
77
|
def self.openapi_nullable
|
73
78
|
Set.new([
|
74
79
|
:'retain_repo_versions',
|
75
|
-
:'
|
76
|
-
:'
|
80
|
+
:'description',
|
81
|
+
:'manifest_signing_service'
|
77
82
|
])
|
78
83
|
end
|
79
84
|
|
@@ -92,24 +97,16 @@ module PulpContainerClient
|
|
92
97
|
h[k.to_sym] = v
|
93
98
|
}
|
94
99
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
100
|
+
if attributes.key?(:'versions_href')
|
101
|
+
self.versions_href = attributes[:'versions_href']
|
97
102
|
end
|
98
103
|
|
99
104
|
if attributes.key?(:'pulp_href')
|
100
105
|
self.pulp_href = attributes[:'pulp_href']
|
101
106
|
end
|
102
107
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'pulp_created')
|
108
|
-
self.pulp_created = attributes[:'pulp_created']
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.key?(:'latest_version_href')
|
112
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
108
|
+
if attributes.key?(:'name')
|
109
|
+
self.name = attributes[:'name']
|
113
110
|
end
|
114
111
|
|
115
112
|
if attributes.key?(:'pulp_labels')
|
@@ -118,39 +115,51 @@ module PulpContainerClient
|
|
118
115
|
end
|
119
116
|
end
|
120
117
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
118
|
+
if attributes.key?(:'retain_repo_versions')
|
119
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
123
120
|
end
|
124
121
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
122
|
+
if attributes.key?(:'pulp_last_updated')
|
123
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
127
124
|
end
|
128
125
|
|
129
126
|
if attributes.key?(:'description')
|
130
127
|
self.description = attributes[:'description']
|
131
128
|
end
|
129
|
+
|
130
|
+
if attributes.key?(:'pulp_created')
|
131
|
+
self.pulp_created = attributes[:'pulp_created']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'latest_version_href')
|
135
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'manifest_signing_service')
|
139
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
140
|
+
end
|
132
141
|
end
|
133
142
|
|
134
143
|
# Show invalid properties with the reasons. Usually used together with valid?
|
135
144
|
# @return Array for valid properties with the reasons
|
136
145
|
def list_invalid_properties
|
137
146
|
invalid_properties = Array.new
|
138
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
139
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
140
|
-
end
|
141
|
-
|
142
147
|
if @name.nil?
|
143
148
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
144
149
|
end
|
145
150
|
|
151
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
152
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
153
|
+
end
|
154
|
+
|
146
155
|
invalid_properties
|
147
156
|
end
|
148
157
|
|
149
158
|
# Check to see if the all the properties in the model are valid
|
150
159
|
# @return true if the model is valid
|
151
160
|
def valid?
|
152
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
153
161
|
return false if @name.nil?
|
162
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
154
163
|
true
|
155
164
|
end
|
156
165
|
|
@@ -169,15 +178,16 @@ module PulpContainerClient
|
|
169
178
|
def ==(o)
|
170
179
|
return true if self.equal?(o)
|
171
180
|
self.class == o.class &&
|
172
|
-
|
181
|
+
versions_href == o.versions_href &&
|
173
182
|
pulp_href == o.pulp_href &&
|
174
|
-
|
183
|
+
name == o.name &&
|
184
|
+
pulp_labels == o.pulp_labels &&
|
185
|
+
retain_repo_versions == o.retain_repo_versions &&
|
186
|
+
pulp_last_updated == o.pulp_last_updated &&
|
187
|
+
description == o.description &&
|
175
188
|
pulp_created == o.pulp_created &&
|
176
189
|
latest_version_href == o.latest_version_href &&
|
177
|
-
|
178
|
-
name == o.name &&
|
179
|
-
versions_href == o.versions_href &&
|
180
|
-
description == o.description
|
190
|
+
manifest_signing_service == o.manifest_signing_service
|
181
191
|
end
|
182
192
|
|
183
193
|
# @see the `==` method
|
@@ -189,7 +199,7 @@ module PulpContainerClient
|
|
189
199
|
# Calculates hash code according to all attributes.
|
190
200
|
# @return [Integer] Hash code
|
191
201
|
def hash
|
192
|
-
[
|
202
|
+
[versions_href, pulp_href, name, pulp_labels, retain_repo_versions, pulp_last_updated, description, pulp_created, latest_version_href, manifest_signing_service].hash
|
193
203
|
end
|
194
204
|
|
195
205
|
# Builds the object from hash
|
@@ -354,20 +354,20 @@ module PulpContainerClient
|
|
354
354
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
357
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
358
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
361
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
362
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
363
363
|
end
|
364
364
|
|
365
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
365
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
367
367
|
end
|
368
368
|
|
369
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
370
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
369
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
370
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
371
371
|
end
|
372
372
|
|
373
373
|
if @upstream_name.nil?
|
@@ -401,10 +401,10 @@ module PulpContainerClient
|
|
401
401
|
return false if !@username.nil? && @username.to_s.length < 1
|
402
402
|
return false if !@password.nil? && @password.to_s.length < 1
|
403
403
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
404
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
405
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
406
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
407
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
404
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
405
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
406
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
407
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
408
408
|
return false if @upstream_name.nil?
|
409
409
|
return false if @upstream_name.to_s.length < 1
|
410
410
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
@@ -532,8 +532,8 @@ module PulpContainerClient
|
|
532
532
|
# Custom attribute writer method with validation
|
533
533
|
# @param [Object] total_timeout Value to be assigned
|
534
534
|
def total_timeout=(total_timeout)
|
535
|
-
if !total_timeout.nil? && total_timeout < 0
|
536
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
535
|
+
if !total_timeout.nil? && total_timeout < 0
|
536
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
537
537
|
end
|
538
538
|
|
539
539
|
@total_timeout = total_timeout
|
@@ -542,8 +542,8 @@ module PulpContainerClient
|
|
542
542
|
# Custom attribute writer method with validation
|
543
543
|
# @param [Object] connect_timeout Value to be assigned
|
544
544
|
def connect_timeout=(connect_timeout)
|
545
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
546
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
545
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
546
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
547
547
|
end
|
548
548
|
|
549
549
|
@connect_timeout = connect_timeout
|
@@ -552,8 +552,8 @@ module PulpContainerClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] sock_connect_timeout Value to be assigned
|
554
554
|
def sock_connect_timeout=(sock_connect_timeout)
|
555
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
555
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
556
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -562,8 +562,8 @@ module PulpContainerClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] sock_read_timeout Value to be assigned
|
564
564
|
def sock_read_timeout=(sock_read_timeout)
|
565
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
565
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
566
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@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 most recent update of the remote.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
# A unique name for this remote.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -40,9 +43,6 @@ module PulpContainerClient
|
|
40
43
|
|
41
44
|
attr_accessor :pulp_labels
|
42
45
|
|
43
|
-
# Timestamp of the most recent update of the remote.
|
44
|
-
attr_accessor :pulp_last_updated
|
45
|
-
|
46
46
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
@@ -90,6 +90,7 @@ module PulpContainerClient
|
|
90
90
|
{
|
91
91
|
:'pulp_href' => :'pulp_href',
|
92
92
|
:'pulp_created' => :'pulp_created',
|
93
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
93
94
|
:'name' => :'name',
|
94
95
|
:'url' => :'url',
|
95
96
|
:'ca_cert' => :'ca_cert',
|
@@ -97,7 +98,6 @@ module PulpContainerClient
|
|
97
98
|
:'tls_validation' => :'tls_validation',
|
98
99
|
:'proxy_url' => :'proxy_url',
|
99
100
|
:'pulp_labels' => :'pulp_labels',
|
100
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
101
101
|
:'download_concurrency' => :'download_concurrency',
|
102
102
|
:'max_retries' => :'max_retries',
|
103
103
|
:'policy' => :'policy',
|
@@ -120,6 +120,7 @@ module PulpContainerClient
|
|
120
120
|
{
|
121
121
|
:'pulp_href' => :'String',
|
122
122
|
:'pulp_created' => :'DateTime',
|
123
|
+
:'pulp_last_updated' => :'DateTime',
|
123
124
|
:'name' => :'String',
|
124
125
|
:'url' => :'String',
|
125
126
|
:'ca_cert' => :'String',
|
@@ -127,7 +128,6 @@ module PulpContainerClient
|
|
127
128
|
:'tls_validation' => :'Boolean',
|
128
129
|
:'proxy_url' => :'String',
|
129
130
|
:'pulp_labels' => :'Hash<String, String>',
|
130
|
-
:'pulp_last_updated' => :'DateTime',
|
131
131
|
:'download_concurrency' => :'Integer',
|
132
132
|
:'max_retries' => :'Integer',
|
133
133
|
:'policy' => :'Policy762Enum',
|
@@ -186,6 +186,10 @@ module PulpContainerClient
|
|
186
186
|
self.pulp_created = attributes[:'pulp_created']
|
187
187
|
end
|
188
188
|
|
189
|
+
if attributes.key?(:'pulp_last_updated')
|
190
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
191
|
+
end
|
192
|
+
|
189
193
|
if attributes.key?(:'name')
|
190
194
|
self.name = attributes[:'name']
|
191
195
|
end
|
@@ -216,10 +220,6 @@ module PulpContainerClient
|
|
216
220
|
end
|
217
221
|
end
|
218
222
|
|
219
|
-
if attributes.key?(:'pulp_last_updated')
|
220
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
221
|
-
end
|
222
|
-
|
223
223
|
if attributes.key?(:'download_concurrency')
|
224
224
|
self.download_concurrency = attributes[:'download_concurrency']
|
225
225
|
end
|
@@ -301,20 +301,20 @@ module PulpContainerClient
|
|
301
301
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
302
|
end
|
303
303
|
|
304
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
305
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
304
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
305
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
306
306
|
end
|
307
307
|
|
308
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
309
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
308
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
309
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
310
310
|
end
|
311
311
|
|
312
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
312
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
313
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
314
314
|
end
|
315
315
|
|
316
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
316
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
317
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
318
318
|
end
|
319
319
|
|
320
320
|
if @upstream_name.nil?
|
@@ -330,10 +330,10 @@ module PulpContainerClient
|
|
330
330
|
return false if @name.nil?
|
331
331
|
return false if @url.nil?
|
332
332
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
333
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
334
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
336
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
333
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
334
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
336
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
337
337
|
return false if @upstream_name.nil?
|
338
338
|
true
|
339
339
|
end
|
@@ -351,8 +351,8 @@ module PulpContainerClient
|
|
351
351
|
# Custom attribute writer method with validation
|
352
352
|
# @param [Object] total_timeout Value to be assigned
|
353
353
|
def total_timeout=(total_timeout)
|
354
|
-
if !total_timeout.nil? && total_timeout < 0
|
355
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
354
|
+
if !total_timeout.nil? && total_timeout < 0
|
355
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
356
356
|
end
|
357
357
|
|
358
358
|
@total_timeout = total_timeout
|
@@ -361,8 +361,8 @@ module PulpContainerClient
|
|
361
361
|
# Custom attribute writer method with validation
|
362
362
|
# @param [Object] connect_timeout Value to be assigned
|
363
363
|
def connect_timeout=(connect_timeout)
|
364
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
365
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
364
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
365
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
366
366
|
end
|
367
367
|
|
368
368
|
@connect_timeout = connect_timeout
|
@@ -371,8 +371,8 @@ module PulpContainerClient
|
|
371
371
|
# Custom attribute writer method with validation
|
372
372
|
# @param [Object] sock_connect_timeout Value to be assigned
|
373
373
|
def sock_connect_timeout=(sock_connect_timeout)
|
374
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
375
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
374
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
375
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
376
376
|
end
|
377
377
|
|
378
378
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -381,8 +381,8 @@ module PulpContainerClient
|
|
381
381
|
# Custom attribute writer method with validation
|
382
382
|
# @param [Object] sock_read_timeout Value to be assigned
|
383
383
|
def sock_read_timeout=(sock_read_timeout)
|
384
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
385
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
384
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
385
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
386
386
|
end
|
387
387
|
|
388
388
|
@sock_read_timeout = sock_read_timeout
|
@@ -395,6 +395,7 @@ module PulpContainerClient
|
|
395
395
|
self.class == o.class &&
|
396
396
|
pulp_href == o.pulp_href &&
|
397
397
|
pulp_created == o.pulp_created &&
|
398
|
+
pulp_last_updated == o.pulp_last_updated &&
|
398
399
|
name == o.name &&
|
399
400
|
url == o.url &&
|
400
401
|
ca_cert == o.ca_cert &&
|
@@ -402,7 +403,6 @@ module PulpContainerClient
|
|
402
403
|
tls_validation == o.tls_validation &&
|
403
404
|
proxy_url == o.proxy_url &&
|
404
405
|
pulp_labels == o.pulp_labels &&
|
405
|
-
pulp_last_updated == o.pulp_last_updated &&
|
406
406
|
download_concurrency == o.download_concurrency &&
|
407
407
|
max_retries == o.max_retries &&
|
408
408
|
policy == o.policy &&
|
@@ -428,7 +428,7 @@ module PulpContainerClient
|
|
428
428
|
# Calculates hash code according to all attributes.
|
429
429
|
# @return [Integer] Hash code
|
430
430
|
def hash
|
431
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels,
|
431
|
+
[pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, upstream_name, include_tags, exclude_tags, sigstore].hash
|
432
432
|
end
|
433
433
|
|
434
434
|
# Builds the object from hash
|
@@ -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 :versions_href
|
24
27
|
|
25
28
|
attr_accessor :pulp_labels
|
@@ -46,6 +49,7 @@ module PulpContainerClient
|
|
46
49
|
{
|
47
50
|
:'pulp_href' => :'pulp_href',
|
48
51
|
:'pulp_created' => :'pulp_created',
|
52
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
49
53
|
:'versions_href' => :'versions_href',
|
50
54
|
:'pulp_labels' => :'pulp_labels',
|
51
55
|
:'latest_version_href' => :'latest_version_href',
|
@@ -62,6 +66,7 @@ module PulpContainerClient
|
|
62
66
|
{
|
63
67
|
:'pulp_href' => :'String',
|
64
68
|
:'pulp_created' => :'DateTime',
|
69
|
+
:'pulp_last_updated' => :'DateTime',
|
65
70
|
:'versions_href' => :'String',
|
66
71
|
:'pulp_labels' => :'Hash<String, String>',
|
67
72
|
:'latest_version_href' => :'String',
|
@@ -106,6 +111,10 @@ module PulpContainerClient
|
|
106
111
|
self.pulp_created = attributes[:'pulp_created']
|
107
112
|
end
|
108
113
|
|
114
|
+
if attributes.key?(:'pulp_last_updated')
|
115
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
116
|
+
end
|
117
|
+
|
109
118
|
if attributes.key?(:'versions_href')
|
110
119
|
self.versions_href = attributes[:'versions_href']
|
111
120
|
end
|
@@ -181,6 +190,7 @@ module PulpContainerClient
|
|
181
190
|
self.class == o.class &&
|
182
191
|
pulp_href == o.pulp_href &&
|
183
192
|
pulp_created == o.pulp_created &&
|
193
|
+
pulp_last_updated == o.pulp_last_updated &&
|
184
194
|
versions_href == o.versions_href &&
|
185
195
|
pulp_labels == o.pulp_labels &&
|
186
196
|
latest_version_href == o.latest_version_href &&
|
@@ -200,7 +210,7 @@ module PulpContainerClient
|
|
200
210
|
# Calculates hash code according to all attributes.
|
201
211
|
# @return [Integer] Hash code
|
202
212
|
def hash
|
203
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, manifest_signing_service].hash
|
213
|
+
[pulp_href, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, manifest_signing_service].hash
|
204
214
|
end
|
205
215
|
|
206
216
|
# Builds the object from hash
|
@@ -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
|
# sha256 of the Manifest file
|
24
27
|
attr_accessor :digest
|
25
28
|
|
@@ -55,6 +58,7 @@ module PulpContainerClient
|
|
55
58
|
{
|
56
59
|
:'pulp_href' => :'pulp_href',
|
57
60
|
:'pulp_created' => :'pulp_created',
|
61
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
58
62
|
:'digest' => :'digest',
|
59
63
|
:'schema_version' => :'schema_version',
|
60
64
|
:'media_type' => :'media_type',
|
@@ -73,6 +77,7 @@ module PulpContainerClient
|
|
73
77
|
{
|
74
78
|
:'pulp_href' => :'String',
|
75
79
|
:'pulp_created' => :'DateTime',
|
80
|
+
:'pulp_last_updated' => :'DateTime',
|
76
81
|
:'digest' => :'String',
|
77
82
|
:'schema_version' => :'Integer',
|
78
83
|
:'media_type' => :'String',
|
@@ -115,6 +120,10 @@ module PulpContainerClient
|
|
115
120
|
self.pulp_created = attributes[:'pulp_created']
|
116
121
|
end
|
117
122
|
|
123
|
+
if attributes.key?(:'pulp_last_updated')
|
124
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
125
|
+
end
|
126
|
+
|
118
127
|
if attributes.key?(:'digest')
|
119
128
|
self.digest = attributes[:'digest']
|
120
129
|
end
|
@@ -209,6 +218,7 @@ module PulpContainerClient
|
|
209
218
|
self.class == o.class &&
|
210
219
|
pulp_href == o.pulp_href &&
|
211
220
|
pulp_created == o.pulp_created &&
|
221
|
+
pulp_last_updated == o.pulp_last_updated &&
|
212
222
|
digest == o.digest &&
|
213
223
|
schema_version == o.schema_version &&
|
214
224
|
media_type == o.media_type &&
|
@@ -230,7 +240,7 @@ module PulpContainerClient
|
|
230
240
|
# Calculates hash code according to all attributes.
|
231
241
|
# @return [Integer] Hash code
|
232
242
|
def hash
|
233
|
-
[pulp_href, pulp_created, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak].hash
|
243
|
+
[pulp_href, pulp_created, pulp_last_updated, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak].hash
|
234
244
|
end
|
235
245
|
|
236
246
|
# Builds the object from hash
|
@@ -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
|
# Signature name in the format of `digest_algo:manifest_digest@random_32_chars`
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -46,6 +49,7 @@ module PulpContainerClient
|
|
46
49
|
{
|
47
50
|
:'pulp_href' => :'pulp_href',
|
48
51
|
:'pulp_created' => :'pulp_created',
|
52
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
49
53
|
:'name' => :'name',
|
50
54
|
:'digest' => :'digest',
|
51
55
|
:'type' => :'type',
|
@@ -61,6 +65,7 @@ module PulpContainerClient
|
|
61
65
|
{
|
62
66
|
:'pulp_href' => :'String',
|
63
67
|
:'pulp_created' => :'DateTime',
|
68
|
+
:'pulp_last_updated' => :'DateTime',
|
64
69
|
:'name' => :'String',
|
65
70
|
:'digest' => :'String',
|
66
71
|
:'type' => :'String',
|
@@ -100,6 +105,10 @@ module PulpContainerClient
|
|
100
105
|
self.pulp_created = attributes[:'pulp_created']
|
101
106
|
end
|
102
107
|
|
108
|
+
if attributes.key?(:'pulp_last_updated')
|
109
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
110
|
+
end
|
111
|
+
|
103
112
|
if attributes.key?(:'name')
|
104
113
|
self.name = attributes[:'name']
|
105
114
|
end
|
@@ -184,6 +193,7 @@ module PulpContainerClient
|
|
184
193
|
self.class == o.class &&
|
185
194
|
pulp_href == o.pulp_href &&
|
186
195
|
pulp_created == o.pulp_created &&
|
196
|
+
pulp_last_updated == o.pulp_last_updated &&
|
187
197
|
name == o.name &&
|
188
198
|
digest == o.digest &&
|
189
199
|
type == o.type &&
|
@@ -202,7 +212,7 @@ module PulpContainerClient
|
|
202
212
|
# Calculates hash code according to all attributes.
|
203
213
|
# @return [Integer] Hash code
|
204
214
|
def hash
|
205
|
-
[pulp_href, pulp_created, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
|
215
|
+
[pulp_href, pulp_created, pulp_last_updated, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
|
206
216
|
end
|
207
217
|
|
208
218
|
# Builds the object from hash
|