pulp_ansible_client 0.25.4 → 0.25.6

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 (34) 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 +6 -6
  6. data/docs/AnsibleGitRemote.md +24 -24
  7. data/docs/AnsibleGitRemoteResponse.md +26 -26
  8. data/docs/AnsibleRole.md +2 -2
  9. data/docs/AnsibleRoleResponse.md +6 -6
  10. data/docs/ContentCollectionVersionsApi.md +6 -6
  11. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  12. data/docs/PatchedansibleGitRemote.md +24 -24
  13. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  14. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  15. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +62 -20
  16. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +21 -21
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +217 -217
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  19. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
  20. data/lib/pulp_ansible_client/models/ansible_role_response.rb +23 -23
  21. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  22. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +215 -215
  23. data/lib/pulp_ansible_client/version.rb +1 -1
  24. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  25. data/spec/models/ansible_ansible_distribution_response_spec.rb +28 -4
  26. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  27. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  28. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  29. data/spec/models/ansible_git_remote_spec.rb +19 -19
  30. data/spec/models/ansible_role_response_spec.rb +3 -3
  31. data/spec/models/ansible_role_spec.rb +3 -3
  32. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  33. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  34. 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,8 +16,7 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for CollectionVersion Content.
18
18
  class AnsibleCollectionVersionResponse
19
- # Artifact file representing the physical content
20
- attr_accessor :artifact
19
+ attr_accessor :pulp_href
21
20
 
22
21
  # The Pulp Resource Name (PRN).
23
22
  attr_accessor :prn
@@ -25,13 +24,14 @@ module PulpAnsibleClient
25
24
  # Timestamp of creation.
26
25
  attr_accessor :pulp_created
27
26
 
28
- attr_accessor :pulp_href
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
29
 
30
30
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
31
  attr_accessor :pulp_labels
32
32
 
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
33
+ # Artifact file representing the physical content
34
+ attr_accessor :artifact
35
35
 
36
36
  # The SHA-256 checksum if available.
37
37
  attr_accessor :sha256
@@ -95,12 +95,12 @@ module PulpAnsibleClient
95
95
  # Attribute mapping from ruby-style variable name to JSON key.
96
96
  def self.attribute_map
97
97
  {
98
- :'artifact' => :'artifact',
98
+ :'pulp_href' => :'pulp_href',
99
99
  :'prn' => :'prn',
100
100
  :'pulp_created' => :'pulp_created',
101
- :'pulp_href' => :'pulp_href',
102
- :'pulp_labels' => :'pulp_labels',
103
101
  :'pulp_last_updated' => :'pulp_last_updated',
102
+ :'pulp_labels' => :'pulp_labels',
103
+ :'artifact' => :'artifact',
104
104
  :'sha256' => :'sha256',
105
105
  :'md5' => :'md5',
106
106
  :'sha1' => :'sha1',
@@ -132,12 +132,12 @@ module PulpAnsibleClient
132
132
  # Attribute type mapping.
133
133
  def self.openapi_types
134
134
  {
135
- :'artifact' => :'String',
135
+ :'pulp_href' => :'String',
136
136
  :'prn' => :'String',
137
137
  :'pulp_created' => :'Time',
138
- :'pulp_href' => :'String',
139
- :'pulp_labels' => :'Hash<String, String>',
140
138
  :'pulp_last_updated' => :'Time',
139
+ :'pulp_labels' => :'Hash<String, String>',
140
+ :'artifact' => :'String',
141
141
  :'sha256' => :'String',
142
142
  :'md5' => :'String',
143
143
  :'sha1' => :'String',
@@ -183,8 +183,8 @@ module PulpAnsibleClient
183
183
  h[k.to_sym] = v
184
184
  }
185
185
 
186
- if attributes.key?(:'artifact')
187
- self.artifact = attributes[:'artifact']
186
+ if attributes.key?(:'pulp_href')
187
+ self.pulp_href = attributes[:'pulp_href']
188
188
  end
189
189
 
190
190
  if attributes.key?(:'prn')
@@ -195,8 +195,8 @@ module PulpAnsibleClient
195
195
  self.pulp_created = attributes[:'pulp_created']
196
196
  end
197
197
 
198
- if attributes.key?(:'pulp_href')
199
- self.pulp_href = attributes[:'pulp_href']
198
+ if attributes.key?(:'pulp_last_updated')
199
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
200
200
  end
201
201
 
202
202
  if attributes.key?(:'pulp_labels')
@@ -205,8 +205,8 @@ module PulpAnsibleClient
205
205
  end
206
206
  end
207
207
 
208
- if attributes.key?(:'pulp_last_updated')
209
- self.pulp_last_updated = attributes[:'pulp_last_updated']
208
+ if attributes.key?(:'artifact')
209
+ self.artifact = attributes[:'artifact']
210
210
  end
211
211
 
212
212
  if attributes.key?(:'sha256')
@@ -464,12 +464,12 @@ module PulpAnsibleClient
464
464
  def ==(o)
465
465
  return true if self.equal?(o)
466
466
  self.class == o.class &&
467
- artifact == o.artifact &&
467
+ pulp_href == o.pulp_href &&
468
468
  prn == o.prn &&
469
469
  pulp_created == o.pulp_created &&
470
- pulp_href == o.pulp_href &&
471
- pulp_labels == o.pulp_labels &&
472
470
  pulp_last_updated == o.pulp_last_updated &&
471
+ pulp_labels == o.pulp_labels &&
472
+ artifact == o.artifact &&
473
473
  sha256 == o.sha256 &&
474
474
  md5 == o.md5 &&
475
475
  sha1 == o.sha1 &&
@@ -501,7 +501,7 @@ module PulpAnsibleClient
501
501
  # Calculates hash code according to all attributes.
502
502
  # @return [Integer] Hash code
503
503
  def hash
504
- [artifact, prn, pulp_created, pulp_href, 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
504
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
505
505
  end
506
506
 
507
507
  # Builds the object from hash