@@ -307,6 +307,73 @@ def get_report_schedules_for_resource_with_http_info(resource_type, resource_id,
307307 return data , status_code , headers
308308 end
309309
310+ # List dataset report schedules.
311+ #
312+ # @see #list_dataset_report_schedules_with_http_info
313+ def list_dataset_report_schedules ( dataset_id , opts = { } )
314+ data , _status_code , _headers = list_dataset_report_schedules_with_http_info ( dataset_id , opts )
315+ data
316+ end
317+
318+ # List dataset report schedules.
319+ #
320+ # Retrieve all report schedules for a given published dataset.
321+ # Returns report schedules belonging to the authenticated user's organization that target the specified dataset.
322+ # Requires the `generate_log_reports` or `manage_log_reports` permission.
323+ #
324+ # @param dataset_id [String] The identifier of the published dataset to retrieve report schedules for.
325+ # @param opts [Hash] the optional parameters
326+ # @return [Array<(DatasetReportScheduleListResponse, Integer, Hash)>] DatasetReportScheduleListResponse data, response status code and response headers
327+ def list_dataset_report_schedules_with_http_info ( dataset_id , opts = { } )
328+
329+ if @api_client . config . debugging
330+ @api_client . config . logger . debug 'Calling API: ReportSchedulesAPI.list_dataset_report_schedules ...'
331+ end
332+ # verify the required parameter 'dataset_id' is set
333+ if @api_client . config . client_side_validation && dataset_id . nil?
334+ fail ArgumentError , "Missing the required parameter 'dataset_id' when calling ReportSchedulesAPI.list_dataset_report_schedules"
335+ end
336+ # resource path
337+ local_var_path = '/api/v2/reporting/dataset/{dataset_id}/schedules' . sub ( '{dataset_id}' , CGI . escape ( dataset_id . to_s ) . gsub ( '%2F' , '/' ) )
338+
339+ # query parameters
340+ query_params = opts [ :query_params ] || { }
341+
342+ # header parameters
343+ header_params = opts [ :header_params ] || { }
344+ # HTTP header 'Accept' (if needed)
345+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
346+
347+ # form parameters
348+ form_params = opts [ :form_params ] || { }
349+
350+ # http body (model)
351+ post_body = opts [ :debug_body ]
352+
353+ # return_type
354+ return_type = opts [ :debug_return_type ] || 'DatasetReportScheduleListResponse'
355+
356+ # auth_names
357+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ]
358+
359+ new_options = opts . merge (
360+ :operation => :list_dataset_report_schedules ,
361+ :header_params => header_params ,
362+ :query_params => query_params ,
363+ :form_params => form_params ,
364+ :body => post_body ,
365+ :auth_names => auth_names ,
366+ :return_type => return_type ,
367+ :api_version => "V2"
368+ )
369+
370+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Get , local_var_path , new_options )
371+ if @api_client . config . debugging
372+ @api_client . config . logger . debug "API called: ReportSchedulesAPI#list_dataset_report_schedules\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
373+ end
374+ return data , status_code , headers
375+ end
376+
310377 # List report schedules.
311378 #
312379 # @see #list_report_schedules_with_http_info
@@ -469,6 +536,75 @@ def patch_report_schedule_with_http_info(schedule_uuid, body, opts = {})
469536 return data , status_code , headers
470537 end
471538
539+ # Print a report.
540+ #
541+ # @see #print_report_with_http_info
542+ def print_report ( body , opts = { } )
543+ data , _status_code , _headers = print_report_with_http_info ( body , opts )
544+ data
545+ end
546+
547+ # Print a report.
548+ #
549+ # Initiate a one-off, print-only report for a dashboard or integration dashboard.
550+ # The report is rendered as a PDF and made available for download through the URL returned in the response.
551+ # Requires a reporting permission appropriate to the targeted resource type.
552+ #
553+ # @param body [PrintReportRequest]
554+ # @param opts [Hash] the optional parameters
555+ # @return [Array<(PrintReportResponse, Integer, Hash)>] PrintReportResponse data, response status code and response headers
556+ def print_report_with_http_info ( body , opts = { } )
557+
558+ if @api_client . config . debugging
559+ @api_client . config . logger . debug 'Calling API: ReportSchedulesAPI.print_report ...'
560+ end
561+ # verify the required parameter 'body' is set
562+ if @api_client . config . client_side_validation && body . nil?
563+ fail ArgumentError , "Missing the required parameter 'body' when calling ReportSchedulesAPI.print_report"
564+ end
565+ # resource path
566+ local_var_path = '/api/v2/reporting/print'
567+
568+ # query parameters
569+ query_params = opts [ :query_params ] || { }
570+
571+ # header parameters
572+ header_params = opts [ :header_params ] || { }
573+ # HTTP header 'Accept' (if needed)
574+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
575+ # HTTP header 'Content-Type'
576+ header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] )
577+
578+ # form parameters
579+ form_params = opts [ :form_params ] || { }
580+
581+ # http body (model)
582+ post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( body )
583+
584+ # return_type
585+ return_type = opts [ :debug_return_type ] || 'PrintReportResponse'
586+
587+ # auth_names
588+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ]
589+
590+ new_options = opts . merge (
591+ :operation => :print_report ,
592+ :header_params => header_params ,
593+ :query_params => query_params ,
594+ :form_params => form_params ,
595+ :body => post_body ,
596+ :auth_names => auth_names ,
597+ :return_type => return_type ,
598+ :api_version => "V2"
599+ )
600+
601+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Post , local_var_path , new_options )
602+ if @api_client . config . debugging
603+ @api_client . config . logger . debug "API called: ReportSchedulesAPI#print_report\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
604+ end
605+ return data , status_code , headers
606+ end
607+
472608 # Toggle a report schedule.
473609 #
474610 # @see #toggle_report_schedule_with_http_info
0 commit comments