pulp_python_client 3.0.0b9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +175 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentPackagesApi.md +262 -0
  7. data/docs/ContentSummary.md +21 -0
  8. data/docs/DistributionsPypiApi.md +364 -0
  9. data/docs/InlineResponse200.md +23 -0
  10. data/docs/InlineResponse2001.md +23 -0
  11. data/docs/InlineResponse2002.md +23 -0
  12. data/docs/InlineResponse2003.md +23 -0
  13. data/docs/InlineResponse2004.md +23 -0
  14. data/docs/InlineResponse2005.md +23 -0
  15. data/docs/ProjectSpecifier.md +19 -0
  16. data/docs/PublicationsPypiApi.md +253 -0
  17. data/docs/PythonPythonDistribution.md +29 -0
  18. data/docs/PythonPythonDistributionRead.md +29 -0
  19. data/docs/PythonPythonPackageContentRead.md +69 -0
  20. data/docs/PythonPythonPublication.md +25 -0
  21. data/docs/PythonPythonPublicationRead.md +25 -0
  22. data/docs/PythonPythonRemote.md +49 -0
  23. data/docs/PythonPythonRemoteRead.md +49 -0
  24. data/docs/PythonPythonRepository.md +27 -0
  25. data/docs/PythonPythonRepositoryRead.md +27 -0
  26. data/docs/RemotesPythonApi.md +368 -0
  27. data/docs/RepositoriesPythonApi.md +468 -0
  28. data/docs/RepositoriesPythonVersionsApi.md +269 -0
  29. data/docs/RepositoryAddRemoveContent.md +21 -0
  30. data/docs/RepositorySyncURL.md +19 -0
  31. data/docs/RepositoryVersion.md +25 -0
  32. data/docs/RepositoryVersionRead.md +25 -0
  33. data/git_push.sh +58 -0
  34. data/lib/pulp_python_client.rb +67 -0
  35. data/lib/pulp_python_client/api/content_packages_api.rb +349 -0
  36. data/lib/pulp_python_client/api/distributions_pypi_api.rb +445 -0
  37. data/lib/pulp_python_client/api/publications_pypi_api.rb +306 -0
  38. data/lib/pulp_python_client/api/remotes_python_api.rb +451 -0
  39. data/lib/pulp_python_client/api/repositories_python_api.rb +573 -0
  40. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +336 -0
  41. data/lib/pulp_python_client/api_client.rb +402 -0
  42. data/lib/pulp_python_client/api_error.rb +57 -0
  43. data/lib/pulp_python_client/configuration.rb +243 -0
  44. data/lib/pulp_python_client/models/async_operation_response.rb +212 -0
  45. data/lib/pulp_python_client/models/content_summary.rb +246 -0
  46. data/lib/pulp_python_client/models/inline_response200.rb +247 -0
  47. data/lib/pulp_python_client/models/inline_response2001.rb +247 -0
  48. data/lib/pulp_python_client/models/inline_response2002.rb +247 -0
  49. data/lib/pulp_python_client/models/inline_response2003.rb +247 -0
  50. data/lib/pulp_python_client/models/inline_response2004.rb +247 -0
  51. data/lib/pulp_python_client/models/inline_response2005.rb +247 -0
  52. data/lib/pulp_python_client/models/project_specifier.rb +242 -0
  53. data/lib/pulp_python_client/models/python_python_distribution.rb +331 -0
  54. data/lib/pulp_python_client/models/python_python_distribution_read.rb +331 -0
  55. data/lib/pulp_python_client/models/python_python_package_content_read.rb +550 -0
  56. data/lib/pulp_python_client/models/python_python_publication.rb +247 -0
  57. data/lib/pulp_python_client/models/python_python_publication_read.rb +247 -0
  58. data/lib/pulp_python_client/models/python_python_remote.rb +565 -0
  59. data/lib/pulp_python_client/models/python_python_remote_read.rb +565 -0
  60. data/lib/pulp_python_client/models/python_python_repository.rb +294 -0
  61. data/lib/pulp_python_client/models/python_python_repository_read.rb +294 -0
  62. data/lib/pulp_python_client/models/repository_add_remove_content.rb +231 -0
  63. data/lib/pulp_python_client/models/repository_sync_url.rb +224 -0
  64. data/lib/pulp_python_client/models/repository_version.rb +244 -0
  65. data/lib/pulp_python_client/models/repository_version_read.rb +244 -0
  66. data/lib/pulp_python_client/version.rb +15 -0
  67. data/pulp_python_client.gemspec +39 -0
  68. data/spec/api/content_packages_api_spec.rb +114 -0
  69. data/spec/api/distributions_pypi_api_spec.rb +121 -0
  70. data/spec/api/publications_pypi_api_spec.rb +96 -0
  71. data/spec/api/remotes_python_api_spec.rb +123 -0
  72. data/spec/api/repositories_python_api_spec.rb +143 -0
  73. data/spec/api/repositories_python_versions_api_spec.rb +103 -0
  74. data/spec/api_client_spec.rb +188 -0
  75. data/spec/configuration_spec.rb +42 -0
  76. data/spec/models/async_operation_response_spec.rb +41 -0
  77. data/spec/models/content_summary_spec.rb +53 -0
  78. data/spec/models/inline_response2001_spec.rb +59 -0
  79. data/spec/models/inline_response2002_spec.rb +59 -0
  80. data/spec/models/inline_response2003_spec.rb +59 -0
  81. data/spec/models/inline_response2004_spec.rb +59 -0
  82. data/spec/models/inline_response2005_spec.rb +59 -0
  83. data/spec/models/inline_response200_spec.rb +59 -0
  84. data/spec/models/project_specifier_spec.rb +47 -0
  85. data/spec/models/python_python_distribution_read_spec.rb +77 -0
  86. data/spec/models/python_python_distribution_spec.rb +77 -0
  87. data/spec/models/python_python_package_content_read_spec.rb +197 -0
  88. data/spec/models/python_python_publication_read_spec.rb +65 -0
  89. data/spec/models/python_python_publication_spec.rb +65 -0
  90. data/spec/models/python_python_remote_read_spec.rb +141 -0
  91. data/spec/models/python_python_remote_spec.rb +141 -0
  92. data/spec/models/python_python_repository_read_spec.rb +71 -0
  93. data/spec/models/python_python_repository_spec.rb +71 -0
  94. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  95. data/spec/models/repository_sync_url_spec.rb +47 -0
  96. data/spec/models/repository_version_read_spec.rb +65 -0
  97. data/spec/models/repository_version_spec.rb +65 -0
  98. data/spec/spec_helper.rb +111 -0
  99. metadata +225 -0
@@ -0,0 +1,25 @@
1
+ # PulpPythonClient::PythonPythonPublication
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **repository_version** | **String** | | [optional]
10
+ **repository** | **String** | A URI of the repository to be published. | [optional]
11
+ **distributions** | **Array<String>** | This publication is currently being hosted as configured by these distributions. | [optional] [readonly]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'PulpPythonClient'
17
+
18
+ instance = PulpPythonClient::PythonPythonPublication.new(pulp_href: null,
19
+ pulp_created: null,
20
+ repository_version: null,
21
+ repository: null,
22
+ distributions: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,25 @@
1
+ # PulpPythonClient::PythonPythonPublicationRead
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **repository_version** | **String** | | [optional]
10
+ **repository** | **String** | A URI of the repository to be published. | [optional]
11
+ **distributions** | **Array<String>** | This publication is currently being hosted as configured by these distributions. | [optional] [readonly]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'PulpPythonClient'
17
+
18
+ instance = PulpPythonClient::PythonPythonPublicationRead.new(pulp_href: null,
19
+ pulp_created: null,
20
+ repository_version: null,
21
+ repository: null,
22
+ distributions: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,49 @@
1
+ # PulpPythonClient::PythonPythonRemote
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **name** | **String** | A unique name for this remote. |
10
+ **url** | **String** | The URL of an external content source. |
11
+ **ca_cert** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. | [optional]
12
+ **client_cert** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. | [optional]
13
+ **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
14
+ **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
15
+ **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
16
+ **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
+ **password** | **String** | The password to be used for authentication when syncing. | [optional]
18
+ **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
19
+ **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
+ **policy** | **String** | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default. | [optional] [default to 'immediate']
21
+ **includes** | [**Array<ProjectSpecifier>**](ProjectSpecifier.md) | AKA \"Whitelist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}] | [optional]
22
+ **excludes** | [**Array<ProjectSpecifier>**](ProjectSpecifier.md) | \"AKA \"Blacklist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}] | [optional]
23
+ **prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [optional]
24
+
25
+ ## Code Sample
26
+
27
+ ```ruby
28
+ require 'PulpPythonClient'
29
+
30
+ instance = PulpPythonClient::PythonPythonRemote.new(pulp_href: null,
31
+ pulp_created: null,
32
+ name: null,
33
+ url: null,
34
+ ca_cert: null,
35
+ client_cert: null,
36
+ client_key: null,
37
+ tls_validation: null,
38
+ proxy_url: null,
39
+ username: null,
40
+ password: null,
41
+ pulp_last_updated: null,
42
+ download_concurrency: null,
43
+ policy: null,
44
+ includes: null,
45
+ excludes: null,
46
+ prereleases: null)
47
+ ```
48
+
49
+
@@ -0,0 +1,49 @@
1
+ # PulpPythonClient::PythonPythonRemoteRead
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **name** | **String** | A unique name for this remote. |
10
+ **url** | **String** | The URL of an external content source. |
11
+ **ca_cert** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. | [optional]
12
+ **client_cert** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. | [optional]
13
+ **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
14
+ **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
15
+ **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
16
+ **username** | **String** | The username to be used for authentication when syncing. | [optional]
17
+ **password** | **String** | The password to be used for authentication when syncing. | [optional]
18
+ **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
19
+ **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
+ **policy** | **String** | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default. | [optional] [default to 'immediate']
21
+ **includes** | [**Array<ProjectSpecifier>**](ProjectSpecifier.md) | AKA \"Whitelist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}] | [optional]
22
+ **excludes** | [**Array<ProjectSpecifier>**](ProjectSpecifier.md) | \"AKA \"Blacklist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}] | [optional]
23
+ **prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [optional]
24
+
25
+ ## Code Sample
26
+
27
+ ```ruby
28
+ require 'PulpPythonClient'
29
+
30
+ instance = PulpPythonClient::PythonPythonRemoteRead.new(pulp_href: null,
31
+ pulp_created: null,
32
+ name: null,
33
+ url: null,
34
+ ca_cert: null,
35
+ client_cert: null,
36
+ client_key: null,
37
+ tls_validation: null,
38
+ proxy_url: null,
39
+ username: null,
40
+ password: null,
41
+ pulp_last_updated: null,
42
+ download_concurrency: null,
43
+ policy: null,
44
+ includes: null,
45
+ excludes: null,
46
+ prereleases: null)
47
+ ```
48
+
49
+
@@ -0,0 +1,27 @@
1
+ # PulpPythonClient::PythonPythonRepository
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **versions_href** | **String** | | [optional] [readonly]
10
+ **latest_version_href** | **String** | | [optional] [readonly]
11
+ **name** | **String** | A unique name for this repository. |
12
+ **description** | **String** | An optional description. | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'PulpPythonClient'
18
+
19
+ instance = PulpPythonClient::PythonPythonRepository.new(pulp_href: null,
20
+ pulp_created: null,
21
+ versions_href: null,
22
+ latest_version_href: null,
23
+ name: null,
24
+ description: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,27 @@
1
+ # PulpPythonClient::PythonPythonRepositoryRead
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **versions_href** | **String** | | [optional] [readonly]
10
+ **latest_version_href** | **String** | | [optional] [readonly]
11
+ **name** | **String** | A unique name for this repository. |
12
+ **description** | **String** | An optional description. | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'PulpPythonClient'
18
+
19
+ instance = PulpPythonClient::PythonPythonRepositoryRead.new(pulp_href: null,
20
+ pulp_created: null,
21
+ versions_href: null,
22
+ latest_version_href: null,
23
+ name: null,
24
+ description: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,368 @@
1
+ # PulpPythonClient::RemotesPythonApi
2
+
3
+ All URIs are relative to *http://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](RemotesPythonApi.md#create) | **POST** /pulp/api/v3/remotes/python/python/ | Create a python remote
8
+ [**delete**](RemotesPythonApi.md#delete) | **DELETE** {python_remote_href} | Delete a python remote
9
+ [**list**](RemotesPythonApi.md#list) | **GET** /pulp/api/v3/remotes/python/python/ | List python remotes
10
+ [**partial_update**](RemotesPythonApi.md#partial_update) | **PATCH** {python_remote_href} | Partially update a python remote
11
+ [**read**](RemotesPythonApi.md#read) | **GET** {python_remote_href} | Inspect a python remote
12
+ [**update**](RemotesPythonApi.md#update) | **PUT** {python_remote_href} | Update a python remote
13
+
14
+
15
+
16
+ ## create
17
+
18
+ > PythonPythonRemoteRead create(data)
19
+
20
+ Create a python remote
21
+
22
+ Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
23
+
24
+ ### Example
25
+
26
+ ```ruby
27
+ # load the gem
28
+ require 'pulp_python_client'
29
+ # setup authorization
30
+ PulpPythonClient.configure do |config|
31
+ # Configure HTTP basic authorization: Basic
32
+ config.username = 'YOUR USERNAME'
33
+ config.password = 'YOUR PASSWORD'
34
+ end
35
+
36
+ api_instance = PulpPythonClient::RemotesPythonApi.new
37
+ data = PulpPythonClient::PythonPythonRemote.new # PythonPythonRemote |
38
+
39
+ begin
40
+ #Create a python remote
41
+ result = api_instance.create(data)
42
+ p result
43
+ rescue PulpPythonClient::ApiError => e
44
+ puts "Exception when calling RemotesPythonApi->create: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **data** | [**PythonPythonRemote**](PythonPythonRemote.md)| |
54
+
55
+ ### Return type
56
+
57
+ [**PythonPythonRemoteRead**](PythonPythonRemoteRead.md)
58
+
59
+ ### Authorization
60
+
61
+ [Basic](../README.md#Basic)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json
66
+ - **Accept**: application/json
67
+
68
+
69
+ ## delete
70
+
71
+ > AsyncOperationResponse delete(python_remote_href)
72
+
73
+ Delete a python remote
74
+
75
+ Trigger an asynchronous delete task
76
+
77
+ ### Example
78
+
79
+ ```ruby
80
+ # load the gem
81
+ require 'pulp_python_client'
82
+ # setup authorization
83
+ PulpPythonClient.configure do |config|
84
+ # Configure HTTP basic authorization: Basic
85
+ config.username = 'YOUR USERNAME'
86
+ config.password = 'YOUR PASSWORD'
87
+ end
88
+
89
+ api_instance = PulpPythonClient::RemotesPythonApi.new
90
+ python_remote_href = 'python_remote_href_example' # String | URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
91
+
92
+ begin
93
+ #Delete a python remote
94
+ result = api_instance.delete(python_remote_href)
95
+ p result
96
+ rescue PulpPythonClient::ApiError => e
97
+ puts "Exception when calling RemotesPythonApi->delete: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **python_remote_href** | **String**| URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/ |
107
+
108
+ ### Return type
109
+
110
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
111
+
112
+ ### Authorization
113
+
114
+ [Basic](../README.md#Basic)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: Not defined
119
+ - **Accept**: application/json
120
+
121
+
122
+ ## list
123
+
124
+ > InlineResponse2003 list(opts)
125
+
126
+ List python remotes
127
+
128
+ Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
129
+
130
+ ### Example
131
+
132
+ ```ruby
133
+ # load the gem
134
+ require 'pulp_python_client'
135
+ # setup authorization
136
+ PulpPythonClient.configure do |config|
137
+ # Configure HTTP basic authorization: Basic
138
+ config.username = 'YOUR USERNAME'
139
+ config.password = 'YOUR PASSWORD'
140
+ end
141
+
142
+ api_instance = PulpPythonClient::RemotesPythonApi.new
143
+ opts = {
144
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
145
+ name: 'name_example', # String |
146
+ name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
147
+ pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
148
+ pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | Filter results where pulp_last_updated is less than or equal to value
149
+ pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | Filter results where pulp_last_updated is greater than value
150
+ pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | Filter results where pulp_last_updated is greater than or equal to value
151
+ pulp_last_updated__range: 'pulp_last_updated__range_example', # String | Filter results where pulp_last_updated is between two comma separated values
152
+ pulp_last_updated: 'pulp_last_updated_example', # String | ISO 8601 formatted dates are supported
153
+ limit: 56, # Integer | Number of results to return per page.
154
+ offset: 56, # Integer | The initial index from which to return the results.
155
+ fields: 'fields_example', # String | A list of fields to include in the response.
156
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
157
+ }
158
+
159
+ begin
160
+ #List python remotes
161
+ result = api_instance.list(opts)
162
+ p result
163
+ rescue PulpPythonClient::ApiError => e
164
+ puts "Exception when calling RemotesPythonApi->list: #{e}"
165
+ end
166
+ ```
167
+
168
+ ### Parameters
169
+
170
+
171
+ Name | Type | Description | Notes
172
+ ------------- | ------------- | ------------- | -------------
173
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
174
+ **name** | **String**| | [optional]
175
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
176
+ **pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
177
+ **pulp_last_updated__lte** | **String**| Filter results where pulp_last_updated is less than or equal to value | [optional]
178
+ **pulp_last_updated__gt** | **String**| Filter results where pulp_last_updated is greater than value | [optional]
179
+ **pulp_last_updated__gte** | **String**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
180
+ **pulp_last_updated__range** | **String**| Filter results where pulp_last_updated is between two comma separated values | [optional]
181
+ **pulp_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
182
+ **limit** | **Integer**| Number of results to return per page. | [optional]
183
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
184
+ **fields** | **String**| A list of fields to include in the response. | [optional]
185
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
186
+
187
+ ### Return type
188
+
189
+ [**InlineResponse2003**](InlineResponse2003.md)
190
+
191
+ ### Authorization
192
+
193
+ [Basic](../README.md#Basic)
194
+
195
+ ### HTTP request headers
196
+
197
+ - **Content-Type**: Not defined
198
+ - **Accept**: application/json
199
+
200
+
201
+ ## partial_update
202
+
203
+ > AsyncOperationResponse partial_update(python_remote_href, data)
204
+
205
+ Partially update a python remote
206
+
207
+ Trigger an asynchronous partial update task
208
+
209
+ ### Example
210
+
211
+ ```ruby
212
+ # load the gem
213
+ require 'pulp_python_client'
214
+ # setup authorization
215
+ PulpPythonClient.configure do |config|
216
+ # Configure HTTP basic authorization: Basic
217
+ config.username = 'YOUR USERNAME'
218
+ config.password = 'YOUR PASSWORD'
219
+ end
220
+
221
+ api_instance = PulpPythonClient::RemotesPythonApi.new
222
+ python_remote_href = 'python_remote_href_example' # String | URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
223
+ data = PulpPythonClient::PythonPythonRemote.new # PythonPythonRemote |
224
+
225
+ begin
226
+ #Partially update a python remote
227
+ result = api_instance.partial_update(python_remote_href, data)
228
+ p result
229
+ rescue PulpPythonClient::ApiError => e
230
+ puts "Exception when calling RemotesPythonApi->partial_update: #{e}"
231
+ end
232
+ ```
233
+
234
+ ### Parameters
235
+
236
+
237
+ Name | Type | Description | Notes
238
+ ------------- | ------------- | ------------- | -------------
239
+ **python_remote_href** | **String**| URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/ |
240
+ **data** | [**PythonPythonRemote**](PythonPythonRemote.md)| |
241
+
242
+ ### Return type
243
+
244
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
245
+
246
+ ### Authorization
247
+
248
+ [Basic](../README.md#Basic)
249
+
250
+ ### HTTP request headers
251
+
252
+ - **Content-Type**: application/json
253
+ - **Accept**: application/json
254
+
255
+
256
+ ## read
257
+
258
+ > PythonPythonRemoteRead read(python_remote_href, opts)
259
+
260
+ Inspect a python remote
261
+
262
+ Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
263
+
264
+ ### Example
265
+
266
+ ```ruby
267
+ # load the gem
268
+ require 'pulp_python_client'
269
+ # setup authorization
270
+ PulpPythonClient.configure do |config|
271
+ # Configure HTTP basic authorization: Basic
272
+ config.username = 'YOUR USERNAME'
273
+ config.password = 'YOUR PASSWORD'
274
+ end
275
+
276
+ api_instance = PulpPythonClient::RemotesPythonApi.new
277
+ python_remote_href = 'python_remote_href_example' # String | URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
278
+ opts = {
279
+ fields: 'fields_example', # String | A list of fields to include in the response.
280
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
281
+ }
282
+
283
+ begin
284
+ #Inspect a python remote
285
+ result = api_instance.read(python_remote_href, opts)
286
+ p result
287
+ rescue PulpPythonClient::ApiError => e
288
+ puts "Exception when calling RemotesPythonApi->read: #{e}"
289
+ end
290
+ ```
291
+
292
+ ### Parameters
293
+
294
+
295
+ Name | Type | Description | Notes
296
+ ------------- | ------------- | ------------- | -------------
297
+ **python_remote_href** | **String**| URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/ |
298
+ **fields** | **String**| A list of fields to include in the response. | [optional]
299
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
300
+
301
+ ### Return type
302
+
303
+ [**PythonPythonRemoteRead**](PythonPythonRemoteRead.md)
304
+
305
+ ### Authorization
306
+
307
+ [Basic](../README.md#Basic)
308
+
309
+ ### HTTP request headers
310
+
311
+ - **Content-Type**: Not defined
312
+ - **Accept**: application/json
313
+
314
+
315
+ ## update
316
+
317
+ > AsyncOperationResponse update(python_remote_href, data)
318
+
319
+ Update a python remote
320
+
321
+ Trigger an asynchronous update task
322
+
323
+ ### Example
324
+
325
+ ```ruby
326
+ # load the gem
327
+ require 'pulp_python_client'
328
+ # setup authorization
329
+ PulpPythonClient.configure do |config|
330
+ # Configure HTTP basic authorization: Basic
331
+ config.username = 'YOUR USERNAME'
332
+ config.password = 'YOUR PASSWORD'
333
+ end
334
+
335
+ api_instance = PulpPythonClient::RemotesPythonApi.new
336
+ python_remote_href = 'python_remote_href_example' # String | URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
337
+ data = PulpPythonClient::PythonPythonRemote.new # PythonPythonRemote |
338
+
339
+ begin
340
+ #Update a python remote
341
+ result = api_instance.update(python_remote_href, data)
342
+ p result
343
+ rescue PulpPythonClient::ApiError => e
344
+ puts "Exception when calling RemotesPythonApi->update: #{e}"
345
+ end
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+
351
+ Name | Type | Description | Notes
352
+ ------------- | ------------- | ------------- | -------------
353
+ **python_remote_href** | **String**| URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/ |
354
+ **data** | [**PythonPythonRemote**](PythonPythonRemote.md)| |
355
+
356
+ ### Return type
357
+
358
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
359
+
360
+ ### Authorization
361
+
362
+ [Basic](../README.md#Basic)
363
+
364
+ ### HTTP request headers
365
+
366
+ - **Content-Type**: application/json
367
+ - **Accept**: application/json
368
+