diff --git a/templates/typescript_gapic/_license.njk b/templates/typescript_gapic/_license.njk index 2106a4d9f..abea20811 100644 --- a/templates/typescript_gapic/_license.njk +++ b/templates/typescript_gapic/_license.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} {% macro license() -%} // Copyright 2019 Google LLC // diff --git a/templates/typescript_gapic/_util.njk b/templates/typescript_gapic/_util.njk index 3e892754b..4b175ab7a 100644 --- a/templates/typescript_gapic/_util.njk +++ b/templates/typescript_gapic/_util.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} {%- macro initRequestWithHeaderParam(method) -%} const request: protosTypes{{ method.inputInterface }} = {}; {%- if method.headerRequestParams.length > 1 %} diff --git a/templates/typescript_gapic/package.json.njk b/templates/typescript_gapic/package.json.njk index 77dfe42b0..fe1710ad6 100644 --- a/templates/typescript_gapic/package.json.njk +++ b/templates/typescript_gapic/package.json.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} { "repository": "googleapis/nodejs-{{ api.naming.productName.toKebabCase() }}", "name": "{{ api.naming.productName.toKebabCase() }}", diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index 91964f93e..be4e18898 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} {% import "../../_license.njk" as license -%} {{license.license()}} import * as gax from 'google-gax'; diff --git a/templates/typescript_gapic/src/$version/$service_client_config.json.njk b/templates/typescript_gapic/src/$version/$service_client_config.json.njk index 411bdb1fc..01ac3c292 100644 --- a/templates/typescript_gapic/src/$version/$service_client_config.json.njk +++ b/templates/typescript_gapic/src/$version/$service_client_config.json.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} { "interfaces": { "{{ api.naming.protoPackage }}.{{ service.name }}": { diff --git a/templates/typescript_gapic/src/$version/$service_proto_list.json.njk b/templates/typescript_gapic/src/$version/$service_proto_list.json.njk index a8e6df2b9..09ce2c06e 100644 --- a/templates/typescript_gapic/src/$version/$service_proto_list.json.njk +++ b/templates/typescript_gapic/src/$version/$service_proto_list.json.njk @@ -1 +1,18 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} {{ api.protoFilesToGenerateJSON | safe}} diff --git a/templates/typescript_gapic/src/$version/index.ts.njk b/templates/typescript_gapic/src/$version/index.ts.njk index cfde7a5fa..95c2da25c 100644 --- a/templates/typescript_gapic/src/$version/index.ts.njk +++ b/templates/typescript_gapic/src/$version/index.ts.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} {% import "../../_license.njk" as license -%} {{license.license()}} {% for service in api.services -%} diff --git a/templates/typescript_gapic/src/index.ts.njk b/templates/typescript_gapic/src/index.ts.njk index 95100ab55..21aa891d3 100644 --- a/templates/typescript_gapic/src/index.ts.njk +++ b/templates/typescript_gapic/src/index.ts.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} {% import "../_license.njk" as license -%} {{license.license()}} import * as {{ api.naming.version }} from './{{ api.naming.version }}'; diff --git a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk index cf91bc034..2c8efadf1 100644 --- a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk +++ b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} {% import "../_license.njk" as license -%} {% import "../_util.njk" as util -%} {{license.license()}} diff --git a/templates/typescript_gapic/tsconfig.json.njk b/templates/typescript_gapic/tsconfig.json.njk index 2d9b83e3f..6d41173c7 100644 --- a/templates/typescript_gapic/tsconfig.json.njk +++ b/templates/typescript_gapic/tsconfig.json.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} { "extends": "./node_modules/gts/tsconfig-google.json", "compilerOptions": { diff --git a/templates/typescript_gapic/tslint.json.njk b/templates/typescript_gapic/tslint.json.njk index b3bfaf592..abe75f692 100644 --- a/templates/typescript_gapic/tslint.json.njk +++ b/templates/typescript_gapic/tslint.json.njk @@ -1,3 +1,20 @@ +{#- + +Copyright 2019 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +-#} { "extends": "gts/tslint.json", "rules": { diff --git a/typescript/src/schema/api.ts b/typescript/src/schema/api.ts index 5d6b5f4be..f9922628c 100644 --- a/typescript/src/schema/api.ts +++ b/typescript/src/schema/api.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as plugin from '../../../pbjs-genfiles/plugin'; import * as fs from 'fs'; import * as path from 'path'; diff --git a/typescript/src/schema/comments.ts b/typescript/src/schema/comments.ts index 22d50e62b..e6062e9fc 100644 --- a/typescript/src/schema/comments.ts +++ b/typescript/src/schema/comments.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as plugin from '../../../pbjs-genfiles/plugin'; export interface Comments { [name: string]: string; diff --git a/typescript/src/schema/naming.ts b/typescript/src/schema/naming.ts index e36ccbc11..c83298817 100644 --- a/typescript/src/schema/naming.ts +++ b/typescript/src/schema/naming.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as plugin from '../../../pbjs-genfiles/plugin'; import { commonPrefix } from '../util'; diff --git a/typescript/src/schema/proto.ts b/typescript/src/schema/proto.ts index db0beba2d..0864dc4f4 100644 --- a/typescript/src/schema/proto.ts +++ b/typescript/src/schema/proto.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as plugin from '../../../pbjs-genfiles/plugin'; import { CommentsMap } from './comments'; import * as objectHash from 'object-hash'; diff --git a/typescript/src/templater.ts b/typescript/src/templater.ts index 635f65e1b..257d56d84 100644 --- a/typescript/src/templater.ts +++ b/typescript/src/templater.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as fs from 'fs'; import * as nunjucks from 'nunjucks'; import * as path from 'path'; diff --git a/typescript/src/util.ts b/typescript/src/util.ts index 3f15486b3..8746a9a56 100644 --- a/typescript/src/util.ts +++ b/typescript/src/util.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as plugin from '../../pbjs-genfiles/plugin'; export function commonPrefix(strings: string[]): string { diff --git a/typescript/test/test_application_ts/src/index.ts b/typescript/test/test_application_ts/src/index.ts index a70c1cef0..646b564a7 100644 --- a/typescript/test/test_application_ts/src/index.ts +++ b/typescript/test/test_application_ts/src/index.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as assert from 'assert'; import * as showcase from 'showcase'; diff --git a/typescript/test/unit/api.ts b/typescript/test/unit/api.ts index 81a55eb0c..dedf1c49b 100644 --- a/typescript/test/unit/api.ts +++ b/typescript/test/unit/api.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { API } from '../../src/schema/api'; import * as plugin from '../../../pbjs-genfiles/plugin'; import * as assert from 'assert'; diff --git a/typescript/test/unit/codemap.ts b/typescript/test/unit/codemap.ts index 001a243a9..986317973 100644 --- a/typescript/test/unit/codemap.ts +++ b/typescript/test/unit/codemap.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { RetryableCodeMap } from '../../src/schema/proto'; import * as plugin from '../../../pbjs-genfiles/plugin'; import * as assert from 'assert'; diff --git a/typescript/test/util.ts b/typescript/test/util.ts index 04347f478..c111c3b0a 100644 --- a/typescript/test/util.ts +++ b/typescript/test/util.ts @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as fs from 'fs-extra'; import * as path from 'path';