pulp_ansible_client 0.28.5 → 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 (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 +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/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 +36 -36
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +235 -235
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +160 -160
  19. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
  20. data/lib/pulp_ansible_client/models/ansible_role_response.rb +38 -38
  21. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  22. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +223 -223
  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 +6 -6
  28. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  29. data/spec/models/ansible_git_remote_spec.rb +19 -19
  30. data/spec/models/ansible_role_response_spec.rb +6 -6
  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
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRoleResponse
19
- attr_accessor :vuln_report
20
-
21
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
22
- attr_accessor :pulp_labels
23
-
24
19
  # Artifact file representing the physical content
25
20
  attr_accessor :artifact
26
21
 
22
+ # Timestamp of creation.
23
+ attr_accessor :pulp_created
24
+
25
+ attr_accessor :pulp_href
26
+
27
27
  # The Pulp Resource Name (PRN).
28
28
  attr_accessor :prn
29
29
 
30
- # Timestamp of creation.
31
- attr_accessor :pulp_created
30
+ attr_accessor :vuln_report
31
+
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
  attr_accessor :version
39
39
 
40
40
  attr_accessor :name
@@ -44,13 +44,13 @@ module PulpAnsibleClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'vuln_report' => :'vuln_report',
48
- :'pulp_labels' => :'pulp_labels',
49
47
  :'artifact' => :'artifact',
50
- :'prn' => :'prn',
51
48
  :'pulp_created' => :'pulp_created',
52
- :'pulp_last_updated' => :'pulp_last_updated',
53
49
  :'pulp_href' => :'pulp_href',
50
+ :'prn' => :'prn',
51
+ :'vuln_report' => :'vuln_report',
52
+ :'pulp_labels' => :'pulp_labels',
53
+ :'pulp_last_updated' => :'pulp_last_updated',
54
54
  :'version' => :'version',
55
55
  :'name' => :'name',
56
56
  :'namespace' => :'namespace'
@@ -65,13 +65,13 @@ module PulpAnsibleClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
- :'vuln_report' => :'String',
69
- :'pulp_labels' => :'Hash<String, String>',
70
68
  :'artifact' => :'String',
71
- :'prn' => :'String',
72
69
  :'pulp_created' => :'Time',
73
- :'pulp_last_updated' => :'Time',
74
70
  :'pulp_href' => :'String',
71
+ :'prn' => :'String',
72
+ :'vuln_report' => :'String',
73
+ :'pulp_labels' => :'Hash<String, String>',
74
+ :'pulp_last_updated' => :'Time',
75
75
  :'version' => :'String',
76
76
  :'name' => :'String',
77
77
  :'namespace' => :'String'
@@ -99,36 +99,36 @@ module PulpAnsibleClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'vuln_report')
103
- self.vuln_report = attributes[:'vuln_report']
104
- end
105
-
106
- if attributes.key?(:'pulp_labels')
107
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
108
- self.pulp_labels = value
109
- end
110
- end
111
-
112
102
  if attributes.key?(:'artifact')
113
103
  self.artifact = attributes[:'artifact']
114
104
  else
115
105
  self.artifact = nil
116
106
  end
117
107
 
108
+ if attributes.key?(:'pulp_created')
109
+ self.pulp_created = attributes[:'pulp_created']
110
+ end
111
+
112
+ if attributes.key?(:'pulp_href')
113
+ self.pulp_href = attributes[:'pulp_href']
114
+ end
115
+
118
116
  if attributes.key?(:'prn')
119
117
  self.prn = attributes[:'prn']
120
118
  end
121
119
 
122
- if attributes.key?(:'pulp_created')
123
- self.pulp_created = attributes[:'pulp_created']
120
+ if attributes.key?(:'vuln_report')
121
+ self.vuln_report = attributes[:'vuln_report']
124
122
  end
125
123
 
126
- if attributes.key?(:'pulp_last_updated')
127
- self.pulp_last_updated = attributes[:'pulp_last_updated']
124
+ if attributes.key?(:'pulp_labels')
125
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
+ self.pulp_labels = value
127
+ end
128
128
  end
129
129
 
130
- if attributes.key?(:'pulp_href')
131
- self.pulp_href = attributes[:'pulp_href']
130
+ if attributes.key?(:'pulp_last_updated')
131
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
132
132
  end
133
133
 
134
134
  if attributes.key?(:'version')
@@ -190,13 +190,13 @@ module PulpAnsibleClient
190
190
  def ==(o)
191
191
  return true if self.equal?(o)
192
192
  self.class == o.class &&
193
- vuln_report == o.vuln_report &&
194
- pulp_labels == o.pulp_labels &&
195
193
  artifact == o.artifact &&
196
- prn == o.prn &&
197
194
  pulp_created == o.pulp_created &&
198
- pulp_last_updated == o.pulp_last_updated &&
199
195
  pulp_href == o.pulp_href &&
196
+ prn == o.prn &&
197
+ vuln_report == o.vuln_report &&
198
+ pulp_labels == o.pulp_labels &&
199
+ pulp_last_updated == o.pulp_last_updated &&
200
200
  version == o.version &&
201
201
  name == o.name &&
202
202
  namespace == o.namespace
@@ -211,7 +211,7 @@ module PulpAnsibleClient
211
211
  # Calculates hash code according to all attributes.
212
212
  # @return [Integer] Hash code
213
213
  def hash
214
- [vuln_report, pulp_labels, artifact, prn, pulp_created, pulp_last_updated, pulp_href, version, name, namespace].hash
214
+ [artifact, pulp_created, pulp_href, prn, vuln_report, pulp_labels, pulp_last_updated, version, name, namespace].hash
215
215
  end
216
216
 
217
217
  # Builds the object from hash
@@ -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
 
@@ -94,6 +99,18 @@ module PulpAnsibleClient
94
99
  self.content_guard = attributes[:'content_guard']
95
100
  end
96
101
 
102
+ if attributes.key?(:'hidden')
103
+ self.hidden = attributes[:'hidden']
104
+ else
105
+ self.hidden = false
106
+ end
107
+
108
+ if attributes.key?(:'pulp_labels')
109
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
+ self.pulp_labels = value
111
+ end
112
+ end
113
+
97
114
  if attributes.key?(:'name')
98
115
  self.name = attributes[:'name']
99
116
  end
@@ -105,12 +122,6 @@ module PulpAnsibleClient
105
122
  if attributes.key?(:'repository_version')
106
123
  self.repository_version = attributes[:'repository_version']
107
124
  end
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
125
  end
115
126
 
116
127
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -173,10 +184,11 @@ module PulpAnsibleClient
173
184
  self.class == o.class &&
174
185
  base_path == o.base_path &&
175
186
  content_guard == o.content_guard &&
187
+ hidden == o.hidden &&
188
+ pulp_labels == o.pulp_labels &&
176
189
  name == o.name &&
177
190
  repository == o.repository &&
178
- repository_version == o.repository_version &&
179
- pulp_labels == o.pulp_labels
191
+ repository_version == o.repository_version
180
192
  end
181
193
 
182
194
  # @see the `==` method
@@ -188,7 +200,7 @@ module PulpAnsibleClient
188
200
  # Calculates hash code according to all attributes.
189
201
  # @return [Integer] Hash code
190
202
  def hash
191
- [base_path, content_guard, name, repository, repository_version, pulp_labels].hash
203
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
192
204
  end
193
205
 
194
206
  # Builds the object from hash