diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db29bd517..883082c0b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ jobs: matrix: node: [18, 20, 22] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} @@ -29,7 +29,7 @@ jobs: test-script: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 18 @@ -43,7 +43,7 @@ jobs: windows: runs-on: windows-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 18 @@ -54,7 +54,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 18 @@ -63,7 +63,7 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 18 diff --git a/.github/workflows/issues-no-repro.yaml b/.github/workflows/issues-no-repro.yaml index 556e83b1e..9b2f70148 100644 --- a/.github/workflows/issues-no-repro.yaml +++ b/.github/workflows/issues-no-repro.yaml @@ -10,7 +10,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 18 diff --git a/.github/workflows/response.yaml b/.github/workflows/response.yaml index a4235208a..6ed37326f 100644 --- a/.github/workflows/response.yaml +++ b/.github/workflows/response.yaml @@ -13,7 +13,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/github-script@v7 with: script: | @@ -27,7 +27,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/github-script@v7 with: script: | diff --git a/README.md b/README.md index 675530926..93c8d7290 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +**_THIS REPOSITORY IS DEPRECATED. ALL OF ITS CONTENT AND HISTORY HAS BEEN MOVED TO [GOOGLE-CLOUD-NODE](https://github.com/googleapis/google-cloud-node/tree/main/packages/handwritten)_** + [//]: # "This README.md file is auto-generated, all changes to this file will be lost." [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo diff --git a/owlbot.py b/owlbot.py index 7c40df9c3..49fce7a64 100644 --- a/owlbot.py +++ b/owlbot.py @@ -1,6 +1,6 @@ -# Copyright 2021 Google LLC +# Copyright 2022 Google LLC # -# Licensed under the Apache License, Version 2.0 (the "License"); +# 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 # @@ -11,50 +11,7 @@ # 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. - -import synthtool as s -import synthtool.gcp as gcp import synthtool.languages.node as node -import logging -from pathlib import Path -from synthtool import _tracked_paths -from synthtool import shell -import shutil - -logging.basicConfig(level=logging.DEBUG) - -staging = Path("owl-bot-staging") - -if staging.is_dir(): - logging.info(f"Copying files from staging directory ${staging}.") - - # Copy the datastore library. - for version in ['v1']: - library = staging / version - _tracked_paths.add(library) - s.copy([library],excludes=[ - 'package.json', 'README.md', 'src/index.ts', 'src/v1/index.ts']) - - # Copy the admin library. - for version in ['v1']: - library = staging / 'admin' / version - _tracked_paths.add(library) - s.copy([library],excludes=[ - 'package.json', 'README.md', 'src/index.ts', 'src/v1/index.ts', 'tsconfig.json', 'tslint.json', - 'system-test/fixtures/sample/src/index.ts', 'system-test/fixtures/sample/src/index.js', - '.jsdoc.js', 'webpack.config.js']) - - # Patch the code. - system_test_files = ['system-test/fixtures/sample/src/index.ts', 'system-test/fixtures/sample/src/index.js'] - for file in system_test_files: - s.replace(file, 'DatastoreClient', 'Datastore') - s.replace(file, 'client.close', '// client.close'); # does not work with the manual layer - - # The staging directory should never be merged into the main branch. - shutil.rmtree(staging) - -common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location="build/src") -s.copy(templates) - -node.postprocess_gapic_library_hermetic() +node.owlbot_main(templates_excludes=[ +'README.md' +]) diff --git a/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json b/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json index 41431b0f7..5cd4602ef 100644 --- a/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json +++ b/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json @@ -1,303 +1,303 @@ { - "clientLibrary": { - "name": "nodejs-admin", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.admin.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ExportEntities_async", - "title": "DatastoreAdmin exportEntities Sample", - "origin": "API_DEFINITION", - "description": " Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.", - "canonical": true, - "file": "datastore_admin.export_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - }, - { - "name": "output_url_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } + "clientLibrary": { + "name": "nodejs-admin", + "version": "10.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.datastore.admin.v1", + "version": "v1" + } + ] }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ImportEntities_async", - "title": "DatastoreAdmin importEntities Sample", - "origin": "API_DEFINITION", - "description": " Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.", - "canonical": true, - "file": "datastore_admin.import_entities.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "input_url", - "type": "TYPE_STRING" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_ExportEntities_async", + "title": "DatastoreAdmin exportEntities Sample", + "origin": "API_DEFINITION", + "description": " Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.", + "canonical": true, + "file": "datastore_admin.export_entities.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "entity_filter", + "type": ".google.datastore.admin.v1.EntityFilter" + }, + { + "name": "output_url_prefix", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "ExportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_CreateIndex_async", - "title": "DatastoreAdmin createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. During index creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then re-creating the index with [create] [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. Indexes with a single property cannot be created.", - "canonical": true, - "file": "datastore_admin.create_index.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.datastore.admin.v1.Index" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_ImportEntities_async", + "title": "DatastoreAdmin importEntities Sample", + "origin": "API_DEFINITION", + "description": " Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.", + "canonical": true, + "file": "datastore_admin.import_entities.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ImportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "input_url", + "type": "TYPE_STRING" + }, + { + "name": "entity_filter", + "type": ".google.datastore.admin.v1.EntityFilter" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "ImportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_DeleteIndex_async", - "title": "DatastoreAdmin deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` [state][google.datastore.admin.v1.Index.State]. And on completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.", - "canonical": true, - "file": "datastore_admin.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_CreateIndex_async", + "title": "DatastoreAdmin createIndex Sample", + "origin": "API_DEFINITION", + "description": " Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. During index creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then re-creating the index with [create] [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. Indexes with a single property cannot be created.", + "canonical": true, + "file": "datastore_admin.create_index.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "index", + "type": ".google.datastore.admin.v1.Index" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "CreateIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_GetIndex_async", - "title": "DatastoreAdmin getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets an index.", - "canonical": true, - "file": "datastore_admin.get_index.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.Index", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_DeleteIndex_async", + "title": "DatastoreAdmin deleteIndex Sample", + "origin": "API_DEFINITION", + "description": " Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` [state][google.datastore.admin.v1.Index.State]. And on completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.", + "canonical": true, + "file": "datastore_admin.delete_index.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "index_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "DeleteIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ListIndexes_async", - "title": "DatastoreAdmin listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.", - "canonical": true, - "file": "datastore_admin.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.ListIndexesResponse", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_GetIndex_async", + "title": "DatastoreAdmin getIndex Sample", + "origin": "API_DEFINITION", + "description": " Gets an index.", + "canonical": true, + "file": "datastore_admin.get_index.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "index_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.datastore.admin.v1.Index", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "GetIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } + { + "regionTag": "datastore_v1_generated_DatastoreAdmin_ListIndexes_async", + "title": "DatastoreAdmin listIndexes Sample", + "origin": "API_DEFINITION", + "description": " Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.", + "canonical": true, + "file": "datastore_admin.list_indexes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListIndexes", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.datastore.admin.v1.ListIndexesResponse", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "ListIndexes", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/samples/generated/v1/snippet_metadata.google.datastore.v1.json b/samples/generated/v1/snippet_metadata.google.datastore.v1.json index 27ec516fc..47fa56c64 100644 --- a/samples/generated/v1/snippet_metadata.google.datastore.v1.json +++ b/samples/generated/v1/snippet_metadata.google.datastore.v1.json @@ -1,439 +1,439 @@ { - "clientLibrary": { - "name": "nodejs-datastore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_Datastore_Lookup_async", - "title": "datastore lookup Sample", - "origin": "API_DEFINITION", - "description": " Looks up entities by key.", - "canonical": true, - "file": "datastore.lookup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.LookupResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } + "clientLibrary": { + "name": "nodejs-datastore", + "version": "10.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.datastore.v1", + "version": "v1" + } + ] }, - { - "regionTag": "datastore_v1_generated_Datastore_RunQuery_async", - "title": "datastore runQuery Sample", - "origin": "API_DEFINITION", - "description": " Queries for entities.", - "canonical": true, - "file": "datastore.run_query.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "query", - "type": ".google.datastore.v1.Query" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - } - ], - "resultType": ".google.datastore.v1.RunQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_Lookup_async", + "title": "datastore lookup Sample", + "origin": "API_DEFINITION", + "description": " Looks up entities by key.", + "canonical": true, + "file": "datastore.lookup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Lookup", + "fullName": "google.datastore.v1.Datastore.Lookup", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "read_options", + "type": ".google.datastore.v1.ReadOptions" + }, + { + "name": "keys", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.datastore.v1.LookupResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "Lookup", + "fullName": "google.datastore.v1.Datastore.Lookup", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_RunAggregationQuery_async", - "title": "datastore runAggregationQuery Sample", - "origin": "API_DEFINITION", - "description": " Runs an aggregation query.", - "canonical": true, - "file": "datastore.run_aggregation_query.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "aggregation_query", - "type": ".google.datastore.v1.AggregationQuery" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - } - ], - "resultType": ".google.datastore.v1.RunAggregationQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_RunQuery_async", + "title": "datastore runQuery Sample", + "origin": "API_DEFINITION", + "description": " Queries for entities.", + "canonical": true, + "file": "datastore.run_query.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RunQuery", + "fullName": "google.datastore.v1.Datastore.RunQuery", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "partition_id", + "type": ".google.datastore.v1.PartitionId" + }, + { + "name": "read_options", + "type": ".google.datastore.v1.ReadOptions" + }, + { + "name": "query", + "type": ".google.datastore.v1.Query" + }, + { + "name": "gql_query", + "type": ".google.datastore.v1.GqlQuery" + } + ], + "resultType": ".google.datastore.v1.RunQueryResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "RunQuery", + "fullName": "google.datastore.v1.Datastore.RunQuery", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_BeginTransaction_async", - "title": "datastore beginTransaction Sample", - "origin": "API_DEFINITION", - "description": " Begins a new transaction.", - "canonical": true, - "file": "datastore.begin_transaction.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction_options", - "type": ".google.datastore.v1.TransactionOptions" - } - ], - "resultType": ".google.datastore.v1.BeginTransactionResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_RunAggregationQuery_async", + "title": "datastore runAggregationQuery Sample", + "origin": "API_DEFINITION", + "description": " Runs an aggregation query.", + "canonical": true, + "file": "datastore.run_aggregation_query.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RunAggregationQuery", + "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "partition_id", + "type": ".google.datastore.v1.PartitionId" + }, + { + "name": "read_options", + "type": ".google.datastore.v1.ReadOptions" + }, + { + "name": "aggregation_query", + "type": ".google.datastore.v1.AggregationQuery" + }, + { + "name": "gql_query", + "type": ".google.datastore.v1.GqlQuery" + } + ], + "resultType": ".google.datastore.v1.RunAggregationQueryResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "RunAggregationQuery", + "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Commit_async", - "title": "datastore commit Sample", - "origin": "API_DEFINITION", - "description": " Commits a transaction, optionally creating, deleting or modifying some entities.", - "canonical": true, - "file": "datastore.commit.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "mode", - "type": ".google.datastore.v1.CommitRequest.Mode" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - }, - { - "name": "single_use_transaction", - "type": ".google.datastore.v1.TransactionOptions" - }, - { - "name": "mutations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.CommitResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_BeginTransaction_async", + "title": "datastore beginTransaction Sample", + "origin": "API_DEFINITION", + "description": " Begins a new transaction.", + "canonical": true, + "file": "datastore.begin_transaction.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BeginTransaction", + "fullName": "google.datastore.v1.Datastore.BeginTransaction", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "transaction_options", + "type": ".google.datastore.v1.TransactionOptions" + } + ], + "resultType": ".google.datastore.v1.BeginTransactionResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "BeginTransaction", + "fullName": "google.datastore.v1.Datastore.BeginTransaction", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Rollback_async", - "title": "datastore rollback Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a transaction.", - "canonical": true, - "file": "datastore.rollback.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.datastore.v1.RollbackResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_Commit_async", + "title": "datastore commit Sample", + "origin": "API_DEFINITION", + "description": " Commits a transaction, optionally creating, deleting or modifying some entities.", + "canonical": true, + "file": "datastore.commit.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 89, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Commit", + "fullName": "google.datastore.v1.Datastore.Commit", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "mode", + "type": ".google.datastore.v1.CommitRequest.Mode" + }, + { + "name": "transaction", + "type": "TYPE_BYTES" + }, + { + "name": "single_use_transaction", + "type": ".google.datastore.v1.TransactionOptions" + }, + { + "name": "mutations", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.datastore.v1.CommitResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "Commit", + "fullName": "google.datastore.v1.Datastore.Commit", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_AllocateIds_async", - "title": "datastore allocateIds Sample", - "origin": "API_DEFINITION", - "description": " Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.", - "canonical": true, - "file": "datastore.allocate_ids.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.AllocateIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_Rollback_async", + "title": "datastore rollback Sample", + "origin": "API_DEFINITION", + "description": " Rolls back a transaction.", + "canonical": true, + "file": "datastore.rollback.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Rollback", + "fullName": "google.datastore.v1.Datastore.Rollback", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "transaction", + "type": "TYPE_BYTES" + } + ], + "resultType": ".google.datastore.v1.RollbackResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "Rollback", + "fullName": "google.datastore.v1.Datastore.Rollback", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_ReserveIds_async", - "title": "datastore reserveIds Sample", - "origin": "API_DEFINITION", - "description": " Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.", - "canonical": true, - "file": "datastore.reserve_ids.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.ReserveIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_AllocateIds_async", + "title": "datastore allocateIds Sample", + "origin": "API_DEFINITION", + "description": " Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.", + "canonical": true, + "file": "datastore.allocate_ids.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AllocateIds", + "fullName": "google.datastore.v1.Datastore.AllocateIds", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "keys", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.datastore.v1.AllocateIdsResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "AllocateIds", + "fullName": "google.datastore.v1.Datastore.AllocateIds", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } + { + "regionTag": "datastore_v1_generated_Datastore_ReserveIds_async", + "title": "datastore reserveIds Sample", + "origin": "API_DEFINITION", + "description": " Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.", + "canonical": true, + "file": "datastore.reserve_ids.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ReserveIds", + "fullName": "google.datastore.v1.Datastore.ReserveIds", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "keys", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.datastore.v1.ReserveIdsResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "ReserveIds", + "fullName": "google.datastore.v1.Datastore.ReserveIds", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json b/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json index a96b7eab4..03bf1ff84 100644 --- a/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json +++ b/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json @@ -1,303 +1,303 @@ { - "clientLibrary": { - "name": "nodejs-admin", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.admin.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ExportEntities_async", - "title": "DatastoreAdmin exportEntities Sample", - "origin": "API_DEFINITION", - "description": " Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.", - "canonical": true, - "file": "datastore_admin.export_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - }, - { - "name": "output_url_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } + "clientLibrary": { + "name": "nodejs-admin", + "version": "10.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.datastore.admin.v1", + "version": "v1" + } + ] }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ImportEntities_async", - "title": "DatastoreAdmin importEntities Sample", - "origin": "API_DEFINITION", - "description": " Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.", - "canonical": true, - "file": "datastore_admin.import_entities.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "input_url", - "type": "TYPE_STRING" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_ExportEntities_async", + "title": "DatastoreAdmin exportEntities Sample", + "origin": "API_DEFINITION", + "description": " Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.", + "canonical": true, + "file": "datastore_admin.export_entities.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 81, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "entity_filter", + "type": ".google.datastore.admin.v1.EntityFilter" + }, + { + "name": "output_url_prefix", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "ExportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_CreateIndex_async", - "title": "DatastoreAdmin createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. During index creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then re-creating the index with [create] [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. Indexes with a single property cannot be created.", - "canonical": true, - "file": "datastore_admin.create_index.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.datastore.admin.v1.Index" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_ImportEntities_async", + "title": "DatastoreAdmin importEntities Sample", + "origin": "API_DEFINITION", + "description": " Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.", + "canonical": true, + "file": "datastore_admin.import_entities.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ImportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "input_url", + "type": "TYPE_STRING" + }, + { + "name": "entity_filter", + "type": ".google.datastore.admin.v1.EntityFilter" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "ImportEntities", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_DeleteIndex_async", - "title": "DatastoreAdmin deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` [state][google.datastore.admin.v1.Index.State]. And on completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.", - "canonical": true, - "file": "datastore_admin.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_CreateIndex_async", + "title": "DatastoreAdmin createIndex Sample", + "origin": "API_DEFINITION", + "description": " Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. During index creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then re-creating the index with [create] [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. Indexes with a single property cannot be created.", + "canonical": true, + "file": "datastore_admin.create_index.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "index", + "type": ".google.datastore.admin.v1.Index" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "CreateIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_GetIndex_async", - "title": "DatastoreAdmin getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets an index.", - "canonical": true, - "file": "datastore_admin.get_index.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.Index", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_DeleteIndex_async", + "title": "DatastoreAdmin deleteIndex Sample", + "origin": "API_DEFINITION", + "description": " Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` [state][google.datastore.admin.v1.Index.State]. And on completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.", + "canonical": true, + "file": "datastore_admin.delete_index.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "index_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "DeleteIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ListIndexes_async", - "title": "DatastoreAdmin listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.", - "canonical": true, - "file": "datastore_admin.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.ListIndexesResponse", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + "regionTag": "datastore_v1_generated_DatastoreAdmin_GetIndex_async", + "title": "DatastoreAdmin getIndex Sample", + "origin": "API_DEFINITION", + "description": " Gets an index.", + "canonical": true, + "file": "datastore_admin.get_index.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "index_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.datastore.admin.v1.Index", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "GetIndex", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } + { + "regionTag": "datastore_v1_generated_DatastoreAdmin_ListIndexes_async", + "title": "DatastoreAdmin listIndexes Sample", + "origin": "API_DEFINITION", + "description": " Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.", + "canonical": true, + "file": "datastore_admin.list_indexes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListIndexes", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.datastore.admin.v1.ListIndexesResponse", + "client": { + "shortName": "DatastoreAdminClient", + "fullName": "google.datastore.admin.v1.DatastoreAdminClient" + }, + "method": { + "shortName": "ListIndexes", + "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", + "service": { + "shortName": "DatastoreAdmin", + "fullName": "google.datastore.admin.v1.DatastoreAdmin" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/samples/generated/v1/snippet_metadata_google.datastore.v1.json b/samples/generated/v1/snippet_metadata_google.datastore.v1.json index ea85b6beb..ea522aa96 100644 --- a/samples/generated/v1/snippet_metadata_google.datastore.v1.json +++ b/samples/generated/v1/snippet_metadata_google.datastore.v1.json @@ -1,455 +1,455 @@ { - "clientLibrary": { - "name": "nodejs-datastore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_Datastore_Lookup_async", - "title": "datastore lookup Sample", - "origin": "API_DEFINITION", - "description": " Looks up entities by key.", - "canonical": true, - "file": "datastore.lookup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "property_mask", - "type": ".google.datastore.v1.PropertyMask" - } - ], - "resultType": ".google.datastore.v1.LookupResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } + "clientLibrary": { + "name": "nodejs-datastore", + "version": "10.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.datastore.v1", + "version": "v1" + } + ] }, - { - "regionTag": "datastore_v1_generated_Datastore_RunQuery_async", - "title": "datastore runQuery Sample", - "origin": "API_DEFINITION", - "description": " Queries for entities.", - "canonical": true, - "file": "datastore.run_query.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "query", - "type": ".google.datastore.v1.Query" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - }, - { - "name": "property_mask", - "type": ".google.datastore.v1.PropertyMask" - }, - { - "name": "explain_options", - "type": ".google.datastore.v1.ExplainOptions" - } - ], - "resultType": ".google.datastore.v1.RunQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_Lookup_async", + "title": "datastore lookup Sample", + "origin": "API_DEFINITION", + "description": " Looks up entities by key.", + "canonical": true, + "file": "datastore.lookup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Lookup", + "fullName": "google.datastore.v1.Datastore.Lookup", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "read_options", + "type": ".google.datastore.v1.ReadOptions" + }, + { + "name": "keys", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "property_mask", + "type": ".google.datastore.v1.PropertyMask" + } + ], + "resultType": ".google.datastore.v1.LookupResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "Lookup", + "fullName": "google.datastore.v1.Datastore.Lookup", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_RunAggregationQuery_async", - "title": "datastore runAggregationQuery Sample", - "origin": "API_DEFINITION", - "description": " Runs an aggregation query.", - "canonical": true, - "file": "datastore.run_aggregation_query.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "aggregation_query", - "type": ".google.datastore.v1.AggregationQuery" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - }, - { - "name": "explain_options", - "type": ".google.datastore.v1.ExplainOptions" - } - ], - "resultType": ".google.datastore.v1.RunAggregationQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_RunQuery_async", + "title": "datastore runQuery Sample", + "origin": "API_DEFINITION", + "description": " Queries for entities.", + "canonical": true, + "file": "datastore.run_query.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 90, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RunQuery", + "fullName": "google.datastore.v1.Datastore.RunQuery", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "partition_id", + "type": ".google.datastore.v1.PartitionId" + }, + { + "name": "read_options", + "type": ".google.datastore.v1.ReadOptions" + }, + { + "name": "query", + "type": ".google.datastore.v1.Query" + }, + { + "name": "gql_query", + "type": ".google.datastore.v1.GqlQuery" + }, + { + "name": "property_mask", + "type": ".google.datastore.v1.PropertyMask" + }, + { + "name": "explain_options", + "type": ".google.datastore.v1.ExplainOptions" + } + ], + "resultType": ".google.datastore.v1.RunQueryResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "RunQuery", + "fullName": "google.datastore.v1.Datastore.RunQuery", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_BeginTransaction_async", - "title": "datastore beginTransaction Sample", - "origin": "API_DEFINITION", - "description": " Begins a new transaction.", - "canonical": true, - "file": "datastore.begin_transaction.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction_options", - "type": ".google.datastore.v1.TransactionOptions" - } - ], - "resultType": ".google.datastore.v1.BeginTransactionResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_RunAggregationQuery_async", + "title": "datastore runAggregationQuery Sample", + "origin": "API_DEFINITION", + "description": " Runs an aggregation query.", + "canonical": true, + "file": "datastore.run_aggregation_query.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RunAggregationQuery", + "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "partition_id", + "type": ".google.datastore.v1.PartitionId" + }, + { + "name": "read_options", + "type": ".google.datastore.v1.ReadOptions" + }, + { + "name": "aggregation_query", + "type": ".google.datastore.v1.AggregationQuery" + }, + { + "name": "gql_query", + "type": ".google.datastore.v1.GqlQuery" + }, + { + "name": "explain_options", + "type": ".google.datastore.v1.ExplainOptions" + } + ], + "resultType": ".google.datastore.v1.RunAggregationQueryResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "RunAggregationQuery", + "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Commit_async", - "title": "datastore commit Sample", - "origin": "API_DEFINITION", - "description": " Commits a transaction, optionally creating, deleting or modifying some entities.", - "canonical": true, - "file": "datastore.commit.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "mode", - "type": ".google.datastore.v1.CommitRequest.Mode" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - }, - { - "name": "single_use_transaction", - "type": ".google.datastore.v1.TransactionOptions" - }, - { - "name": "mutations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.CommitResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_BeginTransaction_async", + "title": "datastore beginTransaction Sample", + "origin": "API_DEFINITION", + "description": " Begins a new transaction.", + "canonical": true, + "file": "datastore.begin_transaction.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BeginTransaction", + "fullName": "google.datastore.v1.Datastore.BeginTransaction", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "transaction_options", + "type": ".google.datastore.v1.TransactionOptions" + } + ], + "resultType": ".google.datastore.v1.BeginTransactionResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "BeginTransaction", + "fullName": "google.datastore.v1.Datastore.BeginTransaction", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Rollback_async", - "title": "datastore rollback Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a transaction.", - "canonical": true, - "file": "datastore.rollback.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.datastore.v1.RollbackResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_Commit_async", + "title": "datastore commit Sample", + "origin": "API_DEFINITION", + "description": " Commits a transaction, optionally creating, deleting or modifying some entities.", + "canonical": true, + "file": "datastore.commit.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 89, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Commit", + "fullName": "google.datastore.v1.Datastore.Commit", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "mode", + "type": ".google.datastore.v1.CommitRequest.Mode" + }, + { + "name": "transaction", + "type": "TYPE_BYTES" + }, + { + "name": "single_use_transaction", + "type": ".google.datastore.v1.TransactionOptions" + }, + { + "name": "mutations", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.datastore.v1.CommitResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "Commit", + "fullName": "google.datastore.v1.Datastore.Commit", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_AllocateIds_async", - "title": "datastore allocateIds Sample", - "origin": "API_DEFINITION", - "description": " Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.", - "canonical": true, - "file": "datastore.allocate_ids.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.AllocateIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_Rollback_async", + "title": "datastore rollback Sample", + "origin": "API_DEFINITION", + "description": " Rolls back a transaction.", + "canonical": true, + "file": "datastore.rollback.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Rollback", + "fullName": "google.datastore.v1.Datastore.Rollback", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "transaction", + "type": "TYPE_BYTES" + } + ], + "resultType": ".google.datastore.v1.RollbackResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "Rollback", + "fullName": "google.datastore.v1.Datastore.Rollback", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_ReserveIds_async", - "title": "datastore reserveIds Sample", - "origin": "API_DEFINITION", - "description": " Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.", - "canonical": true, - "file": "datastore.reserve_ids.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.ReserveIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" + "regionTag": "datastore_v1_generated_Datastore_AllocateIds_async", + "title": "datastore allocateIds Sample", + "origin": "API_DEFINITION", + "description": " Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.", + "canonical": true, + "file": "datastore.allocate_ids.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AllocateIds", + "fullName": "google.datastore.v1.Datastore.AllocateIds", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "keys", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.datastore.v1.AllocateIdsResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "AllocateIds", + "fullName": "google.datastore.v1.Datastore.AllocateIds", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } }, - "method": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } + { + "regionTag": "datastore_v1_generated_Datastore_ReserveIds_async", + "title": "datastore reserveIds Sample", + "origin": "API_DEFINITION", + "description": " Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.", + "canonical": true, + "file": "datastore.reserve_ids.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ReserveIds", + "fullName": "google.datastore.v1.Datastore.ReserveIds", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "database_id", + "type": "TYPE_STRING" + }, + { + "name": "keys", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.datastore.v1.ReserveIdsResponse", + "client": { + "shortName": "DatastoreClient", + "fullName": "google.datastore.v1.DatastoreClient" + }, + "method": { + "shortName": "ReserveIds", + "fullName": "google.datastore.v1.Datastore.ReserveIds", + "service": { + "shortName": "Datastore", + "fullName": "google.datastore.v1.Datastore" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file