pulp_ansible_client 0.21.7 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) 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 +6 -6
  6. data/docs/AnsibleCollectionVersionResponse.md +10 -10
  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 +28 -28
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +5 -5
  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 +7 -7
  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 +9 -9
  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_remote.rb +20 -20
  86. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  87. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +25 -25
  88. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -25
  89. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +230 -230
  90. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +161 -161
  91. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  92. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  93. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  94. data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
  95. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  97. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  98. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  99. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  100. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  101. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  102. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  103. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +216 -216
  104. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  105. data/lib/pulp_ansible_client/version.rb +1 -1
  106. data/lib/pulp_ansible_client.rb +4 -10
  107. data/spec/api/ansible_collections_api_spec.rb +14 -0
  108. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  109. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  110. 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
  111. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  112. data/spec/api/versions_api_spec.rb +0 -14
  113. data/spec/configuration_spec.rb +3 -3
  114. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  115. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  116. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  117. data/spec/models/ansible_collection_version_spec.rb +4 -4
  118. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  119. data/spec/models/ansible_git_remote_spec.rb +19 -19
  120. data/spec/models/ansible_role_response_spec.rb +4 -4
  121. data/spec/models/ansible_role_spec.rb +2 -2
  122. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  123. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  124. metadata +155 -179
  125. data/docs/ApiCollectionsApi.md +0 -112
  126. data/docs/GalaxyCollection.md +0 -23
  127. data/docs/GalaxyCollectionResponse.md +0 -31
  128. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  129. data/docs/GalaxyDetailApi.md +0 -61
  130. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  131. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  132. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  133. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  134. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  135. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  136. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  137. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
  138. data/spec/api/api_collections_api_spec.rb +0 -61
  139. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  140. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  141. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  142. data/spec/models/galaxy_collection_spec.rb +0 -59
  143. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -90,74 +90,5 @@ module PulpAnsibleClient
90
90
  end
91
91
  return data, status_code, headers
92
92
  end
93
-
94
- # APIView for Collections by namespace/name.
95
- # @param ansible_collection_version_href [String]
96
- # @param [Hash] opts the optional parameters
97
- # @option opts [Integer] :page A page number within the paginated result set.
98
- # @option opts [Array<String>] :fields A list of fields to include in the response.
99
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
100
- # @return [PaginatedGalaxyCollectionVersionResponseList]
101
- def api_v2_collection_versions_list(ansible_collection_version_href, opts = {})
102
- data, _status_code, _headers = api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts)
103
- data
104
- end
105
-
106
- # APIView for Collections by namespace/name.
107
- # @param ansible_collection_version_href [String]
108
- # @param [Hash] opts the optional parameters
109
- # @option opts [Integer] :page A page number within the paginated result set.
110
- # @option opts [Array<String>] :fields A list of fields to include in the response.
111
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
112
- # @return [Array<(PaginatedGalaxyCollectionVersionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionVersionResponseList data, response status code and response headers
113
- def api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts = {})
114
- if @api_client.config.debugging
115
- @api_client.config.logger.debug 'Calling API: VersionsApi.api_v2_collection_versions_list ...'
116
- end
117
- # verify the required parameter 'ansible_collection_version_href' is set
118
- if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
119
- fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling VersionsApi.api_v2_collection_versions_list"
120
- end
121
- # resource path
122
- local_var_path = '{ansible_collection_version_href}versions/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
123
-
124
- # query parameters
125
- query_params = opts[:query_params] || {}
126
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
127
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
128
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
129
-
130
- # header parameters
131
- header_params = opts[:header_params] || {}
132
- # HTTP header 'Accept' (if needed)
133
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
134
-
135
- # form parameters
136
- form_params = opts[:form_params] || {}
137
-
138
- # http body (model)
139
- post_body = opts[:body]
140
-
141
- # return_type
142
- return_type = opts[:return_type] || 'PaginatedGalaxyCollectionVersionResponseList'
143
-
144
- # auth_names
145
- auth_names = opts[:auth_names] || []
146
-
147
- new_options = opts.merge(
148
- :header_params => header_params,
149
- :query_params => query_params,
150
- :form_params => form_params,
151
- :body => post_body,
152
- :auth_names => auth_names,
153
- :return_type => return_type
154
- )
155
-
156
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
- if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: VersionsApi#api_v2_collection_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
- end
160
- return data, status_code, headers
161
- end
162
93
  end
163
94
  end
@@ -128,7 +128,7 @@ module PulpAnsibleClient
128
128
 
129
129
  def initialize
130
130
  @scheme = 'http'
131
- @host = 'localhost'
131
+ @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpAnsibleClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "http://localhost:24817/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -13,8 +13,11 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # A serializer for Ansible Collections.
17
- class AnsibleCollection
16
+ # A serializer for Ansible Collection Deprecations.
17
+ class AnsibleAnsibleCollectionDeprecated
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # The name of the Collection.
19
22
  attr_accessor :name
20
23
 
@@ -24,6 +27,7 @@ module PulpAnsibleClient
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
30
+ :'repository' => :'repository',
27
31
  :'name' => :'name',
28
32
  :'namespace' => :'namespace'
29
33
  }
@@ -32,6 +36,7 @@ module PulpAnsibleClient
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
39
+ :'repository' => :'String',
35
40
  :'name' => :'String',
36
41
  :'namespace' => :'String'
37
42
  }
@@ -47,17 +52,21 @@ module PulpAnsibleClient
47
52
  # @param [Hash] attributes Model attributes in the form of hash
48
53
  def initialize(attributes = {})
49
54
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollection` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecated` initialize method"
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
54
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
60
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecated`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
62
  end
58
63
  h[k.to_sym] = v
59
64
  }
60
65
 
66
+ if attributes.key?(:'repository')
67
+ self.repository = attributes[:'repository']
68
+ end
69
+
61
70
  if attributes.key?(:'name')
62
71
  self.name = attributes[:'name']
63
72
  end
@@ -133,6 +142,7 @@ module PulpAnsibleClient
133
142
  def ==(o)
134
143
  return true if self.equal?(o)
135
144
  self.class == o.class &&
145
+ repository == o.repository &&
136
146
  name == o.name &&
137
147
  namespace == o.namespace
138
148
  end
@@ -146,7 +156,7 @@ module PulpAnsibleClient
146
156
  # Calculates hash code according to all attributes.
147
157
  # @return [Integer] Hash code
148
158
  def hash
149
- [name, namespace].hash
159
+ [repository, name, namespace].hash
150
160
  end
151
161
 
152
162
  # Builds the object from hash
@@ -13,45 +13,41 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # A serializer for a CollectionVersion.
17
- class GalaxyCollectionVersionResponse
18
- attr_accessor :version
16
+ # A serializer for Ansible Collection Deprecations.
17
+ class AnsibleAnsibleCollectionDeprecatedResponse
18
+ attr_accessor :pulp_href
19
19
 
20
- # Get href.
21
- attr_accessor :href
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
22
 
23
- # Create a namespace dict.
24
- attr_accessor :namespace
25
-
26
- # Create a collection dict.
27
- attr_accessor :collection
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
28
25
 
29
- # Create an artifact dict.
30
- attr_accessor :artifact
26
+ # The name of the Collection.
27
+ attr_accessor :name
31
28
 
32
- attr_accessor :metadata
29
+ # The namespace of the Collection.
30
+ attr_accessor :namespace
33
31
 
34
32
  # Attribute mapping from ruby-style variable name to JSON key.
35
33
  def self.attribute_map
36
34
  {
37
- :'version' => :'version',
38
- :'href' => :'href',
39
- :'namespace' => :'namespace',
40
- :'collection' => :'collection',
41
- :'artifact' => :'artifact',
42
- :'metadata' => :'metadata'
35
+ :'pulp_href' => :'pulp_href',
36
+ :'pulp_created' => :'pulp_created',
37
+ :'pulp_last_updated' => :'pulp_last_updated',
38
+ :'name' => :'name',
39
+ :'namespace' => :'namespace'
43
40
  }
44
41
  end
45
42
 
46
43
  # Attribute type mapping.
47
44
  def self.openapi_types
48
45
  {
49
- :'version' => :'String',
50
- :'href' => :'String',
51
- :'namespace' => :'Object',
52
- :'collection' => :'Object',
53
- :'artifact' => :'Object',
54
- :'metadata' => :'CollectionMetadataResponse'
46
+ :'pulp_href' => :'String',
47
+ :'pulp_created' => :'DateTime',
48
+ :'pulp_last_updated' => :'DateTime',
49
+ :'name' => :'String',
50
+ :'namespace' => :'String'
55
51
  }
56
52
  end
57
53
 
@@ -65,39 +61,35 @@ module PulpAnsibleClient
65
61
  # @param [Hash] attributes Model attributes in the form of hash
66
62
  def initialize(attributes = {})
67
63
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollectionVersionResponse` initialize method"
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecatedResponse` initialize method"
69
65
  end
70
66
 
71
67
  # check to see if the attribute exists and convert string to symbol for hash key
72
68
  attributes = attributes.each_with_object({}) { |(k, v), h|
73
69
  if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyCollectionVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecatedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
71
  end
76
72
  h[k.to_sym] = v
77
73
  }
78
74
 
79
- if attributes.key?(:'version')
80
- self.version = attributes[:'version']
75
+ if attributes.key?(:'pulp_href')
76
+ self.pulp_href = attributes[:'pulp_href']
81
77
  end
82
78
 
83
- if attributes.key?(:'href')
84
- self.href = attributes[:'href']
79
+ if attributes.key?(:'pulp_created')
80
+ self.pulp_created = attributes[:'pulp_created']
85
81
  end
86
82
 
87
- if attributes.key?(:'namespace')
88
- self.namespace = attributes[:'namespace']
83
+ if attributes.key?(:'pulp_last_updated')
84
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
89
85
  end
90
86
 
91
- if attributes.key?(:'collection')
92
- self.collection = attributes[:'collection']
87
+ if attributes.key?(:'name')
88
+ self.name = attributes[:'name']
93
89
  end
94
90
 
95
- if attributes.key?(:'artifact')
96
- self.artifact = attributes[:'artifact']
97
- end
98
-
99
- if attributes.key?(:'metadata')
100
- self.metadata = attributes[:'metadata']
91
+ if attributes.key?(:'namespace')
92
+ self.namespace = attributes[:'namespace']
101
93
  end
102
94
  end
103
95
 
@@ -105,12 +97,12 @@ module PulpAnsibleClient
105
97
  # @return Array for valid properties with the reasons
106
98
  def list_invalid_properties
107
99
  invalid_properties = Array.new
108
- if @version.nil?
109
- invalid_properties.push('invalid value for "version", version cannot be nil.')
100
+ if @name.nil?
101
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
110
102
  end
111
103
 
112
- if @metadata.nil?
113
- invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
104
+ if @namespace.nil?
105
+ invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
114
106
  end
115
107
 
116
108
  invalid_properties
@@ -119,8 +111,8 @@ module PulpAnsibleClient
119
111
  # Check to see if the all the properties in the model are valid
120
112
  # @return true if the model is valid
121
113
  def valid?
122
- return false if @version.nil?
123
- return false if @metadata.nil?
114
+ return false if @name.nil?
115
+ return false if @namespace.nil?
124
116
  true
125
117
  end
126
118
 
@@ -129,12 +121,11 @@ module PulpAnsibleClient
129
121
  def ==(o)
130
122
  return true if self.equal?(o)
131
123
  self.class == o.class &&
132
- version == o.version &&
133
- href == o.href &&
134
- namespace == o.namespace &&
135
- collection == o.collection &&
136
- artifact == o.artifact &&
137
- metadata == o.metadata
124
+ pulp_href == o.pulp_href &&
125
+ pulp_created == o.pulp_created &&
126
+ pulp_last_updated == o.pulp_last_updated &&
127
+ name == o.name &&
128
+ namespace == o.namespace
138
129
  end
139
130
 
140
131
  # @see the `==` method
@@ -146,7 +137,7 @@ module PulpAnsibleClient
146
137
  # Calculates hash code according to all attributes.
147
138
  # @return [Integer] Hash code
148
139
  def hash
149
- [version, href, namespace, collection, artifact, metadata].hash
140
+ [pulp_href, pulp_created, pulp_last_updated, name, namespace].hash
150
141
  end
151
142
 
152
143
  # Builds the object from hash
@@ -364,20 +364,20 @@ module PulpAnsibleClient
364
364
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
365
365
  end
366
366
 
367
- if !@total_timeout.nil? && @total_timeout < 0
368
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
367
+ if !@total_timeout.nil? && @total_timeout < 0.0
368
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
369
369
  end
370
370
 
371
- if !@connect_timeout.nil? && @connect_timeout < 0
372
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
371
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
372
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
373
373
  end
374
374
 
375
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
376
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
375
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
376
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
377
377
  end
378
378
 
379
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
380
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
379
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
380
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
381
381
  end
382
382
 
383
383
  if !@requirements_file.nil? && @requirements_file.to_s.length < 1
@@ -419,10 +419,10 @@ module PulpAnsibleClient
419
419
  return false if !@username.nil? && @username.to_s.length < 1
420
420
  return false if !@password.nil? && @password.to_s.length < 1
421
421
  return false if !@download_concurrency.nil? && @download_concurrency < 1
422
- return false if !@total_timeout.nil? && @total_timeout < 0
423
- return false if !@connect_timeout.nil? && @connect_timeout < 0
424
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
425
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
422
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
423
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
424
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
425
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
426
426
  return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
427
427
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
428
428
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
@@ -552,8 +552,8 @@ module PulpAnsibleClient
552
552
  # Custom attribute writer method with validation
553
553
  # @param [Object] total_timeout Value to be assigned
554
554
  def total_timeout=(total_timeout)
555
- if !total_timeout.nil? && total_timeout < 0
556
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
555
+ if !total_timeout.nil? && total_timeout < 0.0
556
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
557
557
  end
558
558
 
559
559
  @total_timeout = total_timeout
@@ -562,8 +562,8 @@ module PulpAnsibleClient
562
562
  # Custom attribute writer method with validation
563
563
  # @param [Object] connect_timeout Value to be assigned
564
564
  def connect_timeout=(connect_timeout)
565
- if !connect_timeout.nil? && connect_timeout < 0
566
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
565
+ if !connect_timeout.nil? && connect_timeout < 0.0
566
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
567
567
  end
568
568
 
569
569
  @connect_timeout = connect_timeout
@@ -572,8 +572,8 @@ module PulpAnsibleClient
572
572
  # Custom attribute writer method with validation
573
573
  # @param [Object] sock_connect_timeout Value to be assigned
574
574
  def sock_connect_timeout=(sock_connect_timeout)
575
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
576
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
575
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
576
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
577
577
  end
578
578
 
579
579
  @sock_connect_timeout = sock_connect_timeout
@@ -582,8 +582,8 @@ module PulpAnsibleClient
582
582
  # Custom attribute writer method with validation
583
583
  # @param [Object] sock_read_timeout Value to be assigned
584
584
  def sock_read_timeout=(sock_read_timeout)
585
- if !sock_read_timeout.nil? && sock_read_timeout < 0
586
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
585
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
586
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
587
587
  end
588
588
 
589
589
  @sock_read_timeout = sock_read_timeout
@@ -309,20 +309,20 @@ module PulpAnsibleClient
309
309
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
310
310
  end
311
311
 
312
- if !@total_timeout.nil? && @total_timeout < 0
313
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
312
+ if !@total_timeout.nil? && @total_timeout < 0.0
313
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
314
314
  end
315
315
 
316
- if !@connect_timeout.nil? && @connect_timeout < 0
317
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
316
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
317
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
318
318
  end
319
319
 
320
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
321
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
320
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
321
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
322
322
  end
323
323
 
324
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
325
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
324
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
325
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
326
326
  end
327
327
 
328
328
  if !@auth_url.nil? && @auth_url.to_s.length > 255
@@ -338,10 +338,10 @@ module PulpAnsibleClient
338
338
  return false if @name.nil?
339
339
  return false if @url.nil?
340
340
  return false if !@download_concurrency.nil? && @download_concurrency < 1
341
- return false if !@total_timeout.nil? && @total_timeout < 0
342
- return false if !@connect_timeout.nil? && @connect_timeout < 0
343
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
344
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
341
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
342
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
343
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
344
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
345
345
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
346
346
  true
347
347
  end
@@ -359,8 +359,8 @@ module PulpAnsibleClient
359
359
  # Custom attribute writer method with validation
360
360
  # @param [Object] total_timeout Value to be assigned
361
361
  def total_timeout=(total_timeout)
362
- if !total_timeout.nil? && total_timeout < 0
363
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
362
+ if !total_timeout.nil? && total_timeout < 0.0
363
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
364
364
  end
365
365
 
366
366
  @total_timeout = total_timeout
@@ -369,8 +369,8 @@ module PulpAnsibleClient
369
369
  # Custom attribute writer method with validation
370
370
  # @param [Object] connect_timeout Value to be assigned
371
371
  def connect_timeout=(connect_timeout)
372
- if !connect_timeout.nil? && connect_timeout < 0
373
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
372
+ if !connect_timeout.nil? && connect_timeout < 0.0
373
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
374
374
  end
375
375
 
376
376
  @connect_timeout = connect_timeout
@@ -379,8 +379,8 @@ module PulpAnsibleClient
379
379
  # Custom attribute writer method with validation
380
380
  # @param [Object] sock_connect_timeout Value to be assigned
381
381
  def sock_connect_timeout=(sock_connect_timeout)
382
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
383
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
382
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
383
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
384
384
  end
385
385
 
386
386
  @sock_connect_timeout = sock_connect_timeout
@@ -389,8 +389,8 @@ module PulpAnsibleClient
389
389
  # Custom attribute writer method with validation
390
390
  # @param [Object] sock_read_timeout Value to be assigned
391
391
  def sock_read_timeout=(sock_read_timeout)
392
- if !sock_read_timeout.nil? && sock_read_timeout < 0
393
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
392
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
393
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
394
394
  end
395
395
 
396
396
  @sock_read_timeout = sock_read_timeout
@@ -15,17 +15,17 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # A URI of a repository the new content unit should be associated with.
19
- attr_accessor :repository
20
-
21
- # Artifact file representing the physical content
22
- attr_accessor :artifact
18
+ # An uncommitted upload that may be turned into the content unit.
19
+ attr_accessor :upload
23
20
 
24
21
  # An uploaded file that may be turned into the content unit.
25
22
  attr_accessor :file
26
23
 
27
- # An uncommitted upload that may be turned into the content unit.
28
- attr_accessor :upload
24
+ # Artifact file representing the physical content
25
+ attr_accessor :artifact
26
+
27
+ # A URI of a repository the new content unit should be associated with.
28
+ attr_accessor :repository
29
29
 
30
30
  # The name of the collection.
31
31
  attr_accessor :expected_name
@@ -39,10 +39,10 @@ module PulpAnsibleClient
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
- :'repository' => :'repository',
43
- :'artifact' => :'artifact',
44
- :'file' => :'file',
45
42
  :'upload' => :'upload',
43
+ :'file' => :'file',
44
+ :'artifact' => :'artifact',
45
+ :'repository' => :'repository',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
48
48
  :'expected_version' => :'expected_version'
@@ -52,10 +52,10 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'repository' => :'String',
56
- :'artifact' => :'String',
57
- :'file' => :'File',
58
55
  :'upload' => :'String',
56
+ :'file' => :'File',
57
+ :'artifact' => :'String',
58
+ :'repository' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -83,20 +83,20 @@ module PulpAnsibleClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
- if attributes.key?(:'repository')
87
- self.repository = attributes[:'repository']
88
- end
89
-
90
- if attributes.key?(:'artifact')
91
- self.artifact = attributes[:'artifact']
86
+ if attributes.key?(:'upload')
87
+ self.upload = attributes[:'upload']
92
88
  end
93
89
 
94
90
  if attributes.key?(:'file')
95
91
  self.file = attributes[:'file']
96
92
  end
97
93
 
98
- if attributes.key?(:'upload')
99
- self.upload = attributes[:'upload']
94
+ if attributes.key?(:'artifact')
95
+ self.artifact = attributes[:'artifact']
96
+ end
97
+
98
+ if attributes.key?(:'repository')
99
+ self.repository = attributes[:'repository']
100
100
  end
101
101
 
102
102
  if attributes.key?(:'expected_name')
@@ -202,10 +202,10 @@ module PulpAnsibleClient
202
202
  def ==(o)
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
- repository == o.repository &&
206
- artifact == o.artifact &&
207
- file == o.file &&
208
205
  upload == o.upload &&
206
+ file == o.file &&
207
+ artifact == o.artifact &&
208
+ repository == o.repository &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
211
211
  expected_version == o.expected_version
@@ -220,7 +220,7 @@ module PulpAnsibleClient
220
220
  # Calculates hash code according to all attributes.
221
221
  # @return [Integer] Hash code
222
222
  def hash
223
- [repository, artifact, file, upload, expected_name, expected_namespace, expected_version].hash
223
+ [upload, file, artifact, repository, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash