pulp_ansible_client 0.17.4 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -29
  3. data/docs/AnsibleCollectionVersion.md +6 -6
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleCollectionVersionSignature.md +3 -3
  6. data/docs/AnsibleCollectionsApi.md +15 -9
  7. data/docs/AnsibleCopyApi.md +1 -1
  8. data/docs/AnsibleGitRemote.md +26 -26
  9. data/docs/AnsibleGitRemoteResponse.md +25 -25
  10. data/docs/AnsibleRole.md +2 -0
  11. data/docs/AnsibleRoleResponse.md +2 -2
  12. data/docs/ApiCollectionsApi.md +1 -1
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.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 +138 -12
  22. data/docs/GalaxyDetailApi.md +1 -1
  23. data/docs/PatchedansibleGitRemote.md +26 -26
  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 +140 -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/TaskResponse.md +2 -0
  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 +166 -3
  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 +169 -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_collection_version.rb +25 -25
  103. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  104. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +11 -11
  105. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +241 -241
  106. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +145 -145
  107. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -1
  108. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  109. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +232 -232
  110. data/lib/pulp_ansible_client/models/set_label.rb +252 -0
  111. data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
  112. data/lib/pulp_ansible_client/models/task_response.rb +11 -1
  113. data/lib/pulp_ansible_client/models/unset_label.rb +242 -0
  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 -0
  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 +36 -1
  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 +37 -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_response_spec.rb +3 -3
  144. data/spec/models/ansible_collection_version_signature_spec.rb +2 -2
  145. data/spec/models/ansible_collection_version_spec.rb +4 -4
  146. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  147. data/spec/models/ansible_git_remote_spec.rb +18 -18
  148. data/spec/models/ansible_role_response_spec.rb +2 -2
  149. data/spec/models/ansible_role_spec.rb +6 -0
  150. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  151. data/spec/models/set_label_response_spec.rb +47 -0
  152. data/spec/models/set_label_spec.rb +47 -0
  153. data/spec/models/task_response_spec.rb +6 -0
  154. data/spec/models/unset_label_response_spec.rb +47 -0
  155. data/spec/models/unset_label_spec.rb +41 -0
  156. metadata +144 -128
@@ -15,61 +15,61 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # 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.
19
- attr_accessor :sock_connect_timeout
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
20
 
21
- # Limits requests per second for each concurrent downloader
22
- attr_accessor :rate_limit
21
+ # 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.
22
+ attr_accessor :sock_read_timeout
23
23
 
24
- # A unique name for this remote.
25
- attr_accessor :name
24
+ # 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.
25
+ attr_accessor :sock_connect_timeout
26
26
 
27
27
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
28
28
  attr_accessor :connect_timeout
29
29
 
30
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
31
+ attr_accessor :ca_cert
32
+
33
+ # The proxy URL. Format: scheme://host:port
34
+ attr_accessor :proxy_url
35
+
36
+ # Timestamp of the most recent update of the remote.
37
+ attr_accessor :pulp_last_updated
38
+
30
39
  # If True, TLS peer validation must be performed.
31
40
  attr_accessor :tls_validation
32
41
 
33
- # A PEM encoded client certificate used for authentication.
34
- attr_accessor :client_cert
42
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
43
+ attr_accessor :total_timeout
35
44
 
36
- # Headers for aiohttp.Clientsession
37
- attr_accessor :headers
45
+ attr_accessor :pulp_labels
46
+
47
+ # The URL of an external content source.
48
+ attr_accessor :url
49
+
50
+ attr_accessor :pulp_href
38
51
 
39
52
  # Total number of simultaneous connections. If not set then the default value will be used.
40
53
  attr_accessor :download_concurrency
41
54
 
42
- attr_accessor :pulp_labels
55
+ # A unique name for this remote.
56
+ attr_accessor :name
43
57
 
44
- # Timestamp of the most recent update of the remote.
45
- attr_accessor :pulp_last_updated
58
+ # A PEM encoded client certificate used for authentication.
59
+ attr_accessor :client_cert
46
60
 
47
- # 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.
48
- attr_accessor :sock_read_timeout
61
+ # Limits requests per second for each concurrent downloader
62
+ attr_accessor :rate_limit
49
63
 
50
- attr_accessor :pulp_href
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
51
66
 
52
67
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
53
68
  attr_accessor :max_retries
54
69
 
55
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
56
- attr_accessor :total_timeout
57
-
58
- # Timestamp of creation.
59
- attr_accessor :pulp_created
60
-
61
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
62
- attr_accessor :ca_cert
63
-
64
- # The proxy URL. Format: scheme://host:port
65
- attr_accessor :proxy_url
66
-
67
70
  # List of hidden (write only) fields
68
71
  attr_accessor :hidden_fields
69
72
 
70
- # The URL of an external content source.
71
- attr_accessor :url
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
75
75
 
@@ -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
+ :'pulp_created' => :'pulp_created',
83
+ :'sock_read_timeout' => :'sock_read_timeout',
82
84
  :'sock_connect_timeout' => :'sock_connect_timeout',
83
- :'rate_limit' => :'rate_limit',
84
- :'name' => :'name',
85
85
  :'connect_timeout' => :'connect_timeout',
86
+ :'ca_cert' => :'ca_cert',
87
+ :'proxy_url' => :'proxy_url',
88
+ :'pulp_last_updated' => :'pulp_last_updated',
86
89
  :'tls_validation' => :'tls_validation',
87
- :'client_cert' => :'client_cert',
88
- :'headers' => :'headers',
89
- :'download_concurrency' => :'download_concurrency',
90
+ :'total_timeout' => :'total_timeout',
90
91
  :'pulp_labels' => :'pulp_labels',
91
- :'pulp_last_updated' => :'pulp_last_updated',
92
- :'sock_read_timeout' => :'sock_read_timeout',
92
+ :'url' => :'url',
93
93
  :'pulp_href' => :'pulp_href',
94
+ :'download_concurrency' => :'download_concurrency',
95
+ :'name' => :'name',
96
+ :'client_cert' => :'client_cert',
97
+ :'rate_limit' => :'rate_limit',
98
+ :'headers' => :'headers',
94
99
  :'max_retries' => :'max_retries',
95
- :'total_timeout' => :'total_timeout',
96
- :'pulp_created' => :'pulp_created',
97
- :'ca_cert' => :'ca_cert',
98
- :'proxy_url' => :'proxy_url',
99
100
  :'hidden_fields' => :'hidden_fields',
100
- :'url' => :'url',
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
+ :'pulp_created' => :'DateTime',
110
+ :'sock_read_timeout' => :'Float',
109
111
  :'sock_connect_timeout' => :'Float',
110
- :'rate_limit' => :'Integer',
111
- :'name' => :'String',
112
112
  :'connect_timeout' => :'Float',
113
+ :'ca_cert' => :'String',
114
+ :'proxy_url' => :'String',
115
+ :'pulp_last_updated' => :'DateTime',
113
116
  :'tls_validation' => :'Boolean',
114
- :'client_cert' => :'String',
115
- :'headers' => :'Array<Object>',
116
- :'download_concurrency' => :'Integer',
117
+ :'total_timeout' => :'Float',
117
118
  :'pulp_labels' => :'Hash<String, String>',
118
- :'pulp_last_updated' => :'DateTime',
119
- :'sock_read_timeout' => :'Float',
119
+ :'url' => :'String',
120
120
  :'pulp_href' => :'String',
121
+ :'download_concurrency' => :'Integer',
122
+ :'name' => :'String',
123
+ :'client_cert' => :'String',
124
+ :'rate_limit' => :'Integer',
125
+ :'headers' => :'Array<Object>',
121
126
  :'max_retries' => :'Integer',
122
- :'total_timeout' => :'Float',
123
- :'pulp_created' => :'DateTime',
124
- :'ca_cert' => :'String',
125
- :'proxy_url' => :'String',
126
127
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
127
- :'url' => :'String',
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
+ :'sock_read_timeout',
136
137
  :'sock_connect_timeout',
137
- :'rate_limit',
138
138
  :'connect_timeout',
139
- :'client_cert',
140
- :'download_concurrency',
141
- :'sock_read_timeout',
142
- :'max_retries',
143
- :'total_timeout',
144
139
  :'ca_cert',
145
140
  :'proxy_url',
141
+ :'total_timeout',
142
+ :'download_concurrency',
143
+ :'client_cert',
144
+ :'rate_limit',
145
+ :'max_retries',
146
146
  ])
147
147
  end
148
148
 
@@ -161,38 +161,40 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'sock_connect_timeout')
165
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
164
+ if attributes.key?(:'pulp_created')
165
+ self.pulp_created = attributes[:'pulp_created']
166
166
  end
167
167
 
168
- if attributes.key?(:'rate_limit')
169
- self.rate_limit = attributes[:'rate_limit']
168
+ if attributes.key?(:'sock_read_timeout')
169
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
170
170
  end
171
171
 
172
- if attributes.key?(:'name')
173
- self.name = attributes[:'name']
172
+ if attributes.key?(:'sock_connect_timeout')
173
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
174
174
  end
175
175
 
176
176
  if attributes.key?(:'connect_timeout')
177
177
  self.connect_timeout = attributes[:'connect_timeout']
178
178
  end
179
179
 
180
- if attributes.key?(:'tls_validation')
181
- self.tls_validation = attributes[:'tls_validation']
180
+ if attributes.key?(:'ca_cert')
181
+ self.ca_cert = attributes[:'ca_cert']
182
182
  end
183
183
 
184
- if attributes.key?(:'client_cert')
185
- self.client_cert = attributes[:'client_cert']
184
+ if attributes.key?(:'proxy_url')
185
+ self.proxy_url = attributes[:'proxy_url']
186
186
  end
187
187
 
188
- if attributes.key?(:'headers')
189
- if (value = attributes[:'headers']).is_a?(Array)
190
- self.headers = value
191
- end
188
+ if attributes.key?(:'pulp_last_updated')
189
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
192
190
  end
193
191
 
194
- if attributes.key?(:'download_concurrency')
195
- self.download_concurrency = attributes[:'download_concurrency']
192
+ if attributes.key?(:'tls_validation')
193
+ self.tls_validation = attributes[:'tls_validation']
194
+ end
195
+
196
+ if attributes.key?(:'total_timeout')
197
+ self.total_timeout = attributes[:'total_timeout']
196
198
  end
197
199
 
198
200
  if attributes.key?(:'pulp_labels')
@@ -201,36 +203,38 @@ module PulpAnsibleClient
201
203
  end
202
204
  end
203
205
 
204
- if attributes.key?(:'pulp_last_updated')
205
- self.pulp_last_updated = attributes[:'pulp_last_updated']
206
- end
207
-
208
- if attributes.key?(:'sock_read_timeout')
209
- self.sock_read_timeout = attributes[:'sock_read_timeout']
206
+ if attributes.key?(:'url')
207
+ self.url = attributes[:'url']
210
208
  end
211
209
 
212
210
  if attributes.key?(:'pulp_href')
213
211
  self.pulp_href = attributes[:'pulp_href']
214
212
  end
215
213
 
216
- if attributes.key?(:'max_retries')
217
- self.max_retries = attributes[:'max_retries']
214
+ if attributes.key?(:'download_concurrency')
215
+ self.download_concurrency = attributes[:'download_concurrency']
218
216
  end
219
217
 
220
- if attributes.key?(:'total_timeout')
221
- self.total_timeout = attributes[:'total_timeout']
218
+ if attributes.key?(:'name')
219
+ self.name = attributes[:'name']
222
220
  end
223
221
 
224
- if attributes.key?(:'pulp_created')
225
- self.pulp_created = attributes[:'pulp_created']
222
+ if attributes.key?(:'client_cert')
223
+ self.client_cert = attributes[:'client_cert']
226
224
  end
227
225
 
228
- if attributes.key?(:'ca_cert')
229
- self.ca_cert = attributes[:'ca_cert']
226
+ if attributes.key?(:'rate_limit')
227
+ self.rate_limit = attributes[:'rate_limit']
230
228
  end
231
229
 
232
- if attributes.key?(:'proxy_url')
233
- self.proxy_url = attributes[:'proxy_url']
230
+ if attributes.key?(:'headers')
231
+ if (value = attributes[:'headers']).is_a?(Array)
232
+ self.headers = value
233
+ end
234
+ end
235
+
236
+ if attributes.key?(:'max_retries')
237
+ self.max_retries = attributes[:'max_retries']
234
238
  end
235
239
 
236
240
  if attributes.key?(:'hidden_fields')
@@ -239,10 +243,6 @@ module PulpAnsibleClient
239
243
  end
240
244
  end
241
245
 
242
- if attributes.key?(:'url')
243
- self.url = attributes[:'url']
244
- end
245
-
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -256,26 +256,18 @@ 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 !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
260
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
259
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
260
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
261
261
  end
262
262
 
263
- if @name.nil?
264
- invalid_properties.push('invalid value for "name", name cannot be nil.')
263
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
264
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
265
265
  end
266
266
 
267
267
  if !@connect_timeout.nil? && @connect_timeout < 0.0
268
268
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
269
269
  end
270
270
 
271
- if !@download_concurrency.nil? && @download_concurrency < 1
272
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
273
- end
274
-
275
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
276
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
277
- end
278
-
279
271
  if !@total_timeout.nil? && @total_timeout < 0.0
280
272
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
281
273
  end
@@ -284,22 +276,40 @@ module PulpAnsibleClient
284
276
  invalid_properties.push('invalid value for "url", url cannot be nil.')
285
277
  end
286
278
 
279
+ if !@download_concurrency.nil? && @download_concurrency < 1
280
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
+ end
282
+
283
+ if @name.nil?
284
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
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 !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
293
294
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
- return false if @name.nil?
295
295
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
- return false if !@download_concurrency.nil? && @download_concurrency < 1
297
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
296
  return false if !@total_timeout.nil? && @total_timeout < 0.0
299
297
  return false if @url.nil?
298
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
299
+ return false if @name.nil?
300
300
  true
301
301
  end
302
302
 
303
+ # Custom attribute writer method with validation
304
+ # @param [Object] sock_read_timeout Value to be assigned
305
+ def sock_read_timeout=(sock_read_timeout)
306
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
308
+ end
309
+
310
+ @sock_read_timeout = sock_read_timeout
311
+ end
312
+
303
313
  # Custom attribute writer method with validation
304
314
  # @param [Object] sock_connect_timeout Value to be assigned
305
315
  def sock_connect_timeout=(sock_connect_timeout)
@@ -320,26 +330,6 @@ module PulpAnsibleClient
320
330
  @connect_timeout = connect_timeout
321
331
  end
322
332
 
323
- # Custom attribute writer method with validation
324
- # @param [Object] download_concurrency Value to be assigned
325
- def download_concurrency=(download_concurrency)
326
- if !download_concurrency.nil? && download_concurrency < 1
327
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
328
- end
329
-
330
- @download_concurrency = download_concurrency
331
- end
332
-
333
- # Custom attribute writer method with validation
334
- # @param [Object] sock_read_timeout Value to be assigned
335
- def sock_read_timeout=(sock_read_timeout)
336
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
338
- end
339
-
340
- @sock_read_timeout = sock_read_timeout
341
- end
342
-
343
333
  # Custom attribute writer method with validation
344
334
  # @param [Object] total_timeout Value to be assigned
345
335
  def total_timeout=(total_timeout)
@@ -350,30 +340,40 @@ module PulpAnsibleClient
350
340
  @total_timeout = total_timeout
351
341
  end
352
342
 
343
+ # Custom attribute writer method with validation
344
+ # @param [Object] download_concurrency Value to be assigned
345
+ def download_concurrency=(download_concurrency)
346
+ if !download_concurrency.nil? && download_concurrency < 1
347
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
348
+ end
349
+
350
+ @download_concurrency = download_concurrency
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
+ pulp_created == o.pulp_created &&
359
+ sock_read_timeout == o.sock_read_timeout &&
358
360
  sock_connect_timeout == o.sock_connect_timeout &&
359
- rate_limit == o.rate_limit &&
360
- name == o.name &&
361
361
  connect_timeout == o.connect_timeout &&
362
+ ca_cert == o.ca_cert &&
363
+ proxy_url == o.proxy_url &&
364
+ pulp_last_updated == o.pulp_last_updated &&
362
365
  tls_validation == o.tls_validation &&
363
- client_cert == o.client_cert &&
364
- headers == o.headers &&
365
- download_concurrency == o.download_concurrency &&
366
+ total_timeout == o.total_timeout &&
366
367
  pulp_labels == o.pulp_labels &&
367
- pulp_last_updated == o.pulp_last_updated &&
368
- sock_read_timeout == o.sock_read_timeout &&
368
+ url == o.url &&
369
369
  pulp_href == o.pulp_href &&
370
+ download_concurrency == o.download_concurrency &&
371
+ name == o.name &&
372
+ client_cert == o.client_cert &&
373
+ rate_limit == o.rate_limit &&
374
+ headers == o.headers &&
370
375
  max_retries == o.max_retries &&
371
- total_timeout == o.total_timeout &&
372
- pulp_created == o.pulp_created &&
373
- ca_cert == o.ca_cert &&
374
- proxy_url == o.proxy_url &&
375
376
  hidden_fields == o.hidden_fields &&
376
- url == o.url &&
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
- [sock_connect_timeout, rate_limit, name, connect_timeout, tls_validation, client_cert, headers, download_concurrency, pulp_labels, pulp_last_updated, sock_read_timeout, pulp_href, max_retries, total_timeout, pulp_created, ca_cert, proxy_url, hidden_fields, url, metadata_only, git_ref].hash
390
+ [pulp_created, sock_read_timeout, sock_connect_timeout, connect_timeout, ca_cert, proxy_url, pulp_last_updated, tls_validation, total_timeout, pulp_labels, url, pulp_href, download_concurrency, name, client_cert, rate_limit, headers, max_retries, hidden_fields, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -18,6 +18,9 @@ module PulpAnsibleClient
18
18
  # Artifact file representing the physical content
19
19
  attr_accessor :artifact
20
20
 
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
23
+
21
24
  attr_accessor :version
22
25
 
23
26
  attr_accessor :name
@@ -28,6 +31,7 @@ module PulpAnsibleClient
28
31
  def self.attribute_map
29
32
  {
30
33
  :'artifact' => :'artifact',
34
+ :'repository' => :'repository',
31
35
  :'version' => :'version',
32
36
  :'name' => :'name',
33
37
  :'namespace' => :'namespace'
@@ -38,6 +42,7 @@ module PulpAnsibleClient
38
42
  def self.openapi_types
39
43
  {
40
44
  :'artifact' => :'String',
45
+ :'repository' => :'String',
41
46
  :'version' => :'String',
42
47
  :'name' => :'String',
43
48
  :'namespace' => :'String'
@@ -69,6 +74,10 @@ module PulpAnsibleClient
69
74
  self.artifact = attributes[:'artifact']
70
75
  end
71
76
 
77
+ if attributes.key?(:'repository')
78
+ self.repository = attributes[:'repository']
79
+ end
80
+
72
81
  if attributes.key?(:'version')
73
82
  self.version = attributes[:'version']
74
83
  end
@@ -178,6 +187,7 @@ module PulpAnsibleClient
178
187
  return true if self.equal?(o)
179
188
  self.class == o.class &&
180
189
  artifact == o.artifact &&
190
+ repository == o.repository &&
181
191
  version == o.version &&
182
192
  name == o.name &&
183
193
  namespace == o.namespace
@@ -192,7 +202,7 @@ module PulpAnsibleClient
192
202
  # Calculates hash code according to all attributes.
193
203
  # @return [Integer] Hash code
194
204
  def hash
195
- [artifact, version, name, namespace].hash
205
+ [artifact, repository, version, name, namespace].hash
196
206
  end
197
207
 
198
208
  # Builds the object from hash
@@ -18,11 +18,11 @@ module PulpAnsibleClient
18
18
  # Timestamp of creation.
19
19
  attr_accessor :pulp_created
20
20
 
21
- attr_accessor :pulp_href
22
-
23
21
  # Artifact file representing the physical content
24
22
  attr_accessor :artifact
25
23
 
24
+ attr_accessor :pulp_href
25
+
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'pulp_created' => :'pulp_created',
36
- :'pulp_href' => :'pulp_href',
37
36
  :'artifact' => :'artifact',
37
+ :'pulp_href' => :'pulp_href',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -45,8 +45,8 @@ module PulpAnsibleClient
45
45
  def self.openapi_types
46
46
  {
47
47
  :'pulp_created' => :'DateTime',
48
- :'pulp_href' => :'String',
49
48
  :'artifact' => :'String',
49
+ :'pulp_href' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -78,14 +78,14 @@ module PulpAnsibleClient
78
78
  self.pulp_created = attributes[:'pulp_created']
79
79
  end
80
80
 
81
- if attributes.key?(:'pulp_href')
82
- self.pulp_href = attributes[:'pulp_href']
83
- end
84
-
85
81
  if attributes.key?(:'artifact')
86
82
  self.artifact = attributes[:'artifact']
87
83
  end
88
84
 
85
+ if attributes.key?(:'pulp_href')
86
+ self.pulp_href = attributes[:'pulp_href']
87
+ end
88
+
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -138,8 +138,8 @@ module PulpAnsibleClient
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
140
  pulp_created == o.pulp_created &&
141
- pulp_href == o.pulp_href &&
142
141
  artifact == o.artifact &&
142
+ pulp_href == o.pulp_href &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [pulp_created, pulp_href, artifact, version, name, namespace].hash
157
+ [pulp_created, artifact, pulp_href, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash