build/src/index.js
/**
     * Get a list of fields that have been changed.
     * @private
     */
Get a list of fields that have been changed.
@private
Get a list of fields that have been changed . @private
_getUpdateMask() {
        const fields = ['sourceUploadUrl'];
        const opts = this._options;
        if (opts.memory)
            fields.push('availableMemoryMb');
        if (opts.description)
            fields.push('description');
        if (opts.entryPoint)
            fields.push('entryPoint');
        if (opts.maxInstances)
            fields.push('maxInstances');
        if (opts.vpcConnector)
            fields.push('vpcConnector');
        if (opts.network)
            fields.push('network');
        if (opts.runtime)
            fields.push('runtime');
        if (opts.timeout)
            fields.push('timeout');
        if (opts.triggerHTTP)
            fields.push('httpsTrigger');
        if (opts.triggerBucket || opts.triggerTopic) {
            fields.push('eventTrigger.eventType', 'eventTrigger.resource');
        }
        return fields.join();
    }
_getUpdateMask ( ) { const fields = [ 'sourceUploadUrl' ] ; const opts = this . _options ; if ( opts . memory ) fields . push ( 'availableMemoryMb' ) ; if ( opts . description ) fields . push ( 'description' ) ; if ( opts . entryPoint ) fields . push ( 'entryPoint' ) ; if ( opts . maxInstances ) fields . push ( 'maxInstances' ) ; if ( opts . vpcConnector ) fields . push ( 'vpcConnector' ) ; if ( opts . network ) fields . push ( 'network' ) ; if ( opts . runtime ) fields . push ( 'runtime' ) ; if ( opts . timeout ) fields . push ( 'timeout' ) ; if ( opts . triggerHTTP ) fields . push ( 'httpsTrigger' ) ; if ( opts . triggerBucket || opts . triggerTopic ) { fields . push ( 'eventTrigger.eventType' , 'eventTrigger.resource' ) ; } return fields . join ( ) ; }
Get a list of fields that have been changed.
Get a list of fields that have been changed .