generated/google-apis-firebasehosting_v1beta1/lib/google/apis/firebasehosting_v1beta1/service.rb
# Updates the specified metadata for a version. Note that this method will fail
# with `FAILED_PRECONDITION` in the event of an invalid state transition. The
# only valid transition for a version is currently from a `CREATED` status to a `
# FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set the
# status of a version to `DELETED`.
# @param [String] name
#   The unique identifier for a version, in the format: sites/site-name /versions/
#   versionID This name is provided in the response body when you call the [`
#   CreateVersion`](../sites.versions/create) endpoint.
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
# @param [String] update_mask
#   A set of field names from your [version](../sites.versions) that you want to
#   update. A field will be overwritten if, and only if, it's in the mask. If a
#   mask is not provided then a default mask of only [`status`](../sites.versions#
#   Version.FIELDS.status) will be used.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebasehostingV1beta1::Version]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Updates the specified metadata for a version. Note that this method will fail
with `FAILED_PRECONDITION` in the event of an invalid state transition. The
only valid transition for a version is currently from a `CREATED` status to a `
FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set the
status of a version to `DELETED`.
Updates the specified metadata for a version . Note that this method will fail with ` FAILED_PRECONDITION ` in the event of an invalid state transition . The only valid transition for a version is currently from a ` CREATED ` status to a ` FINALIZED ` status . Use [ ` DeleteVersion ` ] ( .. / sites . versions / delete ) to set the status of a version to ` DELETED ` .
def patch_site_version(name, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1beta1/{+name}', options)
          command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
          command.request_object = version_object
          command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
          command.response_class = Google::Apis::FirebasehostingV1beta1::Version
          command.params['name'] = name unless name.nil?
          command.query['updateMask'] = update_mask unless update_mask.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def patch_site_version ( name , version_object = nil , update_mask : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :patch , 'v1beta1/{+name}' , options ) command . request_representation = Google :: Apis :: FirebasehostingV1beta1 :: Version :: Representation command . request_object = version_object command . response_representation = Google :: Apis :: FirebasehostingV1beta1 :: Version :: Representation command . response_class = Google :: Apis :: FirebasehostingV1beta1 :: Version command . params [ 'name' ] = name unless name . nil? command . query [ 'updateMask' ] = update_mask unless update_mask . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Updates the specified metadata for a version.
Updates the specified metadata for a version .
None
Google::Apis::FirebasehostingV1beta1::Version
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
name
version_object
update_mask
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed