pulp_ansible_client 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -32
  3. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  5. data/docs/AnsibleCollectionVersion.md +2 -2
  6. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  7. data/docs/AnsibleCollectionsApi.md +15 -9
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +23 -23
  10. data/docs/AnsibleGitRemoteResponse.md +21 -21
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +4 -4
  13. data/docs/ApiCollectionsApi.md +1 -1
  14. data/docs/ApiRolesApi.md +1 -1
  15. data/docs/CollectionImportApi.md +1 -1
  16. data/docs/CollectionVersionListResponse.md +1 -1
  17. data/docs/CollectionVersionResponse.md +1 -1
  18. data/docs/ContentCollectionDeprecationsApi.md +3 -1
  19. data/docs/ContentCollectionMarksApi.md +4 -2
  20. data/docs/ContentCollectionSignaturesApi.md +5 -3
  21. data/docs/ContentCollectionVersionsApi.md +3 -3
  22. data/docs/ContentNamespacesApi.md +19 -1
  23. data/docs/ContentRolesApi.md +3 -1
  24. data/docs/DistributionsAnsibleApi.md +136 -10
  25. data/docs/GalaxyDetailApi.md +1 -1
  26. data/docs/PatchedansibleGitRemote.md +23 -23
  27. data/docs/PulpAnsibleApiApi.md +1 -1
  28. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3Api.md +1 -1
  30. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -1
  33. data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -1
  34. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3NamespacesApi.md +19 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  46. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  47. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +19 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  67. data/docs/PulpAnsibleTagsApi.md +1 -1
  68. data/docs/RemotesCollectionApi.md +135 -9
  69. data/docs/RemotesGitApi.md +135 -9
  70. data/docs/RemotesRoleApi.md +135 -9
  71. data/docs/RepositoriesAnsibleApi.md +136 -10
  72. data/docs/RepositoriesAnsibleVersionsApi.md +3 -1
  73. data/docs/SetLabel.md +19 -0
  74. data/docs/SetLabelResponse.md +19 -0
  75. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  76. data/docs/UnsetLabel.md +17 -0
  77. data/docs/UnsetLabelResponse.md +19 -0
  78. data/docs/VersionsApi.md +1 -1
  79. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +11 -0
  80. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +3 -0
  81. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +3 -0
  82. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  83. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  84. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +27 -0
  85. data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -0
  86. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +163 -0
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -0
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +3 -0
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +27 -0
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +3 -0
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +3 -0
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +27 -0
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  99. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +163 -0
  100. data/lib/pulp_ansible_client/api/remotes_git_api.rb +163 -0
  101. data/lib/pulp_ansible_client/api/remotes_role_api.rb +163 -0
  102. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +163 -0
  103. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -0
  104. data/lib/pulp_ansible_client/configuration.rb +2 -2
  105. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
  106. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
  107. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  108. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  109. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +203 -203
  110. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +111 -111
  111. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  112. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  113. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +24 -0
  114. data/lib/pulp_ansible_client/models/collection_version_response.rb +24 -0
  115. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +198 -198
  116. data/lib/pulp_ansible_client/models/{progress_report_response.rb → set_label.rb} +52 -59
  117. data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
  118. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +24 -0
  119. data/lib/pulp_ansible_client/models/{task.rb → unset_label.rb} +31 -55
  120. data/lib/pulp_ansible_client/models/unset_label_response.rb +242 -0
  121. data/lib/pulp_ansible_client/version.rb +1 -1
  122. data/lib/pulp_ansible_client.rb +4 -3
  123. data/spec/api/ansible_collections_api_spec.rb +5 -0
  124. data/spec/api/content_collection_deprecations_api_spec.rb +1 -0
  125. data/spec/api/content_collection_marks_api_spec.rb +1 -0
  126. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  127. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  128. data/spec/api/content_namespaces_api_spec.rb +9 -0
  129. data/spec/api/content_roles_api_spec.rb +1 -0
  130. data/spec/api/distributions_ansible_api_spec.rb +35 -0
  131. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
  132. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
  133. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +9 -0
  134. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  135. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  136. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  137. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
  138. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
  139. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +9 -0
  140. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  141. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  142. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  143. data/spec/api/remotes_collection_api_spec.rb +35 -0
  144. data/spec/api/remotes_git_api_spec.rb +35 -0
  145. data/spec/api/remotes_role_api_spec.rb +35 -0
  146. data/spec/api/repositories_ansible_api_spec.rb +35 -0
  147. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -0
  148. data/spec/configuration_spec.rb +3 -3
  149. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  150. data/spec/models/ansible_collection_version_spec.rb +2 -2
  151. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  152. data/spec/models/ansible_git_remote_spec.rb +19 -19
  153. data/spec/models/ansible_role_response_spec.rb +2 -2
  154. data/spec/models/ansible_role_spec.rb +2 -2
  155. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  156. data/spec/models/set_label_response_spec.rb +47 -0
  157. data/spec/models/{task_spec.rb → set_label_spec.rb} +8 -8
  158. data/spec/models/unset_label_response_spec.rb +47 -0
  159. data/spec/models/unset_label_spec.rb +41 -0
  160. metadata +147 -143
  161. data/docs/ProgressReportResponse.md +0 -27
  162. data/docs/Task.md +0 -19
  163. data/docs/TaskResponse.md +0 -47
  164. data/lib/pulp_ansible_client/models/task_response.rb +0 -376
  165. data/spec/models/progress_report_response_spec.rb +0 -71
  166. data/spec/models/task_response_spec.rb +0 -131
@@ -15,61 +15,61 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
+ # Limits requests per second for each concurrent downloader
19
+ attr_accessor :rate_limit
20
+
18
21
  # Total number of simultaneous connections. If not set then the default value will be used.
19
22
  attr_accessor :download_concurrency
20
23
 
21
24
  # A unique name for this remote.
22
25
  attr_accessor :name
23
26
 
24
- # Limits requests per second for each concurrent downloader
25
- attr_accessor :rate_limit
26
-
27
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
- attr_accessor :ca_cert
29
-
30
27
  # The proxy URL. Format: scheme://host:port
31
28
  attr_accessor :proxy_url
32
29
 
33
- attr_accessor :pulp_href
30
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
+ attr_accessor :max_retries
34
32
 
35
- # Timestamp of the most recent update of the remote.
36
- attr_accessor :pulp_last_updated
33
+ # The URL of an external content source.
34
+ attr_accessor :url
37
35
 
38
36
  # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
37
  attr_accessor :sock_connect_timeout
40
38
 
41
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
42
- attr_accessor :total_timeout
43
-
44
- # The URL of an external content source.
45
- attr_accessor :url
39
+ # Timestamp of the most recent update of the remote.
40
+ attr_accessor :pulp_last_updated
46
41
 
47
42
  # List of hidden (write only) fields
48
43
  attr_accessor :hidden_fields
49
44
 
50
- attr_accessor :pulp_labels
45
+ # Timestamp of creation.
46
+ attr_accessor :pulp_created
51
47
 
52
48
  # 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
49
  attr_accessor :connect_timeout
54
50
 
55
- # Timestamp of creation.
56
- attr_accessor :pulp_created
51
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
52
+ attr_accessor :total_timeout
53
+
54
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
55
+ attr_accessor :ca_cert
56
+
57
+ attr_accessor :pulp_labels
58
+
59
+ attr_accessor :pulp_href
57
60
 
58
61
  # Headers for aiohttp.Clientsession
59
62
  attr_accessor :headers
60
63
 
64
+ # A PEM encoded client certificate used for authentication.
65
+ attr_accessor :client_cert
66
+
61
67
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
68
  attr_accessor :sock_read_timeout
63
69
 
64
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
65
- attr_accessor :max_retries
66
-
67
70
  # If True, TLS peer validation must be performed.
68
71
  attr_accessor :tls_validation
69
72
 
70
- # A PEM encoded client certificate used for authentication.
71
- attr_accessor :client_cert
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
+ :'rate_limit' => :'rate_limit',
82
83
  :'download_concurrency' => :'download_concurrency',
83
84
  :'name' => :'name',
84
- :'rate_limit' => :'rate_limit',
85
- :'ca_cert' => :'ca_cert',
86
85
  :'proxy_url' => :'proxy_url',
87
- :'pulp_href' => :'pulp_href',
88
- :'pulp_last_updated' => :'pulp_last_updated',
89
- :'sock_connect_timeout' => :'sock_connect_timeout',
90
- :'total_timeout' => :'total_timeout',
86
+ :'max_retries' => :'max_retries',
91
87
  :'url' => :'url',
88
+ :'sock_connect_timeout' => :'sock_connect_timeout',
89
+ :'pulp_last_updated' => :'pulp_last_updated',
92
90
  :'hidden_fields' => :'hidden_fields',
93
- :'pulp_labels' => :'pulp_labels',
94
- :'connect_timeout' => :'connect_timeout',
95
91
  :'pulp_created' => :'pulp_created',
92
+ :'connect_timeout' => :'connect_timeout',
93
+ :'total_timeout' => :'total_timeout',
94
+ :'ca_cert' => :'ca_cert',
95
+ :'pulp_labels' => :'pulp_labels',
96
+ :'pulp_href' => :'pulp_href',
96
97
  :'headers' => :'headers',
98
+ :'client_cert' => :'client_cert',
97
99
  :'sock_read_timeout' => :'sock_read_timeout',
98
- :'max_retries' => :'max_retries',
99
100
  :'tls_validation' => :'tls_validation',
100
- :'client_cert' => :'client_cert',
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
+ :'rate_limit' => :'Integer',
109
110
  :'download_concurrency' => :'Integer',
110
111
  :'name' => :'String',
111
- :'rate_limit' => :'Integer',
112
- :'ca_cert' => :'String',
113
112
  :'proxy_url' => :'String',
114
- :'pulp_href' => :'String',
115
- :'pulp_last_updated' => :'DateTime',
116
- :'sock_connect_timeout' => :'Float',
117
- :'total_timeout' => :'Float',
113
+ :'max_retries' => :'Integer',
118
114
  :'url' => :'String',
115
+ :'sock_connect_timeout' => :'Float',
116
+ :'pulp_last_updated' => :'DateTime',
119
117
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
120
- :'pulp_labels' => :'Hash<String, String>',
121
- :'connect_timeout' => :'Float',
122
118
  :'pulp_created' => :'DateTime',
119
+ :'connect_timeout' => :'Float',
120
+ :'total_timeout' => :'Float',
121
+ :'ca_cert' => :'String',
122
+ :'pulp_labels' => :'Hash<String, String>',
123
+ :'pulp_href' => :'String',
123
124
  :'headers' => :'Array<Object>',
125
+ :'client_cert' => :'String',
124
126
  :'sock_read_timeout' => :'Float',
125
- :'max_retries' => :'Integer',
126
127
  :'tls_validation' => :'Boolean',
127
- :'client_cert' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'download_concurrency',
137
136
  :'rate_limit',
138
- :'ca_cert',
137
+ :'download_concurrency',
139
138
  :'proxy_url',
139
+ :'max_retries',
140
140
  :'sock_connect_timeout',
141
- :'total_timeout',
142
141
  :'connect_timeout',
143
- :'sock_read_timeout',
144
- :'max_retries',
142
+ :'total_timeout',
143
+ :'ca_cert',
145
144
  :'client_cert',
145
+ :'sock_read_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,6 +161,10 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
+ if attributes.key?(:'rate_limit')
165
+ self.rate_limit = attributes[:'rate_limit']
166
+ end
167
+
164
168
  if attributes.key?(:'download_concurrency')
165
169
  self.download_concurrency = attributes[:'download_concurrency']
166
170
  end
@@ -169,36 +173,24 @@ module PulpAnsibleClient
169
173
  self.name = attributes[:'name']
170
174
  end
171
175
 
172
- if attributes.key?(:'rate_limit')
173
- self.rate_limit = attributes[:'rate_limit']
174
- end
175
-
176
- if attributes.key?(:'ca_cert')
177
- self.ca_cert = attributes[:'ca_cert']
178
- end
179
-
180
176
  if attributes.key?(:'proxy_url')
181
177
  self.proxy_url = attributes[:'proxy_url']
182
178
  end
183
179
 
184
- if attributes.key?(:'pulp_href')
185
- self.pulp_href = attributes[:'pulp_href']
180
+ if attributes.key?(:'max_retries')
181
+ self.max_retries = attributes[:'max_retries']
186
182
  end
187
183
 
188
- if attributes.key?(:'pulp_last_updated')
189
- self.pulp_last_updated = attributes[:'pulp_last_updated']
184
+ if attributes.key?(:'url')
185
+ self.url = attributes[:'url']
190
186
  end
191
187
 
192
188
  if attributes.key?(:'sock_connect_timeout')
193
189
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
194
190
  end
195
191
 
196
- if attributes.key?(:'total_timeout')
197
- self.total_timeout = attributes[:'total_timeout']
198
- end
199
-
200
- if attributes.key?(:'url')
201
- self.url = attributes[:'url']
192
+ if attributes.key?(:'pulp_last_updated')
193
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
202
194
  end
203
195
 
204
196
  if attributes.key?(:'hidden_fields')
@@ -207,18 +199,30 @@ module PulpAnsibleClient
207
199
  end
208
200
  end
209
201
 
210
- if attributes.key?(:'pulp_labels')
211
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
- self.pulp_labels = value
213
- end
202
+ if attributes.key?(:'pulp_created')
203
+ self.pulp_created = attributes[:'pulp_created']
214
204
  end
215
205
 
216
206
  if attributes.key?(:'connect_timeout')
217
207
  self.connect_timeout = attributes[:'connect_timeout']
218
208
  end
219
209
 
220
- if attributes.key?(:'pulp_created')
221
- self.pulp_created = attributes[:'pulp_created']
210
+ if attributes.key?(:'total_timeout')
211
+ self.total_timeout = attributes[:'total_timeout']
212
+ end
213
+
214
+ if attributes.key?(:'ca_cert')
215
+ self.ca_cert = attributes[:'ca_cert']
216
+ end
217
+
218
+ if attributes.key?(:'pulp_labels')
219
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
220
+ self.pulp_labels = value
221
+ end
222
+ end
223
+
224
+ if attributes.key?(:'pulp_href')
225
+ self.pulp_href = attributes[:'pulp_href']
222
226
  end
223
227
 
224
228
  if attributes.key?(:'headers')
@@ -227,22 +231,18 @@ module PulpAnsibleClient
227
231
  end
228
232
  end
229
233
 
230
- if attributes.key?(:'sock_read_timeout')
231
- self.sock_read_timeout = attributes[:'sock_read_timeout']
234
+ if attributes.key?(:'client_cert')
235
+ self.client_cert = attributes[:'client_cert']
232
236
  end
233
237
 
234
- if attributes.key?(:'max_retries')
235
- self.max_retries = attributes[:'max_retries']
238
+ if attributes.key?(:'sock_read_timeout')
239
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
236
240
  end
237
241
 
238
242
  if attributes.key?(:'tls_validation')
239
243
  self.tls_validation = attributes[:'tls_validation']
240
244
  end
241
245
 
242
- if attributes.key?(:'client_cert')
243
- self.client_cert = attributes[:'client_cert']
244
- end
245
-
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -264,22 +264,22 @@ module PulpAnsibleClient
264
264
  invalid_properties.push('invalid value for "name", name cannot be nil.')
265
265
  end
266
266
 
267
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
269
- end
270
-
271
- if !@total_timeout.nil? && @total_timeout < 0.0
272
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
273
- end
274
-
275
267
  if @url.nil?
276
268
  invalid_properties.push('invalid value for "url", url cannot be nil.')
277
269
  end
278
270
 
271
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
272
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
273
+ end
274
+
279
275
  if !@connect_timeout.nil? && @connect_timeout < 0.0
280
276
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
281
277
  end
282
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.')
281
+ end
282
+
283
283
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
284
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
285
285
  end
@@ -292,10 +292,10 @@ module PulpAnsibleClient
292
292
  def valid?
293
293
  return false if !@download_concurrency.nil? && @download_concurrency < 1
294
294
  return false if @name.nil?
295
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
- return false if !@total_timeout.nil? && @total_timeout < 0.0
297
295
  return false if @url.nil?
296
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
298
297
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
298
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
299
299
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
300
300
  true
301
301
  end
@@ -320,16 +320,6 @@ module PulpAnsibleClient
320
320
  @sock_connect_timeout = sock_connect_timeout
321
321
  end
322
322
 
323
- # Custom attribute writer method with validation
324
- # @param [Object] total_timeout Value to be assigned
325
- def total_timeout=(total_timeout)
326
- if !total_timeout.nil? && total_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
328
- end
329
-
330
- @total_timeout = total_timeout
331
- end
332
-
333
323
  # Custom attribute writer method with validation
334
324
  # @param [Object] connect_timeout Value to be assigned
335
325
  def connect_timeout=(connect_timeout)
@@ -340,6 +330,16 @@ module PulpAnsibleClient
340
330
  @connect_timeout = connect_timeout
341
331
  end
342
332
 
333
+ # 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.'
338
+ end
339
+
340
+ @total_timeout = total_timeout
341
+ end
342
+
343
343
  # Custom attribute writer method with validation
344
344
  # @param [Object] sock_read_timeout Value to be assigned
345
345
  def sock_read_timeout=(sock_read_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
+ rate_limit == o.rate_limit &&
358
359
  download_concurrency == o.download_concurrency &&
359
360
  name == o.name &&
360
- rate_limit == o.rate_limit &&
361
- ca_cert == o.ca_cert &&
362
361
  proxy_url == o.proxy_url &&
363
- pulp_href == o.pulp_href &&
364
- pulp_last_updated == o.pulp_last_updated &&
365
- sock_connect_timeout == o.sock_connect_timeout &&
366
- total_timeout == o.total_timeout &&
362
+ max_retries == o.max_retries &&
367
363
  url == o.url &&
364
+ sock_connect_timeout == o.sock_connect_timeout &&
365
+ pulp_last_updated == o.pulp_last_updated &&
368
366
  hidden_fields == o.hidden_fields &&
369
- pulp_labels == o.pulp_labels &&
370
- connect_timeout == o.connect_timeout &&
371
367
  pulp_created == o.pulp_created &&
368
+ connect_timeout == o.connect_timeout &&
369
+ total_timeout == o.total_timeout &&
370
+ ca_cert == o.ca_cert &&
371
+ pulp_labels == o.pulp_labels &&
372
+ pulp_href == o.pulp_href &&
372
373
  headers == o.headers &&
374
+ client_cert == o.client_cert &&
373
375
  sock_read_timeout == o.sock_read_timeout &&
374
- max_retries == o.max_retries &&
375
376
  tls_validation == o.tls_validation &&
376
- client_cert == o.client_cert &&
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
- [download_concurrency, name, rate_limit, ca_cert, proxy_url, pulp_href, pulp_last_updated, sock_connect_timeout, total_timeout, url, hidden_fields, pulp_labels, connect_timeout, pulp_created, headers, sock_read_timeout, max_retries, tls_validation, client_cert, metadata_only, git_ref].hash
390
+ [rate_limit, download_concurrency, name, proxy_url, max_retries, url, sock_connect_timeout, pulp_last_updated, hidden_fields, pulp_created, connect_timeout, total_timeout, ca_cert, pulp_labels, pulp_href, headers, client_cert, sock_read_timeout, tls_validation, 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
@@ -15,13 +15,13 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
18
+ attr_accessor :pulp_href
20
19
 
21
20
  # Timestamp of creation.
22
21
  attr_accessor :pulp_created
23
22
 
24
- attr_accessor :pulp_href
23
+ # Artifact file representing the physical content
24
+ attr_accessor :artifact
25
25
 
26
26
  attr_accessor :version
27
27
 
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'artifact' => :'artifact',
36
- :'pulp_created' => :'pulp_created',
37
35
  :'pulp_href' => :'pulp_href',
36
+ :'pulp_created' => :'pulp_created',
37
+ :'artifact' => :'artifact',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'artifact' => :'String',
48
- :'pulp_created' => :'DateTime',
49
47
  :'pulp_href' => :'String',
48
+ :'pulp_created' => :'DateTime',
49
+ :'artifact' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,16 +74,16 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
- if attributes.key?(:'artifact')
78
- self.artifact = attributes[:'artifact']
77
+ if attributes.key?(:'pulp_href')
78
+ self.pulp_href = attributes[:'pulp_href']
79
79
  end
80
80
 
81
81
  if attributes.key?(:'pulp_created')
82
82
  self.pulp_created = attributes[:'pulp_created']
83
83
  end
84
84
 
85
- if attributes.key?(:'pulp_href')
86
- self.pulp_href = attributes[:'pulp_href']
85
+ if attributes.key?(:'artifact')
86
+ self.artifact = attributes[:'artifact']
87
87
  end
88
88
 
89
89
  if attributes.key?(:'version')
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- artifact == o.artifact &&
141
- pulp_created == o.pulp_created &&
142
140
  pulp_href == o.pulp_href &&
141
+ pulp_created == o.pulp_created &&
142
+ artifact == o.artifact &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [artifact, pulp_created, pulp_href, version, name, namespace].hash
157
+ [pulp_href, pulp_created, artifact, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -106,6 +106,14 @@ module PulpAnsibleClient
106
106
  # @return Array for valid properties with the reasons
107
107
  def list_invalid_properties
108
108
  invalid_properties = Array.new
109
+ if @version.nil?
110
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
111
+ end
112
+
113
+ if @version.to_s.length > 128
114
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
115
+ end
116
+
109
117
  if @created_at.nil?
110
118
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
111
119
  end
@@ -124,12 +132,28 @@ module PulpAnsibleClient
124
132
  # Check to see if the all the properties in the model are valid
125
133
  # @return true if the model is valid
126
134
  def valid?
135
+ return false if @version.nil?
136
+ return false if @version.to_s.length > 128
127
137
  return false if @created_at.nil?
128
138
  return false if @updated_at.nil?
129
139
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
130
140
  true
131
141
  end
132
142
 
143
+ # Custom attribute writer method with validation
144
+ # @param [Object] version Value to be assigned
145
+ def version=(version)
146
+ if version.nil?
147
+ fail ArgumentError, 'version cannot be nil'
148
+ end
149
+
150
+ if version.to_s.length > 128
151
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
152
+ end
153
+
154
+ @version = version
155
+ end
156
+
133
157
  # Custom attribute writer method with validation
134
158
  # @param [Object] requires_ansible Value to be assigned
135
159
  def requires_ansible=(requires_ansible)
@@ -201,6 +201,14 @@ module PulpAnsibleClient
201
201
  # @return Array for valid properties with the reasons
202
202
  def list_invalid_properties
203
203
  invalid_properties = Array.new
204
+ if @version.nil?
205
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
206
+ end
207
+
208
+ if @version.to_s.length > 128
209
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
210
+ end
211
+
204
212
  if @created_at.nil?
205
213
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
206
214
  end
@@ -223,6 +231,8 @@ module PulpAnsibleClient
223
231
  # Check to see if the all the properties in the model are valid
224
232
  # @return true if the model is valid
225
233
  def valid?
234
+ return false if @version.nil?
235
+ return false if @version.to_s.length > 128
226
236
  return false if @created_at.nil?
227
237
  return false if @updated_at.nil?
228
238
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
@@ -230,6 +240,20 @@ module PulpAnsibleClient
230
240
  true
231
241
  end
232
242
 
243
+ # Custom attribute writer method with validation
244
+ # @param [Object] version Value to be assigned
245
+ def version=(version)
246
+ if version.nil?
247
+ fail ArgumentError, 'version cannot be nil'
248
+ end
249
+
250
+ if version.to_s.length > 128
251
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
252
+ end
253
+
254
+ @version = version
255
+ end
256
+
233
257
  # Custom attribute writer method with validation
234
258
  # @param [Object] requires_ansible Value to be assigned
235
259
  def requires_ansible=(requires_ansible)