pulp_ansible_client 0.21.10 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -19
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleCollectionVersion.md +3 -3
  6. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  7. data/docs/AnsibleCollectionsApi.md +61 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +30 -30
  10. data/docs/AnsibleGitRemoteResponse.md +27 -27
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +3 -3
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.md +1 -1
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionMetadataResponse.md +2 -2
  17. data/docs/CollectionSummaryResponse.md +2 -2
  18. data/docs/CollectionVersionDocsResponse.md +1 -1
  19. data/docs/CollectionVersionResponse.md +2 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +11 -11
  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/Copy.md +1 -1
  27. data/docs/DistributionsAnsibleApi.md +1 -1
  28. data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  29. data/docs/PatchedansibleGitRemote.md +30 -30
  30. data/docs/PulpAnsibleApiApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3Api.md +1 -1
  32. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  48. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  49. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  69. data/docs/PulpAnsibleTagsApi.md +1 -1
  70. data/docs/RemotesCollectionApi.md +1 -1
  71. data/docs/RemotesGitApi.md +1 -1
  72. data/docs/RemotesRoleApi.md +1 -1
  73. data/docs/RepositoriesAnsibleApi.md +1 -1
  74. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  75. data/docs/VersionsApi.md +1 -56
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  78. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  79. data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
  80. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  81. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  82. data/lib/pulp_ansible_client/configuration.rb +2 -2
  83. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  84. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  85. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  86. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +16 -16
  87. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +258 -258
  88. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +151 -151
  89. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  90. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  91. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  92. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  93. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  94. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  95. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  97. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  98. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -249
  99. data/lib/pulp_ansible_client/version.rb +1 -1
  100. data/lib/pulp_ansible_client.rb +4 -10
  101. data/spec/api/ansible_collections_api_spec.rb +14 -0
  102. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  103. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  104. data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
  105. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  106. data/spec/api/versions_api_spec.rb +0 -14
  107. data/spec/configuration_spec.rb +3 -3
  108. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  109. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  110. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  111. data/spec/models/ansible_collection_version_spec.rb +4 -4
  112. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  113. data/spec/models/ansible_git_remote_spec.rb +20 -20
  114. data/spec/models/ansible_role_response_spec.rb +4 -4
  115. data/spec/models/ansible_role_spec.rb +2 -2
  116. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  117. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  118. metadata +157 -181
  119. data/docs/ApiCollectionsApi.md +0 -112
  120. data/docs/GalaxyCollection.md +0 -23
  121. data/docs/GalaxyCollectionResponse.md +0 -31
  122. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  123. data/docs/GalaxyDetailApi.md +0 -61
  124. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  125. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  126. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  127. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  128. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  129. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  130. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  131. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
  132. data/spec/api/api_collections_api_spec.rb +0 -61
  133. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  134. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  135. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  136. data/spec/models/galaxy_collection_spec.rb +0 -59
  137. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -15,61 +15,61 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # If True, TLS peer validation must be performed.
19
- attr_accessor :tls_validation
18
+ # Timestamp of the most recent update of the remote.
19
+ attr_accessor :pulp_last_updated
20
20
 
21
- # 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.
22
- attr_accessor :sock_connect_timeout
21
+ # The URL of an external content source.
22
+ attr_accessor :url
23
23
 
24
- # Limits requests per second for each concurrent downloader
25
- attr_accessor :rate_limit
24
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
25
+ attr_accessor :max_retries
26
26
 
27
- # Timestamp of creation.
28
- attr_accessor :pulp_created
27
+ # A PEM encoded client certificate used for authentication.
28
+ attr_accessor :client_cert
29
29
 
30
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
31
- attr_accessor :ca_cert
30
+ # If True, TLS peer validation must be performed.
31
+ attr_accessor :tls_validation
32
32
 
33
- # A unique name for this remote.
34
- attr_accessor :name
33
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
+ attr_accessor :total_timeout
35
35
 
36
- attr_accessor :pulp_labels
36
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
37
+ attr_accessor :connect_timeout
37
38
 
38
- # The proxy URL. Format: scheme://host:port
39
- attr_accessor :proxy_url
39
+ # Limits requests per second for each concurrent downloader
40
+ attr_accessor :rate_limit
40
41
 
41
42
  # 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.
42
43
  attr_accessor :sock_read_timeout
43
44
 
44
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
45
- attr_accessor :max_retries
46
-
47
- # Timestamp of the most recent update of the remote.
48
- attr_accessor :pulp_last_updated
49
-
50
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
51
- attr_accessor :connect_timeout
45
+ # Total number of simultaneous connections. If not set then the default value will be used.
46
+ attr_accessor :download_concurrency
52
47
 
53
48
  # Headers for aiohttp.Clientsession
54
49
  attr_accessor :headers
55
50
 
56
- # The URL of an external content source.
57
- attr_accessor :url
51
+ # The proxy URL. Format: scheme://host:port
52
+ attr_accessor :proxy_url
58
53
 
59
- # A PEM encoded client certificate used for authentication.
60
- attr_accessor :client_cert
54
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
55
+ attr_accessor :ca_cert
61
56
 
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.
63
- attr_accessor :total_timeout
57
+ # 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.
58
+ attr_accessor :sock_connect_timeout
59
+
60
+ attr_accessor :pulp_labels
64
61
 
65
62
  # List of hidden (write only) fields
66
63
  attr_accessor :hidden_fields
67
64
 
68
- # Total number of simultaneous connections. If not set then the default value will be used.
69
- attr_accessor :download_concurrency
65
+ # A unique name for this remote.
66
+ attr_accessor :name
70
67
 
71
68
  attr_accessor :pulp_href
72
69
 
70
+ # Timestamp of creation.
71
+ attr_accessor :pulp_created
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
- :'tls_validation' => :'tls_validation',
83
- :'sock_connect_timeout' => :'sock_connect_timeout',
84
- :'rate_limit' => :'rate_limit',
85
- :'pulp_created' => :'pulp_created',
86
- :'ca_cert' => :'ca_cert',
87
- :'name' => :'name',
88
- :'pulp_labels' => :'pulp_labels',
89
- :'proxy_url' => :'proxy_url',
90
- :'sock_read_timeout' => :'sock_read_timeout',
91
- :'max_retries' => :'max_retries',
92
82
  :'pulp_last_updated' => :'pulp_last_updated',
93
- :'connect_timeout' => :'connect_timeout',
94
- :'headers' => :'headers',
95
83
  :'url' => :'url',
84
+ :'max_retries' => :'max_retries',
96
85
  :'client_cert' => :'client_cert',
86
+ :'tls_validation' => :'tls_validation',
97
87
  :'total_timeout' => :'total_timeout',
98
- :'hidden_fields' => :'hidden_fields',
88
+ :'connect_timeout' => :'connect_timeout',
89
+ :'rate_limit' => :'rate_limit',
90
+ :'sock_read_timeout' => :'sock_read_timeout',
99
91
  :'download_concurrency' => :'download_concurrency',
92
+ :'headers' => :'headers',
93
+ :'proxy_url' => :'proxy_url',
94
+ :'ca_cert' => :'ca_cert',
95
+ :'sock_connect_timeout' => :'sock_connect_timeout',
96
+ :'pulp_labels' => :'pulp_labels',
97
+ :'hidden_fields' => :'hidden_fields',
98
+ :'name' => :'name',
100
99
  :'pulp_href' => :'pulp_href',
100
+ :'pulp_created' => :'pulp_created',
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
- :'tls_validation' => :'Boolean',
110
- :'sock_connect_timeout' => :'Float',
111
- :'rate_limit' => :'Integer',
112
- :'pulp_created' => :'DateTime',
113
- :'ca_cert' => :'String',
114
- :'name' => :'String',
115
- :'pulp_labels' => :'Hash<String, String>',
116
- :'proxy_url' => :'String',
117
- :'sock_read_timeout' => :'Float',
118
- :'max_retries' => :'Integer',
119
109
  :'pulp_last_updated' => :'DateTime',
120
- :'connect_timeout' => :'Float',
121
- :'headers' => :'Array<Object>',
122
110
  :'url' => :'String',
111
+ :'max_retries' => :'Integer',
123
112
  :'client_cert' => :'String',
113
+ :'tls_validation' => :'Boolean',
124
114
  :'total_timeout' => :'Float',
125
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
115
+ :'connect_timeout' => :'Float',
116
+ :'rate_limit' => :'Integer',
117
+ :'sock_read_timeout' => :'Float',
126
118
  :'download_concurrency' => :'Integer',
119
+ :'headers' => :'Array<Object>',
120
+ :'proxy_url' => :'String',
121
+ :'ca_cert' => :'String',
122
+ :'sock_connect_timeout' => :'Float',
123
+ :'pulp_labels' => :'Hash<String, String>',
124
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
125
+ :'name' => :'String',
127
126
  :'pulp_href' => :'String',
127
+ :'pulp_created' => :'DateTime',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'sock_connect_timeout',
137
- :'rate_limit',
138
- :'ca_cert',
139
- :'proxy_url',
140
- :'sock_read_timeout',
141
136
  :'max_retries',
142
- :'connect_timeout',
143
137
  :'client_cert',
144
138
  :'total_timeout',
139
+ :'connect_timeout',
140
+ :'rate_limit',
141
+ :'sock_read_timeout',
145
142
  :'download_concurrency',
143
+ :'proxy_url',
144
+ :'ca_cert',
145
+ :'sock_connect_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,54 +161,44 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'tls_validation')
165
- self.tls_validation = attributes[:'tls_validation']
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
166
166
  end
167
167
 
168
- if attributes.key?(:'sock_connect_timeout')
169
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
168
+ if attributes.key?(:'url')
169
+ self.url = attributes[:'url']
170
170
  end
171
171
 
172
- if attributes.key?(:'rate_limit')
173
- self.rate_limit = attributes[:'rate_limit']
172
+ if attributes.key?(:'max_retries')
173
+ self.max_retries = attributes[:'max_retries']
174
174
  end
175
175
 
176
- if attributes.key?(:'pulp_created')
177
- self.pulp_created = attributes[:'pulp_created']
176
+ if attributes.key?(:'client_cert')
177
+ self.client_cert = attributes[:'client_cert']
178
178
  end
179
179
 
180
- if attributes.key?(:'ca_cert')
181
- self.ca_cert = attributes[:'ca_cert']
180
+ if attributes.key?(:'tls_validation')
181
+ self.tls_validation = attributes[:'tls_validation']
182
182
  end
183
183
 
184
- if attributes.key?(:'name')
185
- self.name = attributes[:'name']
184
+ if attributes.key?(:'total_timeout')
185
+ self.total_timeout = attributes[:'total_timeout']
186
186
  end
187
187
 
188
- if attributes.key?(:'pulp_labels')
189
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
190
- self.pulp_labels = value
191
- end
188
+ if attributes.key?(:'connect_timeout')
189
+ self.connect_timeout = attributes[:'connect_timeout']
192
190
  end
193
191
 
194
- if attributes.key?(:'proxy_url')
195
- self.proxy_url = attributes[:'proxy_url']
192
+ if attributes.key?(:'rate_limit')
193
+ self.rate_limit = attributes[:'rate_limit']
196
194
  end
197
195
 
198
196
  if attributes.key?(:'sock_read_timeout')
199
197
  self.sock_read_timeout = attributes[:'sock_read_timeout']
200
198
  end
201
199
 
202
- if attributes.key?(:'max_retries')
203
- self.max_retries = attributes[:'max_retries']
204
- end
205
-
206
- if attributes.key?(:'pulp_last_updated')
207
- self.pulp_last_updated = attributes[:'pulp_last_updated']
208
- end
209
-
210
- if attributes.key?(:'connect_timeout')
211
- self.connect_timeout = attributes[:'connect_timeout']
200
+ if attributes.key?(:'download_concurrency')
201
+ self.download_concurrency = attributes[:'download_concurrency']
212
202
  end
213
203
 
214
204
  if attributes.key?(:'headers')
@@ -217,16 +207,22 @@ module PulpAnsibleClient
217
207
  end
218
208
  end
219
209
 
220
- if attributes.key?(:'url')
221
- self.url = attributes[:'url']
210
+ if attributes.key?(:'proxy_url')
211
+ self.proxy_url = attributes[:'proxy_url']
222
212
  end
223
213
 
224
- if attributes.key?(:'client_cert')
225
- self.client_cert = attributes[:'client_cert']
214
+ if attributes.key?(:'ca_cert')
215
+ self.ca_cert = attributes[:'ca_cert']
226
216
  end
227
217
 
228
- if attributes.key?(:'total_timeout')
229
- self.total_timeout = attributes[:'total_timeout']
218
+ if attributes.key?(:'sock_connect_timeout')
219
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
220
+ end
221
+
222
+ if attributes.key?(:'pulp_labels')
223
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
224
+ self.pulp_labels = value
225
+ end
230
226
  end
231
227
 
232
228
  if attributes.key?(:'hidden_fields')
@@ -235,14 +231,18 @@ module PulpAnsibleClient
235
231
  end
236
232
  end
237
233
 
238
- if attributes.key?(:'download_concurrency')
239
- self.download_concurrency = attributes[:'download_concurrency']
234
+ if attributes.key?(:'name')
235
+ self.name = attributes[:'name']
240
236
  end
241
237
 
242
238
  if attributes.key?(:'pulp_href')
243
239
  self.pulp_href = attributes[:'pulp_href']
244
240
  end
245
241
 
242
+ if attributes.key?(:'pulp_created')
243
+ self.pulp_created = attributes[:'pulp_created']
244
+ end
245
+
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -256,68 +256,58 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
260
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
261
- end
262
-
263
- if @name.nil?
264
- invalid_properties.push('invalid value for "name", name cannot be nil.')
259
+ if @url.nil?
260
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
265
261
  end
266
262
 
267
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
268
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
263
+ if !@total_timeout.nil? && @total_timeout < 0.0
264
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
269
265
  end
270
266
 
271
267
  if !@connect_timeout.nil? && @connect_timeout < 0.0
272
268
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
273
269
  end
274
270
 
275
- if @url.nil?
276
- invalid_properties.push('invalid value for "url", url cannot be nil.')
277
- end
278
-
279
- if !@total_timeout.nil? && @total_timeout < 0.0
280
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
271
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
272
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
281
273
  end
282
274
 
283
275
  if !@download_concurrency.nil? && @download_concurrency < 1
284
276
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
285
277
  end
286
278
 
279
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
281
+ end
282
+
283
+ if @name.nil?
284
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
285
+ end
286
+
287
287
  invalid_properties
288
288
  end
289
289
 
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
- return false if @name.nil?
295
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
296
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
293
  return false if @url.nil?
298
294
  return false if !@total_timeout.nil? && @total_timeout < 0.0
295
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
299
297
  return false if !@download_concurrency.nil? && @download_concurrency < 1
298
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
+ return false if @name.nil?
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
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.0
307
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
308
- end
309
-
310
- @sock_connect_timeout = sock_connect_timeout
311
- end
312
-
313
- # Custom attribute writer method with validation
314
- # @param [Object] sock_read_timeout Value to be assigned
315
- def sock_read_timeout=(sock_read_timeout)
316
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
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.'
318
308
  end
319
309
 
320
- @sock_read_timeout = sock_read_timeout
310
+ @total_timeout = total_timeout
321
311
  end
322
312
 
323
313
  # Custom attribute writer method with validation
@@ -331,13 +321,13 @@ module PulpAnsibleClient
331
321
  end
332
322
 
333
323
  # Custom attribute writer method with validation
334
- # @param [Object] total_timeout Value to be assigned
335
- def total_timeout=(total_timeout)
336
- if !total_timeout.nil? && total_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
324
+ # @param [Object] sock_read_timeout Value to be assigned
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.'
338
328
  end
339
329
 
340
- @total_timeout = total_timeout
330
+ @sock_read_timeout = sock_read_timeout
341
331
  end
342
332
 
343
333
  # Custom attribute writer method with validation
@@ -350,30 +340,40 @@ module PulpAnsibleClient
350
340
  @download_concurrency = download_concurrency
351
341
  end
352
342
 
343
+ # Custom attribute writer method with validation
344
+ # @param [Object] sock_connect_timeout Value to be assigned
345
+ def sock_connect_timeout=(sock_connect_timeout)
346
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
347
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
348
+ end
349
+
350
+ @sock_connect_timeout = sock_connect_timeout
351
+ end
352
+
353
353
  # Checks equality by comparing each attribute.
354
354
  # @param [Object] Object to be compared
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- tls_validation == o.tls_validation &&
359
- sock_connect_timeout == o.sock_connect_timeout &&
360
- rate_limit == o.rate_limit &&
361
- pulp_created == o.pulp_created &&
362
- ca_cert == o.ca_cert &&
363
- name == o.name &&
364
- pulp_labels == o.pulp_labels &&
365
- proxy_url == o.proxy_url &&
366
- sock_read_timeout == o.sock_read_timeout &&
367
- max_retries == o.max_retries &&
368
358
  pulp_last_updated == o.pulp_last_updated &&
369
- connect_timeout == o.connect_timeout &&
370
- headers == o.headers &&
371
359
  url == o.url &&
360
+ max_retries == o.max_retries &&
372
361
  client_cert == o.client_cert &&
362
+ tls_validation == o.tls_validation &&
373
363
  total_timeout == o.total_timeout &&
374
- hidden_fields == o.hidden_fields &&
364
+ connect_timeout == o.connect_timeout &&
365
+ rate_limit == o.rate_limit &&
366
+ sock_read_timeout == o.sock_read_timeout &&
375
367
  download_concurrency == o.download_concurrency &&
368
+ headers == o.headers &&
369
+ proxy_url == o.proxy_url &&
370
+ ca_cert == o.ca_cert &&
371
+ sock_connect_timeout == o.sock_connect_timeout &&
372
+ pulp_labels == o.pulp_labels &&
373
+ hidden_fields == o.hidden_fields &&
374
+ name == o.name &&
376
375
  pulp_href == o.pulp_href &&
376
+ pulp_created == o.pulp_created &&
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
- [tls_validation, sock_connect_timeout, rate_limit, pulp_created, ca_cert, name, pulp_labels, proxy_url, sock_read_timeout, max_retries, pulp_last_updated, connect_timeout, headers, url, client_cert, total_timeout, hidden_fields, download_concurrency, pulp_href, metadata_only, git_ref].hash
390
+ [pulp_last_updated, url, max_retries, client_cert, tls_validation, total_timeout, connect_timeout, rate_limit, sock_read_timeout, download_concurrency, headers, proxy_url, ca_cert, sock_connect_timeout, pulp_labels, hidden_fields, name, pulp_href, pulp_created, 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
- # A URI of a repository the new content unit should be associated with.
19
- attr_accessor :repository
20
-
21
18
  # Artifact file representing the physical content
22
19
  attr_accessor :artifact
23
20
 
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
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
- :'repository' => :'repository',
34
33
  :'artifact' => :'artifact',
34
+ :'repository' => :'repository',
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
- :'repository' => :'String',
45
44
  :'artifact' => :'String',
45
+ :'repository' => :'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?(:'repository')
74
- self.repository = attributes[:'repository']
75
- end
76
-
77
73
  if attributes.key?(:'artifact')
78
74
  self.artifact = attributes[:'artifact']
79
75
  end
80
76
 
77
+ if attributes.key?(:'repository')
78
+ self.repository = attributes[:'repository']
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
- repository == o.repository &&
190
189
  artifact == o.artifact &&
190
+ repository == o.repository &&
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
- [repository, artifact, version, name, namespace].hash
205
+ [artifact, repository, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash
@@ -15,9 +15,6 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
18
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
22
19
  attr_accessor :pulp_last_updated
23
20
 
@@ -26,6 +23,9 @@ module PulpAnsibleClient
26
23
 
27
24
  attr_accessor :pulp_href
28
25
 
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
28
+
29
29
  attr_accessor :version
30
30
 
31
31
  attr_accessor :name
@@ -35,10 +35,10 @@ module PulpAnsibleClient
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
- :'pulp_created' => :'pulp_created',
39
38
  :'pulp_last_updated' => :'pulp_last_updated',
40
39
  :'artifact' => :'artifact',
41
40
  :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
42
42
  :'version' => :'version',
43
43
  :'name' => :'name',
44
44
  :'namespace' => :'namespace'
@@ -48,10 +48,10 @@ module PulpAnsibleClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'pulp_created' => :'DateTime',
52
51
  :'pulp_last_updated' => :'DateTime',
53
52
  :'artifact' => :'String',
54
53
  :'pulp_href' => :'String',
54
+ :'pulp_created' => :'DateTime',
55
55
  :'version' => :'String',
56
56
  :'name' => :'String',
57
57
  :'namespace' => :'String'
@@ -79,10 +79,6 @@ module PulpAnsibleClient
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
- if attributes.key?(:'pulp_created')
83
- self.pulp_created = attributes[:'pulp_created']
84
- end
85
-
86
82
  if attributes.key?(:'pulp_last_updated')
87
83
  self.pulp_last_updated = attributes[:'pulp_last_updated']
88
84
  end
@@ -95,6 +91,10 @@ module PulpAnsibleClient
95
91
  self.pulp_href = attributes[:'pulp_href']
96
92
  end
97
93
 
94
+ if attributes.key?(:'pulp_created')
95
+ self.pulp_created = attributes[:'pulp_created']
96
+ end
97
+
98
98
  if attributes.key?(:'version')
99
99
  self.version = attributes[:'version']
100
100
  end
@@ -146,10 +146,10 @@ module PulpAnsibleClient
146
146
  def ==(o)
147
147
  return true if self.equal?(o)
148
148
  self.class == o.class &&
149
- pulp_created == o.pulp_created &&
150
149
  pulp_last_updated == o.pulp_last_updated &&
151
150
  artifact == o.artifact &&
152
151
  pulp_href == o.pulp_href &&
152
+ pulp_created == o.pulp_created &&
153
153
  version == o.version &&
154
154
  name == o.name &&
155
155
  namespace == o.namespace
@@ -164,7 +164,7 @@ module PulpAnsibleClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [pulp_created, pulp_last_updated, artifact, pulp_href, version, name, namespace].hash
167
+ [pulp_last_updated, artifact, pulp_href, pulp_created, version, name, namespace].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  :'updated_at' => :'DateTime',
55
55
  :'started_at' => :'DateTime',
56
56
  :'finished_at' => :'DateTime',
57
- :'error' => :'Object',
58
- :'messages' => :'Object'
57
+ :'error' => :'AnyType',
58
+ :'messages' => :'AnyType'
59
59
  }
60
60
  end
61
61
 
@@ -55,8 +55,8 @@ module PulpAnsibleClient
55
55
  def self.openapi_types
56
56
  {
57
57
  :'authors' => :'Array<String>',
58
- :'contents' => :'Object',
59
- :'dependencies' => :'Object',
58
+ :'contents' => :'AnyType',
59
+ :'dependencies' => :'AnyType',
60
60
  :'description' => :'String',
61
61
  :'documentation' => :'String',
62
62
  :'homepage' => :'String',