Skip to content

Commit

Permalink
Regenerate contactcenterinsights client (#5942)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Dec 8, 2024
1 parent 28d6c1b commit e14a3b8
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 67 deletions.
6 changes: 3 additions & 3 deletions src/Contactcenterinsights.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Contactcenterinsights extends \Google\Service

public $projects_locations;
public $projects_locations_analysisRules;
public $projects_locations_authorizedViewSet_authorizedView;
public $projects_locations_authorizedViewSets_authorizedViews;
public $projects_locations_conversations;
public $projects_locations_conversations_analyses;
public $projects_locations_conversations_feedbackLabels;
Expand Down Expand Up @@ -242,10 +242,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
]
]
);
$this->projects_locations_authorizedViewSet_authorizedView = new Contactcenterinsights\Resource\ProjectsLocationsAuthorizedViewSetAuthorizedView(
$this->projects_locations_authorizedViewSets_authorizedViews = new Contactcenterinsights\Resource\ProjectsLocationsAuthorizedViewSetsAuthorizedViews(
$this,
$this->serviceName,
'authorizedView',
'authorizedViews',
[
'methods' => [
'calculateStats' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@

namespace Google\Service\Contactcenterinsights;

class GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo extends \Google\Model
class GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo extends \Google\Collection
{
protected $collection_key = 'teams';
/**
* @var string
*/
Expand All @@ -35,10 +36,18 @@ class GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo ext
* @var string
*/
public $dispositionCode;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $team;
/**
* @var string[]
*/
public $teams;

/**
* @param string
Expand Down Expand Up @@ -96,6 +105,20 @@ public function getDispositionCode()
{
return $this->dispositionCode;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
Expand All @@ -110,6 +133,20 @@ public function getTeam()
{
return $this->team;
}
/**
* @param string[]
*/
public function setTeams($teams)
{
$this->teams = $teams;
}
/**
* @return string[]
*/
public function getTeams()
{
return $this->teams;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@

namespace Google\Service\Contactcenterinsights;

class GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo extends \Google\Model
class GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo extends \Google\Collection
{
protected $collection_key = 'teams';
/**
* @var string
*/
Expand All @@ -35,10 +36,18 @@ class GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentIn
* @var string
*/
public $dispositionCode;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $team;
/**
* @var string[]
*/
public $teams;

/**
* @param string
Expand Down Expand Up @@ -96,6 +105,20 @@ public function getDispositionCode()
{
return $this->dispositionCode;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
Expand All @@ -110,6 +133,20 @@ public function getTeam()
{
return $this->team;
}
/**
* @param string[]
*/
public function setTeams($teams)
{
$this->teams = $teams;
}
/**
* @return string[]
*/
public function getTeams()
{
return $this->teams;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@

namespace Google\Service\Contactcenterinsights\Resource;

use Google\Service\Contactcenterinsights\GoogleIamV1Policy;
use Google\Service\Contactcenterinsights\GoogleIamV1SetIamPolicyRequest;
use Google\Service\Contactcenterinsights\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\Contactcenterinsights\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1CalculateStatsResponse;
use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1QueryMetricsRequest;
use Google\Service\Contactcenterinsights\GoogleLongrunningOperation;

/**
* The "authorizedViews" collection of methods.
Expand All @@ -33,79 +32,38 @@
class ProjectsLocationsAuthorizedViewSetsAuthorizedViews extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (authorizedViews.getIamPolicy)
* Gets conversation statistics. (authorizedViews.calculateStats)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param string $location Required. The location of the conversations.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return GoogleIamV1Policy
* @opt_param string filter A filter to reduce results to a specific subset.
* This field is useful for getting statistics about conversations with specific
* properties.
* @return GoogleCloudContactcenterinsightsV1CalculateStatsResponse
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
public function calculateStats($location, $optParams = [])
{
$params = ['resource' => $resource];
$params = ['location' => $location];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
return $this->call('calculateStats', [$params], GoogleCloudContactcenterinsightsV1CalculateStatsResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (authorizedViews.setIamPolicy)
* Query metrics. (authorizedViews.queryMetrics)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GoogleIamV1SetIamPolicyRequest $postBody
* @param string $location Required. The location of the data.
* "projects/{project}/locations/{location}"
* @param GoogleCloudContactcenterinsightsV1QueryMetricsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
public function queryMetrics($location, GoogleCloudContactcenterinsightsV1QueryMetricsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = ['location' => $location, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (authorizedViews.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
return $this->call('queryMetrics', [$params], GoogleLongrunningOperation::class);
}
}

Expand Down

0 comments on commit e14a3b8

Please sign in to comment.