// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

'use strict';

async function quickstart() {
  // [START memcache_quickstart]
  // Imports the Google Cloud client library
  const {CloudMemcacheClient} = require('@google-cloud/memcache');

  // Creates a client
  const cmc = new CloudMemcacheClient();
  console.info(cmc);
  // project = 'my-project'
  // [END memcache_quickstart]
}

const args = process.argv.slice(2);
quickstart(...args).catch(console.error);

@@ -9,17 +9,17 @@
 ight 202
-0
+2
  Google 
@@ -588,123 +588,1688 @@
 %0A//%0A
-%0A'use strict';%0A%0Aasync function quickstart() %7B%0A  // %5BSTART memcache_quickstart%5D%0A  // Imports the Google Cloud client
+// ** This file is automatically generated by gapic-generator-typescript. **%0A// ** https://github.com/googleapis/gapic-generator-typescript **%0A// ** All changes to this file may be overwritten. **%0A%0A%0A%0A'use strict';%0A%0Afunction main(parent) %7B%0A  // %5BSTART memcache_quickstart%5D%0A  /**%0A   * This snippet has been automatically generated and should be regarded as a code template only.%0A   * It will require modifications to work.%0A   * It may require correct/in-range values for request initialization.%0A   * TODO(developer): Uncomment these variables before running the sample.%0A   */%0A  /**%0A   *  Required. The resource name of the instance location using the form:%0A   *      %60projects/%7Bproject_id%7D/locations/%7Blocation_id%7D%60%0A   *  where %60location_id%60 refers to a GCP region%0A   */%0A  // const parent = 'abc123'%0A  /**%0A   *  The maximum number of items to return.%0A   *  If not specified, a default value of 1000 will be used by the service.%0A   *  Regardless of the page_size value, the response may include a partial list%0A   *  and a caller should only rely on response's%0A   *  next_page_token CloudMemcache.ListInstancesResponse.next_page_token %0A   *  to determine if there are more instances left to be queried.%0A   */%0A  // const pageSize = 1234%0A  /**%0A   *  The next_page_token value returned from a previous List request,%0A   *  if any.%0A   */%0A  // const pageToken = 'abc123'%0A  /**%0A   *  List filter. For example, exclude all Memcached instances with name as%0A   *  my-instance by specifying %22name != my-instance%22.%0A   */%0A  // const filter = 'abc123'%0A  /**%0A   *  Sort results. Supported values are %22name%22, %22name desc%22 or %22%22 (unsorted).%0A   */%0A  // const orderBy = 'abc123'%0A%0A  // Imports the Memcache
  lib
@@ -2342,16 +2342,19 @@
 he')
+.v1
 ;%0A%0A  // 
 Crea
@@ -2353,11 +2353,16 @@
  // 
-Cre
+Instanti
 ates
@@ -2379,19 +2379,30 @@
   const 
-cmc
+memcacheClient
  = new C
@@ -2427,165 +2427,479 @@
 ();%0A
+%0A
   
-console.info(cmc);%0A
+async function callListInstances() %7B%0A    // Construct request%0A    const request = %7B%0A      parent,%0A    %7D;%0A%0A 
   
+ 
 // 
-project = 'my-project'%0A  // %5BEND memcache_quickstart%5D%0A%7D%0A%0Aconst args = process.argv.slice(2);%0Aquickstart(...args).catch(console.error
+Run request%0A    const iterable = await memcacheClient.listInstancesAsync(request);%0A    for await (const response of iterable) %7B%0A        console.log(response);%0A    %7D%0A  %7D%0A%0A  callListInstances();%0A  // %5BEND memcache_quickstart%5D%0A%7D%0A%0Aprocess.on('unhandledRejection', err =%3E %7B%0A  console.error(err.message);%0A  process.exitCode = 1;%0A%7D);%0Amain(...process.argv.slice(2)
 );%0A

Update quickstart.js