pulp_ostree_client 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -4
- data/docs/ContentCommitsApi.md +2 -0
- data/docs/ContentConfigsApi.md +2 -0
- data/docs/ContentContentApi.md +56 -0
- data/docs/ContentObjectsApi.md +2 -0
- data/docs/ContentRefsApi.md +2 -0
- data/docs/ContentSummariesApi.md +2 -0
- data/docs/DistributionsOstreeApi.md +232 -0
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/OstreeOstreeContent.md +23 -0
- data/docs/RemotesOstreeApi.md +232 -0
- data/docs/RepositoriesOstreeApi.md +232 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_configs_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_content_api.rb +67 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_refs_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +3 -0
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ostree_client/models/nested_role.rb +253 -0
- data/lib/pulp_ostree_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ostree_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +289 -0
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +5 -0
- data/spec/api/content_commits_api_spec.rb +1 -0
- data/spec/api/content_configs_api_spec.rb +1 -0
- data/spec/api/content_content_api_spec.rb +13 -0
- data/spec/api/content_objects_api_spec.rb +1 -0
- data/spec/api/content_refs_api_spec.rb +1 -0
- data/spec/api/content_summaries_api_spec.rb +1 -0
- data/spec/api/distributions_ostree_api_spec.rb +54 -0
- data/spec/api/remotes_ostree_api_spec.rb +54 -0
- data/spec/api/repositories_ostree_api_spec.rb +54 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/ostree_ostree_content_spec.rb +59 -0
- metadata +56 -36
@@ -19,12 +19,77 @@ module PulpOstreeClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create an ostree content
|
23
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
|
+
# @param ostree_ostree_content [OstreeOstreeContent]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AsyncOperationResponse]
|
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
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
34
|
+
# @param ostree_ostree_content [OstreeOstreeContent]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse 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: ContentContentApi.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 ContentContentApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/content/ostree/content/'
|
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] || 'AsyncOperationResponse'
|
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: ContentContentApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
22
86
|
# List ostree contents
|
23
87
|
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
24
88
|
# @param [Hash] opts the optional parameters
|
25
89
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
90
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
91
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
92
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
28
93
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
29
94
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
30
95
|
# @option opts [String] :q
|
@@ -45,6 +110,7 @@ module PulpOstreeClient
|
|
45
110
|
# @option opts [Integer] :limit Number of results to return per page.
|
46
111
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
47
112
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
113
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
48
114
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
49
115
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
50
116
|
# @option opts [String] :q
|
@@ -70,6 +136,7 @@ module PulpOstreeClient
|
|
70
136
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
71
137
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
72
138
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
139
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
73
140
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
74
141
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
75
142
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
@@ -26,6 +26,7 @@ module PulpOstreeClient
|
|
26
26
|
# @option opts [Integer] :limit Number of results to return per page.
|
27
27
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
28
28
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `typ` - Typ * `-typ` - Typ (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
29
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
29
30
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
30
31
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
31
32
|
# @option opts [String] :q
|
@@ -47,6 +48,7 @@ module PulpOstreeClient
|
|
47
48
|
# @option opts [Integer] :limit Number of results to return per page.
|
48
49
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
49
50
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `typ` - Typ * `-typ` - Typ (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
51
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
50
52
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
51
53
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
52
54
|
# @option opts [String] :q
|
@@ -73,6 +75,7 @@ module PulpOstreeClient
|
|
73
75
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
74
76
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
75
77
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
78
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
76
79
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
77
80
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
78
81
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
@@ -35,6 +35,7 @@ module PulpOstreeClient
|
|
35
35
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
36
36
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
37
37
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
38
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
38
39
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
39
40
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
40
41
|
# @option opts [String] :q
|
@@ -65,6 +66,7 @@ module PulpOstreeClient
|
|
65
66
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
66
67
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
68
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
69
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
68
70
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
69
71
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
70
72
|
# @option opts [String] :q
|
@@ -100,6 +102,7 @@ module PulpOstreeClient
|
|
100
102
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
101
103
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
102
104
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
105
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
103
106
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
104
107
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
105
108
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
@@ -25,6 +25,7 @@ module PulpOstreeClient
|
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
26
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
27
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
28
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
28
29
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
29
30
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
30
31
|
# @option opts [String] :q
|
@@ -45,6 +46,7 @@ module PulpOstreeClient
|
|
45
46
|
# @option opts [Integer] :limit Number of results to return per page.
|
46
47
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
47
48
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
49
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
48
50
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
49
51
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
50
52
|
# @option opts [String] :q
|
@@ -70,6 +72,7 @@ module PulpOstreeClient
|
|
70
72
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
71
73
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
72
74
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
75
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
73
76
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
74
77
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
75
78
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
@@ -19,6 +19,76 @@ module PulpOstreeClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
23
|
+
# Add a role for this object to users/groups.
|
24
|
+
# @param ostree_ostree_distribution_href [String]
|
25
|
+
# @param nested_role [NestedRole]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [NestedRoleResponse]
|
28
|
+
def add_role(ostree_ostree_distribution_href, nested_role, opts = {})
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(ostree_ostree_distribution_href, nested_role, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add a role
|
34
|
+
# Add a role for this object to users/groups.
|
35
|
+
# @param ostree_ostree_distribution_href [String]
|
36
|
+
# @param nested_role [NestedRole]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
|
+
def add_role_with_http_info(ostree_ostree_distribution_href, nested_role, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.add_role ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'ostree_ostree_distribution_href' is set
|
44
|
+
if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.add_role"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'nested_role' is set
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsOstreeApi.add_role"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{ostree_ostree_distribution_href}add_role/'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: DistributionsOstreeApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
22
92
|
# Create an ostree distribution
|
23
93
|
# Trigger an asynchronous create task
|
24
94
|
# @param ostree_ostree_distribution [OstreeOstreeDistribution]
|
@@ -280,6 +350,142 @@ module PulpOstreeClient
|
|
280
350
|
return data, status_code, headers
|
281
351
|
end
|
282
352
|
|
353
|
+
# List roles
|
354
|
+
# List roles assigned to this object.
|
355
|
+
# @param ostree_ostree_distribution_href [String]
|
356
|
+
# @param [Hash] opts the optional parameters
|
357
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
358
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
359
|
+
# @return [ObjectRolesResponse]
|
360
|
+
def list_roles(ostree_ostree_distribution_href, opts = {})
|
361
|
+
data, _status_code, _headers = list_roles_with_http_info(ostree_ostree_distribution_href, opts)
|
362
|
+
data
|
363
|
+
end
|
364
|
+
|
365
|
+
# List roles
|
366
|
+
# List roles assigned to this object.
|
367
|
+
# @param ostree_ostree_distribution_href [String]
|
368
|
+
# @param [Hash] opts the optional parameters
|
369
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
370
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
371
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
372
|
+
def list_roles_with_http_info(ostree_ostree_distribution_href, opts = {})
|
373
|
+
if @api_client.config.debugging
|
374
|
+
@api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.list_roles ...'
|
375
|
+
end
|
376
|
+
# verify the required parameter 'ostree_ostree_distribution_href' is set
|
377
|
+
if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
|
378
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.list_roles"
|
379
|
+
end
|
380
|
+
# resource path
|
381
|
+
local_var_path = '{ostree_ostree_distribution_href}list_roles/'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
|
382
|
+
|
383
|
+
# query parameters
|
384
|
+
query_params = opts[:query_params] || {}
|
385
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
386
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
387
|
+
|
388
|
+
# header parameters
|
389
|
+
header_params = opts[:header_params] || {}
|
390
|
+
# HTTP header 'Accept' (if needed)
|
391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
392
|
+
|
393
|
+
# form parameters
|
394
|
+
form_params = opts[:form_params] || {}
|
395
|
+
|
396
|
+
# http body (model)
|
397
|
+
post_body = opts[:body]
|
398
|
+
|
399
|
+
# return_type
|
400
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
401
|
+
|
402
|
+
# auth_names
|
403
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
404
|
+
|
405
|
+
new_options = opts.merge(
|
406
|
+
:header_params => header_params,
|
407
|
+
:query_params => query_params,
|
408
|
+
:form_params => form_params,
|
409
|
+
:body => post_body,
|
410
|
+
:auth_names => auth_names,
|
411
|
+
:return_type => return_type
|
412
|
+
)
|
413
|
+
|
414
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
415
|
+
if @api_client.config.debugging
|
416
|
+
@api_client.config.logger.debug "API called: DistributionsOstreeApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
417
|
+
end
|
418
|
+
return data, status_code, headers
|
419
|
+
end
|
420
|
+
|
421
|
+
# List user permissions
|
422
|
+
# List permissions available to the current user on this object.
|
423
|
+
# @param ostree_ostree_distribution_href [String]
|
424
|
+
# @param [Hash] opts the optional parameters
|
425
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
426
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
427
|
+
# @return [MyPermissionsResponse]
|
428
|
+
def my_permissions(ostree_ostree_distribution_href, opts = {})
|
429
|
+
data, _status_code, _headers = my_permissions_with_http_info(ostree_ostree_distribution_href, opts)
|
430
|
+
data
|
431
|
+
end
|
432
|
+
|
433
|
+
# List user permissions
|
434
|
+
# List permissions available to the current user on this object.
|
435
|
+
# @param ostree_ostree_distribution_href [String]
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
438
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
439
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
440
|
+
def my_permissions_with_http_info(ostree_ostree_distribution_href, opts = {})
|
441
|
+
if @api_client.config.debugging
|
442
|
+
@api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.my_permissions ...'
|
443
|
+
end
|
444
|
+
# verify the required parameter 'ostree_ostree_distribution_href' is set
|
445
|
+
if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
|
446
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.my_permissions"
|
447
|
+
end
|
448
|
+
# resource path
|
449
|
+
local_var_path = '{ostree_ostree_distribution_href}my_permissions/'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
|
450
|
+
|
451
|
+
# query parameters
|
452
|
+
query_params = opts[:query_params] || {}
|
453
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
454
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
455
|
+
|
456
|
+
# header parameters
|
457
|
+
header_params = opts[:header_params] || {}
|
458
|
+
# HTTP header 'Accept' (if needed)
|
459
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
460
|
+
|
461
|
+
# form parameters
|
462
|
+
form_params = opts[:form_params] || {}
|
463
|
+
|
464
|
+
# http body (model)
|
465
|
+
post_body = opts[:body]
|
466
|
+
|
467
|
+
# return_type
|
468
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
469
|
+
|
470
|
+
# auth_names
|
471
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
472
|
+
|
473
|
+
new_options = opts.merge(
|
474
|
+
:header_params => header_params,
|
475
|
+
:query_params => query_params,
|
476
|
+
:form_params => form_params,
|
477
|
+
:body => post_body,
|
478
|
+
:auth_names => auth_names,
|
479
|
+
:return_type => return_type
|
480
|
+
)
|
481
|
+
|
482
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
483
|
+
if @api_client.config.debugging
|
484
|
+
@api_client.config.logger.debug "API called: DistributionsOstreeApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
485
|
+
end
|
486
|
+
return data, status_code, headers
|
487
|
+
end
|
488
|
+
|
283
489
|
# Update an ostree distribution
|
284
490
|
# Trigger an asynchronous partial update task
|
285
491
|
# @param ostree_ostree_distribution_href [String]
|
@@ -418,6 +624,76 @@ module PulpOstreeClient
|
|
418
624
|
return data, status_code, headers
|
419
625
|
end
|
420
626
|
|
627
|
+
# Remove a role
|
628
|
+
# Remove a role for this object from users/groups.
|
629
|
+
# @param ostree_ostree_distribution_href [String]
|
630
|
+
# @param nested_role [NestedRole]
|
631
|
+
# @param [Hash] opts the optional parameters
|
632
|
+
# @return [NestedRoleResponse]
|
633
|
+
def remove_role(ostree_ostree_distribution_href, nested_role, opts = {})
|
634
|
+
data, _status_code, _headers = remove_role_with_http_info(ostree_ostree_distribution_href, nested_role, opts)
|
635
|
+
data
|
636
|
+
end
|
637
|
+
|
638
|
+
# Remove a role
|
639
|
+
# Remove a role for this object from users/groups.
|
640
|
+
# @param ostree_ostree_distribution_href [String]
|
641
|
+
# @param nested_role [NestedRole]
|
642
|
+
# @param [Hash] opts the optional parameters
|
643
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
644
|
+
def remove_role_with_http_info(ostree_ostree_distribution_href, nested_role, opts = {})
|
645
|
+
if @api_client.config.debugging
|
646
|
+
@api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.remove_role ...'
|
647
|
+
end
|
648
|
+
# verify the required parameter 'ostree_ostree_distribution_href' is set
|
649
|
+
if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
|
650
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.remove_role"
|
651
|
+
end
|
652
|
+
# verify the required parameter 'nested_role' is set
|
653
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
654
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsOstreeApi.remove_role"
|
655
|
+
end
|
656
|
+
# resource path
|
657
|
+
local_var_path = '{ostree_ostree_distribution_href}remove_role/'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
|
658
|
+
|
659
|
+
# query parameters
|
660
|
+
query_params = opts[:query_params] || {}
|
661
|
+
|
662
|
+
# header parameters
|
663
|
+
header_params = opts[:header_params] || {}
|
664
|
+
# HTTP header 'Accept' (if needed)
|
665
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
666
|
+
# HTTP header 'Content-Type'
|
667
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
668
|
+
|
669
|
+
# form parameters
|
670
|
+
form_params = opts[:form_params] || {}
|
671
|
+
|
672
|
+
# http body (model)
|
673
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
674
|
+
|
675
|
+
# return_type
|
676
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
677
|
+
|
678
|
+
# auth_names
|
679
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
680
|
+
|
681
|
+
new_options = opts.merge(
|
682
|
+
:header_params => header_params,
|
683
|
+
:query_params => query_params,
|
684
|
+
:form_params => form_params,
|
685
|
+
:body => post_body,
|
686
|
+
:auth_names => auth_names,
|
687
|
+
:return_type => return_type
|
688
|
+
)
|
689
|
+
|
690
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
691
|
+
if @api_client.config.debugging
|
692
|
+
@api_client.config.logger.debug "API called: DistributionsOstreeApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
693
|
+
end
|
694
|
+
return data, status_code, headers
|
695
|
+
end
|
696
|
+
|
421
697
|
# Set a label
|
422
698
|
# Set a single pulp_label on the object to a specific value or null.
|
423
699
|
# @param ostree_ostree_distribution_href [String]
|