@@ -3289,6 +3289,66 @@ def test_disk_iam_permissions(project, zone, resource, test_permissions_request_
32893289 execute_or_queue_command(command, &block)
32903290 end
32913291
3292+ # Updates the specified disk with the data included in the request. The update
3293+ # is performed only on selected fields included as part of update-mask. Only the
3294+ # following fields can be modified: user_license.
3295+ # @param [String] project
3296+ # Project ID for this request.
3297+ # @param [String] zone
3298+ # The name of the zone for this request.
3299+ # @param [String] disk
3300+ # The disk name for this request.
3301+ # @param [Google::Apis::ComputeV1::Disk] disk_object
3302+ # @param [Array<String>, String] paths
3303+ # @param [String] request_id
3304+ # An optional request ID to identify requests. Specify a unique request ID so
3305+ # that if you must retry your request, the server will know to ignore the
3306+ # request if it has already been completed. For example, consider a situation
3307+ # where you make an initial request and the request times out. If you make the
3308+ # request again with the same request ID, the server can check if original
3309+ # operation with the same request ID was received, and if so, will ignore the
3310+ # second request. This prevents clients from accidentally creating duplicate
3311+ # commitments. The request ID must be a valid UUID with the exception that zero
3312+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3313+ # @param [String] update_mask
3314+ # update_mask indicates fields to be updated as part of this request.
3315+ # @param [String] fields
3316+ # Selector specifying which fields to include in a partial response.
3317+ # @param [String] quota_user
3318+ # Available to use for quota purposes for server-side applications. Can be any
3319+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3320+ # @param [String] user_ip
3321+ # Legacy name for parameter that has been superseded by `quotaUser`.
3322+ # @param [Google::Apis::RequestOptions] options
3323+ # Request-specific options
3324+ #
3325+ # @yield [result, err] Result & error if block supplied
3326+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3327+ # @yieldparam err [StandardError] error object if request failed
3328+ #
3329+ # @return [Google::Apis::ComputeV1::Operation]
3330+ #
3331+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3332+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3333+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3334+ def update_disk(project, zone, disk, disk_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3335+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/disks/{disk}', options)
3336+ command.request_representation = Google::Apis::ComputeV1::Disk::Representation
3337+ command.request_object = disk_object
3338+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3339+ command.response_class = Google::Apis::ComputeV1::Operation
3340+ command.params['project'] = project unless project.nil?
3341+ command.params['zone'] = zone unless zone.nil?
3342+ command.params['disk'] = disk unless disk.nil?
3343+ command.query['paths'] = paths unless paths.nil?
3344+ command.query['requestId'] = request_id unless request_id.nil?
3345+ command.query['updateMask'] = update_mask unless update_mask.nil?
3346+ command.query['fields'] = fields unless fields.nil?
3347+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3348+ command.query['userIp'] = user_ip unless user_ip.nil?
3349+ execute_or_queue_command(command, &block)
3350+ end
3351+
32923352 # Deletes the specified externalVpnGateway.
32933353 # @param [String] project
32943354 # Project ID for this request.
@@ -23133,6 +23193,66 @@ def test_region_disk_iam_permissions(project, region, resource, test_permissions
2313323193 execute_or_queue_command(command, &block)
2313423194 end
2313523195
23196+ # Update the specified disk with the data included in the request. Update is
23197+ # performed only on selected fields included as part of update-mask. Only the
23198+ # following fields can be modified: user_license.
23199+ # @param [String] project
23200+ # Project ID for this request.
23201+ # @param [String] region
23202+ # The name of the region for this request.
23203+ # @param [String] disk
23204+ # The disk name for this request.
23205+ # @param [Google::Apis::ComputeV1::Disk] disk_object
23206+ # @param [Array<String>, String] paths
23207+ # @param [String] request_id
23208+ # An optional request ID to identify requests. Specify a unique request ID so
23209+ # that if you must retry your request, the server will know to ignore the
23210+ # request if it has already been completed. For example, consider a situation
23211+ # where you make an initial request and the request times out. If you make the
23212+ # request again with the same request ID, the server can check if original
23213+ # operation with the same request ID was received, and if so, will ignore the
23214+ # second request. This prevents clients from accidentally creating duplicate
23215+ # commitments. The request ID must be a valid UUID with the exception that zero
23216+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
23217+ # @param [String] update_mask
23218+ # update_mask indicates fields to be updated as part of this request.
23219+ # @param [String] fields
23220+ # Selector specifying which fields to include in a partial response.
23221+ # @param [String] quota_user
23222+ # Available to use for quota purposes for server-side applications. Can be any
23223+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23224+ # @param [String] user_ip
23225+ # Legacy name for parameter that has been superseded by `quotaUser`.
23226+ # @param [Google::Apis::RequestOptions] options
23227+ # Request-specific options
23228+ #
23229+ # @yield [result, err] Result & error if block supplied
23230+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
23231+ # @yieldparam err [StandardError] error object if request failed
23232+ #
23233+ # @return [Google::Apis::ComputeV1::Operation]
23234+ #
23235+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23236+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23237+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23238+ def update_region_disk(project, region, disk, disk_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23239+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/disks/{disk}', options)
23240+ command.request_representation = Google::Apis::ComputeV1::Disk::Representation
23241+ command.request_object = disk_object
23242+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
23243+ command.response_class = Google::Apis::ComputeV1::Operation
23244+ command.params['project'] = project unless project.nil?
23245+ command.params['region'] = region unless region.nil?
23246+ command.params['disk'] = disk unless disk.nil?
23247+ command.query['paths'] = paths unless paths.nil?
23248+ command.query['requestId'] = request_id unless request_id.nil?
23249+ command.query['updateMask'] = update_mask unless update_mask.nil?
23250+ command.query['fields'] = fields unless fields.nil?
23251+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23252+ command.query['userIp'] = user_ip unless user_ip.nil?
23253+ execute_or_queue_command(command, &block)
23254+ end
23255+
2313623256 # Deletes the specified regional HealthCheckService.
2313723257 # @param [String] project
2313823258 # Project ID for this request.
0 commit comments