pulp_npm_client 0.1.0a3.dev01613618930 → 0.1.0a3.dev1615001339

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.

Potentially problematic release.


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

@@ -33,9 +33,15 @@ module PulpNpmClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpNpmClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -75,6 +84,8 @@ module PulpNpmClient
75
84
  :'client_key' => :'client_key',
76
85
  :'tls_validation' => :'tls_validation',
77
86
  :'proxy_url' => :'proxy_url',
87
+ :'proxy_username' => :'proxy_username',
88
+ :'proxy_password' => :'proxy_password',
78
89
  :'username' => :'username',
79
90
  :'password' => :'password',
80
91
  :'pulp_labels' => :'pulp_labels',
@@ -84,6 +95,7 @@ module PulpNpmClient
84
95
  :'connect_timeout' => :'connect_timeout',
85
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
86
97
  :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'headers' => :'headers',
87
99
  :'rate_limit' => :'rate_limit'
88
100
  }
89
101
  end
@@ -98,6 +110,8 @@ module PulpNpmClient
98
110
  :'client_key' => :'String',
99
111
  :'tls_validation' => :'Boolean',
100
112
  :'proxy_url' => :'String',
113
+ :'proxy_username' => :'String',
114
+ :'proxy_password' => :'String',
101
115
  :'username' => :'String',
102
116
  :'password' => :'String',
103
117
  :'pulp_labels' => :'Object',
@@ -107,6 +121,7 @@ module PulpNpmClient
107
121
  :'connect_timeout' => :'Float',
108
122
  :'sock_connect_timeout' => :'Float',
109
123
  :'sock_read_timeout' => :'Float',
124
+ :'headers' => :'Array<Object>',
110
125
  :'rate_limit' => :'Integer'
111
126
  }
112
127
  end
@@ -118,6 +133,8 @@ module PulpNpmClient
118
133
  :'client_cert',
119
134
  :'client_key',
120
135
  :'proxy_url',
136
+ :'proxy_username',
137
+ :'proxy_password',
121
138
  :'username',
122
139
  :'password',
123
140
  :'total_timeout',
@@ -171,6 +188,14 @@ module PulpNpmClient
171
188
  self.proxy_url = attributes[:'proxy_url']
172
189
  end
173
190
 
191
+ if attributes.key?(:'proxy_username')
192
+ self.proxy_username = attributes[:'proxy_username']
193
+ end
194
+
195
+ if attributes.key?(:'proxy_password')
196
+ self.proxy_password = attributes[:'proxy_password']
197
+ end
198
+
174
199
  if attributes.key?(:'username')
175
200
  self.username = attributes[:'username']
176
201
  end
@@ -207,6 +232,12 @@ module PulpNpmClient
207
232
  self.sock_read_timeout = attributes[:'sock_read_timeout']
208
233
  end
209
234
 
235
+ if attributes.key?(:'headers')
236
+ if (value = attributes[:'headers']).is_a?(Array)
237
+ self.headers = value
238
+ end
239
+ end
240
+
210
241
  if attributes.key?(:'rate_limit')
211
242
  self.rate_limit = attributes[:'rate_limit']
212
243
  end
@@ -312,6 +343,8 @@ module PulpNpmClient
312
343
  client_key == o.client_key &&
313
344
  tls_validation == o.tls_validation &&
314
345
  proxy_url == o.proxy_url &&
346
+ proxy_username == o.proxy_username &&
347
+ proxy_password == o.proxy_password &&
315
348
  username == o.username &&
316
349
  password == o.password &&
317
350
  pulp_labels == o.pulp_labels &&
@@ -321,6 +354,7 @@ module PulpNpmClient
321
354
  connect_timeout == o.connect_timeout &&
322
355
  sock_connect_timeout == o.sock_connect_timeout &&
323
356
  sock_read_timeout == o.sock_read_timeout &&
357
+ headers == o.headers &&
324
358
  rate_limit == o.rate_limit
325
359
  end
326
360
 
@@ -333,7 +367,7 @@ module PulpNpmClient
333
367
  # Calculates hash code according to all attributes.
334
368
  # @return [Integer] Hash code
335
369
  def hash
336
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
370
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
337
371
  end
338
372
 
339
373
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpNpmClient
14
- VERSION = '0.1.0a3.dev01613618930'
14
+ VERSION = '0.1.0a3.dev1615001339'
15
15
  end
@@ -54,13 +54,13 @@ describe 'ContentPackagesApi' do
54
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.
55
55
  # @param [Hash] opts the optional parameters
56
56
  # @option opts [Integer] :limit Number of results to return per page.
57
- # @option opts [String] :name name
58
- # @option opts [String] :name__in name__in
57
+ # @option opts [String] :name Filter results where name matches value
58
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
59
59
  # @option opts [Integer] :offset The initial index from which to return the results.
60
60
  # @option opts [String] :ordering Which field to use when ordering the results.
61
- # @option opts [String] :repository_version repository_version
62
- # @option opts [String] :repository_version_added repository_version_added
63
- # @option opts [String] :repository_version_removed repository_version_removed
61
+ # @option opts [String] :repository_version Repository Version referenced by HREF
62
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
63
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
64
64
  # @option opts [String] :fields A list of fields to include in the response.
65
65
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
66
66
  # @return [PaginatednpmPackageResponseList]
@@ -60,19 +60,19 @@ describe 'DistributionsNpmApi' do
60
60
  # List npm distributions
61
61
  # ViewSet for NPM Distributions.
62
62
  # @param [Hash] opts the optional parameters
63
- # @option opts [String] :base_path base_path
64
- # @option opts [String] :base_path__contains base_path__contains
65
- # @option opts [String] :base_path__icontains base_path__icontains
66
- # @option opts [String] :base_path__in base_path__in
63
+ # @option opts [String] :base_path
64
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
65
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
66
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
67
67
  # @option opts [Integer] :limit Number of results to return per page.
68
- # @option opts [String] :name name
69
- # @option opts [String] :name__contains name__contains
70
- # @option opts [String] :name__icontains name__icontains
71
- # @option opts [String] :name__in name__in
72
- # @option opts [String] :name__startswith name__startswith
68
+ # @option opts [String] :name
69
+ # @option opts [String] :name__contains Filter results where name contains value
70
+ # @option opts [String] :name__icontains Filter results where name contains value
71
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
72
+ # @option opts [String] :name__startswith Filter results where name starts with value
73
73
  # @option opts [Integer] :offset The initial index from which to return the results.
74
74
  # @option opts [String] :ordering Which field to use when ordering the results.
75
- # @option opts [String] :pulp_label_select pulp_label_select
75
+ # @option opts [String] :pulp_label_select Filter labels by search string
76
76
  # @option opts [String] :fields A list of fields to include in the response.
77
77
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
78
  # @return [PaginatednpmNpmDistributionResponseList]
@@ -61,20 +61,20 @@ describe 'RemotesNpmApi' do
61
61
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name name
65
- # @option opts [String] :name__contains name__contains
66
- # @option opts [String] :name__icontains name__icontains
67
- # @option opts [String] :name__in name__in
68
- # @option opts [String] :name__startswith name__startswith
64
+ # @option opts [String] :name
65
+ # @option opts [String] :name__contains Filter results where name contains value
66
+ # @option opts [String] :name__icontains Filter results where name contains value
67
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
+ # @option opts [String] :name__startswith Filter results where name starts with value
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
- # @option opts [String] :pulp_label_select pulp_label_select
72
- # @option opts [String] :pulp_last_updated pulp_last_updated
73
- # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
74
- # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
75
- # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
76
- # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
77
- # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
71
+ # @option opts [String] :pulp_label_select Filter labels by search string
72
+ # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
73
+ # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
74
+ # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
75
+ # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
76
+ # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
77
+ # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
78
78
  # @option opts [String] :fields A list of fields to include in the response.
79
79
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
80
80
  # @return [PaginatednpmNpmRemoteResponseList]
@@ -61,14 +61,14 @@ describe 'RepositoriesNpmApi' do
61
61
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name name
65
- # @option opts [String] :name__contains name__contains
66
- # @option opts [String] :name__icontains name__icontains
67
- # @option opts [String] :name__in name__in
68
- # @option opts [String] :name__startswith name__startswith
64
+ # @option opts [String] :name
65
+ # @option opts [String] :name__contains Filter results where name contains value
66
+ # @option opts [String] :name__icontains Filter results where name contains value
67
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
+ # @option opts [String] :name__startswith Filter results where name starts with value
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
- # @option opts [String] :pulp_label_select pulp_label_select
71
+ # @option opts [String] :pulp_label_select Filter labels by search string
72
72
  # @option opts [String] :fields A list of fields to include in the response.
73
73
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
74
  # @return [PaginatednpmNpmRepositoryResponseList]
@@ -49,23 +49,23 @@ describe 'RepositoriesNpmVersionsApi' do
49
49
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
50
50
  # @param npm_npm_repository_href
51
51
  # @param [Hash] opts the optional parameters
52
- # @option opts [String] :content content
53
- # @option opts [String] :content__in content__in
52
+ # @option opts [String] :content Content Unit referenced by HREF
53
+ # @option opts [String] :content__in Content Unit referenced by HREF
54
54
  # @option opts [Integer] :limit Number of results to return per page.
55
- # @option opts [String] :number number
56
- # @option opts [String] :number__gt number__gt
57
- # @option opts [String] :number__gte number__gte
58
- # @option opts [String] :number__lt number__lt
59
- # @option opts [String] :number__lte number__lte
60
- # @option opts [String] :number__range number__range
55
+ # @option opts [Integer] :number
56
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
57
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
58
+ # @option opts [Integer] :number__lt Filter results where number is less than value
59
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
60
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
61
61
  # @option opts [Integer] :offset The initial index from which to return the results.
62
62
  # @option opts [String] :ordering Which field to use when ordering the results.
63
- # @option opts [String] :pulp_created pulp_created
64
- # @option opts [String] :pulp_created__gt pulp_created__gt
65
- # @option opts [String] :pulp_created__gte pulp_created__gte
66
- # @option opts [String] :pulp_created__lt pulp_created__lt
67
- # @option opts [String] :pulp_created__lte pulp_created__lte
68
- # @option opts [String] :pulp_created__range pulp_created__range
63
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
64
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
65
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
66
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
67
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
68
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
69
69
  # @option opts [String] :fields A list of fields to include in the response.
70
70
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
71
71
  # @return [PaginatedRepositoryVersionResponseList]
@@ -68,12 +68,6 @@ describe 'NpmNpmRemoteResponse' do
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "client_key"' 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
71
  describe 'test attribute "tls_validation"' do
78
72
  it 'should work' do
79
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,18 +80,6 @@ describe 'NpmNpmRemoteResponse' do
86
80
  end
87
81
  end
88
82
 
89
- describe 'test attribute "username"' 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 "password"' 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
83
  describe 'test attribute "pulp_labels"' do
102
84
  it 'should work' do
103
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -146,6 +128,12 @@ describe 'NpmNpmRemoteResponse' do
146
128
  end
147
129
  end
148
130
 
131
+ describe 'test attribute "headers"' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
+ end
135
+ end
136
+
149
137
  describe 'test attribute "rate_limit"' do
150
138
  it 'should work' do
151
139
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -74,6 +74,18 @@ describe 'NpmNpmRemote' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "proxy_username"' 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 "proxy_password"' 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
+
77
89
  describe 'test attribute "username"' do
78
90
  it 'should work' do
79
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -128,6 +140,12 @@ describe 'NpmNpmRemote' do
128
140
  end
129
141
  end
130
142
 
143
+ describe 'test attribute "headers"' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
131
149
  describe 'test attribute "rate_limit"' do
132
150
  it 'should work' do
133
151
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -74,6 +74,18 @@ describe 'PatchednpmNpmRemote' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "proxy_username"' 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 "proxy_password"' 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
+
77
89
  describe 'test attribute "username"' do
78
90
  it 'should work' do
79
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -128,6 +140,12 @@ describe 'PatchednpmNpmRemote' do
128
140
  end
129
141
  end
130
142
 
143
+ describe 'test attribute "headers"' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
131
149
  describe 'test attribute "rate_limit"' do
132
150
  it 'should work' do
133
151
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_npm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0a3.dev01613618930
4
+ version: 0.1.0a3.dev1615001339
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-02-18 00:00:00.000000000 Z
11
+ date: 2021-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday