@@ -406,175 +406,6 @@ def restart_instance(name, restart_instance_request_object = nil, fields: nil, q
406406 execute_or_queue_command ( command , &block )
407407 end
408408
409- # Restore Looker instance.
410- # @param [String] name
411- # Required. Instance being restored Format: projects/`project`/locations/`
412- # location`/instances/`instance`
413- # @param [Google::Apis::LookerV1::RestoreInstanceRequest] restore_instance_request_object
414- # @param [String] fields
415- # Selector specifying which fields to include in a partial response.
416- # @param [String] quota_user
417- # Available to use for quota purposes for server-side applications. Can be any
418- # arbitrary string assigned to a user, but should not exceed 40 characters.
419- # @param [Google::Apis::RequestOptions] options
420- # Request-specific options
421- #
422- # @yield [result, err] Result & error if block supplied
423- # @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
424- # @yieldparam err [StandardError] error object if request failed
425- #
426- # @return [Google::Apis::LookerV1::Operation]
427- #
428- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
429- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
430- # @raise [Google::Apis::AuthorizationError] Authorization is required
431- def restore_instance ( name , restore_instance_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
432- command = make_simple_command ( :post , 'v1/{+name}:restore' , options )
433- command . request_representation = Google ::Apis ::LookerV1 ::RestoreInstanceRequest ::Representation
434- command . request_object = restore_instance_request_object
435- command . response_representation = Google ::Apis ::LookerV1 ::Operation ::Representation
436- command . response_class = Google ::Apis ::LookerV1 ::Operation
437- command . params [ 'name' ] = name unless name . nil?
438- command . query [ 'fields' ] = fields unless fields . nil?
439- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
440- execute_or_queue_command ( command , &block )
441- end
442-
443- # Backup Looker instance.
444- # @param [String] parent
445- # Required. Format: projects/`project`/locations/`location`/instances/`instance`
446- # @param [Google::Apis::LookerV1::InstanceBackup] instance_backup_object
447- # @param [String] fields
448- # Selector specifying which fields to include in a partial response.
449- # @param [String] quota_user
450- # Available to use for quota purposes for server-side applications. Can be any
451- # arbitrary string assigned to a user, but should not exceed 40 characters.
452- # @param [Google::Apis::RequestOptions] options
453- # Request-specific options
454- #
455- # @yield [result, err] Result & error if block supplied
456- # @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
457- # @yieldparam err [StandardError] error object if request failed
458- #
459- # @return [Google::Apis::LookerV1::Operation]
460- #
461- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
462- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
463- # @raise [Google::Apis::AuthorizationError] Authorization is required
464- def create_project_location_instance_backup ( parent , instance_backup_object = nil , fields : nil , quota_user : nil , options : nil , &block )
465- command = make_simple_command ( :post , 'v1/{+parent}/backups' , options )
466- command . request_representation = Google ::Apis ::LookerV1 ::InstanceBackup ::Representation
467- command . request_object = instance_backup_object
468- command . response_representation = Google ::Apis ::LookerV1 ::Operation ::Representation
469- command . response_class = Google ::Apis ::LookerV1 ::Operation
470- command . params [ 'parent' ] = parent unless parent . nil?
471- command . query [ 'fields' ] = fields unless fields . nil?
472- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
473- execute_or_queue_command ( command , &block )
474- end
475-
476- # Delete backup.
477- # @param [String] name
478- # Required. Format: projects/`project`/locations/`location`/instances/`instance`/
479- # backups/`backup`
480- # @param [String] fields
481- # Selector specifying which fields to include in a partial response.
482- # @param [String] quota_user
483- # Available to use for quota purposes for server-side applications. Can be any
484- # arbitrary string assigned to a user, but should not exceed 40 characters.
485- # @param [Google::Apis::RequestOptions] options
486- # Request-specific options
487- #
488- # @yield [result, err] Result & error if block supplied
489- # @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
490- # @yieldparam err [StandardError] error object if request failed
491- #
492- # @return [Google::Apis::LookerV1::Operation]
493- #
494- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
495- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
496- # @raise [Google::Apis::AuthorizationError] Authorization is required
497- def delete_project_location_instance_backup ( name , fields : nil , quota_user : nil , options : nil , &block )
498- command = make_simple_command ( :delete , 'v1/{+name}' , options )
499- command . response_representation = Google ::Apis ::LookerV1 ::Operation ::Representation
500- command . response_class = Google ::Apis ::LookerV1 ::Operation
501- command . params [ 'name' ] = name unless name . nil?
502- command . query [ 'fields' ] = fields unless fields . nil?
503- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
504- execute_or_queue_command ( command , &block )
505- end
506-
507- #
508- # @param [String] name
509- # Required. Format: `projects/`project`/locations/`location`/instances/`instance`
510- # /backups/`backup``.
511- # @param [String] fields
512- # Selector specifying which fields to include in a partial response.
513- # @param [String] quota_user
514- # Available to use for quota purposes for server-side applications. Can be any
515- # arbitrary string assigned to a user, but should not exceed 40 characters.
516- # @param [Google::Apis::RequestOptions] options
517- # Request-specific options
518- #
519- # @yield [result, err] Result & error if block supplied
520- # @yieldparam result [Google::Apis::LookerV1::InstanceBackup] parsed result object
521- # @yieldparam err [StandardError] error object if request failed
522- #
523- # @return [Google::Apis::LookerV1::InstanceBackup]
524- #
525- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
526- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
527- # @raise [Google::Apis::AuthorizationError] Authorization is required
528- def get_project_location_instance_backup ( name , fields : nil , quota_user : nil , options : nil , &block )
529- command = make_simple_command ( :get , 'v1/{+name}' , options )
530- command . response_representation = Google ::Apis ::LookerV1 ::InstanceBackup ::Representation
531- command . response_class = Google ::Apis ::LookerV1 ::InstanceBackup
532- command . params [ 'name' ] = name unless name . nil?
533- command . query [ 'fields' ] = fields unless fields . nil?
534- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
535- execute_or_queue_command ( command , &block )
536- end
537-
538- # List backups of Looker instance.
539- # @param [String] parent
540- # Required. Format: projects/`project`/locations/`location`/instances/`instance`.
541- # @param [String] order_by
542- # Sort results. Default order is "create_time desc". Other supported fields are "
543- # state" and "expire_time". https://google.aip.dev/132#ordering
544- # @param [Fixnum] page_size
545- # The maximum number of instances to return.
546- # @param [String] page_token
547- # A page token received from a previous ListInstances request.
548- # @param [String] fields
549- # Selector specifying which fields to include in a partial response.
550- # @param [String] quota_user
551- # Available to use for quota purposes for server-side applications. Can be any
552- # arbitrary string assigned to a user, but should not exceed 40 characters.
553- # @param [Google::Apis::RequestOptions] options
554- # Request-specific options
555- #
556- # @yield [result, err] Result & error if block supplied
557- # @yieldparam result [Google::Apis::LookerV1::ListInstanceBackupsResponse] parsed result object
558- # @yieldparam err [StandardError] error object if request failed
559- #
560- # @return [Google::Apis::LookerV1::ListInstanceBackupsResponse]
561- #
562- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564- # @raise [Google::Apis::AuthorizationError] Authorization is required
565- def list_project_location_instance_backups ( parent , order_by : nil , page_size : nil , page_token : nil , fields : nil , quota_user : nil , options : nil , &block )
566- command = make_simple_command ( :get , 'v1/{+parent}/backups' , options )
567- command . response_representation = Google ::Apis ::LookerV1 ::ListInstanceBackupsResponse ::Representation
568- command . response_class = Google ::Apis ::LookerV1 ::ListInstanceBackupsResponse
569- command . params [ 'parent' ] = parent unless parent . nil?
570- command . query [ 'orderBy' ] = order_by unless order_by . nil?
571- command . query [ 'pageSize' ] = page_size unless page_size . nil?
572- command . query [ 'pageToken' ] = page_token unless page_token . nil?
573- command . query [ 'fields' ] = fields unless fields . nil?
574- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
575- execute_or_queue_command ( command , &block )
576- end
577-
578409 # Starts asynchronous cancellation on a long-running operation. The server makes
579410 # a best effort to cancel the operation, but success is not guaranteed. If the
580411 # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
0 commit comments