pulp_npm_client 0.1.0a1.dev01595856770 → 0.1.0a1.dev01596245316

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_npm_client might be problematic. Click here for more details.

@@ -19,8 +19,9 @@ module PulpNpmClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Delete a repository version
22
23
  # Trigger an asynchronous task to delete a repositroy version.
23
- # @param npm_repository_version_href [String]
24
+ # @param npm_npm_repository_version_href [String]
24
25
  # @param [Hash] opts the optional parameters
25
26
  # @option opts [String] :content content
26
27
  # @option opts [String] :content__in content__in
@@ -38,13 +39,14 @@ module PulpNpmClient
38
39
  # @option opts [String] :pulp_created__lte pulp_created__lte
39
40
  # @option opts [String] :pulp_created__range pulp_created__range
40
41
  # @return [AsyncOperationResponse]
41
- def delete(npm_repository_version_href, opts = {})
42
- data, _status_code, _headers = delete_with_http_info(npm_repository_version_href, opts)
42
+ def delete(npm_npm_repository_version_href, opts = {})
43
+ data, _status_code, _headers = delete_with_http_info(npm_npm_repository_version_href, opts)
43
44
  data
44
45
  end
45
46
 
47
+ # Delete a repository version
46
48
  # Trigger an asynchronous task to delete a repositroy version.
47
- # @param npm_repository_version_href [String]
49
+ # @param npm_npm_repository_version_href [String]
48
50
  # @param [Hash] opts the optional parameters
49
51
  # @option opts [String] :content content
50
52
  # @option opts [String] :content__in content__in
@@ -62,16 +64,16 @@ module PulpNpmClient
62
64
  # @option opts [String] :pulp_created__lte pulp_created__lte
63
65
  # @option opts [String] :pulp_created__range pulp_created__range
64
66
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
65
- def delete_with_http_info(npm_repository_version_href, opts = {})
67
+ def delete_with_http_info(npm_npm_repository_version_href, opts = {})
66
68
  if @api_client.config.debugging
67
69
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.delete ...'
68
70
  end
69
- # verify the required parameter 'npm_repository_version_href' is set
70
- if @api_client.config.client_side_validation && npm_repository_version_href.nil?
71
- fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.delete"
71
+ # verify the required parameter 'npm_npm_repository_version_href' is set
72
+ if @api_client.config.client_side_validation && npm_npm_repository_version_href.nil?
73
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_version_href' when calling RepositoriesNpmVersionsApi.delete"
72
74
  end
73
75
  # resource path
74
- local_var_path = '{npm_repository_version_href}'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
76
+ local_var_path = '{npm_npm_repository_version_href}'.sub('{' + 'npm_npm_repository_version_href' + '}', CGI.escape(npm_npm_repository_version_href.to_s).gsub('%2F', '/'))
75
77
 
76
78
  # query parameters
77
79
  query_params = opts[:query_params] || {}
@@ -124,8 +126,9 @@ module PulpNpmClient
124
126
  return data, status_code, headers
125
127
  end
126
128
 
129
+ # List repository versions
127
130
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
128
- # @param npm_repository_version_href [String]
131
+ # @param npm_npm_repository_href [String]
129
132
  # @param [Hash] opts the optional parameters
130
133
  # @option opts [String] :content content
131
134
  # @option opts [String] :content__in content__in
@@ -147,13 +150,14 @@ module PulpNpmClient
147
150
  # @option opts [String] :fields A list of fields to include in the response.
148
151
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
149
152
  # @return [InlineResponse2004]
150
- def list(npm_repository_version_href, opts = {})
151
- data, _status_code, _headers = list_with_http_info(npm_repository_version_href, opts)
153
+ def list(npm_npm_repository_href, opts = {})
154
+ data, _status_code, _headers = list_with_http_info(npm_npm_repository_href, opts)
152
155
  data
153
156
  end
154
157
 
158
+ # List repository versions
155
159
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
156
- # @param npm_repository_version_href [String]
160
+ # @param npm_npm_repository_href [String]
157
161
  # @param [Hash] opts the optional parameters
158
162
  # @option opts [String] :content content
159
163
  # @option opts [String] :content__in content__in
@@ -175,16 +179,16 @@ module PulpNpmClient
175
179
  # @option opts [String] :fields A list of fields to include in the response.
176
180
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
177
181
  # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
178
- def list_with_http_info(npm_repository_version_href, opts = {})
182
+ def list_with_http_info(npm_npm_repository_href, opts = {})
179
183
  if @api_client.config.debugging
180
184
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.list ...'
181
185
  end
182
- # verify the required parameter 'npm_repository_version_href' is set
183
- if @api_client.config.client_side_validation && npm_repository_version_href.nil?
184
- fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.list"
186
+ # verify the required parameter 'npm_npm_repository_href' is set
187
+ if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
188
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmVersionsApi.list"
185
189
  end
186
190
  # resource path
187
- local_var_path = '{npm_repository_version_href}versions/'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
191
+ local_var_path = '{npm_npm_repository_href}versions/'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
188
192
 
189
193
  # query parameters
190
194
  query_params = opts[:query_params] || {}
@@ -241,33 +245,35 @@ module PulpNpmClient
241
245
  return data, status_code, headers
242
246
  end
243
247
 
248
+ # Inspect a repository version
244
249
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
245
- # @param npm_repository_version_href [String]
250
+ # @param npm_npm_repository_version_href [String]
246
251
  # @param [Hash] opts the optional parameters
247
252
  # @option opts [String] :fields A list of fields to include in the response.
248
253
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
249
254
  # @return [RepositoryVersionResponse]
250
- def read(npm_repository_version_href, opts = {})
251
- data, _status_code, _headers = read_with_http_info(npm_repository_version_href, opts)
255
+ def read(npm_npm_repository_version_href, opts = {})
256
+ data, _status_code, _headers = read_with_http_info(npm_npm_repository_version_href, opts)
252
257
  data
253
258
  end
254
259
 
260
+ # Inspect a repository version
255
261
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
256
- # @param npm_repository_version_href [String]
262
+ # @param npm_npm_repository_version_href [String]
257
263
  # @param [Hash] opts the optional parameters
258
264
  # @option opts [String] :fields A list of fields to include in the response.
259
265
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
260
266
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
261
- def read_with_http_info(npm_repository_version_href, opts = {})
267
+ def read_with_http_info(npm_npm_repository_version_href, opts = {})
262
268
  if @api_client.config.debugging
263
269
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.read ...'
264
270
  end
265
- # verify the required parameter 'npm_repository_version_href' is set
266
- if @api_client.config.client_side_validation && npm_repository_version_href.nil?
267
- fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.read"
271
+ # verify the required parameter 'npm_npm_repository_version_href' is set
272
+ if @api_client.config.client_side_validation && npm_npm_repository_version_href.nil?
273
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_version_href' when calling RepositoriesNpmVersionsApi.read"
268
274
  end
269
275
  # resource path
270
- local_var_path = '{npm_repository_version_href}'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
276
+ local_var_path = '{npm_npm_repository_version_href}'.sub('{' + 'npm_npm_repository_version_href' + '}', CGI.escape(npm_npm_repository_version_href.to_s).gsub('%2F', '/'))
271
277
 
272
278
  # query parameters
273
279
  query_params = opts[:query_params] || {}
@@ -308,34 +314,34 @@ module PulpNpmClient
308
314
  end
309
315
 
310
316
  # Trigger an asynchronous task to repair a repositroy version.
311
- # @param npm_repository_version_href [String]
317
+ # @param npm_npm_repository_version_href [String]
312
318
  # @param repository_version [RepositoryVersion]
313
319
  # @param [Hash] opts the optional parameters
314
320
  # @return [AsyncOperationResponse]
315
- def repair(npm_repository_version_href, repository_version, opts = {})
316
- data, _status_code, _headers = repair_with_http_info(npm_repository_version_href, repository_version, opts)
321
+ def repair(npm_npm_repository_version_href, repository_version, opts = {})
322
+ data, _status_code, _headers = repair_with_http_info(npm_npm_repository_version_href, repository_version, opts)
317
323
  data
318
324
  end
319
325
 
320
326
  # Trigger an asynchronous task to repair a repositroy version.
321
- # @param npm_repository_version_href [String]
327
+ # @param npm_npm_repository_version_href [String]
322
328
  # @param repository_version [RepositoryVersion]
323
329
  # @param [Hash] opts the optional parameters
324
330
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
325
- def repair_with_http_info(npm_repository_version_href, repository_version, opts = {})
331
+ def repair_with_http_info(npm_npm_repository_version_href, repository_version, opts = {})
326
332
  if @api_client.config.debugging
327
333
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.repair ...'
328
334
  end
329
- # verify the required parameter 'npm_repository_version_href' is set
330
- if @api_client.config.client_side_validation && npm_repository_version_href.nil?
331
- fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.repair"
335
+ # verify the required parameter 'npm_npm_repository_version_href' is set
336
+ if @api_client.config.client_side_validation && npm_npm_repository_version_href.nil?
337
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_version_href' when calling RepositoriesNpmVersionsApi.repair"
332
338
  end
333
339
  # verify the required parameter 'repository_version' is set
334
340
  if @api_client.config.client_side_validation && repository_version.nil?
335
341
  fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesNpmVersionsApi.repair"
336
342
  end
337
343
  # resource path
338
- local_var_path = '{npm_repository_version_href}repair/'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
344
+ local_var_path = '{npm_npm_repository_version_href}repair/'.sub('{' + 'npm_npm_repository_version_href' + '}', CGI.escape(npm_npm_repository_version_href.to_s).gsub('%2F', '/'))
339
345
 
340
346
  # query parameters
341
347
  query_params = opts[:query_params] || {}
@@ -21,11 +21,14 @@ module PulpNpmClient
21
21
  # An optional description.
22
22
  attr_accessor :description
23
23
 
24
+ attr_accessor :remote
25
+
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
29
  :'name' => :'name',
28
- :'description' => :'description'
30
+ :'description' => :'description',
31
+ :'remote' => :'remote'
29
32
  }
30
33
  end
31
34
 
@@ -33,14 +36,16 @@ module PulpNpmClient
33
36
  def self.openapi_types
34
37
  {
35
38
  :'name' => :'String',
36
- :'description' => :'String'
39
+ :'description' => :'String',
40
+ :'remote' => :'String'
37
41
  }
38
42
  end
39
43
 
40
44
  # List of attributes with nullable: true
41
45
  def self.openapi_nullable
42
46
  Set.new([
43
- :'description'
47
+ :'description',
48
+ :'remote'
44
49
  ])
45
50
  end
46
51
 
@@ -66,6 +71,10 @@ module PulpNpmClient
66
71
  if attributes.key?(:'description')
67
72
  self.description = attributes[:'description']
68
73
  end
74
+
75
+ if attributes.key?(:'remote')
76
+ self.remote = attributes[:'remote']
77
+ end
69
78
  end
70
79
 
71
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,7 +101,8 @@ module PulpNpmClient
92
101
  return true if self.equal?(o)
93
102
  self.class == o.class &&
94
103
  name == o.name &&
95
- description == o.description
104
+ description == o.description &&
105
+ remote == o.remote
96
106
  end
97
107
 
98
108
  # @see the `==` method
@@ -104,7 +114,7 @@ module PulpNpmClient
104
114
  # Calculates hash code according to all attributes.
105
115
  # @return [Integer] Hash code
106
116
  def hash
107
- [name, description].hash
117
+ [name, description, remote].hash
108
118
  end
109
119
 
110
120
  # Builds the object from hash
@@ -30,6 +30,8 @@ module PulpNpmClient
30
30
  # An optional description.
31
31
  attr_accessor :description
32
32
 
33
+ attr_accessor :remote
34
+
33
35
  # Attribute mapping from ruby-style variable name to JSON key.
34
36
  def self.attribute_map
35
37
  {
@@ -38,7 +40,8 @@ module PulpNpmClient
38
40
  :'versions_href' => :'versions_href',
39
41
  :'latest_version_href' => :'latest_version_href',
40
42
  :'name' => :'name',
41
- :'description' => :'description'
43
+ :'description' => :'description',
44
+ :'remote' => :'remote'
42
45
  }
43
46
  end
44
47
 
@@ -50,14 +53,16 @@ module PulpNpmClient
50
53
  :'versions_href' => :'String',
51
54
  :'latest_version_href' => :'String',
52
55
  :'name' => :'String',
53
- :'description' => :'String'
56
+ :'description' => :'String',
57
+ :'remote' => :'String'
54
58
  }
55
59
  end
56
60
 
57
61
  # List of attributes with nullable: true
58
62
  def self.openapi_nullable
59
63
  Set.new([
60
- :'description'
64
+ :'description',
65
+ :'remote'
61
66
  ])
62
67
  end
63
68
 
@@ -99,6 +104,10 @@ module PulpNpmClient
99
104
  if attributes.key?(:'description')
100
105
  self.description = attributes[:'description']
101
106
  end
107
+
108
+ if attributes.key?(:'remote')
109
+ self.remote = attributes[:'remote']
110
+ end
102
111
  end
103
112
 
104
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,7 +138,8 @@ module PulpNpmClient
129
138
  versions_href == o.versions_href &&
130
139
  latest_version_href == o.latest_version_href &&
131
140
  name == o.name &&
132
- description == o.description
141
+ description == o.description &&
142
+ remote == o.remote
133
143
  end
134
144
 
135
145
  # @see the `==` method
@@ -141,7 +151,7 @@ module PulpNpmClient
141
151
  # Calculates hash code according to all attributes.
142
152
  # @return [Integer] Hash code
143
153
  def hash
144
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description].hash
154
+ [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
145
155
  end
146
156
 
147
157
  # Builds the object from hash
@@ -21,11 +21,14 @@ module PulpNpmClient
21
21
  # An optional description.
22
22
  attr_accessor :description
23
23
 
24
+ attr_accessor :remote
25
+
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
29
  :'name' => :'name',
28
- :'description' => :'description'
30
+ :'description' => :'description',
31
+ :'remote' => :'remote'
29
32
  }
30
33
  end
31
34
 
@@ -33,14 +36,16 @@ module PulpNpmClient
33
36
  def self.openapi_types
34
37
  {
35
38
  :'name' => :'String',
36
- :'description' => :'String'
39
+ :'description' => :'String',
40
+ :'remote' => :'String'
37
41
  }
38
42
  end
39
43
 
40
44
  # List of attributes with nullable: true
41
45
  def self.openapi_nullable
42
46
  Set.new([
43
- :'description'
47
+ :'description',
48
+ :'remote'
44
49
  ])
45
50
  end
46
51
 
@@ -66,6 +71,10 @@ module PulpNpmClient
66
71
  if attributes.key?(:'description')
67
72
  self.description = attributes[:'description']
68
73
  end
74
+
75
+ if attributes.key?(:'remote')
76
+ self.remote = attributes[:'remote']
77
+ end
69
78
  end
70
79
 
71
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -87,7 +96,8 @@ module PulpNpmClient
87
96
  return true if self.equal?(o)
88
97
  self.class == o.class &&
89
98
  name == o.name &&
90
- description == o.description
99
+ description == o.description &&
100
+ remote == o.remote
91
101
  end
92
102
 
93
103
  # @see the `==` method
@@ -99,7 +109,7 @@ module PulpNpmClient
99
109
  # Calculates hash code according to all attributes.
100
110
  # @return [Integer] Hash code
101
111
  def hash
102
- [name, description].hash
112
+ [name, description, remote].hash
103
113
  end
104
114
 
105
115
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module PulpNpmClient
16
16
  class RepositorySyncURL
17
- # A URI of the repository to be synchronized.
17
+ # A remote to sync from. This will override a remote set on repository.
18
18
  attr_accessor :remote
19
19
 
20
20
  # If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
@@ -72,17 +72,12 @@ module PulpNpmClient
72
72
  # @return Array for valid properties with the reasons
73
73
  def list_invalid_properties
74
74
  invalid_properties = Array.new
75
- if @remote.nil?
76
- invalid_properties.push('invalid value for "remote", remote cannot be nil.')
77
- end
78
-
79
75
  invalid_properties
80
76
  end
81
77
 
82
78
  # Check to see if the all the properties in the model are valid
83
79
  # @return true if the model is valid
84
80
  def valid?
85
- return false if @remote.nil?
86
81
  true
87
82
  end
88
83
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpNpmClient
14
- VERSION = '0.1.0a1.dev01595856770'
14
+ VERSION = '0.1.0a1.dev01596245316'
15
15
  end
@@ -33,6 +33,7 @@ describe 'ContentPackagesApi' do
33
33
  end
34
34
 
35
35
  # unit tests for create
36
+ # Create a package
36
37
  # Perform bookkeeping when saving Content. \&quot;Artifacts\&quot; need to be popped off and saved indpendently, as they are not actually part of the Content model.
37
38
  # @param relative_path
38
39
  # @param name
@@ -49,6 +50,7 @@ describe 'ContentPackagesApi' do
49
50
  end
50
51
 
51
52
  # unit tests for list
53
+ # List packages
52
54
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
53
55
  # @param [Hash] opts the optional parameters
54
56
  # @option opts [Integer] :limit Number of results to return per page.
@@ -69,8 +71,9 @@ describe 'ContentPackagesApi' do
69
71
  end
70
72
 
71
73
  # unit tests for read
74
+ # Inspect a package
72
75
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
73
- # @param package_href
76
+ # @param npm_package_href
74
77
  # @param [Hash] opts the optional parameters
75
78
  # @option opts [String] :fields A list of fields to include in the response.
76
79
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -33,6 +33,7 @@ describe 'DistributionsNpmApi' do
33
33
  end
34
34
 
35
35
  # unit tests for create
36
+ # Create a npm distribution
36
37
  # Trigger an asynchronous create task
37
38
  # @param npm_npm_distribution
38
39
  # @param [Hash] opts the optional parameters
@@ -44,8 +45,9 @@ describe 'DistributionsNpmApi' do
44
45
  end
45
46
 
46
47
  # unit tests for delete
48
+ # Delete a npm distribution
47
49
  # Trigger an asynchronous delete task
48
- # @param npm_distribution_href
50
+ # @param npm_npm_distribution_href
49
51
  # @param [Hash] opts the optional parameters
50
52
  # @option opts [String] :base_path base_path
51
53
  # @option opts [String] :base_path__contains base_path__contains
@@ -62,6 +64,7 @@ describe 'DistributionsNpmApi' do
62
64
  end
63
65
 
64
66
  # unit tests for list
67
+ # List npm distributions
65
68
  # ViewSet for NPM Distributions.
66
69
  # @param [Hash] opts the optional parameters
67
70
  # @option opts [String] :base_path base_path
@@ -83,8 +86,9 @@ describe 'DistributionsNpmApi' do
83
86
  end
84
87
 
85
88
  # unit tests for partial_update
89
+ # Update a npm distribution
86
90
  # Trigger an asynchronous partial update task
87
- # @param npm_distribution_href
91
+ # @param npm_npm_distribution_href
88
92
  # @param patchednpm_npm_distribution
89
93
  # @param [Hash] opts the optional parameters
90
94
  # @option opts [String] :base_path base_path
@@ -102,8 +106,9 @@ describe 'DistributionsNpmApi' do
102
106
  end
103
107
 
104
108
  # unit tests for read
109
+ # Inspect a npm distribution
105
110
  # ViewSet for NPM Distributions.
106
- # @param npm_distribution_href
111
+ # @param npm_npm_distribution_href
107
112
  # @param [Hash] opts the optional parameters
108
113
  # @option opts [String] :fields A list of fields to include in the response.
109
114
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -115,8 +120,9 @@ describe 'DistributionsNpmApi' do
115
120
  end
116
121
 
117
122
  # unit tests for update
123
+ # Update a npm distribution
118
124
  # Trigger an asynchronous update task
119
- # @param npm_distribution_href
125
+ # @param npm_npm_distribution_href
120
126
  # @param npm_npm_distribution
121
127
  # @param [Hash] opts the optional parameters
122
128
  # @option opts [String] :base_path base_path