pulp_ostree_client 2.0.0a1.dev1626751709 → 2.0.0a1.dev1631416829

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_ostree_client might be problematic. Click here for more details.

Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -23
  3. data/docs/ContentCommitsApi.md +138 -0
  4. data/docs/ContentConfigsApi.md +138 -0
  5. data/docs/ContentObjectsApi.md +138 -0
  6. data/docs/ContentRefsApi.md +138 -0
  7. data/docs/{ContentOstreeApi.md → ContentSummariesApi.md} +21 -75
  8. data/docs/DistributionsOstreeApi.md +3 -3
  9. data/docs/OstreeOstreeCommitResponse.md +25 -0
  10. data/docs/OstreeOstreeConfigResponse.md +21 -0
  11. data/docs/OstreeOstreeDistribution.md +2 -2
  12. data/docs/OstreeOstreeDistributionResponse.md +2 -2
  13. data/docs/OstreeOstreeObjectResponse.md +27 -0
  14. data/docs/OstreeOstreeRefResponse.md +25 -0
  15. data/docs/OstreeOstreeRemote.md +4 -2
  16. data/docs/OstreeOstreeRemoteResponse.md +4 -2
  17. data/docs/OstreeOstreeRepository.md +3 -3
  18. data/docs/OstreeOstreeRepositoryResponse.md +3 -3
  19. data/docs/{OstreeOstreeContentResponse.md → OstreeOstreeSummaryResponse.md} +2 -2
  20. data/docs/OstreeRepoImport.md +23 -0
  21. data/docs/{PaginatedostreeOstreePublicationResponseList.md → PaginatedostreeOstreeCommitResponseList.md} +3 -3
  22. data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
  23. data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
  24. data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
  25. data/docs/{PaginatedostreeOstreeContentResponseList.md → PaginatedostreeOstreeSummaryResponseList.md} +3 -3
  26. data/docs/PatchedostreeOstreeDistribution.md +2 -2
  27. data/docs/PatchedostreeOstreeRemote.md +4 -2
  28. data/docs/PatchedostreeOstreeRepository.md +3 -3
  29. data/docs/RemotesOstreeApi.md +4 -4
  30. data/docs/RepositoriesOstreeApi.md +60 -4
  31. data/docs/RepositoriesOstreeVersionsApi.md +3 -3
  32. data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
  33. data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
  34. data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
  35. data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
  36. data/lib/pulp_ostree_client/api/{content_ostree_api.rb → content_summaries_api.rb} +29 -93
  37. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +4 -4
  38. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +6 -6
  39. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +76 -6
  40. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +4 -4
  41. data/lib/pulp_ostree_client/configuration.rb +2 -2
  42. data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
  43. data/lib/pulp_ostree_client/models/{ostree_ostree_publication_response.rb → ostree_ostree_config_response.rb} +17 -21
  44. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +10 -10
  45. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +10 -10
  46. data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
  47. data/lib/pulp_ostree_client/models/{ostree_ostree_content.rb → ostree_ostree_ref_response.rb} +47 -15
  48. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +34 -7
  49. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +34 -7
  50. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +18 -17
  51. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +18 -17
  52. data/lib/pulp_ostree_client/models/{ostree_ostree_content_response.rb → ostree_ostree_summary_response.rb} +4 -4
  53. data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
  54. data/lib/pulp_ostree_client/models/{paginatedostree_ostree_publication_response_list.rb → paginatedostree_ostree_commit_response_list.rb} +4 -4
  55. data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
  56. data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
  57. data/lib/pulp_ostree_client/models/{ostree_ostree_publication.rb → paginatedostree_ostree_ref_response_list.rb} +38 -18
  58. data/lib/pulp_ostree_client/models/{paginatedostree_ostree_content_response_list.rb → paginatedostree_ostree_summary_response_list.rb} +4 -4
  59. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +10 -10
  60. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +34 -7
  61. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +18 -17
  62. data/lib/pulp_ostree_client/models/policy_enum.rb +1 -1
  63. data/lib/pulp_ostree_client/version.rb +1 -1
  64. data/lib/pulp_ostree_client.rb +16 -8
  65. data/spec/api/{content_ostree_api_spec.rb → content_commits_api_spec.rb} +13 -25
  66. data/spec/api/content_configs_api_spec.rb +68 -0
  67. data/spec/api/content_objects_api_spec.rb +68 -0
  68. data/spec/api/content_refs_api_spec.rb +68 -0
  69. data/spec/api/content_summaries_api_spec.rb +68 -0
  70. data/spec/api/distributions_ostree_api_spec.rb +2 -2
  71. data/spec/api/remotes_ostree_api_spec.rb +3 -3
  72. data/spec/api/repositories_ostree_api_spec.rb +16 -3
  73. data/spec/api/repositories_ostree_versions_api_spec.rb +2 -2
  74. data/spec/configuration_spec.rb +3 -3
  75. data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
  76. data/spec/models/{ostree_ostree_content_spec.rb → ostree_ostree_config_response_spec.rb} +14 -8
  77. data/spec/models/ostree_ostree_distribution_response_spec.rb +1 -1
  78. data/spec/models/ostree_ostree_distribution_spec.rb +1 -1
  79. data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
  80. data/spec/models/{ostree_ostree_publication_response_spec.rb → ostree_ostree_ref_response_spec.rb} +14 -8
  81. data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
  82. data/spec/models/ostree_ostree_remote_spec.rb +6 -0
  83. data/spec/models/ostree_ostree_repository_response_spec.rb +1 -1
  84. data/spec/models/ostree_ostree_repository_spec.rb +1 -1
  85. data/spec/models/{ostree_ostree_content_response_spec.rb → ostree_ostree_summary_response_spec.rb} +6 -6
  86. data/spec/models/ostree_repo_import_spec.rb +59 -0
  87. data/spec/models/{paginatedostree_ostree_publication_response_list_spec.rb → paginatedostree_ostree_commit_response_list_spec.rb} +6 -6
  88. data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
  89. data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
  90. data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
  91. data/spec/models/{paginatedostree_ostree_content_response_list_spec.rb → paginatedostree_ostree_summary_response_list_spec.rb} +6 -6
  92. data/spec/models/patchedostree_ostree_distribution_spec.rb +1 -1
  93. data/spec/models/patchedostree_ostree_remote_spec.rb +6 -0
  94. data/spec/models/patchedostree_ostree_repository_spec.rb +1 -1
  95. metadata +81 -49
  96. data/docs/OstreeOstreeContent.md +0 -19
  97. data/docs/OstreeOstreePublication.md +0 -19
  98. data/docs/OstreeOstreePublicationResponse.md +0 -23
  99. data/docs/PublicationsOstreeApi.md +0 -257
  100. data/lib/pulp_ostree_client/api/publications_ostree_api.rb +0 -312
  101. data/spec/api/publications_ostree_api_spec.rb +0 -98
  102. data/spec/models/ostree_ostree_publication_spec.rb +0 -47
@@ -0,0 +1,170 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpOstreeClient
16
+ class ContentRefsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List ostree refs
23
+ # A ViewSet class for OSTree head commits.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [Integer] :offset The initial index from which to return the results.
27
+ # @option opts [String] :ordering Which field to use when ordering the results.
28
+ # @option opts [String] :repository_version Repository Version referenced by HREF
29
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
31
+ # @option opts [String] :fields A list of fields to include in the response.
32
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
33
+ # @return [PaginatedostreeOstreeRefResponseList]
34
+ def list(opts = {})
35
+ data, _status_code, _headers = list_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # List ostree refs
40
+ # A ViewSet class for OSTree head commits.
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [Integer] :limit Number of results to return per page.
43
+ # @option opts [Integer] :offset The initial index from which to return the results.
44
+ # @option opts [String] :ordering Which field to use when ordering the results.
45
+ # @option opts [String] :repository_version Repository Version referenced by HREF
46
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
48
+ # @option opts [String] :fields A list of fields to include in the response.
49
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
+ # @return [Array<(PaginatedostreeOstreeRefResponseList, Integer, Hash)>] PaginatedostreeOstreeRefResponseList data, response status code and response headers
51
+ def list_with_http_info(opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug 'Calling API: ContentRefsApi.list ...'
54
+ end
55
+ # resource path
56
+ local_var_path = '/pulp/api/v3/content/ostree/refs/'
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
63
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
66
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
67
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
68
+
69
+ # header parameters
70
+ header_params = opts[:header_params] || {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:body]
79
+
80
+ # return_type
81
+ return_type = opts[:return_type] || 'PaginatedostreeOstreeRefResponseList'
82
+
83
+ # auth_names
84
+ auth_names = opts[:auth_names] || ['basicAuth']
85
+
86
+ new_options = opts.merge(
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: ContentRefsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+
102
+ # Inspect an ostree ref
103
+ # A ViewSet class for OSTree head commits.
104
+ # @param ostree_ostree_ref_href [String]
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [String] :fields A list of fields to include in the response.
107
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
+ # @return [OstreeOstreeRefResponse]
109
+ def read(ostree_ostree_ref_href, opts = {})
110
+ data, _status_code, _headers = read_with_http_info(ostree_ostree_ref_href, opts)
111
+ data
112
+ end
113
+
114
+ # Inspect an ostree ref
115
+ # A ViewSet class for OSTree head commits.
116
+ # @param ostree_ostree_ref_href [String]
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :fields A list of fields to include in the response.
119
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
+ # @return [Array<(OstreeOstreeRefResponse, Integer, Hash)>] OstreeOstreeRefResponse data, response status code and response headers
121
+ def read_with_http_info(ostree_ostree_ref_href, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: ContentRefsApi.read ...'
124
+ end
125
+ # verify the required parameter 'ostree_ostree_ref_href' is set
126
+ if @api_client.config.client_side_validation && ostree_ostree_ref_href.nil?
127
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_ref_href' when calling ContentRefsApi.read"
128
+ end
129
+ # resource path
130
+ local_var_path = '{ostree_ostree_ref_href}'.sub('{' + 'ostree_ostree_ref_href' + '}', CGI.escape(ostree_ostree_ref_href.to_s).gsub('%2F', '/'))
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
135
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
136
+
137
+ # header parameters
138
+ header_params = opts[:header_params] || {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
141
+
142
+ # form parameters
143
+ form_params = opts[:form_params] || {}
144
+
145
+ # http body (model)
146
+ post_body = opts[:body]
147
+
148
+ # return_type
149
+ return_type = opts[:return_type] || 'OstreeOstreeRefResponse'
150
+
151
+ # auth_names
152
+ auth_names = opts[:auth_names] || ['basicAuth']
153
+
154
+ new_options = opts.merge(
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => return_type
161
+ )
162
+
163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: ContentRefsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+ end
170
+ end
@@ -13,78 +13,14 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpOstreeClient
16
- class ContentOstreeApi
16
+ class ContentSummariesApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create an ostree content
23
- # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
24
- # @param ostree_ostree_content [OstreeOstreeContent]
25
- # @param [Hash] opts the optional parameters
26
- # @return [OstreeOstreeContentResponse]
27
- def create(ostree_ostree_content, opts = {})
28
- data, _status_code, _headers = create_with_http_info(ostree_ostree_content, opts)
29
- data
30
- end
31
-
32
- # Create an ostree content
33
- # Perform bookkeeping when saving Content. \&quot;Artifacts\&quot; need to be popped off and saved indpendently, as they are not actually part of the Content model.
34
- # @param ostree_ostree_content [OstreeOstreeContent]
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(OstreeOstreeContentResponse, Integer, Hash)>] OstreeOstreeContentResponse data, response status code and response headers
37
- def create_with_http_info(ostree_ostree_content, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: ContentOstreeApi.create ...'
40
- end
41
- # verify the required parameter 'ostree_ostree_content' is set
42
- if @api_client.config.client_side_validation && ostree_ostree_content.nil?
43
- fail ArgumentError, "Missing the required parameter 'ostree_ostree_content' when calling ContentOstreeApi.create"
44
- end
45
- # resource path
46
- local_var_path = '/pulp/api/v3/content/ostree/ostree/'
47
-
48
- # query parameters
49
- query_params = opts[:query_params] || {}
50
-
51
- # header parameters
52
- header_params = opts[:header_params] || {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
- # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
-
58
- # form parameters
59
- form_params = opts[:form_params] || {}
60
-
61
- # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(ostree_ostree_content)
63
-
64
- # return_type
65
- return_type = opts[:return_type] || 'OstreeOstreeContentResponse'
66
-
67
- # auth_names
68
- auth_names = opts[:auth_names] || ['basicAuth']
69
-
70
- new_options = opts.merge(
71
- :header_params => header_params,
72
- :query_params => query_params,
73
- :form_params => form_params,
74
- :body => post_body,
75
- :auth_names => auth_names,
76
- :return_type => return_type
77
- )
78
-
79
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
- if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: ContentOstreeApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- end
83
- return data, status_code, headers
84
- end
85
-
86
- # List ostree contents
87
- # A ViewSet for OstreeContent. Define endpoint name which will appear in the API endpoint for this content type. For example:: https://pulp.example.com/pulp/api/v3/content/ostree/units/ Also specify queryset and serializer for OstreeContent.
22
+ # List ostree summarys
23
+ # A ViewSet class for OSTree repository summary files.
88
24
  # @param [Hash] opts the optional parameters
89
25
  # @option opts [Integer] :limit Number of results to return per page.
90
26
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -94,14 +30,14 @@ module PulpOstreeClient
94
30
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
95
31
  # @option opts [String] :fields A list of fields to include in the response.
96
32
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
97
- # @return [PaginatedostreeOstreeContentResponseList]
33
+ # @return [PaginatedostreeOstreeSummaryResponseList]
98
34
  def list(opts = {})
99
35
  data, _status_code, _headers = list_with_http_info(opts)
100
36
  data
101
37
  end
102
38
 
103
- # List ostree contents
104
- # A ViewSet for OstreeContent. Define endpoint name which will appear in the API endpoint for this content type. For example:: https://pulp.example.com/pulp/api/v3/content/ostree/units/ Also specify queryset and serializer for OstreeContent.
39
+ # List ostree summarys
40
+ # A ViewSet class for OSTree repository summary files.
105
41
  # @param [Hash] opts the optional parameters
106
42
  # @option opts [Integer] :limit Number of results to return per page.
107
43
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -111,13 +47,13 @@ module PulpOstreeClient
111
47
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
112
48
  # @option opts [String] :fields A list of fields to include in the response.
113
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
114
- # @return [Array<(PaginatedostreeOstreeContentResponseList, Integer, Hash)>] PaginatedostreeOstreeContentResponseList data, response status code and response headers
50
+ # @return [Array<(PaginatedostreeOstreeSummaryResponseList, Integer, Hash)>] PaginatedostreeOstreeSummaryResponseList data, response status code and response headers
115
51
  def list_with_http_info(opts = {})
116
52
  if @api_client.config.debugging
117
- @api_client.config.logger.debug 'Calling API: ContentOstreeApi.list ...'
53
+ @api_client.config.logger.debug 'Calling API: ContentSummariesApi.list ...'
118
54
  end
119
55
  # resource path
120
- local_var_path = '/pulp/api/v3/content/ostree/ostree/'
56
+ local_var_path = '/pulp/api/v3/content/ostree/summaries/'
121
57
 
122
58
  # query parameters
123
59
  query_params = opts[:query_params] || {}
@@ -142,7 +78,7 @@ module PulpOstreeClient
142
78
  post_body = opts[:body]
143
79
 
144
80
  # return_type
145
- return_type = opts[:return_type] || 'PaginatedostreeOstreeContentResponseList'
81
+ return_type = opts[:return_type] || 'PaginatedostreeOstreeSummaryResponseList'
146
82
 
147
83
  # auth_names
148
84
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -158,40 +94,40 @@ module PulpOstreeClient
158
94
 
159
95
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
160
96
  if @api_client.config.debugging
161
- @api_client.config.logger.debug "API called: ContentOstreeApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ @api_client.config.logger.debug "API called: ContentSummariesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
162
98
  end
163
99
  return data, status_code, headers
164
100
  end
165
101
 
166
- # Inspect an ostree content
167
- # A ViewSet for OstreeContent. Define endpoint name which will appear in the API endpoint for this content type. For example:: https://pulp.example.com/pulp/api/v3/content/ostree/units/ Also specify queryset and serializer for OstreeContent.
168
- # @param ostree_ostree_content_href [String]
102
+ # Inspect an ostree summary
103
+ # A ViewSet class for OSTree repository summary files.
104
+ # @param ostree_ostree_summary_href [String]
169
105
  # @param [Hash] opts the optional parameters
170
106
  # @option opts [String] :fields A list of fields to include in the response.
171
107
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
172
- # @return [OstreeOstreeContentResponse]
173
- def read(ostree_ostree_content_href, opts = {})
174
- data, _status_code, _headers = read_with_http_info(ostree_ostree_content_href, opts)
108
+ # @return [OstreeOstreeSummaryResponse]
109
+ def read(ostree_ostree_summary_href, opts = {})
110
+ data, _status_code, _headers = read_with_http_info(ostree_ostree_summary_href, opts)
175
111
  data
176
112
  end
177
113
 
178
- # Inspect an ostree content
179
- # A ViewSet for OstreeContent. Define endpoint name which will appear in the API endpoint for this content type. For example:: https://pulp.example.com/pulp/api/v3/content/ostree/units/ Also specify queryset and serializer for OstreeContent.
180
- # @param ostree_ostree_content_href [String]
114
+ # Inspect an ostree summary
115
+ # A ViewSet class for OSTree repository summary files.
116
+ # @param ostree_ostree_summary_href [String]
181
117
  # @param [Hash] opts the optional parameters
182
118
  # @option opts [String] :fields A list of fields to include in the response.
183
119
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
184
- # @return [Array<(OstreeOstreeContentResponse, Integer, Hash)>] OstreeOstreeContentResponse data, response status code and response headers
185
- def read_with_http_info(ostree_ostree_content_href, opts = {})
120
+ # @return [Array<(OstreeOstreeSummaryResponse, Integer, Hash)>] OstreeOstreeSummaryResponse data, response status code and response headers
121
+ def read_with_http_info(ostree_ostree_summary_href, opts = {})
186
122
  if @api_client.config.debugging
187
- @api_client.config.logger.debug 'Calling API: ContentOstreeApi.read ...'
123
+ @api_client.config.logger.debug 'Calling API: ContentSummariesApi.read ...'
188
124
  end
189
- # verify the required parameter 'ostree_ostree_content_href' is set
190
- if @api_client.config.client_side_validation && ostree_ostree_content_href.nil?
191
- fail ArgumentError, "Missing the required parameter 'ostree_ostree_content_href' when calling ContentOstreeApi.read"
125
+ # verify the required parameter 'ostree_ostree_summary_href' is set
126
+ if @api_client.config.client_side_validation && ostree_ostree_summary_href.nil?
127
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_summary_href' when calling ContentSummariesApi.read"
192
128
  end
193
129
  # resource path
194
- local_var_path = '{ostree_ostree_content_href}'.sub('{' + 'ostree_ostree_content_href' + '}', CGI.escape(ostree_ostree_content_href.to_s).gsub('%2F', '/'))
130
+ local_var_path = '{ostree_ostree_summary_href}'.sub('{' + 'ostree_ostree_summary_href' + '}', CGI.escape(ostree_ostree_summary_href.to_s).gsub('%2F', '/'))
195
131
 
196
132
  # query parameters
197
133
  query_params = opts[:query_params] || {}
@@ -210,7 +146,7 @@ module PulpOstreeClient
210
146
  post_body = opts[:body]
211
147
 
212
148
  # return_type
213
- return_type = opts[:return_type] || 'OstreeOstreeContentResponse'
149
+ return_type = opts[:return_type] || 'OstreeOstreeSummaryResponse'
214
150
 
215
151
  # auth_names
216
152
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -226,7 +162,7 @@ module PulpOstreeClient
226
162
 
227
163
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
228
164
  if @api_client.config.debugging
229
- @api_client.config.logger.debug "API called: ContentOstreeApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
165
+ @api_client.config.logger.debug "API called: ContentSummariesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
230
166
  end
231
167
  return data, status_code, headers
232
168
  end
@@ -146,7 +146,7 @@ module PulpOstreeClient
146
146
  end
147
147
 
148
148
  # List ostree distributions
149
- # A ViewSet for OstreeDistribution. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
149
+ # A ViewSet class for OSTree distributions.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [String] :base_path
152
152
  # @option opts [String] :base_path__contains Filter results where base_path contains value
@@ -170,7 +170,7 @@ module PulpOstreeClient
170
170
  end
171
171
 
172
172
  # List ostree distributions
173
- # A ViewSet for OstreeDistribution. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
173
+ # A ViewSet class for OSTree distributions.
174
174
  # @param [Hash] opts the optional parameters
175
175
  # @option opts [String] :base_path
176
176
  # @option opts [String] :base_path__contains Filter results where base_path contains value
@@ -317,7 +317,7 @@ module PulpOstreeClient
317
317
  end
318
318
 
319
319
  # Inspect an ostree distribution
320
- # A ViewSet for OstreeDistribution. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
320
+ # A ViewSet class for OSTree distributions.
321
321
  # @param ostree_ostree_distribution_href [String]
322
322
  # @param [Hash] opts the optional parameters
323
323
  # @option opts [String] :fields A list of fields to include in the response.
@@ -329,7 +329,7 @@ module PulpOstreeClient
329
329
  end
330
330
 
331
331
  # Inspect an ostree distribution
332
- # A ViewSet for OstreeDistribution. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
332
+ # A ViewSet class for OSTree distributions.
333
333
  # @param ostree_ostree_distribution_href [String]
334
334
  # @param [Hash] opts the optional parameters
335
335
  # @option opts [String] :fields A list of fields to include in the response.
@@ -20,7 +20,7 @@ module PulpOstreeClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create an ostree remote
23
- # A ViewSet for OstreeRemote. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
+ # A ViewSet class for OSTree remote repositories.
24
24
  # @param ostree_ostree_remote [OstreeOstreeRemote]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [OstreeOstreeRemoteResponse]
@@ -30,7 +30,7 @@ module PulpOstreeClient
30
30
  end
31
31
 
32
32
  # Create an ostree remote
33
- # A ViewSet for OstreeRemote. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
33
+ # A ViewSet class for OSTree remote repositories.
34
34
  # @param ostree_ostree_remote [OstreeOstreeRemote]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(OstreeOstreeRemoteResponse, Integer, Hash)>] OstreeOstreeRemoteResponse data, response status code and response headers
@@ -146,7 +146,7 @@ module PulpOstreeClient
146
146
  end
147
147
 
148
148
  # List ostree remotes
149
- # A ViewSet for OstreeRemote. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
149
+ # A ViewSet class for OSTree remote repositories.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
152
  # @option opts [String] :name
@@ -172,7 +172,7 @@ module PulpOstreeClient
172
172
  end
173
173
 
174
174
  # List ostree remotes
175
- # A ViewSet for OstreeRemote. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
175
+ # A ViewSet class for OSTree remote repositories.
176
176
  # @param [Hash] opts the optional parameters
177
177
  # @option opts [Integer] :limit Number of results to return per page.
178
178
  # @option opts [String] :name
@@ -323,7 +323,7 @@ module PulpOstreeClient
323
323
  end
324
324
 
325
325
  # Inspect an ostree remote
326
- # A ViewSet for OstreeRemote. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
326
+ # A ViewSet class for OSTree remote repositories.
327
327
  # @param ostree_ostree_remote_href [String]
328
328
  # @param [Hash] opts the optional parameters
329
329
  # @option opts [String] :fields A list of fields to include in the response.
@@ -335,7 +335,7 @@ module PulpOstreeClient
335
335
  end
336
336
 
337
337
  # Inspect an ostree remote
338
- # A ViewSet for OstreeRemote. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
338
+ # A ViewSet class for OSTree remote repositories.
339
339
  # @param ostree_ostree_remote_href [String]
340
340
  # @param [Hash] opts the optional parameters
341
341
  # @option opts [String] :fields A list of fields to include in the response.