pulp_ansible_client 0.16.3 → 0.16.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -8
  3. data/docs/AnsibleAnsibleRepository.md +1 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  5. data/docs/AnsibleCollectionRemote.md +1 -1
  6. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  7. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  8. data/docs/AnsibleCollectionVersion.md +2 -2
  9. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  10. data/docs/AnsibleCollectionsApi.md +3 -7
  11. data/docs/AnsibleCopyApi.md +1 -1
  12. data/docs/AnsibleGitRemote.md +30 -30
  13. data/docs/AnsibleGitRemoteResponse.md +26 -26
  14. data/docs/AnsibleRoleRemote.md +1 -1
  15. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  16. data/docs/AnsibleRoleResponse.md +2 -2
  17. data/docs/ApiCollectionsApi.md +1 -1
  18. data/docs/ApiRolesApi.md +1 -1
  19. data/docs/CollectionImportApi.md +1 -1
  20. data/docs/CollectionRefResponse.md +1 -1
  21. data/docs/CollectionResponse.md +6 -6
  22. data/docs/CollectionVersionListResponse.md +1 -1
  23. data/docs/CollectionVersionResponse.md +4 -4
  24. data/docs/ContentCollectionDeprecationsApi.md +3 -7
  25. data/docs/ContentCollectionSignaturesApi.md +3 -7
  26. data/docs/ContentCollectionVersionsApi.md +5 -9
  27. data/docs/ContentRolesApi.md +3 -7
  28. data/docs/DistributionsAnsibleApi.md +3 -11
  29. data/docs/GalaxyCollectionResponse.md +4 -4
  30. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  31. data/docs/GalaxyDetailApi.md +1 -1
  32. data/docs/GalaxyRoleResponse.md +1 -1
  33. data/docs/GalaxyRoleVersionResponse.md +1 -1
  34. data/docs/PatchedansibleAnsibleRepository.md +1 -1
  35. data/docs/PatchedansibleCollectionRemote.md +1 -1
  36. data/docs/PatchedansibleGitRemote.md +30 -30
  37. data/docs/PatchedansibleRoleRemote.md +1 -1
  38. data/docs/PulpAnsibleApiApi.md +1 -1
  39. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3Api.md +1 -1
  41. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -7
  44. data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -7
  45. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -7
  46. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  48. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -7
  49. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  50. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  51. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  52. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -7
  53. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -7
  54. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  55. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -7
  61. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -7
  62. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -7
  63. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -7
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  69. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -7
  70. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -7
  71. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  72. data/docs/PulpAnsibleTagsApi.md +1 -1
  73. data/docs/RemotesCollectionApi.md +3 -7
  74. data/docs/RemotesGitApi.md +3 -7
  75. data/docs/RemotesRoleApi.md +3 -7
  76. data/docs/RepositoriesAnsibleApi.md +3 -23
  77. data/docs/RepositoriesAnsibleVersionsApi.md +3 -5
  78. data/docs/RepositoryAddRemoveContent.md +2 -2
  79. data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
  80. data/docs/VersionsApi.md +1 -1
  81. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +2 -8
  82. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
  83. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
  84. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +5 -11
  85. data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
  86. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +2 -14
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +2 -8
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  99. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +2 -8
  100. data/lib/pulp_ansible_client/api/remotes_git_api.rb +2 -8
  101. data/lib/pulp_ansible_client/api/remotes_role_api.rb +2 -8
  102. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +2 -32
  103. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
  104. data/lib/pulp_ansible_client/configuration.rb +3 -3
  105. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
  106. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
  107. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +21 -21
  108. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +21 -21
  109. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  110. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  111. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  112. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +236 -236
  113. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +161 -161
  114. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +21 -21
  115. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +21 -21
  116. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  117. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  118. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  119. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -1
  120. data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -4
  121. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  122. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  123. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  124. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  125. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +1 -1
  126. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +21 -21
  127. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +231 -231
  128. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +21 -21
  129. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  130. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -4
  131. data/lib/pulp_ansible_client/version.rb +1 -1
  132. data/spec/api/ansible_collections_api_spec.rb +1 -3
  133. data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
  134. data/spec/api/content_collection_signatures_api_spec.rb +1 -3
  135. data/spec/api/content_collection_versions_api_spec.rb +2 -4
  136. data/spec/api/content_roles_api_spec.rb +1 -3
  137. data/spec/api/distributions_ansible_api_spec.rb +1 -5
  138. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
  139. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
  140. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
  141. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  142. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  143. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  144. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -3
  145. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
  146. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
  147. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  148. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  149. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  150. data/spec/api/remotes_collection_api_spec.rb +1 -3
  151. data/spec/api/remotes_git_api_spec.rb +1 -3
  152. data/spec/api/remotes_role_api_spec.rb +1 -3
  153. data/spec/api/repositories_ansible_api_spec.rb +1 -11
  154. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
  155. data/spec/configuration_spec.rb +3 -3
  156. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  157. data/spec/models/ansible_collection_version_spec.rb +3 -3
  158. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  159. data/spec/models/ansible_git_remote_spec.rb +18 -18
  160. data/spec/models/ansible_role_response_spec.rb +2 -2
  161. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  162. metadata +117 -117
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Headers for aiohttp.Clientsession
19
- attr_accessor :headers
18
+ # A unique name for this remote.
19
+ attr_accessor :name
20
20
 
21
- attr_accessor :pulp_labels
21
+ # If True, TLS peer validation must be performed.
22
+ attr_accessor :tls_validation
22
23
 
23
- # Limits requests per second for each concurrent downloader
24
- attr_accessor :rate_limit
24
+ # aiohttp.ClientTimeout.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 :connect_timeout
25
26
 
26
- # The proxy URL. Format: scheme://host:port
27
- attr_accessor :proxy_url
27
+ # List of hidden (write only) fields
28
+ attr_accessor :hidden_fields
28
29
 
29
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
30
- attr_accessor :total_timeout
30
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
+ attr_accessor :max_retries
31
32
 
32
33
  # The URL of an external content source.
33
34
  attr_accessor :url
34
35
 
35
- # If True, TLS peer validation must be performed.
36
- attr_accessor :tls_validation
36
+ # Timestamp of creation.
37
+ attr_accessor :pulp_created
37
38
 
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
39
+ # Timestamp of the most recent update of the remote.
40
+ attr_accessor :pulp_last_updated
40
41
 
41
- # A PEM encoded client certificate used for authentication.
42
- attr_accessor :client_cert
42
+ # Total number of simultaneous connections. If not set then the default value will be used.
43
+ attr_accessor :download_concurrency
43
44
 
44
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
45
- attr_accessor :connect_timeout
45
+ # Limits requests per second for each concurrent downloader
46
+ attr_accessor :rate_limit
46
47
 
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
48
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
49
+ attr_accessor :total_timeout
49
50
 
50
- # Timestamp of the most recent update of the remote.
51
- attr_accessor :pulp_last_updated
51
+ # A PEM encoded client certificate used for authentication.
52
+ attr_accessor :client_cert
52
53
 
53
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
- attr_accessor :max_retries
54
+ # 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.
55
+ attr_accessor :sock_connect_timeout
55
56
 
56
- # Timestamp of creation.
57
- attr_accessor :pulp_created
57
+ # The proxy URL. Format: scheme://host:port
58
+ attr_accessor :proxy_url
58
59
 
59
60
  attr_accessor :pulp_href
60
61
 
61
- # A unique name for this remote.
62
- attr_accessor :name
63
-
64
- # List of hidden (write only) fields
65
- attr_accessor :hidden_fields
62
+ attr_accessor :pulp_labels
66
63
 
67
64
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
68
65
  attr_accessor :ca_cert
69
66
 
70
- # Total number of simultaneous connections. If not set then the default value will be used.
71
- attr_accessor :download_concurrency
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.
68
+ attr_accessor :sock_read_timeout
69
+
70
+ # Headers for aiohttp.Clientsession
71
+ attr_accessor :headers
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
- :'headers' => :'headers',
83
- :'pulp_labels' => :'pulp_labels',
84
- :'rate_limit' => :'rate_limit',
85
- :'proxy_url' => :'proxy_url',
86
- :'total_timeout' => :'total_timeout',
87
- :'url' => :'url',
82
+ :'name' => :'name',
88
83
  :'tls_validation' => :'tls_validation',
89
- :'sock_connect_timeout' => :'sock_connect_timeout',
90
- :'client_cert' => :'client_cert',
91
84
  :'connect_timeout' => :'connect_timeout',
92
- :'sock_read_timeout' => :'sock_read_timeout',
93
- :'pulp_last_updated' => :'pulp_last_updated',
85
+ :'hidden_fields' => :'hidden_fields',
94
86
  :'max_retries' => :'max_retries',
87
+ :'url' => :'url',
95
88
  :'pulp_created' => :'pulp_created',
89
+ :'pulp_last_updated' => :'pulp_last_updated',
90
+ :'download_concurrency' => :'download_concurrency',
91
+ :'rate_limit' => :'rate_limit',
92
+ :'total_timeout' => :'total_timeout',
93
+ :'client_cert' => :'client_cert',
94
+ :'sock_connect_timeout' => :'sock_connect_timeout',
95
+ :'proxy_url' => :'proxy_url',
96
96
  :'pulp_href' => :'pulp_href',
97
- :'name' => :'name',
98
- :'hidden_fields' => :'hidden_fields',
97
+ :'pulp_labels' => :'pulp_labels',
99
98
  :'ca_cert' => :'ca_cert',
100
- :'download_concurrency' => :'download_concurrency',
99
+ :'sock_read_timeout' => :'sock_read_timeout',
100
+ :'headers' => :'headers',
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
- :'headers' => :'Array<Object>',
110
- :'pulp_labels' => :'Hash<String, String>',
111
- :'rate_limit' => :'Integer',
112
- :'proxy_url' => :'String',
113
- :'total_timeout' => :'Float',
114
- :'url' => :'String',
109
+ :'name' => :'String',
115
110
  :'tls_validation' => :'Boolean',
116
- :'sock_connect_timeout' => :'Float',
117
- :'client_cert' => :'String',
118
111
  :'connect_timeout' => :'Float',
119
- :'sock_read_timeout' => :'Float',
120
- :'pulp_last_updated' => :'DateTime',
112
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
121
113
  :'max_retries' => :'Integer',
114
+ :'url' => :'String',
122
115
  :'pulp_created' => :'DateTime',
116
+ :'pulp_last_updated' => :'DateTime',
117
+ :'download_concurrency' => :'Integer',
118
+ :'rate_limit' => :'Integer',
119
+ :'total_timeout' => :'Float',
120
+ :'client_cert' => :'String',
121
+ :'sock_connect_timeout' => :'Float',
122
+ :'proxy_url' => :'String',
123
123
  :'pulp_href' => :'String',
124
- :'name' => :'String',
125
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
124
+ :'pulp_labels' => :'Hash<String, String>',
126
125
  :'ca_cert' => :'String',
127
- :'download_concurrency' => :'Integer',
126
+ :'sock_read_timeout' => :'Float',
127
+ :'headers' => :'Array<Object>',
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
+ :'connect_timeout',
137
+ :'max_retries',
138
+ :'download_concurrency',
136
139
  :'rate_limit',
137
- :'proxy_url',
138
140
  :'total_timeout',
139
- :'sock_connect_timeout',
140
141
  :'client_cert',
141
- :'connect_timeout',
142
- :'sock_read_timeout',
143
- :'max_retries',
142
+ :'sock_connect_timeout',
143
+ :'proxy_url',
144
144
  :'ca_cert',
145
- :'download_concurrency',
145
+ :'sock_read_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,77 +161,71 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'headers')
165
- if (value = attributes[:'headers']).is_a?(Array)
166
- self.headers = value
167
- end
164
+ if attributes.key?(:'name')
165
+ self.name = attributes[:'name']
168
166
  end
169
167
 
170
- if attributes.key?(:'pulp_labels')
171
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
172
- self.pulp_labels = value
173
- end
168
+ if attributes.key?(:'tls_validation')
169
+ self.tls_validation = attributes[:'tls_validation']
174
170
  end
175
171
 
176
- if attributes.key?(:'rate_limit')
177
- self.rate_limit = attributes[:'rate_limit']
172
+ if attributes.key?(:'connect_timeout')
173
+ self.connect_timeout = attributes[:'connect_timeout']
178
174
  end
179
175
 
180
- if attributes.key?(:'proxy_url')
181
- self.proxy_url = attributes[:'proxy_url']
176
+ if attributes.key?(:'hidden_fields')
177
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
178
+ self.hidden_fields = value
179
+ end
182
180
  end
183
181
 
184
- if attributes.key?(:'total_timeout')
185
- self.total_timeout = attributes[:'total_timeout']
182
+ if attributes.key?(:'max_retries')
183
+ self.max_retries = attributes[:'max_retries']
186
184
  end
187
185
 
188
186
  if attributes.key?(:'url')
189
187
  self.url = attributes[:'url']
190
188
  end
191
189
 
192
- if attributes.key?(:'tls_validation')
193
- self.tls_validation = attributes[:'tls_validation']
190
+ if attributes.key?(:'pulp_created')
191
+ self.pulp_created = attributes[:'pulp_created']
194
192
  end
195
193
 
196
- if attributes.key?(:'sock_connect_timeout')
197
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
194
+ if attributes.key?(:'pulp_last_updated')
195
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
198
196
  end
199
197
 
200
- if attributes.key?(:'client_cert')
201
- self.client_cert = attributes[:'client_cert']
198
+ if attributes.key?(:'download_concurrency')
199
+ self.download_concurrency = attributes[:'download_concurrency']
202
200
  end
203
201
 
204
- if attributes.key?(:'connect_timeout')
205
- self.connect_timeout = attributes[:'connect_timeout']
202
+ if attributes.key?(:'rate_limit')
203
+ self.rate_limit = attributes[:'rate_limit']
206
204
  end
207
205
 
208
- if attributes.key?(:'sock_read_timeout')
209
- self.sock_read_timeout = attributes[:'sock_read_timeout']
206
+ if attributes.key?(:'total_timeout')
207
+ self.total_timeout = attributes[:'total_timeout']
210
208
  end
211
209
 
212
- if attributes.key?(:'pulp_last_updated')
213
- self.pulp_last_updated = attributes[:'pulp_last_updated']
210
+ if attributes.key?(:'client_cert')
211
+ self.client_cert = attributes[:'client_cert']
214
212
  end
215
213
 
216
- if attributes.key?(:'max_retries')
217
- self.max_retries = attributes[:'max_retries']
214
+ if attributes.key?(:'sock_connect_timeout')
215
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
218
216
  end
219
217
 
220
- if attributes.key?(:'pulp_created')
221
- self.pulp_created = attributes[:'pulp_created']
218
+ if attributes.key?(:'proxy_url')
219
+ self.proxy_url = attributes[:'proxy_url']
222
220
  end
223
221
 
224
222
  if attributes.key?(:'pulp_href')
225
223
  self.pulp_href = attributes[:'pulp_href']
226
224
  end
227
225
 
228
- if attributes.key?(:'name')
229
- self.name = attributes[:'name']
230
- end
231
-
232
- if attributes.key?(:'hidden_fields')
233
- if (value = attributes[:'hidden_fields']).is_a?(Array)
234
- self.hidden_fields = value
226
+ if attributes.key?(:'pulp_labels')
227
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
228
+ self.pulp_labels = value
235
229
  end
236
230
  end
237
231
 
@@ -239,8 +233,14 @@ module PulpAnsibleClient
239
233
  self.ca_cert = attributes[:'ca_cert']
240
234
  end
241
235
 
242
- if attributes.key?(:'download_concurrency')
243
- self.download_concurrency = attributes[:'download_concurrency']
236
+ if attributes.key?(:'sock_read_timeout')
237
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
238
+ end
239
+
240
+ if attributes.key?(:'headers')
241
+ if (value = attributes[:'headers']).is_a?(Array)
242
+ self.headers = value
243
+ end
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,32 +256,32 @@ 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 !@total_timeout.nil? && @total_timeout < 0.0
260
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
259
+ if @name.nil?
260
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
261
261
  end
262
262
 
263
- if @url.nil?
264
- invalid_properties.push('invalid value for "url", url cannot be nil.')
263
+ if !@connect_timeout.nil? && @connect_timeout < 0
264
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
265
265
  end
266
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.')
267
+ if @url.nil?
268
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
269
269
  end
270
270
 
271
- if !@connect_timeout.nil? && @connect_timeout < 0.0
272
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
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
273
  end
274
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.')
275
+ if !@total_timeout.nil? && @total_timeout < 0
276
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
277
277
  end
278
278
 
279
- if @name.nil?
280
- invalid_properties.push('invalid value for "name", name cannot be nil.')
279
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
280
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
281
281
  end
282
282
 
283
- if !@download_concurrency.nil? && @download_concurrency < 1
284
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
283
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
284
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -290,64 +290,64 @@ module PulpAnsibleClient
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 !@total_timeout.nil? && @total_timeout < 0.0
294
- return false if @url.nil?
295
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
293
  return false if @name.nil?
294
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
295
+ return false if @url.nil?
299
296
  return false if !@download_concurrency.nil? && @download_concurrency < 1
297
+ return false if !@total_timeout.nil? && @total_timeout < 0
298
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
299
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] total_timeout Value to be assigned
305
- def total_timeout=(total_timeout)
306
- if !total_timeout.nil? && total_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
304
+ # @param [Object] connect_timeout Value to be assigned
305
+ def connect_timeout=(connect_timeout)
306
+ if !connect_timeout.nil? && connect_timeout < 0
307
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
308
308
  end
309
309
 
310
- @total_timeout = total_timeout
310
+ @connect_timeout = connect_timeout
311
311
  end
312
312
 
313
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.'
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
318
  end
319
319
 
320
- @sock_connect_timeout = sock_connect_timeout
320
+ @download_concurrency = download_concurrency
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
324
- # @param [Object] connect_timeout Value to be assigned
325
- def connect_timeout=(connect_timeout)
326
- if !connect_timeout.nil? && connect_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
324
+ # @param [Object] total_timeout Value to be assigned
325
+ def total_timeout=(total_timeout)
326
+ if !total_timeout.nil? && total_timeout < 0
327
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
328
328
  end
329
329
 
330
- @connect_timeout = connect_timeout
330
+ @total_timeout = total_timeout
331
331
  end
332
332
 
333
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.'
334
+ # @param [Object] sock_connect_timeout Value to be assigned
335
+ def sock_connect_timeout=(sock_connect_timeout)
336
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
337
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
338
338
  end
339
339
 
340
- @sock_read_timeout = sock_read_timeout
340
+ @sock_connect_timeout = sock_connect_timeout
341
341
  end
342
342
 
343
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.'
344
+ # @param [Object] sock_read_timeout Value to be assigned
345
+ def sock_read_timeout=(sock_read_timeout)
346
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
347
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
348
348
  end
349
349
 
350
- @download_concurrency = download_concurrency
350
+ @sock_read_timeout = sock_read_timeout
351
351
  end
352
352
 
353
353
  # Checks equality by comparing each attribute.
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- headers == o.headers &&
359
- pulp_labels == o.pulp_labels &&
360
- rate_limit == o.rate_limit &&
361
- proxy_url == o.proxy_url &&
362
- total_timeout == o.total_timeout &&
363
- url == o.url &&
358
+ name == o.name &&
364
359
  tls_validation == o.tls_validation &&
365
- sock_connect_timeout == o.sock_connect_timeout &&
366
- client_cert == o.client_cert &&
367
360
  connect_timeout == o.connect_timeout &&
368
- sock_read_timeout == o.sock_read_timeout &&
369
- pulp_last_updated == o.pulp_last_updated &&
361
+ hidden_fields == o.hidden_fields &&
370
362
  max_retries == o.max_retries &&
363
+ url == o.url &&
371
364
  pulp_created == o.pulp_created &&
365
+ pulp_last_updated == o.pulp_last_updated &&
366
+ download_concurrency == o.download_concurrency &&
367
+ rate_limit == o.rate_limit &&
368
+ total_timeout == o.total_timeout &&
369
+ client_cert == o.client_cert &&
370
+ sock_connect_timeout == o.sock_connect_timeout &&
371
+ proxy_url == o.proxy_url &&
372
372
  pulp_href == o.pulp_href &&
373
- name == o.name &&
374
- hidden_fields == o.hidden_fields &&
373
+ pulp_labels == o.pulp_labels &&
375
374
  ca_cert == o.ca_cert &&
376
- download_concurrency == o.download_concurrency &&
375
+ sock_read_timeout == o.sock_read_timeout &&
376
+ headers == o.headers &&
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
- [headers, pulp_labels, rate_limit, proxy_url, total_timeout, url, tls_validation, sock_connect_timeout, client_cert, connect_timeout, sock_read_timeout, pulp_last_updated, max_retries, pulp_created, pulp_href, name, hidden_fields, ca_cert, download_concurrency, metadata_only, git_ref].hash
390
+ [name, tls_validation, connect_timeout, hidden_fields, max_retries, url, pulp_created, pulp_last_updated, download_concurrency, rate_limit, total_timeout, client_cert, sock_connect_timeout, proxy_url, pulp_href, pulp_labels, ca_cert, sock_read_timeout, headers, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -56,7 +56,7 @@ module PulpAnsibleClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
59
+ # The policy to use when downloading content.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -312,20 +312,20 @@ module PulpAnsibleClient
312
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
313
  end
314
314
 
315
- if !@total_timeout.nil? && @total_timeout < 0.0
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
315
+ if !@total_timeout.nil? && @total_timeout < 0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
317
317
  end
318
318
 
319
- if !@connect_timeout.nil? && @connect_timeout < 0.0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
321
321
  end
322
322
 
323
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
324
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
323
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
324
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
325
325
  end
326
326
 
327
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
328
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
327
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
328
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
329
329
  end
330
330
 
331
331
  invalid_properties
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if !@username.nil? && @username.to_s.length < 1
348
348
  return false if !@password.nil? && @password.to_s.length < 1
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0.0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
354
354
  true
355
355
  end
356
356
 
@@ -475,8 +475,8 @@ module PulpAnsibleClient
475
475
  # Custom attribute writer method with validation
476
476
  # @param [Object] total_timeout Value to be assigned
477
477
  def total_timeout=(total_timeout)
478
- if !total_timeout.nil? && total_timeout < 0.0
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
478
+ if !total_timeout.nil? && total_timeout < 0
479
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
480
480
  end
481
481
 
482
482
  @total_timeout = total_timeout
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  # Custom attribute writer method with validation
486
486
  # @param [Object] connect_timeout Value to be assigned
487
487
  def connect_timeout=(connect_timeout)
488
- if !connect_timeout.nil? && connect_timeout < 0.0
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
488
+ if !connect_timeout.nil? && connect_timeout < 0
489
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
490
490
  end
491
491
 
492
492
  @connect_timeout = connect_timeout
@@ -495,8 +495,8 @@ module PulpAnsibleClient
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] sock_connect_timeout Value to be assigned
497
497
  def sock_connect_timeout=(sock_connect_timeout)
498
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
498
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
499
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
500
500
  end
501
501
 
502
502
  @sock_connect_timeout = sock_connect_timeout
@@ -505,8 +505,8 @@ module PulpAnsibleClient
505
505
  # Custom attribute writer method with validation
506
506
  # @param [Object] sock_read_timeout Value to be assigned
507
507
  def sock_read_timeout=(sock_read_timeout)
508
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
508
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
509
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout