pulp_rpm_client 3.14.20 → 3.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -6
  3. data/docs/ContentAdvisoriesApi.md +1 -1
  4. data/docs/ContentDistributionTreesApi.md +1 -1
  5. data/docs/ContentModulemdDefaultsApi.md +1 -1
  6. data/docs/ContentModulemdsApi.md +1 -1
  7. data/docs/ContentPackagecategoriesApi.md +1 -1
  8. data/docs/ContentPackageenvironmentsApi.md +1 -1
  9. data/docs/ContentPackagegroupsApi.md +1 -1
  10. data/docs/ContentPackagelangpacksApi.md +1 -1
  11. data/docs/ContentPackagesApi.md +1 -1
  12. data/docs/ContentRepoMetadataFilesApi.md +1 -1
  13. data/docs/DistributionsRpmApi.md +1 -1
  14. data/docs/PatchedrpmRpmRepository.md +3 -3
  15. data/docs/PublicationsRpmApi.md +1 -1
  16. data/docs/RemotesRpmApi.md +1 -1
  17. data/docs/RemotesUlnApi.md +1 -1
  18. data/docs/RepositoriesRpmApi.md +1 -1
  19. data/docs/RepositoriesRpmVersionsApi.md +1 -1
  20. data/docs/RpmCopyApi.md +1 -1
  21. data/docs/RpmRepositorySyncURL.md +1 -3
  22. data/docs/RpmRpmPublication.md +2 -2
  23. data/docs/RpmRpmPublicationResponse.md +2 -2
  24. data/docs/RpmRpmRepository.md +3 -3
  25. data/docs/RpmRpmRepositoryResponse.md +3 -3
  26. data/git_push.sh +58 -0
  27. data/lib/pulp_rpm_client/api_client.rb +4 -1
  28. data/lib/pulp_rpm_client/configuration.rb +2 -3
  29. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +17 -16
  30. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +4 -14
  31. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +4 -0
  32. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +4 -0
  33. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +17 -16
  34. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +17 -16
  35. data/lib/pulp_rpm_client/version.rb +1 -1
  36. data/lib/pulp_rpm_client.rb +0 -1
  37. data/pulp_rpm_client.gemspec +3 -3
  38. data/spec/configuration_spec.rb +3 -3
  39. data/spec/models/patchedrpm_rpm_repository_spec.rb +1 -1
  40. data/spec/models/rpm_repository_sync_url_spec.rb +0 -6
  41. data/spec/models/rpm_rpm_repository_response_spec.rb +1 -1
  42. data/spec/models/rpm_rpm_repository_spec.rb +1 -1
  43. metadata +67 -76
  44. data/docs/SyncPolicyEnum.md +0 -16
  45. data/lib/pulp_rpm_client/models/sync_policy_enum.rb +0 -37
  46. data/spec/models/sync_policy_enum_spec.rb +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c981882b8652fa840e261a585c64b1fbb3c3f4fd5f50b596f32e4550fd4b2ea2
4
- data.tar.gz: 87a27dd21c61ee272933402ca11d151c10a38676cc407b556642c18c2bc7889d
3
+ metadata.gz: 8a0f868a6b2c23d0234ed3e2a7b4b622cfe1e5ad0040f214a93d4945073f2ff0
4
+ data.tar.gz: 16e7f0636383a2d7f213fe83f5a7480f1cc0f723f5ab7c6436a7c2e9ac980894
5
5
  SHA512:
6
- metadata.gz: 041f3dfdd89de611f9d316e206f120b7567558c229def1620df81bc8b0f57adcdf212c5dbe9d36da39f185584308f9b3f04a513300e7c1379bec836d930fb8d7
7
- data.tar.gz: 90ee562f19e7e024c17c222077c8040a6771a056359197362797d0e0569448e918dc46074a6dcbb55450dd7071df77f805a6e30f527d9ab44a1d010414786da9
6
+ metadata.gz: fdf23d5cc4185c15f09ab46583c05cafbd41e1656f2b74176493febfde30e3d68ff3eff96042bd022caa5b822eb1a73fe513ee5c9bd386b29162d2203e4f8ceb
7
+ data.tar.gz: 5eec77db196250c0e167cd6095c2a1c69261f4ad77d05ac6c7dcbe7f71001df79688b5f7a3ba5e9e607a0687d64f839844182037d138e97319d6b2097ef2edfd
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.14.20
10
+ - Package version: 3.15.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_rpm_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_rpm_client-3.14.20.gem
27
+ gem install ./pulp_rpm_client-3.15.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_rpm_client-3.14.20.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_rpm_client-3.15.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_rpm_client', '~> 3.14.20'
36
+ gem 'pulp_rpm_client', '~> 3.15.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -82,7 +82,7 @@ end
82
82
 
83
83
  ## Documentation for API Endpoints
84
84
 
85
- All URIs are relative to *http://pulp*
85
+ All URIs are relative to *https://pulp*
86
86
 
87
87
  Class | Method | HTTP request | Description
88
88
  ------------ | ------------- | ------------- | -------------
@@ -211,7 +211,6 @@ Class | Method | HTTP request | Description
211
211
  - [PulpRpmClient::RpmUpdateRecord](docs/RpmUpdateRecord.md)
212
212
  - [PulpRpmClient::RpmUpdateRecordResponse](docs/RpmUpdateRecordResponse.md)
213
213
  - [PulpRpmClient::SkipTypesEnum](docs/SkipTypesEnum.md)
214
- - [PulpRpmClient::SyncPolicyEnum](docs/SyncPolicyEnum.md)
215
214
  - [PulpRpmClient::VariantResponse](docs/VariantResponse.md)
216
215
 
217
216
 
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentAdvisoriesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentDistributionTreesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentModulemdDefaultsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentModulemdsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentPackagecategoriesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentPackageenvironmentsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentPackagegroupsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentPackagelangpacksApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentPackagesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::ContentRepoMetadataFilesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::DistributionsRpmApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. | [optional]
9
9
  **description** | **String** | An optional description. | [optional]
10
- **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
- **remote** | **String** | | [optional]
10
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
12
12
  **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
13
13
  **metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
14
14
  **retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
@@ -26,7 +26,7 @@ require 'PulpRpmClient'
26
26
  instance = PulpRpmClient::PatchedrpmRpmRepository.new(pulp_labels: null,
27
27
  name: null,
28
28
  description: null,
29
- retained_versions: null,
29
+ retain_repo_versions: null,
30
30
  remote: null,
31
31
  autopublish: null,
32
32
  metadata_signing_service: null,
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::PublicationsRpmApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::RemotesRpmApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::RemotesUlnApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::RepositoriesRpmApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::RepositoriesRpmVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/RpmCopyApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PulpRpmClient::RpmCopyApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -5,8 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
8
- **mirror** | **Boolean** | DEPRECATED: If ``True``, ``sync_policy`` will default to 'mirror_complete' instead of 'additive'. | [optional]
9
- **sync_policy** | [**SyncPolicyEnum**](SyncPolicyEnum.md) | Options: 'additive', 'mirror_complete', 'mirror_content_only'. Default: 'additive'. Modifies how the sync is performed. 'mirror_complete' will clone the original metadata and create an automatic publication from it, but comes with some limitations and does not work for certain repositories. 'mirror_content_only' will change the repository contents to match the remote but the metadata will be regenerated and will not be bit-for-bit identical. 'additive' will retain the existing contents of the repository and add the contents of the repository being synced. | [optional]
8
+ **mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
10
9
  **skip_types** | [**Array<SkipTypesEnum>**](SkipTypesEnum.md) | List of content types to skip during sync. | [optional]
11
10
  **optimize** | **Boolean** | Whether or not to optimize sync. | [optional] [default to true]
12
11
 
@@ -17,7 +16,6 @@ require 'PulpRpmClient'
17
16
 
18
17
  instance = PulpRpmClient::RpmRepositorySyncURL.new(remote: null,
19
18
  mirror: null,
20
- sync_policy: null,
21
19
  skip_types: null,
22
20
  optimize: null)
23
21
  ```
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **repository** | **String** | A URI of the repository to be published. | [optional]
9
9
  **metadata_checksum_type** | [**MetadataChecksumTypeEnum**](MetadataChecksumTypeEnum.md) | The checksum type for metadata. | [optional]
10
10
  **package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The checksum type for packages. | [optional]
11
- **gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on packages. | [optional]
12
- **repo_gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on the repodata. | [optional]
11
+ **gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on packages. | [optional] [default to 0]
12
+ **repo_gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on the repodata. | [optional] [default to 0]
13
13
  **sqlite_metadata** | **Boolean** | An option specifying whether Pulp should generate SQLite metadata. | [optional] [default to false]
14
14
 
15
15
  ## Code Sample
@@ -10,8 +10,8 @@ Name | Type | Description | Notes
10
10
  **repository** | **String** | A URI of the repository to be published. | [optional]
11
11
  **metadata_checksum_type** | [**MetadataChecksumTypeEnum**](MetadataChecksumTypeEnum.md) | The checksum type for metadata. | [optional]
12
12
  **package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The checksum type for packages. | [optional]
13
- **gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on packages. | [optional]
14
- **repo_gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on the repodata. | [optional]
13
+ **gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on packages. | [optional] [default to 0]
14
+ **repo_gpgcheck** | **Integer** | An option specifying whether a client should perform a GPG signature check on the repodata. | [optional] [default to 0]
15
15
  **sqlite_metadata** | **Boolean** | An option specifying whether Pulp should generate SQLite metadata. | [optional] [default to false]
16
16
 
17
17
  ## Code Sample
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. |
9
9
  **description** | **String** | An optional description. | [optional]
10
- **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
- **remote** | **String** | | [optional]
10
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
11
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
12
12
  **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
13
13
  **metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
14
14
  **retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
@@ -26,7 +26,7 @@ require 'PulpRpmClient'
26
26
  instance = PulpRpmClient::RpmRpmRepository.new(pulp_labels: null,
27
27
  name: null,
28
28
  description: null,
29
- retained_versions: null,
29
+ retain_repo_versions: null,
30
30
  remote: null,
31
31
  autopublish: null,
32
32
  metadata_signing_service: null,
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
11
11
  **latest_version_href** | **String** | | [optional] [readonly]
12
12
  **name** | **String** | A unique name for this repository. |
13
13
  **description** | **String** | An optional description. | [optional]
14
- **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
15
- **remote** | **String** | | [optional]
14
+ **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
15
+ **remote** | **String** | An optional remote to use by default when syncing. | [optional]
16
16
  **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
17
17
  **metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
18
18
  **retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
@@ -34,7 +34,7 @@ instance = PulpRpmClient::RpmRpmRepositoryResponse.new(pulp_href: null,
34
34
  latest_version_href: null,
35
35
  name: null,
36
36
  description: null,
37
- retained_versions: null,
37
+ retain_repo_versions: null,
38
38
  remote: null,
39
39
  autopublish: null,
40
40
  metadata_signing_service: null,
data/git_push.sh ADDED
@@ -0,0 +1,58 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=`git remote`
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
58
+
@@ -118,6 +118,9 @@ module PulpRpmClient
118
118
  update_params_for_auth! header_params, query_params, opts[:auth_names]
119
119
 
120
120
  req_opts = {
121
+ :method => http_method,
122
+ :headers => header_params,
123
+ :params => query_params,
121
124
  :params_encoding => @config.params_encoding,
122
125
  :timeout => @config.timeout,
123
126
  :verbose => @config.debugging
@@ -125,13 +128,13 @@ module PulpRpmClient
125
128
 
126
129
  if [:post, :patch, :put, :delete].include?(http_method)
127
130
  req_body = build_request_body(header_params, form_params, opts[:body])
131
+ req_opts.update :body => req_body
128
132
  if @config.debugging
129
133
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
130
134
  end
131
135
  end
132
136
  request.headers = header_params
133
137
  request.body = req_body
134
- request.options = OpenStruct.new(req_opts)
135
138
  request.url url
136
139
  request.params = query_params
137
140
  download_file(request) if opts[:return_type] == 'File'
@@ -127,7 +127,7 @@ module PulpRpmClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'http'
130
+ @scheme = 'https'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -140,7 +140,6 @@ module PulpRpmClient
140
140
  @ssl_client_cert = nil
141
141
  @ssl_client_key = nil
142
142
  @params_encoder = nil
143
- @timeout = 60
144
143
  @debugging = false
145
144
  @inject_format = false
146
145
  @force_ending_format = false
@@ -210,7 +209,7 @@ module PulpRpmClient
210
209
  def server_settings
211
210
  [
212
211
  {
213
- url: "http://pulp/",
212
+ url: "https://pulp/",
214
213
  description: "No description provided",
215
214
  }
216
215
  ]
@@ -24,8 +24,9 @@ module PulpRpmClient
24
24
  attr_accessor :description
25
25
 
26
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
@@ -58,7 +59,7 @@ module PulpRpmClient
58
59
  :'pulp_labels' => :'pulp_labels',
59
60
  :'name' => :'name',
60
61
  :'description' => :'description',
61
- :'retained_versions' => :'retained_versions',
62
+ :'retain_repo_versions' => :'retain_repo_versions',
62
63
  :'remote' => :'remote',
63
64
  :'autopublish' => :'autopublish',
64
65
  :'metadata_signing_service' => :'metadata_signing_service',
@@ -77,7 +78,7 @@ module PulpRpmClient
77
78
  :'pulp_labels' => :'Object',
78
79
  :'name' => :'String',
79
80
  :'description' => :'String',
80
- :'retained_versions' => :'Integer',
81
+ :'retain_repo_versions' => :'Integer',
81
82
  :'remote' => :'String',
82
83
  :'autopublish' => :'Boolean',
83
84
  :'metadata_signing_service' => :'String',
@@ -94,7 +95,7 @@ module PulpRpmClient
94
95
  def self.openapi_nullable
95
96
  Set.new([
96
97
  :'description',
97
- :'retained_versions',
98
+ :'retain_repo_versions',
98
99
  :'remote',
99
100
  :'metadata_signing_service',
100
101
  :'metadata_checksum_type',
@@ -129,8 +130,8 @@ module PulpRpmClient
129
130
  self.description = attributes[:'description']
130
131
  end
131
132
 
132
- if attributes.key?(:'retained_versions')
133
- self.retained_versions = attributes[:'retained_versions']
133
+ if attributes.key?(:'retain_repo_versions')
134
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
134
135
  end
135
136
 
136
137
  if attributes.key?(:'remote')
@@ -182,8 +183,8 @@ module PulpRpmClient
182
183
  # @return Array for valid properties with the reasons
183
184
  def list_invalid_properties
184
185
  invalid_properties = Array.new
185
- if !@retained_versions.nil? && @retained_versions < 1
186
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
186
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
187
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
187
188
  end
188
189
 
189
190
  if !@retain_package_versions.nil? && @retain_package_versions < 0
@@ -212,7 +213,7 @@ module PulpRpmClient
212
213
  # Check to see if the all the properties in the model are valid
213
214
  # @return true if the model is valid
214
215
  def valid?
215
- return false if !@retained_versions.nil? && @retained_versions < 1
216
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
216
217
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
217
218
  return false if !@gpgcheck.nil? && @gpgcheck > 1
218
219
  return false if !@gpgcheck.nil? && @gpgcheck < 0
@@ -222,13 +223,13 @@ module PulpRpmClient
222
223
  end
223
224
 
224
225
  # Custom attribute writer method with validation
225
- # @param [Object] retained_versions Value to be assigned
226
- def retained_versions=(retained_versions)
227
- if !retained_versions.nil? && retained_versions < 1
228
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
226
+ # @param [Object] retain_repo_versions Value to be assigned
227
+ def retain_repo_versions=(retain_repo_versions)
228
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
229
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
229
230
  end
230
231
 
231
- @retained_versions = retained_versions
232
+ @retain_repo_versions = retain_repo_versions
232
233
  end
233
234
 
234
235
  # Custom attribute writer method with validation
@@ -277,7 +278,7 @@ module PulpRpmClient
277
278
  pulp_labels == o.pulp_labels &&
278
279
  name == o.name &&
279
280
  description == o.description &&
280
- retained_versions == o.retained_versions &&
281
+ retain_repo_versions == o.retain_repo_versions &&
281
282
  remote == o.remote &&
282
283
  autopublish == o.autopublish &&
283
284
  metadata_signing_service == o.metadata_signing_service &&
@@ -298,7 +299,7 @@ module PulpRpmClient
298
299
  # Calculates hash code according to all attributes.
299
300
  # @return [Integer] Hash code
300
301
  def hash
301
- [pulp_labels, name, description, retained_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
302
+ [pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
302
303
  end
303
304
 
304
305
  # Builds the object from hash
@@ -18,12 +18,9 @@ module PulpRpmClient
18
18
  # A remote to sync from. This will override a remote set on repository.
19
19
  attr_accessor :remote
20
20
 
21
- # DEPRECATED: If ``True``, ``sync_policy`` will default to 'mirror_complete' instead of 'additive'.
21
+ # If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
22
22
  attr_accessor :mirror
23
23
 
24
- # Options: 'additive', 'mirror_complete', 'mirror_content_only'. Default: 'additive'. Modifies how the sync is performed. 'mirror_complete' will clone the original metadata and create an automatic publication from it, but comes with some limitations and does not work for certain repositories. 'mirror_content_only' will change the repository contents to match the remote but the metadata will be regenerated and will not be bit-for-bit identical. 'additive' will retain the existing contents of the repository and add the contents of the repository being synced.
25
- attr_accessor :sync_policy
26
-
27
24
  # List of content types to skip during sync.
28
25
  attr_accessor :skip_types
29
26
 
@@ -35,7 +32,6 @@ module PulpRpmClient
35
32
  {
36
33
  :'remote' => :'remote',
37
34
  :'mirror' => :'mirror',
38
- :'sync_policy' => :'sync_policy',
39
35
  :'skip_types' => :'skip_types',
40
36
  :'optimize' => :'optimize'
41
37
  }
@@ -46,7 +42,6 @@ module PulpRpmClient
46
42
  {
47
43
  :'remote' => :'String',
48
44
  :'mirror' => :'Boolean',
49
- :'sync_policy' => :'SyncPolicyEnum',
50
45
  :'skip_types' => :'Array<SkipTypesEnum>',
51
46
  :'optimize' => :'Boolean'
52
47
  }
@@ -55,8 +50,6 @@ module PulpRpmClient
55
50
  # List of attributes with nullable: true
56
51
  def self.openapi_nullable
57
52
  Set.new([
58
- :'mirror',
59
- :'sync_policy',
60
53
  ])
61
54
  end
62
55
 
@@ -81,10 +74,8 @@ module PulpRpmClient
81
74
 
82
75
  if attributes.key?(:'mirror')
83
76
  self.mirror = attributes[:'mirror']
84
- end
85
-
86
- if attributes.key?(:'sync_policy')
87
- self.sync_policy = attributes[:'sync_policy']
77
+ else
78
+ self.mirror = false
88
79
  end
89
80
 
90
81
  if attributes.key?(:'skip_types')
@@ -120,7 +111,6 @@ module PulpRpmClient
120
111
  self.class == o.class &&
121
112
  remote == o.remote &&
122
113
  mirror == o.mirror &&
123
- sync_policy == o.sync_policy &&
124
114
  skip_types == o.skip_types &&
125
115
  optimize == o.optimize
126
116
  end
@@ -134,7 +124,7 @@ module PulpRpmClient
134
124
  # Calculates hash code according to all attributes.
135
125
  # @return [Integer] Hash code
136
126
  def hash
137
- [remote, mirror, sync_policy, skip_types, optimize].hash
127
+ [remote, mirror, skip_types, optimize].hash
138
128
  end
139
129
 
140
130
  # Builds the object from hash
@@ -100,10 +100,14 @@ module PulpRpmClient
100
100
 
101
101
  if attributes.key?(:'gpgcheck')
102
102
  self.gpgcheck = attributes[:'gpgcheck']
103
+ else
104
+ self.gpgcheck = 0
103
105
  end
104
106
 
105
107
  if attributes.key?(:'repo_gpgcheck')
106
108
  self.repo_gpgcheck = attributes[:'repo_gpgcheck']
109
+ else
110
+ self.repo_gpgcheck = 0
107
111
  end
108
112
 
109
113
  if attributes.key?(:'sqlite_metadata')
@@ -117,10 +117,14 @@ module PulpRpmClient
117
117
 
118
118
  if attributes.key?(:'gpgcheck')
119
119
  self.gpgcheck = attributes[:'gpgcheck']
120
+ else
121
+ self.gpgcheck = 0
120
122
  end
121
123
 
122
124
  if attributes.key?(:'repo_gpgcheck')
123
125
  self.repo_gpgcheck = attributes[:'repo_gpgcheck']
126
+ else
127
+ self.repo_gpgcheck = 0
124
128
  end
125
129
 
126
130
  if attributes.key?(:'sqlite_metadata')