From af1454fed212f69d056c8f9e5369335222fc10f9 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:02:18 -0800 Subject: [PATCH] Regenerate contactcenterinsights client (#6038) Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-php-client-services/actions/workflows/codegen.yaml --- src/Contactcenterinsights.php | 12 +- ...actcenterinsightsV1CreateIssueMetadata.php | 1 - ...tactcenterinsightsV1CreateIssueRequest.php | 1 - ...terinsightsV1alpha1CreateIssueMetadata.php | 78 ++++++++++ ...nterinsightsV1alpha1CreateIssueRequest.php | 60 ++++++++ ...loudContactcenterinsightsV1alpha1Issue.php | 135 ++++++++++++++++++ .../ProjectsLocationsIssueModelsIssues.php | 16 +++ 7 files changed, 300 insertions(+), 3 deletions(-) create mode 100644 src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.php create mode 100644 src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.php create mode 100644 src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1Issue.php diff --git a/src/Contactcenterinsights.php b/src/Contactcenterinsights.php index cd3d4595f5..9fc0547114 100644 --- a/src/Contactcenterinsights.php +++ b/src/Contactcenterinsights.php @@ -739,7 +739,17 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'issues', [ 'methods' => [ - 'delete' => [ + 'create' => [ + 'path' => 'v1/{+parent}/issues', + 'httpMethod' => 'POST', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ diff --git a/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.php b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.php index 8cfb67070d..b2d37f47ce 100644 --- a/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.php +++ b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.php @@ -29,7 +29,6 @@ class GoogleCloudContactcenterinsightsV1CreateIssueMetadata extends \Google\Mode public $endTime; protected $requestType = GoogleCloudContactcenterinsightsV1CreateIssueRequest::class; protected $requestDataType = ''; - public $request; /** * @param string diff --git a/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueRequest.php b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueRequest.php index 6a91344d46..fcdf19d589 100644 --- a/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueRequest.php +++ b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1CreateIssueRequest.php @@ -21,7 +21,6 @@ class GoogleCloudContactcenterinsightsV1CreateIssueRequest extends \Google\Model { protected $issueType = GoogleCloudContactcenterinsightsV1Issue::class; protected $issueDataType = ''; - public $issue; /** * @var string */ diff --git a/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.php b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.php new file mode 100644 index 0000000000..7507377db2 --- /dev/null +++ b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.php @@ -0,0 +1,78 @@ +createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param string + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + /** + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + /** + * @param GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest + */ + public function setRequest(GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest $request) + { + $this->request = $request; + } + /** + * @return GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest + */ + public function getRequest() + { + return $this->request; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata'); diff --git a/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.php b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.php new file mode 100644 index 0000000000..bfe9462107 --- /dev/null +++ b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.php @@ -0,0 +1,60 @@ +issue = $issue; + } + /** + * @return GoogleCloudContactcenterinsightsV1alpha1Issue + */ + public function getIssue() + { + return $this->issue; + } + /** + * @param string + */ + public function setParent($parent) + { + $this->parent = $parent; + } + /** + * @return string + */ + public function getParent() + { + return $this->parent; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest'); diff --git a/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1Issue.php b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1Issue.php new file mode 100644 index 0000000000..a4253827e9 --- /dev/null +++ b/src/Contactcenterinsights/GoogleCloudContactcenterinsightsV1alpha1Issue.php @@ -0,0 +1,135 @@ +createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param string + */ + public function setDisplayDescription($displayDescription) + { + $this->displayDescription = $displayDescription; + } + /** + * @return string + */ + public function getDisplayDescription() + { + return $this->displayDescription; + } + /** + * @param string + */ + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * @param string[] + */ + public function setSampleUtterances($sampleUtterances) + { + $this->sampleUtterances = $sampleUtterances; + } + /** + * @return string[] + */ + public function getSampleUtterances() + { + return $this->sampleUtterances; + } + /** + * @param string + */ + 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(GoogleCloudContactcenterinsightsV1alpha1Issue::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1alpha1Issue'); diff --git a/src/Contactcenterinsights/Resource/ProjectsLocationsIssueModelsIssues.php b/src/Contactcenterinsights/Resource/ProjectsLocationsIssueModelsIssues.php index d5d7eb1a2c..99d1dc20bb 100644 --- a/src/Contactcenterinsights/Resource/ProjectsLocationsIssueModelsIssues.php +++ b/src/Contactcenterinsights/Resource/ProjectsLocationsIssueModelsIssues.php @@ -19,6 +19,7 @@ use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1Issue; use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ListIssuesResponse; +use Google\Service\Contactcenterinsights\GoogleLongrunningOperation; use Google\Service\Contactcenterinsights\GoogleProtobufEmpty; /** @@ -31,6 +32,21 @@ */ class ProjectsLocationsIssueModelsIssues extends \Google\Service\Resource { + /** + * Creates an issue. (issues.create) + * + * @param string $parent Required. The parent resource of the issue. + * @param GoogleCloudContactcenterinsightsV1Issue $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function create($parent, GoogleCloudContactcenterinsightsV1Issue $postBody, $optParams = []) + { + $params = ['parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('create', [$params], GoogleLongrunningOperation::class); + } /** * Deletes an issue. (issues.delete) *