zest 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +185 -0
  4. data/Rakefile +8 -0
  5. data/api.json +1 -0
  6. data/config.json +6 -0
  7. data/docs/Artifact.md +17 -0
  8. data/docs/AsyncOperationResponse.md +8 -0
  9. data/docs/Distribution.md +16 -0
  10. data/docs/FileContent.md +12 -0
  11. data/docs/FilePublisher.md +14 -0
  12. data/docs/FileRemote.md +23 -0
  13. data/docs/InlineResponse200.md +11 -0
  14. data/docs/InlineResponse2001.md +11 -0
  15. data/docs/InlineResponse20010.md +11 -0
  16. data/docs/InlineResponse2002.md +11 -0
  17. data/docs/InlineResponse2003.md +11 -0
  18. data/docs/InlineResponse2004.md +11 -0
  19. data/docs/InlineResponse2005.md +11 -0
  20. data/docs/InlineResponse2006.md +11 -0
  21. data/docs/InlineResponse2007.md +11 -0
  22. data/docs/InlineResponse2008.md +11 -0
  23. data/docs/InlineResponse2009.md +11 -0
  24. data/docs/ProgressReport.md +13 -0
  25. data/docs/Publication.md +13 -0
  26. data/docs/PulpApi.md +3056 -0
  27. data/docs/Repository.md +13 -0
  28. data/docs/RepositoryPublishURL.md +9 -0
  29. data/docs/RepositorySyncURL.md +9 -0
  30. data/docs/RepositoryVersion.md +17 -0
  31. data/docs/RepositoryVersionCreate.md +10 -0
  32. data/docs/Task.md +21 -0
  33. data/docs/User.md +11 -0
  34. data/docs/Worker.md +13 -0
  35. data/git_push.sh +55 -0
  36. data/katello_pulp_api-0.0.1.gem +0 -0
  37. data/katello_pulp_api.gemspec +46 -0
  38. data/lib/katello_pulp_api.rb +67 -0
  39. data/lib/katello_pulp_api/api/pulp_api.rb +3277 -0
  40. data/lib/katello_pulp_api/api_client.rb +389 -0
  41. data/lib/katello_pulp_api/api_error.rb +38 -0
  42. data/lib/katello_pulp_api/configuration.rb +209 -0
  43. data/lib/katello_pulp_api/models/artifact.rb +278 -0
  44. data/lib/katello_pulp_api/models/async_operation_response.rb +194 -0
  45. data/lib/katello_pulp_api/models/distribution.rb +350 -0
  46. data/lib/katello_pulp_api/models/file_content.rb +272 -0
  47. data/lib/katello_pulp_api/models/file_publisher.rb +306 -0
  48. data/lib/katello_pulp_api/models/file_remote.rb +452 -0
  49. data/lib/katello_pulp_api/models/inline_response_200.rb +227 -0
  50. data/lib/katello_pulp_api/models/inline_response_200_1.rb +227 -0
  51. data/lib/katello_pulp_api/models/inline_response_200_10.rb +227 -0
  52. data/lib/katello_pulp_api/models/inline_response_200_2.rb +227 -0
  53. data/lib/katello_pulp_api/models/inline_response_200_3.rb +227 -0
  54. data/lib/katello_pulp_api/models/inline_response_200_4.rb +227 -0
  55. data/lib/katello_pulp_api/models/inline_response_200_5.rb +227 -0
  56. data/lib/katello_pulp_api/models/inline_response_200_6.rb +227 -0
  57. data/lib/katello_pulp_api/models/inline_response_200_7.rb +227 -0
  58. data/lib/katello_pulp_api/models/inline_response_200_8.rb +227 -0
  59. data/lib/katello_pulp_api/models/inline_response_200_9.rb +227 -0
  60. data/lib/katello_pulp_api/models/progress_report.rb +271 -0
  61. data/lib/katello_pulp_api/models/publication.rb +249 -0
  62. data/lib/katello_pulp_api/models/repository.rb +260 -0
  63. data/lib/katello_pulp_api/models/repository_publish_url.rb +199 -0
  64. data/lib/katello_pulp_api/models/repository_sync_url.rb +206 -0
  65. data/lib/katello_pulp_api/models/repository_version.rb +277 -0
  66. data/lib/katello_pulp_api/models/repository_version_create.rb +223 -0
  67. data/lib/katello_pulp_api/models/task.rb +363 -0
  68. data/lib/katello_pulp_api/models/user.rb +284 -0
  69. data/lib/katello_pulp_api/models/worker.rb +254 -0
  70. data/lib/katello_pulp_api/version.rb +15 -0
  71. data/lib/zest.rb +67 -0
  72. data/lib/zest/api/pulp_api.rb +3277 -0
  73. data/lib/zest/api_client.rb +389 -0
  74. data/lib/zest/api_error.rb +38 -0
  75. data/lib/zest/configuration.rb +209 -0
  76. data/lib/zest/models/artifact.rb +278 -0
  77. data/lib/zest/models/async_operation_response.rb +194 -0
  78. data/lib/zest/models/distribution.rb +350 -0
  79. data/lib/zest/models/file_content.rb +272 -0
  80. data/lib/zest/models/file_publisher.rb +306 -0
  81. data/lib/zest/models/file_remote.rb +452 -0
  82. data/lib/zest/models/inline_response_200.rb +227 -0
  83. data/lib/zest/models/inline_response_200_1.rb +227 -0
  84. data/lib/zest/models/inline_response_200_10.rb +227 -0
  85. data/lib/zest/models/inline_response_200_2.rb +227 -0
  86. data/lib/zest/models/inline_response_200_3.rb +227 -0
  87. data/lib/zest/models/inline_response_200_4.rb +227 -0
  88. data/lib/zest/models/inline_response_200_5.rb +227 -0
  89. data/lib/zest/models/inline_response_200_6.rb +227 -0
  90. data/lib/zest/models/inline_response_200_7.rb +227 -0
  91. data/lib/zest/models/inline_response_200_8.rb +227 -0
  92. data/lib/zest/models/inline_response_200_9.rb +227 -0
  93. data/lib/zest/models/progress_report.rb +271 -0
  94. data/lib/zest/models/publication.rb +249 -0
  95. data/lib/zest/models/repository.rb +260 -0
  96. data/lib/zest/models/repository_publish_url.rb +199 -0
  97. data/lib/zest/models/repository_sync_url.rb +206 -0
  98. data/lib/zest/models/repository_version.rb +277 -0
  99. data/lib/zest/models/repository_version_create.rb +223 -0
  100. data/lib/zest/models/task.rb +363 -0
  101. data/lib/zest/models/user.rb +284 -0
  102. data/lib/zest/models/worker.rb +254 -0
  103. data/lib/zest/version.rb +15 -0
  104. data/spec/api/pulp_api_spec.rb +784 -0
  105. data/spec/api_client_spec.rb +226 -0
  106. data/spec/configuration_spec.rb +42 -0
  107. data/spec/models/artifact_spec.rb +96 -0
  108. data/spec/models/async_operation_response_spec.rb +42 -0
  109. data/spec/models/distribution_spec.rb +90 -0
  110. data/spec/models/file_content_spec.rb +66 -0
  111. data/spec/models/file_publisher_spec.rb +78 -0
  112. data/spec/models/file_remote_spec.rb +136 -0
  113. data/spec/models/inline_response_200_10_spec.rb +60 -0
  114. data/spec/models/inline_response_200_1_spec.rb +60 -0
  115. data/spec/models/inline_response_200_2_spec.rb +60 -0
  116. data/spec/models/inline_response_200_3_spec.rb +60 -0
  117. data/spec/models/inline_response_200_4_spec.rb +60 -0
  118. data/spec/models/inline_response_200_5_spec.rb +60 -0
  119. data/spec/models/inline_response_200_6_spec.rb +60 -0
  120. data/spec/models/inline_response_200_7_spec.rb +60 -0
  121. data/spec/models/inline_response_200_8_spec.rb +60 -0
  122. data/spec/models/inline_response_200_9_spec.rb +60 -0
  123. data/spec/models/inline_response_200_spec.rb +60 -0
  124. data/spec/models/progress_report_spec.rb +72 -0
  125. data/spec/models/publication_spec.rb +72 -0
  126. data/spec/models/repository_publish_url_spec.rb +48 -0
  127. data/spec/models/repository_spec.rb +72 -0
  128. data/spec/models/repository_sync_url_spec.rb +48 -0
  129. data/spec/models/repository_version_create_spec.rb +54 -0
  130. data/spec/models/repository_version_spec.rb +96 -0
  131. data/spec/models/task_spec.rb +120 -0
  132. data/spec/models/user_spec.rb +60 -0
  133. data/spec/models/worker_spec.rb +72 -0
  134. data/spec/spec_helper.rb +111 -0
  135. data/zest.gemspec +46 -0
  136. metadata +391 -0
@@ -0,0 +1,13 @@
1
+ # Zest::Repository
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_href** | **String** | | [optional]
7
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
8
+ **_versions_href** | **String** | | [optional]
9
+ **_latest_version_href** | **String** | | [optional]
10
+ **name** | **String** | A unique name for this repository. |
11
+ **description** | **String** | An optional description. | [optional]
12
+
13
+
@@ -0,0 +1,9 @@
1
+ # Zest::RepositoryPublishURL
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **repository** | **String** | A URI of the repository to be synchronized. | [optional]
7
+ **repository_version** | **String** | A URI of the repository version to be published. | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Zest::RepositorySyncURL
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **repository** | **String** | A URI of the repository to be synchronized. |
7
+ **mirror** | **BOOLEAN** | The synchronization mode, True for \"mirror\" and False for \"additive\" mode. | [optional] [default to true]
8
+
9
+
@@ -0,0 +1,17 @@
1
+ # Zest::RepositoryVersion
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_href** | **String** | | [optional]
7
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
8
+ **number** | **Integer** | | [optional]
9
+ **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
10
+ **content_hrefs** | **String** | A mapping of the types of content in this version, and the HREF to view them. | [optional]
11
+ **content_added_hrefs** | **String** | A mapping of the types of content added in this version, and the HREF to view them. | [optional]
12
+ **content_removed_hrefs** | **String** | A mapping of the types of content removed from this version, and the HREF to view them. | [optional]
13
+ **content_summary** | **String** | A list of counts of each type of content in this version. | [optional]
14
+ **content_added_summary** | **String** | A list of counts of each type of content added in this version. | [optional]
15
+ **content_removed_summary** | **String** | A list of counts of each type of content removed in this version. | [optional]
16
+
17
+
@@ -0,0 +1,10 @@
1
+ # Zest::RepositoryVersionCreate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **add_content_units** | **Array<String>** | A list of content units to add to a new repository version |
7
+ **remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version |
8
+ **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
9
+
10
+
@@ -0,0 +1,21 @@
1
+ # Zest::Task
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_href** | **String** | | [optional]
7
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
8
+ **job_id** | **String** | ID of the job in rq. | [optional]
9
+ **state** | **String** | The current state of the task. The possible values include: 'waiting', 'skipped', 'running', 'completed', 'failed' and 'canceled'. | [optional]
10
+ **name** | **String** | The name of task. |
11
+ **started_at** | **DateTime** | Timestamp of the when this task started execution. | [optional]
12
+ **finished_at** | **DateTime** | Timestamp of the when this task stopped execution. | [optional]
13
+ **non_fatal_errors** | **String** | A JSON Object of non-fatal errors encountered during the execution of this task. | [optional]
14
+ **error** | **String** | A JSON Object of a fatal error encountered during the execution of this task. | [optional]
15
+ **worker** | **String** | The worker associated with this task. This field is empty if a worker is not yet assigned. | [optional]
16
+ **parent** | **String** | The parent task that spawned this task. | [optional]
17
+ **spawned_tasks** | **Array<String>** | Any tasks spawned by this task. | [optional]
18
+ **progress_reports** | [**Array<ProgressReport>**](ProgressReport.md) | | [optional]
19
+ **created_resources** | **Array<String>** | Resources created by this task. | [optional]
20
+
21
+
@@ -0,0 +1,11 @@
1
+ # Zest::User
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_href** | **String** | | [optional]
7
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
8
+ **username** | **String** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. |
9
+ **password** | **String** | Password |
10
+
11
+
@@ -0,0 +1,13 @@
1
+ # Zest::Worker
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_href** | **String** | | [optional]
7
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
8
+ **name** | **String** | The name of the worker. | [optional]
9
+ **last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional]
10
+ **online** | **BOOLEAN** | True if the worker is considered online, otherwise False | [optional]
11
+ **missing** | **BOOLEAN** | True if the worker is considerd missing, otherwise False | [optional]
12
+
13
+
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
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 swagger-petstore-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,46 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #
3
+ =begin
4
+ #Pulp3 API
5
+
6
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7
+
8
+ OpenAPI spec version: v3
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: 2.3.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "katello_pulp_api/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "katello_pulp_api"
20
+ s.version = KatelloPulpApi::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Swagger-Codegen"]
23
+ s.email = [""]
24
+ s.homepage = "https://github.com/swagger-api/swagger-codegen"
25
+ s.summary = "Pulp3 API Ruby Gem"
26
+ s.description = "No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)"
27
+ # TODO uncommnet and update below with a proper license
28
+ #s.license = "Apache 2.0"
29
+ s.required_ruby_version = ">= 1.9"
30
+
31
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
33
+
34
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
35
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
36
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
37
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
38
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
39
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
40
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
41
+
42
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
43
+ s.test_files = `find spec/*`.split("\n")
44
+ s.executables = []
45
+ s.require_paths = ["lib"]
46
+ end
@@ -0,0 +1,67 @@
1
+ =begin
2
+ #Pulp3 API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'katello_pulp_api/api_client'
15
+ require 'katello_pulp_api/api_error'
16
+ require 'katello_pulp_api/version'
17
+ require 'katello_pulp_api/configuration'
18
+
19
+ # Models
20
+ require 'katello_pulp_api/models/artifact'
21
+ require 'katello_pulp_api/models/async_operation_response'
22
+ require 'katello_pulp_api/models/distribution'
23
+ require 'katello_pulp_api/models/file_content'
24
+ require 'katello_pulp_api/models/file_publisher'
25
+ require 'katello_pulp_api/models/file_remote'
26
+ require 'katello_pulp_api/models/inline_response_200'
27
+ require 'katello_pulp_api/models/inline_response_200_1'
28
+ require 'katello_pulp_api/models/inline_response_200_10'
29
+ require 'katello_pulp_api/models/inline_response_200_2'
30
+ require 'katello_pulp_api/models/inline_response_200_3'
31
+ require 'katello_pulp_api/models/inline_response_200_4'
32
+ require 'katello_pulp_api/models/inline_response_200_5'
33
+ require 'katello_pulp_api/models/inline_response_200_6'
34
+ require 'katello_pulp_api/models/inline_response_200_7'
35
+ require 'katello_pulp_api/models/inline_response_200_8'
36
+ require 'katello_pulp_api/models/inline_response_200_9'
37
+ require 'katello_pulp_api/models/progress_report'
38
+ require 'katello_pulp_api/models/publication'
39
+ require 'katello_pulp_api/models/repository'
40
+ require 'katello_pulp_api/models/repository_publish_url'
41
+ require 'katello_pulp_api/models/repository_sync_url'
42
+ require 'katello_pulp_api/models/repository_version'
43
+ require 'katello_pulp_api/models/repository_version_create'
44
+ require 'katello_pulp_api/models/task'
45
+ require 'katello_pulp_api/models/user'
46
+ require 'katello_pulp_api/models/worker'
47
+
48
+ # APIs
49
+ require 'katello_pulp_api/api/pulp_api'
50
+
51
+ module KatelloPulpApi
52
+ class << self
53
+ # Customize default settings for the SDK using block.
54
+ # KatelloPulpApi.configure do |config|
55
+ # config.username = "xxx"
56
+ # config.password = "xxx"
57
+ # end
58
+ # If no block given, return the default Configuration object.
59
+ def configure
60
+ if block_given?
61
+ yield(Configuration.default)
62
+ else
63
+ Configuration.default
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,3277 @@
1
+ =begin
2
+ #Pulp3 API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module KatelloPulpApi
16
+ class PulpApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ #
24
+ #
25
+ # @param file The stored file.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [Integer] :size The size of the file in bytes.
28
+ # @option opts [String] :md5 The MD5 checksum of the file if available.
29
+ # @option opts [String] :sha1 The SHA-1 checksum of the file if available.
30
+ # @option opts [String] :sha224 The SHA-224 checksum of the file if available.
31
+ # @option opts [String] :sha256 The SHA-256 checksum of the file if available.
32
+ # @option opts [String] :sha384 The SHA-384 checksum of the file if available.
33
+ # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
34
+ # @return [Artifact]
35
+ def artifacts_create(file, opts = {})
36
+ data, _status_code, _headers = artifacts_create_with_http_info(file, opts)
37
+ return data
38
+ end
39
+
40
+ #
41
+ #
42
+ # @param file The stored file.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [Integer] :size The size of the file in bytes.
45
+ # @option opts [String] :md5 The MD5 checksum of the file if available.
46
+ # @option opts [String] :sha1 The SHA-1 checksum of the file if available.
47
+ # @option opts [String] :sha224 The SHA-224 checksum of the file if available.
48
+ # @option opts [String] :sha256 The SHA-256 checksum of the file if available.
49
+ # @option opts [String] :sha384 The SHA-384 checksum of the file if available.
50
+ # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
51
+ # @return [Array<(Artifact, Fixnum, Hash)>] Artifact data, response status code and response headers
52
+ def artifacts_create_with_http_info(file, opts = {})
53
+ if @api_client.config.debugging
54
+ @api_client.config.logger.debug "Calling API: PulpApi.artifacts_create ..."
55
+ end
56
+ # verify the required parameter 'file' is set
57
+ if @api_client.config.client_side_validation && file.nil?
58
+ fail ArgumentError, "Missing the required parameter 'file' when calling PulpApi.artifacts_create"
59
+ end
60
+ # resource path
61
+ local_var_path = "/pulp/api/v3/artifacts/"
62
+
63
+ # query parameters
64
+ query_params = {}
65
+
66
+ # header parameters
67
+ header_params = {}
68
+ # HTTP header 'Accept' (if needed)
69
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
70
+ # HTTP header 'Content-Type'
71
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
72
+
73
+ # form parameters
74
+ form_params = {}
75
+ form_params["file"] = file
76
+ form_params["size"] = opts[:'size'] if !opts[:'size'].nil?
77
+ form_params["md5"] = opts[:'md5'] if !opts[:'md5'].nil?
78
+ form_params["sha1"] = opts[:'sha1'] if !opts[:'sha1'].nil?
79
+ form_params["sha224"] = opts[:'sha224'] if !opts[:'sha224'].nil?
80
+ form_params["sha256"] = opts[:'sha256'] if !opts[:'sha256'].nil?
81
+ form_params["sha384"] = opts[:'sha384'] if !opts[:'sha384'].nil?
82
+ form_params["sha512"] = opts[:'sha512'] if !opts[:'sha512'].nil?
83
+
84
+ # http body (model)
85
+ post_body = nil
86
+ auth_names = ['Basic']
87
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
88
+ :header_params => header_params,
89
+ :query_params => query_params,
90
+ :form_params => form_params,
91
+ :body => post_body,
92
+ :auth_names => auth_names,
93
+ :return_type => 'Artifact')
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: PulpApi#artifacts_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ return data, status_code, headers
98
+ end
99
+
100
+ #
101
+ # Remove Artifact only if it is not associated with any Content.
102
+ # @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [nil]
105
+ def artifacts_delete(artifact_href, opts = {})
106
+ artifacts_delete_with_http_info(artifact_href, opts)
107
+ return nil
108
+ end
109
+
110
+ #
111
+ # Remove Artifact only if it is not associated with any Content.
112
+ # @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
115
+ def artifacts_delete_with_http_info(artifact_href, opts = {})
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug "Calling API: PulpApi.artifacts_delete ..."
118
+ end
119
+ # verify the required parameter 'artifact_href' is set
120
+ if @api_client.config.client_side_validation && artifact_href.nil?
121
+ fail ArgumentError, "Missing the required parameter 'artifact_href' when calling PulpApi.artifacts_delete"
122
+ end
123
+ # resource path
124
+ local_var_path = "{artifact_href}".sub('{' + 'artifact_href' + '}', artifact_href.to_s)
125
+
126
+ # query parameters
127
+ query_params = {}
128
+
129
+ # header parameters
130
+ header_params = {}
131
+ # HTTP header 'Accept' (if needed)
132
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
133
+ # HTTP header 'Content-Type'
134
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
135
+
136
+ # form parameters
137
+ form_params = {}
138
+
139
+ # http body (model)
140
+ post_body = nil
141
+ auth_names = ['Basic']
142
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names)
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: PulpApi#artifacts_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+
154
+ #
155
+ #
156
+ # @param [Hash] opts the optional parameters
157
+ # @option opts [String] :md5 Filter results where md5 matches value
158
+ # @option opts [String] :sha1 Filter results where sha1 matches value
159
+ # @option opts [String] :sha224 Filter results where sha224 matches value
160
+ # @option opts [String] :sha256 Filter results where sha256 matches value
161
+ # @option opts [String] :sha384 Filter results where sha384 matches value
162
+ # @option opts [String] :sha512 Filter results where sha512 matches value
163
+ # @option opts [Integer] :page A page number within the paginated result set.
164
+ # @option opts [Integer] :page_size Number of results to return per page.
165
+ # @return [InlineResponse200]
166
+ def artifacts_list(opts = {})
167
+ data, _status_code, _headers = artifacts_list_with_http_info(opts)
168
+ return data
169
+ end
170
+
171
+ #
172
+ #
173
+ # @param [Hash] opts the optional parameters
174
+ # @option opts [String] :md5 Filter results where md5 matches value
175
+ # @option opts [String] :sha1 Filter results where sha1 matches value
176
+ # @option opts [String] :sha224 Filter results where sha224 matches value
177
+ # @option opts [String] :sha256 Filter results where sha256 matches value
178
+ # @option opts [String] :sha384 Filter results where sha384 matches value
179
+ # @option opts [String] :sha512 Filter results where sha512 matches value
180
+ # @option opts [Integer] :page A page number within the paginated result set.
181
+ # @option opts [Integer] :page_size Number of results to return per page.
182
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
183
+ def artifacts_list_with_http_info(opts = {})
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug "Calling API: PulpApi.artifacts_list ..."
186
+ end
187
+ # resource path
188
+ local_var_path = "/pulp/api/v3/artifacts/"
189
+
190
+ # query parameters
191
+ query_params = {}
192
+ query_params[:'md5'] = opts[:'md5'] if !opts[:'md5'].nil?
193
+ query_params[:'sha1'] = opts[:'sha1'] if !opts[:'sha1'].nil?
194
+ query_params[:'sha224'] = opts[:'sha224'] if !opts[:'sha224'].nil?
195
+ query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
196
+ query_params[:'sha384'] = opts[:'sha384'] if !opts[:'sha384'].nil?
197
+ query_params[:'sha512'] = opts[:'sha512'] if !opts[:'sha512'].nil?
198
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
199
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
200
+
201
+ # header parameters
202
+ header_params = {}
203
+ # HTTP header 'Accept' (if needed)
204
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
205
+ # HTTP header 'Content-Type'
206
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
207
+
208
+ # form parameters
209
+ form_params = {}
210
+
211
+ # http body (model)
212
+ post_body = nil
213
+ auth_names = ['Basic']
214
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
215
+ :header_params => header_params,
216
+ :query_params => query_params,
217
+ :form_params => form_params,
218
+ :body => post_body,
219
+ :auth_names => auth_names,
220
+ :return_type => 'InlineResponse200')
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: PulpApi#artifacts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+
227
+ #
228
+ #
229
+ # @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
230
+ # @param [Hash] opts the optional parameters
231
+ # @return [Artifact]
232
+ def artifacts_read(artifact_href, opts = {})
233
+ data, _status_code, _headers = artifacts_read_with_http_info(artifact_href, opts)
234
+ return data
235
+ end
236
+
237
+ #
238
+ #
239
+ # @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
240
+ # @param [Hash] opts the optional parameters
241
+ # @return [Array<(Artifact, Fixnum, Hash)>] Artifact data, response status code and response headers
242
+ def artifacts_read_with_http_info(artifact_href, opts = {})
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "Calling API: PulpApi.artifacts_read ..."
245
+ end
246
+ # verify the required parameter 'artifact_href' is set
247
+ if @api_client.config.client_side_validation && artifact_href.nil?
248
+ fail ArgumentError, "Missing the required parameter 'artifact_href' when calling PulpApi.artifacts_read"
249
+ end
250
+ # resource path
251
+ local_var_path = "{artifact_href}".sub('{' + 'artifact_href' + '}', artifact_href.to_s)
252
+
253
+ # query parameters
254
+ query_params = {}
255
+
256
+ # header parameters
257
+ header_params = {}
258
+ # HTTP header 'Accept' (if needed)
259
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
260
+ # HTTP header 'Content-Type'
261
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
262
+
263
+ # form parameters
264
+ form_params = {}
265
+
266
+ # http body (model)
267
+ post_body = nil
268
+ auth_names = ['Basic']
269
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
270
+ :header_params => header_params,
271
+ :query_params => query_params,
272
+ :form_params => form_params,
273
+ :body => post_body,
274
+ :auth_names => auth_names,
275
+ :return_type => 'Artifact')
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug "API called: PulpApi#artifacts_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
+ end
279
+ return data, status_code, headers
280
+ end
281
+
282
+ #
283
+ # Create a new FileContent from a request.
284
+ # @param data
285
+ # @param [Hash] opts the optional parameters
286
+ # @return [FileContent]
287
+ def content_file_files_create(data, opts = {})
288
+ data, _status_code, _headers = content_file_files_create_with_http_info(data, opts)
289
+ return data
290
+ end
291
+
292
+ #
293
+ # Create a new FileContent from a request.
294
+ # @param data
295
+ # @param [Hash] opts the optional parameters
296
+ # @return [Array<(FileContent, Fixnum, Hash)>] FileContent data, response status code and response headers
297
+ def content_file_files_create_with_http_info(data, opts = {})
298
+ if @api_client.config.debugging
299
+ @api_client.config.logger.debug "Calling API: PulpApi.content_file_files_create ..."
300
+ end
301
+ # verify the required parameter 'data' is set
302
+ if @api_client.config.client_side_validation && data.nil?
303
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.content_file_files_create"
304
+ end
305
+ # resource path
306
+ local_var_path = "/pulp/api/v3/content/file/files/"
307
+
308
+ # query parameters
309
+ query_params = {}
310
+
311
+ # header parameters
312
+ header_params = {}
313
+ # HTTP header 'Accept' (if needed)
314
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
315
+ # HTTP header 'Content-Type'
316
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
317
+
318
+ # form parameters
319
+ form_params = {}
320
+
321
+ # http body (model)
322
+ post_body = @api_client.object_to_http_body(data)
323
+ auth_names = ['Basic']
324
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
325
+ :header_params => header_params,
326
+ :query_params => query_params,
327
+ :form_params => form_params,
328
+ :body => post_body,
329
+ :auth_names => auth_names,
330
+ :return_type => 'FileContent')
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: PulpApi#content_file_files_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
337
+ #
338
+ # ViewSet for FileContent.
339
+ # @param [Hash] opts the optional parameters
340
+ # @option opts [String] :relative_path Filter results where relative_path matches value
341
+ # @option opts [String] :digest Filter results where digest matches value
342
+ # @option opts [String] :repository_version Repository Version referenced by HREF
343
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
344
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
345
+ # @option opts [Integer] :page A page number within the paginated result set.
346
+ # @option opts [Integer] :page_size Number of results to return per page.
347
+ # @return [InlineResponse2001]
348
+ def content_file_files_list(opts = {})
349
+ data, _status_code, _headers = content_file_files_list_with_http_info(opts)
350
+ return data
351
+ end
352
+
353
+ #
354
+ # ViewSet for FileContent.
355
+ # @param [Hash] opts the optional parameters
356
+ # @option opts [String] :relative_path Filter results where relative_path matches value
357
+ # @option opts [String] :digest Filter results where digest matches value
358
+ # @option opts [String] :repository_version Repository Version referenced by HREF
359
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
360
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
361
+ # @option opts [Integer] :page A page number within the paginated result set.
362
+ # @option opts [Integer] :page_size Number of results to return per page.
363
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
364
+ def content_file_files_list_with_http_info(opts = {})
365
+ if @api_client.config.debugging
366
+ @api_client.config.logger.debug "Calling API: PulpApi.content_file_files_list ..."
367
+ end
368
+ # resource path
369
+ local_var_path = "/pulp/api/v3/content/file/files/"
370
+
371
+ # query parameters
372
+ query_params = {}
373
+ query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
374
+ query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
375
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
376
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
377
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
378
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
379
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
380
+
381
+ # header parameters
382
+ header_params = {}
383
+ # HTTP header 'Accept' (if needed)
384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
385
+ # HTTP header 'Content-Type'
386
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
387
+
388
+ # form parameters
389
+ form_params = {}
390
+
391
+ # http body (model)
392
+ post_body = nil
393
+ auth_names = ['Basic']
394
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
395
+ :header_params => header_params,
396
+ :query_params => query_params,
397
+ :form_params => form_params,
398
+ :body => post_body,
399
+ :auth_names => auth_names,
400
+ :return_type => 'InlineResponse2001')
401
+ if @api_client.config.debugging
402
+ @api_client.config.logger.debug "API called: PulpApi#content_file_files_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
403
+ end
404
+ return data, status_code, headers
405
+ end
406
+
407
+ #
408
+ # ViewSet for FileContent.
409
+ # @param file_content_href URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
410
+ # @param [Hash] opts the optional parameters
411
+ # @return [FileContent]
412
+ def content_file_files_read(file_content_href, opts = {})
413
+ data, _status_code, _headers = content_file_files_read_with_http_info(file_content_href, opts)
414
+ return data
415
+ end
416
+
417
+ #
418
+ # ViewSet for FileContent.
419
+ # @param file_content_href URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
420
+ # @param [Hash] opts the optional parameters
421
+ # @return [Array<(FileContent, Fixnum, Hash)>] FileContent data, response status code and response headers
422
+ def content_file_files_read_with_http_info(file_content_href, opts = {})
423
+ if @api_client.config.debugging
424
+ @api_client.config.logger.debug "Calling API: PulpApi.content_file_files_read ..."
425
+ end
426
+ # verify the required parameter 'file_content_href' is set
427
+ if @api_client.config.client_side_validation && file_content_href.nil?
428
+ fail ArgumentError, "Missing the required parameter 'file_content_href' when calling PulpApi.content_file_files_read"
429
+ end
430
+ # resource path
431
+ local_var_path = "{file_content_href}".sub('{' + 'file_content_href' + '}', file_content_href.to_s)
432
+
433
+ # query parameters
434
+ query_params = {}
435
+
436
+ # header parameters
437
+ header_params = {}
438
+ # HTTP header 'Accept' (if needed)
439
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
440
+ # HTTP header 'Content-Type'
441
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
442
+
443
+ # form parameters
444
+ form_params = {}
445
+
446
+ # http body (model)
447
+ post_body = nil
448
+ auth_names = ['Basic']
449
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
450
+ :header_params => header_params,
451
+ :query_params => query_params,
452
+ :form_params => form_params,
453
+ :body => post_body,
454
+ :auth_names => auth_names,
455
+ :return_type => 'FileContent')
456
+ if @api_client.config.debugging
457
+ @api_client.config.logger.debug "API called: PulpApi#content_file_files_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
458
+ end
459
+ return data, status_code, headers
460
+ end
461
+
462
+ #
463
+ #
464
+ # @param data
465
+ # @param [Hash] opts the optional parameters
466
+ # @return [Distribution]
467
+ def distributions_create(data, opts = {})
468
+ data, _status_code, _headers = distributions_create_with_http_info(data, opts)
469
+ return data
470
+ end
471
+
472
+ #
473
+ #
474
+ # @param data
475
+ # @param [Hash] opts the optional parameters
476
+ # @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers
477
+ def distributions_create_with_http_info(data, opts = {})
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug "Calling API: PulpApi.distributions_create ..."
480
+ end
481
+ # verify the required parameter 'data' is set
482
+ if @api_client.config.client_side_validation && data.nil?
483
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.distributions_create"
484
+ end
485
+ # resource path
486
+ local_var_path = "/pulp/api/v3/distributions/"
487
+
488
+ # query parameters
489
+ query_params = {}
490
+
491
+ # header parameters
492
+ header_params = {}
493
+ # HTTP header 'Accept' (if needed)
494
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
495
+ # HTTP header 'Content-Type'
496
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
497
+
498
+ # form parameters
499
+ form_params = {}
500
+
501
+ # http body (model)
502
+ post_body = @api_client.object_to_http_body(data)
503
+ auth_names = ['Basic']
504
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
505
+ :header_params => header_params,
506
+ :query_params => query_params,
507
+ :form_params => form_params,
508
+ :body => post_body,
509
+ :auth_names => auth_names,
510
+ :return_type => 'Distribution')
511
+ if @api_client.config.debugging
512
+ @api_client.config.logger.debug "API called: PulpApi#distributions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
513
+ end
514
+ return data, status_code, headers
515
+ end
516
+
517
+ #
518
+ #
519
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
520
+ # @param [Hash] opts the optional parameters
521
+ # @return [nil]
522
+ def distributions_delete(distribution_href, opts = {})
523
+ distributions_delete_with_http_info(distribution_href, opts)
524
+ return nil
525
+ end
526
+
527
+ #
528
+ #
529
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
530
+ # @param [Hash] opts the optional parameters
531
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
532
+ def distributions_delete_with_http_info(distribution_href, opts = {})
533
+ if @api_client.config.debugging
534
+ @api_client.config.logger.debug "Calling API: PulpApi.distributions_delete ..."
535
+ end
536
+ # verify the required parameter 'distribution_href' is set
537
+ if @api_client.config.client_side_validation && distribution_href.nil?
538
+ fail ArgumentError, "Missing the required parameter 'distribution_href' when calling PulpApi.distributions_delete"
539
+ end
540
+ # resource path
541
+ local_var_path = "{distribution_href}".sub('{' + 'distribution_href' + '}', distribution_href.to_s)
542
+
543
+ # query parameters
544
+ query_params = {}
545
+
546
+ # header parameters
547
+ header_params = {}
548
+ # HTTP header 'Accept' (if needed)
549
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
550
+ # HTTP header 'Content-Type'
551
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
552
+
553
+ # form parameters
554
+ form_params = {}
555
+
556
+ # http body (model)
557
+ post_body = nil
558
+ auth_names = ['Basic']
559
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
560
+ :header_params => header_params,
561
+ :query_params => query_params,
562
+ :form_params => form_params,
563
+ :body => post_body,
564
+ :auth_names => auth_names)
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug "API called: PulpApi#distributions_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
567
+ end
568
+ return data, status_code, headers
569
+ end
570
+
571
+ #
572
+ #
573
+ # @param [Hash] opts the optional parameters
574
+ # @option opts [String] :name
575
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
576
+ # @option opts [String] :base_path
577
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
578
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
579
+ # @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
580
+ # @option opts [Integer] :page A page number within the paginated result set.
581
+ # @option opts [Integer] :page_size Number of results to return per page.
582
+ # @return [InlineResponse2002]
583
+ def distributions_list(opts = {})
584
+ data, _status_code, _headers = distributions_list_with_http_info(opts)
585
+ return data
586
+ end
587
+
588
+ #
589
+ #
590
+ # @param [Hash] opts the optional parameters
591
+ # @option opts [String] :name
592
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
593
+ # @option opts [String] :base_path
594
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
595
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
596
+ # @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
597
+ # @option opts [Integer] :page A page number within the paginated result set.
598
+ # @option opts [Integer] :page_size Number of results to return per page.
599
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
600
+ def distributions_list_with_http_info(opts = {})
601
+ if @api_client.config.debugging
602
+ @api_client.config.logger.debug "Calling API: PulpApi.distributions_list ..."
603
+ end
604
+ # resource path
605
+ local_var_path = "/pulp/api/v3/distributions/"
606
+
607
+ # query parameters
608
+ query_params = {}
609
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
610
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
611
+ query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
612
+ query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
613
+ query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
614
+ query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
615
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
616
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
617
+
618
+ # header parameters
619
+ header_params = {}
620
+ # HTTP header 'Accept' (if needed)
621
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
622
+ # HTTP header 'Content-Type'
623
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
624
+
625
+ # form parameters
626
+ form_params = {}
627
+
628
+ # http body (model)
629
+ post_body = nil
630
+ auth_names = ['Basic']
631
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
632
+ :header_params => header_params,
633
+ :query_params => query_params,
634
+ :form_params => form_params,
635
+ :body => post_body,
636
+ :auth_names => auth_names,
637
+ :return_type => 'InlineResponse2002')
638
+ if @api_client.config.debugging
639
+ @api_client.config.logger.debug "API called: PulpApi#distributions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
640
+ end
641
+ return data, status_code, headers
642
+ end
643
+
644
+ #
645
+ #
646
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
647
+ # @param data
648
+ # @param [Hash] opts the optional parameters
649
+ # @return [Distribution]
650
+ def distributions_partial_update(distribution_href, data, opts = {})
651
+ data, _status_code, _headers = distributions_partial_update_with_http_info(distribution_href, data, opts)
652
+ return data
653
+ end
654
+
655
+ #
656
+ #
657
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
658
+ # @param data
659
+ # @param [Hash] opts the optional parameters
660
+ # @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers
661
+ def distributions_partial_update_with_http_info(distribution_href, data, opts = {})
662
+ if @api_client.config.debugging
663
+ @api_client.config.logger.debug "Calling API: PulpApi.distributions_partial_update ..."
664
+ end
665
+ # verify the required parameter 'distribution_href' is set
666
+ if @api_client.config.client_side_validation && distribution_href.nil?
667
+ fail ArgumentError, "Missing the required parameter 'distribution_href' when calling PulpApi.distributions_partial_update"
668
+ end
669
+ # verify the required parameter 'data' is set
670
+ if @api_client.config.client_side_validation && data.nil?
671
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.distributions_partial_update"
672
+ end
673
+ # resource path
674
+ local_var_path = "{distribution_href}".sub('{' + 'distribution_href' + '}', distribution_href.to_s)
675
+
676
+ # query parameters
677
+ query_params = {}
678
+
679
+ # header parameters
680
+ header_params = {}
681
+ # HTTP header 'Accept' (if needed)
682
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
683
+ # HTTP header 'Content-Type'
684
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
685
+
686
+ # form parameters
687
+ form_params = {}
688
+
689
+ # http body (model)
690
+ post_body = @api_client.object_to_http_body(data)
691
+ auth_names = ['Basic']
692
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
693
+ :header_params => header_params,
694
+ :query_params => query_params,
695
+ :form_params => form_params,
696
+ :body => post_body,
697
+ :auth_names => auth_names,
698
+ :return_type => 'Distribution')
699
+ if @api_client.config.debugging
700
+ @api_client.config.logger.debug "API called: PulpApi#distributions_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
701
+ end
702
+ return data, status_code, headers
703
+ end
704
+
705
+ #
706
+ #
707
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
708
+ # @param [Hash] opts the optional parameters
709
+ # @return [Distribution]
710
+ def distributions_read(distribution_href, opts = {})
711
+ data, _status_code, _headers = distributions_read_with_http_info(distribution_href, opts)
712
+ return data
713
+ end
714
+
715
+ #
716
+ #
717
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
718
+ # @param [Hash] opts the optional parameters
719
+ # @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers
720
+ def distributions_read_with_http_info(distribution_href, opts = {})
721
+ if @api_client.config.debugging
722
+ @api_client.config.logger.debug "Calling API: PulpApi.distributions_read ..."
723
+ end
724
+ # verify the required parameter 'distribution_href' is set
725
+ if @api_client.config.client_side_validation && distribution_href.nil?
726
+ fail ArgumentError, "Missing the required parameter 'distribution_href' when calling PulpApi.distributions_read"
727
+ end
728
+ # resource path
729
+ local_var_path = "{distribution_href}".sub('{' + 'distribution_href' + '}', distribution_href.to_s)
730
+
731
+ # query parameters
732
+ query_params = {}
733
+
734
+ # header parameters
735
+ header_params = {}
736
+ # HTTP header 'Accept' (if needed)
737
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
738
+ # HTTP header 'Content-Type'
739
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
740
+
741
+ # form parameters
742
+ form_params = {}
743
+
744
+ # http body (model)
745
+ post_body = nil
746
+ auth_names = ['Basic']
747
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
748
+ :header_params => header_params,
749
+ :query_params => query_params,
750
+ :form_params => form_params,
751
+ :body => post_body,
752
+ :auth_names => auth_names,
753
+ :return_type => 'Distribution')
754
+ if @api_client.config.debugging
755
+ @api_client.config.logger.debug "API called: PulpApi#distributions_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
756
+ end
757
+ return data, status_code, headers
758
+ end
759
+
760
+ #
761
+ #
762
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
763
+ # @param data
764
+ # @param [Hash] opts the optional parameters
765
+ # @return [Distribution]
766
+ def distributions_update(distribution_href, data, opts = {})
767
+ data, _status_code, _headers = distributions_update_with_http_info(distribution_href, data, opts)
768
+ return data
769
+ end
770
+
771
+ #
772
+ #
773
+ # @param distribution_href URI of Distribution. e.g.: /pulp/api/v3/distributions/1/
774
+ # @param data
775
+ # @param [Hash] opts the optional parameters
776
+ # @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers
777
+ def distributions_update_with_http_info(distribution_href, data, opts = {})
778
+ if @api_client.config.debugging
779
+ @api_client.config.logger.debug "Calling API: PulpApi.distributions_update ..."
780
+ end
781
+ # verify the required parameter 'distribution_href' is set
782
+ if @api_client.config.client_side_validation && distribution_href.nil?
783
+ fail ArgumentError, "Missing the required parameter 'distribution_href' when calling PulpApi.distributions_update"
784
+ end
785
+ # verify the required parameter 'data' is set
786
+ if @api_client.config.client_side_validation && data.nil?
787
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.distributions_update"
788
+ end
789
+ # resource path
790
+ local_var_path = "{distribution_href}".sub('{' + 'distribution_href' + '}', distribution_href.to_s)
791
+
792
+ # query parameters
793
+ query_params = {}
794
+
795
+ # header parameters
796
+ header_params = {}
797
+ # HTTP header 'Accept' (if needed)
798
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
799
+ # HTTP header 'Content-Type'
800
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
801
+
802
+ # form parameters
803
+ form_params = {}
804
+
805
+ # http body (model)
806
+ post_body = @api_client.object_to_http_body(data)
807
+ auth_names = ['Basic']
808
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
809
+ :header_params => header_params,
810
+ :query_params => query_params,
811
+ :form_params => form_params,
812
+ :body => post_body,
813
+ :auth_names => auth_names,
814
+ :return_type => 'Distribution')
815
+ if @api_client.config.debugging
816
+ @api_client.config.logger.debug "API called: PulpApi#distributions_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
817
+ end
818
+ return data, status_code, headers
819
+ end
820
+
821
+ #
822
+ # Cleans up all the Content and Artifact orphans in the system
823
+ # @param [Hash] opts the optional parameters
824
+ # @return [nil]
825
+ def orphans_delete(opts = {})
826
+ orphans_delete_with_http_info(opts)
827
+ return nil
828
+ end
829
+
830
+ #
831
+ # Cleans up all the Content and Artifact orphans in the system
832
+ # @param [Hash] opts the optional parameters
833
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
834
+ def orphans_delete_with_http_info(opts = {})
835
+ if @api_client.config.debugging
836
+ @api_client.config.logger.debug "Calling API: PulpApi.orphans_delete ..."
837
+ end
838
+ # resource path
839
+ local_var_path = "/pulp/api/v3/orphans/"
840
+
841
+ # query parameters
842
+ query_params = {}
843
+
844
+ # header parameters
845
+ header_params = {}
846
+ # HTTP header 'Accept' (if needed)
847
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
848
+ # HTTP header 'Content-Type'
849
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
850
+
851
+ # form parameters
852
+ form_params = {}
853
+
854
+ # http body (model)
855
+ post_body = nil
856
+ auth_names = ['Basic']
857
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
858
+ :header_params => header_params,
859
+ :query_params => query_params,
860
+ :form_params => form_params,
861
+ :body => post_body,
862
+ :auth_names => auth_names)
863
+ if @api_client.config.debugging
864
+ @api_client.config.logger.debug "API called: PulpApi#orphans_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
865
+ end
866
+ return data, status_code, headers
867
+ end
868
+
869
+ #
870
+ #
871
+ # @param publication_href URI of Publication. e.g.: /pulp/api/v3/publications/1/
872
+ # @param [Hash] opts the optional parameters
873
+ # @return [nil]
874
+ def publications_delete(publication_href, opts = {})
875
+ publications_delete_with_http_info(publication_href, opts)
876
+ return nil
877
+ end
878
+
879
+ #
880
+ #
881
+ # @param publication_href URI of Publication. e.g.: /pulp/api/v3/publications/1/
882
+ # @param [Hash] opts the optional parameters
883
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
884
+ def publications_delete_with_http_info(publication_href, opts = {})
885
+ if @api_client.config.debugging
886
+ @api_client.config.logger.debug "Calling API: PulpApi.publications_delete ..."
887
+ end
888
+ # verify the required parameter 'publication_href' is set
889
+ if @api_client.config.client_side_validation && publication_href.nil?
890
+ fail ArgumentError, "Missing the required parameter 'publication_href' when calling PulpApi.publications_delete"
891
+ end
892
+ # resource path
893
+ local_var_path = "{publication_href}".sub('{' + 'publication_href' + '}', publication_href.to_s)
894
+
895
+ # query parameters
896
+ query_params = {}
897
+
898
+ # header parameters
899
+ header_params = {}
900
+ # HTTP header 'Accept' (if needed)
901
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
902
+ # HTTP header 'Content-Type'
903
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
904
+
905
+ # form parameters
906
+ form_params = {}
907
+
908
+ # http body (model)
909
+ post_body = nil
910
+ auth_names = ['Basic']
911
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
912
+ :header_params => header_params,
913
+ :query_params => query_params,
914
+ :form_params => form_params,
915
+ :body => post_body,
916
+ :auth_names => auth_names)
917
+ if @api_client.config.debugging
918
+ @api_client.config.logger.debug "API called: PulpApi#publications_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
919
+ end
920
+ return data, status_code, headers
921
+ end
922
+
923
+ #
924
+ #
925
+ # @param [Hash] opts the optional parameters
926
+ # @option opts [String] :ordering Which field to use when ordering the results.
927
+ # @option opts [Integer] :page A page number within the paginated result set.
928
+ # @option opts [Integer] :page_size Number of results to return per page.
929
+ # @return [InlineResponse2003]
930
+ def publications_list(opts = {})
931
+ data, _status_code, _headers = publications_list_with_http_info(opts)
932
+ return data
933
+ end
934
+
935
+ #
936
+ #
937
+ # @param [Hash] opts the optional parameters
938
+ # @option opts [String] :ordering Which field to use when ordering the results.
939
+ # @option opts [Integer] :page A page number within the paginated result set.
940
+ # @option opts [Integer] :page_size Number of results to return per page.
941
+ # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
942
+ def publications_list_with_http_info(opts = {})
943
+ if @api_client.config.debugging
944
+ @api_client.config.logger.debug "Calling API: PulpApi.publications_list ..."
945
+ end
946
+ # resource path
947
+ local_var_path = "/pulp/api/v3/publications/"
948
+
949
+ # query parameters
950
+ query_params = {}
951
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
952
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
953
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
954
+
955
+ # header parameters
956
+ header_params = {}
957
+ # HTTP header 'Accept' (if needed)
958
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
959
+ # HTTP header 'Content-Type'
960
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
961
+
962
+ # form parameters
963
+ form_params = {}
964
+
965
+ # http body (model)
966
+ post_body = nil
967
+ auth_names = ['Basic']
968
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
969
+ :header_params => header_params,
970
+ :query_params => query_params,
971
+ :form_params => form_params,
972
+ :body => post_body,
973
+ :auth_names => auth_names,
974
+ :return_type => 'InlineResponse2003')
975
+ if @api_client.config.debugging
976
+ @api_client.config.logger.debug "API called: PulpApi#publications_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
977
+ end
978
+ return data, status_code, headers
979
+ end
980
+
981
+ #
982
+ #
983
+ # @param publication_href URI of Publication. e.g.: /pulp/api/v3/publications/1/
984
+ # @param [Hash] opts the optional parameters
985
+ # @return [Publication]
986
+ def publications_read(publication_href, opts = {})
987
+ data, _status_code, _headers = publications_read_with_http_info(publication_href, opts)
988
+ return data
989
+ end
990
+
991
+ #
992
+ #
993
+ # @param publication_href URI of Publication. e.g.: /pulp/api/v3/publications/1/
994
+ # @param [Hash] opts the optional parameters
995
+ # @return [Array<(Publication, Fixnum, Hash)>] Publication data, response status code and response headers
996
+ def publications_read_with_http_info(publication_href, opts = {})
997
+ if @api_client.config.debugging
998
+ @api_client.config.logger.debug "Calling API: PulpApi.publications_read ..."
999
+ end
1000
+ # verify the required parameter 'publication_href' is set
1001
+ if @api_client.config.client_side_validation && publication_href.nil?
1002
+ fail ArgumentError, "Missing the required parameter 'publication_href' when calling PulpApi.publications_read"
1003
+ end
1004
+ # resource path
1005
+ local_var_path = "{publication_href}".sub('{' + 'publication_href' + '}', publication_href.to_s)
1006
+
1007
+ # query parameters
1008
+ query_params = {}
1009
+
1010
+ # header parameters
1011
+ header_params = {}
1012
+ # HTTP header 'Accept' (if needed)
1013
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1014
+ # HTTP header 'Content-Type'
1015
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1016
+
1017
+ # form parameters
1018
+ form_params = {}
1019
+
1020
+ # http body (model)
1021
+ post_body = nil
1022
+ auth_names = ['Basic']
1023
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1024
+ :header_params => header_params,
1025
+ :query_params => query_params,
1026
+ :form_params => form_params,
1027
+ :body => post_body,
1028
+ :auth_names => auth_names,
1029
+ :return_type => 'Publication')
1030
+ if @api_client.config.debugging
1031
+ @api_client.config.logger.debug "API called: PulpApi#publications_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1032
+ end
1033
+ return data, status_code, headers
1034
+ end
1035
+
1036
+ #
1037
+ # ViewSet for File Publishers.
1038
+ # @param data
1039
+ # @param [Hash] opts the optional parameters
1040
+ # @return [FilePublisher]
1041
+ def publishers_file_file_create(data, opts = {})
1042
+ data, _status_code, _headers = publishers_file_file_create_with_http_info(data, opts)
1043
+ return data
1044
+ end
1045
+
1046
+ #
1047
+ # ViewSet for File Publishers.
1048
+ # @param data
1049
+ # @param [Hash] opts the optional parameters
1050
+ # @return [Array<(FilePublisher, Fixnum, Hash)>] FilePublisher data, response status code and response headers
1051
+ def publishers_file_file_create_with_http_info(data, opts = {})
1052
+ if @api_client.config.debugging
1053
+ @api_client.config.logger.debug "Calling API: PulpApi.publishers_file_file_create ..."
1054
+ end
1055
+ # verify the required parameter 'data' is set
1056
+ if @api_client.config.client_side_validation && data.nil?
1057
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.publishers_file_file_create"
1058
+ end
1059
+ # resource path
1060
+ local_var_path = "/pulp/api/v3/publishers/file/file/"
1061
+
1062
+ # query parameters
1063
+ query_params = {}
1064
+
1065
+ # header parameters
1066
+ header_params = {}
1067
+ # HTTP header 'Accept' (if needed)
1068
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1069
+ # HTTP header 'Content-Type'
1070
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1071
+
1072
+ # form parameters
1073
+ form_params = {}
1074
+
1075
+ # http body (model)
1076
+ post_body = @api_client.object_to_http_body(data)
1077
+ auth_names = ['Basic']
1078
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1079
+ :header_params => header_params,
1080
+ :query_params => query_params,
1081
+ :form_params => form_params,
1082
+ :body => post_body,
1083
+ :auth_names => auth_names,
1084
+ :return_type => 'FilePublisher')
1085
+ if @api_client.config.debugging
1086
+ @api_client.config.logger.debug "API called: PulpApi#publishers_file_file_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
+ end
1088
+ return data, status_code, headers
1089
+ end
1090
+
1091
+ #
1092
+ # Trigger an asynchronous delete task
1093
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1094
+ # @param [Hash] opts the optional parameters
1095
+ # @return [AsyncOperationResponse]
1096
+ def publishers_file_file_delete(file_publisher_href, opts = {})
1097
+ data, _status_code, _headers = publishers_file_file_delete_with_http_info(file_publisher_href, opts)
1098
+ return data
1099
+ end
1100
+
1101
+ #
1102
+ # Trigger an asynchronous delete task
1103
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1104
+ # @param [Hash] opts the optional parameters
1105
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1106
+ def publishers_file_file_delete_with_http_info(file_publisher_href, opts = {})
1107
+ if @api_client.config.debugging
1108
+ @api_client.config.logger.debug "Calling API: PulpApi.publishers_file_file_delete ..."
1109
+ end
1110
+ # verify the required parameter 'file_publisher_href' is set
1111
+ if @api_client.config.client_side_validation && file_publisher_href.nil?
1112
+ fail ArgumentError, "Missing the required parameter 'file_publisher_href' when calling PulpApi.publishers_file_file_delete"
1113
+ end
1114
+ # resource path
1115
+ local_var_path = "{file_publisher_href}".sub('{' + 'file_publisher_href' + '}', file_publisher_href.to_s)
1116
+
1117
+ # query parameters
1118
+ query_params = {}
1119
+
1120
+ # header parameters
1121
+ header_params = {}
1122
+ # HTTP header 'Accept' (if needed)
1123
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1124
+ # HTTP header 'Content-Type'
1125
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1126
+
1127
+ # form parameters
1128
+ form_params = {}
1129
+
1130
+ # http body (model)
1131
+ post_body = nil
1132
+ auth_names = ['Basic']
1133
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1134
+ :header_params => header_params,
1135
+ :query_params => query_params,
1136
+ :form_params => form_params,
1137
+ :body => post_body,
1138
+ :auth_names => auth_names,
1139
+ :return_type => 'AsyncOperationResponse')
1140
+ if @api_client.config.debugging
1141
+ @api_client.config.logger.debug "API called: PulpApi#publishers_file_file_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1142
+ end
1143
+ return data, status_code, headers
1144
+ end
1145
+
1146
+ #
1147
+ # ViewSet for File Publishers.
1148
+ # @param [Hash] opts the optional parameters
1149
+ # @option opts [String] :name
1150
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
1151
+ # @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
1152
+ # @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
1153
+ # @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
1154
+ # @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
1155
+ # @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
1156
+ # @option opts [String] :_last_updated ISO 8601 formatted dates are supported
1157
+ # @option opts [Integer] :page A page number within the paginated result set.
1158
+ # @option opts [Integer] :page_size Number of results to return per page.
1159
+ # @return [InlineResponse2004]
1160
+ def publishers_file_file_list(opts = {})
1161
+ data, _status_code, _headers = publishers_file_file_list_with_http_info(opts)
1162
+ return data
1163
+ end
1164
+
1165
+ #
1166
+ # ViewSet for File Publishers.
1167
+ # @param [Hash] opts the optional parameters
1168
+ # @option opts [String] :name
1169
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
1170
+ # @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
1171
+ # @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
1172
+ # @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
1173
+ # @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
1174
+ # @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
1175
+ # @option opts [String] :_last_updated ISO 8601 formatted dates are supported
1176
+ # @option opts [Integer] :page A page number within the paginated result set.
1177
+ # @option opts [Integer] :page_size Number of results to return per page.
1178
+ # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
1179
+ def publishers_file_file_list_with_http_info(opts = {})
1180
+ if @api_client.config.debugging
1181
+ @api_client.config.logger.debug "Calling API: PulpApi.publishers_file_file_list ..."
1182
+ end
1183
+ # resource path
1184
+ local_var_path = "/pulp/api/v3/publishers/file/file/"
1185
+
1186
+ # query parameters
1187
+ query_params = {}
1188
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
1189
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
1190
+ query_params[:'_last_updated__lt'] = opts[:'_last_updated__lt'] if !opts[:'_last_updated__lt'].nil?
1191
+ query_params[:'_last_updated__lte'] = opts[:'_last_updated__lte'] if !opts[:'_last_updated__lte'].nil?
1192
+ query_params[:'_last_updated__gt'] = opts[:'_last_updated__gt'] if !opts[:'_last_updated__gt'].nil?
1193
+ query_params[:'_last_updated__gte'] = opts[:'_last_updated__gte'] if !opts[:'_last_updated__gte'].nil?
1194
+ query_params[:'_last_updated__range'] = opts[:'_last_updated__range'] if !opts[:'_last_updated__range'].nil?
1195
+ query_params[:'_last_updated'] = opts[:'_last_updated'] if !opts[:'_last_updated'].nil?
1196
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1197
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1198
+
1199
+ # header parameters
1200
+ header_params = {}
1201
+ # HTTP header 'Accept' (if needed)
1202
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1203
+ # HTTP header 'Content-Type'
1204
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1205
+
1206
+ # form parameters
1207
+ form_params = {}
1208
+
1209
+ # http body (model)
1210
+ post_body = nil
1211
+ auth_names = ['Basic']
1212
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1213
+ :header_params => header_params,
1214
+ :query_params => query_params,
1215
+ :form_params => form_params,
1216
+ :body => post_body,
1217
+ :auth_names => auth_names,
1218
+ :return_type => 'InlineResponse2004')
1219
+ if @api_client.config.debugging
1220
+ @api_client.config.logger.debug "API called: PulpApi#publishers_file_file_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1221
+ end
1222
+ return data, status_code, headers
1223
+ end
1224
+
1225
+ #
1226
+ # Trigger an asynchronous partial update task
1227
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1228
+ # @param data
1229
+ # @param [Hash] opts the optional parameters
1230
+ # @return [AsyncOperationResponse]
1231
+ def publishers_file_file_partial_update(file_publisher_href, data, opts = {})
1232
+ data, _status_code, _headers = publishers_file_file_partial_update_with_http_info(file_publisher_href, data, opts)
1233
+ return data
1234
+ end
1235
+
1236
+ #
1237
+ # Trigger an asynchronous partial update task
1238
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1239
+ # @param data
1240
+ # @param [Hash] opts the optional parameters
1241
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1242
+ def publishers_file_file_partial_update_with_http_info(file_publisher_href, data, opts = {})
1243
+ if @api_client.config.debugging
1244
+ @api_client.config.logger.debug "Calling API: PulpApi.publishers_file_file_partial_update ..."
1245
+ end
1246
+ # verify the required parameter 'file_publisher_href' is set
1247
+ if @api_client.config.client_side_validation && file_publisher_href.nil?
1248
+ fail ArgumentError, "Missing the required parameter 'file_publisher_href' when calling PulpApi.publishers_file_file_partial_update"
1249
+ end
1250
+ # verify the required parameter 'data' is set
1251
+ if @api_client.config.client_side_validation && data.nil?
1252
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.publishers_file_file_partial_update"
1253
+ end
1254
+ # resource path
1255
+ local_var_path = "{file_publisher_href}".sub('{' + 'file_publisher_href' + '}', file_publisher_href.to_s)
1256
+
1257
+ # query parameters
1258
+ query_params = {}
1259
+
1260
+ # header parameters
1261
+ header_params = {}
1262
+ # HTTP header 'Accept' (if needed)
1263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1264
+ # HTTP header 'Content-Type'
1265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1266
+
1267
+ # form parameters
1268
+ form_params = {}
1269
+
1270
+ # http body (model)
1271
+ post_body = @api_client.object_to_http_body(data)
1272
+ auth_names = ['Basic']
1273
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1274
+ :header_params => header_params,
1275
+ :query_params => query_params,
1276
+ :form_params => form_params,
1277
+ :body => post_body,
1278
+ :auth_names => auth_names,
1279
+ :return_type => 'AsyncOperationResponse')
1280
+ if @api_client.config.debugging
1281
+ @api_client.config.logger.debug "API called: PulpApi#publishers_file_file_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1282
+ end
1283
+ return data, status_code, headers
1284
+ end
1285
+
1286
+ #
1287
+ # Trigger an asynchronous task to publish file content.
1288
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1289
+ # @param data
1290
+ # @param [Hash] opts the optional parameters
1291
+ # @return [AsyncOperationResponse]
1292
+ def publishers_file_file_publish(file_publisher_href, data, opts = {})
1293
+ data, _status_code, _headers = publishers_file_file_publish_with_http_info(file_publisher_href, data, opts)
1294
+ return data
1295
+ end
1296
+
1297
+ #
1298
+ # Trigger an asynchronous task to publish file content.
1299
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1300
+ # @param data
1301
+ # @param [Hash] opts the optional parameters
1302
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1303
+ def publishers_file_file_publish_with_http_info(file_publisher_href, data, opts = {})
1304
+ if @api_client.config.debugging
1305
+ @api_client.config.logger.debug "Calling API: PulpApi.publishers_file_file_publish ..."
1306
+ end
1307
+ # verify the required parameter 'file_publisher_href' is set
1308
+ if @api_client.config.client_side_validation && file_publisher_href.nil?
1309
+ fail ArgumentError, "Missing the required parameter 'file_publisher_href' when calling PulpApi.publishers_file_file_publish"
1310
+ end
1311
+ # verify the required parameter 'data' is set
1312
+ if @api_client.config.client_side_validation && data.nil?
1313
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.publishers_file_file_publish"
1314
+ end
1315
+ # resource path
1316
+ local_var_path = "{file_publisher_href}publish/".sub('{' + 'file_publisher_href' + '}', file_publisher_href.to_s)
1317
+
1318
+ # query parameters
1319
+ query_params = {}
1320
+
1321
+ # header parameters
1322
+ header_params = {}
1323
+ # HTTP header 'Accept' (if needed)
1324
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1325
+ # HTTP header 'Content-Type'
1326
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1327
+
1328
+ # form parameters
1329
+ form_params = {}
1330
+
1331
+ # http body (model)
1332
+ post_body = @api_client.object_to_http_body(data)
1333
+ auth_names = ['Basic']
1334
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1335
+ :header_params => header_params,
1336
+ :query_params => query_params,
1337
+ :form_params => form_params,
1338
+ :body => post_body,
1339
+ :auth_names => auth_names,
1340
+ :return_type => 'AsyncOperationResponse')
1341
+ if @api_client.config.debugging
1342
+ @api_client.config.logger.debug "API called: PulpApi#publishers_file_file_publish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1343
+ end
1344
+ return data, status_code, headers
1345
+ end
1346
+
1347
+ #
1348
+ # ViewSet for File Publishers.
1349
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1350
+ # @param [Hash] opts the optional parameters
1351
+ # @return [FilePublisher]
1352
+ def publishers_file_file_read(file_publisher_href, opts = {})
1353
+ data, _status_code, _headers = publishers_file_file_read_with_http_info(file_publisher_href, opts)
1354
+ return data
1355
+ end
1356
+
1357
+ #
1358
+ # ViewSet for File Publishers.
1359
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1360
+ # @param [Hash] opts the optional parameters
1361
+ # @return [Array<(FilePublisher, Fixnum, Hash)>] FilePublisher data, response status code and response headers
1362
+ def publishers_file_file_read_with_http_info(file_publisher_href, opts = {})
1363
+ if @api_client.config.debugging
1364
+ @api_client.config.logger.debug "Calling API: PulpApi.publishers_file_file_read ..."
1365
+ end
1366
+ # verify the required parameter 'file_publisher_href' is set
1367
+ if @api_client.config.client_side_validation && file_publisher_href.nil?
1368
+ fail ArgumentError, "Missing the required parameter 'file_publisher_href' when calling PulpApi.publishers_file_file_read"
1369
+ end
1370
+ # resource path
1371
+ local_var_path = "{file_publisher_href}".sub('{' + 'file_publisher_href' + '}', file_publisher_href.to_s)
1372
+
1373
+ # query parameters
1374
+ query_params = {}
1375
+
1376
+ # header parameters
1377
+ header_params = {}
1378
+ # HTTP header 'Accept' (if needed)
1379
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1380
+ # HTTP header 'Content-Type'
1381
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1382
+
1383
+ # form parameters
1384
+ form_params = {}
1385
+
1386
+ # http body (model)
1387
+ post_body = nil
1388
+ auth_names = ['Basic']
1389
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1390
+ :header_params => header_params,
1391
+ :query_params => query_params,
1392
+ :form_params => form_params,
1393
+ :body => post_body,
1394
+ :auth_names => auth_names,
1395
+ :return_type => 'FilePublisher')
1396
+ if @api_client.config.debugging
1397
+ @api_client.config.logger.debug "API called: PulpApi#publishers_file_file_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1398
+ end
1399
+ return data, status_code, headers
1400
+ end
1401
+
1402
+ #
1403
+ # Trigger an asynchronous update task
1404
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1405
+ # @param data
1406
+ # @param [Hash] opts the optional parameters
1407
+ # @return [AsyncOperationResponse]
1408
+ def publishers_file_file_update(file_publisher_href, data, opts = {})
1409
+ data, _status_code, _headers = publishers_file_file_update_with_http_info(file_publisher_href, data, opts)
1410
+ return data
1411
+ end
1412
+
1413
+ #
1414
+ # Trigger an asynchronous update task
1415
+ # @param file_publisher_href URI of File Publisher. e.g.: /pulp/api/v3/publishers/file/file/1/
1416
+ # @param data
1417
+ # @param [Hash] opts the optional parameters
1418
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1419
+ def publishers_file_file_update_with_http_info(file_publisher_href, data, opts = {})
1420
+ if @api_client.config.debugging
1421
+ @api_client.config.logger.debug "Calling API: PulpApi.publishers_file_file_update ..."
1422
+ end
1423
+ # verify the required parameter 'file_publisher_href' is set
1424
+ if @api_client.config.client_side_validation && file_publisher_href.nil?
1425
+ fail ArgumentError, "Missing the required parameter 'file_publisher_href' when calling PulpApi.publishers_file_file_update"
1426
+ end
1427
+ # verify the required parameter 'data' is set
1428
+ if @api_client.config.client_side_validation && data.nil?
1429
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.publishers_file_file_update"
1430
+ end
1431
+ # resource path
1432
+ local_var_path = "{file_publisher_href}".sub('{' + 'file_publisher_href' + '}', file_publisher_href.to_s)
1433
+
1434
+ # query parameters
1435
+ query_params = {}
1436
+
1437
+ # header parameters
1438
+ header_params = {}
1439
+ # HTTP header 'Accept' (if needed)
1440
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1441
+ # HTTP header 'Content-Type'
1442
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1443
+
1444
+ # form parameters
1445
+ form_params = {}
1446
+
1447
+ # http body (model)
1448
+ post_body = @api_client.object_to_http_body(data)
1449
+ auth_names = ['Basic']
1450
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1451
+ :header_params => header_params,
1452
+ :query_params => query_params,
1453
+ :form_params => form_params,
1454
+ :body => post_body,
1455
+ :auth_names => auth_names,
1456
+ :return_type => 'AsyncOperationResponse')
1457
+ if @api_client.config.debugging
1458
+ @api_client.config.logger.debug "API called: PulpApi#publishers_file_file_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1459
+ end
1460
+ return data, status_code, headers
1461
+ end
1462
+
1463
+ #
1464
+ # ViewSet for File Remotes.
1465
+ # @param data
1466
+ # @param [Hash] opts the optional parameters
1467
+ # @return [FileRemote]
1468
+ def remotes_file_file_create(data, opts = {})
1469
+ data, _status_code, _headers = remotes_file_file_create_with_http_info(data, opts)
1470
+ return data
1471
+ end
1472
+
1473
+ #
1474
+ # ViewSet for File Remotes.
1475
+ # @param data
1476
+ # @param [Hash] opts the optional parameters
1477
+ # @return [Array<(FileRemote, Fixnum, Hash)>] FileRemote data, response status code and response headers
1478
+ def remotes_file_file_create_with_http_info(data, opts = {})
1479
+ if @api_client.config.debugging
1480
+ @api_client.config.logger.debug "Calling API: PulpApi.remotes_file_file_create ..."
1481
+ end
1482
+ # verify the required parameter 'data' is set
1483
+ if @api_client.config.client_side_validation && data.nil?
1484
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.remotes_file_file_create"
1485
+ end
1486
+ # resource path
1487
+ local_var_path = "/pulp/api/v3/remotes/file/file/"
1488
+
1489
+ # query parameters
1490
+ query_params = {}
1491
+
1492
+ # header parameters
1493
+ header_params = {}
1494
+ # HTTP header 'Accept' (if needed)
1495
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1496
+ # HTTP header 'Content-Type'
1497
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1498
+
1499
+ # form parameters
1500
+ form_params = {}
1501
+
1502
+ # http body (model)
1503
+ post_body = @api_client.object_to_http_body(data)
1504
+ auth_names = ['Basic']
1505
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1506
+ :header_params => header_params,
1507
+ :query_params => query_params,
1508
+ :form_params => form_params,
1509
+ :body => post_body,
1510
+ :auth_names => auth_names,
1511
+ :return_type => 'FileRemote')
1512
+ if @api_client.config.debugging
1513
+ @api_client.config.logger.debug "API called: PulpApi#remotes_file_file_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1514
+ end
1515
+ return data, status_code, headers
1516
+ end
1517
+
1518
+ #
1519
+ # Trigger an asynchronous delete task
1520
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1521
+ # @param [Hash] opts the optional parameters
1522
+ # @return [AsyncOperationResponse]
1523
+ def remotes_file_file_delete(file_remote_href, opts = {})
1524
+ data, _status_code, _headers = remotes_file_file_delete_with_http_info(file_remote_href, opts)
1525
+ return data
1526
+ end
1527
+
1528
+ #
1529
+ # Trigger an asynchronous delete task
1530
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1531
+ # @param [Hash] opts the optional parameters
1532
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1533
+ def remotes_file_file_delete_with_http_info(file_remote_href, opts = {})
1534
+ if @api_client.config.debugging
1535
+ @api_client.config.logger.debug "Calling API: PulpApi.remotes_file_file_delete ..."
1536
+ end
1537
+ # verify the required parameter 'file_remote_href' is set
1538
+ if @api_client.config.client_side_validation && file_remote_href.nil?
1539
+ fail ArgumentError, "Missing the required parameter 'file_remote_href' when calling PulpApi.remotes_file_file_delete"
1540
+ end
1541
+ # resource path
1542
+ local_var_path = "{file_remote_href}".sub('{' + 'file_remote_href' + '}', file_remote_href.to_s)
1543
+
1544
+ # query parameters
1545
+ query_params = {}
1546
+
1547
+ # header parameters
1548
+ header_params = {}
1549
+ # HTTP header 'Accept' (if needed)
1550
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1551
+ # HTTP header 'Content-Type'
1552
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1553
+
1554
+ # form parameters
1555
+ form_params = {}
1556
+
1557
+ # http body (model)
1558
+ post_body = nil
1559
+ auth_names = ['Basic']
1560
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1561
+ :header_params => header_params,
1562
+ :query_params => query_params,
1563
+ :form_params => form_params,
1564
+ :body => post_body,
1565
+ :auth_names => auth_names,
1566
+ :return_type => 'AsyncOperationResponse')
1567
+ if @api_client.config.debugging
1568
+ @api_client.config.logger.debug "API called: PulpApi#remotes_file_file_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1569
+ end
1570
+ return data, status_code, headers
1571
+ end
1572
+
1573
+ #
1574
+ # ViewSet for File Remotes.
1575
+ # @param [Hash] opts the optional parameters
1576
+ # @option opts [String] :name
1577
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
1578
+ # @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
1579
+ # @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
1580
+ # @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
1581
+ # @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
1582
+ # @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
1583
+ # @option opts [String] :_last_updated ISO 8601 formatted dates are supported
1584
+ # @option opts [Integer] :page A page number within the paginated result set.
1585
+ # @option opts [Integer] :page_size Number of results to return per page.
1586
+ # @return [InlineResponse2005]
1587
+ def remotes_file_file_list(opts = {})
1588
+ data, _status_code, _headers = remotes_file_file_list_with_http_info(opts)
1589
+ return data
1590
+ end
1591
+
1592
+ #
1593
+ # ViewSet for File Remotes.
1594
+ # @param [Hash] opts the optional parameters
1595
+ # @option opts [String] :name
1596
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
1597
+ # @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
1598
+ # @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
1599
+ # @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
1600
+ # @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
1601
+ # @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
1602
+ # @option opts [String] :_last_updated ISO 8601 formatted dates are supported
1603
+ # @option opts [Integer] :page A page number within the paginated result set.
1604
+ # @option opts [Integer] :page_size Number of results to return per page.
1605
+ # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
1606
+ def remotes_file_file_list_with_http_info(opts = {})
1607
+ if @api_client.config.debugging
1608
+ @api_client.config.logger.debug "Calling API: PulpApi.remotes_file_file_list ..."
1609
+ end
1610
+ # resource path
1611
+ local_var_path = "/pulp/api/v3/remotes/file/file/"
1612
+
1613
+ # query parameters
1614
+ query_params = {}
1615
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
1616
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
1617
+ query_params[:'_last_updated__lt'] = opts[:'_last_updated__lt'] if !opts[:'_last_updated__lt'].nil?
1618
+ query_params[:'_last_updated__lte'] = opts[:'_last_updated__lte'] if !opts[:'_last_updated__lte'].nil?
1619
+ query_params[:'_last_updated__gt'] = opts[:'_last_updated__gt'] if !opts[:'_last_updated__gt'].nil?
1620
+ query_params[:'_last_updated__gte'] = opts[:'_last_updated__gte'] if !opts[:'_last_updated__gte'].nil?
1621
+ query_params[:'_last_updated__range'] = opts[:'_last_updated__range'] if !opts[:'_last_updated__range'].nil?
1622
+ query_params[:'_last_updated'] = opts[:'_last_updated'] if !opts[:'_last_updated'].nil?
1623
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1624
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1625
+
1626
+ # header parameters
1627
+ header_params = {}
1628
+ # HTTP header 'Accept' (if needed)
1629
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1630
+ # HTTP header 'Content-Type'
1631
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1632
+
1633
+ # form parameters
1634
+ form_params = {}
1635
+
1636
+ # http body (model)
1637
+ post_body = nil
1638
+ auth_names = ['Basic']
1639
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1640
+ :header_params => header_params,
1641
+ :query_params => query_params,
1642
+ :form_params => form_params,
1643
+ :body => post_body,
1644
+ :auth_names => auth_names,
1645
+ :return_type => 'InlineResponse2005')
1646
+ if @api_client.config.debugging
1647
+ @api_client.config.logger.debug "API called: PulpApi#remotes_file_file_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1648
+ end
1649
+ return data, status_code, headers
1650
+ end
1651
+
1652
+ #
1653
+ # Trigger an asynchronous partial update task
1654
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1655
+ # @param data
1656
+ # @param [Hash] opts the optional parameters
1657
+ # @return [AsyncOperationResponse]
1658
+ def remotes_file_file_partial_update(file_remote_href, data, opts = {})
1659
+ data, _status_code, _headers = remotes_file_file_partial_update_with_http_info(file_remote_href, data, opts)
1660
+ return data
1661
+ end
1662
+
1663
+ #
1664
+ # Trigger an asynchronous partial update task
1665
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1666
+ # @param data
1667
+ # @param [Hash] opts the optional parameters
1668
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1669
+ def remotes_file_file_partial_update_with_http_info(file_remote_href, data, opts = {})
1670
+ if @api_client.config.debugging
1671
+ @api_client.config.logger.debug "Calling API: PulpApi.remotes_file_file_partial_update ..."
1672
+ end
1673
+ # verify the required parameter 'file_remote_href' is set
1674
+ if @api_client.config.client_side_validation && file_remote_href.nil?
1675
+ fail ArgumentError, "Missing the required parameter 'file_remote_href' when calling PulpApi.remotes_file_file_partial_update"
1676
+ end
1677
+ # verify the required parameter 'data' is set
1678
+ if @api_client.config.client_side_validation && data.nil?
1679
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.remotes_file_file_partial_update"
1680
+ end
1681
+ # resource path
1682
+ local_var_path = "{file_remote_href}".sub('{' + 'file_remote_href' + '}', file_remote_href.to_s)
1683
+
1684
+ # query parameters
1685
+ query_params = {}
1686
+
1687
+ # header parameters
1688
+ header_params = {}
1689
+ # HTTP header 'Accept' (if needed)
1690
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1691
+ # HTTP header 'Content-Type'
1692
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1693
+
1694
+ # form parameters
1695
+ form_params = {}
1696
+
1697
+ # http body (model)
1698
+ post_body = @api_client.object_to_http_body(data)
1699
+ auth_names = ['Basic']
1700
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1701
+ :header_params => header_params,
1702
+ :query_params => query_params,
1703
+ :form_params => form_params,
1704
+ :body => post_body,
1705
+ :auth_names => auth_names,
1706
+ :return_type => 'AsyncOperationResponse')
1707
+ if @api_client.config.debugging
1708
+ @api_client.config.logger.debug "API called: PulpApi#remotes_file_file_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1709
+ end
1710
+ return data, status_code, headers
1711
+ end
1712
+
1713
+ #
1714
+ # ViewSet for File Remotes.
1715
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1716
+ # @param [Hash] opts the optional parameters
1717
+ # @return [FileRemote]
1718
+ def remotes_file_file_read(file_remote_href, opts = {})
1719
+ data, _status_code, _headers = remotes_file_file_read_with_http_info(file_remote_href, opts)
1720
+ return data
1721
+ end
1722
+
1723
+ #
1724
+ # ViewSet for File Remotes.
1725
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1726
+ # @param [Hash] opts the optional parameters
1727
+ # @return [Array<(FileRemote, Fixnum, Hash)>] FileRemote data, response status code and response headers
1728
+ def remotes_file_file_read_with_http_info(file_remote_href, opts = {})
1729
+ if @api_client.config.debugging
1730
+ @api_client.config.logger.debug "Calling API: PulpApi.remotes_file_file_read ..."
1731
+ end
1732
+ # verify the required parameter 'file_remote_href' is set
1733
+ if @api_client.config.client_side_validation && file_remote_href.nil?
1734
+ fail ArgumentError, "Missing the required parameter 'file_remote_href' when calling PulpApi.remotes_file_file_read"
1735
+ end
1736
+ # resource path
1737
+ local_var_path = "{file_remote_href}".sub('{' + 'file_remote_href' + '}', file_remote_href.to_s)
1738
+
1739
+ # query parameters
1740
+ query_params = {}
1741
+
1742
+ # header parameters
1743
+ header_params = {}
1744
+ # HTTP header 'Accept' (if needed)
1745
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1746
+ # HTTP header 'Content-Type'
1747
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1748
+
1749
+ # form parameters
1750
+ form_params = {}
1751
+
1752
+ # http body (model)
1753
+ post_body = nil
1754
+ auth_names = ['Basic']
1755
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1756
+ :header_params => header_params,
1757
+ :query_params => query_params,
1758
+ :form_params => form_params,
1759
+ :body => post_body,
1760
+ :auth_names => auth_names,
1761
+ :return_type => 'FileRemote')
1762
+ if @api_client.config.debugging
1763
+ @api_client.config.logger.debug "API called: PulpApi#remotes_file_file_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1764
+ end
1765
+ return data, status_code, headers
1766
+ end
1767
+
1768
+ #
1769
+ # Trigger an asynchronous task to sync file content.
1770
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1771
+ # @param data
1772
+ # @param [Hash] opts the optional parameters
1773
+ # @return [AsyncOperationResponse]
1774
+ def remotes_file_file_sync(file_remote_href, data, opts = {})
1775
+ data, _status_code, _headers = remotes_file_file_sync_with_http_info(file_remote_href, data, opts)
1776
+ return data
1777
+ end
1778
+
1779
+ #
1780
+ # Trigger an asynchronous task to sync file content.
1781
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1782
+ # @param data
1783
+ # @param [Hash] opts the optional parameters
1784
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1785
+ def remotes_file_file_sync_with_http_info(file_remote_href, data, opts = {})
1786
+ if @api_client.config.debugging
1787
+ @api_client.config.logger.debug "Calling API: PulpApi.remotes_file_file_sync ..."
1788
+ end
1789
+ # verify the required parameter 'file_remote_href' is set
1790
+ if @api_client.config.client_side_validation && file_remote_href.nil?
1791
+ fail ArgumentError, "Missing the required parameter 'file_remote_href' when calling PulpApi.remotes_file_file_sync"
1792
+ end
1793
+ # verify the required parameter 'data' is set
1794
+ if @api_client.config.client_side_validation && data.nil?
1795
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.remotes_file_file_sync"
1796
+ end
1797
+ # resource path
1798
+ local_var_path = "{file_remote_href}sync/".sub('{' + 'file_remote_href' + '}', file_remote_href.to_s)
1799
+
1800
+ # query parameters
1801
+ query_params = {}
1802
+
1803
+ # header parameters
1804
+ header_params = {}
1805
+ # HTTP header 'Accept' (if needed)
1806
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1807
+ # HTTP header 'Content-Type'
1808
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1809
+
1810
+ # form parameters
1811
+ form_params = {}
1812
+
1813
+ # http body (model)
1814
+ post_body = @api_client.object_to_http_body(data)
1815
+ auth_names = ['Basic']
1816
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1817
+ :header_params => header_params,
1818
+ :query_params => query_params,
1819
+ :form_params => form_params,
1820
+ :body => post_body,
1821
+ :auth_names => auth_names,
1822
+ :return_type => 'AsyncOperationResponse')
1823
+ if @api_client.config.debugging
1824
+ @api_client.config.logger.debug "API called: PulpApi#remotes_file_file_sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1825
+ end
1826
+ return data, status_code, headers
1827
+ end
1828
+
1829
+ #
1830
+ # Trigger an asynchronous update task
1831
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1832
+ # @param data
1833
+ # @param [Hash] opts the optional parameters
1834
+ # @return [AsyncOperationResponse]
1835
+ def remotes_file_file_update(file_remote_href, data, opts = {})
1836
+ data, _status_code, _headers = remotes_file_file_update_with_http_info(file_remote_href, data, opts)
1837
+ return data
1838
+ end
1839
+
1840
+ #
1841
+ # Trigger an asynchronous update task
1842
+ # @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
1843
+ # @param data
1844
+ # @param [Hash] opts the optional parameters
1845
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1846
+ def remotes_file_file_update_with_http_info(file_remote_href, data, opts = {})
1847
+ if @api_client.config.debugging
1848
+ @api_client.config.logger.debug "Calling API: PulpApi.remotes_file_file_update ..."
1849
+ end
1850
+ # verify the required parameter 'file_remote_href' is set
1851
+ if @api_client.config.client_side_validation && file_remote_href.nil?
1852
+ fail ArgumentError, "Missing the required parameter 'file_remote_href' when calling PulpApi.remotes_file_file_update"
1853
+ end
1854
+ # verify the required parameter 'data' is set
1855
+ if @api_client.config.client_side_validation && data.nil?
1856
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.remotes_file_file_update"
1857
+ end
1858
+ # resource path
1859
+ local_var_path = "{file_remote_href}".sub('{' + 'file_remote_href' + '}', file_remote_href.to_s)
1860
+
1861
+ # query parameters
1862
+ query_params = {}
1863
+
1864
+ # header parameters
1865
+ header_params = {}
1866
+ # HTTP header 'Accept' (if needed)
1867
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1868
+ # HTTP header 'Content-Type'
1869
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1870
+
1871
+ # form parameters
1872
+ form_params = {}
1873
+
1874
+ # http body (model)
1875
+ post_body = @api_client.object_to_http_body(data)
1876
+ auth_names = ['Basic']
1877
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1878
+ :header_params => header_params,
1879
+ :query_params => query_params,
1880
+ :form_params => form_params,
1881
+ :body => post_body,
1882
+ :auth_names => auth_names,
1883
+ :return_type => 'AsyncOperationResponse')
1884
+ if @api_client.config.debugging
1885
+ @api_client.config.logger.debug "API called: PulpApi#remotes_file_file_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1886
+ end
1887
+ return data, status_code, headers
1888
+ end
1889
+
1890
+ #
1891
+ #
1892
+ # @param data
1893
+ # @param [Hash] opts the optional parameters
1894
+ # @return [Repository]
1895
+ def repositories_create(data, opts = {})
1896
+ data, _status_code, _headers = repositories_create_with_http_info(data, opts)
1897
+ return data
1898
+ end
1899
+
1900
+ #
1901
+ #
1902
+ # @param data
1903
+ # @param [Hash] opts the optional parameters
1904
+ # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers
1905
+ def repositories_create_with_http_info(data, opts = {})
1906
+ if @api_client.config.debugging
1907
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_create ..."
1908
+ end
1909
+ # verify the required parameter 'data' is set
1910
+ if @api_client.config.client_side_validation && data.nil?
1911
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.repositories_create"
1912
+ end
1913
+ # resource path
1914
+ local_var_path = "/pulp/api/v3/repositories/"
1915
+
1916
+ # query parameters
1917
+ query_params = {}
1918
+
1919
+ # header parameters
1920
+ header_params = {}
1921
+ # HTTP header 'Accept' (if needed)
1922
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1923
+ # HTTP header 'Content-Type'
1924
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1925
+
1926
+ # form parameters
1927
+ form_params = {}
1928
+
1929
+ # http body (model)
1930
+ post_body = @api_client.object_to_http_body(data)
1931
+ auth_names = ['Basic']
1932
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1933
+ :header_params => header_params,
1934
+ :query_params => query_params,
1935
+ :form_params => form_params,
1936
+ :body => post_body,
1937
+ :auth_names => auth_names,
1938
+ :return_type => 'Repository')
1939
+ if @api_client.config.debugging
1940
+ @api_client.config.logger.debug "API called: PulpApi#repositories_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1941
+ end
1942
+ return data, status_code, headers
1943
+ end
1944
+
1945
+ #
1946
+ # Trigger an asynchronous task to delete a repository.
1947
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
1948
+ # @param [Hash] opts the optional parameters
1949
+ # @return [AsyncOperationResponse]
1950
+ def repositories_delete(repository_href, opts = {})
1951
+ data, _status_code, _headers = repositories_delete_with_http_info(repository_href, opts)
1952
+ return data
1953
+ end
1954
+
1955
+ #
1956
+ # Trigger an asynchronous task to delete a repository.
1957
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
1958
+ # @param [Hash] opts the optional parameters
1959
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
1960
+ def repositories_delete_with_http_info(repository_href, opts = {})
1961
+ if @api_client.config.debugging
1962
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_delete ..."
1963
+ end
1964
+ # verify the required parameter 'repository_href' is set
1965
+ if @api_client.config.client_side_validation && repository_href.nil?
1966
+ fail ArgumentError, "Missing the required parameter 'repository_href' when calling PulpApi.repositories_delete"
1967
+ end
1968
+ # resource path
1969
+ local_var_path = "{repository_href}".sub('{' + 'repository_href' + '}', repository_href.to_s)
1970
+
1971
+ # query parameters
1972
+ query_params = {}
1973
+
1974
+ # header parameters
1975
+ header_params = {}
1976
+ # HTTP header 'Accept' (if needed)
1977
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1978
+ # HTTP header 'Content-Type'
1979
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1980
+
1981
+ # form parameters
1982
+ form_params = {}
1983
+
1984
+ # http body (model)
1985
+ post_body = nil
1986
+ auth_names = ['Basic']
1987
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1988
+ :header_params => header_params,
1989
+ :query_params => query_params,
1990
+ :form_params => form_params,
1991
+ :body => post_body,
1992
+ :auth_names => auth_names,
1993
+ :return_type => 'AsyncOperationResponse')
1994
+ if @api_client.config.debugging
1995
+ @api_client.config.logger.debug "API called: PulpApi#repositories_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1996
+ end
1997
+ return data, status_code, headers
1998
+ end
1999
+
2000
+ #
2001
+ #
2002
+ # @param [Hash] opts the optional parameters
2003
+ # @option opts [String] :name
2004
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
2005
+ # @option opts [Integer] :page A page number within the paginated result set.
2006
+ # @option opts [Integer] :page_size Number of results to return per page.
2007
+ # @return [InlineResponse2006]
2008
+ def repositories_list(opts = {})
2009
+ data, _status_code, _headers = repositories_list_with_http_info(opts)
2010
+ return data
2011
+ end
2012
+
2013
+ #
2014
+ #
2015
+ # @param [Hash] opts the optional parameters
2016
+ # @option opts [String] :name
2017
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
2018
+ # @option opts [Integer] :page A page number within the paginated result set.
2019
+ # @option opts [Integer] :page_size Number of results to return per page.
2020
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
2021
+ def repositories_list_with_http_info(opts = {})
2022
+ if @api_client.config.debugging
2023
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_list ..."
2024
+ end
2025
+ # resource path
2026
+ local_var_path = "/pulp/api/v3/repositories/"
2027
+
2028
+ # query parameters
2029
+ query_params = {}
2030
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2031
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
2032
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2033
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2034
+
2035
+ # header parameters
2036
+ header_params = {}
2037
+ # HTTP header 'Accept' (if needed)
2038
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2039
+ # HTTP header 'Content-Type'
2040
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2041
+
2042
+ # form parameters
2043
+ form_params = {}
2044
+
2045
+ # http body (model)
2046
+ post_body = nil
2047
+ auth_names = ['Basic']
2048
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2049
+ :header_params => header_params,
2050
+ :query_params => query_params,
2051
+ :form_params => form_params,
2052
+ :body => post_body,
2053
+ :auth_names => auth_names,
2054
+ :return_type => 'InlineResponse2006')
2055
+ if @api_client.config.debugging
2056
+ @api_client.config.logger.debug "API called: PulpApi#repositories_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2057
+ end
2058
+ return data, status_code, headers
2059
+ end
2060
+
2061
+ #
2062
+ #
2063
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
2064
+ # @param data
2065
+ # @param [Hash] opts the optional parameters
2066
+ # @return [Repository]
2067
+ def repositories_partial_update(repository_href, data, opts = {})
2068
+ data, _status_code, _headers = repositories_partial_update_with_http_info(repository_href, data, opts)
2069
+ return data
2070
+ end
2071
+
2072
+ #
2073
+ #
2074
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
2075
+ # @param data
2076
+ # @param [Hash] opts the optional parameters
2077
+ # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers
2078
+ def repositories_partial_update_with_http_info(repository_href, data, opts = {})
2079
+ if @api_client.config.debugging
2080
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_partial_update ..."
2081
+ end
2082
+ # verify the required parameter 'repository_href' is set
2083
+ if @api_client.config.client_side_validation && repository_href.nil?
2084
+ fail ArgumentError, "Missing the required parameter 'repository_href' when calling PulpApi.repositories_partial_update"
2085
+ end
2086
+ # verify the required parameter 'data' is set
2087
+ if @api_client.config.client_side_validation && data.nil?
2088
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.repositories_partial_update"
2089
+ end
2090
+ # resource path
2091
+ local_var_path = "{repository_href}".sub('{' + 'repository_href' + '}', repository_href.to_s)
2092
+
2093
+ # query parameters
2094
+ query_params = {}
2095
+
2096
+ # header parameters
2097
+ header_params = {}
2098
+ # HTTP header 'Accept' (if needed)
2099
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2100
+ # HTTP header 'Content-Type'
2101
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2102
+
2103
+ # form parameters
2104
+ form_params = {}
2105
+
2106
+ # http body (model)
2107
+ post_body = @api_client.object_to_http_body(data)
2108
+ auth_names = ['Basic']
2109
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2110
+ :header_params => header_params,
2111
+ :query_params => query_params,
2112
+ :form_params => form_params,
2113
+ :body => post_body,
2114
+ :auth_names => auth_names,
2115
+ :return_type => 'Repository')
2116
+ if @api_client.config.debugging
2117
+ @api_client.config.logger.debug "API called: PulpApi#repositories_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2118
+ end
2119
+ return data, status_code, headers
2120
+ end
2121
+
2122
+ #
2123
+ #
2124
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
2125
+ # @param [Hash] opts the optional parameters
2126
+ # @return [Repository]
2127
+ def repositories_read(repository_href, opts = {})
2128
+ data, _status_code, _headers = repositories_read_with_http_info(repository_href, opts)
2129
+ return data
2130
+ end
2131
+
2132
+ #
2133
+ #
2134
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
2135
+ # @param [Hash] opts the optional parameters
2136
+ # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers
2137
+ def repositories_read_with_http_info(repository_href, opts = {})
2138
+ if @api_client.config.debugging
2139
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_read ..."
2140
+ end
2141
+ # verify the required parameter 'repository_href' is set
2142
+ if @api_client.config.client_side_validation && repository_href.nil?
2143
+ fail ArgumentError, "Missing the required parameter 'repository_href' when calling PulpApi.repositories_read"
2144
+ end
2145
+ # resource path
2146
+ local_var_path = "{repository_href}".sub('{' + 'repository_href' + '}', repository_href.to_s)
2147
+
2148
+ # query parameters
2149
+ query_params = {}
2150
+
2151
+ # header parameters
2152
+ header_params = {}
2153
+ # HTTP header 'Accept' (if needed)
2154
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2155
+ # HTTP header 'Content-Type'
2156
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2157
+
2158
+ # form parameters
2159
+ form_params = {}
2160
+
2161
+ # http body (model)
2162
+ post_body = nil
2163
+ auth_names = ['Basic']
2164
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2165
+ :header_params => header_params,
2166
+ :query_params => query_params,
2167
+ :form_params => form_params,
2168
+ :body => post_body,
2169
+ :auth_names => auth_names,
2170
+ :return_type => 'Repository')
2171
+ if @api_client.config.debugging
2172
+ @api_client.config.logger.debug "API called: PulpApi#repositories_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2173
+ end
2174
+ return data, status_code, headers
2175
+ end
2176
+
2177
+ #
2178
+ # Trigger an asynchronous task to updatea repository.
2179
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
2180
+ # @param data
2181
+ # @param [Hash] opts the optional parameters
2182
+ # @return [AsyncOperationResponse]
2183
+ def repositories_update(repository_href, data, opts = {})
2184
+ data, _status_code, _headers = repositories_update_with_http_info(repository_href, data, opts)
2185
+ return data
2186
+ end
2187
+
2188
+ #
2189
+ # Trigger an asynchronous task to updatea repository.
2190
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
2191
+ # @param data
2192
+ # @param [Hash] opts the optional parameters
2193
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
2194
+ def repositories_update_with_http_info(repository_href, data, opts = {})
2195
+ if @api_client.config.debugging
2196
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_update ..."
2197
+ end
2198
+ # verify the required parameter 'repository_href' is set
2199
+ if @api_client.config.client_side_validation && repository_href.nil?
2200
+ fail ArgumentError, "Missing the required parameter 'repository_href' when calling PulpApi.repositories_update"
2201
+ end
2202
+ # verify the required parameter 'data' is set
2203
+ if @api_client.config.client_side_validation && data.nil?
2204
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.repositories_update"
2205
+ end
2206
+ # resource path
2207
+ local_var_path = "{repository_href}".sub('{' + 'repository_href' + '}', repository_href.to_s)
2208
+
2209
+ # query parameters
2210
+ query_params = {}
2211
+
2212
+ # header parameters
2213
+ header_params = {}
2214
+ # HTTP header 'Accept' (if needed)
2215
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2216
+ # HTTP header 'Content-Type'
2217
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2218
+
2219
+ # form parameters
2220
+ form_params = {}
2221
+
2222
+ # http body (model)
2223
+ post_body = @api_client.object_to_http_body(data)
2224
+ auth_names = ['Basic']
2225
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2226
+ :header_params => header_params,
2227
+ :query_params => query_params,
2228
+ :form_params => form_params,
2229
+ :body => post_body,
2230
+ :auth_names => auth_names,
2231
+ :return_type => 'AsyncOperationResponse')
2232
+ if @api_client.config.debugging
2233
+ @api_client.config.logger.debug "API called: PulpApi#repositories_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2234
+ end
2235
+ return data, status_code, headers
2236
+ end
2237
+
2238
+ #
2239
+ # Trigger an asynchronous task to create a new repository version.
2240
+ # @param repository_pk
2241
+ # @param data
2242
+ # @param [Hash] opts the optional parameters
2243
+ # @return [AsyncOperationResponse]
2244
+ def repositories_versions_create(repository_pk, data, opts = {})
2245
+ data, _status_code, _headers = repositories_versions_create_with_http_info(repository_pk, data, opts)
2246
+ return data
2247
+ end
2248
+
2249
+ #
2250
+ # Trigger an asynchronous task to create a new repository version.
2251
+ # @param repository_pk
2252
+ # @param data
2253
+ # @param [Hash] opts the optional parameters
2254
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
2255
+ def repositories_versions_create_with_http_info(repository_pk, data, opts = {})
2256
+ if @api_client.config.debugging
2257
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_create ..."
2258
+ end
2259
+ # verify the required parameter 'repository_pk' is set
2260
+ if @api_client.config.client_side_validation && repository_pk.nil?
2261
+ fail ArgumentError, "Missing the required parameter 'repository_pk' when calling PulpApi.repositories_versions_create"
2262
+ end
2263
+ # verify the required parameter 'data' is set
2264
+ if @api_client.config.client_side_validation && data.nil?
2265
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.repositories_versions_create"
2266
+ end
2267
+ # resource path
2268
+ local_var_path = "/pulp/api/v3/repositories/{repository_pk}/versions/".sub('{' + 'repository_pk' + '}', repository_pk.to_s)
2269
+
2270
+ # query parameters
2271
+ query_params = {}
2272
+
2273
+ # header parameters
2274
+ header_params = {}
2275
+ # HTTP header 'Accept' (if needed)
2276
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2277
+ # HTTP header 'Content-Type'
2278
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2279
+
2280
+ # form parameters
2281
+ form_params = {}
2282
+
2283
+ # http body (model)
2284
+ post_body = @api_client.object_to_http_body(data)
2285
+ auth_names = ['Basic']
2286
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2287
+ :header_params => header_params,
2288
+ :query_params => query_params,
2289
+ :form_params => form_params,
2290
+ :body => post_body,
2291
+ :auth_names => auth_names,
2292
+ :return_type => 'AsyncOperationResponse')
2293
+ if @api_client.config.debugging
2294
+ @api_client.config.logger.debug "API called: PulpApi#repositories_versions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2295
+ end
2296
+ return data, status_code, headers
2297
+ end
2298
+
2299
+ #
2300
+ # Trigger an asynchronous task to delete a repositroy version.
2301
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2302
+ # @param [Hash] opts the optional parameters
2303
+ # @return [AsyncOperationResponse]
2304
+ def repositories_versions_delete(repository_version_href, opts = {})
2305
+ data, _status_code, _headers = repositories_versions_delete_with_http_info(repository_version_href, opts)
2306
+ return data
2307
+ end
2308
+
2309
+ #
2310
+ # Trigger an asynchronous task to delete a repositroy version.
2311
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2312
+ # @param [Hash] opts the optional parameters
2313
+ # @return [Array<(AsyncOperationResponse, Fixnum, Hash)>] AsyncOperationResponse data, response status code and response headers
2314
+ def repositories_versions_delete_with_http_info(repository_version_href, opts = {})
2315
+ if @api_client.config.debugging
2316
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_delete ..."
2317
+ end
2318
+ # verify the required parameter 'repository_version_href' is set
2319
+ if @api_client.config.client_side_validation && repository_version_href.nil?
2320
+ fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling PulpApi.repositories_versions_delete"
2321
+ end
2322
+ # resource path
2323
+ local_var_path = "{repository_version_href}".sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
2324
+
2325
+ # query parameters
2326
+ query_params = {}
2327
+
2328
+ # header parameters
2329
+ header_params = {}
2330
+ # HTTP header 'Accept' (if needed)
2331
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2332
+ # HTTP header 'Content-Type'
2333
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2334
+
2335
+ # form parameters
2336
+ form_params = {}
2337
+
2338
+ # http body (model)
2339
+ post_body = nil
2340
+ auth_names = ['Basic']
2341
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2342
+ :header_params => header_params,
2343
+ :query_params => query_params,
2344
+ :form_params => form_params,
2345
+ :body => post_body,
2346
+ :auth_names => auth_names,
2347
+ :return_type => 'AsyncOperationResponse')
2348
+ if @api_client.config.debugging
2349
+ @api_client.config.logger.debug "API called: PulpApi#repositories_versions_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2350
+ end
2351
+ return data, status_code, headers
2352
+ end
2353
+
2354
+ #
2355
+ #
2356
+ # @param repository_pk
2357
+ # @param [Hash] opts the optional parameters
2358
+ # @option opts [String] :ordering Which field to use when ordering the results.
2359
+ # @option opts [Float] :number
2360
+ # @option opts [Float] :number__lt Filter results where number is less than value
2361
+ # @option opts [Float] :number__lte Filter results where number is less than or equal to value
2362
+ # @option opts [Float] :number__gt Filter results where number is greater than value
2363
+ # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
2364
+ # @option opts [Float] :number__range Filter results where number is between two comma separated values
2365
+ # @option opts [String] :_created__lt Filter results where _created is less than value
2366
+ # @option opts [String] :_created__lte Filter results where _created is less than or equal to value
2367
+ # @option opts [String] :_created__gt Filter results where _created is greater than value
2368
+ # @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
2369
+ # @option opts [String] :_created__range Filter results where _created is between two comma separated values
2370
+ # @option opts [String] :content Content Unit referenced by HREF
2371
+ # @option opts [String] :_created ISO 8601 formatted dates are supported
2372
+ # @option opts [Integer] :page A page number within the paginated result set.
2373
+ # @option opts [Integer] :page_size Number of results to return per page.
2374
+ # @return [InlineResponse2007]
2375
+ def repositories_versions_list(repository_pk, opts = {})
2376
+ data, _status_code, _headers = repositories_versions_list_with_http_info(repository_pk, opts)
2377
+ return data
2378
+ end
2379
+
2380
+ #
2381
+ #
2382
+ # @param repository_pk
2383
+ # @param [Hash] opts the optional parameters
2384
+ # @option opts [String] :ordering Which field to use when ordering the results.
2385
+ # @option opts [Float] :number
2386
+ # @option opts [Float] :number__lt Filter results where number is less than value
2387
+ # @option opts [Float] :number__lte Filter results where number is less than or equal to value
2388
+ # @option opts [Float] :number__gt Filter results where number is greater than value
2389
+ # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
2390
+ # @option opts [Float] :number__range Filter results where number is between two comma separated values
2391
+ # @option opts [String] :_created__lt Filter results where _created is less than value
2392
+ # @option opts [String] :_created__lte Filter results where _created is less than or equal to value
2393
+ # @option opts [String] :_created__gt Filter results where _created is greater than value
2394
+ # @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
2395
+ # @option opts [String] :_created__range Filter results where _created is between two comma separated values
2396
+ # @option opts [String] :content Content Unit referenced by HREF
2397
+ # @option opts [String] :_created ISO 8601 formatted dates are supported
2398
+ # @option opts [Integer] :page A page number within the paginated result set.
2399
+ # @option opts [Integer] :page_size Number of results to return per page.
2400
+ # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
2401
+ def repositories_versions_list_with_http_info(repository_pk, opts = {})
2402
+ if @api_client.config.debugging
2403
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_list ..."
2404
+ end
2405
+ # verify the required parameter 'repository_pk' is set
2406
+ if @api_client.config.client_side_validation && repository_pk.nil?
2407
+ fail ArgumentError, "Missing the required parameter 'repository_pk' when calling PulpApi.repositories_versions_list"
2408
+ end
2409
+ # resource path
2410
+ local_var_path = "/pulp/api/v3/repositories/{repository_pk}/versions/".sub('{' + 'repository_pk' + '}', repository_pk.to_s)
2411
+
2412
+ # query parameters
2413
+ query_params = {}
2414
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2415
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
2416
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
2417
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
2418
+ query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
2419
+ query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
2420
+ query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
2421
+ query_params[:'_created__lt'] = opts[:'_created__lt'] if !opts[:'_created__lt'].nil?
2422
+ query_params[:'_created__lte'] = opts[:'_created__lte'] if !opts[:'_created__lte'].nil?
2423
+ query_params[:'_created__gt'] = opts[:'_created__gt'] if !opts[:'_created__gt'].nil?
2424
+ query_params[:'_created__gte'] = opts[:'_created__gte'] if !opts[:'_created__gte'].nil?
2425
+ query_params[:'_created__range'] = opts[:'_created__range'] if !opts[:'_created__range'].nil?
2426
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
2427
+ query_params[:'_created'] = opts[:'_created'] if !opts[:'_created'].nil?
2428
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2429
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2430
+
2431
+ # header parameters
2432
+ header_params = {}
2433
+ # HTTP header 'Accept' (if needed)
2434
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2435
+ # HTTP header 'Content-Type'
2436
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2437
+
2438
+ # form parameters
2439
+ form_params = {}
2440
+
2441
+ # http body (model)
2442
+ post_body = nil
2443
+ auth_names = ['Basic']
2444
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2445
+ :header_params => header_params,
2446
+ :query_params => query_params,
2447
+ :form_params => form_params,
2448
+ :body => post_body,
2449
+ :auth_names => auth_names,
2450
+ :return_type => 'InlineResponse2007')
2451
+ if @api_client.config.debugging
2452
+ @api_client.config.logger.debug "API called: PulpApi#repositories_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2453
+ end
2454
+ return data, status_code, headers
2455
+ end
2456
+
2457
+ #
2458
+ #
2459
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2460
+ # @param data
2461
+ # @param [Hash] opts the optional parameters
2462
+ # @return [RepositoryVersion]
2463
+ def repositories_versions_partial_update(repository_version_href, data, opts = {})
2464
+ data, _status_code, _headers = repositories_versions_partial_update_with_http_info(repository_version_href, data, opts)
2465
+ return data
2466
+ end
2467
+
2468
+ #
2469
+ #
2470
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2471
+ # @param data
2472
+ # @param [Hash] opts the optional parameters
2473
+ # @return [Array<(RepositoryVersion, Fixnum, Hash)>] RepositoryVersion data, response status code and response headers
2474
+ def repositories_versions_partial_update_with_http_info(repository_version_href, data, opts = {})
2475
+ if @api_client.config.debugging
2476
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_partial_update ..."
2477
+ end
2478
+ # verify the required parameter 'repository_version_href' is set
2479
+ if @api_client.config.client_side_validation && repository_version_href.nil?
2480
+ fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling PulpApi.repositories_versions_partial_update"
2481
+ end
2482
+ # verify the required parameter 'data' is set
2483
+ if @api_client.config.client_side_validation && data.nil?
2484
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.repositories_versions_partial_update"
2485
+ end
2486
+ # resource path
2487
+ local_var_path = "{repository_version_href}".sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
2488
+
2489
+ # query parameters
2490
+ query_params = {}
2491
+
2492
+ # header parameters
2493
+ header_params = {}
2494
+ # HTTP header 'Accept' (if needed)
2495
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2496
+ # HTTP header 'Content-Type'
2497
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2498
+
2499
+ # form parameters
2500
+ form_params = {}
2501
+
2502
+ # http body (model)
2503
+ post_body = @api_client.object_to_http_body(data)
2504
+ auth_names = ['Basic']
2505
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2506
+ :header_params => header_params,
2507
+ :query_params => query_params,
2508
+ :form_params => form_params,
2509
+ :body => post_body,
2510
+ :auth_names => auth_names,
2511
+ :return_type => 'RepositoryVersion')
2512
+ if @api_client.config.debugging
2513
+ @api_client.config.logger.debug "API called: PulpApi#repositories_versions_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2514
+ end
2515
+ return data, status_code, headers
2516
+ end
2517
+
2518
+ #
2519
+ #
2520
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2521
+ # @param [Hash] opts the optional parameters
2522
+ # @return [RepositoryVersion]
2523
+ def repositories_versions_read(repository_version_href, opts = {})
2524
+ data, _status_code, _headers = repositories_versions_read_with_http_info(repository_version_href, opts)
2525
+ return data
2526
+ end
2527
+
2528
+ #
2529
+ #
2530
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2531
+ # @param [Hash] opts the optional parameters
2532
+ # @return [Array<(RepositoryVersion, Fixnum, Hash)>] RepositoryVersion data, response status code and response headers
2533
+ def repositories_versions_read_with_http_info(repository_version_href, opts = {})
2534
+ if @api_client.config.debugging
2535
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_read ..."
2536
+ end
2537
+ # verify the required parameter 'repository_version_href' is set
2538
+ if @api_client.config.client_side_validation && repository_version_href.nil?
2539
+ fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling PulpApi.repositories_versions_read"
2540
+ end
2541
+ # resource path
2542
+ local_var_path = "{repository_version_href}".sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
2543
+
2544
+ # query parameters
2545
+ query_params = {}
2546
+
2547
+ # header parameters
2548
+ header_params = {}
2549
+ # HTTP header 'Accept' (if needed)
2550
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2551
+ # HTTP header 'Content-Type'
2552
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2553
+
2554
+ # form parameters
2555
+ form_params = {}
2556
+
2557
+ # http body (model)
2558
+ post_body = nil
2559
+ auth_names = ['Basic']
2560
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2561
+ :header_params => header_params,
2562
+ :query_params => query_params,
2563
+ :form_params => form_params,
2564
+ :body => post_body,
2565
+ :auth_names => auth_names,
2566
+ :return_type => 'RepositoryVersion')
2567
+ if @api_client.config.debugging
2568
+ @api_client.config.logger.debug "API called: PulpApi#repositories_versions_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2569
+ end
2570
+ return data, status_code, headers
2571
+ end
2572
+
2573
+ #
2574
+ #
2575
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2576
+ # @param data
2577
+ # @param [Hash] opts the optional parameters
2578
+ # @return [RepositoryVersion]
2579
+ def repositories_versions_update(repository_version_href, data, opts = {})
2580
+ data, _status_code, _headers = repositories_versions_update_with_http_info(repository_version_href, data, opts)
2581
+ return data
2582
+ end
2583
+
2584
+ #
2585
+ #
2586
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
2587
+ # @param data
2588
+ # @param [Hash] opts the optional parameters
2589
+ # @return [Array<(RepositoryVersion, Fixnum, Hash)>] RepositoryVersion data, response status code and response headers
2590
+ def repositories_versions_update_with_http_info(repository_version_href, data, opts = {})
2591
+ if @api_client.config.debugging
2592
+ @api_client.config.logger.debug "Calling API: PulpApi.repositories_versions_update ..."
2593
+ end
2594
+ # verify the required parameter 'repository_version_href' is set
2595
+ if @api_client.config.client_side_validation && repository_version_href.nil?
2596
+ fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling PulpApi.repositories_versions_update"
2597
+ end
2598
+ # verify the required parameter 'data' is set
2599
+ if @api_client.config.client_side_validation && data.nil?
2600
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.repositories_versions_update"
2601
+ end
2602
+ # resource path
2603
+ local_var_path = "{repository_version_href}".sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
2604
+
2605
+ # query parameters
2606
+ query_params = {}
2607
+
2608
+ # header parameters
2609
+ header_params = {}
2610
+ # HTTP header 'Accept' (if needed)
2611
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2612
+ # HTTP header 'Content-Type'
2613
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2614
+
2615
+ # form parameters
2616
+ form_params = {}
2617
+
2618
+ # http body (model)
2619
+ post_body = @api_client.object_to_http_body(data)
2620
+ auth_names = ['Basic']
2621
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2622
+ :header_params => header_params,
2623
+ :query_params => query_params,
2624
+ :form_params => form_params,
2625
+ :body => post_body,
2626
+ :auth_names => auth_names,
2627
+ :return_type => 'RepositoryVersion')
2628
+ if @api_client.config.debugging
2629
+ @api_client.config.logger.debug "API called: PulpApi#repositories_versions_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2630
+ end
2631
+ return data, status_code, headers
2632
+ end
2633
+
2634
+ #
2635
+ # Returns app information including the version of pulpcore and loaded pulp plugins, known workers, database connection status, and messaging connection status
2636
+ # @param [Hash] opts the optional parameters
2637
+ # @return [nil]
2638
+ def status_list(opts = {})
2639
+ status_list_with_http_info(opts)
2640
+ return nil
2641
+ end
2642
+
2643
+ #
2644
+ # Returns app information including the version of pulpcore and loaded pulp plugins, known workers, database connection status, and messaging connection status
2645
+ # @param [Hash] opts the optional parameters
2646
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2647
+ def status_list_with_http_info(opts = {})
2648
+ if @api_client.config.debugging
2649
+ @api_client.config.logger.debug "Calling API: PulpApi.status_list ..."
2650
+ end
2651
+ # resource path
2652
+ local_var_path = "/pulp/api/v3/status/"
2653
+
2654
+ # query parameters
2655
+ query_params = {}
2656
+
2657
+ # header parameters
2658
+ header_params = {}
2659
+ # HTTP header 'Accept' (if needed)
2660
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2661
+ # HTTP header 'Content-Type'
2662
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2663
+
2664
+ # form parameters
2665
+ form_params = {}
2666
+
2667
+ # http body (model)
2668
+ post_body = nil
2669
+ auth_names = ['Basic']
2670
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2671
+ :header_params => header_params,
2672
+ :query_params => query_params,
2673
+ :form_params => form_params,
2674
+ :body => post_body,
2675
+ :auth_names => auth_names)
2676
+ if @api_client.config.debugging
2677
+ @api_client.config.logger.debug "API called: PulpApi#status_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2678
+ end
2679
+ return data, status_code, headers
2680
+ end
2681
+
2682
+ #
2683
+ #
2684
+ # @param task_href URI of Task. e.g.: /pulp/api/v3/tasks/1/
2685
+ # @param data
2686
+ # @param [Hash] opts the optional parameters
2687
+ # @return [Task]
2688
+ def tasks_cancel(task_href, data, opts = {})
2689
+ data, _status_code, _headers = tasks_cancel_with_http_info(task_href, data, opts)
2690
+ return data
2691
+ end
2692
+
2693
+ #
2694
+ #
2695
+ # @param task_href URI of Task. e.g.: /pulp/api/v3/tasks/1/
2696
+ # @param data
2697
+ # @param [Hash] opts the optional parameters
2698
+ # @return [Array<(Task, Fixnum, Hash)>] Task data, response status code and response headers
2699
+ def tasks_cancel_with_http_info(task_href, data, opts = {})
2700
+ if @api_client.config.debugging
2701
+ @api_client.config.logger.debug "Calling API: PulpApi.tasks_cancel ..."
2702
+ end
2703
+ # verify the required parameter 'task_href' is set
2704
+ if @api_client.config.client_side_validation && task_href.nil?
2705
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling PulpApi.tasks_cancel"
2706
+ end
2707
+ # verify the required parameter 'data' is set
2708
+ if @api_client.config.client_side_validation && data.nil?
2709
+ fail ArgumentError, "Missing the required parameter 'data' when calling PulpApi.tasks_cancel"
2710
+ end
2711
+ # resource path
2712
+ local_var_path = "{task_href}cancel/".sub('{' + 'task_href' + '}', task_href.to_s)
2713
+
2714
+ # query parameters
2715
+ query_params = {}
2716
+
2717
+ # header parameters
2718
+ header_params = {}
2719
+ # HTTP header 'Accept' (if needed)
2720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2721
+ # HTTP header 'Content-Type'
2722
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2723
+
2724
+ # form parameters
2725
+ form_params = {}
2726
+
2727
+ # http body (model)
2728
+ post_body = @api_client.object_to_http_body(data)
2729
+ auth_names = ['Basic']
2730
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2731
+ :header_params => header_params,
2732
+ :query_params => query_params,
2733
+ :form_params => form_params,
2734
+ :body => post_body,
2735
+ :auth_names => auth_names,
2736
+ :return_type => 'Task')
2737
+ if @api_client.config.debugging
2738
+ @api_client.config.logger.debug "API called: PulpApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2739
+ end
2740
+ return data, status_code, headers
2741
+ end
2742
+
2743
+ #
2744
+ #
2745
+ # @param task_href URI of Task. e.g.: /pulp/api/v3/tasks/1/
2746
+ # @param [Hash] opts the optional parameters
2747
+ # @return [nil]
2748
+ def tasks_delete(task_href, opts = {})
2749
+ tasks_delete_with_http_info(task_href, opts)
2750
+ return nil
2751
+ end
2752
+
2753
+ #
2754
+ #
2755
+ # @param task_href URI of Task. e.g.: /pulp/api/v3/tasks/1/
2756
+ # @param [Hash] opts the optional parameters
2757
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2758
+ def tasks_delete_with_http_info(task_href, opts = {})
2759
+ if @api_client.config.debugging
2760
+ @api_client.config.logger.debug "Calling API: PulpApi.tasks_delete ..."
2761
+ end
2762
+ # verify the required parameter 'task_href' is set
2763
+ if @api_client.config.client_side_validation && task_href.nil?
2764
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling PulpApi.tasks_delete"
2765
+ end
2766
+ # resource path
2767
+ local_var_path = "{task_href}".sub('{' + 'task_href' + '}', task_href.to_s)
2768
+
2769
+ # query parameters
2770
+ query_params = {}
2771
+
2772
+ # header parameters
2773
+ header_params = {}
2774
+ # HTTP header 'Accept' (if needed)
2775
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2776
+ # HTTP header 'Content-Type'
2777
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2778
+
2779
+ # form parameters
2780
+ form_params = {}
2781
+
2782
+ # http body (model)
2783
+ post_body = nil
2784
+ auth_names = ['Basic']
2785
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2786
+ :header_params => header_params,
2787
+ :query_params => query_params,
2788
+ :form_params => form_params,
2789
+ :body => post_body,
2790
+ :auth_names => auth_names)
2791
+ if @api_client.config.debugging
2792
+ @api_client.config.logger.debug "API called: PulpApi#tasks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2793
+ end
2794
+ return data, status_code, headers
2795
+ end
2796
+
2797
+ #
2798
+ #
2799
+ # @param [Hash] opts the optional parameters
2800
+ # @option opts [String] :ordering Which field to use when ordering the results.
2801
+ # @option opts [String] :state
2802
+ # @option opts [String] :state__in Filter results where state is in a comma-separated list of values
2803
+ # @option opts [String] :worker Foreign Key referenced by HREF
2804
+ # @option opts [String] :worker__in Filter results where worker is in a comma-separated list of values
2805
+ # @option opts [String] :name__contains Filter results where name contains value
2806
+ # @option opts [String] :started_at__lt Filter results where started_at is less than value
2807
+ # @option opts [String] :started_at__lte Filter results where started_at is less than or equal to value
2808
+ # @option opts [String] :started_at__gt Filter results where started_at is greater than value
2809
+ # @option opts [String] :started_at__gte Filter results where started_at is greater than or equal to value
2810
+ # @option opts [String] :started_at__range Filter results where started_at is between two comma separated values
2811
+ # @option opts [String] :finished_at__lt Filter results where finished_at is less than value
2812
+ # @option opts [String] :finished_at__lte Filter results where finished_at is less than or equal to value
2813
+ # @option opts [String] :finished_at__gt Filter results where finished_at is greater than value
2814
+ # @option opts [String] :finished_at__gte Filter results where finished_at is greater than or equal to value
2815
+ # @option opts [String] :finished_at__range Filter results where finished_at is between two comma separated values
2816
+ # @option opts [String] :parent Foreign Key referenced by HREF
2817
+ # @option opts [String] :name
2818
+ # @option opts [String] :started_at ISO 8601 formatted dates are supported
2819
+ # @option opts [String] :finished_at ISO 8601 formatted dates are supported
2820
+ # @option opts [Integer] :page A page number within the paginated result set.
2821
+ # @option opts [Integer] :page_size Number of results to return per page.
2822
+ # @return [InlineResponse2008]
2823
+ def tasks_list(opts = {})
2824
+ data, _status_code, _headers = tasks_list_with_http_info(opts)
2825
+ return data
2826
+ end
2827
+
2828
+ #
2829
+ #
2830
+ # @param [Hash] opts the optional parameters
2831
+ # @option opts [String] :ordering Which field to use when ordering the results.
2832
+ # @option opts [String] :state
2833
+ # @option opts [String] :state__in Filter results where state is in a comma-separated list of values
2834
+ # @option opts [String] :worker Foreign Key referenced by HREF
2835
+ # @option opts [String] :worker__in Filter results where worker is in a comma-separated list of values
2836
+ # @option opts [String] :name__contains Filter results where name contains value
2837
+ # @option opts [String] :started_at__lt Filter results where started_at is less than value
2838
+ # @option opts [String] :started_at__lte Filter results where started_at is less than or equal to value
2839
+ # @option opts [String] :started_at__gt Filter results where started_at is greater than value
2840
+ # @option opts [String] :started_at__gte Filter results where started_at is greater than or equal to value
2841
+ # @option opts [String] :started_at__range Filter results where started_at is between two comma separated values
2842
+ # @option opts [String] :finished_at__lt Filter results where finished_at is less than value
2843
+ # @option opts [String] :finished_at__lte Filter results where finished_at is less than or equal to value
2844
+ # @option opts [String] :finished_at__gt Filter results where finished_at is greater than value
2845
+ # @option opts [String] :finished_at__gte Filter results where finished_at is greater than or equal to value
2846
+ # @option opts [String] :finished_at__range Filter results where finished_at is between two comma separated values
2847
+ # @option opts [String] :parent Foreign Key referenced by HREF
2848
+ # @option opts [String] :name
2849
+ # @option opts [String] :started_at ISO 8601 formatted dates are supported
2850
+ # @option opts [String] :finished_at ISO 8601 formatted dates are supported
2851
+ # @option opts [Integer] :page A page number within the paginated result set.
2852
+ # @option opts [Integer] :page_size Number of results to return per page.
2853
+ # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
2854
+ def tasks_list_with_http_info(opts = {})
2855
+ if @api_client.config.debugging
2856
+ @api_client.config.logger.debug "Calling API: PulpApi.tasks_list ..."
2857
+ end
2858
+ # resource path
2859
+ local_var_path = "/pulp/api/v3/tasks/"
2860
+
2861
+ # query parameters
2862
+ query_params = {}
2863
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2864
+ query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
2865
+ query_params[:'state__in'] = opts[:'state__in'] if !opts[:'state__in'].nil?
2866
+ query_params[:'worker'] = opts[:'worker'] if !opts[:'worker'].nil?
2867
+ query_params[:'worker__in'] = opts[:'worker__in'] if !opts[:'worker__in'].nil?
2868
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
2869
+ query_params[:'started_at__lt'] = opts[:'started_at__lt'] if !opts[:'started_at__lt'].nil?
2870
+ query_params[:'started_at__lte'] = opts[:'started_at__lte'] if !opts[:'started_at__lte'].nil?
2871
+ query_params[:'started_at__gt'] = opts[:'started_at__gt'] if !opts[:'started_at__gt'].nil?
2872
+ query_params[:'started_at__gte'] = opts[:'started_at__gte'] if !opts[:'started_at__gte'].nil?
2873
+ query_params[:'started_at__range'] = opts[:'started_at__range'] if !opts[:'started_at__range'].nil?
2874
+ query_params[:'finished_at__lt'] = opts[:'finished_at__lt'] if !opts[:'finished_at__lt'].nil?
2875
+ query_params[:'finished_at__lte'] = opts[:'finished_at__lte'] if !opts[:'finished_at__lte'].nil?
2876
+ query_params[:'finished_at__gt'] = opts[:'finished_at__gt'] if !opts[:'finished_at__gt'].nil?
2877
+ query_params[:'finished_at__gte'] = opts[:'finished_at__gte'] if !opts[:'finished_at__gte'].nil?
2878
+ query_params[:'finished_at__range'] = opts[:'finished_at__range'] if !opts[:'finished_at__range'].nil?
2879
+ query_params[:'parent'] = opts[:'parent'] if !opts[:'parent'].nil?
2880
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2881
+ query_params[:'started_at'] = opts[:'started_at'] if !opts[:'started_at'].nil?
2882
+ query_params[:'finished_at'] = opts[:'finished_at'] if !opts[:'finished_at'].nil?
2883
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2884
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2885
+
2886
+ # header parameters
2887
+ header_params = {}
2888
+ # HTTP header 'Accept' (if needed)
2889
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2890
+ # HTTP header 'Content-Type'
2891
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2892
+
2893
+ # form parameters
2894
+ form_params = {}
2895
+
2896
+ # http body (model)
2897
+ post_body = nil
2898
+ auth_names = ['Basic']
2899
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2900
+ :header_params => header_params,
2901
+ :query_params => query_params,
2902
+ :form_params => form_params,
2903
+ :body => post_body,
2904
+ :auth_names => auth_names,
2905
+ :return_type => 'InlineResponse2008')
2906
+ if @api_client.config.debugging
2907
+ @api_client.config.logger.debug "API called: PulpApi#tasks_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2908
+ end
2909
+ return data, status_code, headers
2910
+ end
2911
+
2912
+ #
2913
+ #
2914
+ # @param task_href URI of Task. e.g.: /pulp/api/v3/tasks/1/
2915
+ # @param [Hash] opts the optional parameters
2916
+ # @return [Task]
2917
+ def tasks_read(task_href, opts = {})
2918
+ data, _status_code, _headers = tasks_read_with_http_info(task_href, opts)
2919
+ return data
2920
+ end
2921
+
2922
+ #
2923
+ #
2924
+ # @param task_href URI of Task. e.g.: /pulp/api/v3/tasks/1/
2925
+ # @param [Hash] opts the optional parameters
2926
+ # @return [Array<(Task, Fixnum, Hash)>] Task data, response status code and response headers
2927
+ def tasks_read_with_http_info(task_href, opts = {})
2928
+ if @api_client.config.debugging
2929
+ @api_client.config.logger.debug "Calling API: PulpApi.tasks_read ..."
2930
+ end
2931
+ # verify the required parameter 'task_href' is set
2932
+ if @api_client.config.client_side_validation && task_href.nil?
2933
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling PulpApi.tasks_read"
2934
+ end
2935
+ # resource path
2936
+ local_var_path = "{task_href}".sub('{' + 'task_href' + '}', task_href.to_s)
2937
+
2938
+ # query parameters
2939
+ query_params = {}
2940
+
2941
+ # header parameters
2942
+ header_params = {}
2943
+ # HTTP header 'Accept' (if needed)
2944
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2945
+ # HTTP header 'Content-Type'
2946
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2947
+
2948
+ # form parameters
2949
+ form_params = {}
2950
+
2951
+ # http body (model)
2952
+ post_body = nil
2953
+ auth_names = ['Basic']
2954
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2955
+ :header_params => header_params,
2956
+ :query_params => query_params,
2957
+ :form_params => form_params,
2958
+ :body => post_body,
2959
+ :auth_names => auth_names,
2960
+ :return_type => 'Task')
2961
+ if @api_client.config.debugging
2962
+ @api_client.config.logger.debug "API called: PulpApi#tasks_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2963
+ end
2964
+ return data, status_code, headers
2965
+ end
2966
+
2967
+ #
2968
+ #
2969
+ # @param user_href URI of User. e.g.: /pulp/api/v3/users/1/
2970
+ # @param [Hash] opts the optional parameters
2971
+ # @return [nil]
2972
+ def users_delete(user_href, opts = {})
2973
+ users_delete_with_http_info(user_href, opts)
2974
+ return nil
2975
+ end
2976
+
2977
+ #
2978
+ #
2979
+ # @param user_href URI of User. e.g.: /pulp/api/v3/users/1/
2980
+ # @param [Hash] opts the optional parameters
2981
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2982
+ def users_delete_with_http_info(user_href, opts = {})
2983
+ if @api_client.config.debugging
2984
+ @api_client.config.logger.debug "Calling API: PulpApi.users_delete ..."
2985
+ end
2986
+ # verify the required parameter 'user_href' is set
2987
+ if @api_client.config.client_side_validation && user_href.nil?
2988
+ fail ArgumentError, "Missing the required parameter 'user_href' when calling PulpApi.users_delete"
2989
+ end
2990
+ # resource path
2991
+ local_var_path = "{user_href}".sub('{' + 'user_href' + '}', user_href.to_s)
2992
+
2993
+ # query parameters
2994
+ query_params = {}
2995
+
2996
+ # header parameters
2997
+ header_params = {}
2998
+ # HTTP header 'Accept' (if needed)
2999
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3000
+ # HTTP header 'Content-Type'
3001
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3002
+
3003
+ # form parameters
3004
+ form_params = {}
3005
+
3006
+ # http body (model)
3007
+ post_body = nil
3008
+ auth_names = ['Basic']
3009
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
3010
+ :header_params => header_params,
3011
+ :query_params => query_params,
3012
+ :form_params => form_params,
3013
+ :body => post_body,
3014
+ :auth_names => auth_names)
3015
+ if @api_client.config.debugging
3016
+ @api_client.config.logger.debug "API called: PulpApi#users_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3017
+ end
3018
+ return data, status_code, headers
3019
+ end
3020
+
3021
+ #
3022
+ #
3023
+ # @param [Hash] opts the optional parameters
3024
+ # @option opts [String] :username
3025
+ # @option opts [String] :username__in Filter results where username is in a comma-separated list of values
3026
+ # @option opts [Integer] :page A page number within the paginated result set.
3027
+ # @option opts [Integer] :page_size Number of results to return per page.
3028
+ # @return [InlineResponse2009]
3029
+ def users_list(opts = {})
3030
+ data, _status_code, _headers = users_list_with_http_info(opts)
3031
+ return data
3032
+ end
3033
+
3034
+ #
3035
+ #
3036
+ # @param [Hash] opts the optional parameters
3037
+ # @option opts [String] :username
3038
+ # @option opts [String] :username__in Filter results where username is in a comma-separated list of values
3039
+ # @option opts [Integer] :page A page number within the paginated result set.
3040
+ # @option opts [Integer] :page_size Number of results to return per page.
3041
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
3042
+ def users_list_with_http_info(opts = {})
3043
+ if @api_client.config.debugging
3044
+ @api_client.config.logger.debug "Calling API: PulpApi.users_list ..."
3045
+ end
3046
+ # resource path
3047
+ local_var_path = "/pulp/api/v3/users/"
3048
+
3049
+ # query parameters
3050
+ query_params = {}
3051
+ query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
3052
+ query_params[:'username__in'] = opts[:'username__in'] if !opts[:'username__in'].nil?
3053
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3054
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3055
+
3056
+ # header parameters
3057
+ header_params = {}
3058
+ # HTTP header 'Accept' (if needed)
3059
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3060
+ # HTTP header 'Content-Type'
3061
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3062
+
3063
+ # form parameters
3064
+ form_params = {}
3065
+
3066
+ # http body (model)
3067
+ post_body = nil
3068
+ auth_names = ['Basic']
3069
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3070
+ :header_params => header_params,
3071
+ :query_params => query_params,
3072
+ :form_params => form_params,
3073
+ :body => post_body,
3074
+ :auth_names => auth_names,
3075
+ :return_type => 'InlineResponse2009')
3076
+ if @api_client.config.debugging
3077
+ @api_client.config.logger.debug "API called: PulpApi#users_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3078
+ end
3079
+ return data, status_code, headers
3080
+ end
3081
+
3082
+ #
3083
+ #
3084
+ # @param user_href URI of User. e.g.: /pulp/api/v3/users/1/
3085
+ # @param [Hash] opts the optional parameters
3086
+ # @return [User]
3087
+ def users_read(user_href, opts = {})
3088
+ data, _status_code, _headers = users_read_with_http_info(user_href, opts)
3089
+ return data
3090
+ end
3091
+
3092
+ #
3093
+ #
3094
+ # @param user_href URI of User. e.g.: /pulp/api/v3/users/1/
3095
+ # @param [Hash] opts the optional parameters
3096
+ # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
3097
+ def users_read_with_http_info(user_href, opts = {})
3098
+ if @api_client.config.debugging
3099
+ @api_client.config.logger.debug "Calling API: PulpApi.users_read ..."
3100
+ end
3101
+ # verify the required parameter 'user_href' is set
3102
+ if @api_client.config.client_side_validation && user_href.nil?
3103
+ fail ArgumentError, "Missing the required parameter 'user_href' when calling PulpApi.users_read"
3104
+ end
3105
+ # resource path
3106
+ local_var_path = "{user_href}".sub('{' + 'user_href' + '}', user_href.to_s)
3107
+
3108
+ # query parameters
3109
+ query_params = {}
3110
+
3111
+ # header parameters
3112
+ header_params = {}
3113
+ # HTTP header 'Accept' (if needed)
3114
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3115
+ # HTTP header 'Content-Type'
3116
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3117
+
3118
+ # form parameters
3119
+ form_params = {}
3120
+
3121
+ # http body (model)
3122
+ post_body = nil
3123
+ auth_names = ['Basic']
3124
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3125
+ :header_params => header_params,
3126
+ :query_params => query_params,
3127
+ :form_params => form_params,
3128
+ :body => post_body,
3129
+ :auth_names => auth_names,
3130
+ :return_type => 'User')
3131
+ if @api_client.config.debugging
3132
+ @api_client.config.logger.debug "API called: PulpApi#users_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3133
+ end
3134
+ return data, status_code, headers
3135
+ end
3136
+
3137
+ #
3138
+ #
3139
+ # @param [Hash] opts the optional parameters
3140
+ # @option opts [String] :name
3141
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
3142
+ # @option opts [String] :last_heartbeat__lt Filter results where last_heartbeat is less than value
3143
+ # @option opts [String] :last_heartbeat__lte Filter results where last_heartbeat is less than or equal to value
3144
+ # @option opts [String] :last_heartbeat__gt Filter results where last_heartbeat is greater than value
3145
+ # @option opts [String] :last_heartbeat__gte Filter results where last_heartbeat is greater than or equal to value
3146
+ # @option opts [String] :last_heartbeat__range Filter results where last_heartbeat is between two comma separated values
3147
+ # @option opts [String] :online
3148
+ # @option opts [String] :missing
3149
+ # @option opts [String] :last_heartbeat ISO 8601 formatted dates are supported
3150
+ # @option opts [Integer] :page A page number within the paginated result set.
3151
+ # @option opts [Integer] :page_size Number of results to return per page.
3152
+ # @return [InlineResponse20010]
3153
+ def workers_list(opts = {})
3154
+ data, _status_code, _headers = workers_list_with_http_info(opts)
3155
+ return data
3156
+ end
3157
+
3158
+ #
3159
+ #
3160
+ # @param [Hash] opts the optional parameters
3161
+ # @option opts [String] :name
3162
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
3163
+ # @option opts [String] :last_heartbeat__lt Filter results where last_heartbeat is less than value
3164
+ # @option opts [String] :last_heartbeat__lte Filter results where last_heartbeat is less than or equal to value
3165
+ # @option opts [String] :last_heartbeat__gt Filter results where last_heartbeat is greater than value
3166
+ # @option opts [String] :last_heartbeat__gte Filter results where last_heartbeat is greater than or equal to value
3167
+ # @option opts [String] :last_heartbeat__range Filter results where last_heartbeat is between two comma separated values
3168
+ # @option opts [String] :online
3169
+ # @option opts [String] :missing
3170
+ # @option opts [String] :last_heartbeat ISO 8601 formatted dates are supported
3171
+ # @option opts [Integer] :page A page number within the paginated result set.
3172
+ # @option opts [Integer] :page_size Number of results to return per page.
3173
+ # @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
3174
+ def workers_list_with_http_info(opts = {})
3175
+ if @api_client.config.debugging
3176
+ @api_client.config.logger.debug "Calling API: PulpApi.workers_list ..."
3177
+ end
3178
+ # resource path
3179
+ local_var_path = "/pulp/api/v3/workers/"
3180
+
3181
+ # query parameters
3182
+ query_params = {}
3183
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
3184
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
3185
+ query_params[:'last_heartbeat__lt'] = opts[:'last_heartbeat__lt'] if !opts[:'last_heartbeat__lt'].nil?
3186
+ query_params[:'last_heartbeat__lte'] = opts[:'last_heartbeat__lte'] if !opts[:'last_heartbeat__lte'].nil?
3187
+ query_params[:'last_heartbeat__gt'] = opts[:'last_heartbeat__gt'] if !opts[:'last_heartbeat__gt'].nil?
3188
+ query_params[:'last_heartbeat__gte'] = opts[:'last_heartbeat__gte'] if !opts[:'last_heartbeat__gte'].nil?
3189
+ query_params[:'last_heartbeat__range'] = opts[:'last_heartbeat__range'] if !opts[:'last_heartbeat__range'].nil?
3190
+ query_params[:'online'] = opts[:'online'] if !opts[:'online'].nil?
3191
+ query_params[:'missing'] = opts[:'missing'] if !opts[:'missing'].nil?
3192
+ query_params[:'last_heartbeat'] = opts[:'last_heartbeat'] if !opts[:'last_heartbeat'].nil?
3193
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3194
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
3195
+
3196
+ # header parameters
3197
+ header_params = {}
3198
+ # HTTP header 'Accept' (if needed)
3199
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3200
+ # HTTP header 'Content-Type'
3201
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3202
+
3203
+ # form parameters
3204
+ form_params = {}
3205
+
3206
+ # http body (model)
3207
+ post_body = nil
3208
+ auth_names = ['Basic']
3209
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3210
+ :header_params => header_params,
3211
+ :query_params => query_params,
3212
+ :form_params => form_params,
3213
+ :body => post_body,
3214
+ :auth_names => auth_names,
3215
+ :return_type => 'InlineResponse20010')
3216
+ if @api_client.config.debugging
3217
+ @api_client.config.logger.debug "API called: PulpApi#workers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3218
+ end
3219
+ return data, status_code, headers
3220
+ end
3221
+
3222
+ #
3223
+ #
3224
+ # @param worker_href URI of Worker. e.g.: /pulp/api/v3/workers/1/
3225
+ # @param [Hash] opts the optional parameters
3226
+ # @return [Worker]
3227
+ def workers_read(worker_href, opts = {})
3228
+ data, _status_code, _headers = workers_read_with_http_info(worker_href, opts)
3229
+ return data
3230
+ end
3231
+
3232
+ #
3233
+ #
3234
+ # @param worker_href URI of Worker. e.g.: /pulp/api/v3/workers/1/
3235
+ # @param [Hash] opts the optional parameters
3236
+ # @return [Array<(Worker, Fixnum, Hash)>] Worker data, response status code and response headers
3237
+ def workers_read_with_http_info(worker_href, opts = {})
3238
+ if @api_client.config.debugging
3239
+ @api_client.config.logger.debug "Calling API: PulpApi.workers_read ..."
3240
+ end
3241
+ # verify the required parameter 'worker_href' is set
3242
+ if @api_client.config.client_side_validation && worker_href.nil?
3243
+ fail ArgumentError, "Missing the required parameter 'worker_href' when calling PulpApi.workers_read"
3244
+ end
3245
+ # resource path
3246
+ local_var_path = "{worker_href}".sub('{' + 'worker_href' + '}', worker_href.to_s)
3247
+
3248
+ # query parameters
3249
+ query_params = {}
3250
+
3251
+ # header parameters
3252
+ header_params = {}
3253
+ # HTTP header 'Accept' (if needed)
3254
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3255
+ # HTTP header 'Content-Type'
3256
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3257
+
3258
+ # form parameters
3259
+ form_params = {}
3260
+
3261
+ # http body (model)
3262
+ post_body = nil
3263
+ auth_names = ['Basic']
3264
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3265
+ :header_params => header_params,
3266
+ :query_params => query_params,
3267
+ :form_params => form_params,
3268
+ :body => post_body,
3269
+ :auth_names => auth_names,
3270
+ :return_type => 'Worker')
3271
+ if @api_client.config.debugging
3272
+ @api_client.config.logger.debug "API called: PulpApi#workers_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3273
+ end
3274
+ return data, status_code, headers
3275
+ end
3276
+ end
3277
+ end