pulp_ansible_client 0.19.0 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -32
  3. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  5. data/docs/AnsibleCollectionVersion.md +6 -6
  6. data/docs/AnsibleCollectionsApi.md +15 -9
  7. data/docs/AnsibleCopyApi.md +1 -1
  8. data/docs/AnsibleGitRemote.md +24 -24
  9. data/docs/AnsibleGitRemoteResponse.md +22 -22
  10. data/docs/ApiCollectionsApi.md +1 -1
  11. data/docs/ApiRolesApi.md +1 -1
  12. data/docs/CollectionImportApi.md +1 -1
  13. data/docs/CollectionVersionListResponse.md +1 -1
  14. data/docs/CollectionVersionResponse.md +1 -1
  15. data/docs/ContentCollectionDeprecationsApi.md +3 -1
  16. data/docs/ContentCollectionMarksApi.md +4 -2
  17. data/docs/ContentCollectionSignaturesApi.md +5 -3
  18. data/docs/ContentCollectionVersionsApi.md +7 -7
  19. data/docs/ContentNamespacesApi.md +19 -1
  20. data/docs/ContentRolesApi.md +3 -1
  21. data/docs/DistributionsAnsibleApi.md +136 -10
  22. data/docs/GalaxyDetailApi.md +1 -1
  23. data/docs/PatchedansibleGitRemote.md +24 -24
  24. data/docs/PulpAnsibleApiApi.md +1 -1
  25. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  26. data/docs/PulpAnsibleApiV3Api.md +1 -1
  27. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  28. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -1
  30. data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -1
  31. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3NamespacesApi.md +19 -1
  34. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  43. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  44. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  45. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  46. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  47. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -1
  50. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +19 -1
  54. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  56. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  64. data/docs/PulpAnsibleTagsApi.md +1 -1
  65. data/docs/RemotesCollectionApi.md +135 -9
  66. data/docs/RemotesGitApi.md +135 -9
  67. data/docs/RemotesRoleApi.md +135 -9
  68. data/docs/RepositoriesAnsibleApi.md +136 -10
  69. data/docs/RepositoriesAnsibleVersionsApi.md +3 -1
  70. data/docs/SetLabel.md +19 -0
  71. data/docs/SetLabelResponse.md +19 -0
  72. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  73. data/docs/UnsetLabel.md +17 -0
  74. data/docs/UnsetLabelResponse.md +19 -0
  75. data/docs/VersionsApi.md +1 -1
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +11 -0
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +3 -0
  78. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +3 -0
  79. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  80. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  81. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +27 -0
  82. data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -0
  83. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +163 -0
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -0
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +3 -0
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +27 -0
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  90. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +3 -0
  91. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +3 -0
  92. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +27 -0
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  96. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +163 -0
  97. data/lib/pulp_ansible_client/api/remotes_git_api.rb +163 -0
  98. data/lib/pulp_ansible_client/api/remotes_role_api.rb +163 -0
  99. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +163 -0
  100. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -0
  101. data/lib/pulp_ansible_client/configuration.rb +2 -2
  102. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
  103. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
  104. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +25 -25
  105. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +195 -195
  106. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  107. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +24 -0
  108. data/lib/pulp_ansible_client/models/collection_version_response.rb +24 -0
  109. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +186 -186
  110. data/lib/pulp_ansible_client/models/{progress_report_response.rb → set_label.rb} +52 -59
  111. data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
  112. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +24 -0
  113. data/lib/pulp_ansible_client/models/{task.rb → unset_label.rb} +31 -55
  114. data/lib/pulp_ansible_client/models/unset_label_response.rb +242 -0
  115. data/lib/pulp_ansible_client/version.rb +1 -1
  116. data/lib/pulp_ansible_client.rb +4 -3
  117. data/spec/api/ansible_collections_api_spec.rb +5 -0
  118. data/spec/api/content_collection_deprecations_api_spec.rb +1 -0
  119. data/spec/api/content_collection_marks_api_spec.rb +1 -0
  120. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  121. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  122. data/spec/api/content_namespaces_api_spec.rb +9 -0
  123. data/spec/api/content_roles_api_spec.rb +1 -0
  124. data/spec/api/distributions_ansible_api_spec.rb +35 -0
  125. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
  126. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
  127. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +9 -0
  128. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  129. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  130. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  131. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
  132. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
  133. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +9 -0
  134. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  135. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  136. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  137. data/spec/api/remotes_collection_api_spec.rb +35 -0
  138. data/spec/api/remotes_git_api_spec.rb +35 -0
  139. data/spec/api/remotes_role_api_spec.rb +35 -0
  140. data/spec/api/repositories_ansible_api_spec.rb +35 -0
  141. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -0
  142. data/spec/configuration_spec.rb +3 -3
  143. data/spec/models/ansible_collection_version_spec.rb +4 -4
  144. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  145. data/spec/models/ansible_git_remote_spec.rb +18 -18
  146. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  147. data/spec/models/set_label_response_spec.rb +47 -0
  148. data/spec/models/{task_spec.rb → set_label_spec.rb} +8 -8
  149. data/spec/models/unset_label_response_spec.rb +47 -0
  150. data/spec/models/unset_label_spec.rb +41 -0
  151. metadata +147 -143
  152. data/docs/ProgressReportResponse.md +0 -27
  153. data/docs/Task.md +0 -19
  154. data/docs/TaskResponse.md +0 -47
  155. data/lib/pulp_ansible_client/models/task_response.rb +0 -376
  156. data/spec/models/progress_report_response_spec.rb +0 -71
  157. data/spec/models/task_response_spec.rb +0 -131
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Total number of simultaneous connections. If not set then the default value will be used.
19
- attr_accessor :download_concurrency
18
+ # Timestamp of the most recent update of the remote.
19
+ attr_accessor :pulp_last_updated
20
20
 
21
- # A unique name for this remote.
22
- attr_accessor :name
21
+ # A PEM encoded client certificate used for authentication.
22
+ attr_accessor :client_cert
23
23
 
24
24
  # Limits requests per second for each concurrent downloader
25
25
  attr_accessor :rate_limit
@@ -27,27 +27,31 @@ module PulpAnsibleClient
27
27
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
28
  attr_accessor :ca_cert
29
29
 
30
+ attr_accessor :pulp_labels
31
+
30
32
  # The proxy URL. Format: scheme://host:port
31
33
  attr_accessor :proxy_url
32
34
 
33
- attr_accessor :pulp_href
34
-
35
- # Timestamp of the most recent update of the remote.
36
- attr_accessor :pulp_last_updated
37
-
38
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
- attr_accessor :sock_connect_timeout
35
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
36
+ attr_accessor :max_retries
40
37
 
41
38
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
42
39
  attr_accessor :total_timeout
43
40
 
41
+ # Headers for aiohttp.Clientsession
42
+ attr_accessor :headers
43
+
44
+ # Total number of simultaneous connections. If not set then the default value will be used.
45
+ attr_accessor :download_concurrency
46
+
44
47
  # The URL of an external content source.
45
48
  attr_accessor :url
46
49
 
47
- # List of hidden (write only) fields
48
- attr_accessor :hidden_fields
50
+ # A unique name for this remote.
51
+ attr_accessor :name
49
52
 
50
- attr_accessor :pulp_labels
53
+ # If True, TLS peer validation must be performed.
54
+ attr_accessor :tls_validation
51
55
 
52
56
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
57
  attr_accessor :connect_timeout
@@ -55,20 +59,16 @@ module PulpAnsibleClient
55
59
  # Timestamp of creation.
56
60
  attr_accessor :pulp_created
57
61
 
58
- # Headers for aiohttp.Clientsession
59
- attr_accessor :headers
62
+ # List of hidden (write only) fields
63
+ attr_accessor :hidden_fields
64
+
65
+ attr_accessor :pulp_href
60
66
 
61
67
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
68
  attr_accessor :sock_read_timeout
63
69
 
64
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
65
- attr_accessor :max_retries
66
-
67
- # If True, TLS peer validation must be performed.
68
- attr_accessor :tls_validation
69
-
70
- # A PEM encoded client certificate used for authentication.
71
- attr_accessor :client_cert
70
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
71
+ attr_accessor :sock_connect_timeout
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'download_concurrency' => :'download_concurrency',
83
- :'name' => :'name',
82
+ :'pulp_last_updated' => :'pulp_last_updated',
83
+ :'client_cert' => :'client_cert',
84
84
  :'rate_limit' => :'rate_limit',
85
85
  :'ca_cert' => :'ca_cert',
86
+ :'pulp_labels' => :'pulp_labels',
86
87
  :'proxy_url' => :'proxy_url',
87
- :'pulp_href' => :'pulp_href',
88
- :'pulp_last_updated' => :'pulp_last_updated',
89
- :'sock_connect_timeout' => :'sock_connect_timeout',
88
+ :'max_retries' => :'max_retries',
90
89
  :'total_timeout' => :'total_timeout',
90
+ :'headers' => :'headers',
91
+ :'download_concurrency' => :'download_concurrency',
91
92
  :'url' => :'url',
92
- :'hidden_fields' => :'hidden_fields',
93
- :'pulp_labels' => :'pulp_labels',
93
+ :'name' => :'name',
94
+ :'tls_validation' => :'tls_validation',
94
95
  :'connect_timeout' => :'connect_timeout',
95
96
  :'pulp_created' => :'pulp_created',
96
- :'headers' => :'headers',
97
+ :'hidden_fields' => :'hidden_fields',
98
+ :'pulp_href' => :'pulp_href',
97
99
  :'sock_read_timeout' => :'sock_read_timeout',
98
- :'max_retries' => :'max_retries',
99
- :'tls_validation' => :'tls_validation',
100
- :'client_cert' => :'client_cert',
100
+ :'sock_connect_timeout' => :'sock_connect_timeout',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'download_concurrency' => :'Integer',
110
- :'name' => :'String',
109
+ :'pulp_last_updated' => :'DateTime',
110
+ :'client_cert' => :'String',
111
111
  :'rate_limit' => :'Integer',
112
112
  :'ca_cert' => :'String',
113
+ :'pulp_labels' => :'Hash<String, String>',
113
114
  :'proxy_url' => :'String',
114
- :'pulp_href' => :'String',
115
- :'pulp_last_updated' => :'DateTime',
116
- :'sock_connect_timeout' => :'Float',
115
+ :'max_retries' => :'Integer',
117
116
  :'total_timeout' => :'Float',
117
+ :'headers' => :'Array<Object>',
118
+ :'download_concurrency' => :'Integer',
118
119
  :'url' => :'String',
119
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
120
- :'pulp_labels' => :'Hash<String, String>',
120
+ :'name' => :'String',
121
+ :'tls_validation' => :'Boolean',
121
122
  :'connect_timeout' => :'Float',
122
123
  :'pulp_created' => :'DateTime',
123
- :'headers' => :'Array<Object>',
124
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
125
+ :'pulp_href' => :'String',
124
126
  :'sock_read_timeout' => :'Float',
125
- :'max_retries' => :'Integer',
126
- :'tls_validation' => :'Boolean',
127
- :'client_cert' => :'String',
127
+ :'sock_connect_timeout' => :'Float',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'download_concurrency',
136
+ :'client_cert',
137
137
  :'rate_limit',
138
138
  :'ca_cert',
139
139
  :'proxy_url',
140
- :'sock_connect_timeout',
140
+ :'max_retries',
141
141
  :'total_timeout',
142
+ :'download_concurrency',
142
143
  :'connect_timeout',
143
144
  :'sock_read_timeout',
144
- :'max_retries',
145
- :'client_cert',
145
+ :'sock_connect_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,12 +161,12 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'download_concurrency')
165
- self.download_concurrency = attributes[:'download_concurrency']
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
166
166
  end
167
167
 
168
- if attributes.key?(:'name')
169
- self.name = attributes[:'name']
168
+ if attributes.key?(:'client_cert')
169
+ self.client_cert = attributes[:'client_cert']
170
170
  end
171
171
 
172
172
  if attributes.key?(:'rate_limit')
@@ -177,40 +177,44 @@ module PulpAnsibleClient
177
177
  self.ca_cert = attributes[:'ca_cert']
178
178
  end
179
179
 
180
+ if attributes.key?(:'pulp_labels')
181
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
182
+ self.pulp_labels = value
183
+ end
184
+ end
185
+
180
186
  if attributes.key?(:'proxy_url')
181
187
  self.proxy_url = attributes[:'proxy_url']
182
188
  end
183
189
 
184
- if attributes.key?(:'pulp_href')
185
- self.pulp_href = attributes[:'pulp_href']
190
+ if attributes.key?(:'max_retries')
191
+ self.max_retries = attributes[:'max_retries']
186
192
  end
187
193
 
188
- if attributes.key?(:'pulp_last_updated')
189
- self.pulp_last_updated = attributes[:'pulp_last_updated']
194
+ if attributes.key?(:'total_timeout')
195
+ self.total_timeout = attributes[:'total_timeout']
190
196
  end
191
197
 
192
- if attributes.key?(:'sock_connect_timeout')
193
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
198
+ if attributes.key?(:'headers')
199
+ if (value = attributes[:'headers']).is_a?(Array)
200
+ self.headers = value
201
+ end
194
202
  end
195
203
 
196
- if attributes.key?(:'total_timeout')
197
- self.total_timeout = attributes[:'total_timeout']
204
+ if attributes.key?(:'download_concurrency')
205
+ self.download_concurrency = attributes[:'download_concurrency']
198
206
  end
199
207
 
200
208
  if attributes.key?(:'url')
201
209
  self.url = attributes[:'url']
202
210
  end
203
211
 
204
- if attributes.key?(:'hidden_fields')
205
- if (value = attributes[:'hidden_fields']).is_a?(Array)
206
- self.hidden_fields = value
207
- end
212
+ if attributes.key?(:'name')
213
+ self.name = attributes[:'name']
208
214
  end
209
215
 
210
- if attributes.key?(:'pulp_labels')
211
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
- self.pulp_labels = value
213
- end
216
+ if attributes.key?(:'tls_validation')
217
+ self.tls_validation = attributes[:'tls_validation']
214
218
  end
215
219
 
216
220
  if attributes.key?(:'connect_timeout')
@@ -221,26 +225,22 @@ module PulpAnsibleClient
221
225
  self.pulp_created = attributes[:'pulp_created']
222
226
  end
223
227
 
224
- if attributes.key?(:'headers')
225
- if (value = attributes[:'headers']).is_a?(Array)
226
- self.headers = value
228
+ if attributes.key?(:'hidden_fields')
229
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
230
+ self.hidden_fields = value
227
231
  end
228
232
  end
229
233
 
230
- if attributes.key?(:'sock_read_timeout')
231
- self.sock_read_timeout = attributes[:'sock_read_timeout']
232
- end
233
-
234
- if attributes.key?(:'max_retries')
235
- self.max_retries = attributes[:'max_retries']
234
+ if attributes.key?(:'pulp_href')
235
+ self.pulp_href = attributes[:'pulp_href']
236
236
  end
237
237
 
238
- if attributes.key?(:'tls_validation')
239
- self.tls_validation = attributes[:'tls_validation']
238
+ if attributes.key?(:'sock_read_timeout')
239
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
240
240
  end
241
241
 
242
- if attributes.key?(:'client_cert')
243
- self.client_cert = attributes[:'client_cert']
242
+ if attributes.key?(:'sock_connect_timeout')
243
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,26 +256,22 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if !@download_concurrency.nil? && @download_concurrency < 1
260
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
261
- end
262
-
263
- if @name.nil?
264
- invalid_properties.push('invalid value for "name", name cannot be nil.')
265
- end
266
-
267
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
269
- end
270
-
271
259
  if !@total_timeout.nil? && @total_timeout < 0.0
272
260
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
273
261
  end
274
262
 
263
+ if !@download_concurrency.nil? && @download_concurrency < 1
264
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
265
+ end
266
+
275
267
  if @url.nil?
276
268
  invalid_properties.push('invalid value for "url", url cannot be nil.')
277
269
  end
278
270
 
271
+ if @name.nil?
272
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
273
+ end
274
+
279
275
  if !@connect_timeout.nil? && @connect_timeout < 0.0
280
276
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
281
277
  end
@@ -284,42 +280,26 @@ module PulpAnsibleClient
284
280
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
285
281
  end
286
282
 
283
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
284
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
285
+ end
286
+
287
287
  invalid_properties
288
288
  end
289
289
 
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if !@download_concurrency.nil? && @download_concurrency < 1
294
- return false if @name.nil?
295
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
293
  return false if !@total_timeout.nil? && @total_timeout < 0.0
294
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
297
295
  return false if @url.nil?
296
+ return false if @name.nil?
298
297
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
299
298
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
299
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
300
300
  true
301
301
  end
302
302
 
303
- # Custom attribute writer method with validation
304
- # @param [Object] download_concurrency Value to be assigned
305
- def download_concurrency=(download_concurrency)
306
- if !download_concurrency.nil? && download_concurrency < 1
307
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
308
- end
309
-
310
- @download_concurrency = download_concurrency
311
- end
312
-
313
- # Custom attribute writer method with validation
314
- # @param [Object] sock_connect_timeout Value to be assigned
315
- def sock_connect_timeout=(sock_connect_timeout)
316
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
318
- end
319
-
320
- @sock_connect_timeout = sock_connect_timeout
321
- end
322
-
323
303
  # Custom attribute writer method with validation
324
304
  # @param [Object] total_timeout Value to be assigned
325
305
  def total_timeout=(total_timeout)
@@ -330,6 +310,16 @@ module PulpAnsibleClient
330
310
  @total_timeout = total_timeout
331
311
  end
332
312
 
313
+ # Custom attribute writer method with validation
314
+ # @param [Object] download_concurrency Value to be assigned
315
+ def download_concurrency=(download_concurrency)
316
+ if !download_concurrency.nil? && download_concurrency < 1
317
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
318
+ end
319
+
320
+ @download_concurrency = download_concurrency
321
+ end
322
+
333
323
  # Custom attribute writer method with validation
334
324
  # @param [Object] connect_timeout Value to be assigned
335
325
  def connect_timeout=(connect_timeout)
@@ -350,30 +340,40 @@ module PulpAnsibleClient
350
340
  @sock_read_timeout = sock_read_timeout
351
341
  end
352
342
 
343
+ # Custom attribute writer method with validation
344
+ # @param [Object] sock_connect_timeout Value to be assigned
345
+ def sock_connect_timeout=(sock_connect_timeout)
346
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
347
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
348
+ end
349
+
350
+ @sock_connect_timeout = sock_connect_timeout
351
+ end
352
+
353
353
  # Checks equality by comparing each attribute.
354
354
  # @param [Object] Object to be compared
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- download_concurrency == o.download_concurrency &&
359
- name == o.name &&
358
+ pulp_last_updated == o.pulp_last_updated &&
359
+ client_cert == o.client_cert &&
360
360
  rate_limit == o.rate_limit &&
361
361
  ca_cert == o.ca_cert &&
362
+ pulp_labels == o.pulp_labels &&
362
363
  proxy_url == o.proxy_url &&
363
- pulp_href == o.pulp_href &&
364
- pulp_last_updated == o.pulp_last_updated &&
365
- sock_connect_timeout == o.sock_connect_timeout &&
364
+ max_retries == o.max_retries &&
366
365
  total_timeout == o.total_timeout &&
366
+ headers == o.headers &&
367
+ download_concurrency == o.download_concurrency &&
367
368
  url == o.url &&
368
- hidden_fields == o.hidden_fields &&
369
- pulp_labels == o.pulp_labels &&
369
+ name == o.name &&
370
+ tls_validation == o.tls_validation &&
370
371
  connect_timeout == o.connect_timeout &&
371
372
  pulp_created == o.pulp_created &&
372
- headers == o.headers &&
373
+ hidden_fields == o.hidden_fields &&
374
+ pulp_href == o.pulp_href &&
373
375
  sock_read_timeout == o.sock_read_timeout &&
374
- max_retries == o.max_retries &&
375
- tls_validation == o.tls_validation &&
376
- client_cert == o.client_cert &&
376
+ sock_connect_timeout == o.sock_connect_timeout &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [download_concurrency, name, rate_limit, ca_cert, proxy_url, pulp_href, pulp_last_updated, sock_connect_timeout, total_timeout, url, hidden_fields, pulp_labels, connect_timeout, pulp_created, headers, sock_read_timeout, max_retries, tls_validation, client_cert, metadata_only, git_ref].hash
390
+ [pulp_last_updated, client_cert, rate_limit, ca_cert, pulp_labels, proxy_url, max_retries, total_timeout, headers, download_concurrency, url, name, tls_validation, connect_timeout, pulp_created, hidden_fields, pulp_href, sock_read_timeout, sock_connect_timeout, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -106,6 +106,14 @@ module PulpAnsibleClient
106
106
  # @return Array for valid properties with the reasons
107
107
  def list_invalid_properties
108
108
  invalid_properties = Array.new
109
+ if @version.nil?
110
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
111
+ end
112
+
113
+ if @version.to_s.length > 128
114
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
115
+ end
116
+
109
117
  if @created_at.nil?
110
118
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
111
119
  end
@@ -124,12 +132,28 @@ module PulpAnsibleClient
124
132
  # Check to see if the all the properties in the model are valid
125
133
  # @return true if the model is valid
126
134
  def valid?
135
+ return false if @version.nil?
136
+ return false if @version.to_s.length > 128
127
137
  return false if @created_at.nil?
128
138
  return false if @updated_at.nil?
129
139
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
130
140
  true
131
141
  end
132
142
 
143
+ # Custom attribute writer method with validation
144
+ # @param [Object] version Value to be assigned
145
+ def version=(version)
146
+ if version.nil?
147
+ fail ArgumentError, 'version cannot be nil'
148
+ end
149
+
150
+ if version.to_s.length > 128
151
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
152
+ end
153
+
154
+ @version = version
155
+ end
156
+
133
157
  # Custom attribute writer method with validation
134
158
  # @param [Object] requires_ansible Value to be assigned
135
159
  def requires_ansible=(requires_ansible)
@@ -201,6 +201,14 @@ module PulpAnsibleClient
201
201
  # @return Array for valid properties with the reasons
202
202
  def list_invalid_properties
203
203
  invalid_properties = Array.new
204
+ if @version.nil?
205
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
206
+ end
207
+
208
+ if @version.to_s.length > 128
209
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
210
+ end
211
+
204
212
  if @created_at.nil?
205
213
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
206
214
  end
@@ -223,6 +231,8 @@ module PulpAnsibleClient
223
231
  # Check to see if the all the properties in the model are valid
224
232
  # @return true if the model is valid
225
233
  def valid?
234
+ return false if @version.nil?
235
+ return false if @version.to_s.length > 128
226
236
  return false if @created_at.nil?
227
237
  return false if @updated_at.nil?
228
238
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
@@ -230,6 +240,20 @@ module PulpAnsibleClient
230
240
  true
231
241
  end
232
242
 
243
+ # Custom attribute writer method with validation
244
+ # @param [Object] version Value to be assigned
245
+ def version=(version)
246
+ if version.nil?
247
+ fail ArgumentError, 'version cannot be nil'
248
+ end
249
+
250
+ if version.to_s.length > 128
251
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
252
+ end
253
+
254
+ @version = version
255
+ end
256
+
233
257
  # Custom attribute writer method with validation
234
258
  # @param [Object] requires_ansible Value to be assigned
235
259
  def requires_ansible=(requires_ansible)