@@ -2429,6 +2429,61 @@ def debug_project_location_application_service_version_instance(projects_id, loc
24292429 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
24302430 execute_or_queue_command ( command , &block )
24312431 end
2432+
2433+ # Stops a running instance.The instance might be automatically recreated based
2434+ # on the scaling settings of the version. For more information, see "How
2435+ # Instances are Managed" (standard environment (https://cloud.google.com/
2436+ # appengine/docs/standard/python/how-instances-are-managed) | flexible
2437+ # environment (https://cloud.google.com/appengine/docs/flexible/python/how-
2438+ # instances-are-managed)).To ensure that instances are not re-created and avoid
2439+ # getting billed, you can stop all instances within the target version by
2440+ # changing the serving status of the version to STOPPED with the apps.services.
2441+ # versions.patch (https://cloud.google.com/appengine/docs/admin-api/reference/
2442+ # rest/v1/apps.services.versions/patch) method.
2443+ # @param [String] projects_id
2444+ # Part of `name`. Required. Name of the resource requested. Example: apps/myapp/
2445+ # services/default/versions/v1/instances/instance-1.
2446+ # @param [String] locations_id
2447+ # Part of `name`. See documentation of `projectsId`.
2448+ # @param [String] applications_id
2449+ # Part of `name`. See documentation of `projectsId`.
2450+ # @param [String] services_id
2451+ # Part of `name`. See documentation of `projectsId`.
2452+ # @param [String] versions_id
2453+ # Part of `name`. See documentation of `projectsId`.
2454+ # @param [String] instances_id
2455+ # Part of `name`. See documentation of `projectsId`.
2456+ # @param [String] fields
2457+ # Selector specifying which fields to include in a partial response.
2458+ # @param [String] quota_user
2459+ # Available to use for quota purposes for server-side applications. Can be any
2460+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2461+ # @param [Google::Apis::RequestOptions] options
2462+ # Request-specific options
2463+ #
2464+ # @yield [result, err] Result & error if block supplied
2465+ # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
2466+ # @yieldparam err [StandardError] error object if request failed
2467+ #
2468+ # @return [Google::Apis::AppengineV1::Operation]
2469+ #
2470+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2471+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2472+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2473+ def delete_project_location_application_service_version_instance ( projects_id , locations_id , applications_id , services_id , versions_id , instances_id , fields : nil , quota_user : nil , options : nil , &block )
2474+ command = make_simple_command ( :delete , 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}' , options )
2475+ command . response_representation = Google ::Apis ::AppengineV1 ::Operation ::Representation
2476+ command . response_class = Google ::Apis ::AppengineV1 ::Operation
2477+ command . params [ 'projectsId' ] = projects_id unless projects_id . nil?
2478+ command . params [ 'locationsId' ] = locations_id unless locations_id . nil?
2479+ command . params [ 'applicationsId' ] = applications_id unless applications_id . nil?
2480+ command . params [ 'servicesId' ] = services_id unless services_id . nil?
2481+ command . params [ 'versionsId' ] = versions_id unless versions_id . nil?
2482+ command . params [ 'instancesId' ] = instances_id unless instances_id . nil?
2483+ command . query [ 'fields' ] = fields unless fields . nil?
2484+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2485+ execute_or_queue_command ( command , &block )
2486+ end
24322487
24332488 protected
24342489
0 commit comments