pulpcore_client 3.72.2 → 3.73.0

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 (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/docs/ArtifactDistributionResponse.md +15 -15
  4. data/docs/ContentApi.md +2 -0
  5. data/docs/ContentOpenpgpPublickeyApi.md +152 -2
  6. data/docs/ContentOpenpgpPublicsubkeyApi.md +4 -2
  7. data/docs/ContentOpenpgpSignatureApi.md +4 -2
  8. data/docs/ContentOpenpgpUserattributeApi.md +4 -2
  9. data/docs/ContentOpenpgpUseridApi.md +4 -2
  10. data/docs/GenericRemoteResponse.md +1 -1
  11. data/docs/GenericRemoteResponsePolicyEnum.md +15 -0
  12. data/docs/MultipleArtifactContentResponse.md +2 -0
  13. data/docs/OpenPGPPublicKeyResponse.md +2 -0
  14. data/docs/OpenPGPPublicSubkeyResponse.md +2 -0
  15. data/docs/OpenPGPSignatureResponse.md +2 -0
  16. data/docs/OpenPGPUserAttributeResponse.md +2 -0
  17. data/docs/OpenPGPUserIDResponse.md +2 -0
  18. data/docs/PatchedUpstreamPulp.md +3 -1
  19. data/docs/{PolicyEnum.md → Policy357Enum.md} +2 -2
  20. data/docs/UpstreamPulp.md +3 -1
  21. data/docs/UpstreamPulpResponse.md +3 -1
  22. data/docs/UpstreamPulpsApi.md +2 -2
  23. data/lib/pulpcore_client/api/content_api.rb +3 -0
  24. data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +157 -3
  25. data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +6 -3
  26. data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +6 -3
  27. data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +6 -3
  28. data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +6 -3
  29. data/lib/pulpcore_client/api/upstream_pulps_api.rb +3 -3
  30. data/lib/pulpcore_client/models/artifact_distribution_response.rb +67 -67
  31. data/lib/pulpcore_client/models/generic_remote_response.rb +1 -1
  32. data/lib/pulpcore_client/models/{policy_enum.rb → generic_remote_response_policy_enum.rb} +3 -3
  33. data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +13 -1
  34. data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +13 -1
  35. data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +13 -1
  36. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +13 -1
  37. data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +13 -1
  38. data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +13 -1
  39. data/lib/pulpcore_client/models/patched_upstream_pulp.rb +37 -5
  40. data/lib/pulpcore_client/models/policy357_enum.rb +41 -0
  41. data/lib/pulpcore_client/models/upstream_pulp.rb +37 -5
  42. data/lib/pulpcore_client/models/upstream_pulp_response.rb +36 -4
  43. data/lib/pulpcore_client/version.rb +1 -1
  44. data/lib/pulpcore_client.rb +2 -1
  45. data/spec/api/content_api_spec.rb +1 -0
  46. data/spec/api/content_openpgp_publickey_api_spec.rb +29 -1
  47. data/spec/api/content_openpgp_publicsubkey_api_spec.rb +2 -1
  48. data/spec/api/content_openpgp_signature_api_spec.rb +2 -1
  49. data/spec/api/content_openpgp_userattribute_api_spec.rb +2 -1
  50. data/spec/api/content_openpgp_userid_api_spec.rb +2 -1
  51. data/spec/api/upstream_pulps_api_spec.rb +1 -1
  52. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  53. data/spec/models/generic_remote_response_policy_enum_spec.rb +30 -0
  54. data/spec/models/multiple_artifact_content_response_spec.rb +6 -0
  55. data/spec/models/open_pgp_public_key_response_spec.rb +6 -0
  56. data/spec/models/open_pgp_public_subkey_response_spec.rb +6 -0
  57. data/spec/models/open_pgp_signature_response_spec.rb +6 -0
  58. data/spec/models/open_pgp_user_attribute_response_spec.rb +6 -0
  59. data/spec/models/open_pgp_user_id_response_spec.rb +6 -0
  60. data/spec/models/patched_upstream_pulp_spec.rb +6 -0
  61. data/spec/models/{policy_enum_spec.rb → policy357_enum_spec.rb} +6 -6
  62. data/spec/models/upstream_pulp_response_spec.rb +6 -0
  63. data/spec/models/upstream_pulp_spec.rb +6 -0
  64. metadata +9 -5
@@ -252,7 +252,7 @@ module PulpcoreClient
252
252
  # @option opts [String] :name__regex Filter results where name matches regex value
253
253
  # @option opts [String] :name__startswith Filter results where name starts with value
254
254
  # @option opts [Integer] :offset The initial index from which to return the results.
255
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;base_url&#x60; - Base url * &#x60;-base_url&#x60; - Base url (descending) * &#x60;api_root&#x60; - Api root * &#x60;-api_root&#x60; - Api root (descending) * &#x60;domain&#x60; - Domain * &#x60;-domain&#x60; - Domain (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;q_select&#x60; - Q select * &#x60;-q_select&#x60; - Q select (descending) * &#x60;last_replication&#x60; - Last replication * &#x60;-last_replication&#x60; - Last replication (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
255
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;base_url&#x60; - Base url * &#x60;-base_url&#x60; - Base url (descending) * &#x60;api_root&#x60; - Api root * &#x60;-api_root&#x60; - Api root (descending) * &#x60;domain&#x60; - Domain * &#x60;-domain&#x60; - Domain (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;q_select&#x60; - Q select * &#x60;-q_select&#x60; - Q select (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;last_replication&#x60; - Last replication * &#x60;-last_replication&#x60; - Last replication (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
256
256
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
257
257
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
258
258
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -295,7 +295,7 @@ module PulpcoreClient
295
295
  # @option opts [String] :name__regex Filter results where name matches regex value
296
296
  # @option opts [String] :name__startswith Filter results where name starts with value
297
297
  # @option opts [Integer] :offset The initial index from which to return the results.
298
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;base_url&#x60; - Base url * &#x60;-base_url&#x60; - Base url (descending) * &#x60;api_root&#x60; - Api root * &#x60;-api_root&#x60; - Api root (descending) * &#x60;domain&#x60; - Domain * &#x60;-domain&#x60; - Domain (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;q_select&#x60; - Q select * &#x60;-q_select&#x60; - Q select (descending) * &#x60;last_replication&#x60; - Last replication * &#x60;-last_replication&#x60; - Last replication (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
298
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;base_url&#x60; - Base url * &#x60;-base_url&#x60; - Base url (descending) * &#x60;api_root&#x60; - Api root * &#x60;-api_root&#x60; - Api root (descending) * &#x60;domain&#x60; - Domain * &#x60;-domain&#x60; - Domain (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;q_select&#x60; - Q select * &#x60;-q_select&#x60; - Q select (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;last_replication&#x60; - Last replication * &#x60;-last_replication&#x60; - Last replication (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
299
299
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
300
300
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
301
301
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -307,7 +307,7 @@ module PulpcoreClient
307
307
  if @api_client.config.debugging
308
308
  @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.list ...'
309
309
  end
310
- allowable_values = ["-api_root", "-base_url", "-ca_cert", "-client_cert", "-client_key", "-domain", "-last_replication", "-name", "-password", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-q_select", "-tls_validation", "-username", "api_root", "base_url", "ca_cert", "client_cert", "client_key", "domain", "last_replication", "name", "password", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "q_select", "tls_validation", "username"]
310
+ allowable_values = ["-api_root", "-base_url", "-ca_cert", "-client_cert", "-client_key", "-domain", "-last_replication", "-name", "-password", "-pk", "-policy", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-q_select", "-tls_validation", "-username", "api_root", "base_url", "ca_cert", "client_cert", "client_key", "domain", "last_replication", "name", "password", "pk", "policy", "pulp_created", "pulp_id", "pulp_last_updated", "q_select", "tls_validation", "username"]
311
311
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
312
312
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
313
313
  end
@@ -16,51 +16,51 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
- # The URL for accessing the publication as defined by this distribution.
23
- attr_accessor :base_url
24
-
25
- # An optional content-guard.
26
- attr_accessor :content_guard
27
-
28
19
  # Whether this distribution should be shown in the content app.
29
20
  attr_accessor :hidden
30
21
 
31
- # The Pulp Resource Name (PRN).
32
- attr_accessor :prn
22
+ # A unique name. Ex, `rawhide` and `stable`.
23
+ attr_accessor :name
33
24
 
34
25
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
35
26
  attr_accessor :no_content_change_since
36
27
 
37
- # A unique name. Ex, `rawhide` and `stable`.
38
- attr_accessor :name
28
+ attr_accessor :pulp_href
29
+
30
+ # The URL for accessing the publication as defined by this distribution.
31
+ attr_accessor :base_url
32
+
33
+ # The Pulp Resource Name (PRN).
34
+ attr_accessor :prn
35
+
36
+ # An optional content-guard.
37
+ attr_accessor :content_guard
39
38
 
40
39
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
41
40
  attr_accessor :base_path
42
41
 
43
- attr_accessor :pulp_href
42
+ attr_accessor :pulp_labels
43
+
44
+ # Timestamp of creation.
45
+ attr_accessor :pulp_created
44
46
 
45
47
  # 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.
46
48
  attr_accessor :pulp_last_updated
47
49
 
48
- attr_accessor :pulp_labels
49
-
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
53
- :'pulp_created' => :'pulp_created',
54
- :'base_url' => :'base_url',
55
- :'content_guard' => :'content_guard',
56
53
  :'hidden' => :'hidden',
57
- :'prn' => :'prn',
58
- :'no_content_change_since' => :'no_content_change_since',
59
54
  :'name' => :'name',
60
- :'base_path' => :'base_path',
55
+ :'no_content_change_since' => :'no_content_change_since',
61
56
  :'pulp_href' => :'pulp_href',
62
- :'pulp_last_updated' => :'pulp_last_updated',
63
- :'pulp_labels' => :'pulp_labels'
57
+ :'base_url' => :'base_url',
58
+ :'prn' => :'prn',
59
+ :'content_guard' => :'content_guard',
60
+ :'base_path' => :'base_path',
61
+ :'pulp_labels' => :'pulp_labels',
62
+ :'pulp_created' => :'pulp_created',
63
+ :'pulp_last_updated' => :'pulp_last_updated'
64
64
  }
65
65
  end
66
66
 
@@ -72,17 +72,17 @@ module PulpcoreClient
72
72
  # Attribute type mapping.
73
73
  def self.openapi_types
74
74
  {
75
- :'pulp_created' => :'Time',
76
- :'base_url' => :'String',
77
- :'content_guard' => :'String',
78
75
  :'hidden' => :'Boolean',
79
- :'prn' => :'String',
80
- :'no_content_change_since' => :'String',
81
76
  :'name' => :'String',
82
- :'base_path' => :'String',
77
+ :'no_content_change_since' => :'String',
83
78
  :'pulp_href' => :'String',
84
- :'pulp_last_updated' => :'Time',
85
- :'pulp_labels' => :'Hash<String, String>'
79
+ :'base_url' => :'String',
80
+ :'prn' => :'String',
81
+ :'content_guard' => :'String',
82
+ :'base_path' => :'String',
83
+ :'pulp_labels' => :'Hash<String, String>',
84
+ :'pulp_created' => :'Time',
85
+ :'pulp_last_updated' => :'Time'
86
86
  }
87
87
  end
88
88
 
@@ -108,50 +108,42 @@ module PulpcoreClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'pulp_created')
112
- self.pulp_created = attributes[:'pulp_created']
113
- end
114
-
115
- if attributes.key?(:'base_url')
116
- self.base_url = attributes[:'base_url']
117
- end
118
-
119
- if attributes.key?(:'content_guard')
120
- self.content_guard = attributes[:'content_guard']
121
- end
122
-
123
111
  if attributes.key?(:'hidden')
124
112
  self.hidden = attributes[:'hidden']
125
113
  else
126
114
  self.hidden = false
127
115
  end
128
116
 
129
- if attributes.key?(:'prn')
130
- self.prn = attributes[:'prn']
131
- end
132
-
133
- if attributes.key?(:'no_content_change_since')
134
- self.no_content_change_since = attributes[:'no_content_change_since']
135
- end
136
-
137
117
  if attributes.key?(:'name')
138
118
  self.name = attributes[:'name']
139
119
  else
140
120
  self.name = nil
141
121
  end
142
122
 
143
- if attributes.key?(:'base_path')
144
- self.base_path = attributes[:'base_path']
145
- else
146
- self.base_path = nil
123
+ if attributes.key?(:'no_content_change_since')
124
+ self.no_content_change_since = attributes[:'no_content_change_since']
147
125
  end
148
126
 
149
127
  if attributes.key?(:'pulp_href')
150
128
  self.pulp_href = attributes[:'pulp_href']
151
129
  end
152
130
 
153
- if attributes.key?(:'pulp_last_updated')
154
- self.pulp_last_updated = attributes[:'pulp_last_updated']
131
+ if attributes.key?(:'base_url')
132
+ self.base_url = attributes[:'base_url']
133
+ end
134
+
135
+ if attributes.key?(:'prn')
136
+ self.prn = attributes[:'prn']
137
+ end
138
+
139
+ if attributes.key?(:'content_guard')
140
+ self.content_guard = attributes[:'content_guard']
141
+ end
142
+
143
+ if attributes.key?(:'base_path')
144
+ self.base_path = attributes[:'base_path']
145
+ else
146
+ self.base_path = nil
155
147
  end
156
148
 
157
149
  if attributes.key?(:'pulp_labels')
@@ -159,6 +151,14 @@ module PulpcoreClient
159
151
  self.pulp_labels = value
160
152
  end
161
153
  end
154
+
155
+ if attributes.key?(:'pulp_created')
156
+ self.pulp_created = attributes[:'pulp_created']
157
+ end
158
+
159
+ if attributes.key?(:'pulp_last_updated')
160
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
161
+ end
162
162
  end
163
163
 
164
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -191,17 +191,17 @@ module PulpcoreClient
191
191
  def ==(o)
192
192
  return true if self.equal?(o)
193
193
  self.class == o.class &&
194
- pulp_created == o.pulp_created &&
195
- base_url == o.base_url &&
196
- content_guard == o.content_guard &&
197
194
  hidden == o.hidden &&
198
- prn == o.prn &&
199
- no_content_change_since == o.no_content_change_since &&
200
195
  name == o.name &&
201
- base_path == o.base_path &&
196
+ no_content_change_since == o.no_content_change_since &&
202
197
  pulp_href == o.pulp_href &&
203
- pulp_last_updated == o.pulp_last_updated &&
204
- pulp_labels == o.pulp_labels
198
+ base_url == o.base_url &&
199
+ prn == o.prn &&
200
+ content_guard == o.content_guard &&
201
+ base_path == o.base_path &&
202
+ pulp_labels == o.pulp_labels &&
203
+ pulp_created == o.pulp_created &&
204
+ pulp_last_updated == o.pulp_last_updated
205
205
  end
206
206
 
207
207
  # @see the `==` method
@@ -213,7 +213,7 @@ module PulpcoreClient
213
213
  # Calculates hash code according to all attributes.
214
214
  # @return [Integer] Hash code
215
215
  def hash
216
- [pulp_created, base_url, content_guard, hidden, prn, no_content_change_since, name, base_path, pulp_href, pulp_last_updated, pulp_labels].hash
216
+ [hidden, name, no_content_change_since, pulp_href, base_url, prn, content_guard, base_path, pulp_labels, pulp_created, pulp_last_updated].hash
217
217
  end
218
218
 
219
219
  # Builds the object from hash
@@ -147,7 +147,7 @@ module PulpcoreClient
147
147
  :'pulp_labels' => :'Hash<String, String>',
148
148
  :'download_concurrency' => :'Integer',
149
149
  :'max_retries' => :'Integer',
150
- :'policy' => :'PolicyEnum',
150
+ :'policy' => :'GenericRemoteResponsePolicyEnum',
151
151
  :'total_timeout' => :'Float',
152
152
  :'connect_timeout' => :'Float',
153
153
  :'sock_connect_timeout' => :'Float',
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpcoreClient
17
- class PolicyEnum
17
+ class GenericRemoteResponsePolicyEnum
18
18
  IMMEDIATE = "immediate".freeze
19
19
  ON_DEMAND = "on_demand".freeze
20
20
  STREAMED = "streamed".freeze
@@ -34,8 +34,8 @@ module PulpcoreClient
34
34
  # @param [String] The enum value in the form of the string
35
35
  # @return [String] The enum value
36
36
  def build_from_hash(value)
37
- return value if PolicyEnum.all_vars.include?(value)
38
- raise "Invalid ENUM value #{value} for class #PolicyEnum"
37
+ return value if GenericRemoteResponsePolicyEnum.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #GenericRemoteResponsePolicyEnum"
39
39
  end
40
40
  end
41
41
  end
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
31
34
  attr_accessor :artifacts
32
35
 
@@ -37,6 +40,7 @@ module PulpcoreClient
37
40
  :'prn' => :'prn',
38
41
  :'pulp_created' => :'pulp_created',
39
42
  :'pulp_last_updated' => :'pulp_last_updated',
43
+ :'pulp_labels' => :'pulp_labels',
40
44
  :'artifacts' => :'artifacts'
41
45
  }
42
46
  end
@@ -53,6 +57,7 @@ module PulpcoreClient
53
57
  :'prn' => :'String',
54
58
  :'pulp_created' => :'Time',
55
59
  :'pulp_last_updated' => :'Time',
60
+ :'pulp_labels' => :'Hash<String, String>',
56
61
  :'artifacts' => :'Object'
57
62
  }
58
63
  end
@@ -94,6 +99,12 @@ module PulpcoreClient
94
99
  self.pulp_last_updated = attributes[:'pulp_last_updated']
95
100
  end
96
101
 
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
106
+ end
107
+
97
108
  if attributes.key?(:'artifacts')
98
109
  self.artifacts = attributes[:'artifacts']
99
110
  else
@@ -130,6 +141,7 @@ module PulpcoreClient
130
141
  prn == o.prn &&
131
142
  pulp_created == o.pulp_created &&
132
143
  pulp_last_updated == o.pulp_last_updated &&
144
+ pulp_labels == o.pulp_labels &&
133
145
  artifacts == o.artifacts
134
146
  end
135
147
 
@@ -142,7 +154,7 @@ module PulpcoreClient
142
154
  # Calculates hash code according to all attributes.
143
155
  # @return [Integer] Hash code
144
156
  def hash
145
- [pulp_href, prn, pulp_created, pulp_last_updated, artifacts].hash
157
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts].hash
146
158
  end
147
159
 
148
160
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  attr_accessor :fingerprint
31
34
 
32
35
  attr_accessor :created
@@ -44,6 +47,7 @@ module PulpcoreClient
44
47
  :'prn' => :'prn',
45
48
  :'pulp_created' => :'pulp_created',
46
49
  :'pulp_last_updated' => :'pulp_last_updated',
50
+ :'pulp_labels' => :'pulp_labels',
47
51
  :'fingerprint' => :'fingerprint',
48
52
  :'created' => :'created',
49
53
  :'user_ids' => :'user_ids',
@@ -64,6 +68,7 @@ module PulpcoreClient
64
68
  :'prn' => :'String',
65
69
  :'pulp_created' => :'Time',
66
70
  :'pulp_last_updated' => :'Time',
71
+ :'pulp_labels' => :'Hash<String, String>',
67
72
  :'fingerprint' => :'String',
68
73
  :'created' => :'Time',
69
74
  :'user_ids' => :'Array<NestedOpenPGPUserIDResponse>',
@@ -109,6 +114,12 @@ module PulpcoreClient
109
114
  self.pulp_last_updated = attributes[:'pulp_last_updated']
110
115
  end
111
116
 
117
+ if attributes.key?(:'pulp_labels')
118
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
119
+ self.pulp_labels = value
120
+ end
121
+ end
122
+
112
123
  if attributes.key?(:'fingerprint')
113
124
  self.fingerprint = attributes[:'fingerprint']
114
125
  end
@@ -179,6 +190,7 @@ module PulpcoreClient
179
190
  prn == o.prn &&
180
191
  pulp_created == o.pulp_created &&
181
192
  pulp_last_updated == o.pulp_last_updated &&
193
+ pulp_labels == o.pulp_labels &&
182
194
  fingerprint == o.fingerprint &&
183
195
  created == o.created &&
184
196
  user_ids == o.user_ids &&
@@ -195,7 +207,7 @@ module PulpcoreClient
195
207
  # Calculates hash code according to all attributes.
196
208
  # @return [Integer] Hash code
197
209
  def hash
198
- [pulp_href, prn, pulp_created, pulp_last_updated, fingerprint, created, user_ids, user_attributes, public_subkeys].hash
210
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, fingerprint, created, user_ids, user_attributes, public_subkeys].hash
199
211
  end
200
212
 
201
213
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  attr_accessor :fingerprint
31
34
 
32
35
  attr_accessor :created
@@ -42,6 +45,7 @@ module PulpcoreClient
42
45
  :'prn' => :'prn',
43
46
  :'pulp_created' => :'pulp_created',
44
47
  :'pulp_last_updated' => :'pulp_last_updated',
48
+ :'pulp_labels' => :'pulp_labels',
45
49
  :'fingerprint' => :'fingerprint',
46
50
  :'created' => :'created',
47
51
  :'signatures' => :'signatures',
@@ -61,6 +65,7 @@ module PulpcoreClient
61
65
  :'prn' => :'String',
62
66
  :'pulp_created' => :'Time',
63
67
  :'pulp_last_updated' => :'Time',
68
+ :'pulp_labels' => :'Hash<String, String>',
64
69
  :'fingerprint' => :'String',
65
70
  :'created' => :'Time',
66
71
  :'signatures' => :'Array<NestedOpenPGPSignatureResponse>',
@@ -105,6 +110,12 @@ module PulpcoreClient
105
110
  self.pulp_last_updated = attributes[:'pulp_last_updated']
106
111
  end
107
112
 
113
+ if attributes.key?(:'pulp_labels')
114
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
115
+ self.pulp_labels = value
116
+ end
117
+ end
118
+
108
119
  if attributes.key?(:'fingerprint')
109
120
  self.fingerprint = attributes[:'fingerprint']
110
121
  else
@@ -181,6 +192,7 @@ module PulpcoreClient
181
192
  prn == o.prn &&
182
193
  pulp_created == o.pulp_created &&
183
194
  pulp_last_updated == o.pulp_last_updated &&
195
+ pulp_labels == o.pulp_labels &&
184
196
  fingerprint == o.fingerprint &&
185
197
  created == o.created &&
186
198
  signatures == o.signatures &&
@@ -196,7 +208,7 @@ module PulpcoreClient
196
208
  # Calculates hash code according to all attributes.
197
209
  # @return [Integer] Hash code
198
210
  def hash
199
- [pulp_href, prn, pulp_created, pulp_last_updated, fingerprint, created, signatures, public_key].hash
211
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, fingerprint, created, signatures, public_key].hash
200
212
  end
201
213
 
202
214
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  attr_accessor :issuer
31
34
 
32
35
  attr_accessor :created
@@ -50,6 +53,7 @@ module PulpcoreClient
50
53
  :'prn' => :'prn',
51
54
  :'pulp_created' => :'pulp_created',
52
55
  :'pulp_last_updated' => :'pulp_last_updated',
56
+ :'pulp_labels' => :'pulp_labels',
53
57
  :'issuer' => :'issuer',
54
58
  :'created' => :'created',
55
59
  :'expiration_time' => :'expiration_time',
@@ -73,6 +77,7 @@ module PulpcoreClient
73
77
  :'prn' => :'String',
74
78
  :'pulp_created' => :'Time',
75
79
  :'pulp_last_updated' => :'Time',
80
+ :'pulp_labels' => :'Hash<String, String>',
76
81
  :'issuer' => :'String',
77
82
  :'created' => :'Time',
78
83
  :'expiration_time' => :'String',
@@ -125,6 +130,12 @@ module PulpcoreClient
125
130
  self.pulp_last_updated = attributes[:'pulp_last_updated']
126
131
  end
127
132
 
133
+ if attributes.key?(:'pulp_labels')
134
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
135
+ self.pulp_labels = value
136
+ end
137
+ end
138
+
128
139
  if attributes.key?(:'issuer')
129
140
  self.issuer = attributes[:'issuer']
130
141
  end
@@ -211,6 +222,7 @@ module PulpcoreClient
211
222
  prn == o.prn &&
212
223
  pulp_created == o.pulp_created &&
213
224
  pulp_last_updated == o.pulp_last_updated &&
225
+ pulp_labels == o.pulp_labels &&
214
226
  issuer == o.issuer &&
215
227
  created == o.created &&
216
228
  expiration_time == o.expiration_time &&
@@ -230,7 +242,7 @@ module PulpcoreClient
230
242
  # Calculates hash code according to all attributes.
231
243
  # @return [Integer] Hash code
232
244
  def hash
233
- [pulp_href, prn, pulp_created, pulp_last_updated, issuer, created, expiration_time, signers_user_id, key_expiration_time, expired, key_expired, signed_content].hash
245
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, issuer, created, expiration_time, signers_user_id, key_expiration_time, expired, key_expired, signed_content].hash
234
246
  end
235
247
 
236
248
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  attr_accessor :sha256
31
34
 
32
35
  attr_accessor :signatures
@@ -40,6 +43,7 @@ module PulpcoreClient
40
43
  :'prn' => :'prn',
41
44
  :'pulp_created' => :'pulp_created',
42
45
  :'pulp_last_updated' => :'pulp_last_updated',
46
+ :'pulp_labels' => :'pulp_labels',
43
47
  :'sha256' => :'sha256',
44
48
  :'signatures' => :'signatures',
45
49
  :'public_key' => :'public_key'
@@ -58,6 +62,7 @@ module PulpcoreClient
58
62
  :'prn' => :'String',
59
63
  :'pulp_created' => :'Time',
60
64
  :'pulp_last_updated' => :'Time',
65
+ :'pulp_labels' => :'Hash<String, String>',
61
66
  :'sha256' => :'String',
62
67
  :'signatures' => :'Array<NestedOpenPGPSignatureResponse>',
63
68
  :'public_key' => :'String'
@@ -101,6 +106,12 @@ module PulpcoreClient
101
106
  self.pulp_last_updated = attributes[:'pulp_last_updated']
102
107
  end
103
108
 
109
+ if attributes.key?(:'pulp_labels')
110
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
111
+ self.pulp_labels = value
112
+ end
113
+ end
114
+
104
115
  if attributes.key?(:'sha256')
105
116
  self.sha256 = attributes[:'sha256']
106
117
  else
@@ -166,6 +177,7 @@ module PulpcoreClient
166
177
  prn == o.prn &&
167
178
  pulp_created == o.pulp_created &&
168
179
  pulp_last_updated == o.pulp_last_updated &&
180
+ pulp_labels == o.pulp_labels &&
169
181
  sha256 == o.sha256 &&
170
182
  signatures == o.signatures &&
171
183
  public_key == o.public_key
@@ -180,7 +192,7 @@ module PulpcoreClient
180
192
  # Calculates hash code according to all attributes.
181
193
  # @return [Integer] Hash code
182
194
  def hash
183
- [pulp_href, prn, pulp_created, pulp_last_updated, sha256, signatures, public_key].hash
195
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, sha256, signatures, public_key].hash
184
196
  end
185
197
 
186
198
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpcoreClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  attr_accessor :user_id
31
34
 
32
35
  attr_accessor :signatures
@@ -40,6 +43,7 @@ module PulpcoreClient
40
43
  :'prn' => :'prn',
41
44
  :'pulp_created' => :'pulp_created',
42
45
  :'pulp_last_updated' => :'pulp_last_updated',
46
+ :'pulp_labels' => :'pulp_labels',
43
47
  :'user_id' => :'user_id',
44
48
  :'signatures' => :'signatures',
45
49
  :'public_key' => :'public_key'
@@ -58,6 +62,7 @@ module PulpcoreClient
58
62
  :'prn' => :'String',
59
63
  :'pulp_created' => :'Time',
60
64
  :'pulp_last_updated' => :'Time',
65
+ :'pulp_labels' => :'Hash<String, String>',
61
66
  :'user_id' => :'String',
62
67
  :'signatures' => :'Array<NestedOpenPGPSignatureResponse>',
63
68
  :'public_key' => :'String'
@@ -101,6 +106,12 @@ module PulpcoreClient
101
106
  self.pulp_last_updated = attributes[:'pulp_last_updated']
102
107
  end
103
108
 
109
+ if attributes.key?(:'pulp_labels')
110
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
111
+ self.pulp_labels = value
112
+ end
113
+ end
114
+
104
115
  if attributes.key?(:'user_id')
105
116
  self.user_id = attributes[:'user_id']
106
117
  else
@@ -147,6 +158,7 @@ module PulpcoreClient
147
158
  prn == o.prn &&
148
159
  pulp_created == o.pulp_created &&
149
160
  pulp_last_updated == o.pulp_last_updated &&
161
+ pulp_labels == o.pulp_labels &&
150
162
  user_id == o.user_id &&
151
163
  signatures == o.signatures &&
152
164
  public_key == o.public_key
@@ -161,7 +173,7 @@ module PulpcoreClient
161
173
  # Calculates hash code according to all attributes.
162
174
  # @return [Integer] Hash code
163
175
  def hash
164
- [pulp_href, prn, pulp_created, pulp_last_updated, user_id, signatures, public_key].hash
176
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, user_id, signatures, public_key].hash
165
177
  end
166
178
 
167
179
  # Builds the object from hash