pulp_ansible_client 0.29.7 → 0.29.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
  4. data/docs/AnsibleAnsibleDistribution.md +5 -3
  5. data/docs/AnsibleAnsibleDistributionResponse.md +13 -3
  6. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  7. data/docs/AnsibleGitRemote.md +28 -28
  8. data/docs/AnsibleGitRemoteResponse.md +26 -26
  9. data/docs/AnsibleRole.md +6 -4
  10. data/docs/AnsibleRoleResponse.md +8 -8
  11. data/docs/ContentCollectionSignaturesApi.md +2 -0
  12. data/docs/ContentCollectionVersionsApi.md +10 -8
  13. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  14. data/docs/PatchedansibleGitRemote.md +28 -28
  15. data/docs/RepositoryAddRemoveContent.md +3 -1
  16. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  17. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +15 -12
  18. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  19. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  20. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +11 -1
  21. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  22. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +67 -15
  23. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  24. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  25. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +36 -36
  26. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +244 -244
  27. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  28. data/lib/pulp_ansible_client/models/ansible_role.rb +29 -19
  29. data/lib/pulp_ansible_client/models/ansible_role_response.rb +38 -38
  30. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  31. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
  32. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +16 -4
  33. data/lib/pulp_ansible_client/version.rb +1 -1
  34. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  35. data/spec/api/content_collection_versions_api_spec.rb +5 -4
  36. data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
  37. data/spec/models/ansible_ansible_distribution_response_spec.rb +35 -5
  38. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  39. data/spec/models/ansible_collection_version_response_spec.rb +7 -7
  40. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  41. data/spec/models/ansible_git_remote_spec.rb +20 -20
  42. data/spec/models/ansible_role_response_spec.rb +7 -7
  43. data/spec/models/ansible_role_spec.rb +8 -2
  44. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  45. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  46. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  47. metadata +121 -121
@@ -23,13 +23,14 @@ module PulpAnsibleClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
+ # @option opts [String] :artifact Artifact file representing the physical content
26
27
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
27
- # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
28
- # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
- # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
30
28
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
31
- # @option opts [String] :artifact Artifact file representing the physical content
29
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
30
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
31
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
32
32
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
33
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
33
34
  # @option opts [String] :expected_name The name of the collection.
34
35
  # @option opts [String] :expected_namespace The namespace of the collection.
35
36
  # @option opts [String] :expected_version The version of the collection.
@@ -43,13 +44,14 @@ module PulpAnsibleClient
43
44
  # Trigger an asynchronous task to create content,optionally create new repository version.
44
45
  # @param [Hash] opts the optional parameters
45
46
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
47
+ # @option opts [String] :artifact Artifact file representing the physical content
46
48
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
47
- # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
48
- # @option opts [File] :file An uploaded file that may be turned into the content unit.
49
- # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
50
49
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
51
- # @option opts [String] :artifact Artifact file representing the physical content
50
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
51
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
52
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
52
53
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
54
+ # @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a &#39;file_url.
53
55
  # @option opts [String] :expected_name The name of the collection.
54
56
  # @option opts [String] :expected_namespace The namespace of the collection.
55
57
  # @option opts [String] :expected_version The version of the collection.
@@ -105,13 +107,14 @@ module PulpAnsibleClient
105
107
 
106
108
  # form parameters
107
109
  form_params = opts[:form_params] || {}
110
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
108
111
  form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
109
- form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
110
- form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
111
- form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
112
112
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
113
- form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
113
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
114
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
115
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
114
116
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
117
+ form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
115
118
  form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
116
119
  form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
117
120
  form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
@@ -74,7 +74,7 @@ module PulpAnsibleClient
74
74
  fail ArgumentError, 'invalid value for "name" when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.create, the character length must be great than or equal to 3.'
75
75
  end
76
76
 
77
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
77
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
78
78
  if @api_client.config.client_side_validation && name !~ pattern
79
79
  fail ArgumentError, "invalid value for 'name' when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.create, must conform to the pattern #{pattern}."
80
80
  end
@@ -438,7 +438,7 @@ module PulpAnsibleClient
438
438
  fail ArgumentError, 'invalid value for "opts[:"name2"]" when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.partial_update, the character length must be great than or equal to 3.'
439
439
  end
440
440
 
441
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
441
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
442
442
  if @api_client.config.client_side_validation && !opts[:'name2'].nil? && opts[:'name2'] !~ pattern
443
443
  fail ArgumentError, "invalid value for 'opts[:\"name2\"]' when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.partial_update, must conform to the pattern #{pattern}."
444
444
  end
@@ -68,7 +68,7 @@ module PulpAnsibleClient
68
68
  fail ArgumentError, 'invalid value for "name" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, the character length must be great than or equal to 3.'
69
69
  end
70
70
 
71
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
71
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
72
72
  if @api_client.config.client_side_validation && name !~ pattern
73
73
  fail ArgumentError, "invalid value for 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, must conform to the pattern #{pattern}."
74
74
  end
@@ -414,7 +414,7 @@ module PulpAnsibleClient
414
414
  fail ArgumentError, 'invalid value for "opts[:"name2"]" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, the character length must be great than or equal to 3.'
415
415
  end
416
416
 
417
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
417
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
418
418
  if @api_client.config.client_side_validation && !opts[:'name2'].nil? && opts[:'name2'] !~ pattern
419
419
  fail ArgumentError, "invalid value for 'opts[:\"name2\"]' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, must conform to the pattern #{pattern}."
420
420
  end
@@ -19,6 +19,9 @@ module PulpAnsibleClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
23
+ attr_accessor :overwrite
24
+
22
25
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
26
  attr_accessor :pulp_labels
24
27
 
@@ -32,6 +35,7 @@ module PulpAnsibleClient
32
35
  def self.attribute_map
33
36
  {
34
37
  :'repository' => :'repository',
38
+ :'overwrite' => :'overwrite',
35
39
  :'pulp_labels' => :'pulp_labels',
36
40
  :'name' => :'name',
37
41
  :'namespace' => :'namespace'
@@ -47,6 +51,7 @@ module PulpAnsibleClient
47
51
  def self.openapi_types
48
52
  {
49
53
  :'repository' => :'String',
54
+ :'overwrite' => :'Boolean',
50
55
  :'pulp_labels' => :'Hash<String, String>',
51
56
  :'name' => :'String',
52
57
  :'namespace' => :'String'
@@ -78,6 +83,10 @@ module PulpAnsibleClient
78
83
  self.repository = attributes[:'repository']
79
84
  end
80
85
 
86
+ if attributes.key?(:'overwrite')
87
+ self.overwrite = attributes[:'overwrite']
88
+ end
89
+
81
90
  if attributes.key?(:'pulp_labels')
82
91
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
83
92
  self.pulp_labels = value
@@ -166,6 +175,7 @@ module PulpAnsibleClient
166
175
  return true if self.equal?(o)
167
176
  self.class == o.class &&
168
177
  repository == o.repository &&
178
+ overwrite == o.overwrite &&
169
179
  pulp_labels == o.pulp_labels &&
170
180
  name == o.name &&
171
181
  namespace == o.namespace
@@ -180,7 +190,7 @@ module PulpAnsibleClient
180
190
  # Calculates hash code according to all attributes.
181
191
  # @return [Integer] Hash code
182
192
  def hash
183
- [repository, pulp_labels, name, namespace].hash
193
+ [repository, overwrite, pulp_labels, name, namespace].hash
184
194
  end
185
195
 
186
196
  # 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
 
@@ -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
@@ -139,7 +139,7 @@ module PulpAnsibleClient
139
139
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
140
140
  end
141
141
 
142
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
142
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
143
143
  if @name !~ pattern
144
144
  invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
145
145
  end
@@ -166,7 +166,7 @@ module PulpAnsibleClient
166
166
  return false if @name.nil?
167
167
  return false if @name.to_s.length > 64
168
168
  return false if @name.to_s.length < 3
169
- return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
169
+ return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
170
170
  return false if !@company.nil? && @company.to_s.length > 64
171
171
  return false if !@email.nil? && @email.to_s.length > 256
172
172
  return false if !@description.nil? && @description.to_s.length > 256
@@ -188,7 +188,7 @@ module PulpAnsibleClient
188
188
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
189
189
  end
190
190
 
191
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
191
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
192
192
  if name !~ pattern
193
193
  fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
194
194
  end
@@ -164,7 +164,7 @@ module PulpAnsibleClient
164
164
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
165
165
  end
166
166
 
167
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
167
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
168
168
  if @name !~ pattern
169
169
  invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
170
170
  end
@@ -195,7 +195,7 @@ module PulpAnsibleClient
195
195
  return false if @name.nil?
196
196
  return false if @name.to_s.length > 64
197
197
  return false if @name.to_s.length < 3
198
- return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
198
+ return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
199
199
  return false if !@company.nil? && @company.to_s.length > 64
200
200
  return false if !@email.nil? && @email.to_s.length > 256
201
201
  return false if !@description.nil? && @description.to_s.length > 256
@@ -218,7 +218,7 @@ module PulpAnsibleClient
218
218
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
219
219
  end
220
220
 
221
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
221
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
222
222
  if name !~ pattern
223
223
  fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
224
224
  end
@@ -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
+
22
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
+ attr_accessor :pulp_labels
21
24
 
22
25
  # Timestamp of creation.
23
26
  attr_accessor :pulp_created
24
27
 
28
+ attr_accessor :vuln_report
29
+
25
30
  # 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
31
  attr_accessor :pulp_last_updated
27
32
 
28
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
29
- attr_accessor :pulp_labels
30
-
31
- attr_accessor :vuln_report
33
+ # The Pulp Resource Name (PRN).
34
+ attr_accessor :prn
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',
101
- :'pulp_created' => :'pulp_created',
102
- :'pulp_last_updated' => :'pulp_last_updated',
100
+ :'artifact' => :'artifact',
103
101
  :'pulp_labels' => :'pulp_labels',
102
+ :'pulp_created' => :'pulp_created',
104
103
  :'vuln_report' => :'vuln_report',
104
+ :'pulp_last_updated' => :'pulp_last_updated',
105
+ :'prn' => :'prn',
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',
139
- :'pulp_created' => :'Time',
140
- :'pulp_last_updated' => :'Time',
138
+ :'artifact' => :'String',
141
139
  :'pulp_labels' => :'Hash<String, String>',
140
+ :'pulp_created' => :'Time',
142
141
  :'vuln_report' => :'String',
142
+ :'pulp_last_updated' => :'Time',
143
+ :'prn' => :'String',
143
144
  :'pulp_href' => :'String',
144
- :'artifact' => :'String',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -187,16 +187,8 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
- if attributes.key?(:'prn')
191
- self.prn = attributes[:'prn']
192
- end
193
-
194
- if attributes.key?(:'pulp_created')
195
- self.pulp_created = attributes[:'pulp_created']
196
- end
197
-
198
- if attributes.key?(:'pulp_last_updated')
199
- self.pulp_last_updated = attributes[:'pulp_last_updated']
190
+ if attributes.key?(:'artifact')
191
+ self.artifact = attributes[:'artifact']
200
192
  end
201
193
 
202
194
  if attributes.key?(:'pulp_labels')
@@ -205,16 +197,24 @@ module PulpAnsibleClient
205
197
  end
206
198
  end
207
199
 
200
+ if attributes.key?(:'pulp_created')
201
+ self.pulp_created = attributes[:'pulp_created']
202
+ end
203
+
208
204
  if attributes.key?(:'vuln_report')
209
205
  self.vuln_report = attributes[:'vuln_report']
210
206
  end
211
207
 
212
- if attributes.key?(:'pulp_href')
213
- self.pulp_href = attributes[:'pulp_href']
208
+ if attributes.key?(:'pulp_last_updated')
209
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
214
210
  end
215
211
 
216
- if attributes.key?(:'artifact')
217
- self.artifact = attributes[:'artifact']
212
+ if attributes.key?(:'prn')
213
+ self.prn = attributes[:'prn']
214
+ end
215
+
216
+ if attributes.key?(:'pulp_href')
217
+ self.pulp_href = attributes[:'pulp_href']
218
218
  end
219
219
 
220
220
  if attributes.key?(:'sha256')
@@ -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 &&
476
- pulp_created == o.pulp_created &&
477
- pulp_last_updated == o.pulp_last_updated &&
475
+ artifact == o.artifact &&
478
476
  pulp_labels == o.pulp_labels &&
477
+ pulp_created == o.pulp_created &&
479
478
  vuln_report == o.vuln_report &&
479
+ pulp_last_updated == o.pulp_last_updated &&
480
+ prn == o.prn &&
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
+ [artifact, pulp_labels, pulp_created, vuln_report, pulp_last_updated, prn, 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