gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,137 @@
<?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\CloudSupport;
class Actor extends \Google\Model
{
/**
* The name to display for the actor. If not provided, it is inferred from
* credentials supplied during case creation. When an email is provided, a
* display name must also be provided. This will be obfuscated if the user is
* a Google Support agent.
*
* @var string
*/
public $displayName;
/**
* The email address of the actor. If not provided, it is inferred from the
* credentials supplied during case creation. When a name is provided, an
* email must also be provided. If the user is a Google Support agent, this is
* obfuscated. This field is deprecated. Use `username` instead.
*
* @deprecated
* @var string
*/
public $email;
/**
* Output only. Whether the actor is a Google support actor.
*
* @var bool
*/
public $googleSupport;
/**
* Output only. The username of the actor. It may look like an email or other
* format provided by the identity provider. If not provided, it is inferred
* from the credentials supplied. When a name is provided, a username must
* also be provided. If the user is a Google Support agent, this will not be
* set.
*
* @var string
*/
public $username;
/**
* The name to display for the actor. If not provided, it is inferred from
* credentials supplied during case creation. When an email is provided, a
* display name must also be provided. This will be obfuscated if the user is
* a Google Support agent.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The email address of the actor. If not provided, it is inferred from the
* credentials supplied during case creation. When a name is provided, an
* email must also be provided. If the user is a Google Support agent, this is
* obfuscated. This field is deprecated. Use `username` instead.
*
* @deprecated
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @deprecated
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Output only. Whether the actor is a Google support actor.
*
* @param bool $googleSupport
*/
public function setGoogleSupport($googleSupport)
{
$this->googleSupport = $googleSupport;
}
/**
* @return bool
*/
public function getGoogleSupport()
{
return $this->googleSupport;
}
/**
* Output only. The username of the actor. It may look like an email or other
* format provided by the identity provider. If not provided, it is inferred
* from the credentials supplied. When a name is provided, a username must
* also be provided. If the user is a Google Support agent, this will not be
* set.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Actor::class, 'Google_Service_CloudSupport_Actor');
@@ -0,0 +1,155 @@
<?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\CloudSupport;
class Attachment extends \Google\Model
{
/**
* Output only. The time at which the attachment was created.
*
* @var string
*/
public $createTime;
protected $creatorType = Actor::class;
protected $creatorDataType = '';
/**
* The filename of the attachment (e.g. `"graph.jpg"`).
*
* @var string
*/
public $filename;
/**
* Output only. The MIME type of the attachment (e.g. text/plain).
*
* @var string
*/
public $mimeType;
/**
* Output only. Identifier. The resource name of the attachment.
*
* @var string
*/
public $name;
/**
* Output only. The size of the attachment in bytes.
*
* @var string
*/
public $sizeBytes;
/**
* Output only. The time at which the attachment was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The user who uploaded the attachment. Note, the name and email
* will be obfuscated if the attachment was uploaded by Google support.
*
* @param Actor $creator
*/
public function setCreator(Actor $creator)
{
$this->creator = $creator;
}
/**
* @return Actor
*/
public function getCreator()
{
return $this->creator;
}
/**
* The filename of the attachment (e.g. `"graph.jpg"`).
*
* @param string $filename
*/
public function setFilename($filename)
{
$this->filename = $filename;
}
/**
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* Output only. The MIME type of the attachment (e.g. text/plain).
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* Output only. Identifier. The resource name of the attachment.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The size of the attachment in bytes.
*
* @param string $sizeBytes
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attachment::class, 'Google_Service_CloudSupport_Attachment');
@@ -0,0 +1,180 @@
<?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\CloudSupport;
class Blobstore2Info extends \Google\Model
{
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $blobGeneration;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $blobId;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $downloadExternalReadToken;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $downloadReadHandle;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $readToken;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $uploadFragmentListCreationInfo;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $uploadMetadataContainer;
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $blobGeneration
*/
public function setBlobGeneration($blobGeneration)
{
$this->blobGeneration = $blobGeneration;
}
/**
* @return string
*/
public function getBlobGeneration()
{
return $this->blobGeneration;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $blobId
*/
public function setBlobId($blobId)
{
$this->blobId = $blobId;
}
/**
* @return string
*/
public function getBlobId()
{
return $this->blobId;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $downloadExternalReadToken
*/
public function setDownloadExternalReadToken($downloadExternalReadToken)
{
$this->downloadExternalReadToken = $downloadExternalReadToken;
}
/**
* @return string
*/
public function getDownloadExternalReadToken()
{
return $this->downloadExternalReadToken;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $downloadReadHandle
*/
public function setDownloadReadHandle($downloadReadHandle)
{
$this->downloadReadHandle = $downloadReadHandle;
}
/**
* @return string
*/
public function getDownloadReadHandle()
{
return $this->downloadReadHandle;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $readToken
*/
public function setReadToken($readToken)
{
$this->readToken = $readToken;
}
/**
* @return string
*/
public function getReadToken()
{
return $this->readToken;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $uploadFragmentListCreationInfo
*/
public function setUploadFragmentListCreationInfo($uploadFragmentListCreationInfo)
{
$this->uploadFragmentListCreationInfo = $uploadFragmentListCreationInfo;
}
/**
* @return string
*/
public function getUploadFragmentListCreationInfo()
{
return $this->uploadFragmentListCreationInfo;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $uploadMetadataContainer
*/
public function setUploadMetadataContainer($uploadMetadataContainer)
{
$this->uploadMetadataContainer = $uploadMetadataContainer;
}
/**
* @return string
*/
public function getUploadMetadataContainer()
{
return $this->uploadMetadataContainer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Blobstore2Info::class, 'Google_Service_CloudSupport_Blobstore2Info');
@@ -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\CloudSupport;
class CaseClassification extends \Google\Model
{
/**
* A display name for the classification. The display name is not static and
* can change. To uniquely and consistently identify classifications, use the
* `CaseClassification.id` field.
*
* @var string
*/
public $displayName;
/**
* The unique ID for a classification. Must be specified for case creation. To
* retrieve valid classification IDs for case creation, use
* `caseClassifications.search`. Classification IDs returned by
* `caseClassifications.search` are guaranteed to be valid for at least 6
* months. If a given classification is deactiveated, it will immediately stop
* being returned. After 6 months, `case.create` requests using the
* classification ID will fail.
*
* @var string
*/
public $id;
/**
* A display name for the classification. The display name is not static and
* can change. To uniquely and consistently identify classifications, use the
* `CaseClassification.id` field.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The unique ID for a classification. Must be specified for case creation. To
* retrieve valid classification IDs for case creation, use
* `caseClassifications.search`. Classification IDs returned by
* `caseClassifications.search` are guaranteed to be valid for at least 6
* months. If a given classification is deactiveated, it will immediately stop
* being returned. After 6 months, `case.create` requests using the
* classification ID will fail.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CaseClassification::class, 'Google_Service_CloudSupport_CaseClassification');
@@ -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\CloudSupport;
class CloseCaseRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloseCaseRequest::class, 'Google_Service_CloudSupport_CloseCaseRequest');
@@ -0,0 +1,427 @@
<?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\CloudSupport;
class CloudsupportCase extends \Google\Collection
{
/**
* Priority is undefined or has not been set yet.
*/
public const PRIORITY_PRIORITY_UNSPECIFIED = 'PRIORITY_UNSPECIFIED';
/**
* Extreme impact on a production service. Service is hard down.
*/
public const PRIORITY_P0 = 'P0';
/**
* Critical impact on a production service. Service is currently unusable.
*/
public const PRIORITY_P1 = 'P1';
/**
* Severe impact on a production service. Service is usable but greatly
* impaired.
*/
public const PRIORITY_P2 = 'P2';
/**
* Medium impact on a production service. Service is available, but moderately
* impaired.
*/
public const PRIORITY_P3 = 'P3';
/**
* General questions or minor issues. Production service is fully available.
*/
public const PRIORITY_P4 = 'P4';
/**
* Case is in an unknown state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The case has been created but no one is assigned to work on it yet.
*/
public const STATE_NEW = 'NEW';
/**
* The case is currently being handled by Google support.
*/
public const STATE_IN_PROGRESS_GOOGLE_SUPPORT = 'IN_PROGRESS_GOOGLE_SUPPORT';
/**
* Google is waiting for a response.
*/
public const STATE_ACTION_REQUIRED = 'ACTION_REQUIRED';
/**
* A solution has been offered for the case, but it isn't yet closed.
*/
public const STATE_SOLUTION_PROVIDED = 'SOLUTION_PROVIDED';
/**
* The case has been resolved.
*/
public const STATE_CLOSED = 'CLOSED';
protected $collection_key = 'subscriberEmailAddresses';
protected $classificationType = CaseClassification::class;
protected $classificationDataType = '';
/**
* A user-supplied email address to send case update notifications for. This
* should only be used in BYOID flows, where we cannot infer the user's email
* address directly from their EUCs.
*
* @var string
*/
public $contactEmail;
/**
* Output only. The time this case was created.
*
* @var string
*/
public $createTime;
protected $creatorType = Actor::class;
protected $creatorDataType = '';
/**
* A broad description of the issue.
*
* @var string
*/
public $description;
/**
* The short summary of the issue reported in this case.
*
* @var string
*/
public $displayName;
/**
* Whether the case is currently escalated.
*
* @var bool
*/
public $escalated;
/**
* The language the user has requested to receive support in. This should be a
* BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`).
* If no language or an unsupported language is specified, this field defaults
* to English (en). Language selection during case creation may affect your
* available support options. For a list of supported languages and their
* support working hours, see: https://cloud.google.com/support/docs/language-
* working-hours
*
* @var string
*/
public $languageCode;
/**
* Identifier. The resource name for the case.
*
* @var string
*/
public $name;
/**
* The priority of this case.
*
* @var string
*/
public $priority;
/**
* Output only. The current status of the support case.
*
* @var string
*/
public $state;
/**
* The email addresses to receive updates on this case.
*
* @var string[]
*/
public $subscriberEmailAddresses;
/**
* Whether this case was created for internal API testing and should not be
* acted on by the support team.
*
* @var bool
*/
public $testCase;
/**
* The timezone of the user who created the support case. It should be in a
* format IANA recognizes: https://www.iana.org/time-zones. There is no
* additional validation done by the API.
*
* @var string
*/
public $timeZone;
/**
* Output only. The time this case was last updated.
*
* @var string
*/
public $updateTime;
/**
* The issue classification applicable to this case.
*
* @param CaseClassification $classification
*/
public function setClassification(CaseClassification $classification)
{
$this->classification = $classification;
}
/**
* @return CaseClassification
*/
public function getClassification()
{
return $this->classification;
}
/**
* A user-supplied email address to send case update notifications for. This
* should only be used in BYOID flows, where we cannot infer the user's email
* address directly from their EUCs.
*
* @param string $contactEmail
*/
public function setContactEmail($contactEmail)
{
$this->contactEmail = $contactEmail;
}
/**
* @return string
*/
public function getContactEmail()
{
return $this->contactEmail;
}
/**
* Output only. The time this case was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The user who created the case. Note: The name and email will be obfuscated
* if the case was created by Google Support.
*
* @param Actor $creator
*/
public function setCreator(Actor $creator)
{
$this->creator = $creator;
}
/**
* @return Actor
*/
public function getCreator()
{
return $this->creator;
}
/**
* A broad description of the issue.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The short summary of the issue reported in this case.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Whether the case is currently escalated.
*
* @param bool $escalated
*/
public function setEscalated($escalated)
{
$this->escalated = $escalated;
}
/**
* @return bool
*/
public function getEscalated()
{
return $this->escalated;
}
/**
* The language the user has requested to receive support in. This should be a
* BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`).
* If no language or an unsupported language is specified, this field defaults
* to English (en). Language selection during case creation may affect your
* available support options. For a list of supported languages and their
* support working hours, see: https://cloud.google.com/support/docs/language-
* working-hours
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Identifier. The resource name for the case.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The priority of this case.
*
* Accepted values: PRIORITY_UNSPECIFIED, P0, P1, P2, P3, P4
*
* @param self::PRIORITY_* $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return self::PRIORITY_*
*/
public function getPriority()
{
return $this->priority;
}
/**
* Output only. The current status of the support case.
*
* Accepted values: STATE_UNSPECIFIED, NEW, IN_PROGRESS_GOOGLE_SUPPORT,
* ACTION_REQUIRED, SOLUTION_PROVIDED, CLOSED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The email addresses to receive updates on this case.
*
* @param string[] $subscriberEmailAddresses
*/
public function setSubscriberEmailAddresses($subscriberEmailAddresses)
{
$this->subscriberEmailAddresses = $subscriberEmailAddresses;
}
/**
* @return string[]
*/
public function getSubscriberEmailAddresses()
{
return $this->subscriberEmailAddresses;
}
/**
* Whether this case was created for internal API testing and should not be
* acted on by the support team.
*
* @param bool $testCase
*/
public function setTestCase($testCase)
{
$this->testCase = $testCase;
}
/**
* @return bool
*/
public function getTestCase()
{
return $this->testCase;
}
/**
* The timezone of the user who created the support case. It should be in a
* format IANA recognizes: https://www.iana.org/time-zones. There is no
* additional validation done by the API.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* Output only. The time this case was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudsupportCase::class, 'Google_Service_CloudSupport_CloudsupportCase');
@@ -0,0 +1,137 @@
<?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\CloudSupport;
class Comment extends \Google\Model
{
/**
* The full comment body. Maximum of 12800 characters.
*
* @var string
*/
public $body;
/**
* Output only. The time when the comment was created.
*
* @var string
*/
public $createTime;
protected $creatorType = Actor::class;
protected $creatorDataType = '';
/**
* Output only. Identifier. The resource name of the comment.
*
* @var string
*/
public $name;
/**
* Output only. DEPRECATED. DO NOT USE. A duplicate of the `body` field. This
* field is only present for legacy reasons.
*
* @deprecated
* @var string
*/
public $plainTextBody;
/**
* The full comment body. Maximum of 12800 characters.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Output only. The time when the comment was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The user or Google Support agent who created the comment.
*
* @param Actor $creator
*/
public function setCreator(Actor $creator)
{
$this->creator = $creator;
}
/**
* @return Actor
*/
public function getCreator()
{
return $this->creator;
}
/**
* Output only. Identifier. The resource name of the comment.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. DEPRECATED. DO NOT USE. A duplicate of the `body` field. This
* field is only present for legacy reasons.
*
* @deprecated
* @param string $plainTextBody
*/
public function setPlainTextBody($plainTextBody)
{
$this->plainTextBody = $plainTextBody;
}
/**
* @deprecated
* @return string
*/
public function getPlainTextBody()
{
return $this->plainTextBody;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comment::class, 'Google_Service_CloudSupport_Comment');
@@ -0,0 +1,286 @@
<?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\CloudSupport;
class CompositeMedia extends \Google\Model
{
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_PATH = 'PATH';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_BLOB_REF = 'BLOB_REF';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_INLINE = 'INLINE';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_BIGSTORE_REF = 'BIGSTORE_REF';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_COSMO_BINARY_REFERENCE = 'COSMO_BINARY_REFERENCE';
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @var string
*/
public $blobRef;
protected $blobstore2InfoType = Blobstore2Info::class;
protected $blobstore2InfoDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $cosmoBinaryReference;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $crc32cHash;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $inline;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $length;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $md5Hash;
protected $objectIdType = ObjectId::class;
protected $objectIdDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $path;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $referenceType;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $sha1Hash;
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @param string $blobRef
*/
public function setBlobRef($blobRef)
{
$this->blobRef = $blobRef;
}
/**
* @deprecated
* @return string
*/
public function getBlobRef()
{
return $this->blobRef;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param Blobstore2Info $blobstore2Info
*/
public function setBlobstore2Info(Blobstore2Info $blobstore2Info)
{
$this->blobstore2Info = $blobstore2Info;
}
/**
* @return Blobstore2Info
*/
public function getBlobstore2Info()
{
return $this->blobstore2Info;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $cosmoBinaryReference
*/
public function setCosmoBinaryReference($cosmoBinaryReference)
{
$this->cosmoBinaryReference = $cosmoBinaryReference;
}
/**
* @return string
*/
public function getCosmoBinaryReference()
{
return $this->cosmoBinaryReference;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $crc32cHash
*/
public function setCrc32cHash($crc32cHash)
{
$this->crc32cHash = $crc32cHash;
}
/**
* @return string
*/
public function getCrc32cHash()
{
return $this->crc32cHash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $inline
*/
public function setInline($inline)
{
$this->inline = $inline;
}
/**
* @return string
*/
public function getInline()
{
return $this->inline;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $length
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $md5Hash
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param ObjectId $objectId
*/
public function setObjectId(ObjectId $objectId)
{
$this->objectId = $objectId;
}
/**
* @return ObjectId
*/
public function getObjectId()
{
return $this->objectId;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* # gdata.* are outside protos with mising documentation
*
* Accepted values: PATH, BLOB_REF, INLINE, BIGSTORE_REF,
* COSMO_BINARY_REFERENCE
*
* @param self::REFERENCE_TYPE_* $referenceType
*/
public function setReferenceType($referenceType)
{
$this->referenceType = $referenceType;
}
/**
* @return self::REFERENCE_TYPE_*
*/
public function getReferenceType()
{
return $this->referenceType;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $sha1Hash
*/
public function setSha1Hash($sha1Hash)
{
$this->sha1Hash = $sha1Hash;
}
/**
* @return string
*/
public function getSha1Hash()
{
return $this->sha1Hash;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompositeMedia::class, 'Google_Service_CloudSupport_CompositeMedia');
@@ -0,0 +1,180 @@
<?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\CloudSupport;
class ContentTypeInfo extends \Google\Model
{
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $bestGuess;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $fromBytes;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $fromFileName;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $fromFusionId;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $fromHeader;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $fromUrlPath;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $fusionIdDetectionMetadata;
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $bestGuess
*/
public function setBestGuess($bestGuess)
{
$this->bestGuess = $bestGuess;
}
/**
* @return string
*/
public function getBestGuess()
{
return $this->bestGuess;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $fromBytes
*/
public function setFromBytes($fromBytes)
{
$this->fromBytes = $fromBytes;
}
/**
* @return string
*/
public function getFromBytes()
{
return $this->fromBytes;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $fromFileName
*/
public function setFromFileName($fromFileName)
{
$this->fromFileName = $fromFileName;
}
/**
* @return string
*/
public function getFromFileName()
{
return $this->fromFileName;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $fromFusionId
*/
public function setFromFusionId($fromFusionId)
{
$this->fromFusionId = $fromFusionId;
}
/**
* @return string
*/
public function getFromFusionId()
{
return $this->fromFusionId;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $fromHeader
*/
public function setFromHeader($fromHeader)
{
$this->fromHeader = $fromHeader;
}
/**
* @return string
*/
public function getFromHeader()
{
return $this->fromHeader;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $fromUrlPath
*/
public function setFromUrlPath($fromUrlPath)
{
$this->fromUrlPath = $fromUrlPath;
}
/**
* @return string
*/
public function getFromUrlPath()
{
return $this->fromUrlPath;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $fusionIdDetectionMetadata
*/
public function setFusionIdDetectionMetadata($fusionIdDetectionMetadata)
{
$this->fusionIdDetectionMetadata = $fusionIdDetectionMetadata;
}
/**
* @return string
*/
public function getFusionIdDetectionMetadata()
{
return $this->fusionIdDetectionMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContentTypeInfo::class, 'Google_Service_CloudSupport_ContentTypeInfo');
@@ -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\CloudSupport;
class CreateAttachmentRequest extends \Google\Model
{
protected $attachmentType = Attachment::class;
protected $attachmentDataType = '';
/**
* Required. The attachment to be created.
*
* @param Attachment $attachment
*/
public function setAttachment(Attachment $attachment)
{
$this->attachment = $attachment;
}
/**
* @return Attachment
*/
public function getAttachment()
{
return $this->attachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateAttachmentRequest::class, 'Google_Service_CloudSupport_CreateAttachmentRequest');
@@ -0,0 +1,128 @@
<?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\CloudSupport;
class DiffChecksumsResponse extends \Google\Model
{
protected $checksumsLocationType = CompositeMedia::class;
protected $checksumsLocationDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $chunkSizeBytes;
protected $objectLocationType = CompositeMedia::class;
protected $objectLocationDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $objectSizeBytes;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $objectVersion;
/**
* # gdata.* are outside protos with mising documentation
*
* @param CompositeMedia $checksumsLocation
*/
public function setChecksumsLocation(CompositeMedia $checksumsLocation)
{
$this->checksumsLocation = $checksumsLocation;
}
/**
* @return CompositeMedia
*/
public function getChecksumsLocation()
{
return $this->checksumsLocation;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $chunkSizeBytes
*/
public function setChunkSizeBytes($chunkSizeBytes)
{
$this->chunkSizeBytes = $chunkSizeBytes;
}
/**
* @return string
*/
public function getChunkSizeBytes()
{
return $this->chunkSizeBytes;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param CompositeMedia $objectLocation
*/
public function setObjectLocation(CompositeMedia $objectLocation)
{
$this->objectLocation = $objectLocation;
}
/**
* @return CompositeMedia
*/
public function getObjectLocation()
{
return $this->objectLocation;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $objectSizeBytes
*/
public function setObjectSizeBytes($objectSizeBytes)
{
$this->objectSizeBytes = $objectSizeBytes;
}
/**
* @return string
*/
public function getObjectSizeBytes()
{
return $this->objectSizeBytes;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $objectVersion
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffChecksumsResponse::class, 'Google_Service_CloudSupport_DiffChecksumsResponse');
@@ -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\CloudSupport;
class DiffDownloadResponse extends \Google\Model
{
protected $objectLocationType = CompositeMedia::class;
protected $objectLocationDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @param CompositeMedia $objectLocation
*/
public function setObjectLocation(CompositeMedia $objectLocation)
{
$this->objectLocation = $objectLocation;
}
/**
* @return CompositeMedia
*/
public function getObjectLocation()
{
return $this->objectLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffDownloadResponse::class, 'Google_Service_CloudSupport_DiffDownloadResponse');
@@ -0,0 +1,84 @@
<?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\CloudSupport;
class DiffUploadRequest extends \Google\Model
{
protected $checksumsInfoType = CompositeMedia::class;
protected $checksumsInfoDataType = '';
protected $objectInfoType = CompositeMedia::class;
protected $objectInfoDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $objectVersion;
/**
* # gdata.* are outside protos with mising documentation
*
* @param CompositeMedia $checksumsInfo
*/
public function setChecksumsInfo(CompositeMedia $checksumsInfo)
{
$this->checksumsInfo = $checksumsInfo;
}
/**
* @return CompositeMedia
*/
public function getChecksumsInfo()
{
return $this->checksumsInfo;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param CompositeMedia $objectInfo
*/
public function setObjectInfo(CompositeMedia $objectInfo)
{
$this->objectInfo = $objectInfo;
}
/**
* @return CompositeMedia
*/
public function getObjectInfo()
{
return $this->objectInfo;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $objectVersion
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffUploadRequest::class, 'Google_Service_CloudSupport_DiffUploadRequest');
@@ -0,0 +1,66 @@
<?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\CloudSupport;
class DiffUploadResponse extends \Google\Model
{
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $objectVersion;
protected $originalObjectType = CompositeMedia::class;
protected $originalObjectDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $objectVersion
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param CompositeMedia $originalObject
*/
public function setOriginalObject(CompositeMedia $originalObject)
{
$this->originalObject = $originalObject;
}
/**
* @return CompositeMedia
*/
public function getOriginalObject()
{
return $this->originalObject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffUploadResponse::class, 'Google_Service_CloudSupport_DiffUploadResponse');
@@ -0,0 +1,70 @@
<?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\CloudSupport;
class DiffVersionResponse extends \Google\Model
{
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $objectSizeBytes;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $objectVersion;
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $objectSizeBytes
*/
public function setObjectSizeBytes($objectSizeBytes)
{
$this->objectSizeBytes = $objectSizeBytes;
}
/**
* @return string
*/
public function getObjectSizeBytes()
{
return $this->objectSizeBytes;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $objectVersion
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffVersionResponse::class, 'Google_Service_CloudSupport_DiffVersionResponse');
@@ -0,0 +1,70 @@
<?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\CloudSupport;
class DownloadParameters extends \Google\Model
{
/**
* # gdata.* are outside protos with mising documentation
*
* @var bool
*/
public $allowGzipCompression;
/**
* # gdata.* are outside protos with mising documentation
*
* @var bool
*/
public $ignoreRange;
/**
* # gdata.* are outside protos with mising documentation
*
* @param bool $allowGzipCompression
*/
public function setAllowGzipCompression($allowGzipCompression)
{
$this->allowGzipCompression = $allowGzipCompression;
}
/**
* @return bool
*/
public function getAllowGzipCompression()
{
return $this->allowGzipCompression;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param bool $ignoreRange
*/
public function setIgnoreRange($ignoreRange)
{
$this->ignoreRange = $ignoreRange;
}
/**
* @return bool
*/
public function getIgnoreRange()
{
return $this->ignoreRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DownloadParameters::class, 'Google_Service_CloudSupport_DownloadParameters');
@@ -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\CloudSupport;
class EscalateCaseRequest extends \Google\Model
{
protected $escalationType = Escalation::class;
protected $escalationDataType = '';
/**
* The escalation information to be sent with the escalation request.
*
* @param Escalation $escalation
*/
public function setEscalation(Escalation $escalation)
{
$this->escalation = $escalation;
}
/**
* @return Escalation
*/
public function getEscalation()
{
return $this->escalation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EscalateCaseRequest::class, 'Google_Service_CloudSupport_EscalateCaseRequest');
@@ -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\CloudSupport;
class Escalation extends \Google\Model
{
/**
* The escalation reason is in an unknown state or has not been specified.
*/
public const REASON_REASON_UNSPECIFIED = 'REASON_UNSPECIFIED';
/**
* The case is taking too long to resolve.
*/
public const REASON_RESOLUTION_TIME = 'RESOLUTION_TIME';
/**
* The support agent does not have the expertise required to successfully
* resolve the issue.
*/
public const REASON_TECHNICAL_EXPERTISE = 'TECHNICAL_EXPERTISE';
/**
* The issue is having a significant business impact.
*/
public const REASON_BUSINESS_IMPACT = 'BUSINESS_IMPACT';
/**
* Required. A free text description to accompany the `reason` field above.
* Provides additional context on why the case is being escalated.
*
* @var string
*/
public $justification;
/**
* Required. The reason why the Case is being escalated.
*
* @var string
*/
public $reason;
/**
* Required. A free text description to accompany the `reason` field above.
* Provides additional context on why the case is being escalated.
*
* @param string $justification
*/
public function setJustification($justification)
{
$this->justification = $justification;
}
/**
* @return string
*/
public function getJustification()
{
return $this->justification;
}
/**
* Required. The reason why the Case is being escalated.
*
* Accepted values: REASON_UNSPECIFIED, RESOLUTION_TIME, TECHNICAL_EXPERTISE,
* BUSINESS_IMPACT
*
* @param self::REASON_* $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return self::REASON_*
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Escalation::class, 'Google_Service_CloudSupport_Escalation');
@@ -0,0 +1,71 @@
<?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\CloudSupport;
class ListAttachmentsResponse extends \Google\Collection
{
protected $collection_key = 'attachments';
protected $attachmentsType = Attachment::class;
protected $attachmentsDataType = 'array';
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.attachments.list` requests. If unspecified,
* there are no more results to retrieve.
*
* @var string
*/
public $nextPageToken;
/**
* The list of attachments associated with a case.
*
* @param Attachment[] $attachments
*/
public function setAttachments($attachments)
{
$this->attachments = $attachments;
}
/**
* @return Attachment[]
*/
public function getAttachments()
{
return $this->attachments;
}
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.attachments.list` requests. If unspecified,
* there are no more results to retrieve.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAttachmentsResponse::class, 'Google_Service_CloudSupport_ListAttachmentsResponse');
@@ -0,0 +1,72 @@
<?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\CloudSupport;
class ListCasesResponse extends \Google\Collection
{
protected $collection_key = 'cases';
protected $casesType = CloudsupportCase::class;
protected $casesDataType = 'array';
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.list` requests. If unspecified, there are no
* more results to retrieve.
*
* @var string
*/
public $nextPageToken;
/**
* The list of cases associated with the parent after any filters have been
* applied.
*
* @param CloudsupportCase[] $cases
*/
public function setCases($cases)
{
$this->cases = $cases;
}
/**
* @return CloudsupportCase[]
*/
public function getCases()
{
return $this->cases;
}
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.list` requests. If unspecified, there are no
* more results to retrieve.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCasesResponse::class, 'Google_Service_CloudSupport_ListCasesResponse');
@@ -0,0 +1,71 @@
<?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\CloudSupport;
class ListCommentsResponse extends \Google\Collection
{
protected $collection_key = 'comments';
protected $commentsType = Comment::class;
protected $commentsDataType = 'array';
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.comments.list` requests. If unspecified, there
* are no more results to retrieve.
*
* @var string
*/
public $nextPageToken;
/**
* List of the comments associated with the case.
*
* @param Comment[] $comments
*/
public function setComments($comments)
{
$this->comments = $comments;
}
/**
* @return Comment[]
*/
public function getComments()
{
return $this->comments;
}
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.comments.list` requests. If unspecified, there
* are no more results to retrieve.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCommentsResponse::class, 'Google_Service_CloudSupport_ListCommentsResponse');
@@ -0,0 +1,738 @@
<?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\CloudSupport;
class Media extends \Google\Collection
{
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_PATH = 'PATH';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_BLOB_REF = 'BLOB_REF';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_INLINE = 'INLINE';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_GET_MEDIA = 'GET_MEDIA';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_COMPOSITE_MEDIA = 'COMPOSITE_MEDIA';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_BIGSTORE_REF = 'BIGSTORE_REF';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_DIFF_VERSION_RESPONSE = 'DIFF_VERSION_RESPONSE';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_DIFF_CHECKSUMS_RESPONSE = 'DIFF_CHECKSUMS_RESPONSE';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_DIFF_DOWNLOAD_RESPONSE = 'DIFF_DOWNLOAD_RESPONSE';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_DIFF_UPLOAD_REQUEST = 'DIFF_UPLOAD_REQUEST';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_DIFF_UPLOAD_RESPONSE = 'DIFF_UPLOAD_RESPONSE';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_COSMO_BINARY_REFERENCE = 'COSMO_BINARY_REFERENCE';
/**
* # gdata.* are outside protos with mising documentation
*/
public const REFERENCE_TYPE_ARBITRARY_BYTES = 'ARBITRARY_BYTES';
protected $collection_key = 'compositeMedia';
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @var string
*/
public $algorithm;
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @var string
*/
public $bigstoreObjectRef;
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @var string
*/
public $blobRef;
protected $blobstore2InfoType = Blobstore2Info::class;
protected $blobstore2InfoDataType = '';
protected $compositeMediaType = CompositeMedia::class;
protected $compositeMediaDataType = 'array';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $contentType;
protected $contentTypeInfoType = ContentTypeInfo::class;
protected $contentTypeInfoDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $cosmoBinaryReference;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $crc32cHash;
protected $diffChecksumsResponseType = DiffChecksumsResponse::class;
protected $diffChecksumsResponseDataType = '';
protected $diffDownloadResponseType = DiffDownloadResponse::class;
protected $diffDownloadResponseDataType = '';
protected $diffUploadRequestType = DiffUploadRequest::class;
protected $diffUploadRequestDataType = '';
protected $diffUploadResponseType = DiffUploadResponse::class;
protected $diffUploadResponseDataType = '';
protected $diffVersionResponseType = DiffVersionResponse::class;
protected $diffVersionResponseDataType = '';
protected $downloadParametersType = DownloadParameters::class;
protected $downloadParametersDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $filename;
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @var string
*/
public $hash;
/**
* # gdata.* are outside protos with mising documentation
*
* @var bool
*/
public $hashVerified;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $inline;
/**
* # gdata.* are outside protos with mising documentation
*
* @var bool
*/
public $isPotentialRetry;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $length;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $md5Hash;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $mediaId;
protected $objectIdType = ObjectId::class;
protected $objectIdDataType = '';
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $path;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $referenceType;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $sha1Hash;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $sha256Hash;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $sha512Hash;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $timestamp;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $token;
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @param string $algorithm
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @deprecated
* @return string
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @param string $bigstoreObjectRef
*/
public function setBigstoreObjectRef($bigstoreObjectRef)
{
$this->bigstoreObjectRef = $bigstoreObjectRef;
}
/**
* @deprecated
* @return string
*/
public function getBigstoreObjectRef()
{
return $this->bigstoreObjectRef;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @param string $blobRef
*/
public function setBlobRef($blobRef)
{
$this->blobRef = $blobRef;
}
/**
* @deprecated
* @return string
*/
public function getBlobRef()
{
return $this->blobRef;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param Blobstore2Info $blobstore2Info
*/
public function setBlobstore2Info(Blobstore2Info $blobstore2Info)
{
$this->blobstore2Info = $blobstore2Info;
}
/**
* @return Blobstore2Info
*/
public function getBlobstore2Info()
{
return $this->blobstore2Info;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param CompositeMedia[] $compositeMedia
*/
public function setCompositeMedia($compositeMedia)
{
$this->compositeMedia = $compositeMedia;
}
/**
* @return CompositeMedia[]
*/
public function getCompositeMedia()
{
return $this->compositeMedia;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $contentType
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param ContentTypeInfo $contentTypeInfo
*/
public function setContentTypeInfo(ContentTypeInfo $contentTypeInfo)
{
$this->contentTypeInfo = $contentTypeInfo;
}
/**
* @return ContentTypeInfo
*/
public function getContentTypeInfo()
{
return $this->contentTypeInfo;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $cosmoBinaryReference
*/
public function setCosmoBinaryReference($cosmoBinaryReference)
{
$this->cosmoBinaryReference = $cosmoBinaryReference;
}
/**
* @return string
*/
public function getCosmoBinaryReference()
{
return $this->cosmoBinaryReference;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $crc32cHash
*/
public function setCrc32cHash($crc32cHash)
{
$this->crc32cHash = $crc32cHash;
}
/**
* @return string
*/
public function getCrc32cHash()
{
return $this->crc32cHash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param DiffChecksumsResponse $diffChecksumsResponse
*/
public function setDiffChecksumsResponse(DiffChecksumsResponse $diffChecksumsResponse)
{
$this->diffChecksumsResponse = $diffChecksumsResponse;
}
/**
* @return DiffChecksumsResponse
*/
public function getDiffChecksumsResponse()
{
return $this->diffChecksumsResponse;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param DiffDownloadResponse $diffDownloadResponse
*/
public function setDiffDownloadResponse(DiffDownloadResponse $diffDownloadResponse)
{
$this->diffDownloadResponse = $diffDownloadResponse;
}
/**
* @return DiffDownloadResponse
*/
public function getDiffDownloadResponse()
{
return $this->diffDownloadResponse;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param DiffUploadRequest $diffUploadRequest
*/
public function setDiffUploadRequest(DiffUploadRequest $diffUploadRequest)
{
$this->diffUploadRequest = $diffUploadRequest;
}
/**
* @return DiffUploadRequest
*/
public function getDiffUploadRequest()
{
return $this->diffUploadRequest;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param DiffUploadResponse $diffUploadResponse
*/
public function setDiffUploadResponse(DiffUploadResponse $diffUploadResponse)
{
$this->diffUploadResponse = $diffUploadResponse;
}
/**
* @return DiffUploadResponse
*/
public function getDiffUploadResponse()
{
return $this->diffUploadResponse;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param DiffVersionResponse $diffVersionResponse
*/
public function setDiffVersionResponse(DiffVersionResponse $diffVersionResponse)
{
$this->diffVersionResponse = $diffVersionResponse;
}
/**
* @return DiffVersionResponse
*/
public function getDiffVersionResponse()
{
return $this->diffVersionResponse;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param DownloadParameters $downloadParameters
*/
public function setDownloadParameters(DownloadParameters $downloadParameters)
{
$this->downloadParameters = $downloadParameters;
}
/**
* @return DownloadParameters
*/
public function getDownloadParameters()
{
return $this->downloadParameters;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $filename
*/
public function setFilename($filename)
{
$this->filename = $filename;
}
/**
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @deprecated
* @param string $hash
*/
public function setHash($hash)
{
$this->hash = $hash;
}
/**
* @deprecated
* @return string
*/
public function getHash()
{
return $this->hash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param bool $hashVerified
*/
public function setHashVerified($hashVerified)
{
$this->hashVerified = $hashVerified;
}
/**
* @return bool
*/
public function getHashVerified()
{
return $this->hashVerified;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $inline
*/
public function setInline($inline)
{
$this->inline = $inline;
}
/**
* @return string
*/
public function getInline()
{
return $this->inline;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param bool $isPotentialRetry
*/
public function setIsPotentialRetry($isPotentialRetry)
{
$this->isPotentialRetry = $isPotentialRetry;
}
/**
* @return bool
*/
public function getIsPotentialRetry()
{
return $this->isPotentialRetry;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $length
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $md5Hash
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $mediaId
*/
public function setMediaId($mediaId)
{
$this->mediaId = $mediaId;
}
/**
* @return string
*/
public function getMediaId()
{
return $this->mediaId;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param ObjectId $objectId
*/
public function setObjectId(ObjectId $objectId)
{
$this->objectId = $objectId;
}
/**
* @return ObjectId
*/
public function getObjectId()
{
return $this->objectId;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* # gdata.* are outside protos with mising documentation
*
* Accepted values: PATH, BLOB_REF, INLINE, GET_MEDIA, COMPOSITE_MEDIA,
* BIGSTORE_REF, DIFF_VERSION_RESPONSE, DIFF_CHECKSUMS_RESPONSE,
* DIFF_DOWNLOAD_RESPONSE, DIFF_UPLOAD_REQUEST, DIFF_UPLOAD_RESPONSE,
* COSMO_BINARY_REFERENCE, ARBITRARY_BYTES
*
* @param self::REFERENCE_TYPE_* $referenceType
*/
public function setReferenceType($referenceType)
{
$this->referenceType = $referenceType;
}
/**
* @return self::REFERENCE_TYPE_*
*/
public function getReferenceType()
{
return $this->referenceType;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $sha1Hash
*/
public function setSha1Hash($sha1Hash)
{
$this->sha1Hash = $sha1Hash;
}
/**
* @return string
*/
public function getSha1Hash()
{
return $this->sha1Hash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $sha256Hash
*/
public function setSha256Hash($sha256Hash)
{
$this->sha256Hash = $sha256Hash;
}
/**
* @return string
*/
public function getSha256Hash()
{
return $this->sha256Hash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $sha512Hash
*/
public function setSha512Hash($sha512Hash)
{
$this->sha512Hash = $sha512Hash;
}
/**
* @return string
*/
public function getSha512Hash()
{
return $this->sha512Hash;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $timestamp
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_CloudSupport_Media');
@@ -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\CloudSupport;
class ObjectId extends \Google\Model
{
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $bucketName;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $generation;
/**
* # gdata.* are outside protos with mising documentation
*
* @var string
*/
public $objectName;
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $bucketName
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* # gdata.* are outside protos with mising documentation
*
* @param string $objectName
*/
public function setObjectName($objectName)
{
$this->objectName = $objectName;
}
/**
* @return string
*/
public function getObjectName()
{
return $this->objectName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectId::class, 'Google_Service_CloudSupport_ObjectId');
@@ -0,0 +1,52 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\Attachment;
use Google\Service\CloudSupport\CreateAttachmentRequest;
/**
* The "attachments" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $attachments = $cloudsupportService->attachments;
* </code>
*/
class Attachments extends \Google\Service\Resource
{
/**
* Create a file attachment on a case or Cloud resource. The attachment object
* must have the following fields set: filename. (attachments.create)
*
* @param string $parent Required. The resource name of the case (or case
* parent) to which the attachment should be attached.
* @param CreateAttachmentRequest $postBody
* @param array $optParams Optional parameters.
* @return Attachment
*/
public function create($parent, CreateAttachmentRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Attachment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attachments::class, 'Google_Service_CloudSupport_Resource_Attachments');
@@ -0,0 +1,71 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\SearchCaseClassificationsResponse;
/**
* The "caseClassifications" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $caseClassifications = $cloudsupportService->caseClassifications;
* </code>
*/
class CaseClassifications extends \Google\Service\Resource
{
/**
* Retrieve valid classifications to use when creating a support case.
* Classifications are hierarchical. Each classification is a string containing
* all levels of the hierarchy separated by `" > "`. For example, `"Technical
* Issue > Compute > Compute Engine"`. Classification IDs returned by this
* endpoint are valid for at least six months. When a classification is
* deactivated, this endpoint immediately stops returning it. After six months,
* `case.create` requests using the classification will fail. EXAMPLES: cURL:
* ```shell curl \ --header "Authorization: Bearer $(gcloud auth print-access-
* token)" \ 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?
* query=display_name:"*Compute%20Engine*"' ``` Python: ```python import
* googleapiclient.discovery supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport", version="v2", di
* scoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?versi
* on=v2", ) request = supportApiService.caseClassifications().search(
* query='display_name:"*Compute Engine*"' ) print(request.execute()) ```
* (caseClassifications.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of classifications fetched with
* each request.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is retrieved.
* @opt_param string query An expression used to filter case classifications. If
* it's an empty string, then no filtering happens. Otherwise, case
* classifications will be returned that match the filter.
* @return SearchCaseClassificationsResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchCaseClassificationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CaseClassifications::class, 'Google_Service_CloudSupport_Resource_CaseClassifications');
@@ -0,0 +1,282 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\CloseCaseRequest;
use Google\Service\CloudSupport\CloudsupportCase;
use Google\Service\CloudSupport\EscalateCaseRequest;
use Google\Service\CloudSupport\ListCasesResponse;
use Google\Service\CloudSupport\SearchCasesResponse;
/**
* The "cases" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $cases = $cloudsupportService->cases;
* </code>
*/
class Cases extends \Google\Service\Resource
{
/**
* Close a case. EXAMPLES: cURL: ```shell case="projects/some-
* project/cases/43595344" curl \ --request POST \ --header "Authorization:
* Bearer $(gcloud auth print-access-token)" \
* "https://cloudsupport.googleapis.com/v2/$case:close" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) request =
* supportApiService.cases().close( name="projects/some-project/cases/43595344"
* ) print(request.execute()) ``` (cases.close)
*
* @param string $name Required. The name of the case to close.
* @param CloseCaseRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudsupportCase
* @throws \Google\Service\Exception
*/
public function close($name, CloseCaseRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('close', [$params], CloudsupportCase::class);
}
/**
* Create a new case and associate it with a parent. It must have the following
* fields set: `display_name`, `description`, `classification`, and `priority`.
* If you're just testing the API and don't want to route your case to an agent,
* set `testCase=true`. EXAMPLES: cURL: ```shell parent="projects/some-project"
* curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-
* access-token)" \ --header 'Content-Type: application/json' \ --data '{
* "display_name": "Test case created by me.", "description": "a random test
* case, feel free to close", "classification": { "id": "100IK2AKCLHMGRJ9CDGMOCG
* P8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3M
* URR7DHII0GRCDTQM8" }, "time_zone": "-07:00", "subscriber_email_addresses": [
* "foo@domain.com", "bar@domain.com" ], "testCase": true, "priority": "P3" }' \
* "https://cloudsupport.googleapis.com/v2/$parent/cases" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) request =
* supportApiService.cases().create( parent="projects/some-project", body={
* "displayName": "A Test Case", "description": "This is a test case.",
* "testCase": True, "priority": "P2", "classification": { "id": "100IK2AKCLHMGR
* J9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN888
* 0G08I1H3MURR7DHII0GRCDTQM8" }, }, ) print(request.execute()) ```
* (cases.create)
*
* @param string $parent Required. The name of the parent under which the case
* should be created.
* @param CloudsupportCase $postBody
* @param array $optParams Optional parameters.
* @return CloudsupportCase
* @throws \Google\Service\Exception
*/
public function create($parent, CloudsupportCase $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], CloudsupportCase::class);
}
/**
* Escalate a case, starting the Google Cloud Support escalation management
* process. This operation is only available for some support services. Go to
* https://cloud.google.com/support and look for 'Technical support escalations'
* in the feature list to find out which ones let you do that. EXAMPLES: cURL:
* ```shell case="projects/some-project/cases/43595344" curl \ --request POST \
* --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header
* "Content-Type: application/json" \ --data '{ "escalation": { "reason":
* "BUSINESS_IMPACT", "justification": "This is a test escalation." } }' \
* "https://cloudsupport.googleapis.com/v2/$case:escalate" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) request =
* supportApiService.cases().escalate( name="projects/some-
* project/cases/43595344", body={ "escalation": { "reason": "BUSINESS_IMPACT",
* "justification": "This is a test escalation.", }, }, )
* print(request.execute()) ``` (cases.escalate)
*
* @param string $name Required. The name of the case to be escalated.
* @param EscalateCaseRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudsupportCase
* @throws \Google\Service\Exception
*/
public function escalate($name, EscalateCaseRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('escalate', [$params], CloudsupportCase::class);
}
/**
* Retrieve a case. EXAMPLES: cURL: ```shell case="projects/some-
* project/cases/16033687" curl \ --header "Authorization: Bearer $(gcloud auth
* print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case" ```
* Python: ```python import googleapiclient.discovery api_version = "v2"
* supportApiService = googleapiclient.discovery.build(
* serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https:
* //cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
* request = supportApiService.cases().get( name="projects/some-
* project/cases/43595344", ) print(request.execute()) ``` (cases.get)
*
* @param string $name Required. The full name of a case to be retrieved.
* @param array $optParams Optional parameters.
* @return CloudsupportCase
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CloudsupportCase::class);
}
/**
* Retrieve all cases under a parent, but not its children. For example, listing
* cases under an organization only returns the cases that are directly parented
* by that organization. To retrieve cases under an organization and its
* projects, use `cases.search`. EXAMPLES: cURL: ```shell parent="projects/some-
* project" curl \ --header "Authorization: Bearer $(gcloud auth print-access-
* token)" \ "https://cloudsupport.googleapis.com/v2/$parent/cases" ``` Python:
* ```python import googleapiclient.discovery api_version = "v2"
* supportApiService = googleapiclient.discovery.build(
* serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https:
* //cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
* request = supportApiService.cases().list(parent="projects/some-project")
* print(request.execute()) ``` (cases.listCases)
*
* @param string $parent Required. The name of a parent to list cases under.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression used to filter cases. If it's an empty
* string, then no filtering happens. Otherwise, the endpoint returns the cases
* that match the filter. Expressions use the following fields separated by
* `AND` and specified with `=`: - `state`: Can be `OPEN` or `CLOSED`. -
* `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple
* values for priority using the `OR` operator. For example, `priority=P1 OR
* priority=P2`. - `creator.email`: The email address of the case creator.
* EXAMPLES: - `state=CLOSED` - `state=OPEN AND
* creator.email="tester@example.com"` - `state=OPEN AND (priority=P0 OR
* priority=P1)`
* @opt_param int pageSize The maximum number of cases fetched with each
* request. Defaults to 10.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is retrieved.
* @return ListCasesResponse
* @throws \Google\Service\Exception
*/
public function listCases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCasesResponse::class);
}
/**
* Update a case. Only some fields can be updated. EXAMPLES: cURL: ```shell
* case="projects/some-project/cases/43595344" curl \ --request PATCH \ --header
* "Authorization: Bearer $(gcloud auth print-access-token)" \ --header
* "Content-Type: application/json" \ --data '{ "priority": "P1" }' \
* "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority" ```
* Python: ```python import googleapiclient.discovery api_version = "v2"
* supportApiService = googleapiclient.discovery.build(
* serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https:
* //cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
* request = supportApiService.cases().patch( name="projects/some-
* project/cases/43112854", body={ "displayName": "This is Now a New Title",
* "priority": "P2", }, ) print(request.execute()) ``` (cases.patch)
*
* @param string $name Identifier. The resource name for the case.
* @param CloudsupportCase $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask A list of attributes of the case that should be
* updated. Supported values are `priority`, `display_name`, and
* `subscriber_email_addresses`. If no fields are specified, all supported
* fields are updated. Be careful - if you do not provide a field mask, then you
* might accidentally clear some fields. For example, if you leave the field
* mask empty and do not provide a value for `subscriber_email_addresses`, then
* `subscriber_email_addresses` is updated to empty.
* @return CloudsupportCase
* @throws \Google\Service\Exception
*/
public function patch($name, CloudsupportCase $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CloudsupportCase::class);
}
/**
* Search for cases using a query. EXAMPLES: cURL: ```shell
* parent="projects/some-project" curl \ --header "Authorization: Bearer
* $(gcloud auth print-access-token)" \
* "https://cloudsupport.googleapis.com/v2/$parent/cases:search" ``` Python:
* ```python import googleapiclient.discovery api_version = "v2"
* supportApiService = googleapiclient.discovery.build(
* serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https:
* //cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
* request = supportApiService.cases().search( parent="projects/some-project",
* query="state=OPEN" ) print(request.execute()) ``` (cases.search)
*
* @param string $parent The name of the parent resource to search for cases
* under.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of cases fetched with each
* request. The default page size is 10.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is retrieved.
* @opt_param string query An expression used to filter cases. Expressions use
* the following fields separated by `AND` and specified with `=`: - `state`:
* Can be `OPEN` or `CLOSED`. - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or
* `P4`. You can specify multiple values for priority using the `OR` operator.
* For example, `priority=P1 OR priority=P2`. - `creator.email`: The email
* address of the case creator. To search across `displayName`, `description`,
* and comments, use a global restriction with no keyword or operator. For
* example, `"my search"`. To search only cases updated after a certain date,
* use `update_time` restricted with that particular date, time, and timezone in
* ISO datetime format. For example, `update_time>"2020-01-01T00:00:00-05:00"`.
* `update_time` only supports the greater than operator (`>`). If you are using
* the `v2` version of the API, you must specify the case parent in the `parent`
* field. If you provide an empty `query`, all cases under the parent resource
* will be returned. If you are using the `v2beta` version of the API, you must
* specify the case parent in the `query` field using one of the two fields
* below, which are only available for `v2beta`. The `parent` field will be
* ignored. - `organization`: An organization name in the form `organizations/`.
* - `project`: A project name in the form `projects/`. Examples: For `v2`: -
* `state=CLOSED` - `state=OPEN AND creator.email="tester@example.com"` -
* `state=OPEN AND (priority=P0 OR priority=P1)` -
* `update_time>"2020-01-01T00:00:00-05:00"` For `v2beta`: -
* `organization="organizations/123456789"` - `project="projects/my-project-id"`
* - `project="projects/123456789"` - `organization="organizations/123456789"
* AND state=CLOSED` - `project="projects/my-project-id" AND
* creator.email="tester@example.com"` - `project="projects/my-project-id" AND
* (priority=P0 OR priority=P1)`
* @return SearchCasesResponse
* @throws \Google\Service\Exception
*/
public function search($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchCasesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cases::class, 'Google_Service_CloudSupport_Resource_Cases');
@@ -0,0 +1,94 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\Attachment;
use Google\Service\CloudSupport\ListAttachmentsResponse;
/**
* The "attachments" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $attachments = $cloudsupportService->cases_attachments;
* </code>
*/
class CasesAttachments extends \Google\Service\Resource
{
/**
* Retrieve an attachment associated with a support case. EXAMPLES: cURL:
* ```shell attachment="projects/some-
* project/cases/23598314/attachments/0684M00000P3h1fQAB" curl \ --header
* "Authorization: Bearer $(gcloud auth print-access-token)" \
* "https://cloudsupport.googleapis.com/v2/$attachment" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) request = (
* supportApiService.cases() .attachments() .get(name="projects/some-
* project/cases/43595344/attachments/0684M00000P3h1fQAB") )
* print(request.execute()) ``` (attachments.get)
*
* @param string $name Required. The name of the attachment to get.
* @param array $optParams Optional parameters.
* @return Attachment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Attachment::class);
}
/**
* List all the attachments associated with a support case. EXAMPLES: cURL:
* ```shell case="projects/some-project/cases/23598314" curl \ --header
* "Authorization: Bearer $(gcloud auth print-access-token)" \
* "https://cloudsupport.googleapis.com/v2/$case/attachments" ``` Python:
* ```python import googleapiclient.discovery api_version = "v2"
* supportApiService = googleapiclient.discovery.build(
* serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https:
* //cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
* request = ( supportApiService.cases() .attachments()
* .list(parent="projects/some-project/cases/43595344") )
* print(request.execute()) ``` (attachments.listCasesAttachments)
*
* @param string $parent Required. The name of the case for which attachments
* should be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of attachments fetched with each
* request. If not provided, the default is 10. The maximum page size that will
* be returned is 100. The size of each page can be smaller than the requested
* page size and can include zero. For example, you could request 100
* attachments on one page, receive 0, and then on the next page, receive 90.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is retrieved.
* @return ListAttachmentsResponse
* @throws \Google\Service\Exception
*/
public function listCasesAttachments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAttachmentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CasesAttachments::class, 'Google_Service_CloudSupport_Resource_CasesAttachments');
@@ -0,0 +1,118 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\Comment;
use Google\Service\CloudSupport\ListCommentsResponse;
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $comments = $cloudsupportService->cases_comments;
* </code>
*/
class CasesComments extends \Google\Service\Resource
{
/**
* Add a new comment to a case. The comment must have the following fields set:
* `body`. EXAMPLES: cURL: ```shell case="projects/some-project/cases/43591344"
* curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-
* access-token)" \ --header 'Content-Type: application/json' \ --data '{
* "body": "This is a test comment." }' \
* "https://cloudsupport.googleapis.com/v2/$case/comments" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) request = (
* supportApiService.cases() .comments() .create( parent="projects/some-
* project/cases/43595344", body={"body": "This is a test comment."}, ) )
* print(request.execute()) ``` (comments.create)
*
* @param string $parent Required. The name of the case to which the comment
* should be added.
* @param Comment $postBody
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function create($parent, Comment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Comment::class);
}
/**
* Retrieve a comment. EXAMPLES: cURL: ```shell comment="projects/some-
* project/cases/43595344/comments/234567890" curl \ --header "Authorization:
* Bearer $(gcloud auth print-access-token)" \
* "https://cloudsupport.googleapis.com/v2/$comment" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) request =
* supportApiService.cases().comments().get( name="projects/some-
* project/cases/43595344/comments/234567890", ) print(request.execute()) ```
* (comments.get)
*
* @param string $name Required. The name of the comment to retrieve.
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Comment::class);
}
/**
* List all the comments associated with a case. EXAMPLES: cURL: ```shell
* case="projects/some-project/cases/43595344" curl \ --header "Authorization:
* Bearer $(gcloud auth print-access-token)" \
* "https://cloudsupport.googleapis.com/v2/$case/comments" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) request = (
* supportApiService.cases() .comments() .list(parent="projects/some-
* project/cases/43595344") ) print(request.execute()) ```
* (comments.listCasesComments)
*
* @param string $parent Required. The name of the case for which to list
* comments.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of comments to fetch. Defaults to
* 10.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is returned.
* @return ListCommentsResponse
* @throws \Google\Service\Exception
*/
public function listCasesComments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCommentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CasesComments::class, 'Google_Service_CloudSupport_Resource_CasesComments');
@@ -0,0 +1,33 @@
<?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\CloudSupport\Resource;
/**
* The "customers" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $customers = $cloudsupportService->customers;
* </code>
*/
class Customers extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customers::class, 'Google_Service_CloudSupport_Resource_Customers');
@@ -0,0 +1,33 @@
<?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\CloudSupport\Resource;
/**
* The "cases" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $cases = $cloudsupportService->customers_cases;
* </code>
*/
class CustomersCases extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersCases::class, 'Google_Service_CloudSupport_Resource_CustomersCases');
@@ -0,0 +1,72 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\Comment;
use Google\Service\CloudSupport\ListCommentsResponse;
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $comments = $cloudsupportService->customers_cases_comments;
* </code>
*/
class CustomersCasesComments extends \Google\Service\Resource
{
/**
* Add a new comment to the specified Case. The comment object must have the
* following fields set: body. (comments.create)
*
* @param string $parent Required. The resource name of Case to which this
* comment should be added.
* @param Comment $postBody
* @param array $optParams Optional parameters.
* @return Comment
*/
public function create($parent, Comment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Comment::class);
}
/**
* Retrieve all Comments associated with the Case object.
* (comments.listCustomersCasesComments)
*
* @param string $parent Required. The resource name of Case object for which
* comments should be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of comments fetched with each
* request. Defaults to 10.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is retrieved.
* @return ListCommentsResponse
*/
public function listCustomersCasesComments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCommentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersCasesComments::class, 'Google_Service_CloudSupport_Resource_CustomersCasesComments');
@@ -0,0 +1,97 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\Attachment;
use Google\Service\CloudSupport\CreateAttachmentRequest;
use Google\Service\CloudSupport\Media as MediaModel;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $media = $cloudsupportService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Download a file attached to a case. When this endpoint is called, no
* "response body" will be returned. Instead, the attachment's blob will be
* returned. Note: HTTP requests must append "?alt=media" to the URL. EXAMPLES:
* cURL: ```shell name="projects/some-
* project/cases/43594844/attachments/0674M00000WijAnZAJ" curl \ --header
* "Authorization: Bearer $(gcloud auth print-access-token)" \
* "https://cloudsupport.googleapis.com/v2/$name:download?alt=media" ``` Python:
* ```python import googleapiclient.discovery api_version = "v2"
* supportApiService = googleapiclient.discovery.build(
* serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https:
* //cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
* request = supportApiService.media().download( name="projects/some-
* project/cases/43595344/attachments/0684M00000Pw6pHQAR" ) request.uri =
* request.uri.split("?")[0] + "?alt=media" print(request.execute()) ```
* (media.download)
*
* @param string $name The name of the file attachment to download.
* @param array $optParams Optional parameters.
* @return MediaModel
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], MediaModel::class);
}
/**
* Create a file attachment on a case or Cloud resource. The attachment must
* have the following fields set: `filename`. EXAMPLES: cURL: ```shell echo
* "This text is in a file I'm uploading using CSAPI." \ > "./example_file.txt"
* case="projects/some-project/cases/43594844" curl \ --header "Authorization:
* Bearer $(gcloud auth print-access-token)" \ --data-binary
* @"./example_file.txt" \ "https://cloudsupport.googleapis.com/upload/v2/$case/
* attachments?attachment.filename=uploaded_via_curl.txt" ``` Python: ```python
* import googleapiclient.discovery api_version = "v2" supportApiService =
* googleapiclient.discovery.build( serviceName="cloudsupport",
* version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.co
* m/$discovery/rest?version={api_version}", ) file_path = "./example_file.txt"
* with open(file_path, "w") as file: file.write( "This text is inside a file
* I'm going to upload using the Cloud Support API.", ) request =
* supportApiService.media().upload( parent="projects/some-
* project/cases/43595344", media_body=file_path ) request.uri =
* request.uri.split("?")[0] + "?attachment.filename=uploaded_via_python.txt"
* print(request.execute()) ``` (media.upload)
*
* @param string $parent Required. The name of the case or Cloud resource to
* which the attachment should be attached.
* @param CreateAttachmentRequest $postBody
* @param array $optParams Optional parameters.
* @return Attachment
* @throws \Google\Service\Exception
*/
public function upload($parent, CreateAttachmentRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], Attachment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_CloudSupport_Resource_Media');
@@ -0,0 +1,33 @@
<?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\CloudSupport\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $organizations = $cloudsupportService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_CloudSupport_Resource_Organizations');
@@ -0,0 +1,33 @@
<?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\CloudSupport\Resource;
/**
* The "cases" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $cases = $cloudsupportService->organizations_cases;
* </code>
*/
class OrganizationsCases extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsCases::class, 'Google_Service_CloudSupport_Resource_OrganizationsCases');
@@ -0,0 +1,72 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\Comment;
use Google\Service\CloudSupport\ListCommentsResponse;
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $comments = $cloudsupportService->organizations_cases_comments;
* </code>
*/
class OrganizationsCasesComments extends \Google\Service\Resource
{
/**
* Add a new comment to the specified Case. The comment object must have the
* following fields set: body. (comments.create)
*
* @param string $parent Required. The resource name of Case to which this
* comment should be added.
* @param Comment $postBody
* @param array $optParams Optional parameters.
* @return Comment
*/
public function create($parent, Comment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Comment::class);
}
/**
* Retrieve all Comments associated with the Case object.
* (comments.listOrganizationsCasesComments)
*
* @param string $parent Required. The resource name of Case object for which
* comments should be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of comments fetched with each
* request. Defaults to 10.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is retrieved.
* @return ListCommentsResponse
*/
public function listOrganizationsCasesComments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCommentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsCasesComments::class, 'Google_Service_CloudSupport_Resource_OrganizationsCasesComments');
@@ -0,0 +1,33 @@
<?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\CloudSupport\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $projects = $cloudsupportService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudSupport_Resource_Projects');
@@ -0,0 +1,33 @@
<?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\CloudSupport\Resource;
/**
* The "cases" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $cases = $cloudsupportService->projects_cases;
* </code>
*/
class ProjectsCases extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsCases::class, 'Google_Service_CloudSupport_Resource_ProjectsCases');
@@ -0,0 +1,72 @@
<?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\CloudSupport\Resource;
use Google\Service\CloudSupport\Comment;
use Google\Service\CloudSupport\ListCommentsResponse;
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $cloudsupportService = new Google\Service\CloudSupport(...);
* $comments = $cloudsupportService->projects_cases_comments;
* </code>
*/
class ProjectsCasesComments extends \Google\Service\Resource
{
/**
* Add a new comment to the specified Case. The comment object must have the
* following fields set: body. (comments.create)
*
* @param string $parent Required. The resource name of Case to which this
* comment should be added.
* @param Comment $postBody
* @param array $optParams Optional parameters.
* @return Comment
*/
public function create($parent, Comment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Comment::class);
}
/**
* Retrieve all Comments associated with the Case object.
* (comments.listProjectsCasesComments)
*
* @param string $parent Required. The resource name of Case object for which
* comments should be listed.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of comments fetched with each
* request. Defaults to 10.
* @opt_param string pageToken A token identifying the page of results to
* return. If unspecified, the first page is retrieved.
* @return ListCommentsResponse
*/
public function listProjectsCasesComments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCommentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsCasesComments::class, 'Google_Service_CloudSupport_Resource_ProjectsCasesComments');
@@ -0,0 +1,71 @@
<?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\CloudSupport;
class SearchCaseClassificationsResponse extends \Google\Collection
{
protected $collection_key = 'caseClassifications';
protected $caseClassificationsType = CaseClassification::class;
protected $caseClassificationsDataType = 'array';
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `caseClassifications.list` requests. If unspecified,
* there are no more results to retrieve.
*
* @var string
*/
public $nextPageToken;
/**
* The classifications retrieved.
*
* @param CaseClassification[] $caseClassifications
*/
public function setCaseClassifications($caseClassifications)
{
$this->caseClassifications = $caseClassifications;
}
/**
* @return CaseClassification[]
*/
public function getCaseClassifications()
{
return $this->caseClassifications;
}
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `caseClassifications.list` requests. If unspecified,
* there are no more results to retrieve.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchCaseClassificationsResponse::class, 'Google_Service_CloudSupport_SearchCaseClassificationsResponse');
@@ -0,0 +1,72 @@
<?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\CloudSupport;
class SearchCasesResponse extends \Google\Collection
{
protected $collection_key = 'cases';
protected $casesType = CloudsupportCase::class;
protected $casesDataType = 'array';
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.search` requests. If unspecified, there are no
* more results to retrieve.
*
* @var string
*/
public $nextPageToken;
/**
* The list of cases associated with the parent after any filters have been
* applied.
*
* @param CloudsupportCase[] $cases
*/
public function setCases($cases)
{
$this->cases = $cases;
}
/**
* @return CloudsupportCase[]
*/
public function getCases()
{
return $this->cases;
}
/**
* A token to retrieve the next page of results. Set this in the `page_token`
* field of subsequent `cases.search` requests. If unspecified, there are no
* more results to retrieve.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchCasesResponse::class, 'Google_Service_CloudSupport_SearchCasesResponse');
@@ -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\CloudSupport;
class WorkflowOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $namespace;
/**
* @var string
*/
public $operationAction;
/**
* @var string
*/
public $workflowOperationType;
/**
* @param string
*/
public function setNamespace($namespace)
{
$this->namespace = $namespace;
}
/**
* @return string
*/
public function getNamespace()
{
return $this->namespace;
}
/**
* @param string
*/
public function setOperationAction($operationAction)
{
$this->operationAction = $operationAction;
}
/**
* @return string
*/
public function getOperationAction()
{
return $this->operationAction;
}
/**
* @param string
*/
public function setWorkflowOperationType($workflowOperationType)
{
$this->workflowOperationType = $workflowOperationType;
}
/**
* @return string
*/
public function getWorkflowOperationType()
{
return $this->workflowOperationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkflowOperationMetadata::class, 'Google_Service_CloudSupport_WorkflowOperationMetadata');