Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Answer extends \Google\Model
{
protected $fileUploadAnswersType = FileUploadAnswers::class;
protected $fileUploadAnswersDataType = '';
protected $gradeType = Grade::class;
protected $gradeDataType = '';
/**
* @var string
*/
public $questionId;
protected $textAnswersType = TextAnswers::class;
protected $textAnswersDataType = '';
/**
* @param FileUploadAnswers
*/
public function setFileUploadAnswers(FileUploadAnswers $fileUploadAnswers)
{
$this->fileUploadAnswers = $fileUploadAnswers;
}
/**
* @return FileUploadAnswers
*/
public function getFileUploadAnswers()
{
return $this->fileUploadAnswers;
}
/**
* @param Grade
*/
public function setGrade(Grade $grade)
{
$this->grade = $grade;
}
/**
* @return Grade
*/
public function getGrade()
{
return $this->grade;
}
/**
* @param string
*/
public function setQuestionId($questionId)
{
$this->questionId = $questionId;
}
/**
* @return string
*/
public function getQuestionId()
{
return $this->questionId;
}
/**
* @param TextAnswers
*/
public function setTextAnswers(TextAnswers $textAnswers)
{
$this->textAnswers = $textAnswers;
}
/**
* @return TextAnswers
*/
public function getTextAnswers()
{
return $this->textAnswers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Answer::class, 'Google_Service_Forms_Answer');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class BatchUpdateFormRequest extends \Google\Collection
{
protected $collection_key = 'requests';
/**
* @var bool
*/
public $includeFormInResponse;
protected $requestsType = Request::class;
protected $requestsDataType = 'array';
protected $writeControlType = WriteControl::class;
protected $writeControlDataType = '';
/**
* @param bool
*/
public function setIncludeFormInResponse($includeFormInResponse)
{
$this->includeFormInResponse = $includeFormInResponse;
}
/**
* @return bool
*/
public function getIncludeFormInResponse()
{
return $this->includeFormInResponse;
}
/**
* @param Request[]
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return Request[]
*/
public function getRequests()
{
return $this->requests;
}
/**
* @param WriteControl
*/
public function setWriteControl(WriteControl $writeControl)
{
$this->writeControl = $writeControl;
}
/**
* @return WriteControl
*/
public function getWriteControl()
{
return $this->writeControl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateFormRequest::class, 'Google_Service_Forms_BatchUpdateFormRequest');

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class BatchUpdateFormResponse extends \Google\Collection
{
protected $collection_key = 'replies';
protected $formType = Form::class;
protected $formDataType = '';
protected $repliesType = Response::class;
protected $repliesDataType = 'array';
protected $writeControlType = WriteControl::class;
protected $writeControlDataType = '';
/**
* @param Form
*/
public function setForm(Form $form)
{
$this->form = $form;
}
/**
* @return Form
*/
public function getForm()
{
return $this->form;
}
/**
* @param Response[]
*/
public function setReplies($replies)
{
$this->replies = $replies;
}
/**
* @return Response[]
*/
public function getReplies()
{
return $this->replies;
}
/**
* @param WriteControl
*/
public function setWriteControl(WriteControl $writeControl)
{
$this->writeControl = $writeControl;
}
/**
* @return WriteControl
*/
public function getWriteControl()
{
return $this->writeControl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateFormResponse::class, 'Google_Service_Forms_BatchUpdateFormResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class ChoiceQuestion extends \Google\Collection
{
protected $collection_key = 'options';
protected $optionsType = Option::class;
protected $optionsDataType = 'array';
/**
* @var bool
*/
public $shuffle;
/**
* @var string
*/
public $type;
/**
* @param Option[]
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return Option[]
*/
public function getOptions()
{
return $this->options;
}
/**
* @param bool
*/
public function setShuffle($shuffle)
{
$this->shuffle = $shuffle;
}
/**
* @return bool
*/
public function getShuffle()
{
return $this->shuffle;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChoiceQuestion::class, 'Google_Service_Forms_ChoiceQuestion');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class CloudPubsubTopic extends \Google\Model
{
/**
* @var string
*/
public $topicName;
/**
* @param string
*/
public function setTopicName($topicName)
{
$this->topicName = $topicName;
}
/**
* @return string
*/
public function getTopicName()
{
return $this->topicName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudPubsubTopic::class, 'Google_Service_Forms_CloudPubsubTopic');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class CorrectAnswer extends \Google\Model
{
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CorrectAnswer::class, 'Google_Service_Forms_CorrectAnswer');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class CorrectAnswers extends \Google\Collection
{
protected $collection_key = 'answers';
protected $answersType = CorrectAnswer::class;
protected $answersDataType = 'array';
/**
* @param CorrectAnswer[]
*/
public function setAnswers($answers)
{
$this->answers = $answers;
}
/**
* @return CorrectAnswer[]
*/
public function getAnswers()
{
return $this->answers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CorrectAnswers::class, 'Google_Service_Forms_CorrectAnswers');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class CreateItemRequest extends \Google\Model
{
protected $itemType = Item::class;
protected $itemDataType = '';
protected $locationType = Location::class;
protected $locationDataType = '';
/**
* @param Item
*/
public function setItem(Item $item)
{
$this->item = $item;
}
/**
* @return Item
*/
public function getItem()
{
return $this->item;
}
/**
* @param Location
*/
public function setLocation(Location $location)
{
$this->location = $location;
}
/**
* @return Location
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateItemRequest::class, 'Google_Service_Forms_CreateItemRequest');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class CreateItemResponse extends \Google\Collection
{
protected $collection_key = 'questionId';
/**
* @var string
*/
public $itemId;
/**
* @var string[]
*/
public $questionId;
/**
* @param string
*/
public function setItemId($itemId)
{
$this->itemId = $itemId;
}
/**
* @return string
*/
public function getItemId()
{
return $this->itemId;
}
/**
* @param string[]
*/
public function setQuestionId($questionId)
{
$this->questionId = $questionId;
}
/**
* @return string[]
*/
public function getQuestionId()
{
return $this->questionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateItemResponse::class, 'Google_Service_Forms_CreateItemResponse');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class CreateWatchRequest extends \Google\Model
{
protected $watchType = Watch::class;
protected $watchDataType = '';
/**
* @var string
*/
public $watchId;
/**
* @param Watch
*/
public function setWatch(Watch $watch)
{
$this->watch = $watch;
}
/**
* @return Watch
*/
public function getWatch()
{
return $this->watch;
}
/**
* @param string
*/
public function setWatchId($watchId)
{
$this->watchId = $watchId;
}
/**
* @return string
*/
public function getWatchId()
{
return $this->watchId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateWatchRequest::class, 'Google_Service_Forms_CreateWatchRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class DateQuestion extends \Google\Model
{
/**
* @var bool
*/
public $includeTime;
/**
* @var bool
*/
public $includeYear;
/**
* @param bool
*/
public function setIncludeTime($includeTime)
{
$this->includeTime = $includeTime;
}
/**
* @return bool
*/
public function getIncludeTime()
{
return $this->includeTime;
}
/**
* @param bool
*/
public function setIncludeYear($includeYear)
{
$this->includeYear = $includeYear;
}
/**
* @return bool
*/
public function getIncludeYear()
{
return $this->includeYear;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DateQuestion::class, 'Google_Service_Forms_DateQuestion');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class DeleteItemRequest extends \Google\Model
{
protected $locationType = Location::class;
protected $locationDataType = '';
/**
* @param Location
*/
public function setLocation(Location $location)
{
$this->location = $location;
}
/**
* @return Location
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteItemRequest::class, 'Google_Service_Forms_DeleteItemRequest');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class ExtraMaterial extends \Google\Model
{
protected $linkType = TextLink::class;
protected $linkDataType = '';
protected $videoType = VideoLink::class;
protected $videoDataType = '';
/**
* @param TextLink
*/
public function setLink(TextLink $link)
{
$this->link = $link;
}
/**
* @return TextLink
*/
public function getLink()
{
return $this->link;
}
/**
* @param VideoLink
*/
public function setVideo(VideoLink $video)
{
$this->video = $video;
}
/**
* @return VideoLink
*/
public function getVideo()
{
return $this->video;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtraMaterial::class, 'Google_Service_Forms_ExtraMaterial');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Feedback extends \Google\Collection
{
protected $collection_key = 'material';
protected $materialType = ExtraMaterial::class;
protected $materialDataType = 'array';
/**
* @var string
*/
public $text;
/**
* @param ExtraMaterial[]
*/
public function setMaterial($material)
{
$this->material = $material;
}
/**
* @return ExtraMaterial[]
*/
public function getMaterial()
{
return $this->material;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Feedback::class, 'Google_Service_Forms_Feedback');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class FileUploadAnswer extends \Google\Model
{
/**
* @var string
*/
public $fileId;
/**
* @var string
*/
public $fileName;
/**
* @var string
*/
public $mimeType;
/**
* @param string
*/
public function setFileId($fileId)
{
$this->fileId = $fileId;
}
/**
* @return string
*/
public function getFileId()
{
return $this->fileId;
}
/**
* @param string
*/
public function setFileName($fileName)
{
$this->fileName = $fileName;
}
/**
* @return string
*/
public function getFileName()
{
return $this->fileName;
}
/**
* @param string
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileUploadAnswer::class, 'Google_Service_Forms_FileUploadAnswer');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class FileUploadAnswers extends \Google\Collection
{
protected $collection_key = 'answers';
protected $answersType = FileUploadAnswer::class;
protected $answersDataType = 'array';
/**
* @param FileUploadAnswer[]
*/
public function setAnswers($answers)
{
$this->answers = $answers;
}
/**
* @return FileUploadAnswer[]
*/
public function getAnswers()
{
return $this->answers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileUploadAnswers::class, 'Google_Service_Forms_FileUploadAnswers');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class FileUploadQuestion extends \Google\Collection
{
protected $collection_key = 'types';
/**
* @var string
*/
public $folderId;
/**
* @var string
*/
public $maxFileSize;
/**
* @var int
*/
public $maxFiles;
/**
* @var string[]
*/
public $types;
/**
* @param string
*/
public function setFolderId($folderId)
{
$this->folderId = $folderId;
}
/**
* @return string
*/
public function getFolderId()
{
return $this->folderId;
}
/**
* @param string
*/
public function setMaxFileSize($maxFileSize)
{
$this->maxFileSize = $maxFileSize;
}
/**
* @return string
*/
public function getMaxFileSize()
{
return $this->maxFileSize;
}
/**
* @param int
*/
public function setMaxFiles($maxFiles)
{
$this->maxFiles = $maxFiles;
}
/**
* @return int
*/
public function getMaxFiles()
{
return $this->maxFiles;
}
/**
* @param string[]
*/
public function setTypes($types)
{
$this->types = $types;
}
/**
* @return string[]
*/
public function getTypes()
{
return $this->types;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileUploadQuestion::class, 'Google_Service_Forms_FileUploadQuestion');

View File

@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Form extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $formId;
protected $infoType = Info::class;
protected $infoDataType = '';
protected $itemsType = Item::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $linkedSheetId;
/**
* @var string
*/
public $responderUri;
/**
* @var string
*/
public $revisionId;
protected $settingsType = FormSettings::class;
protected $settingsDataType = '';
/**
* @param string
*/
public function setFormId($formId)
{
$this->formId = $formId;
}
/**
* @return string
*/
public function getFormId()
{
return $this->formId;
}
/**
* @param Info
*/
public function setInfo(Info $info)
{
$this->info = $info;
}
/**
* @return Info
*/
public function getInfo()
{
return $this->info;
}
/**
* @param Item[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Item[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setLinkedSheetId($linkedSheetId)
{
$this->linkedSheetId = $linkedSheetId;
}
/**
* @return string
*/
public function getLinkedSheetId()
{
return $this->linkedSheetId;
}
/**
* @param string
*/
public function setResponderUri($responderUri)
{
$this->responderUri = $responderUri;
}
/**
* @return string
*/
public function getResponderUri()
{
return $this->responderUri;
}
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* @param FormSettings
*/
public function setSettings(FormSettings $settings)
{
$this->settings = $settings;
}
/**
* @return FormSettings
*/
public function getSettings()
{
return $this->settings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Form::class, 'Google_Service_Forms_Form');

View File

@@ -0,0 +1,141 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class FormResponse extends \Google\Model
{
protected $answersType = Answer::class;
protected $answersDataType = 'map';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $formId;
/**
* @var string
*/
public $lastSubmittedTime;
/**
* @var string
*/
public $respondentEmail;
/**
* @var string
*/
public $responseId;
public $totalScore;
/**
* @param Answer[]
*/
public function setAnswers($answers)
{
$this->answers = $answers;
}
/**
* @return Answer[]
*/
public function getAnswers()
{
return $this->answers;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setFormId($formId)
{
$this->formId = $formId;
}
/**
* @return string
*/
public function getFormId()
{
return $this->formId;
}
/**
* @param string
*/
public function setLastSubmittedTime($lastSubmittedTime)
{
$this->lastSubmittedTime = $lastSubmittedTime;
}
/**
* @return string
*/
public function getLastSubmittedTime()
{
return $this->lastSubmittedTime;
}
/**
* @param string
*/
public function setRespondentEmail($respondentEmail)
{
$this->respondentEmail = $respondentEmail;
}
/**
* @return string
*/
public function getRespondentEmail()
{
return $this->respondentEmail;
}
/**
* @param string
*/
public function setResponseId($responseId)
{
$this->responseId = $responseId;
}
/**
* @return string
*/
public function getResponseId()
{
return $this->responseId;
}
public function setTotalScore($totalScore)
{
$this->totalScore = $totalScore;
}
public function getTotalScore()
{
return $this->totalScore;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FormResponse::class, 'Google_Service_Forms_FormResponse');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class FormSettings extends \Google\Model
{
protected $quizSettingsType = QuizSettings::class;
protected $quizSettingsDataType = '';
/**
* @param QuizSettings
*/
public function setQuizSettings(QuizSettings $quizSettings)
{
$this->quizSettings = $quizSettings;
}
/**
* @return QuizSettings
*/
public function getQuizSettings()
{
return $this->quizSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FormSettings::class, 'Google_Service_Forms_FormSettings');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class FormsEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FormsEmpty::class, 'Google_Service_Forms_FormsEmpty');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Grade extends \Google\Model
{
/**
* @var bool
*/
public $correct;
protected $feedbackType = Feedback::class;
protected $feedbackDataType = '';
public $score;
/**
* @param bool
*/
public function setCorrect($correct)
{
$this->correct = $correct;
}
/**
* @return bool
*/
public function getCorrect()
{
return $this->correct;
}
/**
* @param Feedback
*/
public function setFeedback(Feedback $feedback)
{
$this->feedback = $feedback;
}
/**
* @return Feedback
*/
public function getFeedback()
{
return $this->feedback;
}
public function setScore($score)
{
$this->score = $score;
}
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Grade::class, 'Google_Service_Forms_Grade');

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Grading extends \Google\Model
{
protected $correctAnswersType = CorrectAnswers::class;
protected $correctAnswersDataType = '';
protected $generalFeedbackType = Feedback::class;
protected $generalFeedbackDataType = '';
/**
* @var int
*/
public $pointValue;
protected $whenRightType = Feedback::class;
protected $whenRightDataType = '';
protected $whenWrongType = Feedback::class;
protected $whenWrongDataType = '';
/**
* @param CorrectAnswers
*/
public function setCorrectAnswers(CorrectAnswers $correctAnswers)
{
$this->correctAnswers = $correctAnswers;
}
/**
* @return CorrectAnswers
*/
public function getCorrectAnswers()
{
return $this->correctAnswers;
}
/**
* @param Feedback
*/
public function setGeneralFeedback(Feedback $generalFeedback)
{
$this->generalFeedback = $generalFeedback;
}
/**
* @return Feedback
*/
public function getGeneralFeedback()
{
return $this->generalFeedback;
}
/**
* @param int
*/
public function setPointValue($pointValue)
{
$this->pointValue = $pointValue;
}
/**
* @return int
*/
public function getPointValue()
{
return $this->pointValue;
}
/**
* @param Feedback
*/
public function setWhenRight(Feedback $whenRight)
{
$this->whenRight = $whenRight;
}
/**
* @return Feedback
*/
public function getWhenRight()
{
return $this->whenRight;
}
/**
* @param Feedback
*/
public function setWhenWrong(Feedback $whenWrong)
{
$this->whenWrong = $whenWrong;
}
/**
* @return Feedback
*/
public function getWhenWrong()
{
return $this->whenWrong;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Grading::class, 'Google_Service_Forms_Grading');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Grid extends \Google\Model
{
protected $columnsType = ChoiceQuestion::class;
protected $columnsDataType = '';
/**
* @var bool
*/
public $shuffleQuestions;
/**
* @param ChoiceQuestion
*/
public function setColumns(ChoiceQuestion $columns)
{
$this->columns = $columns;
}
/**
* @return ChoiceQuestion
*/
public function getColumns()
{
return $this->columns;
}
/**
* @param bool
*/
public function setShuffleQuestions($shuffleQuestions)
{
$this->shuffleQuestions = $shuffleQuestions;
}
/**
* @return bool
*/
public function getShuffleQuestions()
{
return $this->shuffleQuestions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Grid::class, 'Google_Service_Forms_Grid');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Image extends \Google\Model
{
/**
* @var string
*/
public $altText;
/**
* @var string
*/
public $contentUri;
protected $propertiesType = MediaProperties::class;
protected $propertiesDataType = '';
/**
* @var string
*/
public $sourceUri;
/**
* @param string
*/
public function setAltText($altText)
{
$this->altText = $altText;
}
/**
* @return string
*/
public function getAltText()
{
return $this->altText;
}
/**
* @param string
*/
public function setContentUri($contentUri)
{
$this->contentUri = $contentUri;
}
/**
* @return string
*/
public function getContentUri()
{
return $this->contentUri;
}
/**
* @param MediaProperties
*/
public function setProperties(MediaProperties $properties)
{
$this->properties = $properties;
}
/**
* @return MediaProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* @param string
*/
public function setSourceUri($sourceUri)
{
$this->sourceUri = $sourceUri;
}
/**
* @return string
*/
public function getSourceUri()
{
return $this->sourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Image::class, 'Google_Service_Forms_Image');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class ImageItem extends \Google\Model
{
protected $imageType = Image::class;
protected $imageDataType = '';
/**
* @param Image
*/
public function setImage(Image $image)
{
$this->image = $image;
}
/**
* @return Image
*/
public function getImage()
{
return $this->image;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageItem::class, 'Google_Service_Forms_ImageItem');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Info extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $documentTitle;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDocumentTitle($documentTitle)
{
$this->documentTitle = $documentTitle;
}
/**
* @return string
*/
public function getDocumentTitle()
{
return $this->documentTitle;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Info::class, 'Google_Service_Forms_Info');

View File

@@ -0,0 +1,176 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Item extends \Google\Model
{
/**
* @var string
*/
public $description;
protected $imageItemType = ImageItem::class;
protected $imageItemDataType = '';
/**
* @var string
*/
public $itemId;
protected $pageBreakItemType = PageBreakItem::class;
protected $pageBreakItemDataType = '';
protected $questionGroupItemType = QuestionGroupItem::class;
protected $questionGroupItemDataType = '';
protected $questionItemType = QuestionItem::class;
protected $questionItemDataType = '';
protected $textItemType = TextItem::class;
protected $textItemDataType = '';
/**
* @var string
*/
public $title;
protected $videoItemType = VideoItem::class;
protected $videoItemDataType = '';
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param ImageItem
*/
public function setImageItem(ImageItem $imageItem)
{
$this->imageItem = $imageItem;
}
/**
* @return ImageItem
*/
public function getImageItem()
{
return $this->imageItem;
}
/**
* @param string
*/
public function setItemId($itemId)
{
$this->itemId = $itemId;
}
/**
* @return string
*/
public function getItemId()
{
return $this->itemId;
}
/**
* @param PageBreakItem
*/
public function setPageBreakItem(PageBreakItem $pageBreakItem)
{
$this->pageBreakItem = $pageBreakItem;
}
/**
* @return PageBreakItem
*/
public function getPageBreakItem()
{
return $this->pageBreakItem;
}
/**
* @param QuestionGroupItem
*/
public function setQuestionGroupItem(QuestionGroupItem $questionGroupItem)
{
$this->questionGroupItem = $questionGroupItem;
}
/**
* @return QuestionGroupItem
*/
public function getQuestionGroupItem()
{
return $this->questionGroupItem;
}
/**
* @param QuestionItem
*/
public function setQuestionItem(QuestionItem $questionItem)
{
$this->questionItem = $questionItem;
}
/**
* @return QuestionItem
*/
public function getQuestionItem()
{
return $this->questionItem;
}
/**
* @param TextItem
*/
public function setTextItem(TextItem $textItem)
{
$this->textItem = $textItem;
}
/**
* @return TextItem
*/
public function getTextItem()
{
return $this->textItem;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param VideoItem
*/
public function setVideoItem(VideoItem $videoItem)
{
$this->videoItem = $videoItem;
}
/**
* @return VideoItem
*/
public function getVideoItem()
{
return $this->videoItem;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Item::class, 'Google_Service_Forms_Item');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class ListFormResponsesResponse extends \Google\Collection
{
protected $collection_key = 'responses';
/**
* @var string
*/
public $nextPageToken;
protected $responsesType = FormResponse::class;
protected $responsesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param FormResponse[]
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return FormResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListFormResponsesResponse::class, 'Google_Service_Forms_ListFormResponsesResponse');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class ListWatchesResponse extends \Google\Collection
{
protected $collection_key = 'watches';
protected $watchesType = Watch::class;
protected $watchesDataType = 'array';
/**
* @param Watch[]
*/
public function setWatches($watches)
{
$this->watches = $watches;
}
/**
* @return Watch[]
*/
public function getWatches()
{
return $this->watches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWatchesResponse::class, 'Google_Service_Forms_ListWatchesResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Location extends \Google\Model
{
/**
* @var int
*/
public $index;
/**
* @param int
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return int
*/
public function getIndex()
{
return $this->index;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_Forms_Location');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class MediaProperties extends \Google\Model
{
/**
* @var string
*/
public $alignment;
/**
* @var int
*/
public $width;
/**
* @param string
*/
public function setAlignment($alignment)
{
$this->alignment = $alignment;
}
/**
* @return string
*/
public function getAlignment()
{
return $this->alignment;
}
/**
* @param int
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MediaProperties::class, 'Google_Service_Forms_MediaProperties');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class MoveItemRequest extends \Google\Model
{
protected $newLocationType = Location::class;
protected $newLocationDataType = '';
protected $originalLocationType = Location::class;
protected $originalLocationDataType = '';
/**
* @param Location
*/
public function setNewLocation(Location $newLocation)
{
$this->newLocation = $newLocation;
}
/**
* @return Location
*/
public function getNewLocation()
{
return $this->newLocation;
}
/**
* @param Location
*/
public function setOriginalLocation(Location $originalLocation)
{
$this->originalLocation = $originalLocation;
}
/**
* @return Location
*/
public function getOriginalLocation()
{
return $this->originalLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MoveItemRequest::class, 'Google_Service_Forms_MoveItemRequest');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Option extends \Google\Model
{
/**
* @var string
*/
public $goToAction;
/**
* @var string
*/
public $goToSectionId;
protected $imageType = Image::class;
protected $imageDataType = '';
/**
* @var bool
*/
public $isOther;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setGoToAction($goToAction)
{
$this->goToAction = $goToAction;
}
/**
* @return string
*/
public function getGoToAction()
{
return $this->goToAction;
}
/**
* @param string
*/
public function setGoToSectionId($goToSectionId)
{
$this->goToSectionId = $goToSectionId;
}
/**
* @return string
*/
public function getGoToSectionId()
{
return $this->goToSectionId;
}
/**
* @param Image
*/
public function setImage(Image $image)
{
$this->image = $image;
}
/**
* @return Image
*/
public function getImage()
{
return $this->image;
}
/**
* @param bool
*/
public function setIsOther($isOther)
{
$this->isOther = $isOther;
}
/**
* @return bool
*/
public function getIsOther()
{
return $this->isOther;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Option::class, 'Google_Service_Forms_Option');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class PageBreakItem extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageBreakItem::class, 'Google_Service_Forms_PageBreakItem');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Question extends \Google\Model
{
protected $choiceQuestionType = ChoiceQuestion::class;
protected $choiceQuestionDataType = '';
protected $dateQuestionType = DateQuestion::class;
protected $dateQuestionDataType = '';
protected $fileUploadQuestionType = FileUploadQuestion::class;
protected $fileUploadQuestionDataType = '';
protected $gradingType = Grading::class;
protected $gradingDataType = '';
/**
* @var string
*/
public $questionId;
protected $ratingQuestionType = RatingQuestion::class;
protected $ratingQuestionDataType = '';
/**
* @var bool
*/
public $required;
protected $rowQuestionType = RowQuestion::class;
protected $rowQuestionDataType = '';
protected $scaleQuestionType = ScaleQuestion::class;
protected $scaleQuestionDataType = '';
protected $textQuestionType = TextQuestion::class;
protected $textQuestionDataType = '';
protected $timeQuestionType = TimeQuestion::class;
protected $timeQuestionDataType = '';
/**
* @param ChoiceQuestion
*/
public function setChoiceQuestion(ChoiceQuestion $choiceQuestion)
{
$this->choiceQuestion = $choiceQuestion;
}
/**
* @return ChoiceQuestion
*/
public function getChoiceQuestion()
{
return $this->choiceQuestion;
}
/**
* @param DateQuestion
*/
public function setDateQuestion(DateQuestion $dateQuestion)
{
$this->dateQuestion = $dateQuestion;
}
/**
* @return DateQuestion
*/
public function getDateQuestion()
{
return $this->dateQuestion;
}
/**
* @param FileUploadQuestion
*/
public function setFileUploadQuestion(FileUploadQuestion $fileUploadQuestion)
{
$this->fileUploadQuestion = $fileUploadQuestion;
}
/**
* @return FileUploadQuestion
*/
public function getFileUploadQuestion()
{
return $this->fileUploadQuestion;
}
/**
* @param Grading
*/
public function setGrading(Grading $grading)
{
$this->grading = $grading;
}
/**
* @return Grading
*/
public function getGrading()
{
return $this->grading;
}
/**
* @param string
*/
public function setQuestionId($questionId)
{
$this->questionId = $questionId;
}
/**
* @return string
*/
public function getQuestionId()
{
return $this->questionId;
}
/**
* @param RatingQuestion
*/
public function setRatingQuestion(RatingQuestion $ratingQuestion)
{
$this->ratingQuestion = $ratingQuestion;
}
/**
* @return RatingQuestion
*/
public function getRatingQuestion()
{
return $this->ratingQuestion;
}
/**
* @param bool
*/
public function setRequired($required)
{
$this->required = $required;
}
/**
* @return bool
*/
public function getRequired()
{
return $this->required;
}
/**
* @param RowQuestion
*/
public function setRowQuestion(RowQuestion $rowQuestion)
{
$this->rowQuestion = $rowQuestion;
}
/**
* @return RowQuestion
*/
public function getRowQuestion()
{
return $this->rowQuestion;
}
/**
* @param ScaleQuestion
*/
public function setScaleQuestion(ScaleQuestion $scaleQuestion)
{
$this->scaleQuestion = $scaleQuestion;
}
/**
* @return ScaleQuestion
*/
public function getScaleQuestion()
{
return $this->scaleQuestion;
}
/**
* @param TextQuestion
*/
public function setTextQuestion(TextQuestion $textQuestion)
{
$this->textQuestion = $textQuestion;
}
/**
* @return TextQuestion
*/
public function getTextQuestion()
{
return $this->textQuestion;
}
/**
* @param TimeQuestion
*/
public function setTimeQuestion(TimeQuestion $timeQuestion)
{
$this->timeQuestion = $timeQuestion;
}
/**
* @return TimeQuestion
*/
public function getTimeQuestion()
{
return $this->timeQuestion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Question::class, 'Google_Service_Forms_Question');

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class QuestionGroupItem extends \Google\Collection
{
protected $collection_key = 'questions';
protected $gridType = Grid::class;
protected $gridDataType = '';
protected $imageType = Image::class;
protected $imageDataType = '';
protected $questionsType = Question::class;
protected $questionsDataType = 'array';
/**
* @param Grid
*/
public function setGrid(Grid $grid)
{
$this->grid = $grid;
}
/**
* @return Grid
*/
public function getGrid()
{
return $this->grid;
}
/**
* @param Image
*/
public function setImage(Image $image)
{
$this->image = $image;
}
/**
* @return Image
*/
public function getImage()
{
return $this->image;
}
/**
* @param Question[]
*/
public function setQuestions($questions)
{
$this->questions = $questions;
}
/**
* @return Question[]
*/
public function getQuestions()
{
return $this->questions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuestionGroupItem::class, 'Google_Service_Forms_QuestionGroupItem');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class QuestionItem extends \Google\Model
{
protected $imageType = Image::class;
protected $imageDataType = '';
protected $questionType = Question::class;
protected $questionDataType = '';
/**
* @param Image
*/
public function setImage(Image $image)
{
$this->image = $image;
}
/**
* @return Image
*/
public function getImage()
{
return $this->image;
}
/**
* @param Question
*/
public function setQuestion(Question $question)
{
$this->question = $question;
}
/**
* @return Question
*/
public function getQuestion()
{
return $this->question;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuestionItem::class, 'Google_Service_Forms_QuestionItem');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class QuizSettings extends \Google\Model
{
/**
* @var bool
*/
public $isQuiz;
/**
* @param bool
*/
public function setIsQuiz($isQuiz)
{
$this->isQuiz = $isQuiz;
}
/**
* @return bool
*/
public function getIsQuiz()
{
return $this->isQuiz;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuizSettings::class, 'Google_Service_Forms_QuizSettings');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class RatingQuestion extends \Google\Model
{
/**
* @var string
*/
public $iconType;
/**
* @var int
*/
public $ratingScaleLevel;
/**
* @param string
*/
public function setIconType($iconType)
{
$this->iconType = $iconType;
}
/**
* @return string
*/
public function getIconType()
{
return $this->iconType;
}
/**
* @param int
*/
public function setRatingScaleLevel($ratingScaleLevel)
{
$this->ratingScaleLevel = $ratingScaleLevel;
}
/**
* @return int
*/
public function getRatingScaleLevel()
{
return $this->ratingScaleLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RatingQuestion::class, 'Google_Service_Forms_RatingQuestion');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class RenewWatchRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenewWatchRequest::class, 'Google_Service_Forms_RenewWatchRequest');

View File

@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Request extends \Google\Model
{
protected $createItemType = CreateItemRequest::class;
protected $createItemDataType = '';
protected $deleteItemType = DeleteItemRequest::class;
protected $deleteItemDataType = '';
protected $moveItemType = MoveItemRequest::class;
protected $moveItemDataType = '';
protected $updateFormInfoType = UpdateFormInfoRequest::class;
protected $updateFormInfoDataType = '';
protected $updateItemType = UpdateItemRequest::class;
protected $updateItemDataType = '';
protected $updateSettingsType = UpdateSettingsRequest::class;
protected $updateSettingsDataType = '';
/**
* @param CreateItemRequest
*/
public function setCreateItem(CreateItemRequest $createItem)
{
$this->createItem = $createItem;
}
/**
* @return CreateItemRequest
*/
public function getCreateItem()
{
return $this->createItem;
}
/**
* @param DeleteItemRequest
*/
public function setDeleteItem(DeleteItemRequest $deleteItem)
{
$this->deleteItem = $deleteItem;
}
/**
* @return DeleteItemRequest
*/
public function getDeleteItem()
{
return $this->deleteItem;
}
/**
* @param MoveItemRequest
*/
public function setMoveItem(MoveItemRequest $moveItem)
{
$this->moveItem = $moveItem;
}
/**
* @return MoveItemRequest
*/
public function getMoveItem()
{
return $this->moveItem;
}
/**
* @param UpdateFormInfoRequest
*/
public function setUpdateFormInfo(UpdateFormInfoRequest $updateFormInfo)
{
$this->updateFormInfo = $updateFormInfo;
}
/**
* @return UpdateFormInfoRequest
*/
public function getUpdateFormInfo()
{
return $this->updateFormInfo;
}
/**
* @param UpdateItemRequest
*/
public function setUpdateItem(UpdateItemRequest $updateItem)
{
$this->updateItem = $updateItem;
}
/**
* @return UpdateItemRequest
*/
public function getUpdateItem()
{
return $this->updateItem;
}
/**
* @param UpdateSettingsRequest
*/
public function setUpdateSettings(UpdateSettingsRequest $updateSettings)
{
$this->updateSettings = $updateSettings;
}
/**
* @return UpdateSettingsRequest
*/
public function getUpdateSettings()
{
return $this->updateSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Request::class, 'Google_Service_Forms_Request');

View File

@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms\Resource;
use Google\Service\Forms\BatchUpdateFormRequest;
use Google\Service\Forms\BatchUpdateFormResponse;
use Google\Service\Forms\Form;
/**
* The "forms" collection of methods.
* Typical usage is:
* <code>
* $formsService = new Google\Service\Forms(...);
* $forms = $formsService->forms;
* </code>
*/
class Forms extends \Google\Service\Resource
{
/**
* Change the form with a batch of updates. (forms.batchUpdate)
*
* @param string $formId Required. The form ID.
* @param BatchUpdateFormRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchUpdateFormResponse
* @throws \Google\Service\Exception
*/
public function batchUpdate($formId, BatchUpdateFormRequest $postBody, $optParams = [])
{
$params = ['formId' => $formId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUpdate', [$params], BatchUpdateFormResponse::class);
}
/**
* Create a new form using the title given in the provided form message in the
* request. *Important:* Only the form.info.title and form.info.document_title
* fields are copied to the new form. All other fields including the form
* description, items and settings are disallowed. To create a new form and add
* items, you must first call forms.create to create an empty form with a title
* and (optional) document title, and then call forms.update to add the items.
* (forms.create)
*
* @param Form $postBody
* @param array $optParams Optional parameters.
* @return Form
* @throws \Google\Service\Exception
*/
public function create(Form $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Form::class);
}
/**
* Get a form. (forms.get)
*
* @param string $formId Required. The form ID.
* @param array $optParams Optional parameters.
* @return Form
* @throws \Google\Service\Exception
*/
public function get($formId, $optParams = [])
{
$params = ['formId' => $formId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Form::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Forms::class, 'Google_Service_Forms_Resource_Forms');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms\Resource;
use Google\Service\Forms\FormResponse;
use Google\Service\Forms\ListFormResponsesResponse;
/**
* The "responses" collection of methods.
* Typical usage is:
* <code>
* $formsService = new Google\Service\Forms(...);
* $responses = $formsService->forms_responses;
* </code>
*/
class FormsResponses extends \Google\Service\Resource
{
/**
* Get one response from the form. (responses.get)
*
* @param string $formId Required. The form ID.
* @param string $responseId Required. The response ID within the form.
* @param array $optParams Optional parameters.
* @return FormResponse
* @throws \Google\Service\Exception
*/
public function get($formId, $responseId, $optParams = [])
{
$params = ['formId' => $formId, 'responseId' => $responseId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], FormResponse::class);
}
/**
* List a form's responses. (responses.listFormsResponses)
*
* @param string $formId Required. ID of the Form whose responses to list.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Which form responses to return. Currently, the only
* supported filters are: * timestamp > *N* which means to get all form
* responses submitted after (but not at) timestamp *N*. * timestamp >= *N*
* which means to get all form responses submitted at and after timestamp *N*.
* For both supported filters, timestamp must be formatted in RFC3339 UTC "Zulu"
* format. Examples: "2014-10-02T15:01:23Z" and
* "2014-10-02T15:01:23.045123456Z".
* @opt_param int pageSize The maximum number of responses to return. The
* service may return fewer than this value. If unspecified or zero, at most
* 5000 responses are returned.
* @opt_param string pageToken A page token returned by a previous list
* response. If this field is set, the form and the values of the filter must be
* the same as for the original request.
* @return ListFormResponsesResponse
* @throws \Google\Service\Exception
*/
public function listFormsResponses($formId, $optParams = [])
{
$params = ['formId' => $formId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListFormResponsesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FormsResponses::class, 'Google_Service_Forms_Resource_FormsResponses');

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms\Resource;
use Google\Service\Forms\CreateWatchRequest;
use Google\Service\Forms\FormsEmpty;
use Google\Service\Forms\ListWatchesResponse;
use Google\Service\Forms\RenewWatchRequest;
use Google\Service\Forms\Watch;
/**
* The "watches" collection of methods.
* Typical usage is:
* <code>
* $formsService = new Google\Service\Forms(...);
* $watches = $formsService->forms_watches;
* </code>
*/
class FormsWatches extends \Google\Service\Resource
{
/**
* Create a new watch. If a watch ID is provided, it must be unused. For each
* invoking project, the per form limit is one watch per Watch.EventType. A
* watch expires seven days after it is created (see Watch.expire_time).
* (watches.create)
*
* @param string $formId Required. ID of the Form to watch.
* @param CreateWatchRequest $postBody
* @param array $optParams Optional parameters.
* @return Watch
* @throws \Google\Service\Exception
*/
public function create($formId, CreateWatchRequest $postBody, $optParams = [])
{
$params = ['formId' => $formId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Watch::class);
}
/**
* Delete a watch. (watches.delete)
*
* @param string $formId Required. The ID of the Form.
* @param string $watchId Required. The ID of the Watch to delete.
* @param array $optParams Optional parameters.
* @return FormsEmpty
* @throws \Google\Service\Exception
*/
public function delete($formId, $watchId, $optParams = [])
{
$params = ['formId' => $formId, 'watchId' => $watchId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], FormsEmpty::class);
}
/**
* Return a list of the watches owned by the invoking project. The maximum
* number of watches is two: For each invoker, the limit is one for each event
* type per form. (watches.listFormsWatches)
*
* @param string $formId Required. ID of the Form whose watches to list.
* @param array $optParams Optional parameters.
* @return ListWatchesResponse
* @throws \Google\Service\Exception
*/
public function listFormsWatches($formId, $optParams = [])
{
$params = ['formId' => $formId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWatchesResponse::class);
}
/**
* Renew an existing watch for seven days. The state of the watch after renewal
* is `ACTIVE`, and the `expire_time` is seven days from the renewal. Renewing a
* watch in an error state (e.g. `SUSPENDED`) succeeds if the error is no longer
* present, but fail otherwise. After a watch has expired, RenewWatch returns
* `NOT_FOUND`. (watches.renew)
*
* @param string $formId Required. The ID of the Form.
* @param string $watchId Required. The ID of the Watch to renew.
* @param RenewWatchRequest $postBody
* @param array $optParams Optional parameters.
* @return Watch
* @throws \Google\Service\Exception
*/
public function renew($formId, $watchId, RenewWatchRequest $postBody, $optParams = [])
{
$params = ['formId' => $formId, 'watchId' => $watchId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('renew', [$params], Watch::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FormsWatches::class, 'Google_Service_Forms_Resource_FormsWatches');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Response extends \Google\Model
{
protected $createItemType = CreateItemResponse::class;
protected $createItemDataType = '';
/**
* @param CreateItemResponse
*/
public function setCreateItem(CreateItemResponse $createItem)
{
$this->createItem = $createItem;
}
/**
* @return CreateItemResponse
*/
public function getCreateItem()
{
return $this->createItem;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Response::class, 'Google_Service_Forms_Response');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class RowQuestion extends \Google\Model
{
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RowQuestion::class, 'Google_Service_Forms_RowQuestion');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class ScaleQuestion extends \Google\Model
{
/**
* @var int
*/
public $high;
/**
* @var string
*/
public $highLabel;
/**
* @var int
*/
public $low;
/**
* @var string
*/
public $lowLabel;
/**
* @param int
*/
public function setHigh($high)
{
$this->high = $high;
}
/**
* @return int
*/
public function getHigh()
{
return $this->high;
}
/**
* @param string
*/
public function setHighLabel($highLabel)
{
$this->highLabel = $highLabel;
}
/**
* @return string
*/
public function getHighLabel()
{
return $this->highLabel;
}
/**
* @param int
*/
public function setLow($low)
{
$this->low = $low;
}
/**
* @return int
*/
public function getLow()
{
return $this->low;
}
/**
* @param string
*/
public function setLowLabel($lowLabel)
{
$this->lowLabel = $lowLabel;
}
/**
* @return string
*/
public function getLowLabel()
{
return $this->lowLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScaleQuestion::class, 'Google_Service_Forms_ScaleQuestion');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class TextAnswer extends \Google\Model
{
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextAnswer::class, 'Google_Service_Forms_TextAnswer');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class TextAnswers extends \Google\Collection
{
protected $collection_key = 'answers';
protected $answersType = TextAnswer::class;
protected $answersDataType = 'array';
/**
* @param TextAnswer[]
*/
public function setAnswers($answers)
{
$this->answers = $answers;
}
/**
* @return TextAnswer[]
*/
public function getAnswers()
{
return $this->answers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextAnswers::class, 'Google_Service_Forms_TextAnswers');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class TextItem extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextItem::class, 'Google_Service_Forms_TextItem');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class TextLink extends \Google\Model
{
/**
* @var string
*/
public $displayText;
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setDisplayText($displayText)
{
$this->displayText = $displayText;
}
/**
* @return string
*/
public function getDisplayText()
{
return $this->displayText;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextLink::class, 'Google_Service_Forms_TextLink');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class TextQuestion extends \Google\Model
{
/**
* @var bool
*/
public $paragraph;
/**
* @param bool
*/
public function setParagraph($paragraph)
{
$this->paragraph = $paragraph;
}
/**
* @return bool
*/
public function getParagraph()
{
return $this->paragraph;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextQuestion::class, 'Google_Service_Forms_TextQuestion');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class TimeQuestion extends \Google\Model
{
/**
* @var bool
*/
public $duration;
/**
* @param bool
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return bool
*/
public function getDuration()
{
return $this->duration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeQuestion::class, 'Google_Service_Forms_TimeQuestion');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class UpdateFormInfoRequest extends \Google\Model
{
protected $infoType = Info::class;
protected $infoDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Info
*/
public function setInfo(Info $info)
{
$this->info = $info;
}
/**
* @return Info
*/
public function getInfo()
{
return $this->info;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateFormInfoRequest::class, 'Google_Service_Forms_UpdateFormInfoRequest');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class UpdateItemRequest extends \Google\Model
{
protected $itemType = Item::class;
protected $itemDataType = '';
protected $locationType = Location::class;
protected $locationDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Item
*/
public function setItem(Item $item)
{
$this->item = $item;
}
/**
* @return Item
*/
public function getItem()
{
return $this->item;
}
/**
* @param Location
*/
public function setLocation(Location $location)
{
$this->location = $location;
}
/**
* @return Location
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateItemRequest::class, 'Google_Service_Forms_UpdateItemRequest');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class UpdateSettingsRequest extends \Google\Model
{
protected $settingsType = FormSettings::class;
protected $settingsDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param FormSettings
*/
public function setSettings(FormSettings $settings)
{
$this->settings = $settings;
}
/**
* @return FormSettings
*/
public function getSettings()
{
return $this->settings;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateSettingsRequest::class, 'Google_Service_Forms_UpdateSettingsRequest');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Video extends \Google\Model
{
protected $propertiesType = MediaProperties::class;
protected $propertiesDataType = '';
/**
* @var string
*/
public $youtubeUri;
/**
* @param MediaProperties
*/
public function setProperties(MediaProperties $properties)
{
$this->properties = $properties;
}
/**
* @return MediaProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* @param string
*/
public function setYoutubeUri($youtubeUri)
{
$this->youtubeUri = $youtubeUri;
}
/**
* @return string
*/
public function getYoutubeUri()
{
return $this->youtubeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Video::class, 'Google_Service_Forms_Video');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class VideoItem extends \Google\Model
{
/**
* @var string
*/
public $caption;
protected $videoType = Video::class;
protected $videoDataType = '';
/**
* @param string
*/
public function setCaption($caption)
{
$this->caption = $caption;
}
/**
* @return string
*/
public function getCaption()
{
return $this->caption;
}
/**
* @param Video
*/
public function setVideo(Video $video)
{
$this->video = $video;
}
/**
* @return Video
*/
public function getVideo()
{
return $this->video;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VideoItem::class, 'Google_Service_Forms_VideoItem');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class VideoLink extends \Google\Model
{
/**
* @var string
*/
public $displayText;
/**
* @var string
*/
public $youtubeUri;
/**
* @param string
*/
public function setDisplayText($displayText)
{
$this->displayText = $displayText;
}
/**
* @return string
*/
public function getDisplayText()
{
return $this->displayText;
}
/**
* @param string
*/
public function setYoutubeUri($youtubeUri)
{
$this->youtubeUri = $youtubeUri;
}
/**
* @return string
*/
public function getYoutubeUri()
{
return $this->youtubeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VideoLink::class, 'Google_Service_Forms_VideoLink');

View File

@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class Watch extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $errorType;
/**
* @var string
*/
public $eventType;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $state;
protected $targetType = WatchTarget::class;
protected $targetDataType = '';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @return string
*/
public function getErrorType()
{
return $this->errorType;
}
/**
* @param string
*/
public function setEventType($eventType)
{
$this->eventType = $eventType;
}
/**
* @return string
*/
public function getEventType()
{
return $this->eventType;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param WatchTarget
*/
public function setTarget(WatchTarget $target)
{
$this->target = $target;
}
/**
* @return WatchTarget
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Watch::class, 'Google_Service_Forms_Watch');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class WatchTarget extends \Google\Model
{
protected $topicType = CloudPubsubTopic::class;
protected $topicDataType = '';
/**
* @param CloudPubsubTopic
*/
public function setTopic(CloudPubsubTopic $topic)
{
$this->topic = $topic;
}
/**
* @return CloudPubsubTopic
*/
public function getTopic()
{
return $this->topic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WatchTarget::class, 'Google_Service_Forms_WatchTarget');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
namespace Google\Service\Forms;
class WriteControl extends \Google\Model
{
/**
* @var string
*/
public $requiredRevisionId;
/**
* @var string
*/
public $targetRevisionId;
/**
* @param string
*/
public function setRequiredRevisionId($requiredRevisionId)
{
$this->requiredRevisionId = $requiredRevisionId;
}
/**
* @return string
*/
public function getRequiredRevisionId()
{
return $this->requiredRevisionId;
}
/**
* @param string
*/
public function setTargetRevisionId($targetRevisionId)
{
$this->targetRevisionId = $targetRevisionId;
}
/**
* @return string
*/
public function getTargetRevisionId()
{
return $this->targetRevisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WriteControl::class, 'Google_Service_Forms_WriteControl');