pulp_container_client 2.10.13 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -17
  3. data/docs/ContainerBlobResponse.md +1 -3
  4. data/docs/ContainerContainerDistribution.md +5 -5
  5. data/docs/ContainerContainerDistributionResponse.md +9 -9
  6. data/docs/ContainerContainerPushRepository.md +7 -5
  7. data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
  8. data/docs/ContainerContainerRemote.md +3 -1
  9. data/docs/ContainerContainerRemoteResponse.md +3 -1
  10. data/docs/ContainerContainerRepository.md +3 -1
  11. data/docs/ContainerContainerRepositoryResponse.md +3 -1
  12. data/docs/ContainerManifestSignatureResponse.md +33 -0
  13. data/docs/{RepositorySyncURL.md → ContainerRepositorySyncURL.md} +5 -3
  14. data/docs/ContentBlobsApi.md +0 -2
  15. data/docs/ContentSignaturesApi.md +158 -0
  16. data/docs/ContentSummary.md +21 -0
  17. data/docs/DistributionsContainerApi.md +228 -0
  18. data/docs/MyPermissionsResponse.md +17 -0
  19. data/docs/NestedRole.md +21 -0
  20. data/docs/NestedRoleResponse.md +21 -0
  21. data/docs/ObjectRolesResponse.md +17 -0
  22. data/docs/{PaginatedcontainerContentRedirectContentGuardResponseList.md → PaginatedcontainerManifestSignatureResponseList.md} +3 -3
  23. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  24. data/docs/PatchedcontainerContainerPushRepository.md +7 -5
  25. data/docs/PatchedcontainerContainerRemote.md +3 -1
  26. data/docs/PatchedcontainerContainerRepository.md +3 -1
  27. data/docs/PulpContainerNamespacesApi.md +228 -0
  28. data/docs/RemotesContainerApi.md +228 -0
  29. data/docs/RemoveSignatures.md +17 -0
  30. data/docs/RemoveSignaturesResponse.md +17 -0
  31. data/docs/RepositoriesContainerApi.md +288 -4
  32. data/docs/RepositoriesContainerPushApi.md +339 -0
  33. data/docs/RepositoriesContainerPushVersionsApi.md +4 -4
  34. data/docs/RepositoriesContainerVersionsApi.md +4 -4
  35. data/docs/RepositorySign.md +21 -0
  36. data/docs/RepositoryVersion.md +17 -0
  37. data/git_push.sh +58 -0
  38. data/lib/pulp_container_client/api/content_blobs_api.rb +0 -7
  39. data/lib/pulp_container_client/api/content_signatures_api.rb +200 -0
  40. data/lib/pulp_container_client/api/distributions_container_api.rb +268 -0
  41. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +268 -0
  42. data/lib/pulp_container_client/api/remotes_container_api.rb +268 -0
  43. data/lib/pulp_container_client/api/repositories_container_api.rb +347 -9
  44. data/lib/pulp_container_client/api/repositories_container_push_api.rb +406 -0
  45. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +9 -9
  46. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -9
  47. data/lib/pulp_container_client/api_client.rb +5 -2
  48. data/lib/pulp_container_client/configuration.rb +0 -1
  49. data/lib/pulp_container_client/models/container_blob_response.rb +4 -19
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
  52. data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -33
  53. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -44
  54. data/lib/pulp_container_client/models/container_container_remote.rb +30 -5
  55. data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -5
  56. data/lib/pulp_container_client/models/container_container_repository.rb +16 -5
  57. data/lib/pulp_container_client/models/container_container_repository_response.rb +16 -5
  58. data/lib/pulp_container_client/models/{container_content_redirect_content_guard.rb → container_manifest_signature_response.rb} +108 -44
  59. data/lib/pulp_container_client/models/{repository_sync_url.rb → container_repository_sync_url.rb} +20 -8
  60. data/lib/pulp_container_client/models/content_summary.rb +246 -0
  61. data/lib/pulp_container_client/models/my_permissions_response.rb +213 -0
  62. data/lib/pulp_container_client/models/{container_content_redirect_content_guard_response.rb → nested_role.rb} +30 -39
  63. data/lib/pulp_container_client/models/nested_role_response.rb +234 -0
  64. data/lib/pulp_container_client/models/{repair.rb → object_roles_response.rb} +17 -13
  65. data/lib/pulp_container_client/models/{paginatedcontainer_content_redirect_content_guard_response_list.rb → paginatedcontainer_manifest_signature_response_list.rb} +4 -4
  66. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
  67. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -33
  68. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +30 -5
  69. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +16 -5
  70. data/lib/pulp_container_client/models/remove_signatures.rb +232 -0
  71. data/lib/pulp_container_client/models/remove_signatures_response.rb +213 -0
  72. data/lib/pulp_container_client/models/{patchedcontainer_content_redirect_content_guard.rb → repository_sign.rb} +40 -43
  73. data/lib/pulp_container_client/models/repository_version.rb +208 -0
  74. data/lib/pulp_container_client/version.rb +1 -1
  75. data/lib/pulp_container_client.rb +13 -7
  76. data/pulp_container_client.gemspec +3 -3
  77. data/spec/api/content_blobs_api_spec.rb +0 -1
  78. data/spec/api/content_signatures_api_spec.rb +78 -0
  79. data/spec/api/distributions_container_api_spec.rb +50 -0
  80. data/spec/api/pulp_container_namespaces_api_spec.rb +50 -0
  81. data/spec/api/remotes_container_api_spec.rb +50 -0
  82. data/spec/api/repositories_container_api_spec.rb +64 -1
  83. data/spec/api/repositories_container_push_api_spec.rb +75 -0
  84. data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
  85. data/spec/api/repositories_container_versions_api_spec.rb +1 -1
  86. data/spec/models/container_blob_response_spec.rb +0 -6
  87. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  88. data/spec/models/container_container_distribution_spec.rb +5 -5
  89. data/spec/models/container_container_push_repository_response_spec.rb +13 -7
  90. data/spec/models/container_container_push_repository_spec.rb +9 -3
  91. data/spec/models/container_container_remote_response_spec.rb +6 -0
  92. data/spec/models/container_container_remote_spec.rb +6 -0
  93. data/spec/models/container_container_repository_response_spec.rb +6 -0
  94. data/spec/models/container_container_repository_spec.rb +6 -0
  95. data/spec/models/container_manifest_signature_response_spec.rb +89 -0
  96. data/spec/models/{container_content_redirect_content_guard_response_spec.rb → container_repository_sync_url_spec.rb} +9 -15
  97. data/spec/models/{container_content_redirect_content_guard_spec.rb → content_summary_spec.rb} +14 -8
  98. data/spec/models/my_permissions_response_spec.rb +41 -0
  99. data/spec/models/nested_role_response_spec.rb +53 -0
  100. data/spec/models/{patchedcontainer_content_redirect_content_guard_spec.rb → nested_role_spec.rb} +14 -8
  101. data/spec/models/object_roles_response_spec.rb +41 -0
  102. data/spec/models/{paginatedcontainer_content_redirect_content_guard_response_list_spec.rb → paginatedcontainer_manifest_signature_response_list_spec.rb} +6 -6
  103. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  104. data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
  105. data/spec/models/patchedcontainer_container_remote_spec.rb +6 -0
  106. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  107. data/spec/models/remove_signatures_response_spec.rb +41 -0
  108. data/spec/models/{repair_spec.rb → remove_signatures_spec.rb} +7 -7
  109. data/spec/models/{repository_sync_url_spec.rb → repository_sign_spec.rb} +14 -8
  110. data/spec/models/repository_version_spec.rb +41 -0
  111. metadata +99 -74
  112. data/docs/ContainerContentRedirectContentGuard.md +0 -19
  113. data/docs/ContainerContentRedirectContentGuardResponse.md +0 -23
  114. data/docs/ContentguardsContentRedirectApi.md +0 -361
  115. data/docs/PatchedcontainerContentRedirectContentGuard.md +0 -19
  116. data/docs/Repair.md +0 -17
  117. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +0 -440
  118. data/spec/api/contentguards_content_redirect_api_spec.rb +0 -120
@@ -86,6 +86,9 @@ module PulpContainerClient
86
86
  # A list of tags to exclude during sync. Wildcards *, ? are recognized. 'exclude_tags' is evaluated after 'include_tags'.
87
87
  attr_accessor :exclude_tags
88
88
 
89
+ # A URL to a sigstore to download image signatures from
90
+ attr_accessor :sigstore
91
+
89
92
  # Attribute mapping from ruby-style variable name to JSON key.
90
93
  def self.attribute_map
91
94
  {
@@ -112,7 +115,8 @@ module PulpContainerClient
112
115
  :'rate_limit' => :'rate_limit',
113
116
  :'upstream_name' => :'upstream_name',
114
117
  :'include_tags' => :'include_tags',
115
- :'exclude_tags' => :'exclude_tags'
118
+ :'exclude_tags' => :'exclude_tags',
119
+ :'sigstore' => :'sigstore'
116
120
  }
117
121
  end
118
122
 
@@ -142,7 +146,8 @@ module PulpContainerClient
142
146
  :'rate_limit' => :'Integer',
143
147
  :'upstream_name' => :'String',
144
148
  :'include_tags' => :'Array<String>',
145
- :'exclude_tags' => :'Array<String>'
149
+ :'exclude_tags' => :'Array<String>',
150
+ :'sigstore' => :'String'
146
151
  }
147
152
  end
148
153
 
@@ -165,7 +170,7 @@ module PulpContainerClient
165
170
  :'sock_read_timeout',
166
171
  :'rate_limit',
167
172
  :'include_tags',
168
- :'exclude_tags'
173
+ :'exclude_tags',
169
174
  ])
170
175
  end
171
176
 
@@ -285,6 +290,10 @@ module PulpContainerClient
285
290
  self.exclude_tags = value
286
291
  end
287
292
  end
293
+
294
+ if attributes.key?(:'sigstore')
295
+ self.sigstore = attributes[:'sigstore']
296
+ end
288
297
  end
289
298
 
290
299
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -367,6 +376,10 @@ module PulpContainerClient
367
376
  invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
368
377
  end
369
378
 
379
+ if !@sigstore.nil? && @sigstore.to_s.length < 1
380
+ invalid_properties.push('invalid value for "sigstore", the character length must be great than or equal to 1.')
381
+ end
382
+
370
383
  invalid_properties
371
384
  end
372
385
 
@@ -392,6 +405,7 @@ module PulpContainerClient
392
405
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
393
406
  return false if @upstream_name.nil?
394
407
  return false if @upstream_name.to_s.length < 1
408
+ return false if !@sigstore.nil? && @sigstore.to_s.length < 1
395
409
  true
396
410
  end
397
411
 
@@ -567,6 +581,16 @@ module PulpContainerClient
567
581
  @upstream_name = upstream_name
568
582
  end
569
583
 
584
+ # Custom attribute writer method with validation
585
+ # @param [Object] sigstore Value to be assigned
586
+ def sigstore=(sigstore)
587
+ if !sigstore.nil? && sigstore.to_s.length < 1
588
+ fail ArgumentError, 'invalid value for "sigstore", the character length must be great than or equal to 1.'
589
+ end
590
+
591
+ @sigstore = sigstore
592
+ end
593
+
570
594
  # Checks equality by comparing each attribute.
571
595
  # @param [Object] Object to be compared
572
596
  def ==(o)
@@ -595,7 +619,8 @@ module PulpContainerClient
595
619
  rate_limit == o.rate_limit &&
596
620
  upstream_name == o.upstream_name &&
597
621
  include_tags == o.include_tags &&
598
- exclude_tags == o.exclude_tags
622
+ exclude_tags == o.exclude_tags &&
623
+ sigstore == o.sigstore
599
624
  end
600
625
 
601
626
  # @see the `==` method
@@ -607,7 +632,7 @@ module PulpContainerClient
607
632
  # Calculates hash code according to all attributes.
608
633
  # @return [Integer] Hash code
609
634
  def hash
610
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags].hash
635
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
611
636
  end
612
637
 
613
638
  # Builds the object from hash
@@ -79,6 +79,9 @@ module PulpContainerClient
79
79
  # A list of tags to exclude during sync. Wildcards *, ? are recognized. 'exclude_tags' is evaluated after 'include_tags'.
80
80
  attr_accessor :exclude_tags
81
81
 
82
+ # A URL to a sigstore to download image signatures from
83
+ attr_accessor :sigstore
84
+
82
85
  # Attribute mapping from ruby-style variable name to JSON key.
83
86
  def self.attribute_map
84
87
  {
@@ -103,7 +106,8 @@ module PulpContainerClient
103
106
  :'rate_limit' => :'rate_limit',
104
107
  :'upstream_name' => :'upstream_name',
105
108
  :'include_tags' => :'include_tags',
106
- :'exclude_tags' => :'exclude_tags'
109
+ :'exclude_tags' => :'exclude_tags',
110
+ :'sigstore' => :'sigstore'
107
111
  }
108
112
  end
109
113
 
@@ -131,7 +135,8 @@ module PulpContainerClient
131
135
  :'rate_limit' => :'Integer',
132
136
  :'upstream_name' => :'String',
133
137
  :'include_tags' => :'Array<String>',
134
- :'exclude_tags' => :'Array<String>'
138
+ :'exclude_tags' => :'Array<String>',
139
+ :'sigstore' => :'String'
135
140
  }
136
141
  end
137
142
 
@@ -149,7 +154,7 @@ module PulpContainerClient
149
154
  :'sock_read_timeout',
150
155
  :'rate_limit',
151
156
  :'include_tags',
152
- :'exclude_tags'
157
+ :'exclude_tags',
153
158
  ])
154
159
  end
155
160
 
@@ -261,6 +266,10 @@ module PulpContainerClient
261
266
  self.exclude_tags = value
262
267
  end
263
268
  end
269
+
270
+ if attributes.key?(:'sigstore')
271
+ self.sigstore = attributes[:'sigstore']
272
+ end
264
273
  end
265
274
 
266
275
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -392,7 +401,8 @@ module PulpContainerClient
392
401
  rate_limit == o.rate_limit &&
393
402
  upstream_name == o.upstream_name &&
394
403
  include_tags == o.include_tags &&
395
- exclude_tags == o.exclude_tags
404
+ exclude_tags == o.exclude_tags &&
405
+ sigstore == o.sigstore
396
406
  end
397
407
 
398
408
  # @see the `==` method
@@ -404,7 +414,7 @@ module PulpContainerClient
404
414
  # Calculates hash code according to all attributes.
405
415
  # @return [Integer] Hash code
406
416
  def hash
407
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags].hash
417
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
408
418
  end
409
419
 
410
420
  # Builds the object from hash
@@ -29,6 +29,9 @@ module PulpContainerClient
29
29
  # An optional remote to use by default when syncing.
30
30
  attr_accessor :remote
31
31
 
32
+ # A reference to an associated signing service.
33
+ attr_accessor :manifest_signing_service
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -36,7 +39,8 @@ module PulpContainerClient
36
39
  :'name' => :'name',
37
40
  :'description' => :'description',
38
41
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'remote' => :'remote'
42
+ :'remote' => :'remote',
43
+ :'manifest_signing_service' => :'manifest_signing_service'
40
44
  }
41
45
  end
42
46
 
@@ -47,7 +51,8 @@ module PulpContainerClient
47
51
  :'name' => :'String',
48
52
  :'description' => :'String',
49
53
  :'retain_repo_versions' => :'Integer',
50
- :'remote' => :'String'
54
+ :'remote' => :'String',
55
+ :'manifest_signing_service' => :'String'
51
56
  }
52
57
  end
53
58
 
@@ -56,7 +61,8 @@ module PulpContainerClient
56
61
  Set.new([
57
62
  :'description',
58
63
  :'retain_repo_versions',
59
- :'remote'
64
+ :'remote',
65
+ :'manifest_signing_service'
60
66
  ])
61
67
  end
62
68
 
@@ -94,6 +100,10 @@ module PulpContainerClient
94
100
  if attributes.key?(:'remote')
95
101
  self.remote = attributes[:'remote']
96
102
  end
103
+
104
+ if attributes.key?(:'manifest_signing_service')
105
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
106
+ end
97
107
  end
98
108
 
99
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -172,7 +182,8 @@ module PulpContainerClient
172
182
  name == o.name &&
173
183
  description == o.description &&
174
184
  retain_repo_versions == o.retain_repo_versions &&
175
- remote == o.remote
185
+ remote == o.remote &&
186
+ manifest_signing_service == o.manifest_signing_service
176
187
  end
177
188
 
178
189
  # @see the `==` method
@@ -184,7 +195,7 @@ module PulpContainerClient
184
195
  # Calculates hash code according to all attributes.
185
196
  # @return [Integer] Hash code
186
197
  def hash
187
- [pulp_labels, name, description, retain_repo_versions, remote].hash
198
+ [pulp_labels, name, description, retain_repo_versions, remote, manifest_signing_service].hash
188
199
  end
189
200
 
190
201
  # Builds the object from hash
@@ -38,6 +38,9 @@ module PulpContainerClient
38
38
  # An optional remote to use by default when syncing.
39
39
  attr_accessor :remote
40
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
  {
@@ -49,7 +52,8 @@ module PulpContainerClient
49
52
  :'name' => :'name',
50
53
  :'description' => :'description',
51
54
  :'retain_repo_versions' => :'retain_repo_versions',
52
- :'remote' => :'remote'
55
+ :'remote' => :'remote',
56
+ :'manifest_signing_service' => :'manifest_signing_service'
53
57
  }
54
58
  end
55
59
 
@@ -64,7 +68,8 @@ module PulpContainerClient
64
68
  :'name' => :'String',
65
69
  :'description' => :'String',
66
70
  :'retain_repo_versions' => :'Integer',
67
- :'remote' => :'String'
71
+ :'remote' => :'String',
72
+ :'manifest_signing_service' => :'String'
68
73
  }
69
74
  end
70
75
 
@@ -73,7 +78,8 @@ module PulpContainerClient
73
78
  Set.new([
74
79
  :'description',
75
80
  :'retain_repo_versions',
76
- :'remote'
81
+ :'remote',
82
+ :'manifest_signing_service'
77
83
  ])
78
84
  end
79
85
 
@@ -127,6 +133,10 @@ module PulpContainerClient
127
133
  if attributes.key?(:'remote')
128
134
  self.remote = attributes[:'remote']
129
135
  end
136
+
137
+ if attributes.key?(:'manifest_signing_service')
138
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
139
+ end
130
140
  end
131
141
 
132
142
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -175,7 +185,8 @@ module PulpContainerClient
175
185
  name == o.name &&
176
186
  description == o.description &&
177
187
  retain_repo_versions == o.retain_repo_versions &&
178
- remote == o.remote
188
+ remote == o.remote &&
189
+ manifest_signing_service == o.manifest_signing_service
179
190
  end
180
191
 
181
192
  # @see the `==` method
@@ -187,7 +198,7 @@ module PulpContainerClient
187
198
  # Calculates hash code according to all attributes.
188
199
  # @return [Integer] Hash code
189
200
  def hash
190
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
201
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, manifest_signing_service].hash
191
202
  end
192
203
 
193
204
  # Builds the object from hash
@@ -13,34 +13,67 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- # A serializer for ContentRedirectContentGuard.
17
- class ContainerContentRedirectContentGuard
18
- # The unique name.
16
+ # Serializer for image manifest signatures.
17
+ class ContainerManifestSignatureResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ # Signature name in the format of `digest_algo:manifest_digest@random_32_chars`
19
24
  attr_accessor :name
20
25
 
21
- # An optional description.
22
- attr_accessor :description
26
+ # sha256 digest of the signature blob
27
+ attr_accessor :digest
28
+
29
+ # Container signature type, e.g. 'atomic'
30
+ attr_accessor :type
31
+
32
+ # Signing key ID
33
+ attr_accessor :key_id
34
+
35
+ # Timestamp of a signature
36
+ attr_accessor :timestamp
37
+
38
+ # Signature creator
39
+ attr_accessor :creator
40
+
41
+ # Manifest that is signed
42
+ attr_accessor :signed_manifest
23
43
 
24
44
  # Attribute mapping from ruby-style variable name to JSON key.
25
45
  def self.attribute_map
26
46
  {
47
+ :'pulp_href' => :'pulp_href',
48
+ :'pulp_created' => :'pulp_created',
27
49
  :'name' => :'name',
28
- :'description' => :'description'
50
+ :'digest' => :'digest',
51
+ :'type' => :'type',
52
+ :'key_id' => :'key_id',
53
+ :'timestamp' => :'timestamp',
54
+ :'creator' => :'creator',
55
+ :'signed_manifest' => :'signed_manifest'
29
56
  }
30
57
  end
31
58
 
32
59
  # Attribute type mapping.
33
60
  def self.openapi_types
34
61
  {
62
+ :'pulp_href' => :'String',
63
+ :'pulp_created' => :'DateTime',
35
64
  :'name' => :'String',
36
- :'description' => :'String'
65
+ :'digest' => :'String',
66
+ :'type' => :'String',
67
+ :'key_id' => :'String',
68
+ :'timestamp' => :'Integer',
69
+ :'creator' => :'String',
70
+ :'signed_manifest' => :'String'
37
71
  }
38
72
  end
39
73
 
40
74
  # List of attributes with nullable: true
41
75
  def self.openapi_nullable
42
76
  Set.new([
43
- :'description'
44
77
  ])
45
78
  end
46
79
 
@@ -48,23 +81,51 @@ module PulpContainerClient
48
81
  # @param [Hash] attributes Model attributes in the form of hash
49
82
  def initialize(attributes = {})
50
83
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerContentRedirectContentGuard` initialize method"
84
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerManifestSignatureResponse` initialize method"
52
85
  end
53
86
 
54
87
  # check to see if the attribute exists and convert string to symbol for hash key
55
88
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
89
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerContentRedirectContentGuard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerManifestSignatureResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
91
  end
59
92
  h[k.to_sym] = v
60
93
  }
61
94
 
95
+ if attributes.key?(:'pulp_href')
96
+ self.pulp_href = attributes[:'pulp_href']
97
+ end
98
+
99
+ if attributes.key?(:'pulp_created')
100
+ self.pulp_created = attributes[:'pulp_created']
101
+ end
102
+
62
103
  if attributes.key?(:'name')
63
104
  self.name = attributes[:'name']
64
105
  end
65
106
 
66
- if attributes.key?(:'description')
67
- self.description = attributes[:'description']
107
+ if attributes.key?(:'digest')
108
+ self.digest = attributes[:'digest']
109
+ end
110
+
111
+ if attributes.key?(:'type')
112
+ self.type = attributes[:'type']
113
+ end
114
+
115
+ if attributes.key?(:'key_id')
116
+ self.key_id = attributes[:'key_id']
117
+ end
118
+
119
+ if attributes.key?(:'timestamp')
120
+ self.timestamp = attributes[:'timestamp']
121
+ end
122
+
123
+ if attributes.key?(:'creator')
124
+ self.creator = attributes[:'creator']
125
+ end
126
+
127
+ if attributes.key?(:'signed_manifest')
128
+ self.signed_manifest = attributes[:'signed_manifest']
68
129
  end
69
130
  end
70
131
 
@@ -76,48 +137,44 @@ module PulpContainerClient
76
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
77
138
  end
78
139
 
79
- if @name.to_s.length < 1
80
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
140
+ if @digest.nil?
141
+ invalid_properties.push('invalid value for "digest", digest cannot be nil.')
81
142
  end
82
143
 
83
- if !@description.nil? && @description.to_s.length < 1
84
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
144
+ if @type.nil?
145
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
85
146
  end
86
147
 
87
- invalid_properties
88
- end
148
+ if @key_id.nil?
149
+ invalid_properties.push('invalid value for "key_id", key_id cannot be nil.')
150
+ end
89
151
 
90
- # Check to see if the all the properties in the model are valid
91
- # @return true if the model is valid
92
- def valid?
93
- return false if @name.nil?
94
- return false if @name.to_s.length < 1
95
- return false if !@description.nil? && @description.to_s.length < 1
96
- true
97
- end
152
+ if @timestamp.nil?
153
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
154
+ end
98
155
 
99
- # Custom attribute writer method with validation
100
- # @param [Object] name Value to be assigned
101
- def name=(name)
102
- if name.nil?
103
- fail ArgumentError, 'name cannot be nil'
156
+ if @creator.nil?
157
+ invalid_properties.push('invalid value for "creator", creator cannot be nil.')
104
158
  end
105
159
 
106
- if name.to_s.length < 1
107
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
160
+ if @signed_manifest.nil?
161
+ invalid_properties.push('invalid value for "signed_manifest", signed_manifest cannot be nil.')
108
162
  end
109
163
 
110
- @name = name
164
+ invalid_properties
111
165
  end
112
166
 
113
- # Custom attribute writer method with validation
114
- # @param [Object] description Value to be assigned
115
- def description=(description)
116
- if !description.nil? && description.to_s.length < 1
117
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
118
- end
119
-
120
- @description = description
167
+ # Check to see if the all the properties in the model are valid
168
+ # @return true if the model is valid
169
+ def valid?
170
+ return false if @name.nil?
171
+ return false if @digest.nil?
172
+ return false if @type.nil?
173
+ return false if @key_id.nil?
174
+ return false if @timestamp.nil?
175
+ return false if @creator.nil?
176
+ return false if @signed_manifest.nil?
177
+ true
121
178
  end
122
179
 
123
180
  # Checks equality by comparing each attribute.
@@ -125,8 +182,15 @@ module PulpContainerClient
125
182
  def ==(o)
126
183
  return true if self.equal?(o)
127
184
  self.class == o.class &&
185
+ pulp_href == o.pulp_href &&
186
+ pulp_created == o.pulp_created &&
128
187
  name == o.name &&
129
- description == o.description
188
+ digest == o.digest &&
189
+ type == o.type &&
190
+ key_id == o.key_id &&
191
+ timestamp == o.timestamp &&
192
+ creator == o.creator &&
193
+ signed_manifest == o.signed_manifest
130
194
  end
131
195
 
132
196
  # @see the `==` method
@@ -138,7 +202,7 @@ module PulpContainerClient
138
202
  # Calculates hash code according to all attributes.
139
203
  # @return [Integer] Hash code
140
204
  def hash
141
- [name, description].hash
205
+ [pulp_href, pulp_created, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
142
206
  end
143
207
 
144
208
  # Builds the object from hash
@@ -13,19 +13,23 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- # A mixin for validating unknown serializers' fields.
17
- class RepositorySyncURL
16
+ # Serializer for Container Sync.
17
+ class ContainerRepositorySyncURL
18
18
  # A remote to sync from. This will override a remote set on repository.
19
19
  attr_accessor :remote
20
20
 
21
21
  # If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
22
22
  attr_accessor :mirror
23
23
 
24
+ # If ``True``, only signed content will be synced. Signatures are not verified.
25
+ attr_accessor :signed_only
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'remote' => :'remote',
28
- :'mirror' => :'mirror'
31
+ :'mirror' => :'mirror',
32
+ :'signed_only' => :'signed_only'
29
33
  }
30
34
  end
31
35
 
@@ -33,7 +37,8 @@ module PulpContainerClient
33
37
  def self.openapi_types
34
38
  {
35
39
  :'remote' => :'String',
36
- :'mirror' => :'Boolean'
40
+ :'mirror' => :'Boolean',
41
+ :'signed_only' => :'Boolean'
37
42
  }
38
43
  end
39
44
 
@@ -47,13 +52,13 @@ module PulpContainerClient
47
52
  # @param [Hash] attributes Model attributes in the form of hash
48
53
  def initialize(attributes = {})
49
54
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::RepositorySyncURL` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerRepositorySyncURL` initialize method"
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
54
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
60
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::RepositorySyncURL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerRepositorySyncURL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
62
  end
58
63
  h[k.to_sym] = v
59
64
  }
@@ -67,6 +72,12 @@ module PulpContainerClient
67
72
  else
68
73
  self.mirror = false
69
74
  end
75
+
76
+ if attributes.key?(:'signed_only')
77
+ self.signed_only = attributes[:'signed_only']
78
+ else
79
+ self.signed_only = false
80
+ end
70
81
  end
71
82
 
72
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +99,8 @@ module PulpContainerClient
88
99
  return true if self.equal?(o)
89
100
  self.class == o.class &&
90
101
  remote == o.remote &&
91
- mirror == o.mirror
102
+ mirror == o.mirror &&
103
+ signed_only == o.signed_only
92
104
  end
93
105
 
94
106
  # @see the `==` method
@@ -100,7 +112,7 @@ module PulpContainerClient
100
112
  # Calculates hash code according to all attributes.
101
113
  # @return [Integer] Hash code
102
114
  def hash
103
- [remote, mirror].hash
115
+ [remote, mirror, signed_only].hash
104
116
  end
105
117
 
106
118
  # Builds the object from hash