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,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessPlaceActions;
class AvailableDay extends \Google\Model
{
protected $fulfillmentDateType = Date::class;
protected $fulfillmentDateDataType = '';
/**
* @var string
*/
public $lastOrderingTime;
/**
* @param Date
*/
public function setFulfillmentDate(Date $fulfillmentDate)
{
$this->fulfillmentDate = $fulfillmentDate;
}
/**
* @return Date
*/
public function getFulfillmentDate()
{
return $this->fulfillmentDate;
}
/**
* @param string
*/
public function setLastOrderingTime($lastOrderingTime)
{
$this->lastOrderingTime = $lastOrderingTime;
}
/**
* @return string
*/
public function getLastOrderingTime()
{
return $this->lastOrderingTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AvailableDay::class, 'Google_Service_MyBusinessPlaceActions_AvailableDay');

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\MyBusinessPlaceActions;
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_MyBusinessPlaceActions_Date');

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\MyBusinessPlaceActions;
class FeeDetails extends \Google\Model
{
protected $baseFeeType = MinimumFee::class;
protected $baseFeeDataType = '';
protected $fixedFeeType = FixedFee::class;
protected $fixedFeeDataType = '';
protected $noFeeType = NoFee::class;
protected $noFeeDataType = '';
/**
* @param MinimumFee
*/
public function setBaseFee(MinimumFee $baseFee)
{
$this->baseFee = $baseFee;
}
/**
* @return MinimumFee
*/
public function getBaseFee()
{
return $this->baseFee;
}
/**
* @param FixedFee
*/
public function setFixedFee(FixedFee $fixedFee)
{
$this->fixedFee = $fixedFee;
}
/**
* @return FixedFee
*/
public function getFixedFee()
{
return $this->fixedFee;
}
/**
* @param NoFee
*/
public function setNoFee(NoFee $noFee)
{
$this->noFee = $noFee;
}
/**
* @return NoFee
*/
public function getNoFee()
{
return $this->noFee;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FeeDetails::class, 'Google_Service_MyBusinessPlaceActions_FeeDetails');

View File

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

View File

@@ -0,0 +1,93 @@
<?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\MyBusinessPlaceActions;
class FulfillmentOption extends \Google\Collection
{
protected $collection_key = 'availableDay';
protected $availableDayType = AvailableDay::class;
protected $availableDayDataType = 'array';
protected $feeDetailsType = FeeDetails::class;
protected $feeDetailsDataType = '';
/**
* @var string
*/
public $fulfillmentType;
protected $minimumOrderType = Money::class;
protected $minimumOrderDataType = '';
/**
* @param AvailableDay[]
*/
public function setAvailableDay($availableDay)
{
$this->availableDay = $availableDay;
}
/**
* @return AvailableDay[]
*/
public function getAvailableDay()
{
return $this->availableDay;
}
/**
* @param FeeDetails
*/
public function setFeeDetails(FeeDetails $feeDetails)
{
$this->feeDetails = $feeDetails;
}
/**
* @return FeeDetails
*/
public function getFeeDetails()
{
return $this->feeDetails;
}
/**
* @param string
*/
public function setFulfillmentType($fulfillmentType)
{
$this->fulfillmentType = $fulfillmentType;
}
/**
* @return string
*/
public function getFulfillmentType()
{
return $this->fulfillmentType;
}
/**
* @param Money
*/
public function setMinimumOrder(Money $minimumOrder)
{
$this->minimumOrder = $minimumOrder;
}
/**
* @return Money
*/
public function getMinimumOrder()
{
return $this->minimumOrder;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FulfillmentOption::class, 'Google_Service_MyBusinessPlaceActions_FulfillmentOption');

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\MyBusinessPlaceActions;
class ListPlaceActionLinksResponse extends \Google\Collection
{
protected $collection_key = 'placeActionLinks';
/**
* @var string
*/
public $nextPageToken;
protected $placeActionLinksType = PlaceActionLink::class;
protected $placeActionLinksDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PlaceActionLink[]
*/
public function setPlaceActionLinks($placeActionLinks)
{
$this->placeActionLinks = $placeActionLinks;
}
/**
* @return PlaceActionLink[]
*/
public function getPlaceActionLinks()
{
return $this->placeActionLinks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPlaceActionLinksResponse::class, 'Google_Service_MyBusinessPlaceActions_ListPlaceActionLinksResponse');

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\MyBusinessPlaceActions;
class ListPlaceActionTypeMetadataResponse extends \Google\Collection
{
protected $collection_key = 'placeActionTypeMetadata';
/**
* @var string
*/
public $nextPageToken;
protected $placeActionTypeMetadataType = PlaceActionTypeMetadata::class;
protected $placeActionTypeMetadataDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PlaceActionTypeMetadata[]
*/
public function setPlaceActionTypeMetadata($placeActionTypeMetadata)
{
$this->placeActionTypeMetadata = $placeActionTypeMetadata;
}
/**
* @return PlaceActionTypeMetadata[]
*/
public function getPlaceActionTypeMetadata()
{
return $this->placeActionTypeMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPlaceActionTypeMetadataResponse::class, 'Google_Service_MyBusinessPlaceActions_ListPlaceActionTypeMetadataResponse');

View File

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

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\MyBusinessPlaceActions;
class Money extends \Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var int
*/
public $nanos;
/**
* @var string
*/
public $units;
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param int
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* @param string
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Money::class, 'Google_Service_MyBusinessPlaceActions_Money');

View File

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

View File

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

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\MyBusinessPlaceActions;
class OrderOnlineMetadata extends \Google\Collection
{
protected $collection_key = 'fulfillmentOption';
protected $fulfillmentOptionType = FulfillmentOption::class;
protected $fulfillmentOptionDataType = 'array';
/**
* @param FulfillmentOption[]
*/
public function setFulfillmentOption($fulfillmentOption)
{
$this->fulfillmentOption = $fulfillmentOption;
}
/**
* @return FulfillmentOption[]
*/
public function getFulfillmentOption()
{
return $this->fulfillmentOption;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrderOnlineMetadata::class, 'Google_Service_MyBusinessPlaceActions_OrderOnlineMetadata');

View File

@@ -0,0 +1,170 @@
<?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\MyBusinessPlaceActions;
class PlaceActionLink extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var bool
*/
public $isEditable;
/**
* @var bool
*/
public $isPreferred;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $placeActionType;
/**
* @var string
*/
public $providerType;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param bool
*/
public function setIsEditable($isEditable)
{
$this->isEditable = $isEditable;
}
/**
* @return bool
*/
public function getIsEditable()
{
return $this->isEditable;
}
/**
* @param bool
*/
public function setIsPreferred($isPreferred)
{
$this->isPreferred = $isPreferred;
}
/**
* @return bool
*/
public function getIsPreferred()
{
return $this->isPreferred;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPlaceActionType($placeActionType)
{
$this->placeActionType = $placeActionType;
}
/**
* @return string
*/
public function getPlaceActionType()
{
return $this->placeActionType;
}
/**
* @param string
*/
public function setProviderType($providerType)
{
$this->providerType = $providerType;
}
/**
* @return string
*/
public function getProviderType()
{
return $this->providerType;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlaceActionLink::class, 'Google_Service_MyBusinessPlaceActions_PlaceActionLink');

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\MyBusinessPlaceActions;
class PlaceActionTypeMetadata extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $placeActionType;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setPlaceActionType($placeActionType)
{
$this->placeActionType = $placeActionType;
}
/**
* @return string
*/
public function getPlaceActionType()
{
return $this->placeActionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlaceActionTypeMetadata::class, 'Google_Service_MyBusinessPlaceActions_PlaceActionTypeMetadata');

View File

@@ -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\MyBusinessPlaceActions\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $mybusinessplaceactionsService = new Google\Service\MyBusinessPlaceActions(...);
* $locations = $mybusinessplaceactionsService->locations;
* </code>
*/
class Locations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locations::class, 'Google_Service_MyBusinessPlaceActions_Resource_Locations');

View File

@@ -0,0 +1,138 @@
<?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\MyBusinessPlaceActions\Resource;
use Google\Service\MyBusinessPlaceActions\ListPlaceActionLinksResponse;
use Google\Service\MyBusinessPlaceActions\MybusinessplaceactionsEmpty;
use Google\Service\MyBusinessPlaceActions\PlaceActionLink;
/**
* The "placeActionLinks" collection of methods.
* Typical usage is:
* <code>
* $mybusinessplaceactionsService = new Google\Service\MyBusinessPlaceActions(...);
* $placeActionLinks = $mybusinessplaceactionsService->locations_placeActionLinks;
* </code>
*/
class LocationsPlaceActionLinks extends \Google\Service\Resource
{
/**
* Creates a place action link associated with the specified location, and
* returns it. The request is considered duplicate if the `parent`,
* `place_action_link.uri` and `place_action_link.place_action_type` are the
* same as a previous request. (placeActionLinks.create)
*
* @param string $parent Required. The resource name of the location where to
* create this place action link. `locations/{location_id}`.
* @param PlaceActionLink $postBody
* @param array $optParams Optional parameters.
* @return PlaceActionLink
* @throws \Google\Service\Exception
*/
public function create($parent, PlaceActionLink $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], PlaceActionLink::class);
}
/**
* Deletes a place action link from the specified location.
* (placeActionLinks.delete)
*
* @param string $name Required. The resource name of the place action link to
* remove from the location.
* @param array $optParams Optional parameters.
* @return MybusinessplaceactionsEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MybusinessplaceactionsEmpty::class);
}
/**
* Gets the specified place action link. (placeActionLinks.get)
*
* @param string $name Required. The name of the place action link to fetch.
* @param array $optParams Optional parameters.
* @return PlaceActionLink
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PlaceActionLink::class);
}
/**
* Lists the place action links for the specified location.
* (placeActionLinks.listLocationsPlaceActionLinks)
*
* @param string $parent Required. The name of the location whose place action
* links will be listed. `locations/{location_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter constraining the place action
* links to return. The response includes entries that match the filter. We
* support only the following filter: 1. place_action_type=XYZ where XYZ is a
* valid PlaceActionType.
* @opt_param int pageSize Optional. How many place action links to return per
* page. Default of 10. The minimum is 1.
* @opt_param string pageToken Optional. If specified, returns the next page of
* place action links.
* @return ListPlaceActionLinksResponse
* @throws \Google\Service\Exception
*/
public function listLocationsPlaceActionLinks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPlaceActionLinksResponse::class);
}
/**
* Updates the specified place action link and returns it.
* (placeActionLinks.patch)
*
* @param string $name Optional. The resource name, in the format
* `locations/{location_id}/placeActionLinks/{place_action_link_id}`. The name
* field will only be considered in UpdatePlaceActionLink and
* DeletePlaceActionLink requests for updating and deleting links respectively.
* However, it will be ignored in CreatePlaceActionLink request, where
* `place_action_link_id` will be assigned by the server on successful creation
* of a new link and returned as part of the response.
* @param PlaceActionLink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The specific fields to update. The
* only editable fields are `uri`, `place_action_type` and `is_preferred`. If
* the updated link already exists at the same location with the same
* `place_action_type` and `uri`, fails with an `ALREADY_EXISTS` error.
* @return PlaceActionLink
* @throws \Google\Service\Exception
*/
public function patch($name, PlaceActionLink $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], PlaceActionLink::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsPlaceActionLinks::class, 'Google_Service_MyBusinessPlaceActions_Resource_LocationsPlaceActionLinks');

View File

@@ -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\MyBusinessPlaceActions\Resource;
use Google\Service\MyBusinessPlaceActions\ListPlaceActionTypeMetadataResponse;
/**
* The "placeActionTypeMetadata" collection of methods.
* Typical usage is:
* <code>
* $mybusinessplaceactionsService = new Google\Service\MyBusinessPlaceActions(...);
* $placeActionTypeMetadata = $mybusinessplaceactionsService->placeActionTypeMetadata;
* </code>
*/
class PlaceActionTypeMetadata extends \Google\Service\Resource
{
/**
* Returns the list of available place action types for a location or country.
* (placeActionTypeMetadata.listPlaceActionTypeMetadata)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter constraining the place action
* types to return metadata for. The response includes entries that match the
* filter. We support only the following filters: 1. location=XYZ where XYZ is a
* string indicating the resource name of a location, in the format
* `locations/{location_id}`. 2. region_code=XYZ where XYZ is a Unicode CLDR
* region code to find available action types. If no filter is provided, all
* place action types are returned.
* @opt_param string languageCode Optional. The IETF BCP-47 code of language to
* get display names in. If this language is not available, they will be
* provided in English.
* @opt_param int pageSize Optional. How many action types to include per page.
* Default is 10, minimum is 1.
* @opt_param string pageToken Optional. If specified, the next page of place
* action type metadata is retrieved. The `pageToken` is returned when a call to
* `placeActionTypeMetadata.list` returns more results than can fit into the
* requested page size.
* @return ListPlaceActionTypeMetadataResponse
* @throws \Google\Service\Exception
*/
public function listPlaceActionTypeMetadata($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPlaceActionTypeMetadataResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlaceActionTypeMetadata::class, 'Google_Service_MyBusinessPlaceActions_Resource_PlaceActionTypeMetadata');