pulp_ansible_client 0.12.1 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -5
  3. data/docs/AnsibleAnsibleRepository.md +3 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleCollectionVersionSignature.md +21 -0
  7. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -2
  8. data/docs/AnsibleGitRemote.md +27 -27
  9. data/docs/AnsibleGitRemoteResponse.md +23 -23
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionVersionListResponse.md +25 -0
  12. data/docs/ContentCollectionSignaturesApi.md +64 -4
  13. data/docs/KeyringEnum.md +16 -0
  14. data/docs/{PaginatedCollectionVersionResponseList.md → PaginatedCollectionVersionListResponseList.md} +3 -3
  15. data/docs/PatchedansibleAnsibleRepository.md +3 -1
  16. data/docs/PatchedansibleGitRemote.md +27 -27
  17. data/docs/PulpAnsibleApiV3Api.md +8 -2
  18. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +68 -0
  19. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +8 -2
  20. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +8 -2
  21. data/docs/PulpAnsibleApiV3CollectionsApi.md +81 -6
  22. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +77 -6
  23. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +8 -2
  24. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +75 -0
  25. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +69 -0
  26. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +69 -0
  27. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +70 -0
  28. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +264 -0
  29. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +223 -0
  30. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +75 -0
  31. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +205 -1
  32. data/docs/PulpAnsibleDefaultApiApi.md +50 -0
  33. data/docs/PulpAnsibleDefaultApiV3Api.md +57 -0
  34. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +68 -0
  35. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +57 -0
  36. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +71 -0
  37. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +248 -0
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +211 -0
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +71 -0
  40. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +73 -0
  41. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +67 -0
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +67 -0
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +68 -0
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +256 -0
  45. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +217 -0
  46. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +73 -0
  47. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +79 -4
  48. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +3 -3
  49. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +92 -0
  50. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +3 -3
  51. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -3
  52. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +81 -9
  53. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +87 -9
  54. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +3 -3
  55. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +103 -0
  56. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +94 -0
  57. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +94 -0
  58. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +98 -0
  59. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +357 -0
  60. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +313 -0
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +112 -0
  62. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +298 -1
  63. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +74 -0
  64. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +76 -0
  65. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +92 -0
  66. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +76 -0
  67. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +91 -0
  68. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +309 -0
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +277 -0
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +100 -0
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +97 -0
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +88 -0
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +88 -0
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +92 -0
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +333 -0
  76. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +295 -0
  77. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +106 -0
  78. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -5
  79. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +15 -5
  80. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  81. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +238 -0
  82. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +0 -5
  83. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +225 -225
  84. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  85. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  86. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +269 -0
  87. data/lib/pulp_ansible_client/models/keyring_enum.rb +40 -0
  88. data/lib/pulp_ansible_client/models/{paginated_collection_version_response_list.rb → paginated_collection_version_list_response_list.rb} +4 -4
  89. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -5
  90. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
  91. data/lib/pulp_ansible_client/version.rb +1 -1
  92. data/lib/pulp_ansible_client.rb +27 -1
  93. data/spec/api/content_collection_signatures_api_spec.rb +16 -2
  94. data/spec/api/pulp_ansible_api_v3_api_spec.rb +1 -1
  95. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +49 -0
  96. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +1 -1
  97. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -1
  98. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +16 -3
  99. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +17 -3
  100. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +1 -1
  101. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +52 -0
  102. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +49 -0
  103. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +49 -0
  104. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +50 -0
  105. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +99 -0
  106. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +94 -0
  107. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +52 -0
  108. data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +51 -0
  109. data/spec/api/pulp_ansible_default_api_api_spec.rb +45 -0
  110. data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +45 -0
  111. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +49 -0
  112. data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +45 -0
  113. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +50 -0
  114. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +91 -0
  115. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +88 -0
  116. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +50 -0
  117. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +51 -0
  118. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +48 -0
  119. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +48 -0
  120. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +49 -0
  121. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +95 -0
  122. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +91 -0
  123. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +51 -0
  124. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  125. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  126. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  127. data/spec/models/ansible_collection_version_signature_spec.rb +53 -0
  128. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  129. data/spec/models/ansible_git_remote_spec.rb +19 -19
  130. data/spec/models/ansible_role_response_spec.rb +2 -2
  131. data/spec/models/collection_version_list_response_spec.rb +65 -0
  132. data/spec/models/keyring_enum_spec.rb +35 -0
  133. data/spec/models/{paginated_collection_version_response_list_spec.rb → paginated_collection_version_list_response_list_spec.rb} +6 -6
  134. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  135. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  136. metadata +109 -5
@@ -15,25 +15,28 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class PatchedansibleGitRemote
18
- # The username to authenticte to the proxy.
19
- attr_accessor :proxy_username
18
+ # If True, TLS peer validation must be performed.
19
+ attr_accessor :tls_validation
20
20
 
21
- # The username to be used for authentication when syncing.
22
- attr_accessor :username
21
+ # The password to authenticte to the proxy.
22
+ attr_accessor :proxy_password
23
23
 
24
- # Total number of simultaneous connections. If not set then the default value will be used.
25
- attr_accessor :download_concurrency
24
+ attr_accessor :pulp_labels
25
+
26
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
27
+ attr_accessor :max_retries
28
+
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
26
31
 
27
32
  # The proxy URL. Format: scheme://host:port
28
33
  attr_accessor :proxy_url
29
34
 
30
- # If True, TLS peer validation must be performed.
31
- attr_accessor :tls_validation
32
-
33
- attr_accessor :pulp_labels
35
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
+ attr_accessor :ca_cert
34
37
 
35
- # The URL of an external content source.
36
- attr_accessor :url
38
+ # A PEM encoded private key used for authentication.
39
+ attr_accessor :client_key
37
40
 
38
41
  # Limits requests per second for each concurrent downloader
39
42
  attr_accessor :rate_limit
@@ -41,39 +44,36 @@ module PulpAnsibleClient
41
44
  # 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.
42
45
  attr_accessor :sock_connect_timeout
43
46
 
44
- # 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.
45
- attr_accessor :sock_read_timeout
47
+ # Headers for aiohttp.Clientsession
48
+ attr_accessor :headers
46
49
 
47
- # The password to authenticte to the proxy.
48
- attr_accessor :proxy_password
50
+ # The username to be used for authentication when syncing.
51
+ attr_accessor :username
52
+
53
+ # Total number of simultaneous connections. If not set then the default value will be used.
54
+ attr_accessor :download_concurrency
49
55
 
50
56
  # The password to be used for authentication when syncing.
51
57
  attr_accessor :password
52
58
 
53
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
54
- attr_accessor :connect_timeout
55
-
56
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
57
- attr_accessor :ca_cert
58
-
59
- # A PEM encoded private key used for authentication.
60
- attr_accessor :client_key
59
+ # The username to authenticte to the proxy.
60
+ attr_accessor :proxy_username
61
61
 
62
- # Headers for aiohttp.Clientsession
63
- attr_accessor :headers
62
+ # 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.
63
+ attr_accessor :sock_read_timeout
64
64
 
65
65
  # A PEM encoded client certificate used for authentication.
66
66
  attr_accessor :client_cert
67
67
 
68
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
69
- attr_accessor :max_retries
68
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
69
+ attr_accessor :connect_timeout
70
+
71
+ # The URL of an external content source.
72
+ attr_accessor :url
70
73
 
71
74
  # A unique name for this remote.
72
75
  attr_accessor :name
73
76
 
74
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
75
- attr_accessor :total_timeout
76
-
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
79
79
 
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'proxy_username' => :'proxy_username',
87
- :'username' => :'username',
88
- :'download_concurrency' => :'download_concurrency',
89
- :'proxy_url' => :'proxy_url',
90
86
  :'tls_validation' => :'tls_validation',
91
- :'pulp_labels' => :'pulp_labels',
92
- :'url' => :'url',
93
- :'rate_limit' => :'rate_limit',
94
- :'sock_connect_timeout' => :'sock_connect_timeout',
95
- :'sock_read_timeout' => :'sock_read_timeout',
96
87
  :'proxy_password' => :'proxy_password',
97
- :'password' => :'password',
98
- :'connect_timeout' => :'connect_timeout',
88
+ :'pulp_labels' => :'pulp_labels',
89
+ :'max_retries' => :'max_retries',
90
+ :'total_timeout' => :'total_timeout',
91
+ :'proxy_url' => :'proxy_url',
99
92
  :'ca_cert' => :'ca_cert',
100
93
  :'client_key' => :'client_key',
94
+ :'rate_limit' => :'rate_limit',
95
+ :'sock_connect_timeout' => :'sock_connect_timeout',
101
96
  :'headers' => :'headers',
97
+ :'username' => :'username',
98
+ :'download_concurrency' => :'download_concurrency',
99
+ :'password' => :'password',
100
+ :'proxy_username' => :'proxy_username',
101
+ :'sock_read_timeout' => :'sock_read_timeout',
102
102
  :'client_cert' => :'client_cert',
103
- :'max_retries' => :'max_retries',
103
+ :'connect_timeout' => :'connect_timeout',
104
+ :'url' => :'url',
104
105
  :'name' => :'name',
105
- :'total_timeout' => :'total_timeout',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -111,26 +111,26 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
- :'proxy_username' => :'String',
115
- :'username' => :'String',
116
- :'download_concurrency' => :'Integer',
117
- :'proxy_url' => :'String',
118
114
  :'tls_validation' => :'Boolean',
119
- :'pulp_labels' => :'Object',
120
- :'url' => :'String',
121
- :'rate_limit' => :'Integer',
122
- :'sock_connect_timeout' => :'Float',
123
- :'sock_read_timeout' => :'Float',
124
115
  :'proxy_password' => :'String',
125
- :'password' => :'String',
126
- :'connect_timeout' => :'Float',
116
+ :'pulp_labels' => :'Object',
117
+ :'max_retries' => :'Integer',
118
+ :'total_timeout' => :'Float',
119
+ :'proxy_url' => :'String',
127
120
  :'ca_cert' => :'String',
128
121
  :'client_key' => :'String',
122
+ :'rate_limit' => :'Integer',
123
+ :'sock_connect_timeout' => :'Float',
129
124
  :'headers' => :'Array<Object>',
125
+ :'username' => :'String',
126
+ :'download_concurrency' => :'Integer',
127
+ :'password' => :'String',
128
+ :'proxy_username' => :'String',
129
+ :'sock_read_timeout' => :'Float',
130
130
  :'client_cert' => :'String',
131
- :'max_retries' => :'Integer',
131
+ :'connect_timeout' => :'Float',
132
+ :'url' => :'String',
132
133
  :'name' => :'String',
133
- :'total_timeout' => :'Float',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
136
136
  }
@@ -139,21 +139,21 @@ module PulpAnsibleClient
139
139
  # List of attributes with nullable: true
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
- :'proxy_username',
143
- :'username',
144
- :'download_concurrency',
142
+ :'proxy_password',
143
+ :'max_retries',
144
+ :'total_timeout',
145
145
  :'proxy_url',
146
+ :'ca_cert',
147
+ :'client_key',
146
148
  :'rate_limit',
147
149
  :'sock_connect_timeout',
148
- :'sock_read_timeout',
149
- :'proxy_password',
150
+ :'username',
151
+ :'download_concurrency',
150
152
  :'password',
151
- :'connect_timeout',
152
- :'ca_cert',
153
- :'client_key',
153
+ :'proxy_username',
154
+ :'sock_read_timeout',
154
155
  :'client_cert',
155
- :'max_retries',
156
- :'total_timeout',
156
+ :'connect_timeout',
157
157
  ])
158
158
  end
159
159
 
@@ -172,32 +172,36 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'proxy_username')
176
- self.proxy_username = attributes[:'proxy_username']
175
+ if attributes.key?(:'tls_validation')
176
+ self.tls_validation = attributes[:'tls_validation']
177
177
  end
178
178
 
179
- if attributes.key?(:'username')
180
- self.username = attributes[:'username']
179
+ if attributes.key?(:'proxy_password')
180
+ self.proxy_password = attributes[:'proxy_password']
181
181
  end
182
182
 
183
- if attributes.key?(:'download_concurrency')
184
- self.download_concurrency = attributes[:'download_concurrency']
183
+ if attributes.key?(:'pulp_labels')
184
+ self.pulp_labels = attributes[:'pulp_labels']
185
185
  end
186
186
 
187
- if attributes.key?(:'proxy_url')
188
- self.proxy_url = attributes[:'proxy_url']
187
+ if attributes.key?(:'max_retries')
188
+ self.max_retries = attributes[:'max_retries']
189
189
  end
190
190
 
191
- if attributes.key?(:'tls_validation')
192
- self.tls_validation = attributes[:'tls_validation']
191
+ if attributes.key?(:'total_timeout')
192
+ self.total_timeout = attributes[:'total_timeout']
193
193
  end
194
194
 
195
- if attributes.key?(:'pulp_labels')
196
- self.pulp_labels = attributes[:'pulp_labels']
195
+ if attributes.key?(:'proxy_url')
196
+ self.proxy_url = attributes[:'proxy_url']
197
197
  end
198
198
 
199
- if attributes.key?(:'url')
200
- self.url = attributes[:'url']
199
+ if attributes.key?(:'ca_cert')
200
+ self.ca_cert = attributes[:'ca_cert']
201
+ end
202
+
203
+ if attributes.key?(:'client_key')
204
+ self.client_key = attributes[:'client_key']
201
205
  end
202
206
 
203
207
  if attributes.key?(:'rate_limit')
@@ -208,50 +212,46 @@ module PulpAnsibleClient
208
212
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
209
213
  end
210
214
 
211
- if attributes.key?(:'sock_read_timeout')
212
- self.sock_read_timeout = attributes[:'sock_read_timeout']
213
- end
214
-
215
- if attributes.key?(:'proxy_password')
216
- self.proxy_password = attributes[:'proxy_password']
215
+ if attributes.key?(:'headers')
216
+ if (value = attributes[:'headers']).is_a?(Array)
217
+ self.headers = value
218
+ end
217
219
  end
218
220
 
219
- if attributes.key?(:'password')
220
- self.password = attributes[:'password']
221
+ if attributes.key?(:'username')
222
+ self.username = attributes[:'username']
221
223
  end
222
224
 
223
- if attributes.key?(:'connect_timeout')
224
- self.connect_timeout = attributes[:'connect_timeout']
225
+ if attributes.key?(:'download_concurrency')
226
+ self.download_concurrency = attributes[:'download_concurrency']
225
227
  end
226
228
 
227
- if attributes.key?(:'ca_cert')
228
- self.ca_cert = attributes[:'ca_cert']
229
+ if attributes.key?(:'password')
230
+ self.password = attributes[:'password']
229
231
  end
230
232
 
231
- if attributes.key?(:'client_key')
232
- self.client_key = attributes[:'client_key']
233
+ if attributes.key?(:'proxy_username')
234
+ self.proxy_username = attributes[:'proxy_username']
233
235
  end
234
236
 
235
- if attributes.key?(:'headers')
236
- if (value = attributes[:'headers']).is_a?(Array)
237
- self.headers = value
238
- end
237
+ if attributes.key?(:'sock_read_timeout')
238
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
239
239
  end
240
240
 
241
241
  if attributes.key?(:'client_cert')
242
242
  self.client_cert = attributes[:'client_cert']
243
243
  end
244
244
 
245
- if attributes.key?(:'max_retries')
246
- self.max_retries = attributes[:'max_retries']
245
+ if attributes.key?(:'connect_timeout')
246
+ self.connect_timeout = attributes[:'connect_timeout']
247
247
  end
248
248
 
249
- if attributes.key?(:'name')
250
- self.name = attributes[:'name']
249
+ if attributes.key?(:'url')
250
+ self.url = attributes[:'url']
251
251
  end
252
252
 
253
- if attributes.key?(:'total_timeout')
254
- self.total_timeout = attributes[:'total_timeout']
253
+ if attributes.key?(:'name')
254
+ self.name = attributes[:'name']
255
255
  end
256
256
 
257
257
  if attributes.key?(:'metadata_only')
@@ -267,64 +267,64 @@ module PulpAnsibleClient
267
267
  # @return Array for valid properties with the reasons
268
268
  def list_invalid_properties
269
269
  invalid_properties = Array.new
270
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
271
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
272
- end
273
-
274
- if !@username.nil? && @username.to_s.length < 1
275
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
270
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
271
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
276
272
  end
277
273
 
278
- if !@download_concurrency.nil? && @download_concurrency < 1
279
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
274
+ if !@total_timeout.nil? && @total_timeout < 0.0
275
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
280
276
  end
281
277
 
282
278
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
283
279
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
284
280
  end
285
281
 
286
- if !@url.nil? && @url.to_s.length < 1
287
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
282
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
283
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
284
+ end
285
+
286
+ if !@client_key.nil? && @client_key.to_s.length < 1
287
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
288
288
  end
289
289
 
290
290
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
291
291
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
292
292
  end
293
293
 
294
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
295
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
294
+ if !@username.nil? && @username.to_s.length < 1
295
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
296
296
  end
297
297
 
298
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
299
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
298
+ if !@download_concurrency.nil? && @download_concurrency < 1
299
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
300
300
  end
301
301
 
302
302
  if !@password.nil? && @password.to_s.length < 1
303
303
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
304
304
  end
305
305
 
306
- if !@connect_timeout.nil? && @connect_timeout < 0.0
307
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
308
- end
309
-
310
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
311
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
306
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
307
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
312
308
  end
313
309
 
314
- if !@client_key.nil? && @client_key.to_s.length < 1
315
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
310
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
311
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
316
312
  end
317
313
 
318
314
  if !@client_cert.nil? && @client_cert.to_s.length < 1
319
315
  invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
320
316
  end
321
317
 
322
- if !@name.nil? && @name.to_s.length < 1
323
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
318
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
319
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
324
320
  end
325
321
 
326
- if !@total_timeout.nil? && @total_timeout < 0.0
327
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
322
+ if !@url.nil? && @url.to_s.length < 1
323
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
324
+ end
325
+
326
+ if !@name.nil? && @name.to_s.length < 1
327
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
328
328
  end
329
329
 
330
330
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -337,53 +337,43 @@ module PulpAnsibleClient
337
337
  # Check to see if the all the properties in the model are valid
338
338
  # @return true if the model is valid
339
339
  def valid?
340
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
341
- return false if !@username.nil? && @username.to_s.length < 1
342
- return false if !@download_concurrency.nil? && @download_concurrency < 1
343
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
344
- return false if !@url.nil? && @url.to_s.length < 1
345
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
346
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
347
340
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
348
- return false if !@password.nil? && @password.to_s.length < 1
349
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
341
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
342
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
350
343
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
351
344
  return false if !@client_key.nil? && @client_key.to_s.length < 1
345
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
346
+ return false if !@username.nil? && @username.to_s.length < 1
347
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
348
+ return false if !@password.nil? && @password.to_s.length < 1
349
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
350
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
352
351
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
352
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
353
+ return false if !@url.nil? && @url.to_s.length < 1
353
354
  return false if !@name.nil? && @name.to_s.length < 1
354
- return false if !@total_timeout.nil? && @total_timeout < 0.0
355
355
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
356
356
  true
357
357
  end
358
358
 
359
359
  # Custom attribute writer method with validation
360
- # @param [Object] proxy_username Value to be assigned
361
- def proxy_username=(proxy_username)
362
- if !proxy_username.nil? && proxy_username.to_s.length < 1
363
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
364
- end
365
-
366
- @proxy_username = proxy_username
367
- end
368
-
369
- # Custom attribute writer method with validation
370
- # @param [Object] username Value to be assigned
371
- def username=(username)
372
- if !username.nil? && username.to_s.length < 1
373
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
360
+ # @param [Object] proxy_password Value to be assigned
361
+ def proxy_password=(proxy_password)
362
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
374
364
  end
375
365
 
376
- @username = username
366
+ @proxy_password = proxy_password
377
367
  end
378
368
 
379
369
  # Custom attribute writer method with validation
380
- # @param [Object] download_concurrency Value to be assigned
381
- def download_concurrency=(download_concurrency)
382
- if !download_concurrency.nil? && download_concurrency < 1
383
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
370
+ # @param [Object] total_timeout Value to be assigned
371
+ def total_timeout=(total_timeout)
372
+ if !total_timeout.nil? && total_timeout < 0.0
373
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
384
374
  end
385
375
 
386
- @download_concurrency = download_concurrency
376
+ @total_timeout = total_timeout
387
377
  end
388
378
 
389
379
  # Custom attribute writer method with validation
@@ -397,13 +387,23 @@ module PulpAnsibleClient
397
387
  end
398
388
 
399
389
  # Custom attribute writer method with validation
400
- # @param [Object] url Value to be assigned
401
- def url=(url)
402
- if !url.nil? && url.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
390
+ # @param [Object] ca_cert Value to be assigned
391
+ def ca_cert=(ca_cert)
392
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
393
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
404
394
  end
405
395
 
406
- @url = url
396
+ @ca_cert = ca_cert
397
+ end
398
+
399
+ # Custom attribute writer method with validation
400
+ # @param [Object] client_key Value to be assigned
401
+ def client_key=(client_key)
402
+ if !client_key.nil? && client_key.to_s.length < 1
403
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
404
+ end
405
+
406
+ @client_key = client_key
407
407
  end
408
408
 
409
409
  # Custom attribute writer method with validation
@@ -417,23 +417,23 @@ module PulpAnsibleClient
417
417
  end
418
418
 
419
419
  # Custom attribute writer method with validation
420
- # @param [Object] sock_read_timeout Value to be assigned
421
- def sock_read_timeout=(sock_read_timeout)
422
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
423
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
420
+ # @param [Object] username Value to be assigned
421
+ def username=(username)
422
+ if !username.nil? && username.to_s.length < 1
423
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
424
424
  end
425
425
 
426
- @sock_read_timeout = sock_read_timeout
426
+ @username = username
427
427
  end
428
428
 
429
429
  # Custom attribute writer method with validation
430
- # @param [Object] proxy_password Value to be assigned
431
- def proxy_password=(proxy_password)
432
- if !proxy_password.nil? && proxy_password.to_s.length < 1
433
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
430
+ # @param [Object] download_concurrency Value to be assigned
431
+ def download_concurrency=(download_concurrency)
432
+ if !download_concurrency.nil? && download_concurrency < 1
433
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
434
434
  end
435
435
 
436
- @proxy_password = proxy_password
436
+ @download_concurrency = download_concurrency
437
437
  end
438
438
 
439
439
  # Custom attribute writer method with validation
@@ -447,33 +447,23 @@ module PulpAnsibleClient
447
447
  end
448
448
 
449
449
  # Custom attribute writer method with validation
450
- # @param [Object] connect_timeout Value to be assigned
451
- def connect_timeout=(connect_timeout)
452
- if !connect_timeout.nil? && connect_timeout < 0.0
453
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
454
- end
455
-
456
- @connect_timeout = connect_timeout
457
- end
458
-
459
- # Custom attribute writer method with validation
460
- # @param [Object] ca_cert Value to be assigned
461
- def ca_cert=(ca_cert)
462
- if !ca_cert.nil? && ca_cert.to_s.length < 1
463
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
450
+ # @param [Object] proxy_username Value to be assigned
451
+ def proxy_username=(proxy_username)
452
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
453
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
464
454
  end
465
455
 
466
- @ca_cert = ca_cert
456
+ @proxy_username = proxy_username
467
457
  end
468
458
 
469
459
  # Custom attribute writer method with validation
470
- # @param [Object] client_key Value to be assigned
471
- def client_key=(client_key)
472
- if !client_key.nil? && client_key.to_s.length < 1
473
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
460
+ # @param [Object] sock_read_timeout Value to be assigned
461
+ def sock_read_timeout=(sock_read_timeout)
462
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
463
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
474
464
  end
475
465
 
476
- @client_key = client_key
466
+ @sock_read_timeout = sock_read_timeout
477
467
  end
478
468
 
479
469
  # Custom attribute writer method with validation
@@ -487,23 +477,33 @@ module PulpAnsibleClient
487
477
  end
488
478
 
489
479
  # Custom attribute writer method with validation
490
- # @param [Object] name Value to be assigned
491
- def name=(name)
492
- if !name.nil? && name.to_s.length < 1
493
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
480
+ # @param [Object] connect_timeout Value to be assigned
481
+ def connect_timeout=(connect_timeout)
482
+ if !connect_timeout.nil? && connect_timeout < 0.0
483
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
494
484
  end
495
485
 
496
- @name = name
486
+ @connect_timeout = connect_timeout
497
487
  end
498
488
 
499
489
  # Custom attribute writer method with validation
500
- # @param [Object] total_timeout Value to be assigned
501
- def total_timeout=(total_timeout)
502
- if !total_timeout.nil? && total_timeout < 0.0
503
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
490
+ # @param [Object] url Value to be assigned
491
+ def url=(url)
492
+ if !url.nil? && url.to_s.length < 1
493
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
504
494
  end
505
495
 
506
- @total_timeout = total_timeout
496
+ @url = url
497
+ end
498
+
499
+ # Custom attribute writer method with validation
500
+ # @param [Object] name Value to be assigned
501
+ def name=(name)
502
+ if !name.nil? && name.to_s.length < 1
503
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
504
+ end
505
+
506
+ @name = name
507
507
  end
508
508
 
509
509
  # Custom attribute writer method with validation
@@ -521,26 +521,26 @@ module PulpAnsibleClient
521
521
  def ==(o)
522
522
  return true if self.equal?(o)
523
523
  self.class == o.class &&
524
- proxy_username == o.proxy_username &&
525
- username == o.username &&
526
- download_concurrency == o.download_concurrency &&
527
- proxy_url == o.proxy_url &&
528
524
  tls_validation == o.tls_validation &&
529
- pulp_labels == o.pulp_labels &&
530
- url == o.url &&
531
- rate_limit == o.rate_limit &&
532
- sock_connect_timeout == o.sock_connect_timeout &&
533
- sock_read_timeout == o.sock_read_timeout &&
534
525
  proxy_password == o.proxy_password &&
535
- password == o.password &&
536
- connect_timeout == o.connect_timeout &&
526
+ pulp_labels == o.pulp_labels &&
527
+ max_retries == o.max_retries &&
528
+ total_timeout == o.total_timeout &&
529
+ proxy_url == o.proxy_url &&
537
530
  ca_cert == o.ca_cert &&
538
531
  client_key == o.client_key &&
532
+ rate_limit == o.rate_limit &&
533
+ sock_connect_timeout == o.sock_connect_timeout &&
539
534
  headers == o.headers &&
535
+ username == o.username &&
536
+ download_concurrency == o.download_concurrency &&
537
+ password == o.password &&
538
+ proxy_username == o.proxy_username &&
539
+ sock_read_timeout == o.sock_read_timeout &&
540
540
  client_cert == o.client_cert &&
541
- max_retries == o.max_retries &&
541
+ connect_timeout == o.connect_timeout &&
542
+ url == o.url &&
542
543
  name == o.name &&
543
- total_timeout == o.total_timeout &&
544
544
  metadata_only == o.metadata_only &&
545
545
  git_ref == o.git_ref
546
546
  end
@@ -554,7 +554,7 @@ module PulpAnsibleClient
554
554
  # Calculates hash code according to all attributes.
555
555
  # @return [Integer] Hash code
556
556
  def hash
557
- [proxy_username, username, download_concurrency, proxy_url, tls_validation, pulp_labels, url, rate_limit, sock_connect_timeout, sock_read_timeout, proxy_password, password, connect_timeout, ca_cert, client_key, headers, client_cert, max_retries, name, total_timeout, metadata_only, git_ref].hash
557
+ [tls_validation, proxy_password, pulp_labels, max_retries, total_timeout, proxy_url, ca_cert, client_key, rate_limit, sock_connect_timeout, headers, username, download_concurrency, password, proxy_username, sock_read_timeout, client_cert, connect_timeout, url, name, metadata_only, git_ref].hash
558
558
  end
559
559
 
560
560
  # Builds the object from hash