Class: Authentik::Api::SsfApi
- Inherits:
-
Object
- Object
- Authentik::Api::SsfApi
- Defined in:
- lib/authentik/api/api/ssf_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(api_client = ApiClient.default) ⇒ SsfApi
constructor
A new instance of SsfApi.
-
#ssf_streams_list(opts = {}) ⇒ PaginatedSSFStreamList
SSFStream Viewset.
-
#ssf_streams_list_with_http_info(opts = {}) ⇒ Array<(PaginatedSSFStreamList, Integer, Hash)>
SSFStream Viewset.
-
#ssf_streams_retrieve(uuid, opts = {}) ⇒ SSFStream
SSFStream Viewset.
-
#ssf_streams_retrieve_with_http_info(uuid, opts = {}) ⇒ Array<(SSFStream, Integer, Hash)>
SSFStream Viewset.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
11 12 13 |
# File 'lib/authentik/api/api/ssf_api.rb', line 11 def api_client @api_client end |
Instance Method Details
#ssf_streams_list(opts = {}) ⇒ PaginatedSSFStreamList
SSFStream Viewset
26 27 28 29 |
# File 'lib/authentik/api/api/ssf_api.rb', line 26 def ssf_streams_list(opts = {}) data, _status_code, _headers = ssf_streams_list_with_http_info(opts) data end |
#ssf_streams_list_with_http_info(opts = {}) ⇒ Array<(PaginatedSSFStreamList, Integer, Hash)>
SSFStream Viewset
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/authentik/api/api/ssf_api.rb', line 41 def ssf_streams_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SsfApi.ssf_streams_list ...' end allowable_values = ["https://schemas.openid.net/secevent/risc/delivery-method/poll", "https://schemas.openid.net/secevent/risc/delivery-method/push"] if @api_client.config.client_side_validation && opts[:'delivery_method'] && !allowable_values.include?(opts[:'delivery_method']) fail ArgumentError, "invalid value for \"delivery_method\", must be one of #{allowable_values}" end # resource path local_var_path = '/ssf/streams/' # query parameters query_params = opts[:query_params] || {} query_params[:'delivery_method'] = opts[:'delivery_method'] if !opts[:'delivery_method'].nil? query_params[:'endpoint_url'] = opts[:'endpoint_url'] if !opts[:'endpoint_url'].nil? query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil? query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'PaginatedSSFStreamList' # auth_names auth_names = opts[:debug_auth_names] || ['authentik'] = opts.merge( :operation => :"SsfApi.ssf_streams_list", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SsfApi#ssf_streams_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#ssf_streams_retrieve(uuid, opts = {}) ⇒ SSFStream
SSFStream Viewset
100 101 102 103 |
# File 'lib/authentik/api/api/ssf_api.rb', line 100 def ssf_streams_retrieve(uuid, opts = {}) data, _status_code, _headers = ssf_streams_retrieve_with_http_info(uuid, opts) data end |
#ssf_streams_retrieve_with_http_info(uuid, opts = {}) ⇒ Array<(SSFStream, Integer, Hash)>
SSFStream Viewset
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/authentik/api/api/ssf_api.rb', line 109 def ssf_streams_retrieve_with_http_info(uuid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SsfApi.ssf_streams_retrieve ...' end # verify the required parameter 'uuid' is set if @api_client.config.client_side_validation && uuid.nil? fail ArgumentError, "Missing the required parameter 'uuid' when calling SsfApi.ssf_streams_retrieve" end # resource path local_var_path = '/ssf/streams/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SSFStream' # auth_names auth_names = opts[:debug_auth_names] || ['authentik'] = opts.merge( :operation => :"SsfApi.ssf_streams_retrieve", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: SsfApi#ssf_streams_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |