@@ -416,6 +416,41 @@ def list_project_location_autonomous_databases(parent, filter: nil, order_by: ni
416416 execute_or_queue_command ( command , &block )
417417 end
418418
419+ # Restarts an Autonomous Database.
420+ # @param [String] name
421+ # Required. The name of the Autonomous Database in the following format:
422+ # projects/`project`/locations/`location`/autonomousDatabases/`
423+ # autonomous_database`.
424+ # @param [Google::Apis::OracledatabaseV1::RestartAutonomousDatabaseRequest] restart_autonomous_database_request_object
425+ # @param [String] fields
426+ # Selector specifying which fields to include in a partial response.
427+ # @param [String] quota_user
428+ # Available to use for quota purposes for server-side applications. Can be any
429+ # arbitrary string assigned to a user, but should not exceed 40 characters.
430+ # @param [Google::Apis::RequestOptions] options
431+ # Request-specific options
432+ #
433+ # @yield [result, err] Result & error if block supplied
434+ # @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
435+ # @yieldparam err [StandardError] error object if request failed
436+ #
437+ # @return [Google::Apis::OracledatabaseV1::Operation]
438+ #
439+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
440+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
441+ # @raise [Google::Apis::AuthorizationError] Authorization is required
442+ def restart_autonomous_database ( name , restart_autonomous_database_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
443+ command = make_simple_command ( :post , 'v1/{+name}:restart' , options )
444+ command . request_representation = Google ::Apis ::OracledatabaseV1 ::RestartAutonomousDatabaseRequest ::Representation
445+ command . request_object = restart_autonomous_database_request_object
446+ command . response_representation = Google ::Apis ::OracledatabaseV1 ::Operation ::Representation
447+ command . response_class = Google ::Apis ::OracledatabaseV1 ::Operation
448+ command . params [ 'name' ] = name unless name . nil?
449+ command . query [ 'fields' ] = fields unless fields . nil?
450+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
451+ execute_or_queue_command ( command , &block )
452+ end
453+
419454 # Restores a single Autonomous Database.
420455 # @param [String] name
421456 # Required. The name of the Autonomous Database in the following format:
@@ -451,6 +486,76 @@ def restore_autonomous_database(name, restore_autonomous_database_request_object
451486 execute_or_queue_command ( command , &block )
452487 end
453488
489+ # Starts an Autonomous Database.
490+ # @param [String] name
491+ # Required. The name of the Autonomous Database in the following format:
492+ # projects/`project`/locations/`location`/autonomousDatabases/`
493+ # autonomous_database`.
494+ # @param [Google::Apis::OracledatabaseV1::StartAutonomousDatabaseRequest] start_autonomous_database_request_object
495+ # @param [String] fields
496+ # Selector specifying which fields to include in a partial response.
497+ # @param [String] quota_user
498+ # Available to use for quota purposes for server-side applications. Can be any
499+ # arbitrary string assigned to a user, but should not exceed 40 characters.
500+ # @param [Google::Apis::RequestOptions] options
501+ # Request-specific options
502+ #
503+ # @yield [result, err] Result & error if block supplied
504+ # @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
505+ # @yieldparam err [StandardError] error object if request failed
506+ #
507+ # @return [Google::Apis::OracledatabaseV1::Operation]
508+ #
509+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511+ # @raise [Google::Apis::AuthorizationError] Authorization is required
512+ def start_autonomous_database ( name , start_autonomous_database_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
513+ command = make_simple_command ( :post , 'v1/{+name}:start' , options )
514+ command . request_representation = Google ::Apis ::OracledatabaseV1 ::StartAutonomousDatabaseRequest ::Representation
515+ command . request_object = start_autonomous_database_request_object
516+ command . response_representation = Google ::Apis ::OracledatabaseV1 ::Operation ::Representation
517+ command . response_class = Google ::Apis ::OracledatabaseV1 ::Operation
518+ command . params [ 'name' ] = name unless name . nil?
519+ command . query [ 'fields' ] = fields unless fields . nil?
520+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
521+ execute_or_queue_command ( command , &block )
522+ end
523+
524+ # Stops an Autonomous Database.
525+ # @param [String] name
526+ # Required. The name of the Autonomous Database in the following format:
527+ # projects/`project`/locations/`location`/autonomousDatabases/`
528+ # autonomous_database`.
529+ # @param [Google::Apis::OracledatabaseV1::StopAutonomousDatabaseRequest] stop_autonomous_database_request_object
530+ # @param [String] fields
531+ # Selector specifying which fields to include in a partial response.
532+ # @param [String] quota_user
533+ # Available to use for quota purposes for server-side applications. Can be any
534+ # arbitrary string assigned to a user, but should not exceed 40 characters.
535+ # @param [Google::Apis::RequestOptions] options
536+ # Request-specific options
537+ #
538+ # @yield [result, err] Result & error if block supplied
539+ # @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
540+ # @yieldparam err [StandardError] error object if request failed
541+ #
542+ # @return [Google::Apis::OracledatabaseV1::Operation]
543+ #
544+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547+ def stop_autonomous_database ( name , stop_autonomous_database_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
548+ command = make_simple_command ( :post , 'v1/{+name}:stop' , options )
549+ command . request_representation = Google ::Apis ::OracledatabaseV1 ::StopAutonomousDatabaseRequest ::Representation
550+ command . request_object = stop_autonomous_database_request_object
551+ command . response_representation = Google ::Apis ::OracledatabaseV1 ::Operation ::Representation
552+ command . response_class = Google ::Apis ::OracledatabaseV1 ::Operation
553+ command . params [ 'name' ] = name unless name . nil?
554+ command . query [ 'fields' ] = fields unless fields . nil?
555+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
556+ execute_or_queue_command ( command , &block )
557+ end
558+
454559 # Lists all the available Autonomous Database versions for a project and
455560 # location.
456561 # @param [String] parent
0 commit comments