pulp_ansible_client 0.21.6 → 0.21.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -2
  5. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  6. data/docs/AnsibleCollectionVersion.md +3 -3
  7. data/docs/AnsibleCollectionVersionResponse.md +2 -0
  8. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  9. data/docs/AnsibleCollectionsApi.md +1 -1
  10. data/docs/AnsibleCopyApi.md +1 -1
  11. data/docs/AnsibleGitRemote.md +28 -28
  12. data/docs/AnsibleGitRemoteResponse.md +24 -24
  13. data/docs/AnsibleRole.md +3 -3
  14. data/docs/AnsibleRoleRemoteResponse.md +2 -2
  15. data/docs/AnsibleRoleResponse.md +5 -3
  16. data/docs/ApiCollectionsApi.md +1 -1
  17. data/docs/{PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md → ApiPluginAnsibleSearchCollectionVersionsApi.md} +18 -17
  18. data/docs/ApiRolesApi.md +1 -1
  19. data/docs/CollectionImportApi.md +1 -1
  20. data/docs/ContentCollectionDeprecationsApi.md +1 -1
  21. data/docs/ContentCollectionMarksApi.md +1 -1
  22. data/docs/ContentCollectionSignaturesApi.md +1 -1
  23. data/docs/ContentCollectionVersionsApi.md +3 -3
  24. data/docs/ContentNamespacesApi.md +1 -1
  25. data/docs/ContentRolesApi.md +1 -1
  26. data/docs/DistributionsAnsibleApi.md +1 -1
  27. data/docs/GalaxyDetailApi.md +1 -1
  28. data/docs/PaginatedGalaxyCollectionResponseList.md +2 -2
  29. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +2 -2
  30. data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
  31. data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
  32. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  33. data/docs/PaginatedTagResponseList.md +2 -2
  34. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
  35. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
  36. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
  37. data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
  38. data/docs/PaginatedansibleCollectionResponseList.md +2 -2
  39. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
  40. data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
  41. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
  42. data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
  43. data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
  44. data/docs/PaginatedansibleRoleResponseList.md +2 -2
  45. data/docs/PatchedansibleGitRemote.md +28 -28
  46. data/docs/PulpAnsibleApiApi.md +1 -1
  47. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  48. data/docs/PulpAnsibleApiV3Api.md +1 -1
  49. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  50. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  51. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  52. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  54. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  55. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  56. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  57. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  58. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  59. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  60. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  61. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  62. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  63. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  64. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  65. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  69. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  70. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  71. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  72. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  73. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  74. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  75. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  76. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  77. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  78. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  79. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  80. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  81. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  82. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  83. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  84. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +4 -3
  85. data/docs/PulpAnsibleTagsApi.md +1 -1
  86. data/docs/RemotesCollectionApi.md +1 -1
  87. data/docs/RemotesGitApi.md +1 -1
  88. data/docs/RemotesRoleApi.md +1 -1
  89. data/docs/RepositoriesAnsibleApi.md +1 -1
  90. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  91. data/docs/RepositoryResponse.md +2 -0
  92. data/docs/RepositoryVersionResponse.md +2 -0
  93. data/docs/VersionsApi.md +1 -1
  94. data/lib/pulp_ansible_client/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb → api_plugin_ansible_search_collection_versions_api.rb} +26 -24
  95. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -0
  97. data/lib/pulp_ansible_client/configuration.rb +2 -2
  98. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  99. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  100. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +31 -31
  101. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  102. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  103. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -1
  104. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  105. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -249
  106. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
  107. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  108. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  109. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +31 -31
  110. data/lib/pulp_ansible_client/models/ansible_role_response.rb +18 -8
  111. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +10 -0
  112. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +10 -0
  113. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
  114. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
  115. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
  116. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
  117. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
  118. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
  119. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
  120. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
  121. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
  122. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
  123. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
  124. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
  125. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
  126. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
  127. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
  128. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  129. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +237 -237
  130. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  131. data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
  132. data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
  133. data/lib/pulp_ansible_client/version.rb +1 -1
  134. data/lib/pulp_ansible_client.rb +1 -1
  135. data/spec/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb → api_plugin_ansible_search_collection_versions_api_spec.rb} +9 -8
  136. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  137. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -0
  138. data/spec/configuration_spec.rb +3 -3
  139. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  140. data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
  141. data/spec/models/ansible_collection_version_response_spec.rb +6 -0
  142. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  143. data/spec/models/ansible_collection_version_spec.rb +3 -3
  144. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  145. data/spec/models/ansible_git_remote_spec.rb +18 -18
  146. data/spec/models/ansible_role_remote_response_spec.rb +6 -6
  147. data/spec/models/ansible_role_response_spec.rb +7 -1
  148. data/spec/models/ansible_role_spec.rb +2 -2
  149. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  150. data/spec/models/repository_response_spec.rb +6 -0
  151. data/spec/models/repository_version_response_spec.rb +6 -0
  152. metadata +143 -143
@@ -15,61 +15,61 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- attr_accessor :pulp_labels
18
+ # The proxy URL. Format: scheme://host:port
19
+ attr_accessor :proxy_url
19
20
 
20
21
  # A unique name for this remote.
21
22
  attr_accessor :name
22
23
 
23
- # A PEM encoded client certificate used for authentication.
24
- attr_accessor :client_cert
25
-
26
24
  # Timestamp of creation.
27
25
  attr_accessor :pulp_created
28
26
 
29
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
30
- attr_accessor :max_retries
27
+ # The URL of an external content source.
28
+ attr_accessor :url
31
29
 
32
- # Timestamp of the most recent update of the remote.
33
- attr_accessor :pulp_last_updated
30
+ attr_accessor :pulp_labels
34
31
 
35
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
- attr_accessor :ca_cert
32
+ # 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.
33
+ attr_accessor :sock_connect_timeout
37
34
 
38
- # aiohttp.ClientTimeout.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 :connect_timeout
35
+ attr_accessor :pulp_href
40
36
 
41
37
  # If True, TLS peer validation must be performed.
42
38
  attr_accessor :tls_validation
43
39
 
44
- # Headers for aiohttp.Clientsession
45
- attr_accessor :headers
40
+ # Total number of simultaneous connections. If not set then the default value will be used.
41
+ attr_accessor :download_concurrency
46
42
 
47
- # 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.
48
- attr_accessor :sock_connect_timeout
43
+ # 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.
44
+ attr_accessor :sock_read_timeout
49
45
 
50
- # The URL of an external content source.
51
- attr_accessor :url
46
+ # A PEM encoded client certificate used for authentication.
47
+ attr_accessor :client_cert
52
48
 
53
- # List of hidden (write only) fields
54
- attr_accessor :hidden_fields
49
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
+ attr_accessor :max_retries
55
51
 
56
- # Limits requests per second for each concurrent downloader
57
- attr_accessor :rate_limit
52
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
+ attr_accessor :connect_timeout
58
54
 
59
- # 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.
60
- attr_accessor :sock_read_timeout
55
+ # Timestamp of the most recent update of the remote.
56
+ attr_accessor :pulp_last_updated
61
57
 
62
- attr_accessor :pulp_href
58
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
59
+ attr_accessor :ca_cert
63
60
 
64
- # Total number of simultaneous connections. If not set then the default value will be used.
65
- attr_accessor :download_concurrency
61
+ # Limits requests per second for each concurrent downloader
62
+ attr_accessor :rate_limit
66
63
 
67
- # The proxy URL. Format: scheme://host:port
68
- attr_accessor :proxy_url
64
+ # List of hidden (write only) fields
65
+ attr_accessor :hidden_fields
69
66
 
70
67
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
71
68
  attr_accessor :total_timeout
72
69
 
70
+ # Headers for aiohttp.Clientsession
71
+ attr_accessor :headers
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_labels' => :'pulp_labels',
82
+ :'proxy_url' => :'proxy_url',
83
83
  :'name' => :'name',
84
- :'client_cert' => :'client_cert',
85
84
  :'pulp_created' => :'pulp_created',
85
+ :'url' => :'url',
86
+ :'pulp_labels' => :'pulp_labels',
87
+ :'sock_connect_timeout' => :'sock_connect_timeout',
88
+ :'pulp_href' => :'pulp_href',
89
+ :'tls_validation' => :'tls_validation',
90
+ :'download_concurrency' => :'download_concurrency',
91
+ :'sock_read_timeout' => :'sock_read_timeout',
92
+ :'client_cert' => :'client_cert',
86
93
  :'max_retries' => :'max_retries',
94
+ :'connect_timeout' => :'connect_timeout',
87
95
  :'pulp_last_updated' => :'pulp_last_updated',
88
96
  :'ca_cert' => :'ca_cert',
89
- :'connect_timeout' => :'connect_timeout',
90
- :'tls_validation' => :'tls_validation',
91
- :'headers' => :'headers',
92
- :'sock_connect_timeout' => :'sock_connect_timeout',
93
- :'url' => :'url',
94
- :'hidden_fields' => :'hidden_fields',
95
97
  :'rate_limit' => :'rate_limit',
96
- :'sock_read_timeout' => :'sock_read_timeout',
97
- :'pulp_href' => :'pulp_href',
98
- :'download_concurrency' => :'download_concurrency',
99
- :'proxy_url' => :'proxy_url',
98
+ :'hidden_fields' => :'hidden_fields',
100
99
  :'total_timeout' => :'total_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
- :'pulp_labels' => :'Hash<String, String>',
109
+ :'proxy_url' => :'String',
110
110
  :'name' => :'String',
111
- :'client_cert' => :'String',
112
111
  :'pulp_created' => :'DateTime',
112
+ :'url' => :'String',
113
+ :'pulp_labels' => :'Hash<String, String>',
114
+ :'sock_connect_timeout' => :'Float',
115
+ :'pulp_href' => :'String',
116
+ :'tls_validation' => :'Boolean',
117
+ :'download_concurrency' => :'Integer',
118
+ :'sock_read_timeout' => :'Float',
119
+ :'client_cert' => :'String',
113
120
  :'max_retries' => :'Integer',
121
+ :'connect_timeout' => :'Float',
114
122
  :'pulp_last_updated' => :'DateTime',
115
123
  :'ca_cert' => :'String',
116
- :'connect_timeout' => :'Float',
117
- :'tls_validation' => :'Boolean',
118
- :'headers' => :'Array<Object>',
119
- :'sock_connect_timeout' => :'Float',
120
- :'url' => :'String',
121
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
122
124
  :'rate_limit' => :'Integer',
123
- :'sock_read_timeout' => :'Float',
124
- :'pulp_href' => :'String',
125
- :'download_concurrency' => :'Integer',
126
- :'proxy_url' => :'String',
125
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
127
126
  :'total_timeout' => :'Float',
127
+ :'headers' => :'Array<Object>',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,15 +133,15 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
+ :'proxy_url',
137
+ :'sock_connect_timeout',
138
+ :'download_concurrency',
139
+ :'sock_read_timeout',
136
140
  :'client_cert',
137
141
  :'max_retries',
138
- :'ca_cert',
139
142
  :'connect_timeout',
140
- :'sock_connect_timeout',
143
+ :'ca_cert',
141
144
  :'rate_limit',
142
- :'sock_read_timeout',
143
- :'download_concurrency',
144
- :'proxy_url',
145
145
  :'total_timeout',
146
146
  ])
147
147
  end
@@ -161,88 +161,88 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'pulp_labels')
165
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
166
- self.pulp_labels = value
167
- end
164
+ if attributes.key?(:'proxy_url')
165
+ self.proxy_url = attributes[:'proxy_url']
168
166
  end
169
167
 
170
168
  if attributes.key?(:'name')
171
169
  self.name = attributes[:'name']
172
170
  end
173
171
 
174
- if attributes.key?(:'client_cert')
175
- self.client_cert = attributes[:'client_cert']
176
- end
177
-
178
172
  if attributes.key?(:'pulp_created')
179
173
  self.pulp_created = attributes[:'pulp_created']
180
174
  end
181
175
 
182
- if attributes.key?(:'max_retries')
183
- self.max_retries = attributes[:'max_retries']
176
+ if attributes.key?(:'url')
177
+ self.url = attributes[:'url']
184
178
  end
185
179
 
186
- if attributes.key?(:'pulp_last_updated')
187
- self.pulp_last_updated = attributes[:'pulp_last_updated']
180
+ if attributes.key?(:'pulp_labels')
181
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
182
+ self.pulp_labels = value
183
+ end
188
184
  end
189
185
 
190
- if attributes.key?(:'ca_cert')
191
- self.ca_cert = attributes[:'ca_cert']
186
+ if attributes.key?(:'sock_connect_timeout')
187
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
192
188
  end
193
189
 
194
- if attributes.key?(:'connect_timeout')
195
- self.connect_timeout = attributes[:'connect_timeout']
190
+ if attributes.key?(:'pulp_href')
191
+ self.pulp_href = attributes[:'pulp_href']
196
192
  end
197
193
 
198
194
  if attributes.key?(:'tls_validation')
199
195
  self.tls_validation = attributes[:'tls_validation']
200
196
  end
201
197
 
202
- if attributes.key?(:'headers')
203
- if (value = attributes[:'headers']).is_a?(Array)
204
- self.headers = value
205
- end
198
+ if attributes.key?(:'download_concurrency')
199
+ self.download_concurrency = attributes[:'download_concurrency']
206
200
  end
207
201
 
208
- if attributes.key?(:'sock_connect_timeout')
209
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
202
+ if attributes.key?(:'sock_read_timeout')
203
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
210
204
  end
211
205
 
212
- if attributes.key?(:'url')
213
- self.url = attributes[:'url']
206
+ if attributes.key?(:'client_cert')
207
+ self.client_cert = attributes[:'client_cert']
214
208
  end
215
209
 
216
- if attributes.key?(:'hidden_fields')
217
- if (value = attributes[:'hidden_fields']).is_a?(Array)
218
- self.hidden_fields = value
219
- end
210
+ if attributes.key?(:'max_retries')
211
+ self.max_retries = attributes[:'max_retries']
220
212
  end
221
213
 
222
- if attributes.key?(:'rate_limit')
223
- self.rate_limit = attributes[:'rate_limit']
214
+ if attributes.key?(:'connect_timeout')
215
+ self.connect_timeout = attributes[:'connect_timeout']
224
216
  end
225
217
 
226
- if attributes.key?(:'sock_read_timeout')
227
- self.sock_read_timeout = attributes[:'sock_read_timeout']
218
+ if attributes.key?(:'pulp_last_updated')
219
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
228
220
  end
229
221
 
230
- if attributes.key?(:'pulp_href')
231
- self.pulp_href = attributes[:'pulp_href']
222
+ if attributes.key?(:'ca_cert')
223
+ self.ca_cert = attributes[:'ca_cert']
232
224
  end
233
225
 
234
- if attributes.key?(:'download_concurrency')
235
- self.download_concurrency = attributes[:'download_concurrency']
226
+ if attributes.key?(:'rate_limit')
227
+ self.rate_limit = attributes[:'rate_limit']
236
228
  end
237
229
 
238
- if attributes.key?(:'proxy_url')
239
- self.proxy_url = attributes[:'proxy_url']
230
+ if attributes.key?(:'hidden_fields')
231
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
232
+ self.hidden_fields = value
233
+ end
240
234
  end
241
235
 
242
236
  if attributes.key?(:'total_timeout')
243
237
  self.total_timeout = attributes[:'total_timeout']
244
238
  end
245
239
 
240
+ if attributes.key?(:'headers')
241
+ if (value = attributes[:'headers']).is_a?(Array)
242
+ self.headers = value
243
+ end
244
+ end
245
+
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -260,28 +260,28 @@ module PulpAnsibleClient
260
260
  invalid_properties.push('invalid value for "name", name cannot be nil.')
261
261
  end
262
262
 
263
- if !@connect_timeout.nil? && @connect_timeout < 0.0
264
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
265
- end
266
-
267
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
269
- end
270
-
271
263
  if @url.nil?
272
264
  invalid_properties.push('invalid value for "url", url cannot be nil.')
273
265
  end
274
266
 
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.')
267
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
268
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
277
269
  end
278
270
 
279
271
  if !@download_concurrency.nil? && @download_concurrency < 1
280
272
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
273
  end
282
274
 
283
- if !@total_timeout.nil? && @total_timeout < 0.0
284
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
275
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
276
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
277
+ end
278
+
279
+ if !@connect_timeout.nil? && @connect_timeout < 0
280
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
281
+ end
282
+
283
+ if !@total_timeout.nil? && @total_timeout < 0
284
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -291,60 +291,60 @@ module PulpAnsibleClient
291
291
  # @return true if the model is valid
292
292
  def valid?
293
293
  return false if @name.nil?
294
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
295
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
294
  return false if @url.nil?
297
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
295
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
298
296
  return false if !@download_concurrency.nil? && @download_concurrency < 1
299
- return false if !@total_timeout.nil? && @total_timeout < 0.0
297
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
298
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
299
+ return false if !@total_timeout.nil? && @total_timeout < 0
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] connect_timeout Value to be assigned
305
- def connect_timeout=(connect_timeout)
306
- if !connect_timeout.nil? && connect_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
304
+ # @param [Object] sock_connect_timeout Value to be assigned
305
+ def sock_connect_timeout=(sock_connect_timeout)
306
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
307
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
308
308
  end
309
309
 
310
- @connect_timeout = connect_timeout
310
+ @sock_connect_timeout = sock_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
324
  # @param [Object] sock_read_timeout Value to be assigned
325
325
  def sock_read_timeout=(sock_read_timeout)
326
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
326
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
327
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
328
328
  end
329
329
 
330
330
  @sock_read_timeout = sock_read_timeout
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
- # @param [Object] download_concurrency Value to be assigned
335
- def download_concurrency=(download_concurrency)
336
- if !download_concurrency.nil? && download_concurrency < 1
337
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
334
+ # @param [Object] connect_timeout Value to be assigned
335
+ def connect_timeout=(connect_timeout)
336
+ if !connect_timeout.nil? && connect_timeout < 0
337
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
338
338
  end
339
339
 
340
- @download_concurrency = download_concurrency
340
+ @connect_timeout = connect_timeout
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
344
  # @param [Object] total_timeout Value to be assigned
345
345
  def total_timeout=(total_timeout)
346
- if !total_timeout.nil? && total_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
346
+ if !total_timeout.nil? && total_timeout < 0
347
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
348
348
  end
349
349
 
350
350
  @total_timeout = total_timeout
@@ -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
- pulp_labels == o.pulp_labels &&
358
+ proxy_url == o.proxy_url &&
359
359
  name == o.name &&
360
- client_cert == o.client_cert &&
361
360
  pulp_created == o.pulp_created &&
361
+ url == o.url &&
362
+ pulp_labels == o.pulp_labels &&
363
+ sock_connect_timeout == o.sock_connect_timeout &&
364
+ pulp_href == o.pulp_href &&
365
+ tls_validation == o.tls_validation &&
366
+ download_concurrency == o.download_concurrency &&
367
+ sock_read_timeout == o.sock_read_timeout &&
368
+ client_cert == o.client_cert &&
362
369
  max_retries == o.max_retries &&
370
+ connect_timeout == o.connect_timeout &&
363
371
  pulp_last_updated == o.pulp_last_updated &&
364
372
  ca_cert == o.ca_cert &&
365
- connect_timeout == o.connect_timeout &&
366
- tls_validation == o.tls_validation &&
367
- headers == o.headers &&
368
- sock_connect_timeout == o.sock_connect_timeout &&
369
- url == o.url &&
370
- hidden_fields == o.hidden_fields &&
371
373
  rate_limit == o.rate_limit &&
372
- sock_read_timeout == o.sock_read_timeout &&
373
- pulp_href == o.pulp_href &&
374
- download_concurrency == o.download_concurrency &&
375
- proxy_url == o.proxy_url &&
374
+ hidden_fields == o.hidden_fields &&
376
375
  total_timeout == o.total_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
- [pulp_labels, name, client_cert, pulp_created, max_retries, pulp_last_updated, ca_cert, connect_timeout, tls_validation, headers, sock_connect_timeout, url, hidden_fields, rate_limit, sock_read_timeout, pulp_href, download_concurrency, proxy_url, total_timeout, metadata_only, git_ref].hash
390
+ [proxy_url, name, pulp_created, url, pulp_labels, sock_connect_timeout, pulp_href, tls_validation, download_concurrency, sock_read_timeout, client_cert, max_retries, connect_timeout, pulp_last_updated, ca_cert, rate_limit, hidden_fields, total_timeout, headers, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRole
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
20
-
21
18
  # A URI of a repository the new content unit should be associated with.
22
19
  attr_accessor :repository
23
20
 
21
+ # Artifact file representing the physical content
22
+ attr_accessor :artifact
23
+
24
24
  attr_accessor :version
25
25
 
26
26
  attr_accessor :name
@@ -30,8 +30,8 @@ module PulpAnsibleClient
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'artifact' => :'artifact',
34
33
  :'repository' => :'repository',
34
+ :'artifact' => :'artifact',
35
35
  :'version' => :'version',
36
36
  :'name' => :'name',
37
37
  :'namespace' => :'namespace'
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'artifact' => :'String',
45
44
  :'repository' => :'String',
45
+ :'artifact' => :'String',
46
46
  :'version' => :'String',
47
47
  :'name' => :'String',
48
48
  :'namespace' => :'String'
@@ -70,14 +70,14 @@ module PulpAnsibleClient
70
70
  h[k.to_sym] = v
71
71
  }
72
72
 
73
- if attributes.key?(:'artifact')
74
- self.artifact = attributes[:'artifact']
75
- end
76
-
77
73
  if attributes.key?(:'repository')
78
74
  self.repository = attributes[:'repository']
79
75
  end
80
76
 
77
+ if attributes.key?(:'artifact')
78
+ self.artifact = attributes[:'artifact']
79
+ end
80
+
81
81
  if attributes.key?(:'version')
82
82
  self.version = attributes[:'version']
83
83
  end
@@ -186,8 +186,8 @@ module PulpAnsibleClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- artifact == o.artifact &&
190
189
  repository == o.repository &&
190
+ artifact == o.artifact &&
191
191
  version == o.version &&
192
192
  name == o.name &&
193
193
  namespace == o.namespace
@@ -202,7 +202,7 @@ module PulpAnsibleClient
202
202
  # Calculates hash code according to all attributes.
203
203
  # @return [Integer] Hash code
204
204
  def hash
205
- [artifact, repository, version, name, namespace].hash
205
+ [repository, artifact, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash
@@ -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