pulp_container_client 2.19.3 → 2.19.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +8 -8
  5. data/docs/ContainerContainerDistributionResponse.md +12 -10
  6. data/docs/ContainerContainerNamespaceResponse.md +2 -0
  7. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -10
  9. data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
  10. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
  11. data/docs/ContainerContainerPushRepository.md +4 -4
  12. data/docs/ContainerContainerPushRepositoryResponse.md +12 -10
  13. data/docs/ContainerContainerRemoteResponse.md +2 -2
  14. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  15. data/docs/ContainerManifestResponse.md +2 -0
  16. data/docs/ContainerManifestSignatureResponse.md +2 -0
  17. data/docs/ContainerTagResponse.md +2 -0
  18. data/docs/ContentBlobsApi.md +1 -1
  19. data/docs/ContentManifestsApi.md +1 -1
  20. data/docs/ContentSignaturesApi.md +1 -1
  21. data/docs/ContentTagsApi.md +1 -1
  22. data/docs/DistributionsContainerApi.md +1 -1
  23. data/docs/DistributionsPullThroughApi.md +1 -1
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedcontainerBlobResponseList.md +2 -2
  26. data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
  27. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
  28. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
  29. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
  30. data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
  31. data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
  32. data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
  33. data/docs/PaginatedcontainerManifestResponseList.md +2 -2
  34. data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
  35. data/docs/PaginatedcontainerTagResponseList.md +2 -2
  36. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  37. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  38. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  39. data/docs/PulpContainerNamespacesApi.md +1 -1
  40. data/docs/RemotesContainerApi.md +1 -1
  41. data/docs/RemotesPullThroughApi.md +1 -1
  42. data/docs/RepositoriesContainerApi.md +1 -1
  43. data/docs/RepositoriesContainerPushApi.md +1 -1
  44. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  45. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  46. data/docs/RepositoryVersionResponse.md +2 -0
  47. data/docs/TokenApi.md +1 -1
  48. data/lib/pulp_container_client/configuration.rb +2 -2
  49. data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +33 -33
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +50 -40
  52. data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
  53. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +33 -33
  54. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +50 -40
  55. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +11 -11
  56. data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
  57. data/lib/pulp_container_client/models/container_container_push_repository.rb +34 -34
  58. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -42
  59. data/lib/pulp_container_client/models/container_container_remote_response.rb +11 -11
  60. data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
  61. data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
  62. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
  63. data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
  64. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
  65. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
  66. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
  67. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
  68. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
  69. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
  70. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
  71. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
  72. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
  73. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
  74. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
  75. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
  76. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +33 -33
  77. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +33 -33
  78. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
  79. data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
  80. data/lib/pulp_container_client/version.rb +1 -1
  81. data/lib/pulp_container_client.rb +0 -2
  82. data/spec/configuration_spec.rb +3 -3
  83. data/spec/models/container_blob_response_spec.rb +6 -0
  84. data/spec/models/container_container_distribution_response_spec.rb +12 -6
  85. data/spec/models/container_container_distribution_spec.rb +6 -6
  86. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  87. data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -6
  88. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  89. data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
  90. data/spec/models/container_container_push_repository_response_spec.rb +13 -7
  91. data/spec/models/container_container_push_repository_spec.rb +3 -3
  92. data/spec/models/container_container_remote_response_spec.rb +6 -6
  93. data/spec/models/container_container_repository_response_spec.rb +6 -0
  94. data/spec/models/container_manifest_response_spec.rb +6 -0
  95. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  96. data/spec/models/container_tag_response_spec.rb +6 -0
  97. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  98. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  99. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  100. data/spec/models/repository_version_response_spec.rb +6 -0
  101. metadata +77 -85
  102. data/docs/IndexDynamicApi.md +0 -50
  103. data/docs/IndexStaticApi.md +0 -50
  104. data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
  105. data/lib/pulp_container_client/api/index_static_api.rb +0 -74
  106. data/spec/api/index_dynamic_api_spec.rb +0 -45
  107. data/spec/api/index_static_api_spec.rb +0 -45
@@ -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 :name
24
27
 
25
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -27,6 +30,7 @@ module PulpContainerClient
27
30
  {
28
31
  :'pulp_href' => :'pulp_href',
29
32
  :'pulp_created' => :'pulp_created',
33
+ :'pulp_last_updated' => :'pulp_last_updated',
30
34
  :'name' => :'name'
31
35
  }
32
36
  end
@@ -36,6 +40,7 @@ module PulpContainerClient
36
40
  {
37
41
  :'pulp_href' => :'String',
38
42
  :'pulp_created' => :'DateTime',
43
+ :'pulp_last_updated' => :'DateTime',
39
44
  :'name' => :'String'
40
45
  }
41
46
  end
@@ -69,6 +74,10 @@ module PulpContainerClient
69
74
  self.pulp_created = attributes[:'pulp_created']
70
75
  end
71
76
 
77
+ if attributes.key?(:'pulp_last_updated')
78
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
79
+ end
80
+
72
81
  if attributes.key?(:'name')
73
82
  self.name = attributes[:'name']
74
83
  end
@@ -99,6 +108,7 @@ module PulpContainerClient
99
108
  self.class == o.class &&
100
109
  pulp_href == o.pulp_href &&
101
110
  pulp_created == o.pulp_created &&
111
+ pulp_last_updated == o.pulp_last_updated &&
102
112
  name == o.name
103
113
  end
104
114
 
@@ -111,7 +121,7 @@ module PulpContainerClient
111
121
  # Calculates hash code according to all attributes.
112
122
  # @return [Integer] Hash code
113
123
  def hash
114
- [pulp_href, pulp_created, name].hash
124
+ [pulp_href, pulp_created, pulp_last_updated, name].hash
115
125
  end
116
126
 
117
127
  # Builds the object from hash
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistribution
18
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
- attr_accessor :base_path
20
-
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
18
+ attr_accessor :pulp_labels
23
19
 
24
20
  # An optional content-guard. If none is specified, a default one will be used.
25
21
  attr_accessor :content_guard
26
22
 
27
- # The latest RepositoryVersion for this Repository will be served.
28
- attr_accessor :repository
23
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
+ attr_accessor :base_path
29
25
 
30
26
  # Whether this distribution should be shown in the content app.
31
27
  attr_accessor :hidden
32
28
 
33
- attr_accessor :pulp_labels
29
+ # The latest RepositoryVersion for this Repository will be served.
30
+ attr_accessor :repository
31
+
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
34
 
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
@@ -47,12 +47,12 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'base_path' => :'base_path',
51
- :'name' => :'name',
50
+ :'pulp_labels' => :'pulp_labels',
52
51
  :'content_guard' => :'content_guard',
53
- :'repository' => :'repository',
52
+ :'base_path' => :'base_path',
54
53
  :'hidden' => :'hidden',
55
- :'pulp_labels' => :'pulp_labels',
54
+ :'repository' => :'repository',
55
+ :'name' => :'name',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -63,12 +63,12 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'base_path' => :'String',
67
- :'name' => :'String',
66
+ :'pulp_labels' => :'Hash<String, String>',
68
67
  :'content_guard' => :'String',
69
- :'repository' => :'String',
68
+ :'base_path' => :'String',
70
69
  :'hidden' => :'Boolean',
71
- :'pulp_labels' => :'Hash<String, String>',
70
+ :'repository' => :'String',
71
+ :'name' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,20 +99,18 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'base_path')
103
- self.base_path = attributes[:'base_path']
104
- end
105
-
106
- if attributes.key?(:'name')
107
- self.name = attributes[:'name']
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
108
106
  end
109
107
 
110
108
  if attributes.key?(:'content_guard')
111
109
  self.content_guard = attributes[:'content_guard']
112
110
  end
113
111
 
114
- if attributes.key?(:'repository')
115
- self.repository = attributes[:'repository']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
116
114
  end
117
115
 
118
116
  if attributes.key?(:'hidden')
@@ -121,10 +119,12 @@ module PulpContainerClient
121
119
  self.hidden = false
122
120
  end
123
121
 
124
- if attributes.key?(:'pulp_labels')
125
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
- self.pulp_labels = value
127
- end
122
+ if attributes.key?(:'repository')
123
+ self.repository = attributes[:'repository']
124
+ end
125
+
126
+ if attributes.key?(:'name')
127
+ self.name = attributes[:'name']
128
128
  end
129
129
 
130
130
  if attributes.key?(:'remote')
@@ -232,12 +232,12 @@ module PulpContainerClient
232
232
  def ==(o)
233
233
  return true if self.equal?(o)
234
234
  self.class == o.class &&
235
- base_path == o.base_path &&
236
- name == o.name &&
235
+ pulp_labels == o.pulp_labels &&
237
236
  content_guard == o.content_guard &&
238
- repository == o.repository &&
237
+ base_path == o.base_path &&
239
238
  hidden == o.hidden &&
240
- pulp_labels == o.pulp_labels &&
239
+ repository == o.repository &&
240
+ name == o.name &&
241
241
  remote == o.remote &&
242
242
  distributions == o.distributions &&
243
243
  private == o.private &&
@@ -253,7 +253,7 @@ module PulpContainerClient
253
253
  # Calculates hash code according to all attributes.
254
254
  # @return [Integer] Hash code
255
255
  def hash
256
- [base_path, name, content_guard, repository, hidden, pulp_labels, remote, distributions, private, description].hash
256
+ [pulp_labels, content_guard, base_path, hidden, repository, name, remote, distributions, private, description].hash
257
257
  end
258
258
 
259
259
  # Builds the object from hash
@@ -15,27 +15,30 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistributionResponse
18
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
- attr_accessor :base_path
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
20
 
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
21
+ # 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.
22
+ attr_accessor :pulp_last_updated
23
+
24
+ attr_accessor :pulp_labels
23
25
 
24
26
  attr_accessor :pulp_href
25
27
 
26
28
  # An optional content-guard. If none is specified, a default one will be used.
27
29
  attr_accessor :content_guard
28
30
 
29
- # The latest RepositoryVersion for this Repository will be served.
30
- attr_accessor :repository
31
-
32
- # Timestamp of creation.
33
- attr_accessor :pulp_created
31
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
32
+ attr_accessor :base_path
34
33
 
35
34
  # Whether this distribution should be shown in the content app.
36
35
  attr_accessor :hidden
37
36
 
38
- attr_accessor :pulp_labels
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
40
+ # A unique name. Ex, `rawhide` and `stable`.
41
+ attr_accessor :name
39
42
 
40
43
  # Remote that can be used to fetch content when using pull-through caching.
41
44
  attr_accessor :remote
@@ -55,14 +58,15 @@ module PulpContainerClient
55
58
  # Attribute mapping from ruby-style variable name to JSON key.
56
59
  def self.attribute_map
57
60
  {
58
- :'base_path' => :'base_path',
59
- :'name' => :'name',
61
+ :'pulp_created' => :'pulp_created',
62
+ :'pulp_last_updated' => :'pulp_last_updated',
63
+ :'pulp_labels' => :'pulp_labels',
60
64
  :'pulp_href' => :'pulp_href',
61
65
  :'content_guard' => :'content_guard',
62
- :'repository' => :'repository',
63
- :'pulp_created' => :'pulp_created',
66
+ :'base_path' => :'base_path',
64
67
  :'hidden' => :'hidden',
65
- :'pulp_labels' => :'pulp_labels',
68
+ :'repository' => :'repository',
69
+ :'name' => :'name',
66
70
  :'remote' => :'remote',
67
71
  :'distributions' => :'distributions',
68
72
  :'namespace' => :'namespace',
@@ -74,14 +78,15 @@ module PulpContainerClient
74
78
  # Attribute type mapping.
75
79
  def self.openapi_types
76
80
  {
77
- :'base_path' => :'String',
78
- :'name' => :'String',
81
+ :'pulp_created' => :'DateTime',
82
+ :'pulp_last_updated' => :'DateTime',
83
+ :'pulp_labels' => :'Hash<String, String>',
79
84
  :'pulp_href' => :'String',
80
85
  :'content_guard' => :'String',
81
- :'repository' => :'String',
82
- :'pulp_created' => :'DateTime',
86
+ :'base_path' => :'String',
83
87
  :'hidden' => :'Boolean',
84
- :'pulp_labels' => :'Hash<String, String>',
88
+ :'repository' => :'String',
89
+ :'name' => :'String',
85
90
  :'remote' => :'String',
86
91
  :'distributions' => :'Array<String>',
87
92
  :'namespace' => :'String',
@@ -113,12 +118,18 @@ module PulpContainerClient
113
118
  h[k.to_sym] = v
114
119
  }
115
120
 
116
- if attributes.key?(:'base_path')
117
- self.base_path = attributes[:'base_path']
121
+ if attributes.key?(:'pulp_created')
122
+ self.pulp_created = attributes[:'pulp_created']
118
123
  end
119
124
 
120
- if attributes.key?(:'name')
121
- self.name = attributes[:'name']
125
+ if attributes.key?(:'pulp_last_updated')
126
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
127
+ end
128
+
129
+ if attributes.key?(:'pulp_labels')
130
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
131
+ self.pulp_labels = value
132
+ end
122
133
  end
123
134
 
124
135
  if attributes.key?(:'pulp_href')
@@ -129,12 +140,8 @@ module PulpContainerClient
129
140
  self.content_guard = attributes[:'content_guard']
130
141
  end
131
142
 
132
- if attributes.key?(:'repository')
133
- self.repository = attributes[:'repository']
134
- end
135
-
136
- if attributes.key?(:'pulp_created')
137
- self.pulp_created = attributes[:'pulp_created']
143
+ if attributes.key?(:'base_path')
144
+ self.base_path = attributes[:'base_path']
138
145
  end
139
146
 
140
147
  if attributes.key?(:'hidden')
@@ -143,10 +150,12 @@ module PulpContainerClient
143
150
  self.hidden = false
144
151
  end
145
152
 
146
- if attributes.key?(:'pulp_labels')
147
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
148
- self.pulp_labels = value
149
- end
153
+ if attributes.key?(:'repository')
154
+ self.repository = attributes[:'repository']
155
+ end
156
+
157
+ if attributes.key?(:'name')
158
+ self.name = attributes[:'name']
150
159
  end
151
160
 
152
161
  if attributes.key?(:'remote')
@@ -205,14 +214,15 @@ module PulpContainerClient
205
214
  def ==(o)
206
215
  return true if self.equal?(o)
207
216
  self.class == o.class &&
208
- base_path == o.base_path &&
209
- name == o.name &&
217
+ pulp_created == o.pulp_created &&
218
+ pulp_last_updated == o.pulp_last_updated &&
219
+ pulp_labels == o.pulp_labels &&
210
220
  pulp_href == o.pulp_href &&
211
221
  content_guard == o.content_guard &&
212
- repository == o.repository &&
213
- pulp_created == o.pulp_created &&
222
+ base_path == o.base_path &&
214
223
  hidden == o.hidden &&
215
- pulp_labels == o.pulp_labels &&
224
+ repository == o.repository &&
225
+ name == o.name &&
216
226
  remote == o.remote &&
217
227
  distributions == o.distributions &&
218
228
  namespace == o.namespace &&
@@ -229,7 +239,7 @@ module PulpContainerClient
229
239
  # Calculates hash code according to all attributes.
230
240
  # @return [Integer] Hash code
231
241
  def hash
232
- [base_path, name, pulp_href, content_guard, repository, pulp_created, hidden, pulp_labels, remote, distributions, namespace, private, description].hash
242
+ [pulp_created, pulp_last_updated, pulp_labels, pulp_href, content_guard, base_path, hidden, repository, name, remote, distributions, namespace, private, description].hash
233
243
  end
234
244
 
235
245
  # 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 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
 
@@ -77,6 +77,7 @@ module PulpContainerClient
77
77
  {
78
78
  :'pulp_href' => :'pulp_href',
79
79
  :'pulp_created' => :'pulp_created',
80
+ :'pulp_last_updated' => :'pulp_last_updated',
80
81
  :'name' => :'name',
81
82
  :'url' => :'url',
82
83
  :'ca_cert' => :'ca_cert',
@@ -84,7 +85,6 @@ module PulpContainerClient
84
85
  :'tls_validation' => :'tls_validation',
85
86
  :'proxy_url' => :'proxy_url',
86
87
  :'pulp_labels' => :'pulp_labels',
87
- :'pulp_last_updated' => :'pulp_last_updated',
88
88
  :'download_concurrency' => :'download_concurrency',
89
89
  :'max_retries' => :'max_retries',
90
90
  :'policy' => :'policy',
@@ -103,6 +103,7 @@ module PulpContainerClient
103
103
  {
104
104
  :'pulp_href' => :'String',
105
105
  :'pulp_created' => :'DateTime',
106
+ :'pulp_last_updated' => :'DateTime',
106
107
  :'name' => :'String',
107
108
  :'url' => :'String',
108
109
  :'ca_cert' => :'String',
@@ -110,7 +111,6 @@ module PulpContainerClient
110
111
  :'tls_validation' => :'Boolean',
111
112
  :'proxy_url' => :'String',
112
113
  :'pulp_labels' => :'Hash<String, String>',
113
- :'pulp_last_updated' => :'DateTime',
114
114
  :'download_concurrency' => :'Integer',
115
115
  :'max_retries' => :'Integer',
116
116
  :'policy' => :'Policy8e2Enum',
@@ -163,6 +163,10 @@ module PulpContainerClient
163
163
  self.pulp_created = attributes[:'pulp_created']
164
164
  end
165
165
 
166
+ if attributes.key?(:'pulp_last_updated')
167
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
168
+ end
169
+
166
170
  if attributes.key?(:'name')
167
171
  self.name = attributes[:'name']
168
172
  end
@@ -193,10 +197,6 @@ module PulpContainerClient
193
197
  end
194
198
  end
195
199
 
196
- if attributes.key?(:'pulp_last_updated')
197
- self.pulp_last_updated = attributes[:'pulp_last_updated']
198
- end
199
-
200
200
  if attributes.key?(:'download_concurrency')
201
201
  self.download_concurrency = attributes[:'download_concurrency']
202
202
  end
@@ -347,6 +347,7 @@ module PulpContainerClient
347
347
  self.class == o.class &&
348
348
  pulp_href == o.pulp_href &&
349
349
  pulp_created == o.pulp_created &&
350
+ pulp_last_updated == o.pulp_last_updated &&
350
351
  name == o.name &&
351
352
  url == o.url &&
352
353
  ca_cert == o.ca_cert &&
@@ -354,7 +355,6 @@ module PulpContainerClient
354
355
  tls_validation == o.tls_validation &&
355
356
  proxy_url == o.proxy_url &&
356
357
  pulp_labels == o.pulp_labels &&
357
- pulp_last_updated == o.pulp_last_updated &&
358
358
  download_concurrency == o.download_concurrency &&
359
359
  max_retries == o.max_retries &&
360
360
  policy == o.policy &&
@@ -376,7 +376,7 @@ module PulpContainerClient
376
376
  # Calculates hash code according to all attributes.
377
377
  # @return [Integer] Hash code
378
378
  def hash
379
- [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, hidden_fields].hash
379
+ [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].hash
380
380
  end
381
381
 
382
382
  # Builds the object from hash
@@ -68,12 +68,22 @@ module PulpContainerClient
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
+ if @name.nil?
72
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
73
+ end
74
+
75
+ if @is_set.nil?
76
+ invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
77
+ end
78
+
71
79
  invalid_properties
72
80
  end
73
81
 
74
82
  # Check to see if the all the properties in the model are valid
75
83
  # @return true if the model is valid
76
84
  def valid?
85
+ return false if @name.nil?
86
+ return false if @is_set.nil?
77
87
  true
78
88
  end
79
89
 
@@ -18,25 +18,25 @@ module PulpContainerClient
18
18
  # Retain X versions of the repository. Default is null which retains all versions.
19
19
  attr_accessor :retain_repo_versions
20
20
 
21
+ attr_accessor :pulp_labels
22
+
21
23
  # A reference to an associated signing service.
22
24
  attr_accessor :manifest_signing_service
23
25
 
24
- # A unique name for this repository.
25
- attr_accessor :name
26
-
27
26
  # An optional description.
28
27
  attr_accessor :description
29
28
 
30
- attr_accessor :pulp_labels
29
+ # A unique name for this repository.
30
+ attr_accessor :name
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'retain_repo_versions' => :'retain_repo_versions',
36
+ :'pulp_labels' => :'pulp_labels',
36
37
  :'manifest_signing_service' => :'manifest_signing_service',
37
- :'name' => :'name',
38
38
  :'description' => :'description',
39
- :'pulp_labels' => :'pulp_labels'
39
+ :'name' => :'name'
40
40
  }
41
41
  end
42
42
 
@@ -44,10 +44,10 @@ module PulpContainerClient
44
44
  def self.openapi_types
45
45
  {
46
46
  :'retain_repo_versions' => :'Integer',
47
+ :'pulp_labels' => :'Hash<String, String>',
47
48
  :'manifest_signing_service' => :'String',
48
- :'name' => :'String',
49
49
  :'description' => :'String',
50
- :'pulp_labels' => :'Hash<String, String>'
50
+ :'name' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -79,22 +79,22 @@ module PulpContainerClient
79
79
  self.retain_repo_versions = attributes[:'retain_repo_versions']
80
80
  end
81
81
 
82
- if attributes.key?(:'manifest_signing_service')
83
- self.manifest_signing_service = attributes[:'manifest_signing_service']
82
+ if attributes.key?(:'pulp_labels')
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
84
86
  end
85
87
 
86
- if attributes.key?(:'name')
87
- self.name = attributes[:'name']
88
+ if attributes.key?(:'manifest_signing_service')
89
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
88
90
  end
89
91
 
90
92
  if attributes.key?(:'description')
91
93
  self.description = attributes[:'description']
92
94
  end
93
95
 
94
- if attributes.key?(:'pulp_labels')
95
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
- self.pulp_labels = value
97
- end
96
+ if attributes.key?(:'name')
97
+ self.name = attributes[:'name']
98
98
  end
99
99
  end
100
100
 
@@ -106,6 +106,10 @@ module PulpContainerClient
106
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
107
  end
108
108
 
109
+ if !@description.nil? && @description.to_s.length < 1
110
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
111
+ end
112
+
109
113
  if @name.nil?
110
114
  invalid_properties.push('invalid value for "name", name cannot be nil.')
111
115
  end
@@ -114,10 +118,6 @@ module PulpContainerClient
114
118
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
115
119
  end
116
120
 
117
- if !@description.nil? && @description.to_s.length < 1
118
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
- end
120
-
121
121
  invalid_properties
122
122
  end
123
123
 
@@ -125,9 +125,9 @@ module PulpContainerClient
125
125
  # @return true if the model is valid
126
126
  def valid?
127
127
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
+ return false if !@description.nil? && @description.to_s.length < 1
128
129
  return false if @name.nil?
129
130
  return false if @name.to_s.length < 1
130
- return false if !@description.nil? && @description.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
@@ -141,6 +141,16 @@ module PulpContainerClient
141
141
  @retain_repo_versions = retain_repo_versions
142
142
  end
143
143
 
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] description Value to be assigned
146
+ def description=(description)
147
+ if !description.nil? && description.to_s.length < 1
148
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
149
+ end
150
+
151
+ @description = description
152
+ end
153
+
144
154
  # Custom attribute writer method with validation
145
155
  # @param [Object] name Value to be assigned
146
156
  def name=(name)
@@ -155,26 +165,16 @@ module PulpContainerClient
155
165
  @name = name
156
166
  end
157
167
 
158
- # Custom attribute writer method with validation
159
- # @param [Object] description Value to be assigned
160
- def description=(description)
161
- if !description.nil? && description.to_s.length < 1
162
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
163
- end
164
-
165
- @description = description
166
- end
167
-
168
168
  # Checks equality by comparing each attribute.
169
169
  # @param [Object] Object to be compared
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
173
  retain_repo_versions == o.retain_repo_versions &&
174
+ pulp_labels == o.pulp_labels &&
174
175
  manifest_signing_service == o.manifest_signing_service &&
175
- name == o.name &&
176
176
  description == o.description &&
177
- pulp_labels == o.pulp_labels
177
+ name == o.name
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [retain_repo_versions, manifest_signing_service, name, description, pulp_labels].hash
189
+ [retain_repo_versions, pulp_labels, manifest_signing_service, description, name].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash