pulp_ansible_client 0.2.0b1 → 0.2.0b2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -12
  3. data/docs/AnsibleDistribution.md +3 -3
  4. data/docs/CollectionRemote.md +1 -3
  5. data/docs/CollectionVersion.md +63 -0
  6. data/docs/ContentCollectionsApi.md +16 -14
  7. data/docs/{GalaxyCollection.md → GalaxyCollectionVersion.md} +2 -2
  8. data/docs/InlineResponse200.md +4 -4
  9. data/docs/InlineResponse2001.md +3 -3
  10. data/docs/InlineResponse2002.md +3 -3
  11. data/docs/InlineResponse2003.md +4 -4
  12. data/docs/InlineResponse2004.md +4 -4
  13. data/docs/InlineResponse2005.md +4 -4
  14. data/docs/InlineResponse2006.md +4 -4
  15. data/docs/InlineResponse2007.md +4 -4
  16. data/docs/InlineResponse2008.md +23 -0
  17. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +64 -6
  18. data/docs/PulpAnsibleGalaxyApiRolesApi.md +2 -2
  19. data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +2 -2
  20. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +6 -6
  21. data/docs/PulpAnsibleTagsApi.md +66 -0
  22. data/docs/RemotesAnsibleApi.md +2 -2
  23. data/docs/RemotesCollectionApi.md +2 -2
  24. data/docs/Role.md +4 -4
  25. data/docs/Tag.md +17 -0
  26. data/docs/TagNested.md +17 -0
  27. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +2 -2
  28. data/lib/pulp_ansible_client/api/content_collections_api.rb +19 -16
  29. data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -3
  30. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -6
  31. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +3 -3
  32. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +79 -15
  33. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +6 -6
  34. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +6 -6
  35. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +14 -14
  36. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +84 -0
  37. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +10 -10
  38. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +10 -10
  39. data/lib/pulp_ansible_client/api_client.rb +77 -62
  40. data/lib/pulp_ansible_client/api_error.rb +1 -1
  41. data/lib/pulp_ansible_client/configuration.rb +13 -21
  42. data/lib/pulp_ansible_client/models/ansible_distribution.rb +15 -30
  43. data/lib/pulp_ansible_client/models/ansible_remote.rb +1 -1
  44. data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
  45. data/lib/pulp_ansible_client/models/collection_remote.rb +5 -38
  46. data/lib/pulp_ansible_client/models/{collection.rb → collection_version.rb} +314 -43
  47. data/lib/pulp_ansible_client/models/{galaxy_collection.rb → galaxy_collection_version.rb} +4 -4
  48. data/lib/pulp_ansible_client/models/galaxy_role.rb +1 -1
  49. data/lib/pulp_ansible_client/models/galaxy_role_version.rb +1 -1
  50. data/lib/pulp_ansible_client/models/inline_response200.rb +12 -12
  51. data/lib/pulp_ansible_client/models/inline_response2001.rb +11 -11
  52. data/lib/pulp_ansible_client/models/inline_response2002.rb +11 -11
  53. data/lib/pulp_ansible_client/models/inline_response2003.rb +12 -12
  54. data/lib/pulp_ansible_client/models/inline_response2004.rb +12 -12
  55. data/lib/pulp_ansible_client/models/inline_response2005.rb +12 -12
  56. data/lib/pulp_ansible_client/models/inline_response2006.rb +12 -12
  57. data/lib/pulp_ansible_client/models/inline_response2007.rb +12 -12
  58. data/lib/pulp_ansible_client/models/inline_response2008.rb +235 -0
  59. data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -1
  60. data/lib/pulp_ansible_client/models/role.rb +18 -18
  61. data/lib/pulp_ansible_client/models/tag.rb +211 -0
  62. data/lib/pulp_ansible_client/models/tag_nested.rb +212 -0
  63. data/lib/pulp_ansible_client/version.rb +2 -2
  64. data/lib/pulp_ansible_client.rb +7 -3
  65. data/pulp_ansible_client.gemspec +3 -9
  66. data/spec/api/ansible_collections_api_spec.rb +1 -1
  67. data/spec/api/content_collections_api_spec.rb +7 -6
  68. data/spec/api/content_roles_api_spec.rb +1 -1
  69. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  70. data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
  71. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +16 -3
  72. data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +2 -2
  73. data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +2 -2
  74. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -3
  75. data/spec/api/pulp_ansible_tags_api_spec.rb +48 -0
  76. data/spec/api/remotes_ansible_api_spec.rb +2 -2
  77. data/spec/api/remotes_collection_api_spec.rb +2 -2
  78. data/spec/api_client_spec.rb +1 -39
  79. data/spec/configuration_spec.rb +1 -1
  80. data/spec/models/ansible_distribution_spec.rb +6 -6
  81. data/spec/models/ansible_remote_spec.rb +1 -1
  82. data/spec/models/async_operation_response_spec.rb +1 -1
  83. data/spec/models/collection_remote_spec.rb +1 -7
  84. data/spec/models/{collection_spec.rb → collection_version_spec.rb} +77 -11
  85. data/spec/models/{galaxy_collection_spec.rb → galaxy_collection_version_spec.rb} +7 -7
  86. data/spec/models/galaxy_role_spec.rb +1 -1
  87. data/spec/models/galaxy_role_version_spec.rb +1 -1
  88. data/spec/models/inline_response2001_spec.rb +4 -4
  89. data/spec/models/inline_response2002_spec.rb +4 -4
  90. data/spec/models/inline_response2003_spec.rb +4 -4
  91. data/spec/models/inline_response2004_spec.rb +4 -4
  92. data/spec/models/inline_response2005_spec.rb +4 -4
  93. data/spec/models/inline_response2006_spec.rb +4 -4
  94. data/spec/models/inline_response2007_spec.rb +4 -4
  95. data/spec/models/inline_response2008_spec.rb +59 -0
  96. data/spec/models/inline_response200_spec.rb +4 -4
  97. data/spec/models/repository_sync_url_spec.rb +1 -1
  98. data/spec/models/role_spec.rb +4 -4
  99. data/spec/models/tag_nested_spec.rb +41 -0
  100. data/spec/models/tag_spec.rb +41 -0
  101. data/spec/spec_helper.rb +1 -1
  102. metadata +30 -141
  103. data/Gemfile.lock +0 -79
  104. data/docs/Collection.md +0 -41
@@ -10,7 +10,7 @@ Method | HTTP request | Description
10
10
 
11
11
  ## list
12
12
 
13
- > InlineResponse2005 list(path, opts)
13
+ > InlineResponse2006 list(path, opts)
14
14
 
15
15
 
16
16
 
@@ -54,7 +54,7 @@ Name | Type | Description | Notes
54
54
 
55
55
  ### Return type
56
56
 
57
- [**InlineResponse2005**](InlineResponse2005.md)
57
+ [**InlineResponse2006**](InlineResponse2006.md)
58
58
 
59
59
  ### Authorization
60
60
 
@@ -10,7 +10,7 @@ Method | HTTP request | Description
10
10
 
11
11
  ## list
12
12
 
13
- > InlineResponse2006 list(path, role_pk, opts)
13
+ > InlineResponse2007 list(path, role_pk, opts)
14
14
 
15
15
 
16
16
 
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
56
56
 
57
57
  ### Return type
58
58
 
59
- [**InlineResponse2006**](InlineResponse2006.md)
59
+ [**InlineResponse2007**](InlineResponse2007.md)
60
60
 
61
61
  ### Authorization
62
62
 
@@ -4,13 +4,13 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**list**](PulpAnsibleGalaxyApiV2VersionsApi.md#list) | **GET** {collection_href}versions/ |
7
+ [**list**](PulpAnsibleGalaxyApiV2VersionsApi.md#list) | **GET** {collection_version_href}versions/ |
8
8
 
9
9
 
10
10
 
11
11
  ## list
12
12
 
13
- > InlineResponse2007 list(collection_href, opts)
13
+ > InlineResponse2008 list(collection_version_href, opts)
14
14
 
15
15
 
16
16
 
@@ -29,14 +29,14 @@ PulpAnsibleClient.configure do |config|
29
29
  end
30
30
 
31
31
  api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV2VersionsApi.new
32
- collection_href = 'collection_href_example' # String | URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
32
+ collection_version_href = 'collection_version_href_example' # String | URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
33
33
  opts = {
34
34
  page: 56, # Integer | A page number within the paginated result set.
35
35
  page_size: 56 # Integer | Number of results to return per page.
36
36
  }
37
37
 
38
38
  begin
39
- result = api_instance.list(collection_href, opts)
39
+ result = api_instance.list(collection_version_href, opts)
40
40
  p result
41
41
  rescue PulpAnsibleClient::ApiError => e
42
42
  puts "Exception when calling PulpAnsibleGalaxyApiV2VersionsApi->list: #{e}"
@@ -48,13 +48,13 @@ end
48
48
 
49
49
  Name | Type | Description | Notes
50
50
  ------------- | ------------- | ------------- | -------------
51
- **collection_href** | **String**| URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/ |
51
+ **collection_version_href** | **String**| URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/ |
52
52
  **page** | **Integer**| A page number within the paginated result set. | [optional]
53
53
  **page_size** | **Integer**| Number of results to return per page. | [optional]
54
54
 
55
55
  ### Return type
56
56
 
57
- [**InlineResponse2007**](InlineResponse2007.md)
57
+ [**InlineResponse2008**](InlineResponse2008.md)
58
58
 
59
59
  ### Authorization
60
60
 
@@ -0,0 +1,66 @@
1
+ # PulpAnsibleClient::PulpAnsibleTagsApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list**](PulpAnsibleTagsApi.md#list) | **GET** /pulp/api/v3/pulp_ansible/tags/ | List tags
8
+
9
+
10
+
11
+ ## list
12
+
13
+ > InlineResponse2003 list(opts)
14
+
15
+ List tags
16
+
17
+ ViewSet for Tag models.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'pulp_ansible_client'
24
+ # setup authorization
25
+ PulpAnsibleClient.configure do |config|
26
+ # Configure HTTP basic authorization: Basic
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
30
+
31
+ api_instance = PulpAnsibleClient::PulpAnsibleTagsApi.new
32
+ opts = {
33
+ page: 56, # Integer | A page number within the paginated result set.
34
+ page_size: 56 # Integer | Number of results to return per page.
35
+ }
36
+
37
+ begin
38
+ #List tags
39
+ result = api_instance.list(opts)
40
+ p result
41
+ rescue PulpAnsibleClient::ApiError => e
42
+ puts "Exception when calling PulpAnsibleTagsApi->list: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
52
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
53
+
54
+ ### Return type
55
+
56
+ [**InlineResponse2003**](InlineResponse2003.md)
57
+
58
+ ### Authorization
59
+
60
+ [Basic](../README.md#Basic)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: application/json
66
+
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
122
122
 
123
123
  ## list
124
124
 
125
- > InlineResponse2003 list(opts)
125
+ > InlineResponse2004 list(opts)
126
126
 
127
127
  List ansible remotes
128
128
 
@@ -181,7 +181,7 @@ Name | Type | Description | Notes
181
181
 
182
182
  ### Return type
183
183
 
184
- [**InlineResponse2003**](InlineResponse2003.md)
184
+ [**InlineResponse2004**](InlineResponse2004.md)
185
185
 
186
186
  ### Authorization
187
187
 
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
122
122
 
123
123
  ## list
124
124
 
125
- > InlineResponse2004 list(opts)
125
+ > InlineResponse2005 list(opts)
126
126
 
127
127
  List collection remotes
128
128
 
@@ -181,7 +181,7 @@ Name | Type | Description | Notes
181
181
 
182
182
  ### Return type
183
183
 
184
- [**InlineResponse2004**](InlineResponse2004.md)
184
+ [**InlineResponse2005**](InlineResponse2005.md)
185
185
 
186
186
  ### Authorization
187
187
 
data/docs/Role.md CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **_created** | **DateTime** | Timestamp of creation. | [optional]
8
- **_artifact** | **String** | Artifact file representing the physical content |
9
7
  **_href** | **String** | | [optional]
8
+ **_artifact** | **String** | Artifact file representing the physical content |
10
9
  **_type** | **String** | | [optional]
10
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
11
11
  **version** | **String** | |
12
12
  **name** | **String** | |
13
13
  **namespace** | **String** | |
@@ -17,10 +17,10 @@ Name | Type | Description | Notes
17
17
  ```ruby
18
18
  require 'PulpAnsibleClient'
19
19
 
20
- instance = PulpAnsibleClient::Role.new(_created: null,
20
+ instance = PulpAnsibleClient::Role.new(_href: null,
21
21
  _artifact: null,
22
- _href: null,
23
22
  _type: null,
23
+ _created: null,
24
24
  version: null,
25
25
  name: null,
26
26
  namespace: null)
data/docs/Tag.md ADDED
@@ -0,0 +1,17 @@
1
+ # PulpAnsibleClient::Tag
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpAnsibleClient'
13
+
14
+ instance = PulpAnsibleClient::Tag.new(name: null)
15
+ ```
16
+
17
+
data/docs/TagNested.md ADDED
@@ -0,0 +1,17 @@
1
+ # PulpAnsibleClient::TagNested
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | The name of the Tag. | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpAnsibleClient'
13
+
14
+ instance = PulpAnsibleClient::TagNested.new(name: null)
15
+ ```
16
+
17
+
@@ -6,11 +6,11 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class AnsibleCollectionsApi
@@ -6,11 +6,11 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class ContentCollectionsApi
@@ -19,21 +19,21 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create a collection
22
+ # Create a collection version
23
23
  # ViewSet for Ansible Collection.
24
- # @param data [Collection]
24
+ # @param data [CollectionVersion]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [Collection]
26
+ # @return [CollectionVersion]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
30
30
  end
31
31
 
32
- # Create a collection
32
+ # Create a collection version
33
33
  # ViewSet for Ansible Collection.
34
- # @param data [Collection]
34
+ # @param data [CollectionVersion]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(Collection, Integer, Hash)>] Collection data, response status code and response headers
36
+ # @return [Array<(CollectionVersion, Integer, Hash)>] CollectionVersion data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: ContentCollectionsApi.create ...'
@@ -62,7 +62,7 @@ module PulpAnsibleClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(data)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'Collection'
65
+ return_type = opts[:return_type] || 'CollectionVersion'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -83,16 +83,17 @@ module PulpAnsibleClient
83
83
  return data, status_code, headers
84
84
  end
85
85
 
86
- # List collections
86
+ # List collection versions
87
87
  # ViewSet for Ansible Collection.
88
88
  # @param [Hash] opts the optional parameters
89
- # @option opts [String] :name Filter results where name matches value
90
- # @option opts [String] :namespace Filter results where namespace matches value
89
+ # @option opts [String] :namespace
90
+ # @option opts [String] :name
91
91
  # @option opts [String] :version Filter results where version matches value
92
92
  # @option opts [String] :repository_version Repository Version referenced by HREF
93
93
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
94
94
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
95
95
  # @option opts [String] :latest
96
+ # @option opts [String] :q
96
97
  # @option opts [Integer] :page A page number within the paginated result set.
97
98
  # @option opts [Integer] :page_size Number of results to return per page.
98
99
  # @return [InlineResponse200]
@@ -101,16 +102,17 @@ module PulpAnsibleClient
101
102
  data
102
103
  end
103
104
 
104
- # List collections
105
+ # List collection versions
105
106
  # ViewSet for Ansible Collection.
106
107
  # @param [Hash] opts the optional parameters
107
- # @option opts [String] :name Filter results where name matches value
108
- # @option opts [String] :namespace Filter results where namespace matches value
108
+ # @option opts [String] :namespace
109
+ # @option opts [String] :name
109
110
  # @option opts [String] :version Filter results where version matches value
110
111
  # @option opts [String] :repository_version Repository Version referenced by HREF
111
112
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
112
113
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
113
114
  # @option opts [String] :latest
115
+ # @option opts [String] :q
114
116
  # @option opts [Integer] :page A page number within the paginated result set.
115
117
  # @option opts [Integer] :page_size Number of results to return per page.
116
118
  # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
@@ -123,13 +125,14 @@ module PulpAnsibleClient
123
125
 
124
126
  # query parameters
125
127
  query_params = opts[:query_params] || {}
126
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
127
128
  query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
129
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
128
130
  query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
129
131
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
130
132
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
131
133
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
132
134
  query_params[:'latest'] = opts[:'latest'] if !opts[:'latest'].nil?
135
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
133
136
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
134
137
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
135
138
 
@@ -6,11 +6,11 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class ContentRolesApi
@@ -187,7 +187,7 @@ module PulpAnsibleClient
187
187
  fail ArgumentError, "Missing the required parameter 'role_href' when calling ContentRolesApi.read"
188
188
  end
189
189
  # resource path
190
- local_var_path = '{role_href}'.sub('{' + 'role_href' + '}', role_href.to_s)
190
+ local_var_path = '{role_href}'.sub('{' + 'role_href' + '}', CGI.escape(role_href.to_s).gsub('%2F', '/'))
191
191
 
192
192
  # query parameters
193
193
  query_params = opts[:query_params] || {}
@@ -6,11 +6,11 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class DistributionsAnsibleApi
@@ -107,7 +107,7 @@ module PulpAnsibleClient
107
107
  fail ArgumentError, "Missing the required parameter 'ansible_distribution_href' when calling DistributionsAnsibleApi.delete"
108
108
  end
109
109
  # resource path
110
- local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', ansible_distribution_href.to_s)
110
+ local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', CGI.escape(ansible_distribution_href.to_s).gsub('%2F', '/'))
111
111
 
112
112
  # query parameters
113
113
  query_params = opts[:query_params] || {}
@@ -255,7 +255,7 @@ module PulpAnsibleClient
255
255
  fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsAnsibleApi.partial_update"
256
256
  end
257
257
  # resource path
258
- local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', ansible_distribution_href.to_s)
258
+ local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', CGI.escape(ansible_distribution_href.to_s).gsub('%2F', '/'))
259
259
 
260
260
  # query parameters
261
261
  query_params = opts[:query_params] || {}
@@ -319,7 +319,7 @@ module PulpAnsibleClient
319
319
  fail ArgumentError, "Missing the required parameter 'ansible_distribution_href' when calling DistributionsAnsibleApi.read"
320
320
  end
321
321
  # resource path
322
- local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', ansible_distribution_href.to_s)
322
+ local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', CGI.escape(ansible_distribution_href.to_s).gsub('%2F', '/'))
323
323
 
324
324
  # query parameters
325
325
  query_params = opts[:query_params] || {}
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsAnsibleApi.update"
388
388
  end
389
389
  # resource path
390
- local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', ansible_distribution_href.to_s)
390
+ local_var_path = '{ansible_distribution_href}'.sub('{' + 'ansible_distribution_href' + '}', CGI.escape(ansible_distribution_href.to_s).gsub('%2F', '/'))
391
391
 
392
392
  # query parameters
393
393
  query_params = opts[:query_params] || {}
@@ -6,11 +6,11 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class PulpAnsibleApiApi
@@ -41,7 +41,7 @@ module PulpAnsibleClient
41
41
  fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiApi.list"
42
42
  end
43
43
  # resource path
44
- local_var_path = '/pulp_ansible/galaxy/{path}/api/'.sub('{' + 'path' + '}', path.to_s)
44
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
45
45
 
46
46
  # query parameters
47
47
  query_params = opts[:query_params] || {}
@@ -6,11 +6,11 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class PulpAnsibleGalaxyApiCollectionsApi
@@ -41,7 +41,7 @@ module PulpAnsibleClient
41
41
  fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiCollectionsApi.create"
42
42
  end
43
43
  # resource path
44
- local_var_path = '/pulp_ansible/galaxy/{path}/api/v2/collections/'.sub('{' + 'path' + '}', path.to_s)
44
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v2/collections/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
45
45
 
46
46
  # query parameters
47
47
  query_params = opts[:query_params] || {}
@@ -77,29 +77,93 @@ module PulpAnsibleClient
77
77
  return data, status_code, headers
78
78
  end
79
79
 
80
+ # ViewSet for Collections.
81
+ # @param path [String]
82
+ # @param [Hash] opts the optional parameters
83
+ # @option opts [Integer] :limit Number of results to return per page.
84
+ # @option opts [Integer] :offset The initial index from which to return the results.
85
+ # @return [nil]
86
+ def list(path, opts = {})
87
+ list_with_http_info(path, opts)
88
+ nil
89
+ end
90
+
91
+ # ViewSet for Collections.
92
+ # @param path [String]
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [Integer] :limit Number of results to return per page.
95
+ # @option opts [Integer] :offset The initial index from which to return the results.
96
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
97
+ def list_with_http_info(path, opts = {})
98
+ if @api_client.config.debugging
99
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiCollectionsApi.list ...'
100
+ end
101
+ # verify the required parameter 'path' is set
102
+ if @api_client.config.client_side_validation && path.nil?
103
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiCollectionsApi.list"
104
+ end
105
+ # resource path
106
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
107
+
108
+ # query parameters
109
+ query_params = opts[:query_params] || {}
110
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
111
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
112
+
113
+ # header parameters
114
+ header_params = opts[:header_params] || {}
115
+
116
+ # form parameters
117
+ form_params = opts[:form_params] || {}
118
+
119
+ # http body (model)
120
+ post_body = opts[:body]
121
+
122
+ # return_type
123
+ return_type = opts[:return_type]
124
+
125
+ # auth_names
126
+ auth_names = opts[:auth_names] || ['Basic']
127
+
128
+ new_options = opts.merge(
129
+ :header_params => header_params,
130
+ :query_params => query_params,
131
+ :form_params => form_params,
132
+ :body => post_body,
133
+ :auth_names => auth_names,
134
+ :return_type => return_type
135
+ )
136
+
137
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ end
141
+ return data, status_code, headers
142
+ end
143
+
80
144
  # Get the detail view of a Collection.
81
- # @param collection_href [String] URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
145
+ # @param collection_version_href [String] URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
82
146
  # @param [Hash] opts the optional parameters
83
- # @return [GalaxyCollection]
84
- def read(collection_href, opts = {})
85
- data, _status_code, _headers = read_with_http_info(collection_href, opts)
147
+ # @return [GalaxyCollectionVersion]
148
+ def read(collection_version_href, opts = {})
149
+ data, _status_code, _headers = read_with_http_info(collection_version_href, opts)
86
150
  data
87
151
  end
88
152
 
89
153
  # Get the detail view of a Collection.
90
- # @param collection_href [String] URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
154
+ # @param collection_version_href [String] URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
91
155
  # @param [Hash] opts the optional parameters
92
- # @return [Array<(GalaxyCollection, Integer, Hash)>] GalaxyCollection data, response status code and response headers
93
- def read_with_http_info(collection_href, opts = {})
156
+ # @return [Array<(GalaxyCollectionVersion, Integer, Hash)>] GalaxyCollectionVersion data, response status code and response headers
157
+ def read_with_http_info(collection_version_href, opts = {})
94
158
  if @api_client.config.debugging
95
159
  @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiCollectionsApi.read ...'
96
160
  end
97
- # verify the required parameter 'collection_href' is set
98
- if @api_client.config.client_side_validation && collection_href.nil?
99
- fail ArgumentError, "Missing the required parameter 'collection_href' when calling PulpAnsibleGalaxyApiCollectionsApi.read"
161
+ # verify the required parameter 'collection_version_href' is set
162
+ if @api_client.config.client_side_validation && collection_version_href.nil?
163
+ fail ArgumentError, "Missing the required parameter 'collection_version_href' when calling PulpAnsibleGalaxyApiCollectionsApi.read"
100
164
  end
101
165
  # resource path
102
- local_var_path = '{collection_href}'.sub('{' + 'collection_href' + '}', collection_href.to_s)
166
+ local_var_path = '{collection_version_href}'.sub('{' + 'collection_version_href' + '}', CGI.escape(collection_version_href.to_s).gsub('%2F', '/'))
103
167
 
104
168
  # query parameters
105
169
  query_params = opts[:query_params] || {}
@@ -116,7 +180,7 @@ module PulpAnsibleClient
116
180
  post_body = opts[:body]
117
181
 
118
182
  # return_type
119
- return_type = opts[:return_type] || 'GalaxyCollection'
183
+ return_type = opts[:return_type] || 'GalaxyCollectionVersion'
120
184
 
121
185
  # auth_names
122
186
  auth_names = opts[:auth_names] || ['Basic']
@@ -6,11 +6,11 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class PulpAnsibleGalaxyApiRolesApi
@@ -24,7 +24,7 @@ module PulpAnsibleClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :page A page number within the paginated result set.
26
26
  # @option opts [Integer] :page_size Number of results to return per page.
27
- # @return [InlineResponse2005]
27
+ # @return [InlineResponse2006]
28
28
  def list(path, opts = {})
29
29
  data, _status_code, _headers = list_with_http_info(path, opts)
30
30
  data
@@ -35,7 +35,7 @@ module PulpAnsibleClient
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @option opts [Integer] :page A page number within the paginated result set.
37
37
  # @option opts [Integer] :page_size Number of results to return per page.
38
- # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
38
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
39
39
  def list_with_http_info(path, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiRolesApi.list ...'
@@ -45,7 +45,7 @@ module PulpAnsibleClient
45
45
  fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiRolesApi.list"
46
46
  end
47
47
  # resource path
48
- local_var_path = '/pulp_ansible/galaxy/{path}/api/v1/roles/'.sub('{' + 'path' + '}', path.to_s)
48
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v1/roles/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
49
49
 
50
50
  # query parameters
51
51
  query_params = opts[:query_params] || {}
@@ -64,7 +64,7 @@ module PulpAnsibleClient
64
64
  post_body = opts[:body]
65
65
 
66
66
  # return_type
67
- return_type = opts[:return_type] || 'InlineResponse2005'
67
+ return_type = opts[:return_type] || 'InlineResponse2006'
68
68
 
69
69
  # auth_names
70
70
  auth_names = opts[:auth_names] || ['Basic']