pulp_rpm_client 3.11.0 → 3.12.0

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -4
  3. data/docs/PaginatedrpmUlnRemoteResponseList.md +23 -0
  4. data/docs/PatchedrpmRpmDistribution.md +2 -0
  5. data/docs/PatchedrpmRpmRepository.md +15 -1
  6. data/docs/PatchedrpmUlnRemote.md +57 -0
  7. data/docs/PublicationsRpmApi.md +4 -0
  8. data/docs/RemotesUlnApi.md +376 -0
  9. data/docs/RepositoryVersionResponse.md +2 -0
  10. data/docs/RpmRpmDistribution.md +2 -0
  11. data/docs/RpmRpmDistributionResponse.md +2 -0
  12. data/docs/RpmRpmRepository.md +15 -1
  13. data/docs/RpmRpmRepositoryResponse.md +15 -1
  14. data/docs/RpmUlnRemote.md +57 -0
  15. data/docs/RpmUlnRemoteResponse.md +57 -0
  16. data/lib/pulp_rpm_client.rb +5 -0
  17. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +6 -0
  18. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +463 -0
  19. data/lib/pulp_rpm_client/models/paginatedrpm_uln_remote_response_list.rb +237 -0
  20. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +12 -1
  21. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +146 -4
  22. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +496 -0
  23. data/lib/pulp_rpm_client/models/repository_version_response.rb +10 -1
  24. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +12 -1
  25. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +12 -1
  26. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +146 -4
  27. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +146 -4
  28. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +516 -0
  29. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +512 -0
  30. data/lib/pulp_rpm_client/version.rb +1 -1
  31. data/spec/api/publications_rpm_api_spec.rb +2 -0
  32. data/spec/api/remotes_uln_api_spec.rb +127 -0
  33. data/spec/models/paginatedrpm_uln_remote_response_list_spec.rb +59 -0
  34. data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
  35. data/spec/models/patchedrpm_rpm_repository_spec.rb +42 -0
  36. data/spec/models/patchedrpm_uln_remote_spec.rb +161 -0
  37. data/spec/models/repository_version_response_spec.rb +6 -0
  38. data/spec/models/rpm_rpm_distribution_response_spec.rb +6 -0
  39. data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
  40. data/spec/models/rpm_rpm_repository_response_spec.rb +42 -0
  41. data/spec/models/rpm_rpm_repository_spec.rb +42 -0
  42. data/spec/models/rpm_uln_remote_response_spec.rb +161 -0
  43. data/spec/models/rpm_uln_remote_spec.rb +161 -0
  44. metadata +22 -2
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **number** | **Integer** | | [optional] [readonly]
10
+ **repository** | **String** | | [optional] [readonly]
10
11
  **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
11
12
  **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
12
13
 
@@ -18,6 +19,7 @@ require 'PulpRpmClient'
18
19
  instance = PulpRpmClient::RepositoryVersionResponse.new(pulp_href: null,
19
20
  pulp_created: null,
20
21
  number: null,
22
+ repository: null,
21
23
  base_version: null,
22
24
  content_summary: null)
23
25
  ```
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
9
  **pulp_labels** | [**Object**](.md) | | [optional]
10
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
12
  **publication** | **String** | Publication to be served | [optional]
12
13
 
13
14
  ## Code Sample
@@ -19,6 +20,7 @@ instance = PulpRpmClient::RpmRpmDistribution.new(base_path: null,
19
20
  content_guard: null,
20
21
  pulp_labels: null,
21
22
  name: null,
23
+ repository: null,
22
24
  publication: null)
23
25
  ```
24
26
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **content_guard** | **String** | An optional content-guard. | [optional]
12
12
  **pulp_labels** | [**Object**](.md) | | [optional]
13
13
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
14
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
14
15
  **publication** | **String** | Publication to be served | [optional]
15
16
 
16
17
  ## Code Sample
@@ -25,6 +26,7 @@ instance = PulpRpmClient::RpmRpmDistributionResponse.new(pulp_href: null,
25
26
  content_guard: null,
26
27
  pulp_labels: null,
27
28
  name: null,
29
+ repository: null,
28
30
  publication: null)
29
31
  ```
30
32
 
@@ -7,9 +7,16 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. |
9
9
  **description** | **String** | An optional description. | [optional]
10
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
10
11
  **remote** | **String** | | [optional]
12
+ **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
11
13
  **metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
12
14
  **retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
15
+ **metadata_checksum_type** | [**MetadataChecksumTypeEnum**](MetadataChecksumTypeEnum.md) | The checksum type for metadata. | [optional]
16
+ **package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The checksum type for packages. | [optional]
17
+ **gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on packages. | [optional] [default to 0]
18
+ **repo_gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on the repodata. | [optional] [default to 0]
19
+ **sqlite_metadata** | **Boolean** | An option specifying whether Pulp should generate SQLite metadata. | [optional] [default to false]
13
20
 
14
21
  ## Code Sample
15
22
 
@@ -19,9 +26,16 @@ require 'PulpRpmClient'
19
26
  instance = PulpRpmClient::RpmRpmRepository.new(pulp_labels: null,
20
27
  name: null,
21
28
  description: null,
29
+ retained_versions: null,
22
30
  remote: null,
31
+ autopublish: null,
23
32
  metadata_signing_service: null,
24
- retain_package_versions: null)
33
+ retain_package_versions: null,
34
+ metadata_checksum_type: null,
35
+ package_checksum_type: null,
36
+ gpgcheck: null,
37
+ repo_gpgcheck: null,
38
+ sqlite_metadata: null)
25
39
  ```
26
40
 
27
41
 
@@ -11,9 +11,16 @@ Name | Type | Description | Notes
11
11
  **latest_version_href** | **String** | | [optional] [readonly]
12
12
  **name** | **String** | A unique name for this repository. |
13
13
  **description** | **String** | An optional description. | [optional]
14
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
14
15
  **remote** | **String** | | [optional]
16
+ **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
15
17
  **metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
16
18
  **retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
19
+ **metadata_checksum_type** | [**MetadataChecksumTypeEnum**](MetadataChecksumTypeEnum.md) | The checksum type for metadata. | [optional]
20
+ **package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The checksum type for packages. | [optional]
21
+ **gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on packages. | [optional] [default to 0]
22
+ **repo_gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on the repodata. | [optional] [default to 0]
23
+ **sqlite_metadata** | **Boolean** | An option specifying whether Pulp should generate SQLite metadata. | [optional] [default to false]
17
24
 
18
25
  ## Code Sample
19
26
 
@@ -27,9 +34,16 @@ instance = PulpRpmClient::RpmRpmRepositoryResponse.new(pulp_href: null,
27
34
  latest_version_href: null,
28
35
  name: null,
29
36
  description: null,
37
+ retained_versions: null,
30
38
  remote: null,
39
+ autopublish: null,
31
40
  metadata_signing_service: null,
32
- retain_package_versions: null)
41
+ retain_package_versions: null,
42
+ metadata_checksum_type: null,
43
+ package_checksum_type: null,
44
+ gpgcheck: null,
45
+ repo_gpgcheck: null,
46
+ sqlite_metadata: null)
33
47
  ```
34
48
 
35
49
 
@@ -0,0 +1,57 @@
1
+ # PulpRpmClient::RpmUlnRemote
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | A unique name for this remote. |
8
+ **url** | **String** | The ULN repo URL of the remote content source.\"This is \"uln://\" followed by the channel name. E.g.: \"uln://ol7_x86_64_oracle\" |
9
+ **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
10
+ **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
11
+ **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
12
+ **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
13
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
14
+ **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
+ **proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
16
+ **username** | **String** | Your ULN account username. |
17
+ **password** | **String** | Your ULN account password. |
18
+ **pulp_labels** | [**Object**](.md) | | [optional]
19
+ **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
+ **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
21
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
22
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
23
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
24
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
25
+ **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
26
+ **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **uln_server_base_url** | **String** | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional]
28
+
29
+ ## Code Sample
30
+
31
+ ```ruby
32
+ require 'PulpRpmClient'
33
+
34
+ instance = PulpRpmClient::RpmUlnRemote.new(name: null,
35
+ url: null,
36
+ ca_cert: null,
37
+ client_cert: null,
38
+ client_key: null,
39
+ tls_validation: null,
40
+ proxy_url: null,
41
+ proxy_username: null,
42
+ proxy_password: null,
43
+ username: null,
44
+ password: null,
45
+ pulp_labels: null,
46
+ download_concurrency: null,
47
+ policy: null,
48
+ total_timeout: null,
49
+ connect_timeout: null,
50
+ sock_connect_timeout: null,
51
+ sock_read_timeout: null,
52
+ headers: null,
53
+ rate_limit: null,
54
+ uln_server_base_url: null)
55
+ ```
56
+
57
+
@@ -0,0 +1,57 @@
1
+ # PulpRpmClient::RpmUlnRemoteResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **name** | **String** | A unique name for this remote. |
10
+ **url** | **String** | The ULN repo URL of the remote content source.\"This is \"uln://\" followed by the channel name. E.g.: \"uln://ol7_x86_64_oracle\" |
11
+ **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
12
+ **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
13
+ **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
14
+ **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
15
+ **username** | **String** | Your ULN account username. |
16
+ **password** | **String** | Your ULN account password. |
17
+ **pulp_labels** | [**Object**](.md) | | [optional]
18
+ **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
19
+ **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
+ **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
21
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
22
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
23
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
24
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
25
+ **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
26
+ **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **uln_server_base_url** | **String** | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional]
28
+
29
+ ## Code Sample
30
+
31
+ ```ruby
32
+ require 'PulpRpmClient'
33
+
34
+ instance = PulpRpmClient::RpmUlnRemoteResponse.new(pulp_href: null,
35
+ pulp_created: null,
36
+ name: null,
37
+ url: null,
38
+ ca_cert: null,
39
+ client_cert: null,
40
+ tls_validation: null,
41
+ proxy_url: null,
42
+ username: null,
43
+ password: null,
44
+ pulp_labels: null,
45
+ pulp_last_updated: null,
46
+ download_concurrency: null,
47
+ policy: null,
48
+ total_timeout: null,
49
+ connect_timeout: null,
50
+ sock_connect_timeout: null,
51
+ sock_read_timeout: null,
52
+ headers: null,
53
+ rate_limit: null,
54
+ uln_server_base_url: null)
55
+ ```
56
+
57
+
@@ -41,10 +41,12 @@ require 'pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list'
41
41
  require 'pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list'
42
42
  require 'pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list'
43
43
  require 'pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list'
44
+ require 'pulp_rpm_client/models/paginatedrpm_uln_remote_response_list'
44
45
  require 'pulp_rpm_client/models/paginatedrpm_update_record_response_list'
45
46
  require 'pulp_rpm_client/models/patchedrpm_rpm_distribution'
46
47
  require 'pulp_rpm_client/models/patchedrpm_rpm_remote'
47
48
  require 'pulp_rpm_client/models/patchedrpm_rpm_repository'
49
+ require 'pulp_rpm_client/models/patchedrpm_uln_remote'
48
50
  require 'pulp_rpm_client/models/policy_enum'
49
51
  require 'pulp_rpm_client/models/repository_add_remove_content'
50
52
  require 'pulp_rpm_client/models/repository_version'
@@ -70,6 +72,8 @@ require 'pulp_rpm_client/models/rpm_rpm_remote'
70
72
  require 'pulp_rpm_client/models/rpm_rpm_remote_response'
71
73
  require 'pulp_rpm_client/models/rpm_rpm_repository'
72
74
  require 'pulp_rpm_client/models/rpm_rpm_repository_response'
75
+ require 'pulp_rpm_client/models/rpm_uln_remote'
76
+ require 'pulp_rpm_client/models/rpm_uln_remote_response'
73
77
  require 'pulp_rpm_client/models/rpm_update_collection'
74
78
  require 'pulp_rpm_client/models/rpm_update_collection_response'
75
79
  require 'pulp_rpm_client/models/rpm_update_record'
@@ -91,6 +95,7 @@ require 'pulp_rpm_client/api/content_repo_metadata_files_api'
91
95
  require 'pulp_rpm_client/api/distributions_rpm_api'
92
96
  require 'pulp_rpm_client/api/publications_rpm_api'
93
97
  require 'pulp_rpm_client/api/remotes_rpm_api'
98
+ require 'pulp_rpm_client/api/remotes_uln_api'
94
99
  require 'pulp_rpm_client/api/repositories_rpm_api'
95
100
  require 'pulp_rpm_client/api/repositories_rpm_versions_api'
96
101
  require 'pulp_rpm_client/api/rpm_copy_api'
@@ -146,6 +146,8 @@ module PulpRpmClient
146
146
  # List rpm publications
147
147
  # ViewSet for Rpm Publications.
148
148
  # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :content Content Unit referenced by HREF
150
+ # @option opts [String] :content__in Content Unit referenced by HREF
149
151
  # @option opts [Integer] :limit Number of results to return per page.
150
152
  # @option opts [Integer] :offset The initial index from which to return the results.
151
153
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -167,6 +169,8 @@ module PulpRpmClient
167
169
  # List rpm publications
168
170
  # ViewSet for Rpm Publications.
169
171
  # @param [Hash] opts the optional parameters
172
+ # @option opts [String] :content Content Unit referenced by HREF
173
+ # @option opts [String] :content__in Content Unit referenced by HREF
170
174
  # @option opts [Integer] :limit Number of results to return per page.
171
175
  # @option opts [Integer] :offset The initial index from which to return the results.
172
176
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -189,6 +193,8 @@ module PulpRpmClient
189
193
 
190
194
  # query parameters
191
195
  query_params = opts[:query_params] || {}
196
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
197
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
192
198
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
193
199
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
194
200
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -0,0 +1,463 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpRpmClient
16
+ class RemotesUlnApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an uln remote
23
+ # A ViewSet for UlnRemote.
24
+ # @param rpm_uln_remote [RpmUlnRemote]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [RpmUlnRemoteResponse]
27
+ def create(rpm_uln_remote, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(rpm_uln_remote, opts)
29
+ data
30
+ end
31
+
32
+ # Create an uln remote
33
+ # A ViewSet for UlnRemote.
34
+ # @param rpm_uln_remote [RpmUlnRemote]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(RpmUlnRemoteResponse, Integer, Hash)>] RpmUlnRemoteResponse data, response status code and response headers
37
+ def create_with_http_info(rpm_uln_remote, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.create ...'
40
+ end
41
+ # verify the required parameter 'rpm_uln_remote' is set
42
+ if @api_client.config.client_side_validation && rpm_uln_remote.nil?
43
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote' when calling RemotesUlnApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/remotes/rpm/uln/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(rpm_uln_remote)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'RpmUlnRemoteResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: RemotesUlnApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete an uln remote
87
+ # Trigger an asynchronous delete task
88
+ # @param rpm_uln_remote_href [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [AsyncOperationResponse]
91
+ def delete(rpm_uln_remote_href, opts = {})
92
+ data, _status_code, _headers = delete_with_http_info(rpm_uln_remote_href, opts)
93
+ data
94
+ end
95
+
96
+ # Delete an uln remote
97
+ # Trigger an asynchronous delete task
98
+ # @param rpm_uln_remote_href [String]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
+ def delete_with_http_info(rpm_uln_remote_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.delete ...'
104
+ end
105
+ # verify the required parameter 'rpm_uln_remote_href' is set
106
+ if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{rpm_uln_remote_href}'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_remote_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:body]
125
+
126
+ # return_type
127
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
128
+
129
+ # auth_names
130
+ auth_names = opts[:auth_names] || ['basicAuth']
131
+
132
+ new_options = opts.merge(
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => return_type
139
+ )
140
+
141
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: RemotesUlnApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # List uln remotes
149
+ # A ViewSet for UlnRemote.
150
+ # @param [Hash] opts the optional parameters
151
+ # @option opts [Integer] :limit Number of results to return per page.
152
+ # @option opts [String] :name
153
+ # @option opts [String] :name__contains Filter results where name contains value
154
+ # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
+ # @option opts [String] :name__startswith Filter results where name starts with value
157
+ # @option opts [Integer] :offset The initial index from which to return the results.
158
+ # @option opts [String] :ordering Which field to use when ordering the results.
159
+ # @option opts [String] :pulp_label_select Filter labels by search string
160
+ # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
161
+ # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
162
+ # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
163
+ # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
164
+ # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
165
+ # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
166
+ # @option opts [String] :fields A list of fields to include in the response.
167
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
168
+ # @return [PaginatedrpmUlnRemoteResponseList]
169
+ def list(opts = {})
170
+ data, _status_code, _headers = list_with_http_info(opts)
171
+ data
172
+ end
173
+
174
+ # List uln remotes
175
+ # A ViewSet for UlnRemote.
176
+ # @param [Hash] opts the optional parameters
177
+ # @option opts [Integer] :limit Number of results to return per page.
178
+ # @option opts [String] :name
179
+ # @option opts [String] :name__contains Filter results where name contains value
180
+ # @option opts [String] :name__icontains Filter results where name contains value
181
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
182
+ # @option opts [String] :name__startswith Filter results where name starts with value
183
+ # @option opts [Integer] :offset The initial index from which to return the results.
184
+ # @option opts [String] :ordering Which field to use when ordering the results.
185
+ # @option opts [String] :pulp_label_select Filter labels by search string
186
+ # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
187
+ # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
188
+ # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
189
+ # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
190
+ # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
191
+ # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
192
+ # @option opts [String] :fields A list of fields to include in the response.
193
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
194
+ # @return [Array<(PaginatedrpmUlnRemoteResponseList, Integer, Hash)>] PaginatedrpmUlnRemoteResponseList data, response status code and response headers
195
+ def list_with_http_info(opts = {})
196
+ if @api_client.config.debugging
197
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.list ...'
198
+ end
199
+ # resource path
200
+ local_var_path = '/pulp/api/v3/remotes/rpm/uln/'
201
+
202
+ # query parameters
203
+ query_params = opts[:query_params] || {}
204
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
205
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
208
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
212
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
214
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
215
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
216
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
217
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
218
+ query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
219
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
220
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
221
+
222
+ # header parameters
223
+ header_params = opts[:header_params] || {}
224
+ # HTTP header 'Accept' (if needed)
225
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
226
+
227
+ # form parameters
228
+ form_params = opts[:form_params] || {}
229
+
230
+ # http body (model)
231
+ post_body = opts[:body]
232
+
233
+ # return_type
234
+ return_type = opts[:return_type] || 'PaginatedrpmUlnRemoteResponseList'
235
+
236
+ # auth_names
237
+ auth_names = opts[:auth_names] || ['basicAuth']
238
+
239
+ new_options = opts.merge(
240
+ :header_params => header_params,
241
+ :query_params => query_params,
242
+ :form_params => form_params,
243
+ :body => post_body,
244
+ :auth_names => auth_names,
245
+ :return_type => return_type
246
+ )
247
+
248
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
249
+ if @api_client.config.debugging
250
+ @api_client.config.logger.debug "API called: RemotesUlnApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
251
+ end
252
+ return data, status_code, headers
253
+ end
254
+
255
+ # Update an uln remote
256
+ # Trigger an asynchronous partial update task
257
+ # @param rpm_uln_remote_href [String]
258
+ # @param patchedrpm_uln_remote [PatchedrpmUlnRemote]
259
+ # @param [Hash] opts the optional parameters
260
+ # @return [AsyncOperationResponse]
261
+ def partial_update(rpm_uln_remote_href, patchedrpm_uln_remote, opts = {})
262
+ data, _status_code, _headers = partial_update_with_http_info(rpm_uln_remote_href, patchedrpm_uln_remote, opts)
263
+ data
264
+ end
265
+
266
+ # Update an uln remote
267
+ # Trigger an asynchronous partial update task
268
+ # @param rpm_uln_remote_href [String]
269
+ # @param patchedrpm_uln_remote [PatchedrpmUlnRemote]
270
+ # @param [Hash] opts the optional parameters
271
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
272
+ def partial_update_with_http_info(rpm_uln_remote_href, patchedrpm_uln_remote, opts = {})
273
+ if @api_client.config.debugging
274
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.partial_update ...'
275
+ end
276
+ # verify the required parameter 'rpm_uln_remote_href' is set
277
+ if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
278
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.partial_update"
279
+ end
280
+ # verify the required parameter 'patchedrpm_uln_remote' is set
281
+ if @api_client.config.client_side_validation && patchedrpm_uln_remote.nil?
282
+ fail ArgumentError, "Missing the required parameter 'patchedrpm_uln_remote' when calling RemotesUlnApi.partial_update"
283
+ end
284
+ # resource path
285
+ local_var_path = '{rpm_uln_remote_href}'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_remote_href.to_s).gsub('%2F', '/'))
286
+
287
+ # query parameters
288
+ query_params = opts[:query_params] || {}
289
+
290
+ # header parameters
291
+ header_params = opts[:header_params] || {}
292
+ # HTTP header 'Accept' (if needed)
293
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
294
+ # HTTP header 'Content-Type'
295
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
296
+
297
+ # form parameters
298
+ form_params = opts[:form_params] || {}
299
+
300
+ # http body (model)
301
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedrpm_uln_remote)
302
+
303
+ # return_type
304
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
305
+
306
+ # auth_names
307
+ auth_names = opts[:auth_names] || ['basicAuth']
308
+
309
+ new_options = opts.merge(
310
+ :header_params => header_params,
311
+ :query_params => query_params,
312
+ :form_params => form_params,
313
+ :body => post_body,
314
+ :auth_names => auth_names,
315
+ :return_type => return_type
316
+ )
317
+
318
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug "API called: RemotesUlnApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
321
+ end
322
+ return data, status_code, headers
323
+ end
324
+
325
+ # Inspect an uln remote
326
+ # A ViewSet for UlnRemote.
327
+ # @param rpm_uln_remote_href [String]
328
+ # @param [Hash] opts the optional parameters
329
+ # @option opts [String] :fields A list of fields to include in the response.
330
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
331
+ # @return [RpmUlnRemoteResponse]
332
+ def read(rpm_uln_remote_href, opts = {})
333
+ data, _status_code, _headers = read_with_http_info(rpm_uln_remote_href, opts)
334
+ data
335
+ end
336
+
337
+ # Inspect an uln remote
338
+ # A ViewSet for UlnRemote.
339
+ # @param rpm_uln_remote_href [String]
340
+ # @param [Hash] opts the optional parameters
341
+ # @option opts [String] :fields A list of fields to include in the response.
342
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
343
+ # @return [Array<(RpmUlnRemoteResponse, Integer, Hash)>] RpmUlnRemoteResponse data, response status code and response headers
344
+ def read_with_http_info(rpm_uln_remote_href, opts = {})
345
+ if @api_client.config.debugging
346
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.read ...'
347
+ end
348
+ # verify the required parameter 'rpm_uln_remote_href' is set
349
+ if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
350
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.read"
351
+ end
352
+ # resource path
353
+ local_var_path = '{rpm_uln_remote_href}'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_remote_href.to_s).gsub('%2F', '/'))
354
+
355
+ # query parameters
356
+ query_params = opts[:query_params] || {}
357
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
358
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
359
+
360
+ # header parameters
361
+ header_params = opts[:header_params] || {}
362
+ # HTTP header 'Accept' (if needed)
363
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
364
+
365
+ # form parameters
366
+ form_params = opts[:form_params] || {}
367
+
368
+ # http body (model)
369
+ post_body = opts[:body]
370
+
371
+ # return_type
372
+ return_type = opts[:return_type] || 'RpmUlnRemoteResponse'
373
+
374
+ # auth_names
375
+ auth_names = opts[:auth_names] || ['basicAuth']
376
+
377
+ new_options = opts.merge(
378
+ :header_params => header_params,
379
+ :query_params => query_params,
380
+ :form_params => form_params,
381
+ :body => post_body,
382
+ :auth_names => auth_names,
383
+ :return_type => return_type
384
+ )
385
+
386
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
387
+ if @api_client.config.debugging
388
+ @api_client.config.logger.debug "API called: RemotesUlnApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
389
+ end
390
+ return data, status_code, headers
391
+ end
392
+
393
+ # Update an uln remote
394
+ # Trigger an asynchronous update task
395
+ # @param rpm_uln_remote_href [String]
396
+ # @param rpm_uln_remote [RpmUlnRemote]
397
+ # @param [Hash] opts the optional parameters
398
+ # @return [AsyncOperationResponse]
399
+ def update(rpm_uln_remote_href, rpm_uln_remote, opts = {})
400
+ data, _status_code, _headers = update_with_http_info(rpm_uln_remote_href, rpm_uln_remote, opts)
401
+ data
402
+ end
403
+
404
+ # Update an uln remote
405
+ # Trigger an asynchronous update task
406
+ # @param rpm_uln_remote_href [String]
407
+ # @param rpm_uln_remote [RpmUlnRemote]
408
+ # @param [Hash] opts the optional parameters
409
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
410
+ def update_with_http_info(rpm_uln_remote_href, rpm_uln_remote, opts = {})
411
+ if @api_client.config.debugging
412
+ @api_client.config.logger.debug 'Calling API: RemotesUlnApi.update ...'
413
+ end
414
+ # verify the required parameter 'rpm_uln_remote_href' is set
415
+ if @api_client.config.client_side_validation && rpm_uln_remote_href.nil?
416
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote_href' when calling RemotesUlnApi.update"
417
+ end
418
+ # verify the required parameter 'rpm_uln_remote' is set
419
+ if @api_client.config.client_side_validation && rpm_uln_remote.nil?
420
+ fail ArgumentError, "Missing the required parameter 'rpm_uln_remote' when calling RemotesUlnApi.update"
421
+ end
422
+ # resource path
423
+ local_var_path = '{rpm_uln_remote_href}'.sub('{' + 'rpm_uln_remote_href' + '}', CGI.escape(rpm_uln_remote_href.to_s).gsub('%2F', '/'))
424
+
425
+ # query parameters
426
+ query_params = opts[:query_params] || {}
427
+
428
+ # header parameters
429
+ header_params = opts[:header_params] || {}
430
+ # HTTP header 'Accept' (if needed)
431
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
432
+ # HTTP header 'Content-Type'
433
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
434
+
435
+ # form parameters
436
+ form_params = opts[:form_params] || {}
437
+
438
+ # http body (model)
439
+ post_body = opts[:body] || @api_client.object_to_http_body(rpm_uln_remote)
440
+
441
+ # return_type
442
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
443
+
444
+ # auth_names
445
+ auth_names = opts[:auth_names] || ['basicAuth']
446
+
447
+ new_options = opts.merge(
448
+ :header_params => header_params,
449
+ :query_params => query_params,
450
+ :form_params => form_params,
451
+ :body => post_body,
452
+ :auth_names => auth_names,
453
+ :return_type => return_type
454
+ )
455
+
456
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
457
+ if @api_client.config.debugging
458
+ @api_client.config.logger.debug "API called: RemotesUlnApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
+ end
460
+ return data, status_code, headers
461
+ end
462
+ end
463
+ end