pulp_rpm_client 3.0.0b4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +134 -0
  5. data/Rakefile +10 -0
  6. data/docs/AsyncOperationResponse.md +17 -0
  7. data/docs/ContentAdvisoriesApi.md +196 -0
  8. data/docs/ContentPackagesApi.md +208 -0
  9. data/docs/DistributionsRpmApi.md +352 -0
  10. data/docs/InlineResponse200.md +23 -0
  11. data/docs/InlineResponse2001.md +23 -0
  12. data/docs/InlineResponse2002.md +23 -0
  13. data/docs/InlineResponse2003.md +23 -0
  14. data/docs/InlineResponse2004.md +23 -0
  15. data/docs/Package.md +95 -0
  16. data/docs/PublicationsRpmApi.md +229 -0
  17. data/docs/RemotesRpmApi.md +412 -0
  18. data/docs/RepositorySyncURL.md +19 -0
  19. data/docs/RpmCopyApi.md +70 -0
  20. data/docs/RpmDistribution.md +29 -0
  21. data/docs/RpmPublication.md +27 -0
  22. data/docs/RpmRemote.md +45 -0
  23. data/docs/RpmUploadApi.md +66 -0
  24. data/docs/UpdateRecord.md +55 -0
  25. data/git_push.sh +55 -0
  26. data/lib/pulp_rpm_client/api/content_advisories_api.rb +243 -0
  27. data/lib/pulp_rpm_client/api/content_packages_api.rb +261 -0
  28. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +430 -0
  29. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +273 -0
  30. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +506 -0
  31. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +96 -0
  32. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +90 -0
  33. data/lib/pulp_rpm_client/api_client.rb +387 -0
  34. data/lib/pulp_rpm_client/api_error.rb +57 -0
  35. data/lib/pulp_rpm_client/configuration.rb +251 -0
  36. data/lib/pulp_rpm_client/models/async_operation_response.rb +202 -0
  37. data/lib/pulp_rpm_client/models/inline_response200.rb +235 -0
  38. data/lib/pulp_rpm_client/models/inline_response2001.rb +235 -0
  39. data/lib/pulp_rpm_client/models/inline_response2002.rb +235 -0
  40. data/lib/pulp_rpm_client/models/inline_response2003.rb +235 -0
  41. data/lib/pulp_rpm_client/models/inline_response2004.rb +235 -0
  42. data/lib/pulp_rpm_client/models/package.rb +983 -0
  43. data/lib/pulp_rpm_client/models/repository_sync_url.rb +214 -0
  44. data/lib/pulp_rpm_client/models/rpm_distribution.rb +337 -0
  45. data/lib/pulp_rpm_client/models/rpm_publication.rb +258 -0
  46. data/lib/pulp_rpm_client/models/rpm_remote.rb +539 -0
  47. data/lib/pulp_rpm_client/models/update_record.rb +764 -0
  48. data/lib/pulp_rpm_client/version.rb +15 -0
  49. data/lib/pulp_rpm_client.rb +58 -0
  50. data/pulp_rpm_client.gemspec +45 -0
  51. data/spec/api/content_advisories_api_spec.rb +83 -0
  52. data/spec/api/content_packages_api_spec.rb +89 -0
  53. data/spec/api/distributions_rpm_api_spec.rb +116 -0
  54. data/spec/api/publications_rpm_api_spec.rb +85 -0
  55. data/spec/api/remotes_rpm_api_spec.rb +131 -0
  56. data/spec/api/rpm_copy_api_spec.rb +50 -0
  57. data/spec/api/rpm_upload_api_spec.rb +48 -0
  58. data/spec/api_client_spec.rb +226 -0
  59. data/spec/configuration_spec.rb +42 -0
  60. data/spec/models/async_operation_response_spec.rb +41 -0
  61. data/spec/models/inline_response2001_spec.rb +59 -0
  62. data/spec/models/inline_response2002_spec.rb +59 -0
  63. data/spec/models/inline_response2003_spec.rb +59 -0
  64. data/spec/models/inline_response2004_spec.rb +59 -0
  65. data/spec/models/inline_response200_spec.rb +59 -0
  66. data/spec/models/package_spec.rb +275 -0
  67. data/spec/models/repository_sync_url_spec.rb +47 -0
  68. data/spec/models/rpm_distribution_spec.rb +77 -0
  69. data/spec/models/rpm_publication_spec.rb +71 -0
  70. data/spec/models/rpm_remote_spec.rb +129 -0
  71. data/spec/models/update_record_spec.rb +155 -0
  72. data/spec/spec_helper.rb +111 -0
  73. metadata +317 -0
@@ -0,0 +1,70 @@
1
+ # PulpRpmClient::RpmCopyApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**copy_content**](RpmCopyApi.md#copy_content) | **POST** /rpm/copy/ | Copy content
8
+
9
+
10
+
11
+ ## copy_content
12
+
13
+ > AsyncOperationResponse copy_content(dest_repo, opts)
14
+
15
+ Copy content
16
+
17
+ Trigger an asynchronous task to copy RPM contentfrom one repository into another, creating a newrepository version.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'pulp_rpm_client'
24
+ # setup authorization
25
+ PulpRpmClient.configure do |config|
26
+ # Configure HTTP basic authorization: Basic
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
30
+
31
+ api_instance = PulpRpmClient::RpmCopyApi.new
32
+ dest_repo = 'dest_repo_example' # String | A URI of the repository.
33
+ opts = {
34
+ source_repo: 'source_repo_example', # String | A URI of the repository.
35
+ source_repo_version: 'source_repo_version_example', # String | A URI of the repository version
36
+ types: 'types_example' # Array<String> | A list of types to copy [\"package\", \"advisory\"]
37
+ }
38
+
39
+ begin
40
+ #Copy content
41
+ result = api_instance.copy_content(dest_repo, opts)
42
+ p result
43
+ rescue PulpRpmClient::ApiError => e
44
+ puts "Exception when calling RpmCopyApi->copy_content: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **dest_repo** | **String**| A URI of the repository. |
54
+ **source_repo** | **String**| A URI of the repository. | [optional]
55
+ **source_repo_version** | **String**| A URI of the repository version | [optional]
56
+ **types** | [**Array&lt;String&gt;**](String.md)| A list of types to copy [\&quot;package\&quot;, \&quot;advisory\&quot;] | [optional]
57
+
58
+ ### Return type
59
+
60
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
61
+
62
+ ### Authorization
63
+
64
+ [Basic](../README.md#Basic)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
69
+ - **Accept**: application/json
70
+
@@ -0,0 +1,29 @@
1
+ # PulpRpmClient::RpmDistribution
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \&quot;foo\&quot; and \&quot;foo/bar\&quot;) |
10
+ **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional]
11
+ **content_guard** | **String** | An optional content-guard. | [optional]
12
+ **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. |
13
+ **publication** | **String** | Publication to be served | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'PulpRpmClient'
19
+
20
+ instance = PulpRpmClient::RpmDistribution.new(_href: null,
21
+ _created: null,
22
+ base_path: null,
23
+ base_url: null,
24
+ content_guard: null,
25
+ name: null,
26
+ publication: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,27 @@
1
+ # PulpRpmClient::RpmPublication
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **_type** | **String** | | [optional]
10
+ **publisher** | **String** | | [optional]
11
+ **repository_version** | **String** | | [optional]
12
+ **repository** | **String** | A URI of the repository to be published. | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'PulpRpmClient'
18
+
19
+ instance = PulpRpmClient::RpmPublication.new(_href: null,
20
+ _created: null,
21
+ _type: null,
22
+ publisher: null,
23
+ repository_version: null,
24
+ repository: null)
25
+ ```
26
+
27
+
data/docs/RpmRemote.md ADDED
@@ -0,0 +1,45 @@
1
+ # PulpRpmClient::RpmRemote
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **_type** | **String** | | [optional]
10
+ **name** | **String** | A unique name for this remote. |
11
+ **url** | **String** | The URL of an external content source. |
12
+ **ssl_ca_certificate** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
13
+ **ssl_client_certificate** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
14
+ **ssl_client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
15
+ **ssl_validation** | **Boolean** | If True, SSL peer validation must be performed. | [optional]
16
+ **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
17
+ **username** | **String** | The username to be used for authentication when syncing. | [optional]
18
+ **password** | **String** | The password to be used for authentication when syncing. | [optional]
19
+ **_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional]
20
+ **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
21
+ **policy** | **String** | The policy to use when downloading content. The possible values include: &#39;immediate&#39;, &#39;on_demand&#39;, and &#39;streamed&#39;. &#39;immediate&#39; is the default. | [optional] [default to &#39;immediate&#39;]
22
+
23
+ ## Code Sample
24
+
25
+ ```ruby
26
+ require 'PulpRpmClient'
27
+
28
+ instance = PulpRpmClient::RpmRemote.new(_href: null,
29
+ _created: null,
30
+ _type: null,
31
+ name: null,
32
+ url: null,
33
+ ssl_ca_certificate: null,
34
+ ssl_client_certificate: null,
35
+ ssl_client_key: null,
36
+ ssl_validation: null,
37
+ proxy_url: null,
38
+ username: null,
39
+ password: null,
40
+ _last_updated: null,
41
+ download_concurrency: null,
42
+ policy: null)
43
+ ```
44
+
45
+
@@ -0,0 +1,66 @@
1
+ # PulpRpmClient::RpmUploadApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**upload_rpm_package**](RpmUploadApi.md#upload_rpm_package) | **POST** /rpm/upload/ | Upload a package
8
+
9
+
10
+
11
+ ## upload_rpm_package
12
+
13
+ > AsyncOperationResponse upload_rpm_package(file, opts)
14
+
15
+ Upload a package
16
+
17
+ Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'pulp_rpm_client'
24
+ # setup authorization
25
+ PulpRpmClient.configure do |config|
26
+ # Configure HTTP basic authorization: Basic
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
30
+
31
+ api_instance = PulpRpmClient::RpmUploadApi.new
32
+ file = File.new('/path/to/file') # File | The rpm file.
33
+ opts = {
34
+ repository: 'repository_example' # String | A URI of the repository.
35
+ }
36
+
37
+ begin
38
+ #Upload a package
39
+ result = api_instance.upload_rpm_package(file, opts)
40
+ p result
41
+ rescue PulpRpmClient::ApiError => e
42
+ puts "Exception when calling RpmUploadApi->upload_rpm_package: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **file** | **File**| The rpm file. |
52
+ **repository** | **String**| A URI of the repository. | [optional]
53
+
54
+ ### Return type
55
+
56
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ [Basic](../README.md#Basic)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
65
+ - **Accept**: application/json
66
+
@@ -0,0 +1,55 @@
1
+ # PulpRpmClient::UpdateRecord
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **_type** | **String** | | [optional]
10
+ **id** | **String** | Update id (short update name, e.g. RHEA-2013:1777) |
11
+ **updated_date** | **String** | Date when the update was updated (e.g. &#39;2013-12-02 00:00:00&#39;) |
12
+ **description** | **String** | Update description |
13
+ **issued_date** | **String** | Date when the update was issued (e.g. &#39;2013-12-02 00:00:00&#39;) |
14
+ **fromstr** | **String** | Source of the update (e.g. security@redhat.com) |
15
+ **status** | **String** | Update status (&#39;final&#39;, ...) |
16
+ **title** | **String** | Update name |
17
+ **summary** | **String** | Short summary |
18
+ **version** | **String** | Update version (probably always an integer number) |
19
+ **type** | **String** | Update type (&#39;enhancement&#39;, &#39;bugfix&#39;, ...) |
20
+ **severity** | **String** | Severity |
21
+ **solution** | **String** | Solution |
22
+ **release** | **String** | Update release |
23
+ **rights** | **String** | Copyrights |
24
+ **pushcount** | **String** | Push count |
25
+ **pkglist** | **Array&lt;String&gt;** | List of packages | [optional]
26
+ **references** | **Array&lt;String&gt;** | List of references | [optional]
27
+
28
+ ## Code Sample
29
+
30
+ ```ruby
31
+ require 'PulpRpmClient'
32
+
33
+ instance = PulpRpmClient::UpdateRecord.new(_href: null,
34
+ _created: null,
35
+ _type: null,
36
+ id: null,
37
+ updated_date: null,
38
+ description: null,
39
+ issued_date: null,
40
+ fromstr: null,
41
+ status: null,
42
+ title: null,
43
+ summary: null,
44
+ version: null,
45
+ type: null,
46
+ severity: null,
47
+ solution: null,
48
+ release: null,
49
+ rights: null,
50
+ pushcount: null,
51
+ pkglist: null,
52
+ references: null)
53
+ ```
54
+
55
+
data/git_push.sh ADDED
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://openapi-generator.tech
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,243 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module PulpRpmClient
16
+ class ContentAdvisoriesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an update record
23
+ # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
24
+ # @param data [UpdateRecord]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [UpdateRecord]
27
+ def create(data, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(data, opts)
29
+ data
30
+ end
31
+
32
+ # Create an update record
33
+ # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
34
+ # @param data [UpdateRecord]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(UpdateRecord, Integer, Hash)>] UpdateRecord data, response status code and response headers
37
+ def create_with_http_info(data, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.create ...'
40
+ end
41
+ # verify the required parameter 'data' is set
42
+ if @api_client.config.client_side_validation && data.nil?
43
+ fail ArgumentError, "Missing the required parameter 'data' when calling ContentAdvisoriesApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/content/rpm/advisories/'
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'])
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(data)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'UpdateRecord'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['Basic']
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: ContentAdvisoriesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # List update records
87
+ # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :id Filter results where id matches value
90
+ # @option opts [String] :id__in Filter results where id is in a comma-separated list of values
91
+ # @option opts [String] :status Filter results where status matches value
92
+ # @option opts [String] :status__in Filter results where status is in a comma-separated list of values
93
+ # @option opts [String] :severity Filter results where severity matches value
94
+ # @option opts [String] :severity__in Filter results where severity is in a comma-separated list of values
95
+ # @option opts [String] :type Filter results where type matches value
96
+ # @option opts [String] :type__in Filter results where type is in a comma-separated list of values
97
+ # @option opts [String] :repository_version Repository Version referenced by HREF
98
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
99
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
100
+ # @option opts [Integer] :page A page number within the paginated result set.
101
+ # @option opts [Integer] :page_size Number of results to return per page.
102
+ # @return [InlineResponse200]
103
+ def list(opts = {})
104
+ data, _status_code, _headers = list_with_http_info(opts)
105
+ data
106
+ end
107
+
108
+ # List update records
109
+ # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [String] :id Filter results where id matches value
112
+ # @option opts [String] :id__in Filter results where id is in a comma-separated list of values
113
+ # @option opts [String] :status Filter results where status matches value
114
+ # @option opts [String] :status__in Filter results where status is in a comma-separated list of values
115
+ # @option opts [String] :severity Filter results where severity matches value
116
+ # @option opts [String] :severity__in Filter results where severity is in a comma-separated list of values
117
+ # @option opts [String] :type Filter results where type matches value
118
+ # @option opts [String] :type__in Filter results where type is in a comma-separated list of values
119
+ # @option opts [String] :repository_version Repository Version referenced by HREF
120
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
121
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
122
+ # @option opts [Integer] :page A page number within the paginated result set.
123
+ # @option opts [Integer] :page_size Number of results to return per page.
124
+ # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
125
+ def list_with_http_info(opts = {})
126
+ if @api_client.config.debugging
127
+ @api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.list ...'
128
+ end
129
+ # resource path
130
+ local_var_path = '/pulp/api/v3/content/rpm/advisories/'
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
135
+ query_params[:'id__in'] = opts[:'id__in'] if !opts[:'id__in'].nil?
136
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
137
+ query_params[:'status__in'] = opts[:'status__in'] if !opts[:'status__in'].nil?
138
+ query_params[:'severity'] = opts[:'severity'] if !opts[:'severity'].nil?
139
+ query_params[:'severity__in'] = opts[:'severity__in'] if !opts[:'severity__in'].nil?
140
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
141
+ query_params[:'type__in'] = opts[:'type__in'] if !opts[:'type__in'].nil?
142
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
143
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
144
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
145
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
146
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
147
+
148
+ # header parameters
149
+ header_params = opts[:header_params] || {}
150
+ # HTTP header 'Accept' (if needed)
151
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
152
+
153
+ # form parameters
154
+ form_params = opts[:form_params] || {}
155
+
156
+ # http body (model)
157
+ post_body = opts[:body]
158
+
159
+ # return_type
160
+ return_type = opts[:return_type] || 'InlineResponse200'
161
+
162
+ # auth_names
163
+ auth_names = opts[:auth_names] || ['Basic']
164
+
165
+ new_options = opts.merge(
166
+ :header_params => header_params,
167
+ :query_params => query_params,
168
+ :form_params => form_params,
169
+ :body => post_body,
170
+ :auth_names => auth_names,
171
+ :return_type => return_type
172
+ )
173
+
174
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug "API called: ContentAdvisoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
+ end
178
+ return data, status_code, headers
179
+ end
180
+
181
+ # Inspect an update record
182
+ # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
183
+ # @param update_record_href [String] URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
184
+ # @param [Hash] opts the optional parameters
185
+ # @return [UpdateRecord]
186
+ def read(update_record_href, opts = {})
187
+ data, _status_code, _headers = read_with_http_info(update_record_href, opts)
188
+ data
189
+ end
190
+
191
+ # Inspect an update record
192
+ # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
193
+ # @param update_record_href [String] URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [Array<(UpdateRecord, Integer, Hash)>] UpdateRecord data, response status code and response headers
196
+ def read_with_http_info(update_record_href, opts = {})
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.read ...'
199
+ end
200
+ # verify the required parameter 'update_record_href' is set
201
+ if @api_client.config.client_side_validation && update_record_href.nil?
202
+ fail ArgumentError, "Missing the required parameter 'update_record_href' when calling ContentAdvisoriesApi.read"
203
+ end
204
+ # resource path
205
+ local_var_path = '{update_record_href}'.sub('{' + 'update_record_href' + '}', update_record_href.to_s)
206
+
207
+ # query parameters
208
+ query_params = opts[:query_params] || {}
209
+
210
+ # header parameters
211
+ header_params = opts[:header_params] || {}
212
+ # HTTP header 'Accept' (if needed)
213
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
214
+
215
+ # form parameters
216
+ form_params = opts[:form_params] || {}
217
+
218
+ # http body (model)
219
+ post_body = opts[:body]
220
+
221
+ # return_type
222
+ return_type = opts[:return_type] || 'UpdateRecord'
223
+
224
+ # auth_names
225
+ auth_names = opts[:auth_names] || ['Basic']
226
+
227
+ new_options = opts.merge(
228
+ :header_params => header_params,
229
+ :query_params => query_params,
230
+ :form_params => form_params,
231
+ :body => post_body,
232
+ :auth_names => auth_names,
233
+ :return_type => return_type
234
+ )
235
+
236
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug "API called: ContentAdvisoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
239
+ end
240
+ return data, status_code, headers
241
+ end
242
+ end
243
+ end