Initial commit

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

View File

@@ -0,0 +1,127 @@
<?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\MyBusinessBusinessCalls;
class AggregateMetrics extends \Google\Collection
{
protected $collection_key = 'weekdayMetrics';
/**
* @var int
*/
public $answeredCallsCount;
protected $endDateType = Date::class;
protected $endDateDataType = '';
protected $hourlyMetricsType = HourlyMetrics::class;
protected $hourlyMetricsDataType = 'array';
/**
* @var int
*/
public $missedCallsCount;
protected $startDateType = Date::class;
protected $startDateDataType = '';
protected $weekdayMetricsType = WeekDayMetrics::class;
protected $weekdayMetricsDataType = 'array';
/**
* @param int
*/
public function setAnsweredCallsCount($answeredCallsCount)
{
$this->answeredCallsCount = $answeredCallsCount;
}
/**
* @return int
*/
public function getAnsweredCallsCount()
{
return $this->answeredCallsCount;
}
/**
* @param Date
*/
public function setEndDate(Date $endDate)
{
$this->endDate = $endDate;
}
/**
* @return Date
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* @param HourlyMetrics[]
*/
public function setHourlyMetrics($hourlyMetrics)
{
$this->hourlyMetrics = $hourlyMetrics;
}
/**
* @return HourlyMetrics[]
*/
public function getHourlyMetrics()
{
return $this->hourlyMetrics;
}
/**
* @param int
*/
public function setMissedCallsCount($missedCallsCount)
{
$this->missedCallsCount = $missedCallsCount;
}
/**
* @return int
*/
public function getMissedCallsCount()
{
return $this->missedCallsCount;
}
/**
* @param Date
*/
public function setStartDate(Date $startDate)
{
$this->startDate = $startDate;
}
/**
* @return Date
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* @param WeekDayMetrics[]
*/
public function setWeekdayMetrics($weekdayMetrics)
{
$this->weekdayMetrics = $weekdayMetrics;
}
/**
* @return WeekDayMetrics[]
*/
public function getWeekdayMetrics()
{
return $this->weekdayMetrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregateMetrics::class, 'Google_Service_MyBusinessBusinessCalls_AggregateMetrics');

View File

@@ -0,0 +1,78 @@
<?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\MyBusinessBusinessCalls;
class BusinessCallsInsights extends \Google\Model
{
protected $aggregateMetricsType = AggregateMetrics::class;
protected $aggregateMetricsDataType = '';
/**
* @var string
*/
public $metricType;
/**
* @var string
*/
public $name;
/**
* @param AggregateMetrics
*/
public function setAggregateMetrics(AggregateMetrics $aggregateMetrics)
{
$this->aggregateMetrics = $aggregateMetrics;
}
/**
* @return AggregateMetrics
*/
public function getAggregateMetrics()
{
return $this->aggregateMetrics;
}
/**
* @param string
*/
public function setMetricType($metricType)
{
$this->metricType = $metricType;
}
/**
* @return string
*/
public function getMetricType()
{
return $this->metricType;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BusinessCallsInsights::class, 'Google_Service_MyBusinessBusinessCalls_BusinessCallsInsights');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessCalls;
class BusinessCallsSettings extends \Google\Model
{
/**
* @var string
*/
public $callsState;
/**
* @var string
*/
public $consentTime;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setCallsState($callsState)
{
$this->callsState = $callsState;
}
/**
* @return string
*/
public function getCallsState()
{
return $this->callsState;
}
/**
* @param string
*/
public function setConsentTime($consentTime)
{
$this->consentTime = $consentTime;
}
/**
* @return string
*/
public function getConsentTime()
{
return $this->consentTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BusinessCallsSettings::class, 'Google_Service_MyBusinessBusinessCalls_BusinessCallsSettings');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessCalls;
class Date extends \Google\Model
{
/**
* @var int
*/
public $day;
/**
* @var int
*/
public $month;
/**
* @var int
*/
public $year;
/**
* @param int
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* @param int
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_MyBusinessBusinessCalls_Date');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessCalls;
class HourlyMetrics extends \Google\Model
{
/**
* @var int
*/
public $hour;
/**
* @var int
*/
public $missedCallsCount;
/**
* @param int
*/
public function setHour($hour)
{
$this->hour = $hour;
}
/**
* @return int
*/
public function getHour()
{
return $this->hour;
}
/**
* @param int
*/
public function setMissedCallsCount($missedCallsCount)
{
$this->missedCallsCount = $missedCallsCount;
}
/**
* @return int
*/
public function getMissedCallsCount()
{
return $this->missedCallsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HourlyMetrics::class, 'Google_Service_MyBusinessBusinessCalls_HourlyMetrics');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessCalls;
class ListBusinessCallsInsightsResponse extends \Google\Collection
{
protected $collection_key = 'businessCallsInsights';
protected $businessCallsInsightsType = BusinessCallsInsights::class;
protected $businessCallsInsightsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param BusinessCallsInsights[]
*/
public function setBusinessCallsInsights($businessCallsInsights)
{
$this->businessCallsInsights = $businessCallsInsights;
}
/**
* @return BusinessCallsInsights[]
*/
public function getBusinessCallsInsights()
{
return $this->businessCallsInsights;
}
/**
* @param string
*/
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(ListBusinessCallsInsightsResponse::class, 'Google_Service_MyBusinessBusinessCalls_ListBusinessCallsInsightsResponse');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessCalls\Resource;
use Google\Service\MyBusinessBusinessCalls\BusinessCallsSettings;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinesscallsService = new Google\Service\MyBusinessBusinessCalls(...);
* $locations = $mybusinessbusinesscallsService->locations;
* </code>
*/
class Locations extends \Google\Service\Resource
{
/**
* Returns the Business calls settings resource for the given location.
* (locations.getBusinesscallssettings)
*
* @param string $name Required. The BusinessCallsSettings to get. The `name`
* field is used to identify the business call settings to get. Format:
* locations/{location_id}/businesscallssettings.
* @param array $optParams Optional parameters.
* @return BusinessCallsSettings
*/
public function getBusinesscallssettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getBusinesscallssettings', [$params], BusinessCallsSettings::class);
}
/**
* Updates the Business call settings for the specified location.
* (locations.updateBusinesscallssettings)
*
* @param string $name Required. The resource name of the calls settings.
* Format: locations/{location}/businesscallssettings
* @param BusinessCallsSettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The list of fields to update.
* @return BusinessCallsSettings
*/
public function updateBusinesscallssettings($name, BusinessCallsSettings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateBusinesscallssettings', [$params], BusinessCallsSettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locations::class, 'Google_Service_MyBusinessBusinessCalls_Resource_Locations');

View File

@@ -0,0 +1,74 @@
<?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\MyBusinessBusinessCalls\Resource;
use Google\Service\MyBusinessBusinessCalls\ListBusinessCallsInsightsResponse;
/**
* The "businesscallsinsights" collection of methods.
* Typical usage is:
* <code>
* $mybusinessbusinesscallsService = new Google\Service\MyBusinessBusinessCalls(...);
* $businesscallsinsights = $mybusinessbusinesscallsService->locations_businesscallsinsights;
* </code>
*/
class LocationsBusinesscallsinsights extends \Google\Service\Resource
{
/**
* Returns insights for Business calls for a location.
* (businesscallsinsights.listLocationsBusinesscallsinsights)
*
* @param string $parent Required. The parent location to fetch calls insights
* for. Format: locations/{location_id}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter constraining the calls insights
* to return. The response includes only entries that match the filter. If the
* MetricType is not provided, AGGREGATE_COUNT is returned. If no end_date is
* provided, the last date for which data is available is used. If no start_date
* is provided, we will default to the first date for which data is available,
* which is currently 6 months. If start_date is before the date when data is
* available, data is returned starting from the date when it is available. At
* this time we support following filters. 1. start_date="DATE" where date is in
* YYYY-MM-DD format. 2. end_date="DATE" where date is in YYYY-MM-DD format. 3.
* metric_type=XYZ where XYZ is a valid MetricType. 4. Conjunctions(AND) of all
* of the above. e.g., "start_date=2021-08-01 AND end_date=2021-08-10 AND
* metric_type=AGGREGATE_COUNT" The AGGREGATE_COUNT metric_type ignores the DD
* part of the date.
* @opt_param int pageSize Optional. The maximum number of BusinessCallsInsights
* to return. If unspecified, at most 20 will be returned. Some of the
* metric_types(e.g, AGGREGATE_COUNT) returns a single page. For these metrics,
* the page_size is ignored.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListBusinessCallsInsights` call. Provide this to retrieve the subsequent
* page. When paginating, all other parameters provided to
* `ListBusinessCallsInsights` must match the call that provided the page token.
* Some of the metric_types (e.g, AGGREGATE_COUNT) returns a single page. For
* these metrics, the pake_token is ignored.
* @return ListBusinessCallsInsightsResponse
*/
public function listLocationsBusinesscallsinsights($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBusinessCallsInsightsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsBusinesscallsinsights::class, 'Google_Service_MyBusinessBusinessCalls_Resource_LocationsBusinesscallsinsights');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessBusinessCalls;
class WeekDayMetrics extends \Google\Model
{
/**
* @var string
*/
public $day;
/**
* @var int
*/
public $missedCallsCount;
/**
* @param string
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return string
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setMissedCallsCount($missedCallsCount)
{
$this->missedCallsCount = $missedCallsCount;
}
/**
* @return int
*/
public function getMissedCallsCount()
{
return $this->missedCallsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WeekDayMetrics::class, 'Google_Service_MyBusinessBusinessCalls_WeekDayMetrics');