diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml new file mode 100644 index 000000000..5c30c32ab --- /dev/null +++ b/.github/header-checker-lint.yml @@ -0,0 +1,13 @@ +# Lint check for license headers. +# See: https://github.com/googleapis/repo-automation-bots/tree/main/packages/header-checker-lint +allowedCopyrightHolders: + - 'Google LLC' +allowedLicenses: + - 'Apache-2.0' +sourceFileExtensions: + - 'py' + - 'sh' + - 'ts' + - 'js' + - 'java' + # Note that separate nblint checks will handle *.ipynb files. diff --git a/quickstarts/file-api/sample.js b/quickstarts/file-api/sample.js index 192223ca1..54edd0da0 100644 --- a/quickstarts/file-api/sample.js +++ b/quickstarts/file-api/sample.js @@ -1,3 +1,18 @@ +/* + * Copyright 2025 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. + */ const dotenv = require('dotenv'); const fs = require('fs'); const {google} = require('googleapis'); diff --git a/quickstarts/file-api/sample.py b/quickstarts/file-api/sample.py index b8b893ac1..80b955d30 100644 --- a/quickstarts/file-api/sample.py +++ b/quickstarts/file-api/sample.py @@ -1,3 +1,17 @@ +# Copyright 2025 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 google.generativeai as genai import os from dotenv import load_dotenv diff --git a/quickstarts/file-api/sample.sh b/quickstarts/file-api/sample.sh index b042d8bda..088f7d3f1 100755 --- a/quickstarts/file-api/sample.sh +++ b/quickstarts/file-api/sample.sh @@ -1,5 +1,18 @@ #!/bin/bash +# Copyright 2025 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. + # Upload a file using the GenAI File API via curl. api_key="" input_file=""