@@ -323,6 +323,12 @@ def generate_function_upload_url(parent, generate_upload_url_request_object = ni
323323 # Returns a function with the given name from the requested project.
324324 # @param [String] name
325325 # Required. The name of the function which details should be obtained.
326+ # @param [String] revision
327+ # Optional. The optional version of the 1st gen function whose details should be
328+ # obtained. The version of a 1st gen function is an integer that starts from 1
329+ # and gets incremented on redeployments. GCF may keep historical configs for old
330+ # versions of 1st gen function. This field can be specified to fetch the
331+ # historical configs. This field is valid only for GCF 1st gen function.
326332 # @param [String] fields
327333 # Selector specifying which fields to include in a partial response.
328334 # @param [String] quota_user
@@ -340,11 +346,12 @@ def generate_function_upload_url(parent, generate_upload_url_request_object = ni
340346 # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341347 # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342348 # @raise [Google::Apis::AuthorizationError] Authorization is required
343- def get_project_location_function ( name , fields : nil , quota_user : nil , options : nil , &block )
349+ def get_project_location_function ( name , revision : nil , fields : nil , quota_user : nil , options : nil , &block )
344350 command = make_simple_command ( :get , 'v2/{+name}' , options )
345351 command . response_representation = Google ::Apis ::CloudfunctionsV2 ::Function ::Representation
346352 command . response_class = Google ::Apis ::CloudfunctionsV2 ::Function
347353 command . params [ 'name' ] = name unless name . nil?
354+ command . query [ 'revision' ] = revision unless revision . nil?
348355 command . query [ 'fields' ] = fields unless fields . nil?
349356 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
350357 execute_or_queue_command ( command , &block )
0 commit comments