Skip to content

Commit

Permalink
Add license headers to all files as required by OSPO
Browse files Browse the repository at this point in the history
  • Loading branch information
grant committed Apr 11, 2018
1 parent 9a56a1f commit 2199b89
Show file tree
Hide file tree
Showing 66 changed files with 902 additions and 59 deletions.
15 changes: 15 additions & 0 deletions adminSDK/directory/quickstart.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
function listUsers() {
var optionalArgs = {
customer: 'my_customer',
Expand Down
15 changes: 15 additions & 0 deletions adminSDK/groups-migration/quickstart.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
function insertEmailIntoGroup() {
var groupId = 'YOUR_GROUP_EMAIL_ADDRESS_HERE';
var threads = GmailApp.getInboxThreads();
Expand Down
15 changes: 15 additions & 0 deletions adminSDK/groups-settings/quickstart.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
function getGroupSettings() {
var groupUniqueId = 'YOUR_GROUP_EMAIL_ADDRESS_HERE';
var group = AdminGroupsSettings.Groups.get(groupUniqueId);
Expand Down
15 changes: 15 additions & 0 deletions adminSDK/licensing/quickstart.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
function listLicenseAssignments() {
var customerId = 'YOUR_DOMAIN_NAME_HERE';
var productId = 'Google-Apps';
Expand Down
15 changes: 15 additions & 0 deletions adminSDK/reports/quickstart.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
function listLogins() {
var userKey = 'all';
var applicationName = 'login';
Expand Down
15 changes: 15 additions & 0 deletions adminSDK/reseller/quickstart.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
function listSubscriptions() {
var optionalArgs = {
maxResults: 10
Expand Down
15 changes: 15 additions & 0 deletions advanced/adminSDK.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* Lists all the users in a domain sorted by first name.
*/
Expand Down
15 changes: 15 additions & 0 deletions advanced/adsense.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
// [START listAdClients]
function listAdClients() {
// Retrieve ad client list in pages and log data as we receive it.
Expand Down
15 changes: 15 additions & 0 deletions advanced/analytics.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
// [START listAccounts]
function listAccounts() {
var accounts = Analytics.Management.Accounts.list();
Expand Down
15 changes: 15 additions & 0 deletions advanced/appsActivity.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* Gets a file's activity and logs the list of
* unique users that performed the activity.
Expand Down
15 changes: 15 additions & 0 deletions advanced/bigquery.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
// [START runQuery]
function runQuery() {
// Replace this value with the project ID listed in the Google
Expand Down
15 changes: 15 additions & 0 deletions advanced/calendar.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* Lists the calendars shown in the user's calendar list.
*/
Expand Down
15 changes: 15 additions & 0 deletions advanced/classroom.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
// [START listCourses]
function listCourses() {
var optionalArgs = {
Expand Down
17 changes: 16 additions & 1 deletion advanced/doubleclick.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* Logs all of the user profiles available in the account.
*/
Expand Down Expand Up @@ -59,7 +74,7 @@ function createAdvertiserAndCampaign() {
};
var advertiserId = DoubleClickCampaigns.Advertisers
.insert(advertiser, profileId).id;

var landingPage = {
advertiserId: advertiserId,
archived: false,
Expand Down
15 changes: 15 additions & 0 deletions advanced/drive.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* Uploads a new file to the user's Drive.
*/
Expand Down
15 changes: 15 additions & 0 deletions advanced/fusionTables.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* This sample lists Fusion Tables that the user has access to.
*/
Expand Down
15 changes: 15 additions & 0 deletions advanced/gmail.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* Lists the user's labels, including name, type,
* ID and visibility information.
Expand Down
15 changes: 15 additions & 0 deletions advanced/googlePlus.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* The following example demonstrates how to retrieve a list of the people
* in the user's Google+ circles.
Expand Down
15 changes: 15 additions & 0 deletions advanced/googlePlusDomains.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* The following example demonstrates how to retrieve details from a user's
* Google+ profile.
Expand Down
15 changes: 15 additions & 0 deletions advanced/mirror.gs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 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.
*/
/**
* This sample inserts a new item into the timeline.
*/
Expand Down
Loading

0 comments on commit 2199b89

Please sign in to comment.