pulp_ansible_client 0.28.6 → 0.28.7

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 +12 -4
  5. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +28 -28
  8. data/docs/AnsibleRole.md +2 -2
  9. data/docs/AnsibleRoleResponse.md +8 -8
  10. data/docs/ContentCollectionVersionsApi.md +6 -6
  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 +9 -9
  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 +62 -20
  17. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -33
  18. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +222 -222
  19. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
  20. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
  21. data/lib/pulp_ansible_client/models/ansible_role_response.rb +35 -35
  22. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  23. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +217 -217
  24. data/lib/pulp_ansible_client/version.rb +1 -1
  25. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  26. data/spec/models/ansible_ansible_distribution_response_spec.rb +28 -4
  27. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  28. data/spec/models/ansible_collection_version_response_spec.rb +6 -6
  29. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  30. data/spec/models/ansible_git_remote_spec.rb +20 -20
  31. data/spec/models/ansible_role_response_spec.rb +6 -6
  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 +20 -20
  35. metadata +124 -124
@@ -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,41 +18,57 @@ 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
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
37
+ attr_accessor :no_content_change_since
38
+
39
+ # Whether this distribution should be shown in the content app.
40
+ attr_accessor :hidden
41
+
42
+ attr_accessor :pulp_labels
43
+
30
44
  # A unique name. Ex, `rawhide` and `stable`.
31
45
  attr_accessor :name
32
46
 
33
47
  # The latest RepositoryVersion for this Repository will be served.
34
48
  attr_accessor :repository
35
49
 
36
- # RepositoryVersion to be served
37
- attr_accessor :repository_version
38
-
39
50
  # The URL of a Collection content source.
40
51
  attr_accessor :client_url
41
52
 
42
- attr_accessor :pulp_labels
53
+ # RepositoryVersion to be served
54
+ attr_accessor :repository_version
43
55
 
44
56
  # Attribute mapping from ruby-style variable name to JSON key.
45
57
  def self.attribute_map
46
58
  {
47
59
  :'pulp_href' => :'pulp_href',
60
+ :'prn' => :'prn',
48
61
  :'pulp_created' => :'pulp_created',
62
+ :'pulp_last_updated' => :'pulp_last_updated',
49
63
  :'base_path' => :'base_path',
50
64
  :'content_guard' => :'content_guard',
65
+ :'no_content_change_since' => :'no_content_change_since',
66
+ :'hidden' => :'hidden',
67
+ :'pulp_labels' => :'pulp_labels',
51
68
  :'name' => :'name',
52
69
  :'repository' => :'repository',
53
- :'repository_version' => :'repository_version',
54
70
  :'client_url' => :'client_url',
55
- :'pulp_labels' => :'pulp_labels'
71
+ :'repository_version' => :'repository_version'
56
72
  }
57
73
  end
58
74
 
@@ -65,14 +81,18 @@ module PulpAnsibleClient
65
81
  def self.openapi_types
66
82
  {
67
83
  :'pulp_href' => :'String',
84
+ :'prn' => :'String',
68
85
  :'pulp_created' => :'Time',
86
+ :'pulp_last_updated' => :'Time',
69
87
  :'base_path' => :'String',
70
88
  :'content_guard' => :'String',
89
+ :'no_content_change_since' => :'String',
90
+ :'hidden' => :'Boolean',
91
+ :'pulp_labels' => :'Hash<String, String>',
71
92
  :'name' => :'String',
72
93
  :'repository' => :'String',
73
- :'repository_version' => :'String',
74
94
  :'client_url' => :'String',
75
- :'pulp_labels' => :'Hash<String, String>'
95
+ :'repository_version' => :'String'
76
96
  }
77
97
  end
78
98
 
@@ -81,7 +101,7 @@ module PulpAnsibleClient
81
101
  Set.new([
82
102
  :'content_guard',
83
103
  :'repository',
84
- :'repository_version',
104
+ :'repository_version'
85
105
  ])
86
106
  end
87
107
 
@@ -104,10 +124,18 @@ module PulpAnsibleClient
104
124
  self.pulp_href = attributes[:'pulp_href']
105
125
  end
106
126
 
127
+ if attributes.key?(:'prn')
128
+ self.prn = attributes[:'prn']
129
+ end
130
+
107
131
  if attributes.key?(:'pulp_created')
108
132
  self.pulp_created = attributes[:'pulp_created']
109
133
  end
110
134
 
135
+ if attributes.key?(:'pulp_last_updated')
136
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
137
+ end
138
+
111
139
  if attributes.key?(:'base_path')
112
140
  self.base_path = attributes[:'base_path']
113
141
  else
@@ -118,6 +146,22 @@ module PulpAnsibleClient
118
146
  self.content_guard = attributes[:'content_guard']
119
147
  end
120
148
 
149
+ if attributes.key?(:'no_content_change_since')
150
+ self.no_content_change_since = attributes[:'no_content_change_since']
151
+ end
152
+
153
+ if attributes.key?(:'hidden')
154
+ self.hidden = attributes[:'hidden']
155
+ else
156
+ self.hidden = false
157
+ end
158
+
159
+ if attributes.key?(:'pulp_labels')
160
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
161
+ self.pulp_labels = value
162
+ end
163
+ end
164
+
121
165
  if attributes.key?(:'name')
122
166
  self.name = attributes[:'name']
123
167
  else
@@ -128,18 +172,12 @@ module PulpAnsibleClient
128
172
  self.repository = attributes[:'repository']
129
173
  end
130
174
 
131
- if attributes.key?(:'repository_version')
132
- self.repository_version = attributes[:'repository_version']
133
- end
134
-
135
175
  if attributes.key?(:'client_url')
136
176
  self.client_url = attributes[:'client_url']
137
177
  end
138
178
 
139
- if attributes.key?(:'pulp_labels')
140
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
141
- self.pulp_labels = value
142
- end
179
+ if attributes.key?(:'repository_version')
180
+ self.repository_version = attributes[:'repository_version']
143
181
  end
144
182
  end
145
183
 
@@ -174,14 +212,18 @@ module PulpAnsibleClient
174
212
  return true if self.equal?(o)
175
213
  self.class == o.class &&
176
214
  pulp_href == o.pulp_href &&
215
+ prn == o.prn &&
177
216
  pulp_created == o.pulp_created &&
217
+ pulp_last_updated == o.pulp_last_updated &&
178
218
  base_path == o.base_path &&
179
219
  content_guard == o.content_guard &&
220
+ no_content_change_since == o.no_content_change_since &&
221
+ hidden == o.hidden &&
222
+ pulp_labels == o.pulp_labels &&
180
223
  name == o.name &&
181
224
  repository == o.repository &&
182
- repository_version == o.repository_version &&
183
225
  client_url == o.client_url &&
184
- pulp_labels == o.pulp_labels
226
+ repository_version == o.repository_version
185
227
  end
186
228
 
187
229
  # @see the `==` method
@@ -193,7 +235,7 @@ module PulpAnsibleClient
193
235
  # Calculates hash code according to all attributes.
194
236
  # @return [Integer] Hash code
195
237
  def hash
196
- [pulp_href, pulp_created, base_path, content_guard, name, repository, repository_version, client_url, pulp_labels].hash
238
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, client_url, repository_version].hash
197
239
  end
198
240
 
199
241
  # 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
+ # Artifact file representing the physical content
20
+ attr_accessor :artifact
21
21
 
22
22
  # Timestamp of creation.
23
23
  attr_accessor :pulp_created
24
24
 
25
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
- attr_accessor :pulp_labels
25
+ attr_accessor :pulp_href
26
+
27
+ # The Pulp Resource Name (PRN).
28
+ attr_accessor :prn
27
29
 
28
30
  attr_accessor :vuln_report
29
31
 
30
- # Artifact file representing the physical content
31
- attr_accessor :artifact
32
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
33
+ attr_accessor :pulp_labels
32
34
 
33
35
  # 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
36
  attr_accessor :pulp_last_updated
35
37
 
36
- attr_accessor :pulp_href
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
+ :'artifact' => :'artifact',
101
101
  :'pulp_created' => :'pulp_created',
102
- :'pulp_labels' => :'pulp_labels',
102
+ :'pulp_href' => :'pulp_href',
103
+ :'prn' => :'prn',
103
104
  :'vuln_report' => :'vuln_report',
104
- :'artifact' => :'artifact',
105
+ :'pulp_labels' => :'pulp_labels',
105
106
  :'pulp_last_updated' => :'pulp_last_updated',
106
- :'pulp_href' => :'pulp_href',
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
+ :'artifact' => :'String',
139
139
  :'pulp_created' => :'Time',
140
- :'pulp_labels' => :'Hash<String, String>',
140
+ :'pulp_href' => :'String',
141
+ :'prn' => :'String',
141
142
  :'vuln_report' => :'String',
142
- :'artifact' => :'String',
143
+ :'pulp_labels' => :'Hash<String, String>',
143
144
  :'pulp_last_updated' => :'Time',
144
- :'pulp_href' => :'String',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -187,36 +187,36 @@ 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?(:'artifact')
191
+ self.artifact = attributes[:'artifact']
192
192
  end
193
193
 
194
194
  if attributes.key?(:'pulp_created')
195
195
  self.pulp_created = attributes[:'pulp_created']
196
196
  end
197
197
 
198
- if attributes.key?(:'pulp_labels')
199
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
200
- self.pulp_labels = value
201
- end
198
+ if attributes.key?(:'pulp_href')
199
+ self.pulp_href = attributes[:'pulp_href']
200
+ end
201
+
202
+ if attributes.key?(:'prn')
203
+ self.prn = attributes[:'prn']
202
204
  end
203
205
 
204
206
  if attributes.key?(:'vuln_report')
205
207
  self.vuln_report = attributes[:'vuln_report']
206
208
  end
207
209
 
208
- if attributes.key?(:'artifact')
209
- self.artifact = attributes[:'artifact']
210
+ if attributes.key?(:'pulp_labels')
211
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
+ self.pulp_labels = value
213
+ end
210
214
  end
211
215
 
212
216
  if attributes.key?(:'pulp_last_updated')
213
217
  self.pulp_last_updated = attributes[:'pulp_last_updated']
214
218
  end
215
219
 
216
- if attributes.key?(:'pulp_href')
217
- self.pulp_href = attributes[:'pulp_href']
218
- end
219
-
220
220
  if attributes.key?(:'sha256')
221
221
  self.sha256 = attributes[:'sha256']
222
222
  end
@@ -457,13 +457,13 @@ module PulpAnsibleClient
457
457
  def ==(o)
458
458
  return true if self.equal?(o)
459
459
  self.class == o.class &&
460
- prn == o.prn &&
460
+ artifact == o.artifact &&
461
461
  pulp_created == o.pulp_created &&
462
- pulp_labels == o.pulp_labels &&
462
+ pulp_href == o.pulp_href &&
463
+ prn == o.prn &&
463
464
  vuln_report == o.vuln_report &&
464
- artifact == o.artifact &&
465
+ pulp_labels == o.pulp_labels &&
465
466
  pulp_last_updated == o.pulp_last_updated &&
466
- pulp_href == o.pulp_href &&
467
467
  sha256 == o.sha256 &&
468
468
  md5 == o.md5 &&
469
469
  sha1 == o.sha1 &&
@@ -495,7 +495,7 @@ module PulpAnsibleClient
495
495
  # Calculates hash code according to all attributes.
496
496
  # @return [Integer] Hash code
497
497
  def hash
498
- [prn, pulp_created, pulp_labels, vuln_report, artifact, 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
498
+ [artifact, pulp_created, pulp_href, prn, vuln_report, pulp_labels, pulp_last_updated, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
499
499
  end
500
500
 
501
501
  # Builds the object from hash