pulp_ostree_client 2.0.0a1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +174 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentCommitsApi.md +138 -0
  7. data/docs/ContentConfigsApi.md +138 -0
  8. data/docs/ContentObjectsApi.md +138 -0
  9. data/docs/ContentRefsApi.md +138 -0
  10. data/docs/ContentSummariesApi.md +138 -0
  11. data/docs/ContentSummary.md +21 -0
  12. data/docs/ContentSummaryResponse.md +21 -0
  13. data/docs/DistributionsOstreeApi.md +372 -0
  14. data/docs/OstreeOstreeCommitResponse.md +25 -0
  15. data/docs/OstreeOstreeConfigResponse.md +21 -0
  16. data/docs/OstreeOstreeDistribution.md +27 -0
  17. data/docs/OstreeOstreeDistributionResponse.md +33 -0
  18. data/docs/OstreeOstreeObjectResponse.md +27 -0
  19. data/docs/OstreeOstreeRefResponse.md +25 -0
  20. data/docs/OstreeOstreeRemote.md +59 -0
  21. data/docs/OstreeOstreeRemoteResponse.md +55 -0
  22. data/docs/OstreeOstreeRepository.md +25 -0
  23. data/docs/OstreeOstreeRepositoryResponse.md +33 -0
  24. data/docs/OstreeOstreeSummaryResponse.md +21 -0
  25. data/docs/OstreeRepoImport.md +23 -0
  26. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  27. data/docs/PaginatedostreeOstreeCommitResponseList.md +23 -0
  28. data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
  29. data/docs/PaginatedostreeOstreeDistributionResponseList.md +23 -0
  30. data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
  31. data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
  32. data/docs/PaginatedostreeOstreeRemoteResponseList.md +23 -0
  33. data/docs/PaginatedostreeOstreeRepositoryResponseList.md +23 -0
  34. data/docs/PaginatedostreeOstreeSummaryResponseList.md +23 -0
  35. data/docs/PatchedostreeOstreeDistribution.md +27 -0
  36. data/docs/PatchedostreeOstreeRemote.md +59 -0
  37. data/docs/PatchedostreeOstreeRepository.md +25 -0
  38. data/docs/PolicyEnum.md +16 -0
  39. data/docs/RemotesOstreeApi.md +376 -0
  40. data/docs/RepositoriesOstreeApi.md +532 -0
  41. data/docs/RepositoriesOstreeVersionsApi.md +271 -0
  42. data/docs/RepositoryAddRemoveContent.md +21 -0
  43. data/docs/RepositorySyncURL.md +19 -0
  44. data/docs/RepositoryVersion.md +17 -0
  45. data/docs/RepositoryVersionResponse.md +27 -0
  46. data/git_push.sh +58 -0
  47. data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
  48. data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
  49. data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
  50. data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
  51. data/lib/pulp_ostree_client/api/content_summaries_api.rb +170 -0
  52. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +457 -0
  53. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +463 -0
  54. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +655 -0
  55. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +339 -0
  56. data/lib/pulp_ostree_client/api_client.rb +406 -0
  57. data/lib/pulp_ostree_client/api_error.rb +57 -0
  58. data/lib/pulp_ostree_client/configuration.rb +250 -0
  59. data/lib/pulp_ostree_client/models/async_operation_response.rb +213 -0
  60. data/lib/pulp_ostree_client/models/content_summary.rb +246 -0
  61. data/lib/pulp_ostree_client/models/content_summary_response.rb +246 -0
  62. data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
  63. data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +232 -0
  64. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +270 -0
  65. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +299 -0
  66. data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
  67. data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +260 -0
  68. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +536 -0
  69. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +510 -0
  70. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +270 -0
  71. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +307 -0
  72. data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +232 -0
  73. data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
  74. data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +237 -0
  75. data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +237 -0
  76. data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
  77. data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +237 -0
  78. data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
  79. data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +237 -0
  80. data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +237 -0
  81. data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +237 -0
  82. data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +237 -0
  83. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +260 -0
  84. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +526 -0
  85. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +265 -0
  86. data/lib/pulp_ostree_client/models/policy_enum.rb +36 -0
  87. data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +232 -0
  88. data/lib/pulp_ostree_client/models/repository_sync_url.rb +220 -0
  89. data/lib/pulp_ostree_client/models/repository_version.rb +208 -0
  90. data/lib/pulp_ostree_client/models/repository_version_response.rb +255 -0
  91. data/lib/pulp_ostree_client/version.rb +15 -0
  92. data/lib/pulp_ostree_client.rb +80 -0
  93. data/pulp_ostree_client.gemspec +39 -0
  94. data/spec/api/content_commits_api_spec.rb +68 -0
  95. data/spec/api/content_configs_api_spec.rb +68 -0
  96. data/spec/api/content_objects_api_spec.rb +68 -0
  97. data/spec/api/content_refs_api_spec.rb +68 -0
  98. data/spec/api/content_summaries_api_spec.rb +68 -0
  99. data/spec/api/distributions_ostree_api_spec.rb +125 -0
  100. data/spec/api/remotes_ostree_api_spec.rb +127 -0
  101. data/spec/api/repositories_ostree_api_spec.rb +160 -0
  102. data/spec/api/repositories_ostree_versions_api_spec.rb +104 -0
  103. data/spec/api_client_spec.rb +188 -0
  104. data/spec/configuration_spec.rb +42 -0
  105. data/spec/models/async_operation_response_spec.rb +41 -0
  106. data/spec/models/content_summary_response_spec.rb +53 -0
  107. data/spec/models/content_summary_spec.rb +53 -0
  108. data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
  109. data/spec/models/ostree_ostree_config_response_spec.rb +53 -0
  110. data/spec/models/ostree_ostree_distribution_response_spec.rb +89 -0
  111. data/spec/models/ostree_ostree_distribution_spec.rb +71 -0
  112. data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
  113. data/spec/models/ostree_ostree_ref_response_spec.rb +65 -0
  114. data/spec/models/ostree_ostree_remote_response_spec.rb +155 -0
  115. data/spec/models/ostree_ostree_remote_spec.rb +167 -0
  116. data/spec/models/ostree_ostree_repository_response_spec.rb +89 -0
  117. data/spec/models/ostree_ostree_repository_spec.rb +65 -0
  118. data/spec/models/ostree_ostree_summary_response_spec.rb +53 -0
  119. data/spec/models/ostree_repo_import_spec.rb +59 -0
  120. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  121. data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +59 -0
  122. data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
  123. data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +59 -0
  124. data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
  125. data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
  126. data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +59 -0
  127. data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +59 -0
  128. data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +59 -0
  129. data/spec/models/patchedostree_ostree_distribution_spec.rb +71 -0
  130. data/spec/models/patchedostree_ostree_remote_spec.rb +167 -0
  131. data/spec/models/patchedostree_ostree_repository_spec.rb +65 -0
  132. data/spec/models/policy_enum_spec.rb +35 -0
  133. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  134. data/spec/models/repository_sync_url_spec.rb +47 -0
  135. data/spec/models/repository_version_response_spec.rb +71 -0
  136. data/spec/models/repository_version_spec.rb +41 -0
  137. data/spec/spec_helper.rb +111 -0
  138. metadata +277 -0
@@ -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 ContentConfigsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List ostree configs
23
+ # A ViewSet class for OSTree repository configurations.
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 [PaginatedostreeOstreeConfigResponseList]
34
+ def list(opts = {})
35
+ data, _status_code, _headers = list_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # List ostree configs
40
+ # A ViewSet class for OSTree repository configurations.
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<(PaginatedostreeOstreeConfigResponseList, Integer, Hash)>] PaginatedostreeOstreeConfigResponseList 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: ContentConfigsApi.list ...'
54
+ end
55
+ # resource path
56
+ local_var_path = '/pulp/api/v3/content/ostree/configs/'
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] || 'PaginatedostreeOstreeConfigResponseList'
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: ContentConfigsApi#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 config
103
+ # A ViewSet class for OSTree repository configurations.
104
+ # @param ostree_ostree_config_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 [OstreeOstreeConfigResponse]
109
+ def read(ostree_ostree_config_href, opts = {})
110
+ data, _status_code, _headers = read_with_http_info(ostree_ostree_config_href, opts)
111
+ data
112
+ end
113
+
114
+ # Inspect an ostree config
115
+ # A ViewSet class for OSTree repository configurations.
116
+ # @param ostree_ostree_config_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<(OstreeOstreeConfigResponse, Integer, Hash)>] OstreeOstreeConfigResponse data, response status code and response headers
121
+ def read_with_http_info(ostree_ostree_config_href, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: ContentConfigsApi.read ...'
124
+ end
125
+ # verify the required parameter 'ostree_ostree_config_href' is set
126
+ if @api_client.config.client_side_validation && ostree_ostree_config_href.nil?
127
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_config_href' when calling ContentConfigsApi.read"
128
+ end
129
+ # resource path
130
+ local_var_path = '{ostree_ostree_config_href}'.sub('{' + 'ostree_ostree_config_href' + '}', CGI.escape(ostree_ostree_config_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] || 'OstreeOstreeConfigResponse'
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: ContentConfigsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+ end
170
+ end
@@ -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 ContentObjectsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List ostree objects
23
+ # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
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 [PaginatedostreeOstreeObjectResponseList]
34
+ def list(opts = {})
35
+ data, _status_code, _headers = list_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # List ostree objects
40
+ # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
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<(PaginatedostreeOstreeObjectResponseList, Integer, Hash)>] PaginatedostreeOstreeObjectResponseList 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: ContentObjectsApi.list ...'
54
+ end
55
+ # resource path
56
+ local_var_path = '/pulp/api/v3/content/ostree/objects/'
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] || 'PaginatedostreeOstreeObjectResponseList'
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: ContentObjectsApi#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 object
103
+ # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
104
+ # @param ostree_ostree_object_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 [OstreeOstreeObjectResponse]
109
+ def read(ostree_ostree_object_href, opts = {})
110
+ data, _status_code, _headers = read_with_http_info(ostree_ostree_object_href, opts)
111
+ data
112
+ end
113
+
114
+ # Inspect an ostree object
115
+ # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
116
+ # @param ostree_ostree_object_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<(OstreeOstreeObjectResponse, Integer, Hash)>] OstreeOstreeObjectResponse data, response status code and response headers
121
+ def read_with_http_info(ostree_ostree_object_href, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: ContentObjectsApi.read ...'
124
+ end
125
+ # verify the required parameter 'ostree_ostree_object_href' is set
126
+ if @api_client.config.client_side_validation && ostree_ostree_object_href.nil?
127
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_object_href' when calling ContentObjectsApi.read"
128
+ end
129
+ # resource path
130
+ local_var_path = '{ostree_ostree_object_href}'.sub('{' + 'ostree_ostree_object_href' + '}', CGI.escape(ostree_ostree_object_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] || 'OstreeOstreeObjectResponse'
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: ContentObjectsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+ end
170
+ end
@@ -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