pulp_ansible_client 0.22.7 → 0.22.9

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 (42) 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/AnsibleCollectionVersion.md +6 -6
  6. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  7. data/docs/AnsibleGitRemote.md +30 -30
  8. data/docs/AnsibleGitRemoteResponse.md +30 -30
  9. data/docs/AnsibleRole.md +3 -3
  10. data/docs/AnsibleRoleResponse.md +8 -8
  11. data/docs/ContentCollectionVersionsApi.md +6 -6
  12. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  13. data/docs/PatchedansibleGitRemote.md +30 -30
  14. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  15. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  16. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  17. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  18. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +62 -20
  19. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  20. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  21. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +25 -25
  22. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +24 -24
  23. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +259 -259
  24. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +165 -165
  25. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  26. data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -28
  27. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  28. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +3 -3
  29. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +250 -250
  30. data/lib/pulp_ansible_client/version.rb +1 -1
  31. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  32. data/spec/models/ansible_ansible_distribution_response_spec.rb +28 -4
  33. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  34. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  35. data/spec/models/ansible_collection_version_spec.rb +4 -4
  36. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  37. data/spec/models/ansible_git_remote_spec.rb +20 -20
  38. data/spec/models/ansible_role_response_spec.rb +4 -4
  39. data/spec/models/ansible_role_spec.rb +2 -2
  40. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  41. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  42. metadata +128 -128
@@ -15,19 +15,19 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- attr_accessor :pulp_href
18
+ # The Pulp Resource Name (PRN).
19
+ attr_accessor :prn
19
20
 
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
21
+ # 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.
22
+ attr_accessor :pulp_last_updated
22
23
 
23
24
  # Artifact file representing the physical content
24
25
  attr_accessor :artifact
25
26
 
26
- # 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.
27
- attr_accessor :pulp_last_updated
27
+ # Timestamp of creation.
28
+ attr_accessor :pulp_created
28
29
 
29
- # The Pulp Resource Name (PRN).
30
- attr_accessor :prn
30
+ attr_accessor :pulp_href
31
31
 
32
32
  attr_accessor :version
33
33
 
@@ -38,11 +38,11 @@ module PulpAnsibleClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'pulp_href' => :'pulp_href',
42
- :'pulp_created' => :'pulp_created',
43
- :'artifact' => :'artifact',
44
- :'pulp_last_updated' => :'pulp_last_updated',
45
41
  :'prn' => :'prn',
42
+ :'pulp_last_updated' => :'pulp_last_updated',
43
+ :'artifact' => :'artifact',
44
+ :'pulp_created' => :'pulp_created',
45
+ :'pulp_href' => :'pulp_href',
46
46
  :'version' => :'version',
47
47
  :'name' => :'name',
48
48
  :'namespace' => :'namespace'
@@ -52,11 +52,11 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'pulp_href' => :'String',
56
- :'pulp_created' => :'DateTime',
57
- :'artifact' => :'String',
58
- :'pulp_last_updated' => :'DateTime',
59
55
  :'prn' => :'String',
56
+ :'pulp_last_updated' => :'DateTime',
57
+ :'artifact' => :'String',
58
+ :'pulp_created' => :'DateTime',
59
+ :'pulp_href' => :'String',
60
60
  :'version' => :'String',
61
61
  :'name' => :'String',
62
62
  :'namespace' => :'String'
@@ -84,24 +84,24 @@ module PulpAnsibleClient
84
84
  h[k.to_sym] = v
85
85
  }
86
86
 
87
- if attributes.key?(:'pulp_href')
88
- self.pulp_href = attributes[:'pulp_href']
87
+ if attributes.key?(:'prn')
88
+ self.prn = attributes[:'prn']
89
89
  end
90
90
 
91
- if attributes.key?(:'pulp_created')
92
- self.pulp_created = attributes[:'pulp_created']
91
+ if attributes.key?(:'pulp_last_updated')
92
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
93
93
  end
94
94
 
95
95
  if attributes.key?(:'artifact')
96
96
  self.artifact = attributes[:'artifact']
97
97
  end
98
98
 
99
- if attributes.key?(:'pulp_last_updated')
100
- self.pulp_last_updated = attributes[:'pulp_last_updated']
99
+ if attributes.key?(:'pulp_created')
100
+ self.pulp_created = attributes[:'pulp_created']
101
101
  end
102
102
 
103
- if attributes.key?(:'prn')
104
- self.prn = attributes[:'prn']
103
+ if attributes.key?(:'pulp_href')
104
+ self.pulp_href = attributes[:'pulp_href']
105
105
  end
106
106
 
107
107
  if attributes.key?(:'version')
@@ -155,11 +155,11 @@ module PulpAnsibleClient
155
155
  def ==(o)
156
156
  return true if self.equal?(o)
157
157
  self.class == o.class &&
158
- pulp_href == o.pulp_href &&
159
- pulp_created == o.pulp_created &&
160
- artifact == o.artifact &&
161
- pulp_last_updated == o.pulp_last_updated &&
162
158
  prn == o.prn &&
159
+ pulp_last_updated == o.pulp_last_updated &&
160
+ artifact == o.artifact &&
161
+ pulp_created == o.pulp_created &&
162
+ pulp_href == o.pulp_href &&
163
163
  version == o.version &&
164
164
  name == o.name &&
165
165
  namespace == o.namespace
@@ -174,7 +174,7 @@ module PulpAnsibleClient
174
174
  # Calculates hash code according to all attributes.
175
175
  # @return [Integer] Hash code
176
176
  def hash
177
- [pulp_href, pulp_created, artifact, pulp_last_updated, prn, version, name, namespace].hash
177
+ [prn, pulp_last_updated, artifact, pulp_created, pulp_href, version, name, namespace].hash
178
178
  end
179
179
 
180
180
  # Builds the object from hash
@@ -21,6 +21,11 @@ module PulpAnsibleClient
21
21
  # An optional content-guard.
22
22
  attr_accessor :content_guard
23
23
 
24
+ # Whether this distribution should be shown in the content app.
25
+ attr_accessor :hidden
26
+
27
+ attr_accessor :pulp_labels
28
+
24
29
  # A unique name. Ex, `rawhide` and `stable`.
25
30
  attr_accessor :name
26
31
 
@@ -30,17 +35,16 @@ module PulpAnsibleClient
30
35
  # RepositoryVersion to be served
31
36
  attr_accessor :repository_version
32
37
 
33
- attr_accessor :pulp_labels
34
-
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
38
41
  :'base_path' => :'base_path',
39
42
  :'content_guard' => :'content_guard',
43
+ :'hidden' => :'hidden',
44
+ :'pulp_labels' => :'pulp_labels',
40
45
  :'name' => :'name',
41
46
  :'repository' => :'repository',
42
- :'repository_version' => :'repository_version',
43
- :'pulp_labels' => :'pulp_labels'
47
+ :'repository_version' => :'repository_version'
44
48
  }
45
49
  end
46
50
 
@@ -49,10 +53,11 @@ module PulpAnsibleClient
49
53
  {
50
54
  :'base_path' => :'String',
51
55
  :'content_guard' => :'String',
56
+ :'hidden' => :'Boolean',
57
+ :'pulp_labels' => :'Hash<String, String>',
52
58
  :'name' => :'String',
53
59
  :'repository' => :'String',
54
- :'repository_version' => :'String',
55
- :'pulp_labels' => :'Hash<String, String>'
60
+ :'repository_version' => :'String'
56
61
  }
57
62
  end
58
63
 
@@ -61,7 +66,7 @@ module PulpAnsibleClient
61
66
  Set.new([
62
67
  :'content_guard',
63
68
  :'repository',
64
- :'repository_version',
69
+ :'repository_version'
65
70
  ])
66
71
  end
67
72
 
@@ -88,6 +93,18 @@ module PulpAnsibleClient
88
93
  self.content_guard = attributes[:'content_guard']
89
94
  end
90
95
 
96
+ if attributes.key?(:'hidden')
97
+ self.hidden = attributes[:'hidden']
98
+ else
99
+ self.hidden = false
100
+ end
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
+
91
108
  if attributes.key?(:'name')
92
109
  self.name = attributes[:'name']
93
110
  end
@@ -99,12 +116,6 @@ module PulpAnsibleClient
99
116
  if attributes.key?(:'repository_version')
100
117
  self.repository_version = attributes[:'repository_version']
101
118
  end
102
-
103
- if attributes.key?(:'pulp_labels')
104
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
105
- self.pulp_labels = value
106
- end
107
- end
108
119
  end
109
120
 
110
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -157,10 +168,11 @@ module PulpAnsibleClient
157
168
  self.class == o.class &&
158
169
  base_path == o.base_path &&
159
170
  content_guard == o.content_guard &&
171
+ hidden == o.hidden &&
172
+ pulp_labels == o.pulp_labels &&
160
173
  name == o.name &&
161
174
  repository == o.repository &&
162
- repository_version == o.repository_version &&
163
- pulp_labels == o.pulp_labels
175
+ repository_version == o.repository_version
164
176
  end
165
177
 
166
178
  # @see the `==` method
@@ -172,7 +184,7 @@ module PulpAnsibleClient
172
184
  # Calculates hash code according to all attributes.
173
185
  # @return [Integer] Hash code
174
186
  def hash
175
- [base_path, content_guard, name, repository, repository_version, pulp_labels].hash
187
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
176
188
  end
177
189
 
178
190
  # Builds the object from hash
@@ -126,7 +126,7 @@ module PulpAnsibleClient
126
126
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
127
127
  end
128
128
 
129
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
129
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
130
130
  if !@name.nil? && @name !~ pattern
131
131
  invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
132
132
  end
@@ -151,7 +151,7 @@ module PulpAnsibleClient
151
151
  def valid?
152
152
  return false if !@name.nil? && @name.to_s.length > 64
153
153
  return false if !@name.nil? && @name.to_s.length < 3
154
- return false if !@name.nil? && @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
154
+ return false if !@name.nil? && @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
155
155
  return false if !@company.nil? && @company.to_s.length > 64
156
156
  return false if !@email.nil? && @email.to_s.length > 256
157
157
  return false if !@description.nil? && @description.to_s.length > 256
@@ -169,7 +169,7 @@ module PulpAnsibleClient
169
169
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
170
170
  end
171
171
 
172
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
172
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
173
173
  if !name.nil? && name !~ pattern
174
174
  fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
175
175
  end