pulp_maven_client 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/RepositoriesMavenApi.md +56 -0
- data/docs/RepositoryAddCachedContent.md +17 -0
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +70 -0
- data/lib/pulp_maven_client/models/repository_add_cached_content.rb +208 -0
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +1 -0
- data/spec/api/repositories_maven_api_spec.rb +13 -0
- data/spec/models/repository_add_cached_content_spec.rb +41 -0
- metadata +22 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6ca08e2f0e48409f64e4dd8d2211bf74d876604cceb3dbdf2373d9b2fd3cfc7
|
4
|
+
data.tar.gz: fbefc64ba1b04e99101359dde39d23d45aefa73261c3e7c04400a944e8f3a676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 606c9aee113025f374eda09c10a88cbbda96de7f28c662db6c33a06fa7d37b6403ebecdd5aa8bc56652cc0edc99abf19ef46d0c0d0e7ae69e967a703d5571346
|
7
|
+
data.tar.gz: 78082133c6d6c9bec9e988f035b6a98aef579973f1f3056dc4505d460af7c36efe071c63e1ba12815a4b9ef0e1ff7e83c48a8dd1aa02b11f80ef8a21e608ec1a
|
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.
|
10
|
+
- Package version: 0.5.0
|
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_maven_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_maven_client-0.
|
27
|
+
gem install ./pulp_maven_client-0.5.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_maven_client-0.
|
30
|
+
(for development, run `gem install --dev ./pulp_maven_client-0.5.0.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_maven_client', '~> 0.
|
36
|
+
gem 'pulp_maven_client', '~> 0.5.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -100,6 +100,7 @@ Class | Method | HTTP request | Description
|
|
100
100
|
*PulpMavenClient::RemotesMavenApi* | [**partial_update**](docs/RemotesMavenApi.md#partial_update) | **PATCH** {maven_maven_remote_href} | Update a maven remote
|
101
101
|
*PulpMavenClient::RemotesMavenApi* | [**read**](docs/RemotesMavenApi.md#read) | **GET** {maven_maven_remote_href} | Inspect a maven remote
|
102
102
|
*PulpMavenClient::RemotesMavenApi* | [**update**](docs/RemotesMavenApi.md#update) | **PUT** {maven_maven_remote_href} | Update a maven remote
|
103
|
+
*PulpMavenClient::RepositoriesMavenApi* | [**add_cached_content**](docs/RepositoriesMavenApi.md#add_cached_content) | **POST** {maven_maven_repository_href}add_cached_content/ | Add cached content
|
103
104
|
*PulpMavenClient::RepositoriesMavenApi* | [**create**](docs/RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository
|
104
105
|
*PulpMavenClient::RepositoriesMavenApi* | [**delete**](docs/RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository
|
105
106
|
*PulpMavenClient::RepositoriesMavenApi* | [**list**](docs/RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys
|
@@ -135,6 +136,7 @@ Class | Method | HTTP request | Description
|
|
135
136
|
- [PulpMavenClient::PatchedmavenMavenRepository](docs/PatchedmavenMavenRepository.md)
|
136
137
|
- [PulpMavenClient::PolicyEnum](docs/PolicyEnum.md)
|
137
138
|
- [PulpMavenClient::Repair](docs/Repair.md)
|
139
|
+
- [PulpMavenClient::RepositoryAddCachedContent](docs/RepositoryAddCachedContent.md)
|
138
140
|
- [PulpMavenClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
139
141
|
|
140
142
|
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_cached_content**](RepositoriesMavenApi.md#add_cached_content) | **POST** {maven_maven_repository_href}add_cached_content/ | Add cached content
|
7
8
|
[**create**](RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository
|
8
9
|
[**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository
|
9
10
|
[**list**](RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys
|
@@ -13,6 +14,61 @@ Method | HTTP request | Description
|
|
13
14
|
|
14
15
|
|
15
16
|
|
17
|
+
## add_cached_content
|
18
|
+
|
19
|
+
> AsyncOperationResponse add_cached_content(maven_maven_repository_href, repository_add_cached_content)
|
20
|
+
|
21
|
+
Add cached content
|
22
|
+
|
23
|
+
Trigger an asynchronous task to add cached content to a repository.
|
24
|
+
|
25
|
+
### Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'pulp_maven_client'
|
30
|
+
# setup authorization
|
31
|
+
PulpMavenClient.configure do |config|
|
32
|
+
# Configure HTTP basic authorization: basicAuth
|
33
|
+
config.username = 'YOUR USERNAME'
|
34
|
+
config.password = 'YOUR PASSWORD'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
38
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
39
|
+
repository_add_cached_content = PulpMavenClient::RepositoryAddCachedContent.new # RepositoryAddCachedContent |
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Add cached content
|
43
|
+
result = api_instance.add_cached_content(maven_maven_repository_href, repository_add_cached_content)
|
44
|
+
p result
|
45
|
+
rescue PulpMavenClient::ApiError => e
|
46
|
+
puts "Exception when calling RepositoriesMavenApi->add_cached_content: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**maven_maven_repository_href** | **String**| |
|
56
|
+
**repository_add_cached_content** | [**RepositoryAddCachedContent**](RepositoryAddCachedContent.md)| |
|
57
|
+
|
58
|
+
### Return type
|
59
|
+
|
60
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
61
|
+
|
62
|
+
### Authorization
|
63
|
+
|
64
|
+
[basicAuth](../README.md#basicAuth)
|
65
|
+
|
66
|
+
### HTTP request headers
|
67
|
+
|
68
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
69
|
+
- **Accept**: application/json
|
70
|
+
|
71
|
+
|
16
72
|
## create
|
17
73
|
|
18
74
|
> MavenMavenRepositoryResponse create(maven_maven_repository)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpMavenClient::RepositoryAddCachedContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**remote** | **String** | A remote to use to identify content that was cached. This will override a remote set on repository. | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpMavenClient'
|
13
|
+
|
14
|
+
instance = PulpMavenClient::RepositoryAddCachedContent.new(remote: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -19,6 +19,76 @@ module PulpMavenClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add cached content
|
23
|
+
# Trigger an asynchronous task to add cached content to a repository.
|
24
|
+
# @param maven_maven_repository_href [String]
|
25
|
+
# @param repository_add_cached_content [RepositoryAddCachedContent]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [AsyncOperationResponse]
|
28
|
+
def add_cached_content(maven_maven_repository_href, repository_add_cached_content, opts = {})
|
29
|
+
data, _status_code, _headers = add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add cached content
|
34
|
+
# Trigger an asynchronous task to add cached content to a repository.
|
35
|
+
# @param maven_maven_repository_href [String]
|
36
|
+
# @param repository_add_cached_content [RepositoryAddCachedContent]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
39
|
+
def add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.add_cached_content ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
44
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.add_cached_content"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'repository_add_cached_content' is set
|
48
|
+
if @api_client.config.client_side_validation && repository_add_cached_content.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'repository_add_cached_content' when calling RepositoriesMavenApi.add_cached_content"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{maven_maven_repository_href}add_cached_content/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_add_cached_content)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#add_cached_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
22
92
|
# Create a maven repository
|
23
93
|
# A ViewSet for MavenRemote.
|
24
94
|
# @param maven_maven_repository [MavenMavenRepository]
|
@@ -0,0 +1,208 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpMavenClient
|
16
|
+
# A mixin for validating unknown serializers' fields.
|
17
|
+
class RepositoryAddCachedContent
|
18
|
+
# A remote to use to identify content that was cached. This will override a remote set on repository.
|
19
|
+
attr_accessor :remote
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'remote' => :'remote'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.openapi_types
|
30
|
+
{
|
31
|
+
:'remote' => :'String'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# List of attributes with nullable: true
|
36
|
+
def self.openapi_nullable
|
37
|
+
Set.new([
|
38
|
+
])
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
if (!attributes.is_a?(Hash))
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::RepositoryAddCachedContent` initialize method"
|
46
|
+
end
|
47
|
+
|
48
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::RepositoryAddCachedContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
|
+
end
|
53
|
+
h[k.to_sym] = v
|
54
|
+
}
|
55
|
+
|
56
|
+
if attributes.key?(:'remote')
|
57
|
+
self.remote = attributes[:'remote']
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
62
|
+
# @return Array for valid properties with the reasons
|
63
|
+
def list_invalid_properties
|
64
|
+
invalid_properties = Array.new
|
65
|
+
invalid_properties
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
def valid?
|
71
|
+
true
|
72
|
+
end
|
73
|
+
|
74
|
+
# Checks equality by comparing each attribute.
|
75
|
+
# @param [Object] Object to be compared
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
remote == o.remote
|
80
|
+
end
|
81
|
+
|
82
|
+
# @see the `==` method
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def eql?(o)
|
85
|
+
self == o
|
86
|
+
end
|
87
|
+
|
88
|
+
# Calculates hash code according to all attributes.
|
89
|
+
# @return [Integer] Hash code
|
90
|
+
def hash
|
91
|
+
[remote].hash
|
92
|
+
end
|
93
|
+
|
94
|
+
# Builds the object from hash
|
95
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
96
|
+
# @return [Object] Returns the model itself
|
97
|
+
def self.build_from_hash(attributes)
|
98
|
+
new.build_from_hash(attributes)
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def build_from_hash(attributes)
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
106
|
+
self.class.openapi_types.each_pair do |key, type|
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
108
|
+
# check to ensure the input is an array given that the attribute
|
109
|
+
# is documented as an array but the input is not
|
110
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
112
|
+
end
|
113
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
+
end
|
117
|
+
|
118
|
+
self
|
119
|
+
end
|
120
|
+
|
121
|
+
# Deserializes the data based on type
|
122
|
+
# @param string type Data type
|
123
|
+
# @param string value Value to be deserialized
|
124
|
+
# @return [Object] Deserialized data
|
125
|
+
def _deserialize(type, value)
|
126
|
+
case type.to_sym
|
127
|
+
when :DateTime
|
128
|
+
DateTime.parse(value)
|
129
|
+
when :Date
|
130
|
+
Date.parse(value)
|
131
|
+
when :String
|
132
|
+
value.to_s
|
133
|
+
when :Integer
|
134
|
+
value.to_i
|
135
|
+
when :Float
|
136
|
+
value.to_f
|
137
|
+
when :Boolean
|
138
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
+
true
|
140
|
+
else
|
141
|
+
false
|
142
|
+
end
|
143
|
+
when :Object
|
144
|
+
# generic object (usually a Hash), return directly
|
145
|
+
value
|
146
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
+
inner_type = Regexp.last_match[:inner_type]
|
148
|
+
value.map { |v| _deserialize(inner_type, v) }
|
149
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
+
k_type = Regexp.last_match[:k_type]
|
151
|
+
v_type = Regexp.last_match[:v_type]
|
152
|
+
{}.tap do |hash|
|
153
|
+
value.each do |k, v|
|
154
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
else # model
|
158
|
+
PulpMavenClient.const_get(type).build_from_hash(value)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the string representation of the object
|
163
|
+
# @return [String] String presentation of the object
|
164
|
+
def to_s
|
165
|
+
to_hash.to_s
|
166
|
+
end
|
167
|
+
|
168
|
+
# to_body is an alias to to_hash (backward compatibility)
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_body
|
171
|
+
to_hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the object in the form of hash
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_hash
|
177
|
+
hash = {}
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
179
|
+
value = self.send(attr)
|
180
|
+
if value.nil?
|
181
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
182
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
183
|
+
end
|
184
|
+
|
185
|
+
hash[param] = _to_hash(value)
|
186
|
+
end
|
187
|
+
hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Outputs non-array value in the form of hash
|
191
|
+
# For object, use to_hash. Otherwise, just return the value
|
192
|
+
# @param [Object] value Any valid value
|
193
|
+
# @return [Hash] Returns the value in the form of hash
|
194
|
+
def _to_hash(value)
|
195
|
+
if value.is_a?(Array)
|
196
|
+
value.compact.map { |v| _to_hash(v) }
|
197
|
+
elsif value.is_a?(Hash)
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
200
|
+
end
|
201
|
+
elsif value.respond_to? :to_hash
|
202
|
+
value.to_hash
|
203
|
+
else
|
204
|
+
value
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
data/lib/pulp_maven_client.rb
CHANGED
@@ -38,6 +38,7 @@ require 'pulp_maven_client/models/patchedmaven_maven_remote'
|
|
38
38
|
require 'pulp_maven_client/models/patchedmaven_maven_repository'
|
39
39
|
require 'pulp_maven_client/models/policy_enum'
|
40
40
|
require 'pulp_maven_client/models/repair'
|
41
|
+
require 'pulp_maven_client/models/repository_add_cached_content'
|
41
42
|
require 'pulp_maven_client/models/repository_version_response'
|
42
43
|
|
43
44
|
# APIs
|
@@ -32,6 +32,19 @@ describe 'RepositoriesMavenApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for add_cached_content
|
36
|
+
# Add cached content
|
37
|
+
# Trigger an asynchronous task to add cached content to a repository.
|
38
|
+
# @param maven_maven_repository_href
|
39
|
+
# @param repository_add_cached_content
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [AsyncOperationResponse]
|
42
|
+
describe 'add_cached_content test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
# unit tests for create
|
36
49
|
# Create a maven repository
|
37
50
|
# A ViewSet for MavenRemote.
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpMavenClient::RepositoryAddCachedContent
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'RepositoryAddCachedContent' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpMavenClient::RepositoryAddCachedContent.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of RepositoryAddCachedContent' do
|
31
|
+
it 'should create an instance of RepositoryAddCachedContent' do
|
32
|
+
expect(@instance).to be_instance_of(PulpMavenClient::RepositoryAddCachedContent)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "remote"' do
|
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
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_maven_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- docs/Repair.md
|
108
108
|
- docs/RepositoriesMavenApi.md
|
109
109
|
- docs/RepositoriesMavenVersionsApi.md
|
110
|
+
- docs/RepositoryAddCachedContent.md
|
110
111
|
- docs/RepositoryVersionResponse.md
|
111
112
|
- lib/pulp_maven_client.rb
|
112
113
|
- lib/pulp_maven_client/api/content_artifact_api.rb
|
@@ -139,6 +140,7 @@ files:
|
|
139
140
|
- lib/pulp_maven_client/models/patchedmaven_maven_repository.rb
|
140
141
|
- lib/pulp_maven_client/models/policy_enum.rb
|
141
142
|
- lib/pulp_maven_client/models/repair.rb
|
143
|
+
- lib/pulp_maven_client/models/repository_add_cached_content.rb
|
142
144
|
- lib/pulp_maven_client/models/repository_version_response.rb
|
143
145
|
- lib/pulp_maven_client/version.rb
|
144
146
|
- pulp_maven_client.gemspec
|
@@ -171,6 +173,7 @@ files:
|
|
171
173
|
- spec/models/patchedmaven_maven_repository_spec.rb
|
172
174
|
- spec/models/policy_enum_spec.rb
|
173
175
|
- spec/models/repair_spec.rb
|
176
|
+
- spec/models/repository_add_cached_content_spec.rb
|
174
177
|
- spec/models/repository_version_response_spec.rb
|
175
178
|
- spec/spec_helper.rb
|
176
179
|
homepage: https://github.com/pulp/pulp_maven
|
@@ -197,34 +200,35 @@ signing_key:
|
|
197
200
|
specification_version: 4
|
198
201
|
summary: Pulp 3 API Ruby Gem
|
199
202
|
test_files:
|
203
|
+
- spec/api/pulp_maven_api_spec.rb
|
200
204
|
- spec/api/remotes_maven_api_spec.rb
|
201
|
-
- spec/api/repositories_maven_versions_api_spec.rb
|
202
205
|
- spec/api/content_artifact_api_spec.rb
|
203
|
-
- spec/api/
|
206
|
+
- spec/api/repositories_maven_versions_api_spec.rb
|
204
207
|
- spec/api/repositories_maven_api_spec.rb
|
205
208
|
- spec/api/distributions_maven_api_spec.rb
|
206
209
|
- spec/api_client_spec.rb
|
207
210
|
- spec/configuration_spec.rb
|
208
|
-
- spec/models/
|
209
|
-
- spec/models/
|
211
|
+
- spec/models/repository_version_response_spec.rb
|
212
|
+
- spec/models/maven_maven_remote_response_spec.rb
|
210
213
|
- spec/models/patchedmaven_maven_remote_spec.rb
|
211
|
-
- spec/models/
|
214
|
+
- spec/models/repair_spec.rb
|
212
215
|
- spec/models/maven_maven_remote_response_hidden_fields_spec.rb
|
213
|
-
- spec/models/
|
216
|
+
- spec/models/paginatedmaven_maven_artifact_response_list_spec.rb
|
217
|
+
- spec/models/maven_maven_repository_spec.rb
|
218
|
+
- spec/models/maven_maven_distribution_spec.rb
|
219
|
+
- spec/models/async_operation_response_spec.rb
|
214
220
|
- spec/models/paginatedmaven_maven_distribution_response_list_spec.rb
|
215
|
-
- spec/models/maven_maven_artifact_response_spec.rb
|
216
221
|
- spec/models/paginatedmaven_maven_remote_response_list_spec.rb
|
217
|
-
- spec/models/
|
218
|
-
- spec/models/repository_version_response_spec.rb
|
219
|
-
- spec/models/patchedmaven_maven_repository_spec.rb
|
220
|
-
- spec/models/maven_maven_distribution_spec.rb
|
222
|
+
- spec/models/maven_maven_repository_response_spec.rb
|
221
223
|
- spec/models/paginatedmaven_maven_repository_response_list_spec.rb
|
224
|
+
- spec/models/maven_maven_artifact_spec.rb
|
222
225
|
- spec/models/policy_enum_spec.rb
|
223
|
-
- spec/models/
|
226
|
+
- spec/models/patchedmaven_maven_distribution_spec.rb
|
227
|
+
- spec/models/content_summary_response_spec.rb
|
228
|
+
- spec/models/repository_add_cached_content_spec.rb
|
224
229
|
- spec/models/maven_maven_distribution_response_spec.rb
|
225
|
-
- spec/models/
|
226
|
-
- spec/models/maven_maven_artifact_spec.rb
|
227
|
-
- spec/models/async_operation_response_spec.rb
|
230
|
+
- spec/models/maven_maven_artifact_response_spec.rb
|
228
231
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
229
|
-
- spec/models/
|
232
|
+
- spec/models/patchedmaven_maven_repository_spec.rb
|
233
|
+
- spec/models/maven_maven_remote_spec.rb
|
230
234
|
- spec/spec_helper.rb
|