diff --git a/.gitignore b/.gitignore index af6629b..5d32b23 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ **/*.log **/node_modules .coverage +coverage .nyc_output docs/ out/ @@ -9,5 +10,5 @@ system-test/secrets.js system-test/*key.json *.lock .DS_Store -__pycache__ package-lock.json +__pycache__ diff --git a/src/v1/data_transfer_service_client.ts b/src/v1/data_transfer_service_client.ts index 40f780a..e635ad2 100644 --- a/src/v1/data_transfer_service_client.ts +++ b/src/v1/data_transfer_service_client.ts @@ -145,25 +145,25 @@ export class DataTransferServiceClient { // identifiers to uniquely identify resources within the API. // Create useful helper objects for these. this._pathTemplates = { + projectPathTemplate: new gaxModule.PathTemplate('projects/{project}'), projectDataSourcePathTemplate: new gaxModule.PathTemplate( 'projects/{project}/dataSources/{data_source}' ), projectLocationDataSourcePathTemplate: new gaxModule.PathTemplate( 'projects/{project}/locations/{location}/dataSources/{data_source}' ), - projectPathTemplate: new gaxModule.PathTemplate('projects/{project}'), - projectTransferConfigPathTemplate: new gaxModule.PathTemplate( - 'projects/{project}/transferConfigs/{transfer_config}' - ), projectLocationTransferConfigPathTemplate: new gaxModule.PathTemplate( 'projects/{project}/locations/{location}/transferConfigs/{transfer_config}' ), - projectTransferConfigRunPathTemplate: new gaxModule.PathTemplate( - 'projects/{project}/transferConfigs/{transfer_config}/runs/{run}' - ), projectLocationTransferConfigRunPathTemplate: new gaxModule.PathTemplate( 'projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}' ), + projectTransferConfigPathTemplate: new gaxModule.PathTemplate( + 'projects/{project}/transferConfigs/{transfer_config}' + ), + projectTransferConfigRunPathTemplate: new gaxModule.PathTemplate( + 'projects/{project}/transferConfigs/{transfer_config}/runs/{run}' + ), }; // Some of the methods on this service return "paged" results, @@ -1360,9 +1360,17 @@ export class DataTransferServiceClient { */ listDataSourcesStream( request?: protosTypes.google.cloud.bigquery.datatransfer.v1.IListDataSourcesRequest, - options?: gax.CallOptions | {} + options?: gax.CallOptions ): Transform { request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); return this._descriptors.page.listDataSources.createStream( this._innerApiCalls.listDataSources as gax.GaxCall, @@ -1502,9 +1510,17 @@ export class DataTransferServiceClient { */ listTransferConfigsStream( request?: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferConfigsRequest, - options?: gax.CallOptions | {} + options?: gax.CallOptions ): Transform { request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); return this._descriptors.page.listTransferConfigs.createStream( this._innerApiCalls.listTransferConfigs as gax.GaxCall, @@ -1650,9 +1666,17 @@ export class DataTransferServiceClient { */ listTransferRunsStream( request?: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferRunsRequest, - options?: gax.CallOptions | {} + options?: gax.CallOptions ): Transform { request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); return this._descriptors.page.listTransferRuns.createStream( this._innerApiCalls.listTransferRuns as gax.GaxCall, @@ -1794,9 +1818,17 @@ export class DataTransferServiceClient { */ listTransferLogsStream( request?: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferLogsRequest, - options?: gax.CallOptions | {} + options?: gax.CallOptions ): Transform { request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); return this._descriptors.page.listTransferLogs.createStream( this._innerApiCalls.listTransferLogs as gax.GaxCall, @@ -1808,6 +1840,29 @@ export class DataTransferServiceClient { // -- Path templates -- // -------------------- + /** + * Return a fully-qualified project resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + projectPath(project: string) { + return this._pathTemplates.projectPathTemplate.render({ + project, + }); + } + + /** + * Parse the project from Project resource. + * + * @param {string} projectName + * A fully-qualified path representing Project resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectName(projectName: string) { + return this._pathTemplates.projectPathTemplate.match(projectName).project; + } + /** * Return a fully-qualified projectDataSource resource name string. * @@ -1913,71 +1968,6 @@ export class DataTransferServiceClient { ).data_source; } - /** - * Return a fully-qualified project resource name string. - * - * @param {string} project - * @returns {string} Resource name string. - */ - projectPath(project: string) { - return this._pathTemplates.projectPathTemplate.render({ - project, - }); - } - - /** - * Parse the project from Project resource. - * - * @param {string} projectName - * A fully-qualified path representing Project resource. - * @returns {string} A string representing the project. - */ - matchProjectFromProjectName(projectName: string) { - return this._pathTemplates.projectPathTemplate.match(projectName).project; - } - - /** - * Return a fully-qualified projectTransferConfig resource name string. - * - * @param {string} project - * @param {string} transfer_config - * @returns {string} Resource name string. - */ - projectTransferConfigPath(project: string, transferConfig: string) { - return this._pathTemplates.projectTransferConfigPathTemplate.render({ - project, - transfer_config: transferConfig, - }); - } - - /** - * Parse the project from ProjectTransferConfig resource. - * - * @param {string} projectTransferConfigName - * A fully-qualified path representing project_transfer_config resource. - * @returns {string} A string representing the project. - */ - matchProjectFromProjectTransferConfigName(projectTransferConfigName: string) { - return this._pathTemplates.projectTransferConfigPathTemplate.match( - projectTransferConfigName - ).project; - } - - /** - * Parse the transfer_config from ProjectTransferConfig resource. - * - * @param {string} projectTransferConfigName - * A fully-qualified path representing project_transfer_config resource. - * @returns {string} A string representing the transfer_config. - */ - matchTransferConfigFromProjectTransferConfigName( - projectTransferConfigName: string - ) { - return this._pathTemplates.projectTransferConfigPathTemplate.match( - projectTransferConfigName - ).transfer_config; - } - /** * Return a fully-qualified projectLocationTransferConfig resource name string. * @@ -2045,71 +2035,6 @@ export class DataTransferServiceClient { ).transfer_config; } - /** - * Return a fully-qualified projectTransferConfigRun resource name string. - * - * @param {string} project - * @param {string} transfer_config - * @param {string} run - * @returns {string} Resource name string. - */ - projectTransferConfigRunPath( - project: string, - transferConfig: string, - run: string - ) { - return this._pathTemplates.projectTransferConfigRunPathTemplate.render({ - project, - transfer_config: transferConfig, - run, - }); - } - - /** - * Parse the project from ProjectTransferConfigRun resource. - * - * @param {string} projectTransferConfigRunName - * A fully-qualified path representing project_transfer_config_run resource. - * @returns {string} A string representing the project. - */ - matchProjectFromProjectTransferConfigRunName( - projectTransferConfigRunName: string - ) { - return this._pathTemplates.projectTransferConfigRunPathTemplate.match( - projectTransferConfigRunName - ).project; - } - - /** - * Parse the transfer_config from ProjectTransferConfigRun resource. - * - * @param {string} projectTransferConfigRunName - * A fully-qualified path representing project_transfer_config_run resource. - * @returns {string} A string representing the transfer_config. - */ - matchTransferConfigFromProjectTransferConfigRunName( - projectTransferConfigRunName: string - ) { - return this._pathTemplates.projectTransferConfigRunPathTemplate.match( - projectTransferConfigRunName - ).transfer_config; - } - - /** - * Parse the run from ProjectTransferConfigRun resource. - * - * @param {string} projectTransferConfigRunName - * A fully-qualified path representing project_transfer_config_run resource. - * @returns {string} A string representing the run. - */ - matchRunFromProjectTransferConfigRunName( - projectTransferConfigRunName: string - ) { - return this._pathTemplates.projectTransferConfigRunPathTemplate.match( - projectTransferConfigRunName - ).run; - } - /** * Return a fully-qualified projectLocationTransferConfigRun resource name string. * @@ -2195,6 +2120,113 @@ export class DataTransferServiceClient { ).run; } + /** + * Return a fully-qualified projectTransferConfig resource name string. + * + * @param {string} project + * @param {string} transfer_config + * @returns {string} Resource name string. + */ + projectTransferConfigPath(project: string, transferConfig: string) { + return this._pathTemplates.projectTransferConfigPathTemplate.render({ + project, + transfer_config: transferConfig, + }); + } + + /** + * Parse the project from ProjectTransferConfig resource. + * + * @param {string} projectTransferConfigName + * A fully-qualified path representing project_transfer_config resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectTransferConfigName(projectTransferConfigName: string) { + return this._pathTemplates.projectTransferConfigPathTemplate.match( + projectTransferConfigName + ).project; + } + + /** + * Parse the transfer_config from ProjectTransferConfig resource. + * + * @param {string} projectTransferConfigName + * A fully-qualified path representing project_transfer_config resource. + * @returns {string} A string representing the transfer_config. + */ + matchTransferConfigFromProjectTransferConfigName( + projectTransferConfigName: string + ) { + return this._pathTemplates.projectTransferConfigPathTemplate.match( + projectTransferConfigName + ).transfer_config; + } + + /** + * Return a fully-qualified projectTransferConfigRun resource name string. + * + * @param {string} project + * @param {string} transfer_config + * @param {string} run + * @returns {string} Resource name string. + */ + projectTransferConfigRunPath( + project: string, + transferConfig: string, + run: string + ) { + return this._pathTemplates.projectTransferConfigRunPathTemplate.render({ + project, + transfer_config: transferConfig, + run, + }); + } + + /** + * Parse the project from ProjectTransferConfigRun resource. + * + * @param {string} projectTransferConfigRunName + * A fully-qualified path representing project_transfer_config_run resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectTransferConfigRunName( + projectTransferConfigRunName: string + ) { + return this._pathTemplates.projectTransferConfigRunPathTemplate.match( + projectTransferConfigRunName + ).project; + } + + /** + * Parse the transfer_config from ProjectTransferConfigRun resource. + * + * @param {string} projectTransferConfigRunName + * A fully-qualified path representing project_transfer_config_run resource. + * @returns {string} A string representing the transfer_config. + */ + matchTransferConfigFromProjectTransferConfigRunName( + projectTransferConfigRunName: string + ) { + return this._pathTemplates.projectTransferConfigRunPathTemplate.match( + projectTransferConfigRunName + ).transfer_config; + } + + /** + * Parse the run from ProjectTransferConfigRun resource. + * + * @param {string} projectTransferConfigRunName + * A fully-qualified path representing project_transfer_config_run resource. + * @returns {string} A string representing the run. + */ + matchRunFromProjectTransferConfigRunName( + projectTransferConfigRunName: string + ) { + return this._pathTemplates.projectTransferConfigRunPathTemplate.match( + projectTransferConfigRunName + ).run; + } + /** * Terminate the GRPC channel and close the client. * diff --git a/src/v1/data_transfer_service_proto_list.json b/src/v1/data_transfer_service_proto_list.json index 616ffd8..2fc32cc 100644 --- a/src/v1/data_transfer_service_proto_list.json +++ b/src/v1/data_transfer_service_proto_list.json @@ -1,4 +1,4 @@ [ - "../../protos/google/cloud/bigquery/datatransfer/v1/transfer.proto", - "../../protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto" + "../../protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto", + "../../protos/google/cloud/bigquery/datatransfer/v1/transfer.proto" ] diff --git a/synth.metadata b/synth.metadata index 7368492..277d025 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,20 +1,20 @@ { - "updateTime": "2020-01-29T04:07:18.717825Z", + "updateTime": "2020-02-07T12:11:39.919797Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "cf3b61102ed5f36b827bc82ec39be09525f018c8", - "internalRef": "292034635", - "log": "cf3b61102ed5f36b827bc82ec39be09525f018c8\n Fix to protos for v1p1beta1 release of Cloud Security Command Center\n\nPiperOrigin-RevId: 292034635\n\n4e1cfaa7c0fede9e65d64213ca3da1b1255816c0\nUpdate the public proto to support UTF-8 encoded id for CatalogService API, increase the ListCatalogItems deadline to 300s and some minor documentation change\n\nPiperOrigin-RevId: 292030970\n\n" + "sha": "e46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585", + "internalRef": "293710856", + "log": "e46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\nb5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7\nAdd Dataproc Autoscaling API to V1.\n\nPiperOrigin-RevId: 292450564\n\n5d932b2c1be3a6ef487d094e3cf5c0673d0241dd\n- Improve documentation\n- Add a client_id field to StreamingPullRequest\n\nPiperOrigin-RevId: 292434036\n\neaff9fa8edec3e914995ce832b087039c5417ea7\nmonitoring: v3 publish annotations and client retry config\n\nPiperOrigin-RevId: 292425288\n\n70958bab8c5353870d31a23fb2c40305b050d3fe\nBigQuery Storage Read API v1 clients.\n\nPiperOrigin-RevId: 292407644\n\n7a15e7fe78ff4b6d5c9606a3264559e5bde341d1\nUpdate backend proto for Google Cloud Endpoints\n\nPiperOrigin-RevId: 292391607\n\n3ca2c014e24eb5111c8e7248b1e1eb833977c83d\nbazel: Add --flaky_test_attempts=3 argument to prevent CI failures caused by flaky tests\n\nPiperOrigin-RevId: 292382559\n\n9933347c1f677e81e19a844c2ef95bfceaf694fe\nbazel:Integrate latest protoc-java-resource-names-plugin changes (fix for PyYAML dependency in bazel rules)\n\nPiperOrigin-RevId: 292376626\n\nb835ab9d2f62c88561392aa26074c0b849fb0bd3\nasset: v1p2beta1 add client config annotations\n\n* remove unintentionally exposed RPCs\n* remove messages relevant to removed RPCs\n\nPiperOrigin-RevId: 292369593\n\nc1246a29e22b0f98e800a536b5b0da2d933a55f2\nUpdating v1 protos with the latest inline documentation (in comments) and config options. Also adding a per-service .yaml file.\n\nPiperOrigin-RevId: 292310790\n\nb491d07cadaae7cde5608321f913e5ca1459b32d\nRevert accidental local_repository change\n\nPiperOrigin-RevId: 292245373\n\naf3400a8cb6110025198b59a0f7d018ae3cda700\nUpdate gapic-generator dependency (prebuilt PHP binary support).\n\nPiperOrigin-RevId: 292243997\n\n341fd5690fae36f36cf626ef048fbcf4bbe7cee6\ngrafeas: v1 add resource_definition for the grafeas.io/Project and change references for Project.\n\nPiperOrigin-RevId: 292221998\n\n42e915ec2ece1cd37a590fbcd10aa2c0fb0e5b06\nUpdate the gapic-generator, protoc-java-resource-name-plugin and protoc-docs-plugin to the latest commit.\n\nPiperOrigin-RevId: 292182368\n\nf035f47250675d31492a09f4a7586cfa395520a7\nFix grafeas build and update build.sh script to include gerafeas.\n\nPiperOrigin-RevId: 292168753\n\n26ccb214b7bc4a716032a6266bcb0a9ca55d6dbb\nasset: v1p1beta1 add client config annotations and retry config\n\nPiperOrigin-RevId: 292154210\n\n974ee5c0b5d03e81a50dafcedf41e0efebb5b749\nasset: v1beta1 add client config annotations\n\nPiperOrigin-RevId: 292152573\n\n" } }, { "template": { "name": "node_library", "origin": "synthtool.gcp", - "version": "2019.10.17" + "version": "2020.2.4" } } ], @@ -28,205 +28,5 @@ "generator": "gapic-generator-typescript" } } - ], - "newFiles": [ - { - "path": ".eslintignore" - }, - { - "path": ".eslintrc.yml" - }, - { - "path": ".github/ISSUE_TEMPLATE/bug_report.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/feature_request.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/support_request.md" - }, - { - "path": ".github/PULL_REQUEST_TEMPLATE.md" - }, - { - "path": ".github/release-please.yml" - }, - { - "path": ".jsdoc.js" - }, - { - "path": ".kokoro/common.cfg" - }, - { - "path": ".kokoro/continuous/node10/common.cfg" - }, - { - "path": ".kokoro/continuous/node10/docs.cfg" - }, - { - "path": ".kokoro/continuous/node10/lint.cfg" - }, - { - "path": ".kokoro/continuous/node10/samples-test.cfg" - }, - { - "path": ".kokoro/continuous/node10/system-test.cfg" - }, - { - "path": ".kokoro/continuous/node10/test.cfg" - }, - { - "path": ".kokoro/continuous/node12/common.cfg" - }, - { - "path": ".kokoro/continuous/node12/test.cfg" - }, - { - "path": ".kokoro/continuous/node8/common.cfg" - }, - { - "path": ".kokoro/continuous/node8/test.cfg" - }, - { - "path": ".kokoro/docs.sh" - }, - { - "path": ".kokoro/lint.sh" - }, - { - "path": ".kokoro/presubmit/node10/common.cfg" - }, - { - "path": ".kokoro/presubmit/node10/docs.cfg" - }, - { - "path": ".kokoro/presubmit/node10/lint.cfg" - }, - { - "path": ".kokoro/presubmit/node10/samples-test.cfg" - }, - { - "path": ".kokoro/presubmit/node10/system-test.cfg" - }, - { - "path": ".kokoro/presubmit/node10/test.cfg" - }, - { - "path": ".kokoro/presubmit/node12/common.cfg" - }, - { - "path": ".kokoro/presubmit/node12/test.cfg" - }, - { - "path": ".kokoro/presubmit/node8/common.cfg" - }, - { - "path": ".kokoro/presubmit/node8/test.cfg" - }, - { - "path": ".kokoro/presubmit/windows/common.cfg" - }, - { - "path": ".kokoro/presubmit/windows/test.cfg" - }, - { - "path": ".kokoro/publish.sh" - }, - { - "path": ".kokoro/release/docs.cfg" - }, - { - "path": ".kokoro/release/docs.sh" - }, - { - "path": ".kokoro/release/publish.cfg" - }, - { - "path": ".kokoro/samples-test.sh" - }, - { - "path": ".kokoro/system-test.sh" - }, - { - "path": ".kokoro/test.bat" - }, - { - "path": ".kokoro/test.sh" - }, - { - "path": ".kokoro/trampoline.sh" - }, - { - "path": ".nycrc" - }, - { - "path": ".prettierignore" - }, - { - "path": ".prettierrc" - }, - { - "path": "CODE_OF_CONDUCT.md" - }, - { - "path": "CONTRIBUTING.md" - }, - { - "path": "LICENSE" - }, - { - "path": "README.md" - }, - { - "path": "codecov.yaml" - }, - { - "path": "linkinator.config.json" - }, - { - "path": "protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto" - }, - { - "path": "protos/google/cloud/bigquery/datatransfer/v1/transfer.proto" - }, - { - "path": "protos/google/cloud/common_resources.proto" - }, - { - "path": "renovate.json" - }, - { - "path": "samples/README.md" - }, - { - "path": "src/v1/data_transfer_service_client.ts" - }, - { - "path": "src/v1/data_transfer_service_client_config.json" - }, - { - "path": "src/v1/data_transfer_service_proto_list.json" - }, - { - "path": "system-test/fixtures/sample/src/index.js" - }, - { - "path": "system-test/fixtures/sample/src/index.ts" - }, - { - "path": "system-test/install.ts" - }, - { - "path": "test/gapic-data_transfer_service-v1.ts" - }, - { - "path": "tsconfig.json" - }, - { - "path": "tslint.json" - }, - { - "path": "webpack.config.js" - } ] } \ No newline at end of file diff --git a/test/gapic-data_transfer_service-v1.ts b/test/gapic-data_transfer_service-v1.ts index af05403..28ac2b8 100644 --- a/test/gapic-data_transfer_service-v1.ts +++ b/test/gapic-data_transfer_service-v1.ts @@ -93,6 +93,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IGetDataSourceRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -117,6 +118,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IGetDataSourceRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -143,6 +145,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.ICreateTransferConfigRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -167,6 +170,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.ICreateTransferConfigRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -247,6 +251,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IDeleteTransferConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -271,6 +276,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IDeleteTransferConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -297,6 +303,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IGetTransferConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -321,6 +328,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IGetTransferConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -347,6 +355,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IScheduleTransferRunsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -371,6 +380,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IScheduleTransferRunsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -397,6 +407,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IStartManualTransferRunsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -421,6 +432,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IStartManualTransferRunsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -450,6 +462,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IGetTransferRunRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -474,6 +487,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IGetTransferRunRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -500,6 +514,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IDeleteTransferRunRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -524,6 +539,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IDeleteTransferRunRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -550,6 +566,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.ICheckValidCredsRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -574,6 +591,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.ICheckValidCredsRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -600,6 +618,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListDataSourcesRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock Grpc layer @@ -628,8 +647,9 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListDataSourcesRequest = {}; + request.parent = ''; // Mock response - const expectedResponse = {}; + const expectedResponse = {response: 'data'}; // Mock Grpc layer client._innerApiCalls.listDataSources = ( actualRequest: {}, @@ -648,7 +668,7 @@ describe('v1.DataTransferServiceClient', () => { .on('error', (err: FakeError) => { done(err); }); - stream.write(request); + stream.write(expectedResponse); }); }); describe('listTransferConfigs', () => { @@ -661,6 +681,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferConfigsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock Grpc layer @@ -689,8 +710,9 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferConfigsRequest = {}; + request.parent = ''; // Mock response - const expectedResponse = {}; + const expectedResponse = {response: 'data'}; // Mock Grpc layer client._innerApiCalls.listTransferConfigs = ( actualRequest: {}, @@ -709,7 +731,7 @@ describe('v1.DataTransferServiceClient', () => { .on('error', (err: FakeError) => { done(err); }); - stream.write(request); + stream.write(expectedResponse); }); }); describe('listTransferRuns', () => { @@ -722,6 +744,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferRunsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock Grpc layer @@ -750,8 +773,9 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferRunsRequest = {}; + request.parent = ''; // Mock response - const expectedResponse = {}; + const expectedResponse = {response: 'data'}; // Mock Grpc layer client._innerApiCalls.listTransferRuns = ( actualRequest: {}, @@ -770,7 +794,7 @@ describe('v1.DataTransferServiceClient', () => { .on('error', (err: FakeError) => { done(err); }); - stream.write(request); + stream.write(expectedResponse); }); }); describe('listTransferLogs', () => { @@ -783,6 +807,7 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferLogsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock Grpc layer @@ -811,8 +836,9 @@ describe('v1.DataTransferServiceClient', () => { ); // Mock request const request: protosTypes.google.cloud.bigquery.datatransfer.v1.IListTransferLogsRequest = {}; + request.parent = ''; // Mock response - const expectedResponse = {}; + const expectedResponse = {response: 'data'}; // Mock Grpc layer client._innerApiCalls.listTransferLogs = ( actualRequest: {}, @@ -831,7 +857,7 @@ describe('v1.DataTransferServiceClient', () => { .on('error', (err: FakeError) => { done(err); }); - stream.write(request); + stream.write(expectedResponse); }); }); });