pulp_ansible_client 0.29.7 → 0.29.8

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleDistribution.md +5 -3
  4. data/docs/AnsibleAnsibleDistributionResponse.md +13 -3
  5. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +30 -30
  8. data/docs/AnsibleRole.md +2 -2
  9. data/docs/AnsibleRoleResponse.md +8 -8
  10. data/docs/ContentCollectionVersionsApi.md +8 -8
  11. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  12. data/docs/PatchedansibleGitRemote.md +26 -26
  13. data/docs/RemotesGitApi.md +2 -2
  14. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
  15. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  16. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +67 -15
  17. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +31 -31
  18. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -218
  19. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  20. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
  21. data/lib/pulp_ansible_client/models/ansible_role_response.rb +33 -33
  22. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  23. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +210 -210
  24. data/lib/pulp_ansible_client/version.rb +1 -1
  25. data/spec/api/content_collection_versions_api_spec.rb +4 -4
  26. data/spec/models/ansible_ansible_distribution_response_spec.rb +35 -5
  27. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  28. data/spec/models/ansible_collection_version_response_spec.rb +7 -7
  29. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  30. data/spec/models/ansible_git_remote_spec.rb +19 -19
  31. data/spec/models/ansible_role_response_spec.rb +7 -7
  32. data/spec/models/ansible_role_spec.rb +3 -3
  33. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  34. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  35. metadata +2 -2
@@ -22,6 +22,11 @@ module PulpAnsibleClient
22
22
  # An optional content-guard.
23
23
  attr_accessor :content_guard
24
24
 
25
+ # Whether this distribution should be shown in the content app.
26
+ attr_accessor :hidden
27
+
28
+ attr_accessor :pulp_labels
29
+
25
30
  # A unique name. Ex, `rawhide` and `stable`.
26
31
  attr_accessor :name
27
32
 
@@ -31,17 +36,16 @@ module PulpAnsibleClient
31
36
  # RepositoryVersion to be served
32
37
  attr_accessor :repository_version
33
38
 
34
- attr_accessor :pulp_labels
35
-
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
39
42
  :'base_path' => :'base_path',
40
43
  :'content_guard' => :'content_guard',
44
+ :'hidden' => :'hidden',
45
+ :'pulp_labels' => :'pulp_labels',
41
46
  :'name' => :'name',
42
47
  :'repository' => :'repository',
43
- :'repository_version' => :'repository_version',
44
- :'pulp_labels' => :'pulp_labels'
48
+ :'repository_version' => :'repository_version'
45
49
  }
46
50
  end
47
51
 
@@ -55,10 +59,11 @@ module PulpAnsibleClient
55
59
  {
56
60
  :'base_path' => :'String',
57
61
  :'content_guard' => :'String',
62
+ :'hidden' => :'Boolean',
63
+ :'pulp_labels' => :'Hash<String, String>',
58
64
  :'name' => :'String',
59
65
  :'repository' => :'String',
60
- :'repository_version' => :'String',
61
- :'pulp_labels' => :'Hash<String, String>'
66
+ :'repository_version' => :'String'
62
67
  }
63
68
  end
64
69
 
@@ -67,7 +72,7 @@ module PulpAnsibleClient
67
72
  Set.new([
68
73
  :'content_guard',
69
74
  :'repository',
70
- :'repository_version',
75
+ :'repository_version'
71
76
  ])
72
77
  end
73
78
 
@@ -96,6 +101,18 @@ module PulpAnsibleClient
96
101
  self.content_guard = attributes[:'content_guard']
97
102
  end
98
103
 
104
+ if attributes.key?(:'hidden')
105
+ self.hidden = attributes[:'hidden']
106
+ else
107
+ self.hidden = false
108
+ end
109
+
110
+ if attributes.key?(:'pulp_labels')
111
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
112
+ self.pulp_labels = value
113
+ end
114
+ end
115
+
99
116
  if attributes.key?(:'name')
100
117
  self.name = attributes[:'name']
101
118
  else
@@ -109,12 +126,6 @@ module PulpAnsibleClient
109
126
  if attributes.key?(:'repository_version')
110
127
  self.repository_version = attributes[:'repository_version']
111
128
  end
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
129
  end
119
130
 
120
131
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -187,10 +198,11 @@ module PulpAnsibleClient
187
198
  self.class == o.class &&
188
199
  base_path == o.base_path &&
189
200
  content_guard == o.content_guard &&
201
+ hidden == o.hidden &&
202
+ pulp_labels == o.pulp_labels &&
190
203
  name == o.name &&
191
204
  repository == o.repository &&
192
- repository_version == o.repository_version &&
193
- pulp_labels == o.pulp_labels
205
+ repository_version == o.repository_version
194
206
  end
195
207
 
196
208
  # @see the `==` method
@@ -202,7 +214,7 @@ module PulpAnsibleClient
202
214
  # Calculates hash code according to all attributes.
203
215
  # @return [Integer] Hash code
204
216
  def hash
205
- [base_path, content_guard, name, repository, repository_version, pulp_labels].hash
217
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
206
218
  end
207
219
 
208
220
  # Builds the object from hash
@@ -18,15 +18,32 @@ module PulpAnsibleClient
18
18
  class AnsibleAnsibleDistributionResponse
19
19
  attr_accessor :pulp_href
20
20
 
21
+ # The Pulp Resource Name (PRN).
22
+ attr_accessor :prn
23
+
21
24
  # Timestamp of creation.
22
25
  attr_accessor :pulp_created
23
26
 
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
+ attr_accessor :pulp_last_updated
29
+
24
30
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
31
  attr_accessor :base_path
26
32
 
27
33
  # An optional content-guard.
28
34
  attr_accessor :content_guard
29
35
 
36
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
37
+ attr_accessor :content_guard_prn
38
+
39
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
40
+ attr_accessor :no_content_change_since
41
+
42
+ # Whether this distribution should be shown in the content app.
43
+ attr_accessor :hidden
44
+
45
+ attr_accessor :pulp_labels
46
+
30
47
  # A unique name. Ex, `rawhide` and `stable`.
31
48
  attr_accessor :name
32
49
 
@@ -39,20 +56,23 @@ module PulpAnsibleClient
39
56
  # The URL of a Collection content source.
40
57
  attr_accessor :client_url
41
58
 
42
- attr_accessor :pulp_labels
43
-
44
59
  # Attribute mapping from ruby-style variable name to JSON key.
45
60
  def self.attribute_map
46
61
  {
47
62
  :'pulp_href' => :'pulp_href',
63
+ :'prn' => :'prn',
48
64
  :'pulp_created' => :'pulp_created',
65
+ :'pulp_last_updated' => :'pulp_last_updated',
49
66
  :'base_path' => :'base_path',
50
67
  :'content_guard' => :'content_guard',
68
+ :'content_guard_prn' => :'content_guard_prn',
69
+ :'no_content_change_since' => :'no_content_change_since',
70
+ :'hidden' => :'hidden',
71
+ :'pulp_labels' => :'pulp_labels',
51
72
  :'name' => :'name',
52
73
  :'repository' => :'repository',
53
74
  :'repository_version' => :'repository_version',
54
- :'client_url' => :'client_url',
55
- :'pulp_labels' => :'pulp_labels'
75
+ :'client_url' => :'client_url'
56
76
  }
57
77
  end
58
78
 
@@ -65,14 +85,19 @@ module PulpAnsibleClient
65
85
  def self.openapi_types
66
86
  {
67
87
  :'pulp_href' => :'String',
88
+ :'prn' => :'String',
68
89
  :'pulp_created' => :'Time',
90
+ :'pulp_last_updated' => :'Time',
69
91
  :'base_path' => :'String',
70
92
  :'content_guard' => :'String',
93
+ :'content_guard_prn' => :'String',
94
+ :'no_content_change_since' => :'String',
95
+ :'hidden' => :'Boolean',
96
+ :'pulp_labels' => :'Hash<String, String>',
71
97
  :'name' => :'String',
72
98
  :'repository' => :'String',
73
99
  :'repository_version' => :'String',
74
- :'client_url' => :'String',
75
- :'pulp_labels' => :'Hash<String, String>'
100
+ :'client_url' => :'String'
76
101
  }
77
102
  end
78
103
 
@@ -104,10 +129,18 @@ module PulpAnsibleClient
104
129
  self.pulp_href = attributes[:'pulp_href']
105
130
  end
106
131
 
132
+ if attributes.key?(:'prn')
133
+ self.prn = attributes[:'prn']
134
+ end
135
+
107
136
  if attributes.key?(:'pulp_created')
108
137
  self.pulp_created = attributes[:'pulp_created']
109
138
  end
110
139
 
140
+ if attributes.key?(:'pulp_last_updated')
141
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
142
+ end
143
+
111
144
  if attributes.key?(:'base_path')
112
145
  self.base_path = attributes[:'base_path']
113
146
  else
@@ -118,6 +151,26 @@ module PulpAnsibleClient
118
151
  self.content_guard = attributes[:'content_guard']
119
152
  end
120
153
 
154
+ if attributes.key?(:'content_guard_prn')
155
+ self.content_guard_prn = attributes[:'content_guard_prn']
156
+ end
157
+
158
+ if attributes.key?(:'no_content_change_since')
159
+ self.no_content_change_since = attributes[:'no_content_change_since']
160
+ end
161
+
162
+ if attributes.key?(:'hidden')
163
+ self.hidden = attributes[:'hidden']
164
+ else
165
+ self.hidden = false
166
+ end
167
+
168
+ if attributes.key?(:'pulp_labels')
169
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
170
+ self.pulp_labels = value
171
+ end
172
+ end
173
+
121
174
  if attributes.key?(:'name')
122
175
  self.name = attributes[:'name']
123
176
  else
@@ -135,12 +188,6 @@ module PulpAnsibleClient
135
188
  if attributes.key?(:'client_url')
136
189
  self.client_url = attributes[:'client_url']
137
190
  end
138
-
139
- if attributes.key?(:'pulp_labels')
140
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
141
- self.pulp_labels = value
142
- end
143
- end
144
191
  end
145
192
 
146
193
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -174,14 +221,19 @@ module PulpAnsibleClient
174
221
  return true if self.equal?(o)
175
222
  self.class == o.class &&
176
223
  pulp_href == o.pulp_href &&
224
+ prn == o.prn &&
177
225
  pulp_created == o.pulp_created &&
226
+ pulp_last_updated == o.pulp_last_updated &&
178
227
  base_path == o.base_path &&
179
228
  content_guard == o.content_guard &&
229
+ content_guard_prn == o.content_guard_prn &&
230
+ no_content_change_since == o.no_content_change_since &&
231
+ hidden == o.hidden &&
232
+ pulp_labels == o.pulp_labels &&
180
233
  name == o.name &&
181
234
  repository == o.repository &&
182
235
  repository_version == o.repository_version &&
183
- client_url == o.client_url &&
184
- pulp_labels == o.pulp_labels
236
+ client_url == o.client_url
185
237
  end
186
238
 
187
239
  # @see the `==` method
@@ -193,7 +245,7 @@ module PulpAnsibleClient
193
245
  # Calculates hash code according to all attributes.
194
246
  # @return [Integer] Hash code
195
247
  def hash
196
- [pulp_href, pulp_created, base_path, content_guard, name, repository, repository_version, client_url, pulp_labels].hash
248
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version, client_url].hash
197
249
  end
198
250
 
199
251
  # Builds the object from hash
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for CollectionVersion Content.
18
18
  class AnsibleCollectionVersionResponse
19
- # The Pulp Resource Name (PRN).
20
- attr_accessor :prn
19
+ attr_accessor :vuln_report
20
+
21
+ # Artifact file representing the physical content
22
+ attr_accessor :artifact
21
23
 
22
24
  # Timestamp of creation.
23
25
  attr_accessor :pulp_created
24
26
 
25
- # 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.
26
- attr_accessor :pulp_last_updated
27
+ # The Pulp Resource Name (PRN).
28
+ attr_accessor :prn
27
29
 
28
30
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
29
31
  attr_accessor :pulp_labels
30
32
 
31
- attr_accessor :vuln_report
33
+ # 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.
34
+ attr_accessor :pulp_last_updated
32
35
 
33
36
  attr_accessor :pulp_href
34
37
 
35
- # Artifact file representing the physical content
36
- attr_accessor :artifact
37
-
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
40
40
 
@@ -97,13 +97,13 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
- :'prn' => :'prn',
100
+ :'vuln_report' => :'vuln_report',
101
+ :'artifact' => :'artifact',
101
102
  :'pulp_created' => :'pulp_created',
102
- :'pulp_last_updated' => :'pulp_last_updated',
103
+ :'prn' => :'prn',
103
104
  :'pulp_labels' => :'pulp_labels',
104
- :'vuln_report' => :'vuln_report',
105
+ :'pulp_last_updated' => :'pulp_last_updated',
105
106
  :'pulp_href' => :'pulp_href',
106
- :'artifact' => :'artifact',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -135,13 +135,13 @@ module PulpAnsibleClient
135
135
  # Attribute type mapping.
136
136
  def self.openapi_types
137
137
  {
138
- :'prn' => :'String',
138
+ :'vuln_report' => :'String',
139
+ :'artifact' => :'String',
139
140
  :'pulp_created' => :'Time',
140
- :'pulp_last_updated' => :'Time',
141
+ :'prn' => :'String',
141
142
  :'pulp_labels' => :'Hash<String, String>',
142
- :'vuln_report' => :'String',
143
+ :'pulp_last_updated' => :'Time',
143
144
  :'pulp_href' => :'String',
144
- :'artifact' => :'String',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -187,16 +187,20 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
- if attributes.key?(:'prn')
191
- self.prn = attributes[:'prn']
190
+ if attributes.key?(:'vuln_report')
191
+ self.vuln_report = attributes[:'vuln_report']
192
+ end
193
+
194
+ if attributes.key?(:'artifact')
195
+ self.artifact = attributes[:'artifact']
192
196
  end
193
197
 
194
198
  if attributes.key?(:'pulp_created')
195
199
  self.pulp_created = attributes[:'pulp_created']
196
200
  end
197
201
 
198
- if attributes.key?(:'pulp_last_updated')
199
- self.pulp_last_updated = attributes[:'pulp_last_updated']
202
+ if attributes.key?(:'prn')
203
+ self.prn = attributes[:'prn']
200
204
  end
201
205
 
202
206
  if attributes.key?(:'pulp_labels')
@@ -205,18 +209,14 @@ module PulpAnsibleClient
205
209
  end
206
210
  end
207
211
 
208
- if attributes.key?(:'vuln_report')
209
- self.vuln_report = attributes[:'vuln_report']
212
+ if attributes.key?(:'pulp_last_updated')
213
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
210
214
  end
211
215
 
212
216
  if attributes.key?(:'pulp_href')
213
217
  self.pulp_href = attributes[:'pulp_href']
214
218
  end
215
219
 
216
- if attributes.key?(:'artifact')
217
- self.artifact = attributes[:'artifact']
218
- end
219
-
220
220
  if attributes.key?(:'sha256')
221
221
  self.sha256 = attributes[:'sha256']
222
222
  end
@@ -472,13 +472,13 @@ module PulpAnsibleClient
472
472
  def ==(o)
473
473
  return true if self.equal?(o)
474
474
  self.class == o.class &&
475
- prn == o.prn &&
475
+ vuln_report == o.vuln_report &&
476
+ artifact == o.artifact &&
476
477
  pulp_created == o.pulp_created &&
477
- pulp_last_updated == o.pulp_last_updated &&
478
+ prn == o.prn &&
478
479
  pulp_labels == o.pulp_labels &&
479
- vuln_report == o.vuln_report &&
480
+ pulp_last_updated == o.pulp_last_updated &&
480
481
  pulp_href == o.pulp_href &&
481
- artifact == o.artifact &&
482
482
  sha256 == o.sha256 &&
483
483
  md5 == o.md5 &&
484
484
  sha1 == o.sha1 &&
@@ -510,7 +510,7 @@ module PulpAnsibleClient
510
510
  # Calculates hash code according to all attributes.
511
511
  # @return [Integer] Hash code
512
512
  def hash
513
- [prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, pulp_href, artifact, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
513
+ [vuln_report, artifact, pulp_created, prn, pulp_labels, pulp_last_updated, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
514
514
  end
515
515
 
516
516
  # Builds the object from hash