pulp_ansible_client 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersion.md +5 -31
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleRoleResponse.md +2 -2
- data/docs/ContentCollectionVersionsApi.md +17 -7
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +48 -15
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -316
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +7 -3
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +2 -80
- data/spec/models/ansible_role_response_spec.rb +2 -2
- metadata +66 -66
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89af3377c92dbb756896fba5a43865e37b8da1ba7dbecb082dba6757ab529286
|
|
4
|
+
data.tar.gz: 07de78cadd6df9741ae6f437e1a0d33fea2d31845b798bf25cd0ce02714c844d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f253098eee1bfe2263c10f3464de3a4dcee41d9db797ca7484a2b59ec8d0059f77c316db29e6d9b86f0226b0596cf1b40d5e674370fbda4ee32fe2026e307363
|
|
7
|
+
data.tar.gz: dd542faa1e96650a3bdde8bfbfaf7e62f6f8d63e11687a5567ba6b693ec1912d89b3116ad7c1a264a2de28536a541e4d0fa5d80fe3e1c06919c277b158b28995
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.9.
|
|
10
|
+
- Package version: 0.9.1
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build pulp_ansible_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./pulp_ansible_client-0.9.
|
|
27
|
+
gem install ./pulp_ansible_client-0.9.1.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.9.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.9.1.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'pulp_ansible_client', '~> 0.9.
|
|
36
|
+
gem 'pulp_ansible_client', '~> 0.9.1'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -4,48 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**
|
|
8
|
-
**
|
|
9
|
-
**authors** | **Array<String>** | A list of the CollectionVersion content's authors. |
|
|
10
|
-
**contents** | **Array<Object>** | A JSON field with data about the contents. |
|
|
11
|
-
**dependencies** | [**Object**](.md) | A dict declaring Collections that this collection requires to be installed for it to be usable. |
|
|
12
|
-
**description** | **String** | A short summary description of the collection. |
|
|
13
|
-
**docs_blob** | [**Object**](.md) | A JSON field holding the various documentation blobs in the collection. |
|
|
14
|
-
**manifest** | [**Object**](.md) | A JSON field holding MANIFEST.json data. |
|
|
15
|
-
**files** | [**Object**](.md) | A JSON field holding FILES.json data. |
|
|
16
|
-
**documentation** | **String** | The URL to any online docs. |
|
|
17
|
-
**homepage** | **String** | The URL to the homepage of the collection/project. |
|
|
18
|
-
**issues** | **String** | The URL to the collection issue tracker. |
|
|
19
|
-
**license** | **Array<String>** | A list of licenses for content inside of a collection. |
|
|
7
|
+
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
|
8
|
+
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
20
9
|
**name** | **String** | The name of the collection. |
|
|
21
10
|
**namespace** | **String** | The namespace of the collection. |
|
|
22
|
-
**repository** | **String** | The URL of the originating SCM repository. |
|
|
23
11
|
**version** | **String** | The version of the collection. |
|
|
24
|
-
**requires_ansible** | **String** | The version of Ansible required to use the collection. Multiple versions can be separated with a comma. | [optional]
|
|
25
12
|
|
|
26
13
|
## Code Sample
|
|
27
14
|
|
|
28
15
|
```ruby
|
|
29
16
|
require 'PulpAnsibleClient'
|
|
30
17
|
|
|
31
|
-
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(
|
|
32
|
-
|
|
33
|
-
authors: null,
|
|
34
|
-
contents: null,
|
|
35
|
-
dependencies: null,
|
|
36
|
-
description: null,
|
|
37
|
-
docs_blob: null,
|
|
38
|
-
manifest: null,
|
|
39
|
-
files: null,
|
|
40
|
-
documentation: null,
|
|
41
|
-
homepage: null,
|
|
42
|
-
issues: null,
|
|
43
|
-
license: null,
|
|
18
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(repository: null,
|
|
19
|
+
file: null,
|
|
44
20
|
name: null,
|
|
45
21
|
namespace: null,
|
|
46
|
-
|
|
47
|
-
version: null,
|
|
48
|
-
requires_ansible: null)
|
|
22
|
+
version: null)
|
|
49
23
|
```
|
|
50
24
|
|
|
51
25
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**artifact** | **String** | Artifact file representing the physical content |
|
|
8
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
9
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
10
10
|
**md5** | **String** | The MD5 checksum if available. | [optional] [readonly]
|
|
11
11
|
**sha1** | **String** | The SHA-1 checksum if available. | [optional] [readonly]
|
|
12
12
|
**sha224** | **String** | The SHA-224 checksum if available. | [optional] [readonly]
|
|
@@ -38,8 +38,8 @@ Name | Type | Description | Notes
|
|
|
38
38
|
require 'PulpAnsibleClient'
|
|
39
39
|
|
|
40
40
|
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(artifact: null,
|
|
41
|
-
pulp_href: null,
|
|
42
41
|
pulp_created: null,
|
|
42
|
+
pulp_href: null,
|
|
43
43
|
md5: null,
|
|
44
44
|
sha1: null,
|
|
45
45
|
sha224: null,
|
data/docs/AnsibleRoleResponse.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**artifact** | **String** | Artifact file representing the physical content |
|
|
8
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
9
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
10
10
|
**version** | **String** | |
|
|
11
11
|
**name** | **String** | |
|
|
12
12
|
**namespace** | **String** | |
|
|
@@ -17,8 +17,8 @@ Name | Type | Description | Notes
|
|
|
17
17
|
require 'PulpAnsibleClient'
|
|
18
18
|
|
|
19
19
|
instance = PulpAnsibleClient::AnsibleRoleResponse.new(artifact: null,
|
|
20
|
-
pulp_href: null,
|
|
21
20
|
pulp_created: null,
|
|
21
|
+
pulp_href: null,
|
|
22
22
|
version: null,
|
|
23
23
|
name: null,
|
|
24
24
|
namespace: null)
|
|
@@ -12,11 +12,11 @@ Method | HTTP request | Description
|
|
|
12
12
|
|
|
13
13
|
## create
|
|
14
14
|
|
|
15
|
-
>
|
|
15
|
+
> AsyncOperationResponse create(name, namespace, version, opts)
|
|
16
16
|
|
|
17
17
|
Create a collection version
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Trigger an asynchronous task to create content,optionally create new repository version.
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
@@ -31,11 +31,17 @@ PulpAnsibleClient.configure do |config|
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new
|
|
34
|
-
|
|
34
|
+
name = 'name_example' # String | The name of the collection.
|
|
35
|
+
namespace = 'namespace_example' # String | The namespace of the collection.
|
|
36
|
+
version = 'version_example' # String | The version of the collection.
|
|
37
|
+
opts = {
|
|
38
|
+
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
|
39
|
+
file: File.new('/path/to/file') # File | An uploaded file that may be turned into the artifact of the content unit.
|
|
40
|
+
}
|
|
35
41
|
|
|
36
42
|
begin
|
|
37
43
|
#Create a collection version
|
|
38
|
-
result = api_instance.create(
|
|
44
|
+
result = api_instance.create(name, namespace, version, opts)
|
|
39
45
|
p result
|
|
40
46
|
rescue PulpAnsibleClient::ApiError => e
|
|
41
47
|
puts "Exception when calling ContentCollectionVersionsApi->create: #{e}"
|
|
@@ -47,11 +53,15 @@ end
|
|
|
47
53
|
|
|
48
54
|
Name | Type | Description | Notes
|
|
49
55
|
------------- | ------------- | ------------- | -------------
|
|
50
|
-
**
|
|
56
|
+
**name** | **String**| The name of the collection. |
|
|
57
|
+
**namespace** | **String**| The namespace of the collection. |
|
|
58
|
+
**version** | **String**| The version of the collection. |
|
|
59
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
60
|
+
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
51
61
|
|
|
52
62
|
### Return type
|
|
53
63
|
|
|
54
|
-
[**
|
|
64
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
55
65
|
|
|
56
66
|
### Authorization
|
|
57
67
|
|
|
@@ -59,7 +69,7 @@ Name | Type | Description | Notes
|
|
|
59
69
|
|
|
60
70
|
### HTTP request headers
|
|
61
71
|
|
|
62
|
-
- **Content-Type**:
|
|
72
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
|
63
73
|
- **Accept**: application/json
|
|
64
74
|
|
|
65
75
|
|
|
@@ -20,28 +20,56 @@ module PulpAnsibleClient
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Create a collection version
|
|
23
|
-
#
|
|
24
|
-
# @param
|
|
23
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
24
|
+
# @param name [String] The name of the collection.
|
|
25
|
+
# @param namespace [String] The namespace of the collection.
|
|
26
|
+
# @param version [String] The version of the collection.
|
|
25
27
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
29
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
30
|
+
# @return [AsyncOperationResponse]
|
|
31
|
+
def create(name, namespace, version, opts = {})
|
|
32
|
+
data, _status_code, _headers = create_with_http_info(name, namespace, version, opts)
|
|
29
33
|
data
|
|
30
34
|
end
|
|
31
35
|
|
|
32
36
|
# Create a collection version
|
|
33
|
-
#
|
|
34
|
-
# @param
|
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
38
|
+
# @param name [String] The name of the collection.
|
|
39
|
+
# @param namespace [String] The namespace of the collection.
|
|
40
|
+
# @param version [String] The version of the collection.
|
|
35
41
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @
|
|
37
|
-
|
|
42
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
43
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
44
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
45
|
+
def create_with_http_info(name, namespace, version, opts = {})
|
|
38
46
|
if @api_client.config.debugging
|
|
39
47
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.create ...'
|
|
40
48
|
end
|
|
41
|
-
# verify the required parameter '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
49
|
+
# verify the required parameter 'name' is set
|
|
50
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ContentCollectionVersionsApi.create"
|
|
52
|
+
end
|
|
53
|
+
if @api_client.config.client_side_validation && name.to_s.length > 64
|
|
54
|
+
fail ArgumentError, 'invalid value for "name" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# verify the required parameter 'namespace' is set
|
|
58
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ContentCollectionVersionsApi.create"
|
|
60
|
+
end
|
|
61
|
+
if @api_client.config.client_side_validation && namespace.to_s.length > 64
|
|
62
|
+
fail ArgumentError, 'invalid value for "namespace" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# verify the required parameter 'version' is set
|
|
66
|
+
if @api_client.config.client_side_validation && version.nil?
|
|
67
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ContentCollectionVersionsApi.create"
|
|
68
|
+
end
|
|
69
|
+
if @api_client.config.client_side_validation && version.to_s.length > 128
|
|
70
|
+
fail ArgumentError, 'invalid value for "version" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 128.'
|
|
44
71
|
end
|
|
72
|
+
|
|
45
73
|
# resource path
|
|
46
74
|
local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
|
|
47
75
|
|
|
@@ -53,16 +81,21 @@ module PulpAnsibleClient
|
|
|
53
81
|
# HTTP header 'Accept' (if needed)
|
|
54
82
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
83
|
# HTTP header 'Content-Type'
|
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
|
84
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
57
85
|
|
|
58
86
|
# form parameters
|
|
59
87
|
form_params = opts[:form_params] || {}
|
|
88
|
+
form_params['name'] = name
|
|
89
|
+
form_params['namespace'] = namespace
|
|
90
|
+
form_params['version'] = version
|
|
91
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
92
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
60
93
|
|
|
61
94
|
# http body (model)
|
|
62
|
-
post_body = opts[:body]
|
|
95
|
+
post_body = opts[:body]
|
|
63
96
|
|
|
64
97
|
# return_type
|
|
65
|
-
return_type = opts[:return_type] || '
|
|
98
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
66
99
|
|
|
67
100
|
# auth_names
|
|
68
101
|
auth_names = opts[:auth_names] || ['basicAuth']
|
|
@@ -15,44 +15,11 @@ require 'date'
|
|
|
15
15
|
module PulpAnsibleClient
|
|
16
16
|
# A serializer for CollectionVersion Content.
|
|
17
17
|
class AnsibleCollectionVersion
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
20
|
-
|
|
21
|
-
# A collection identifier.
|
|
22
|
-
attr_accessor :id
|
|
23
|
-
|
|
24
|
-
# A list of the CollectionVersion content's authors.
|
|
25
|
-
attr_accessor :authors
|
|
26
|
-
|
|
27
|
-
# A JSON field with data about the contents.
|
|
28
|
-
attr_accessor :contents
|
|
29
|
-
|
|
30
|
-
# A dict declaring Collections that this collection requires to be installed for it to be usable.
|
|
31
|
-
attr_accessor :dependencies
|
|
32
|
-
|
|
33
|
-
# A short summary description of the collection.
|
|
34
|
-
attr_accessor :description
|
|
35
|
-
|
|
36
|
-
# A JSON field holding the various documentation blobs in the collection.
|
|
37
|
-
attr_accessor :docs_blob
|
|
38
|
-
|
|
39
|
-
# A JSON field holding MANIFEST.json data.
|
|
40
|
-
attr_accessor :manifest
|
|
41
|
-
|
|
42
|
-
# A JSON field holding FILES.json data.
|
|
43
|
-
attr_accessor :files
|
|
44
|
-
|
|
45
|
-
# The URL to any online docs.
|
|
46
|
-
attr_accessor :documentation
|
|
47
|
-
|
|
48
|
-
# The URL to the homepage of the collection/project.
|
|
49
|
-
attr_accessor :homepage
|
|
50
|
-
|
|
51
|
-
# The URL to the collection issue tracker.
|
|
52
|
-
attr_accessor :issues
|
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
|
19
|
+
attr_accessor :repository
|
|
53
20
|
|
|
54
|
-
#
|
|
55
|
-
attr_accessor :
|
|
21
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
|
22
|
+
attr_accessor :file
|
|
56
23
|
|
|
57
24
|
# The name of the collection.
|
|
58
25
|
attr_accessor :name
|
|
@@ -60,67 +27,34 @@ module PulpAnsibleClient
|
|
|
60
27
|
# The namespace of the collection.
|
|
61
28
|
attr_accessor :namespace
|
|
62
29
|
|
|
63
|
-
# The URL of the originating SCM repository.
|
|
64
|
-
attr_accessor :repository
|
|
65
|
-
|
|
66
30
|
# The version of the collection.
|
|
67
31
|
attr_accessor :version
|
|
68
32
|
|
|
69
|
-
# The version of Ansible required to use the collection. Multiple versions can be separated with a comma.
|
|
70
|
-
attr_accessor :requires_ansible
|
|
71
|
-
|
|
72
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
73
34
|
def self.attribute_map
|
|
74
35
|
{
|
|
75
|
-
:'
|
|
76
|
-
:'
|
|
77
|
-
:'authors' => :'authors',
|
|
78
|
-
:'contents' => :'contents',
|
|
79
|
-
:'dependencies' => :'dependencies',
|
|
80
|
-
:'description' => :'description',
|
|
81
|
-
:'docs_blob' => :'docs_blob',
|
|
82
|
-
:'manifest' => :'manifest',
|
|
83
|
-
:'files' => :'files',
|
|
84
|
-
:'documentation' => :'documentation',
|
|
85
|
-
:'homepage' => :'homepage',
|
|
86
|
-
:'issues' => :'issues',
|
|
87
|
-
:'license' => :'license',
|
|
36
|
+
:'repository' => :'repository',
|
|
37
|
+
:'file' => :'file',
|
|
88
38
|
:'name' => :'name',
|
|
89
39
|
:'namespace' => :'namespace',
|
|
90
|
-
:'
|
|
91
|
-
:'version' => :'version',
|
|
92
|
-
:'requires_ansible' => :'requires_ansible'
|
|
40
|
+
:'version' => :'version'
|
|
93
41
|
}
|
|
94
42
|
end
|
|
95
43
|
|
|
96
44
|
# Attribute type mapping.
|
|
97
45
|
def self.openapi_types
|
|
98
46
|
{
|
|
99
|
-
:'
|
|
100
|
-
:'
|
|
101
|
-
:'authors' => :'Array<String>',
|
|
102
|
-
:'contents' => :'Array<Object>',
|
|
103
|
-
:'dependencies' => :'Object',
|
|
104
|
-
:'description' => :'String',
|
|
105
|
-
:'docs_blob' => :'Object',
|
|
106
|
-
:'manifest' => :'Object',
|
|
107
|
-
:'files' => :'Object',
|
|
108
|
-
:'documentation' => :'String',
|
|
109
|
-
:'homepage' => :'String',
|
|
110
|
-
:'issues' => :'String',
|
|
111
|
-
:'license' => :'Array<String>',
|
|
47
|
+
:'repository' => :'String',
|
|
48
|
+
:'file' => :'File',
|
|
112
49
|
:'name' => :'String',
|
|
113
50
|
:'namespace' => :'String',
|
|
114
|
-
:'
|
|
115
|
-
:'version' => :'String',
|
|
116
|
-
:'requires_ansible' => :'String'
|
|
51
|
+
:'version' => :'String'
|
|
117
52
|
}
|
|
118
53
|
end
|
|
119
54
|
|
|
120
55
|
# List of attributes with nullable: true
|
|
121
56
|
def self.openapi_nullable
|
|
122
57
|
Set.new([
|
|
123
|
-
:'requires_ansible'
|
|
124
58
|
])
|
|
125
59
|
end
|
|
126
60
|
|
|
@@ -139,62 +73,12 @@ module PulpAnsibleClient
|
|
|
139
73
|
h[k.to_sym] = v
|
|
140
74
|
}
|
|
141
75
|
|
|
142
|
-
if attributes.key?(:'
|
|
143
|
-
self.
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
if attributes.key?(:'id')
|
|
147
|
-
self.id = attributes[:'id']
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
if attributes.key?(:'authors')
|
|
151
|
-
if (value = attributes[:'authors']).is_a?(Array)
|
|
152
|
-
self.authors = value
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
if attributes.key?(:'contents')
|
|
157
|
-
if (value = attributes[:'contents']).is_a?(Array)
|
|
158
|
-
self.contents = value
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
if attributes.key?(:'dependencies')
|
|
163
|
-
self.dependencies = attributes[:'dependencies']
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
if attributes.key?(:'description')
|
|
167
|
-
self.description = attributes[:'description']
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
if attributes.key?(:'docs_blob')
|
|
171
|
-
self.docs_blob = attributes[:'docs_blob']
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
if attributes.key?(:'manifest')
|
|
175
|
-
self.manifest = attributes[:'manifest']
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
if attributes.key?(:'files')
|
|
179
|
-
self.files = attributes[:'files']
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if attributes.key?(:'documentation')
|
|
183
|
-
self.documentation = attributes[:'documentation']
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
if attributes.key?(:'homepage')
|
|
187
|
-
self.homepage = attributes[:'homepage']
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
if attributes.key?(:'issues')
|
|
191
|
-
self.issues = attributes[:'issues']
|
|
76
|
+
if attributes.key?(:'repository')
|
|
77
|
+
self.repository = attributes[:'repository']
|
|
192
78
|
end
|
|
193
79
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
|
|
196
|
-
self.license = value
|
|
197
|
-
end
|
|
80
|
+
if attributes.key?(:'file')
|
|
81
|
+
self.file = attributes[:'file']
|
|
198
82
|
end
|
|
199
83
|
|
|
200
84
|
if attributes.key?(:'name')
|
|
@@ -205,87 +89,15 @@ module PulpAnsibleClient
|
|
|
205
89
|
self.namespace = attributes[:'namespace']
|
|
206
90
|
end
|
|
207
91
|
|
|
208
|
-
if attributes.key?(:'repository')
|
|
209
|
-
self.repository = attributes[:'repository']
|
|
210
|
-
end
|
|
211
|
-
|
|
212
92
|
if attributes.key?(:'version')
|
|
213
93
|
self.version = attributes[:'version']
|
|
214
94
|
end
|
|
215
|
-
|
|
216
|
-
if attributes.key?(:'requires_ansible')
|
|
217
|
-
self.requires_ansible = attributes[:'requires_ansible']
|
|
218
|
-
end
|
|
219
95
|
end
|
|
220
96
|
|
|
221
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
222
98
|
# @return Array for valid properties with the reasons
|
|
223
99
|
def list_invalid_properties
|
|
224
100
|
invalid_properties = Array.new
|
|
225
|
-
if @artifact.nil?
|
|
226
|
-
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
if @id.nil?
|
|
230
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
if @authors.nil?
|
|
234
|
-
invalid_properties.push('invalid value for "authors", authors cannot be nil.')
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
if @contents.nil?
|
|
238
|
-
invalid_properties.push('invalid value for "contents", contents cannot be nil.')
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
if @dependencies.nil?
|
|
242
|
-
invalid_properties.push('invalid value for "dependencies", dependencies cannot be nil.')
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
if @description.nil?
|
|
246
|
-
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
if @docs_blob.nil?
|
|
250
|
-
invalid_properties.push('invalid value for "docs_blob", docs_blob cannot be nil.')
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
if @manifest.nil?
|
|
254
|
-
invalid_properties.push('invalid value for "manifest", manifest cannot be nil.')
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
if @files.nil?
|
|
258
|
-
invalid_properties.push('invalid value for "files", files cannot be nil.')
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
if @documentation.nil?
|
|
262
|
-
invalid_properties.push('invalid value for "documentation", documentation cannot be nil.')
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
if @documentation.to_s.length > 2000
|
|
266
|
-
invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 2000.')
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
if @homepage.nil?
|
|
270
|
-
invalid_properties.push('invalid value for "homepage", homepage cannot be nil.')
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
if @homepage.to_s.length > 2000
|
|
274
|
-
invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 2000.')
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
if @issues.nil?
|
|
278
|
-
invalid_properties.push('invalid value for "issues", issues cannot be nil.')
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
if @issues.to_s.length > 2000
|
|
282
|
-
invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
if @license.nil?
|
|
286
|
-
invalid_properties.push('invalid value for "license", license cannot be nil.')
|
|
287
|
-
end
|
|
288
|
-
|
|
289
101
|
if @name.nil?
|
|
290
102
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
291
103
|
end
|
|
@@ -302,14 +114,6 @@ module PulpAnsibleClient
|
|
|
302
114
|
invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 64.')
|
|
303
115
|
end
|
|
304
116
|
|
|
305
|
-
if @repository.nil?
|
|
306
|
-
invalid_properties.push('invalid value for "repository", repository cannot be nil.')
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
if @repository.to_s.length > 2000
|
|
310
|
-
invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 2000.')
|
|
311
|
-
end
|
|
312
|
-
|
|
313
117
|
if @version.nil?
|
|
314
118
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
|
315
119
|
end
|
|
@@ -318,86 +122,21 @@ module PulpAnsibleClient
|
|
|
318
122
|
invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
|
|
319
123
|
end
|
|
320
124
|
|
|
321
|
-
if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
|
322
|
-
invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
|
|
323
|
-
end
|
|
324
|
-
|
|
325
125
|
invalid_properties
|
|
326
126
|
end
|
|
327
127
|
|
|
328
128
|
# Check to see if the all the properties in the model are valid
|
|
329
129
|
# @return true if the model is valid
|
|
330
130
|
def valid?
|
|
331
|
-
return false if @artifact.nil?
|
|
332
|
-
return false if @id.nil?
|
|
333
|
-
return false if @authors.nil?
|
|
334
|
-
return false if @contents.nil?
|
|
335
|
-
return false if @dependencies.nil?
|
|
336
|
-
return false if @description.nil?
|
|
337
|
-
return false if @docs_blob.nil?
|
|
338
|
-
return false if @manifest.nil?
|
|
339
|
-
return false if @files.nil?
|
|
340
|
-
return false if @documentation.nil?
|
|
341
|
-
return false if @documentation.to_s.length > 2000
|
|
342
|
-
return false if @homepage.nil?
|
|
343
|
-
return false if @homepage.to_s.length > 2000
|
|
344
|
-
return false if @issues.nil?
|
|
345
|
-
return false if @issues.to_s.length > 2000
|
|
346
|
-
return false if @license.nil?
|
|
347
131
|
return false if @name.nil?
|
|
348
132
|
return false if @name.to_s.length > 64
|
|
349
133
|
return false if @namespace.nil?
|
|
350
134
|
return false if @namespace.to_s.length > 64
|
|
351
|
-
return false if @repository.nil?
|
|
352
|
-
return false if @repository.to_s.length > 2000
|
|
353
135
|
return false if @version.nil?
|
|
354
136
|
return false if @version.to_s.length > 128
|
|
355
|
-
return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
|
356
137
|
true
|
|
357
138
|
end
|
|
358
139
|
|
|
359
|
-
# Custom attribute writer method with validation
|
|
360
|
-
# @param [Object] documentation Value to be assigned
|
|
361
|
-
def documentation=(documentation)
|
|
362
|
-
if documentation.nil?
|
|
363
|
-
fail ArgumentError, 'documentation cannot be nil'
|
|
364
|
-
end
|
|
365
|
-
|
|
366
|
-
if documentation.to_s.length > 2000
|
|
367
|
-
fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 2000.'
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
@documentation = documentation
|
|
371
|
-
end
|
|
372
|
-
|
|
373
|
-
# Custom attribute writer method with validation
|
|
374
|
-
# @param [Object] homepage Value to be assigned
|
|
375
|
-
def homepage=(homepage)
|
|
376
|
-
if homepage.nil?
|
|
377
|
-
fail ArgumentError, 'homepage cannot be nil'
|
|
378
|
-
end
|
|
379
|
-
|
|
380
|
-
if homepage.to_s.length > 2000
|
|
381
|
-
fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 2000.'
|
|
382
|
-
end
|
|
383
|
-
|
|
384
|
-
@homepage = homepage
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
# Custom attribute writer method with validation
|
|
388
|
-
# @param [Object] issues Value to be assigned
|
|
389
|
-
def issues=(issues)
|
|
390
|
-
if issues.nil?
|
|
391
|
-
fail ArgumentError, 'issues cannot be nil'
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
if issues.to_s.length > 2000
|
|
395
|
-
fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 2000.'
|
|
396
|
-
end
|
|
397
|
-
|
|
398
|
-
@issues = issues
|
|
399
|
-
end
|
|
400
|
-
|
|
401
140
|
# Custom attribute writer method with validation
|
|
402
141
|
# @param [Object] name Value to be assigned
|
|
403
142
|
def name=(name)
|
|
@@ -426,20 +165,6 @@ module PulpAnsibleClient
|
|
|
426
165
|
@namespace = namespace
|
|
427
166
|
end
|
|
428
167
|
|
|
429
|
-
# Custom attribute writer method with validation
|
|
430
|
-
# @param [Object] repository Value to be assigned
|
|
431
|
-
def repository=(repository)
|
|
432
|
-
if repository.nil?
|
|
433
|
-
fail ArgumentError, 'repository cannot be nil'
|
|
434
|
-
end
|
|
435
|
-
|
|
436
|
-
if repository.to_s.length > 2000
|
|
437
|
-
fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 2000.'
|
|
438
|
-
end
|
|
439
|
-
|
|
440
|
-
@repository = repository
|
|
441
|
-
end
|
|
442
|
-
|
|
443
168
|
# Custom attribute writer method with validation
|
|
444
169
|
# @param [Object] version Value to be assigned
|
|
445
170
|
def version=(version)
|
|
@@ -454,39 +179,16 @@ module PulpAnsibleClient
|
|
|
454
179
|
@version = version
|
|
455
180
|
end
|
|
456
181
|
|
|
457
|
-
# Custom attribute writer method with validation
|
|
458
|
-
# @param [Object] requires_ansible Value to be assigned
|
|
459
|
-
def requires_ansible=(requires_ansible)
|
|
460
|
-
if !requires_ansible.nil? && requires_ansible.to_s.length > 255
|
|
461
|
-
fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
|
|
462
|
-
end
|
|
463
|
-
|
|
464
|
-
@requires_ansible = requires_ansible
|
|
465
|
-
end
|
|
466
|
-
|
|
467
182
|
# Checks equality by comparing each attribute.
|
|
468
183
|
# @param [Object] Object to be compared
|
|
469
184
|
def ==(o)
|
|
470
185
|
return true if self.equal?(o)
|
|
471
186
|
self.class == o.class &&
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
authors == o.authors &&
|
|
475
|
-
contents == o.contents &&
|
|
476
|
-
dependencies == o.dependencies &&
|
|
477
|
-
description == o.description &&
|
|
478
|
-
docs_blob == o.docs_blob &&
|
|
479
|
-
manifest == o.manifest &&
|
|
480
|
-
files == o.files &&
|
|
481
|
-
documentation == o.documentation &&
|
|
482
|
-
homepage == o.homepage &&
|
|
483
|
-
issues == o.issues &&
|
|
484
|
-
license == o.license &&
|
|
187
|
+
repository == o.repository &&
|
|
188
|
+
file == o.file &&
|
|
485
189
|
name == o.name &&
|
|
486
190
|
namespace == o.namespace &&
|
|
487
|
-
|
|
488
|
-
version == o.version &&
|
|
489
|
-
requires_ansible == o.requires_ansible
|
|
191
|
+
version == o.version
|
|
490
192
|
end
|
|
491
193
|
|
|
492
194
|
# @see the `==` method
|
|
@@ -498,7 +200,7 @@ module PulpAnsibleClient
|
|
|
498
200
|
# Calculates hash code according to all attributes.
|
|
499
201
|
# @return [Integer] Hash code
|
|
500
202
|
def hash
|
|
501
|
-
[
|
|
203
|
+
[repository, file, name, namespace, version].hash
|
|
502
204
|
end
|
|
503
205
|
|
|
504
206
|
# Builds the object from hash
|
|
@@ -18,11 +18,11 @@ module PulpAnsibleClient
|
|
|
18
18
|
# Artifact file representing the physical content
|
|
19
19
|
attr_accessor :artifact
|
|
20
20
|
|
|
21
|
-
attr_accessor :pulp_href
|
|
22
|
-
|
|
23
21
|
# Timestamp of creation.
|
|
24
22
|
attr_accessor :pulp_created
|
|
25
23
|
|
|
24
|
+
attr_accessor :pulp_href
|
|
25
|
+
|
|
26
26
|
# The MD5 checksum if available.
|
|
27
27
|
attr_accessor :md5
|
|
28
28
|
|
|
@@ -98,8 +98,8 @@ module PulpAnsibleClient
|
|
|
98
98
|
def self.attribute_map
|
|
99
99
|
{
|
|
100
100
|
:'artifact' => :'artifact',
|
|
101
|
-
:'pulp_href' => :'pulp_href',
|
|
102
101
|
:'pulp_created' => :'pulp_created',
|
|
102
|
+
:'pulp_href' => :'pulp_href',
|
|
103
103
|
:'md5' => :'md5',
|
|
104
104
|
:'sha1' => :'sha1',
|
|
105
105
|
:'sha224' => :'sha224',
|
|
@@ -131,8 +131,8 @@ module PulpAnsibleClient
|
|
|
131
131
|
def self.openapi_types
|
|
132
132
|
{
|
|
133
133
|
:'artifact' => :'String',
|
|
134
|
-
:'pulp_href' => :'String',
|
|
135
134
|
:'pulp_created' => :'DateTime',
|
|
135
|
+
:'pulp_href' => :'String',
|
|
136
136
|
:'md5' => :'String',
|
|
137
137
|
:'sha1' => :'String',
|
|
138
138
|
:'sha224' => :'String',
|
|
@@ -186,14 +186,14 @@ module PulpAnsibleClient
|
|
|
186
186
|
self.artifact = attributes[:'artifact']
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
if attributes.key?(:'pulp_href')
|
|
190
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
191
|
-
end
|
|
192
|
-
|
|
193
189
|
if attributes.key?(:'pulp_created')
|
|
194
190
|
self.pulp_created = attributes[:'pulp_created']
|
|
195
191
|
end
|
|
196
192
|
|
|
193
|
+
if attributes.key?(:'pulp_href')
|
|
194
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
197
|
if attributes.key?(:'md5')
|
|
198
198
|
self.md5 = attributes[:'md5']
|
|
199
199
|
end
|
|
@@ -551,8 +551,8 @@ module PulpAnsibleClient
|
|
|
551
551
|
return true if self.equal?(o)
|
|
552
552
|
self.class == o.class &&
|
|
553
553
|
artifact == o.artifact &&
|
|
554
|
-
pulp_href == o.pulp_href &&
|
|
555
554
|
pulp_created == o.pulp_created &&
|
|
555
|
+
pulp_href == o.pulp_href &&
|
|
556
556
|
md5 == o.md5 &&
|
|
557
557
|
sha1 == o.sha1 &&
|
|
558
558
|
sha224 == o.sha224 &&
|
|
@@ -588,7 +588,7 @@ module PulpAnsibleClient
|
|
|
588
588
|
# Calculates hash code according to all attributes.
|
|
589
589
|
# @return [Integer] Hash code
|
|
590
590
|
def hash
|
|
591
|
-
[artifact,
|
|
591
|
+
[artifact, pulp_created, pulp_href, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
|
|
592
592
|
end
|
|
593
593
|
|
|
594
594
|
# Builds the object from hash
|
|
@@ -18,11 +18,11 @@ module PulpAnsibleClient
|
|
|
18
18
|
# Artifact file representing the physical content
|
|
19
19
|
attr_accessor :artifact
|
|
20
20
|
|
|
21
|
-
attr_accessor :pulp_href
|
|
22
|
-
|
|
23
21
|
# Timestamp of creation.
|
|
24
22
|
attr_accessor :pulp_created
|
|
25
23
|
|
|
24
|
+
attr_accessor :pulp_href
|
|
25
|
+
|
|
26
26
|
attr_accessor :version
|
|
27
27
|
|
|
28
28
|
attr_accessor :name
|
|
@@ -33,8 +33,8 @@ module PulpAnsibleClient
|
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
35
|
:'artifact' => :'artifact',
|
|
36
|
-
:'pulp_href' => :'pulp_href',
|
|
37
36
|
:'pulp_created' => :'pulp_created',
|
|
37
|
+
:'pulp_href' => :'pulp_href',
|
|
38
38
|
:'version' => :'version',
|
|
39
39
|
:'name' => :'name',
|
|
40
40
|
:'namespace' => :'namespace'
|
|
@@ -45,8 +45,8 @@ module PulpAnsibleClient
|
|
|
45
45
|
def self.openapi_types
|
|
46
46
|
{
|
|
47
47
|
:'artifact' => :'String',
|
|
48
|
-
:'pulp_href' => :'String',
|
|
49
48
|
:'pulp_created' => :'DateTime',
|
|
49
|
+
:'pulp_href' => :'String',
|
|
50
50
|
:'version' => :'String',
|
|
51
51
|
:'name' => :'String',
|
|
52
52
|
:'namespace' => :'String'
|
|
@@ -78,14 +78,14 @@ module PulpAnsibleClient
|
|
|
78
78
|
self.artifact = attributes[:'artifact']
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
if attributes.key?(:'pulp_href')
|
|
82
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
83
|
-
end
|
|
84
|
-
|
|
85
81
|
if attributes.key?(:'pulp_created')
|
|
86
82
|
self.pulp_created = attributes[:'pulp_created']
|
|
87
83
|
end
|
|
88
84
|
|
|
85
|
+
if attributes.key?(:'pulp_href')
|
|
86
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
89
|
if attributes.key?(:'version')
|
|
90
90
|
self.version = attributes[:'version']
|
|
91
91
|
end
|
|
@@ -138,8 +138,8 @@ module PulpAnsibleClient
|
|
|
138
138
|
return true if self.equal?(o)
|
|
139
139
|
self.class == o.class &&
|
|
140
140
|
artifact == o.artifact &&
|
|
141
|
-
pulp_href == o.pulp_href &&
|
|
142
141
|
pulp_created == o.pulp_created &&
|
|
142
|
+
pulp_href == o.pulp_href &&
|
|
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,
|
|
157
|
+
[artifact, pulp_created, pulp_href, version, name, namespace].hash
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# Builds the object from hash
|
|
@@ -34,10 +34,14 @@ describe 'ContentCollectionVersionsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for create
|
|
36
36
|
# Create a collection version
|
|
37
|
-
#
|
|
38
|
-
# @param
|
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
38
|
+
# @param name The name of the collection.
|
|
39
|
+
# @param namespace The namespace of the collection.
|
|
40
|
+
# @param version The version of the collection.
|
|
39
41
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @
|
|
42
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
43
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
44
|
+
# @return [AsyncOperationResponse]
|
|
41
45
|
describe 'create test' do
|
|
42
46
|
it 'should work' do
|
|
43
47
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -38,13 +38,13 @@ describe 'AnsibleCollectionVersionResponse' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_created"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "pulp_href"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
@@ -32,79 +32,13 @@ describe 'AnsibleCollectionVersion' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersion)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
36
|
-
it 'should work' do
|
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
describe 'test attribute "id"' do
|
|
42
|
-
it 'should work' do
|
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
describe 'test attribute "authors"' do
|
|
48
|
-
it 'should work' do
|
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
describe 'test attribute "contents"' do
|
|
54
|
-
it 'should work' do
|
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
describe 'test attribute "dependencies"' do
|
|
60
|
-
it 'should work' do
|
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
describe 'test attribute "description"' do
|
|
66
|
-
it 'should work' do
|
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
describe 'test attribute "docs_blob"' do
|
|
72
|
-
it 'should work' do
|
|
73
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
describe 'test attribute "manifest"' do
|
|
78
|
-
it 'should work' do
|
|
79
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
describe 'test attribute "files"' do
|
|
84
|
-
it 'should work' do
|
|
85
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
describe 'test attribute "documentation"' do
|
|
90
|
-
it 'should work' do
|
|
91
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
describe 'test attribute "homepage"' do
|
|
96
|
-
it 'should work' do
|
|
97
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
describe 'test attribute "issues"' do
|
|
35
|
+
describe 'test attribute "repository"' do
|
|
102
36
|
it 'should work' do
|
|
103
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
38
|
end
|
|
105
39
|
end
|
|
106
40
|
|
|
107
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "file"' do
|
|
108
42
|
it 'should work' do
|
|
109
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
110
44
|
end
|
|
@@ -122,22 +56,10 @@ describe 'AnsibleCollectionVersion' do
|
|
|
122
56
|
end
|
|
123
57
|
end
|
|
124
58
|
|
|
125
|
-
describe 'test attribute "repository"' do
|
|
126
|
-
it 'should work' do
|
|
127
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
|
|
131
59
|
describe 'test attribute "version"' do
|
|
132
60
|
it 'should work' do
|
|
133
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
134
62
|
end
|
|
135
63
|
end
|
|
136
64
|
|
|
137
|
-
describe 'test attribute "requires_ansible"' do
|
|
138
|
-
it 'should work' do
|
|
139
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
140
|
-
end
|
|
141
|
-
end
|
|
142
|
-
|
|
143
65
|
end
|
|
@@ -38,13 +38,13 @@ describe 'AnsibleRoleResponse' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_created"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "pulp_href"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_ansible_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-08-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -363,91 +363,91 @@ signing_key:
|
|
|
363
363
|
specification_version: 4
|
|
364
364
|
summary: Pulp 3 API Ruby Gem
|
|
365
365
|
test_files:
|
|
366
|
+
- spec/api/repositories_ansible_api_spec.rb
|
|
367
|
+
- spec/api/api_collections_api_spec.rb
|
|
368
|
+
- spec/api/content_roles_api_spec.rb
|
|
369
|
+
- spec/api/pulp_ansible_api_api_spec.rb
|
|
370
|
+
- spec/api/versions_api_spec.rb
|
|
371
|
+
- spec/api/pulp_ansible_api_v3_api_spec.rb
|
|
372
|
+
- spec/api/remotes_collection_api_spec.rb
|
|
366
373
|
- spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb
|
|
367
|
-
- spec/api/
|
|
368
|
-
- spec/api/
|
|
374
|
+
- spec/api/remotes_role_api_spec.rb
|
|
375
|
+
- spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb
|
|
369
376
|
- spec/api/pulp_ansible_api_v3_collections_api_spec.rb
|
|
370
|
-
- spec/api/versions_api_spec.rb
|
|
371
|
-
- spec/api/pulp_ansible_tags_api_spec.rb
|
|
372
|
-
- spec/api/content_collection_versions_api_spec.rb
|
|
373
|
-
- spec/api/repositories_ansible_versions_api_spec.rb
|
|
374
377
|
- spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb
|
|
375
|
-
- spec/api/
|
|
376
|
-
- spec/api/
|
|
377
|
-
- spec/api/pulp_ansible_api_api_spec.rb
|
|
378
|
+
- spec/api/content_collection_versions_api_spec.rb
|
|
379
|
+
- spec/api/ansible_copy_api_spec.rb
|
|
378
380
|
- spec/api/api_roles_api_spec.rb
|
|
379
|
-
- spec/api/
|
|
380
|
-
- spec/api/pulp_ansible_api_v3_api_spec.rb
|
|
381
|
-
- spec/api/collection_import_api_spec.rb
|
|
381
|
+
- spec/api/galaxy_detail_api_spec.rb
|
|
382
382
|
- spec/api/ansible_collections_api_spec.rb
|
|
383
|
-
- spec/api/
|
|
383
|
+
- spec/api/collection_import_api_spec.rb
|
|
384
|
+
- spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb
|
|
384
385
|
- spec/api/distributions_ansible_api_spec.rb
|
|
386
|
+
- spec/api/pulp_ansible_tags_api_spec.rb
|
|
387
|
+
- spec/api/repositories_ansible_versions_api_spec.rb
|
|
388
|
+
- spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb
|
|
385
389
|
- spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb
|
|
386
|
-
- spec/api/api_collections_api_spec.rb
|
|
387
|
-
- spec/api/remotes_collection_api_spec.rb
|
|
388
|
-
- spec/api/galaxy_detail_api_spec.rb
|
|
389
|
-
- spec/api/content_roles_api_spec.rb
|
|
390
390
|
- spec/api_client_spec.rb
|
|
391
391
|
- spec/configuration_spec.rb
|
|
392
|
-
- spec/models/
|
|
393
|
-
- spec/models/paginated_galaxy_collection_version_response_list_spec.rb
|
|
394
|
-
- spec/models/paginated_tag_response_list_spec.rb
|
|
395
|
-
- spec/models/galaxy_role_response_spec.rb
|
|
396
|
-
- spec/models/async_operation_response_spec.rb
|
|
397
|
-
- spec/models/patchedansible_collection_remote_spec.rb
|
|
398
|
-
- spec/models/ansible_collection_version_spec.rb
|
|
399
|
-
- spec/models/content_summary_spec.rb
|
|
400
|
-
- spec/models/ansible_collection_version_response_spec.rb
|
|
401
|
-
- spec/models/patchedansible_ansible_repository_spec.rb
|
|
402
|
-
- spec/models/galaxy_collection_version_response_spec.rb
|
|
392
|
+
- spec/models/ansible_role_response_spec.rb
|
|
403
393
|
- spec/models/collection_ref_response_spec.rb
|
|
404
|
-
- spec/models/copy_spec.rb
|
|
405
|
-
- spec/models/paginated_collection_response_list_meta_spec.rb
|
|
406
|
-
- spec/models/collection_version_docs_response_spec.rb
|
|
407
|
-
- spec/models/paginatedansible_collection_version_response_list_spec.rb
|
|
408
|
-
- spec/models/content_summary_response_spec.rb
|
|
409
394
|
- spec/models/ansible_ansible_distribution_spec.rb
|
|
395
|
+
- spec/models/paginatedansible_ansible_repository_response_list_spec.rb
|
|
396
|
+
- spec/models/ansible_collection_version_spec.rb
|
|
397
|
+
- spec/models/paginated_galaxy_role_response_list_spec.rb
|
|
398
|
+
- spec/models/copy_spec.rb
|
|
399
|
+
- spec/models/ansible_ansible_repository_spec.rb
|
|
400
|
+
- spec/models/paginatedansible_role_remote_response_list_spec.rb
|
|
401
|
+
- spec/models/collection_namespace_response_spec.rb
|
|
410
402
|
- spec/models/repo_metadata_response_spec.rb
|
|
411
|
-
- spec/models/
|
|
412
|
-
- spec/models/
|
|
403
|
+
- spec/models/collection_version_docs_response_spec.rb
|
|
404
|
+
- spec/models/galaxy_role_response_spec.rb
|
|
405
|
+
- spec/models/galaxy_role_version_response_spec.rb
|
|
406
|
+
- spec/models/galaxy_collection_spec.rb
|
|
413
407
|
- spec/models/repository_version_spec.rb
|
|
414
|
-
- spec/models/
|
|
408
|
+
- spec/models/paginated_collection_version_response_list_spec.rb
|
|
409
|
+
- spec/models/patchedansible_role_remote_spec.rb
|
|
415
410
|
- spec/models/ansible_ansible_distribution_response_spec.rb
|
|
416
|
-
- spec/models/
|
|
411
|
+
- spec/models/collection_one_shot_spec.rb
|
|
417
412
|
- spec/models/policy_enum_spec.rb
|
|
418
|
-
- spec/models/unpaginated_collection_version_response_spec.rb
|
|
419
|
-
- spec/models/paginatedansible_ansible_repository_response_list_spec.rb
|
|
420
413
|
- spec/models/paginated_galaxy_collection_response_list_spec.rb
|
|
421
414
|
- spec/models/repository_version_response_spec.rb
|
|
415
|
+
- spec/models/ansible_collection_remote_spec.rb
|
|
416
|
+
- spec/models/collection_response_spec.rb
|
|
422
417
|
- spec/models/paginated_galaxy_role_version_response_list_spec.rb
|
|
423
|
-
- spec/models/paginated_galaxy_role_response_list_spec.rb
|
|
424
|
-
- spec/models/collection_metadata_response_spec.rb
|
|
425
418
|
- spec/models/paginatedansible_collection_remote_response_list_spec.rb
|
|
426
|
-
- spec/models/
|
|
427
|
-
- spec/models/
|
|
428
|
-
- spec/models/artifact_ref_response_spec.rb
|
|
429
|
-
- spec/models/tag_response_spec.rb
|
|
430
|
-
- spec/models/ansible_role_remote_response_spec.rb
|
|
431
|
-
- spec/models/ansible_collection_remote_response_spec.rb
|
|
432
|
-
- spec/models/paginatedansible_collection_response_list_spec.rb
|
|
433
|
-
- spec/models/repository_add_remove_content_spec.rb
|
|
434
|
-
- spec/models/paginated_collection_version_response_list_spec.rb
|
|
435
|
-
- spec/models/paginatedansible_role_remote_response_list_spec.rb
|
|
436
|
-
- spec/models/collection_namespace_response_spec.rb
|
|
437
|
-
- spec/models/paginated_collection_response_list_spec.rb
|
|
419
|
+
- spec/models/collection_import_detail_response_spec.rb
|
|
420
|
+
- spec/models/content_summary_response_spec.rb
|
|
438
421
|
- spec/models/ansible_role_spec.rb
|
|
422
|
+
- spec/models/async_operation_response_spec.rb
|
|
439
423
|
- spec/models/galaxy_collection_response_spec.rb
|
|
440
|
-
- spec/models/
|
|
441
|
-
- spec/models/
|
|
442
|
-
- spec/models/
|
|
443
|
-
- spec/models/
|
|
424
|
+
- spec/models/tag_response_spec.rb
|
|
425
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
426
|
+
- spec/models/paginatedansible_collection_version_response_list_spec.rb
|
|
427
|
+
- spec/models/patchedansible_ansible_distribution_spec.rb
|
|
428
|
+
- spec/models/collection_version_response_spec.rb
|
|
429
|
+
- spec/models/collection_metadata_response_spec.rb
|
|
444
430
|
- spec/models/ansible_collection_response_spec.rb
|
|
445
|
-
- spec/models/
|
|
446
|
-
- spec/models/
|
|
447
|
-
- spec/models/
|
|
448
|
-
- spec/models/
|
|
449
|
-
- spec/models/
|
|
431
|
+
- spec/models/paginatedansible_role_response_list_spec.rb
|
|
432
|
+
- spec/models/ansible_repository_sync_url_spec.rb
|
|
433
|
+
- spec/models/artifact_ref_response_spec.rb
|
|
434
|
+
- spec/models/ansible_collection_remote_response_spec.rb
|
|
435
|
+
- spec/models/ansible_role_remote_response_spec.rb
|
|
436
|
+
- spec/models/paginatedansible_ansible_distribution_response_list_spec.rb
|
|
437
|
+
- spec/models/content_summary_spec.rb
|
|
438
|
+
- spec/models/paginated_tag_response_list_spec.rb
|
|
439
|
+
- spec/models/patchedansible_collection_remote_spec.rb
|
|
440
|
+
- spec/models/patchedansible_ansible_repository_spec.rb
|
|
441
|
+
- spec/models/paginated_collection_response_list_spec.rb
|
|
442
|
+
- spec/models/ansible_ansible_repository_response_spec.rb
|
|
450
443
|
- spec/models/ansible_role_remote_spec.rb
|
|
451
|
-
- spec/models/
|
|
452
|
-
- spec/models/
|
|
444
|
+
- spec/models/ansible_collection_version_response_spec.rb
|
|
445
|
+
- spec/models/galaxy_collection_version_response_spec.rb
|
|
446
|
+
- spec/models/ansible_tag_response_spec.rb
|
|
447
|
+
- spec/models/repository_add_remove_content_spec.rb
|
|
448
|
+
- spec/models/paginated_collection_response_list_meta_spec.rb
|
|
449
|
+
- spec/models/unpaginated_collection_version_response_spec.rb
|
|
450
|
+
- spec/models/paginated_collection_response_list_links_spec.rb
|
|
451
|
+
- spec/models/paginatedansible_collection_response_list_spec.rb
|
|
452
|
+
- spec/models/paginated_galaxy_collection_version_response_list_spec.rb
|
|
453
453
|
- spec/spec_helper.rb
|