<pre>
Use this operation to upgrade Unified Repeater Instances in bulk.
</pre>
553388
public static br_broker_upgrade[] upgrade(nitro_service client, br_broker_upgrade[] resources) throws Exception
	{
		if(resources == null)
			throw new Exception("Null resource array");
		
		
		if(resources.length == 1)
			return ((br_broker_upgrade[]) resources[0].perform_operation(client, "upgrade"));
		
		return ((br_broker_upgrade[]) perform_operation_bulk_request(client, resources, "upgrade"));
	}
196069
public static base_responses update(nitro_service client, server resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			server updateresources[] = new server[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new server();
				updateresources[i].name = resources[i].name;
				updateresources[i].ipaddress = resources[i].ipaddress;
				updateresources[i].domainresolveretry = resources[i].domainresolveretry;
				updateresources[i].translationip = resources[i].translationip;
				updateresources[i].translationmask = resources[i].translationmask;
				updateresources[i].domainresolvenow = resources[i].domainresolvenow;
				updateresources[i].comment = resources[i].comment;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
764811
@Override
  public void addBulkUpdateListener( AsyncCallback<BulkEvent> callback )
  {
    DataSubscription subscription = new DataSubscription( RTDataEvents.bulk_updated, tableName, createCallback( callback, BulkEvent.class ) );
    addEventListener( subscription );
  }
789760
public static base_responses update(nitro_service client, dnskey resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnskey updateresources[] = new dnskey[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new dnskey();
				updateresources[i].keyname = resources[i].keyname;
				updateresources[i].expires = resources[i].expires;
				updateresources[i].units1 = resources[i].units1;
				updateresources[i].notificationperiod = resources[i].notificationperiod;
				updateresources[i].units2 = resources[i].units2;
				updateresources[i].ttl = resources[i].ttl;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
63596
public static base_responses update(nitro_service client, hanode resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			hanode updateresources[] = new hanode[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new hanode();
				updateresources[i].id = resources[i].id;
				updateresources[i].hastatus = resources[i].hastatus;
				updateresources[i].hasync = resources[i].hasync;
				updateresources[i].haprop = resources[i].haprop;
				updateresources[i].hellointerval = resources[i].hellointerval;
				updateresources[i].deadinterval = resources[i].deadinterval;
				updateresources[i].failsafe = resources[i].failsafe;
				updateresources[i].maxflips = resources[i].maxflips;
				updateresources[i].maxfliptime = resources[i].maxfliptime;
				updateresources[i].syncvlan = resources[i].syncvlan;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
505408
public static base_responses update(nitro_service client, sslservicegroup resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			sslservicegroup updateresources[] = new sslservicegroup[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new sslservicegroup();
				updateresources[i].servicegroupname = resources[i].servicegroupname;
				updateresources[i].sessreuse = resources[i].sessreuse;
				updateresources[i].sesstimeout = resources[i].sesstimeout;
				updateresources[i].nonfipsciphers = resources[i].nonfipsciphers;
				updateresources[i].ssl3 = resources[i].ssl3;
				updateresources[i].tls1 = resources[i].tls1;
				updateresources[i].serverauth = resources[i].serverauth;
				updateresources[i].commonname = resources[i].commonname;
				updateresources[i].sendclosenotify = resources[i].sendclosenotify;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
1252036
public static base_responses update(nitro_service client, clusternodegroup resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			clusternodegroup updateresources[] = new clusternodegroup[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new clusternodegroup();
				updateresources[i].name = resources[i].name;
				updateresources[i].strict = resources[i].strict;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
954882
@Override
  public void execute(TxScope scope, Runnable runnable) {
    methodCalls.add(MethodCall.of("bulkUpdate").with("scope", scope, "runnable", runnable));
    delegate.execute(scope, runnable);
  }
1041922
public static base_responses update(nitro_service client, snmpengineid resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			snmpengineid updateresources[] = new snmpengineid[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new snmpengineid();
				updateresources[i].engineid = resources[i].engineid;
				updateresources[i].ownernode = resources[i].ownernode;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
678540
public static base_responses update(nitro_service client, snmpuser resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			snmpuser updateresources[] = new snmpuser[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new snmpuser();
				updateresources[i].name = resources[i].name;
				updateresources[i].group = resources[i].group;
				updateresources[i].authtype = resources[i].authtype;
				updateresources[i].authpasswd = resources[i].authpasswd;
				updateresources[i].privtype = resources[i].privtype;
				updateresources[i].privpasswd = resources[i].privpasswd;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
846525
public void executeBulkRequestAsync(BulkRequestBuilder bulkRequestBuilder,
            ActionListener<BulkResponse> bulkResponseActionListener) {
        JMLog.info(log, "executeBulkRequestAsync", bulkRequestBuilder,
                bulkResponseActionListener);
        bulkRequestBuilder.execute(bulkResponseActionListener);
    }
1160682
public static base_responses update(nitro_service client, route resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			route updateresources[] = new route[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new route();
				updateresources[i].network = resources[i].network;
				updateresources[i].netmask = resources[i].netmask;
				updateresources[i].gateway = resources[i].gateway;
				updateresources[i].td = resources[i].td;
				updateresources[i].distance = resources[i].distance;
				updateresources[i].cost1 = resources[i].cost1;
				updateresources[i].weight = resources[i].weight;
				updateresources[i].advertise = resources[i].advertise;
				updateresources[i].protocol = resources[i].protocol;
				updateresources[i].msr = resources[i].msr;
				updateresources[i].monitor = resources[i].monitor;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
1348042
function upgrade() {
  if (!this.active) {
    return this;
  }
  return this.call(
    'system.listComponents',
    this.localComponents,
    (function(err, result) {
      if (!err && typeof result === 'object') {
        this.remoteComponents = result;
        this.remoteComponents['system._upgraded'] = true;
      }
    }).bind(this)
  );
}
634496
public void upgrade(ConnectionProtocol upgrade)
  {
    connHttp().request(upgrade);
    //_upgrade = upgrade;
    
    //upgrade.start();
    
    requestHttp().upgrade();
    
    _state = _state.toUpgrade();
    
    requestHttp().connTcp().proxy().requestWake();
  }
793352
public static base_responses update(nitro_service client, nsrpcnode resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsrpcnode updateresources[] = new nsrpcnode[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nsrpcnode();
				updateresources[i].ipaddress = resources[i].ipaddress;
				updateresources[i].password = resources[i].password;
				updateresources[i].srcip = resources[i].srcip;
				updateresources[i].secure = resources[i].secure;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
914029
public static base_responses update(nitro_service client, nstimer resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nstimer updateresources[] = new nstimer[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nstimer();
				updateresources[i].name = resources[i].name;
				updateresources[i].interval = resources[i].interval;
				updateresources[i].unit = resources[i].unit;
				updateresources[i].comment = resources[i].comment;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
463061
protected void pullBulkRevisions(List<RevisionInternal> bulkRevs) {

        int nRevs = bulkRevs.size();
        if (nRevs == 0) {
            return;
        }
        Log.d(TAG, "%s bulk-fetching %d remote revisions...", this, nRevs);
        Log.d(TAG, "%s bulk-fetching remote revisions: %s", this, bulkRevs);

        if (!canBulkGet) {
            pullBulkWithAllDocs(bulkRevs);
            return;
        }

        Log.v(TAG, "%s: POST _bulk_get", this);
        final List<RevisionInternal> remainingRevs = new ArrayList<RevisionInternal>(bulkRevs);

        ++httpConnectionCount;

        final RemoteBulkDownloaderRequest downloader;
        try {
            downloader = new RemoteBulkDownloaderRequest(
                    clientFactory,
                    remote,
                    true,
                    bulkRevs,
                    db,
                    this.requestHeaders,
                    new RemoteBulkDownloaderRequest.BulkDownloaderDocument() {
                        public void onDocument(Map<String, Object> props, long size) {
                            // Got a revision!
                            // Find the matching revision in 'remainingRevs' and get its sequence:
                            RevisionInternal rev;
                            if (props.get("_id") != null) {
                                rev = new RevisionInternal(props, size);
                            } else {
                                rev = new RevisionInternal((String) props.get("id"),
                                        (String) props.get("rev"), false);
                            }

                            int pos = remainingRevs.indexOf(rev);
                            if (pos > -1) {
                                rev.setSequence(remainingRevs.get(pos).getSequence());
                                remainingRevs.remove(pos);
                            } else {
                                Log.w(TAG, "%s : Received unexpected rev rev", this);
                            }

                            if (props.get("_id") != null) {
                                // Add to batcher ... eventually it will be fed to -insertRevisions:.
                                queueDownloadedRevision(rev);
                            } else {
                                Status status = statusFromBulkDocsResponseItem(props);
                                Throwable err = new CouchbaseLiteException(status);
                                revisionFailed(rev, err);
                            }
                        }
                    },
                    new RemoteRequestCompletion() {
                        public void onCompletion(RemoteRequest remoteRequest, Response httpResponse, Object result, Throwable e) {
                            // The entire _bulk_get is finished:
                            if (e != null) {
                                setError(e);
                                completedChangesCount.addAndGet(remainingRevs.size());
                            }
                            --httpConnectionCount;
                            // Start another task if there are still revisions waiting to be pulled:
                            pullRemoteRevisions();

                            if (cancellables != null && cancellables.values() != null && remoteRequest != null)
                                cancellables.values().remove(remoteRequest);
                        }
                    }
            );
        } catch (Exception e) {
            Log.e(TAG, "%s: pullBulkRevisions Exception: %s", this, e);
            return;
        }

        downloader.setAuthenticator(getAuthenticator());
        // set compressed request - gzip
        downloader.setCompressedRequest(canSendCompressedRequests());

        synchronized (remoteRequestExecutor) {
            if (!remoteRequestExecutor.isShutdown()) {
                Future future = remoteRequestExecutor.submit(downloader);
                pendingFutures.add(future);
                cancellables.put(future, downloader);
            }
        }
    }