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
+253
View File
@@ -0,0 +1,253 @@
<?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\Css;
class Account extends \Google\Collection
{
/**
* Unknown account type.
*/
public const ACCOUNT_TYPE_ACCOUNT_TYPE_UNSPECIFIED = 'ACCOUNT_TYPE_UNSPECIFIED';
/**
* CSS group account.
*/
public const ACCOUNT_TYPE_CSS_GROUP = 'CSS_GROUP';
/**
* CSS domain account.
*/
public const ACCOUNT_TYPE_CSS_DOMAIN = 'CSS_DOMAIN';
/**
* MC Primary CSS MCA account.
*/
public const ACCOUNT_TYPE_MC_PRIMARY_CSS_MCA = 'MC_PRIMARY_CSS_MCA';
/**
* MC CSS MCA account.
*/
public const ACCOUNT_TYPE_MC_CSS_MCA = 'MC_CSS_MCA';
/**
* MC Marketplace MCA account.
*/
public const ACCOUNT_TYPE_MC_MARKETPLACE_MCA = 'MC_MARKETPLACE_MCA';
/**
* MC Other MCA account.
*/
public const ACCOUNT_TYPE_MC_OTHER_MCA = 'MC_OTHER_MCA';
/**
* MC Standalone account.
*/
public const ACCOUNT_TYPE_MC_STANDALONE = 'MC_STANDALONE';
/**
* MC MCA sub-account.
*/
public const ACCOUNT_TYPE_MC_MCA_SUBACCOUNT = 'MC_MCA_SUBACCOUNT';
protected $collection_key = 'labelIds';
/**
* Output only. The type of this account.
*
* @var string
*/
public $accountType;
/**
* Automatically created label IDs assigned to the MC account by CSS Center.
*
* @var string[]
*/
public $automaticLabelIds;
/**
* The CSS/MC account's short display name.
*
* @var string
*/
public $displayName;
/**
* Output only. Immutable. The CSS/MC account's full name.
*
* @var string
*/
public $fullName;
/**
* Output only. Immutable. The CSS/MC account's homepage.
*
* @var string
*/
public $homepageUri;
/**
* Manually created label IDs assigned to the CSS/MC account by a CSS parent
* account.
*
* @var string[]
*/
public $labelIds;
/**
* The label resource name. Format: accounts/{account}
*
* @var string
*/
public $name;
/**
* The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain
* for MC accounts. Returned only if the user has access to the parent
* account. Note: For MC sub-accounts, this is also the CSS domain that is the
* parent resource of the MCA account, since we are effectively flattening the
* hierarchy."
*
* @var string
*/
public $parent;
/**
* Output only. The type of this account.
*
* Accepted values: ACCOUNT_TYPE_UNSPECIFIED, CSS_GROUP, CSS_DOMAIN,
* MC_PRIMARY_CSS_MCA, MC_CSS_MCA, MC_MARKETPLACE_MCA, MC_OTHER_MCA,
* MC_STANDALONE, MC_MCA_SUBACCOUNT
*
* @param self::ACCOUNT_TYPE_* $accountType
*/
public function setAccountType($accountType)
{
$this->accountType = $accountType;
}
/**
* @return self::ACCOUNT_TYPE_*
*/
public function getAccountType()
{
return $this->accountType;
}
/**
* Automatically created label IDs assigned to the MC account by CSS Center.
*
* @param string[] $automaticLabelIds
*/
public function setAutomaticLabelIds($automaticLabelIds)
{
$this->automaticLabelIds = $automaticLabelIds;
}
/**
* @return string[]
*/
public function getAutomaticLabelIds()
{
return $this->automaticLabelIds;
}
/**
* The CSS/MC account's short display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. Immutable. The CSS/MC account's full name.
*
* @param string $fullName
*/
public function setFullName($fullName)
{
$this->fullName = $fullName;
}
/**
* @return string
*/
public function getFullName()
{
return $this->fullName;
}
/**
* Output only. Immutable. The CSS/MC account's homepage.
*
* @param string $homepageUri
*/
public function setHomepageUri($homepageUri)
{
$this->homepageUri = $homepageUri;
}
/**
* @return string
*/
public function getHomepageUri()
{
return $this->homepageUri;
}
/**
* Manually created label IDs assigned to the CSS/MC account by a CSS parent
* account.
*
* @param string[] $labelIds
*/
public function setLabelIds($labelIds)
{
$this->labelIds = $labelIds;
}
/**
* @return string[]
*/
public function getLabelIds()
{
return $this->labelIds;
}
/**
* The label resource name. Format: accounts/{account}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain
* for MC accounts. Returned only if the user has access to the parent
* account. Note: For MC sub-accounts, this is also the CSS domain that is the
* parent resource of the MCA account, since we are effectively flattening the
* hierarchy."
*
* @param string $parent
*/
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(Account::class, 'Google_Service_Css_Account');
@@ -0,0 +1,174 @@
<?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\Css;
class AccountLabel extends \Google\Model
{
/**
* Unknown label type.
*/
public const LABEL_TYPE_LABEL_TYPE_UNSPECIFIED = 'LABEL_TYPE_UNSPECIFIED';
/**
* Indicates that the label was created manually.
*/
public const LABEL_TYPE_MANUAL = 'MANUAL';
/**
* Indicates that the label was created automatically by CSS Center.
*/
public const LABEL_TYPE_AUTOMATIC = 'AUTOMATIC';
/**
* Output only. The ID of account this label belongs to.
*
* @var string
*/
public $accountId;
/**
* The description of this label.
*
* @var string
*/
public $description;
/**
* The display name of this label.
*
* @var string
*/
public $displayName;
/**
* Output only. The ID of the label.
*
* @var string
*/
public $labelId;
/**
* Output only. The type of this label.
*
* @var string
*/
public $labelType;
/**
* Identifier. The resource name of the label. Format:
* accounts/{account}/labels/{label}
*
* @var string
*/
public $name;
/**
* Output only. The ID of account this label belongs to.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* The description of this label.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The display name of this label.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. The ID of the label.
*
* @param string $labelId
*/
public function setLabelId($labelId)
{
$this->labelId = $labelId;
}
/**
* @return string
*/
public function getLabelId()
{
return $this->labelId;
}
/**
* Output only. The type of this label.
*
* Accepted values: LABEL_TYPE_UNSPECIFIED, MANUAL, AUTOMATIC
*
* @param self::LABEL_TYPE_* $labelType
*/
public function setLabelType($labelType)
{
$this->labelType = $labelType;
}
/**
* @return self::LABEL_TYPE_*
*/
public function getLabelType()
{
return $this->labelType;
}
/**
* Identifier. The resource name of the label. Format:
* accounts/{account}/labels/{label}
*
* @param string $name
*/
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(AccountLabel::class, 'Google_Service_Css_AccountLabel');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,104 @@
<?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\Css;
class Certification extends \Google\Model
{
/**
* The authority or certification body responsible for issuing the
* certification. At this time, the most common value is "EC" or
* “European_Commission” for energy labels in the EU.
*
* @var string
*/
public $authority;
/**
* The code of the certification. For example, for the EPREL certificate with
* the link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456
* the code is 123456. The code is required for European Energy Labels.
*
* @var string
*/
public $code;
/**
* The name of the certification. At this time, the most common value is
* "EPREL", which represents energy efficiency certifications in the EU
* European Registry for Energy Labeling (EPREL) database.
*
* @var string
*/
public $name;
/**
* The authority or certification body responsible for issuing the
* certification. At this time, the most common value is "EC" or
* “European_Commission” for energy labels in the EU.
*
* @param string $authority
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* The code of the certification. For example, for the EPREL certificate with
* the link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456
* the code is 123456. The code is required for European Energy Labels.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* The name of the certification. At this time, the most common value is
* "EPREL", which represents energy efficiency certifications in the EU
* European Registry for Energy Labeling (EPREL) database.
*
* @param string $name
*/
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(Certification::class, 'Google_Service_Css_Certification');
+25
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\Css;
class CssEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CssEmpty::class, 'Google_Service_Css_CssEmpty');
+180
View File
@@ -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\Css;
class CssProduct extends \Google\Collection
{
protected $collection_key = 'customAttributes';
protected $attributesType = Attributes::class;
protected $attributesDataType = '';
/**
* Output only. The two-letter [ISO
* 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
* product.
*
* @var string
*/
public $contentLanguage;
protected $cssProductStatusType = CssProductStatus::class;
protected $cssProductStatusDataType = '';
protected $customAttributesType = CustomAttribute::class;
protected $customAttributesDataType = 'array';
/**
* Output only. The feed label for the product.
*
* @var string
*/
public $feedLabel;
/**
* The name of the CSS Product. Format:
* `"accounts/{account}/cssProducts/{css_product}"`
*
* @var string
*/
public $name;
/**
* Output only. Your unique raw identifier for the product.
*
* @var string
*/
public $rawProvidedId;
/**
* Output only. A list of product attributes.
*
* @param Attributes $attributes
*/
public function setAttributes(Attributes $attributes)
{
$this->attributes = $attributes;
}
/**
* @return Attributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Output only. The two-letter [ISO
* 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
* product.
*
* @param string $contentLanguage
*/
public function setContentLanguage($contentLanguage)
{
$this->contentLanguage = $contentLanguage;
}
/**
* @return string
*/
public function getContentLanguage()
{
return $this->contentLanguage;
}
/**
* Output only. The status of a product, data validation issues, that is,
* information about a product computed asynchronously.
*
* @param CssProductStatus $cssProductStatus
*/
public function setCssProductStatus(CssProductStatus $cssProductStatus)
{
$this->cssProductStatus = $cssProductStatus;
}
/**
* @return CssProductStatus
*/
public function getCssProductStatus()
{
return $this->cssProductStatus;
}
/**
* Output only. A list of custom (CSS-provided) attributes. It can also be
* used to submit any attribute of the feed specification in its generic form
* (for example, `{ "name": "size type", "value": "regular" }`). This is
* useful for submitting attributes not explicitly exposed by the API, such as
* additional attributes used for Buy on Google.
*
* @param CustomAttribute[] $customAttributes
*/
public function setCustomAttributes($customAttributes)
{
$this->customAttributes = $customAttributes;
}
/**
* @return CustomAttribute[]
*/
public function getCustomAttributes()
{
return $this->customAttributes;
}
/**
* Output only. The feed label for the product.
*
* @param string $feedLabel
*/
public function setFeedLabel($feedLabel)
{
$this->feedLabel = $feedLabel;
}
/**
* @return string
*/
public function getFeedLabel()
{
return $this->feedLabel;
}
/**
* The name of the CSS Product. Format:
* `"accounts/{account}/cssProducts/{css_product}"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Your unique raw identifier for the product.
*
* @param string $rawProvidedId
*/
public function setRawProvidedId($rawProvidedId)
{
$this->rawProvidedId = $rawProvidedId;
}
/**
* @return string
*/
public function getRawProvidedId()
{
return $this->rawProvidedId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CssProduct::class, 'Google_Service_Css_CssProduct');
@@ -0,0 +1,248 @@
<?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\Css;
class CssProductInput extends \Google\Collection
{
protected $collection_key = 'customAttributes';
protected $attributesType = Attributes::class;
protected $attributesDataType = '';
/**
* Required. The two-letter [ISO
* 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the CSS
* Product.
*
* @var string
*/
public $contentLanguage;
protected $customAttributesType = CustomAttribute::class;
protected $customAttributesDataType = 'array';
/**
* Required. The [feed label](https://developers.google.com/shopping-
* content/guides/products/feed-labels) for the CSS Product. Feed Label is
* synonymous to "target country" and hence should always be a valid region
* code. For example: 'DE' for Germany, 'FR' for France.
*
* @var string
*/
public $feedLabel;
/**
* Output only. The name of the processed CSS Product. Format:
* `accounts/{account}/cssProducts/{css_product}` "
*
* @var string
*/
public $finalName;
/**
* DEPRECATED. Use expiration_date instead. Represents the existing version
* (freshness) of the CSS Product, which can be used to preserve the right
* order when multiple updates are done at the same time. This field must not
* be set to the future time. If set, the update is prevented if a newer
* version of the item already exists in our system (that is the last update
* time of the existing CSS products is later than the freshness time set in
* the update). If the update happens, the last update time is then set to
* this freshness time. If not set, the update will not be prevented and the
* last update time will default to when this request was received by the CSS
* API. If the operation is prevented, the aborted exception will be thrown.
*
* @deprecated
* @var string
*/
public $freshnessTime;
/**
* Identifier. The name of the CSS Product input. Format:
* `accounts/{account}/cssProductInputs/{css_product_input}`, where the last
* section `css_product_input` consists of 3 parts:
* contentLanguage~feedLabel~offerId. Example:
* accounts/123/cssProductInputs/de~DE~rawProvidedId123
*
* @var string
*/
public $name;
/**
* Required. Your unique identifier for the CSS Product. This is the same for
* the CSS Product input and processed CSS Product. We only allow ids with
* alphanumerics, underscores and dashes. See the [products feed
* specification](https://support.google.com/merchants/answer/188494#id) for
* details.
*
* @var string
*/
public $rawProvidedId;
/**
* A list of CSS Product attributes.
*
* @param Attributes $attributes
*/
public function setAttributes(Attributes $attributes)
{
$this->attributes = $attributes;
}
/**
* @return Attributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Required. The two-letter [ISO
* 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the CSS
* Product.
*
* @param string $contentLanguage
*/
public function setContentLanguage($contentLanguage)
{
$this->contentLanguage = $contentLanguage;
}
/**
* @return string
*/
public function getContentLanguage()
{
return $this->contentLanguage;
}
/**
* A list of custom (CSS-provided) attributes. It can also be used for
* submitting any attribute of the feed specification in its generic form (for
* example: `{ "name": "size type", "value": "regular" }`). This is useful for
* submitting attributes not explicitly exposed by the API, such as additional
* attributes used for Buy on Google.
*
* @param CustomAttribute[] $customAttributes
*/
public function setCustomAttributes($customAttributes)
{
$this->customAttributes = $customAttributes;
}
/**
* @return CustomAttribute[]
*/
public function getCustomAttributes()
{
return $this->customAttributes;
}
/**
* Required. The [feed label](https://developers.google.com/shopping-
* content/guides/products/feed-labels) for the CSS Product. Feed Label is
* synonymous to "target country" and hence should always be a valid region
* code. For example: 'DE' for Germany, 'FR' for France.
*
* @param string $feedLabel
*/
public function setFeedLabel($feedLabel)
{
$this->feedLabel = $feedLabel;
}
/**
* @return string
*/
public function getFeedLabel()
{
return $this->feedLabel;
}
/**
* Output only. The name of the processed CSS Product. Format:
* `accounts/{account}/cssProducts/{css_product}` "
*
* @param string $finalName
*/
public function setFinalName($finalName)
{
$this->finalName = $finalName;
}
/**
* @return string
*/
public function getFinalName()
{
return $this->finalName;
}
/**
* DEPRECATED. Use expiration_date instead. Represents the existing version
* (freshness) of the CSS Product, which can be used to preserve the right
* order when multiple updates are done at the same time. This field must not
* be set to the future time. If set, the update is prevented if a newer
* version of the item already exists in our system (that is the last update
* time of the existing CSS products is later than the freshness time set in
* the update). If the update happens, the last update time is then set to
* this freshness time. If not set, the update will not be prevented and the
* last update time will default to when this request was received by the CSS
* API. If the operation is prevented, the aborted exception will be thrown.
*
* @deprecated
* @param string $freshnessTime
*/
public function setFreshnessTime($freshnessTime)
{
$this->freshnessTime = $freshnessTime;
}
/**
* @deprecated
* @return string
*/
public function getFreshnessTime()
{
return $this->freshnessTime;
}
/**
* Identifier. The name of the CSS Product input. Format:
* `accounts/{account}/cssProductInputs/{css_product_input}`, where the last
* section `css_product_input` consists of 3 parts:
* contentLanguage~feedLabel~offerId. Example:
* accounts/123/cssProductInputs/de~DE~rawProvidedId123
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Your unique identifier for the CSS Product. This is the same for
* the CSS Product input and processed CSS Product. We only allow ids with
* alphanumerics, underscores and dashes. See the [products feed
* specification](https://support.google.com/merchants/answer/188494#id) for
* details.
*
* @param string $rawProvidedId
*/
public function setRawProvidedId($rawProvidedId)
{
$this->rawProvidedId = $rawProvidedId;
}
/**
* @return string
*/
public function getRawProvidedId()
{
return $this->rawProvidedId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CssProductInput::class, 'Google_Service_Css_CssProductInput');
@@ -0,0 +1,135 @@
<?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\Css;
class CssProductStatus extends \Google\Collection
{
protected $collection_key = 'itemLevelIssues';
/**
* Date on which the item has been created, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @var string
*/
public $creationDate;
protected $destinationStatusesType = DestinationStatus::class;
protected $destinationStatusesDataType = 'array';
/**
* Date on which the item expires, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @var string
*/
public $googleExpirationDate;
protected $itemLevelIssuesType = ItemLevelIssue::class;
protected $itemLevelIssuesDataType = 'array';
/**
* Date on which the item has been last updated, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @var string
*/
public $lastUpdateDate;
/**
* Date on which the item has been created, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @param string $creationDate
*/
public function setCreationDate($creationDate)
{
$this->creationDate = $creationDate;
}
/**
* @return string
*/
public function getCreationDate()
{
return $this->creationDate;
}
/**
* The intended destinations for the product.
*
* @param DestinationStatus[] $destinationStatuses
*/
public function setDestinationStatuses($destinationStatuses)
{
$this->destinationStatuses = $destinationStatuses;
}
/**
* @return DestinationStatus[]
*/
public function getDestinationStatuses()
{
return $this->destinationStatuses;
}
/**
* Date on which the item expires, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @param string $googleExpirationDate
*/
public function setGoogleExpirationDate($googleExpirationDate)
{
$this->googleExpirationDate = $googleExpirationDate;
}
/**
* @return string
*/
public function getGoogleExpirationDate()
{
return $this->googleExpirationDate;
}
/**
* A list of all issues associated with the product.
*
* @param ItemLevelIssue[] $itemLevelIssues
*/
public function setItemLevelIssues($itemLevelIssues)
{
$this->itemLevelIssues = $itemLevelIssues;
}
/**
* @return ItemLevelIssue[]
*/
public function getItemLevelIssues()
{
return $this->itemLevelIssues;
}
/**
* Date on which the item has been last updated, in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
*
* @param string $lastUpdateDate
*/
public function setLastUpdateDate($lastUpdateDate)
{
$this->lastUpdateDate = $lastUpdateDate;
}
/**
* @return string
*/
public function getLastUpdateDate()
{
return $this->lastUpdateDate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CssProductStatus::class, 'Google_Service_Css_CssProductStatus');
@@ -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\Css;
class CustomAttribute extends \Google\Collection
{
protected $collection_key = 'groupValues';
protected $groupValuesType = CustomAttribute::class;
protected $groupValuesDataType = 'array';
/**
* The name of the attribute.
*
* @var string
*/
public $name;
/**
* The value of the attribute. If `value` is not empty, `group_values` must be
* empty.
*
* @var string
*/
public $value;
/**
* Subattributes within this attribute group. If `group_values` is not empty,
* `value` must be empty.
*
* @param CustomAttribute[] $groupValues
*/
public function setGroupValues($groupValues)
{
$this->groupValues = $groupValues;
}
/**
* @return CustomAttribute[]
*/
public function getGroupValues()
{
return $this->groupValues;
}
/**
* The name of the attribute.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The value of the attribute. If `value` is not empty, `group_values` must be
* empty.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomAttribute::class, 'Google_Service_Css_CustomAttribute');
@@ -0,0 +1,121 @@
<?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\Css;
class DestinationStatus extends \Google\Collection
{
protected $collection_key = 'pendingCountries';
/**
* List of country codes (ISO 3166-1 alpha-2) where the CSS Product is
* approved.
*
* @var string[]
*/
public $approvedCountries;
/**
* The name of the destination
*
* @var string
*/
public $destination;
/**
* List of country codes (ISO 3166-1 alpha-2) where the CSS Product is
* disapproved.
*
* @var string[]
*/
public $disapprovedCountries;
/**
* List of country codes (ISO 3166-1 alpha-2) where the CSS Product is pending
* approval.
*
* @var string[]
*/
public $pendingCountries;
/**
* List of country codes (ISO 3166-1 alpha-2) where the CSS Product is
* approved.
*
* @param string[] $approvedCountries
*/
public function setApprovedCountries($approvedCountries)
{
$this->approvedCountries = $approvedCountries;
}
/**
* @return string[]
*/
public function getApprovedCountries()
{
return $this->approvedCountries;
}
/**
* The name of the destination
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* List of country codes (ISO 3166-1 alpha-2) where the CSS Product is
* disapproved.
*
* @param string[] $disapprovedCountries
*/
public function setDisapprovedCountries($disapprovedCountries)
{
$this->disapprovedCountries = $disapprovedCountries;
}
/**
* @return string[]
*/
public function getDisapprovedCountries()
{
return $this->disapprovedCountries;
}
/**
* List of country codes (ISO 3166-1 alpha-2) where the CSS Product is pending
* approval.
*
* @param string[] $pendingCountries
*/
public function setPendingCountries($pendingCountries)
{
$this->pendingCountries = $pendingCountries;
}
/**
* @return string[]
*/
public function getPendingCountries()
{
return $this->pendingCountries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DestinationStatus::class, 'Google_Service_Css_DestinationStatus');
@@ -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\Css;
class HeadlineOfferInstallment extends \Google\Model
{
protected $amountType = Price::class;
protected $amountDataType = '';
protected $downpaymentType = Price::class;
protected $downpaymentDataType = '';
/**
* The number of installments the buyer has to pay.
*
* @var string
*/
public $months;
/**
* The amount the buyer has to pay per month.
*
* @param Price $amount
*/
public function setAmount(Price $amount)
{
$this->amount = $amount;
}
/**
* @return Price
*/
public function getAmount()
{
return $this->amount;
}
/**
* The up-front down payment amount the buyer has to pay.
*
* @param Price $downpayment
*/
public function setDownpayment(Price $downpayment)
{
$this->downpayment = $downpayment;
}
/**
* @return Price
*/
public function getDownpayment()
{
return $this->downpayment;
}
/**
* The number of installments the buyer has to pay.
*
* @param string $months
*/
public function setMonths($months)
{
$this->months = $months;
}
/**
* @return string
*/
public function getMonths()
{
return $this->months;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HeadlineOfferInstallment::class, 'Google_Service_Css_HeadlineOfferInstallment');
@@ -0,0 +1,104 @@
<?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\Css;
class HeadlineOfferSubscriptionCost extends \Google\Model
{
/**
* Indicates that the subscription period is unspecified.
*/
public const PERIOD_SUBSCRIPTION_PERIOD_UNSPECIFIED = 'SUBSCRIPTION_PERIOD_UNSPECIFIED';
/**
* Indicates that the subscription period is month.
*/
public const PERIOD_MONTH = 'MONTH';
/**
* Indicates that the subscription period is year.
*/
public const PERIOD_YEAR = 'YEAR';
protected $amountType = Price::class;
protected $amountDataType = '';
/**
* The type of subscription period. Supported values are: * "`month`" *
* "`year`"
*
* @var string
*/
public $period;
/**
* The number of subscription periods the buyer has to pay.
*
* @var string
*/
public $periodLength;
/**
* The amount the buyer has to pay per subscription period.
*
* @param Price $amount
*/
public function setAmount(Price $amount)
{
$this->amount = $amount;
}
/**
* @return Price
*/
public function getAmount()
{
return $this->amount;
}
/**
* The type of subscription period. Supported values are: * "`month`" *
* "`year`"
*
* Accepted values: SUBSCRIPTION_PERIOD_UNSPECIFIED, MONTH, YEAR
*
* @param self::PERIOD_* $period
*/
public function setPeriod($period)
{
$this->period = $period;
}
/**
* @return self::PERIOD_*
*/
public function getPeriod()
{
return $this->period;
}
/**
* The number of subscription periods the buyer has to pay.
*
* @param string $periodLength
*/
public function setPeriodLength($periodLength)
{
$this->periodLength = $periodLength;
}
/**
* @return string
*/
public function getPeriodLength()
{
return $this->periodLength;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HeadlineOfferSubscriptionCost::class, 'Google_Service_Css_HeadlineOfferSubscriptionCost');
@@ -0,0 +1,227 @@
<?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\Css;
class ItemLevelIssue extends \Google\Collection
{
protected $collection_key = 'applicableCountries';
/**
* List of country codes (ISO 3166-1 alpha-2) where issue applies to the CSS
* Product.
*
* @var string[]
*/
public $applicableCountries;
/**
* The attribute's name, if the issue is caused by a single attribute.
*
* @var string
*/
public $attribute;
/**
* The error code of the issue.
*
* @var string
*/
public $code;
/**
* A short issue description in English.
*
* @var string
*/
public $description;
/**
* The destination the issue applies to.
*
* @var string
*/
public $destination;
/**
* A detailed issue description in English.
*
* @var string
*/
public $detail;
/**
* The URL of a web page to help with resolving this issue.
*
* @var string
*/
public $documentation;
/**
* Whether the issue can be resolved by the merchant.
*
* @var string
*/
public $resolution;
/**
* How this issue affects serving of the CSS Product.
*
* @var string
*/
public $servability;
/**
* List of country codes (ISO 3166-1 alpha-2) where issue applies to the CSS
* Product.
*
* @param string[] $applicableCountries
*/
public function setApplicableCountries($applicableCountries)
{
$this->applicableCountries = $applicableCountries;
}
/**
* @return string[]
*/
public function getApplicableCountries()
{
return $this->applicableCountries;
}
/**
* The attribute's name, if the issue is caused by a single attribute.
*
* @param string $attribute
*/
public function setAttribute($attribute)
{
$this->attribute = $attribute;
}
/**
* @return string
*/
public function getAttribute()
{
return $this->attribute;
}
/**
* The error code of the issue.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* A short issue description in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The destination the issue applies to.
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* A detailed issue description in English.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* The URL of a web page to help with resolving this issue.
*
* @param string $documentation
*/
public function setDocumentation($documentation)
{
$this->documentation = $documentation;
}
/**
* @return string
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Whether the issue can be resolved by the merchant.
*
* @param string $resolution
*/
public function setResolution($resolution)
{
$this->resolution = $resolution;
}
/**
* @return string
*/
public function getResolution()
{
return $this->resolution;
}
/**
* How this issue affects serving of the CSS Product.
*
* @param string $servability
*/
public function setServability($servability)
{
$this->servability = $servability;
}
/**
* @return string
*/
public function getServability()
{
return $this->servability;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ItemLevelIssue::class, 'Google_Service_Css_ItemLevelIssue');
@@ -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\Css;
class ListAccountLabelsResponse extends \Google\Collection
{
protected $collection_key = 'accountLabels';
protected $accountLabelsType = AccountLabel::class;
protected $accountLabelsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The labels from the specified account.
*
* @param AccountLabel[] $accountLabels
*/
public function setAccountLabels($accountLabels)
{
$this->accountLabels = $accountLabels;
}
/**
* @return AccountLabel[]
*/
public function getAccountLabels()
{
return $this->accountLabels;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @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(ListAccountLabelsResponse::class, 'Google_Service_Css_ListAccountLabelsResponse');
@@ -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\Css;
class ListChildAccountsResponse extends \Google\Collection
{
protected $collection_key = 'accounts';
protected $accountsType = Account::class;
protected $accountsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The CSS/MC accounts returned for the specified CSS parent account.
*
* @param Account[] $accounts
*/
public function setAccounts($accounts)
{
$this->accounts = $accounts;
}
/**
* @return Account[]
*/
public function getAccounts()
{
return $this->accounts;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @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(ListChildAccountsResponse::class, 'Google_Service_Css_ListChildAccountsResponse');
@@ -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\Css;
class ListCssProductsResponse extends \Google\Collection
{
protected $collection_key = 'cssProducts';
protected $cssProductsType = CssProduct::class;
protected $cssProductsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The processed CSS products from the specified account. These are your
* processed CSS products after applying rules and supplemental feeds.
*
* @param CssProduct[] $cssProducts
*/
public function setCssProducts($cssProducts)
{
$this->cssProducts = $cssProducts;
}
/**
* @return CssProduct[]
*/
public function getCssProducts()
{
return $this->cssProducts;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @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(ListCssProductsResponse::class, 'Google_Service_Css_ListCssProductsResponse');
@@ -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\Css;
class ListQuotaGroupsResponse extends \Google\Collection
{
protected $collection_key = 'quotaGroups';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $quotaGroupsType = QuotaGroup::class;
protected $quotaGroupsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The methods, current quota usage and limits per each group. The quota is
* shared between all methods in the group. The groups are sorted in
* descending order based on quota_usage.
*
* @param QuotaGroup[] $quotaGroups
*/
public function setQuotaGroups($quotaGroups)
{
$this->quotaGroups = $quotaGroups;
}
/**
* @return QuotaGroup[]
*/
public function getQuotaGroups()
{
return $this->quotaGroups;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListQuotaGroupsResponse::class, 'Google_Service_Css_ListQuotaGroupsResponse');
@@ -0,0 +1,120 @@
<?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\Css;
class MethodDetails extends \Google\Model
{
/**
* Output only. The name of the method for example
* `cssproductsservice.listcssproducts`.
*
* @var string
*/
public $method;
/**
* Output only. The path for the method such as
* `v1/cssproductsservice.listcssproducts`.
*
* @var string
*/
public $path;
/**
* Output only. The sub-API that the method belongs to. In the CSS API, this
* is always `css`.
*
* @var string
*/
public $subapi;
/**
* Output only. The API version that the method belongs to.
*
* @var string
*/
public $version;
/**
* Output only. The name of the method for example
* `cssproductsservice.listcssproducts`.
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Output only. The path for the method such as
* `v1/cssproductsservice.listcssproducts`.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Output only. The sub-API that the method belongs to. In the CSS API, this
* is always `css`.
*
* @param string $subapi
*/
public function setSubapi($subapi)
{
$this->subapi = $subapi;
}
/**
* @return string
*/
public function getSubapi()
{
return $this->subapi;
}
/**
* Output only. The API version that the method belongs to.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MethodDetails::class, 'Google_Service_Css_MethodDetails');
+76
View File
@@ -0,0 +1,76 @@
<?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\Css;
class Price extends \Google\Model
{
/**
* The price represented as a number in micros (1 million micros is an
* equivalent to one's currency standard unit, for example, 1 USD = 1000000
* micros).
*
* @var string
*/
public $amountMicros;
/**
* The currency of the price using three-letter acronyms according to [ISO
* 4217](http://en.wikipedia.org/wiki/ISO_4217).
*
* @var string
*/
public $currencyCode;
/**
* The price represented as a number in micros (1 million micros is an
* equivalent to one's currency standard unit, for example, 1 USD = 1000000
* micros).
*
* @param string $amountMicros
*/
public function setAmountMicros($amountMicros)
{
$this->amountMicros = $amountMicros;
}
/**
* @return string
*/
public function getAmountMicros()
{
return $this->amountMicros;
}
/**
* The currency of the price using three-letter acronyms according to [ISO
* 4217](http://en.wikipedia.org/wiki/ISO_4217).
*
* @param string $currencyCode
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Price::class, 'Google_Service_Css_Price');
@@ -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\Css;
class ProductDetail extends \Google\Model
{
/**
* The name of the product detail.
*
* @var string
*/
public $attributeName;
/**
* The value of the product detail.
*
* @var string
*/
public $attributeValue;
/**
* The section header used to group a set of product details.
*
* @var string
*/
public $sectionName;
/**
* The name of the product detail.
*
* @param string $attributeName
*/
public function setAttributeName($attributeName)
{
$this->attributeName = $attributeName;
}
/**
* @return string
*/
public function getAttributeName()
{
return $this->attributeName;
}
/**
* The value of the product detail.
*
* @param string $attributeValue
*/
public function setAttributeValue($attributeValue)
{
$this->attributeValue = $attributeValue;
}
/**
* @return string
*/
public function getAttributeValue()
{
return $this->attributeValue;
}
/**
* The section header used to group a set of product details.
*
* @param string $sectionName
*/
public function setSectionName($sectionName)
{
$this->sectionName = $sectionName;
}
/**
* @return string
*/
public function getSectionName()
{
return $this->sectionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductDetail::class, 'Google_Service_Css_ProductDetail');
@@ -0,0 +1,63 @@
<?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\Css;
class ProductDimension extends \Google\Model
{
/**
* Required. The dimension units. Acceptable values are: * "`in`" * "`cm`"
*
* @var string
*/
public $unit;
/**
* Required. The dimension value represented as a number. The value can have a
* maximum precision of four decimal places.
*
* @var
*/
public $value;
/**
* Required. The dimension units. Acceptable values are: * "`in`" * "`cm`"
*
* @param string $unit
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductDimension::class, 'Google_Service_Css_ProductDimension');
@@ -0,0 +1,65 @@
<?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\Css;
class ProductWeight extends \Google\Model
{
/**
* Required. The weight unit. Acceptable values are: * "`g`" * "`kg`" * "`oz`"
* * "`lb`"
*
* @var string
*/
public $unit;
/**
* Required. The weight represented as a number. The weight can have a maximum
* precision of four decimal places.
*
* @var
*/
public $value;
/**
* Required. The weight unit. Acceptable values are: * "`g`" * "`kg`" * "`oz`"
* * "`lb`"
*
* @param string $unit
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductWeight::class, 'Google_Service_Css_ProductWeight');
+143
View File
@@ -0,0 +1,143 @@
<?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\Css;
class QuotaGroup extends \Google\Collection
{
protected $collection_key = 'methodDetails';
protected $methodDetailsType = MethodDetails::class;
protected $methodDetailsDataType = 'array';
/**
* Identifier. The resource name of the quota group. Format:
* accounts/{account}/quotas/{group} Example: `accounts/12345678/quotas/css-
* products-insert` Note: The {group} part is not guaranteed to follow a
* specific pattern.
*
* @var string
*/
public $name;
/**
* Output only. The maximum number of calls allowed per day for the group.
*
* @var string
*/
public $quotaLimit;
/**
* Output only. The maximum number of calls allowed per minute for the group.
*
* @var string
*/
public $quotaMinuteLimit;
/**
* Output only. The current quota usage, meaning the number of calls already
* made on a given day to the methods in the group. The daily quota limits
* reset at at 12:00 PM midday UTC.
*
* @var string
*/
public $quotaUsage;
/**
* Output only. List of all methods group quota applies to.
*
* @param MethodDetails[] $methodDetails
*/
public function setMethodDetails($methodDetails)
{
$this->methodDetails = $methodDetails;
}
/**
* @return MethodDetails[]
*/
public function getMethodDetails()
{
return $this->methodDetails;
}
/**
* Identifier. The resource name of the quota group. Format:
* accounts/{account}/quotas/{group} Example: `accounts/12345678/quotas/css-
* products-insert` Note: The {group} part is not guaranteed to follow a
* specific pattern.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The maximum number of calls allowed per day for the group.
*
* @param string $quotaLimit
*/
public function setQuotaLimit($quotaLimit)
{
$this->quotaLimit = $quotaLimit;
}
/**
* @return string
*/
public function getQuotaLimit()
{
return $this->quotaLimit;
}
/**
* Output only. The maximum number of calls allowed per minute for the group.
*
* @param string $quotaMinuteLimit
*/
public function setQuotaMinuteLimit($quotaMinuteLimit)
{
$this->quotaMinuteLimit = $quotaMinuteLimit;
}
/**
* @return string
*/
public function getQuotaMinuteLimit()
{
return $this->quotaMinuteLimit;
}
/**
* Output only. The current quota usage, meaning the number of calls already
* made on a given day to the methods in the group. The daily quota limits
* reset at at 12:00 PM midday UTC.
*
* @param string $quotaUsage
*/
public function setQuotaUsage($quotaUsage)
{
$this->quotaUsage = $quotaUsage;
}
/**
* @return string
*/
public function getQuotaUsage()
{
return $this->quotaUsage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuotaGroup::class, 'Google_Service_Css_QuotaGroup');
@@ -0,0 +1,102 @@
<?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\Css\Resource;
use Google\Service\Css\Account;
use Google\Service\Css\ListChildAccountsResponse;
use Google\Service\Css\UpdateAccountLabelsRequest;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $cssService = new Google\Service\Css(...);
* $accounts = $cssService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
/**
* Retrieves a single CSS/MC account by ID. (accounts.get)
*
* @param string $name Required. The name of the managed CSS/MC account. Format:
* accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param string parent Optional. Only required when retrieving MC account
* information. The CSS domain that is the parent resource of the MC account.
* Format: accounts/{account}
* @return Account
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Account::class);
}
/**
* Lists all the accounts under the specified CSS account ID, and optionally
* filters by label ID and account name. (accounts.listChildAccounts)
*
* @param string $parent Required. The parent account. Must be a CSS group or
* domain. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param string fullName If set, only the MC accounts with the given name
* (case sensitive) will be returned.
* @opt_param string labelId If set, only the MC accounts with the given label
* ID will be returned.
* @opt_param int pageSize Optional. The maximum number of accounts to return.
* The service may return fewer than this value. If unspecified, at most 50
* accounts will be returned. The maximum value is 100; values above 100 will be
* coerced to 100.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListChildAccounts` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListChildAccounts` must match
* the call that provided the page token.
* @return ListChildAccountsResponse
* @throws \Google\Service\Exception
*/
public function listChildAccounts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listChildAccounts', [$params], ListChildAccountsResponse::class);
}
/**
* Updates labels assigned to CSS/MC accounts by a CSS domain.
* (accounts.updateLabels)
*
* @param string $name Required. The label resource name. Format:
* accounts/{account}
* @param UpdateAccountLabelsRequest $postBody
* @param array $optParams Optional parameters.
* @return Account
* @throws \Google\Service\Exception
*/
public function updateLabels($name, UpdateAccountLabelsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateLabels', [$params], Account::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_Css_Resource_Accounts');
@@ -0,0 +1,120 @@
<?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\Css\Resource;
use Google\Service\Css\CssEmpty;
use Google\Service\Css\CssProductInput;
/**
* The "cssProductInputs" collection of methods.
* Typical usage is:
* <code>
* $cssService = new Google\Service\Css(...);
* $cssProductInputs = $cssService->accounts_cssProductInputs;
* </code>
*/
class AccountsCssProductInputs extends \Google\Service\Resource
{
/**
* Deletes a CSS Product input from your CSS Center account. After a delete it
* may take several minutes until the input is no longer available.
* (cssProductInputs.delete)
*
* @param string $name Required. The name of the CSS product input resource to
* delete. Format: accounts/{account}/cssProductInputs/{css_product_input},
* where the last section `css_product_input` consists of 3 parts:
* contentLanguage~feedLabel~offerId. Example:
* accounts/123/cssProductInputs/de~DE~rawProvidedId123
* @param array $optParams Optional parameters.
*
* @opt_param string supplementalFeedId The Content API Supplemental Feed ID.
* The field must not be set if the action applies to a primary feed. If the
* field is set, then product action applies to a supplemental feed instead of
* primary Content API feed.
* @return CssEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], CssEmpty::class);
}
/**
* Uploads a CssProductInput to your CSS Center account. If an input with the
* same contentLanguage, identity, feedLabel and feedId already exists, this
* method replaces that entry. After inserting, updating, or deleting a CSS
* Product input, it may take several minutes before the processed CSS Product
* can be retrieved. (cssProductInputs.insert)
*
* @param string $parent Required. The account where this CSS Product will be
* inserted. Format: accounts/{account}
* @param CssProductInput $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string feedId Optional. DEPRECATED. Feed id is not required for
* CSS Products. The primary or supplemental feed id. If CSS Product already
* exists and feed id provided is different, then the CSS Product will be moved
* to a new feed. Note: For now, CSSs do not need to provide feed ids as we
* create feeds on the fly. We do not have supplemental feed support for CSS
* Products yet.
* @return CssProductInput
* @throws \Google\Service\Exception
*/
public function insert($parent, CssProductInput $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], CssProductInput::class);
}
/**
* Updates the existing Css Product input in your CSS Center account. After
* inserting, updating, or deleting a CSS Product input, it may take several
* minutes before the processed Css Product can be retrieved.
* (cssProductInputs.patch)
*
* @param string $name Identifier. The name of the CSS Product input. Format:
* `accounts/{account}/cssProductInputs/{css_product_input}`, where the last
* section `css_product_input` consists of 3 parts:
* contentLanguage~feedLabel~offerId. Example:
* accounts/123/cssProductInputs/de~DE~rawProvidedId123
* @param CssProductInput $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of CSS product attributes to be
* updated. If the update mask is omitted, then it is treated as implied field
* mask equivalent to all fields that are populated (have a non-empty value).
* Attributes specified in the update mask without a value specified in the body
* will be deleted from the CSS product. Update mask can only be specified for
* top level fields in attributes and custom attributes. To specify the update
* mask for custom attributes you need to add the `custom_attribute.` prefix.
* Providing special "*" value for full CSS product replacement is not
* supported.
* @return CssProductInput
* @throws \Google\Service\Exception
*/
public function patch($name, CssProductInput $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CssProductInput::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCssProductInputs::class, 'Google_Service_Css_Resource_AccountsCssProductInputs');
@@ -0,0 +1,82 @@
<?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\Css\Resource;
use Google\Service\Css\CssProduct;
use Google\Service\Css\ListCssProductsResponse;
/**
* The "cssProducts" collection of methods.
* Typical usage is:
* <code>
* $cssService = new Google\Service\Css(...);
* $cssProducts = $cssService->accounts_cssProducts;
* </code>
*/
class AccountsCssProducts extends \Google\Service\Resource
{
/**
* Retrieves the processed CSS Product from your CSS Center account. After
* inserting, updating, or deleting a product input, it may take several minutes
* before the updated final product can be retrieved. (cssProducts.get)
*
* @param string $name Required. The name of the CSS product to retrieve.
* Format: `accounts/{account}/cssProducts/{css_product}`
* @param array $optParams Optional parameters.
* @return CssProduct
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CssProduct::class);
}
/**
* Lists the processed CSS Products in your CSS Center account. The response
* might contain fewer items than specified by pageSize. Rely on pageToken to
* determine if there are more items to be requested. After inserting, updating,
* or deleting a CSS product input, it may take several minutes before the
* updated processed CSS product can be retrieved.
* (cssProducts.listAccountsCssProducts)
*
* @param string $parent Required. The account/domain to list processed CSS
* Products for. Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of CSS Products to return. The
* service may return fewer than this value. The maximum value is 1000; values
* above 1000 will be coerced to 1000. If unspecified, the maximum number of CSS
* products will be returned.
* @opt_param string pageToken A page token, received from a previous
* `ListCssProducts` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListCssProducts` must match the
* call that provided the page token.
* @return ListCssProductsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsCssProducts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCssProductsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCssProducts::class, 'Google_Service_Css_Resource_AccountsCssProducts');
@@ -0,0 +1,109 @@
<?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\Css\Resource;
use Google\Service\Css\AccountLabel;
use Google\Service\Css\CssEmpty;
use Google\Service\Css\ListAccountLabelsResponse;
/**
* The "labels" collection of methods.
* Typical usage is:
* <code>
* $cssService = new Google\Service\Css(...);
* $labels = $cssService->accounts_labels;
* </code>
*/
class AccountsLabels extends \Google\Service\Resource
{
/**
* Creates a new label, not assigned to any account. (labels.create)
*
* @param string $parent Required. The parent account. Format:
* accounts/{account}
* @param AccountLabel $postBody
* @param array $optParams Optional parameters.
* @return AccountLabel
* @throws \Google\Service\Exception
*/
public function create($parent, AccountLabel $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], AccountLabel::class);
}
/**
* Deletes a label and removes it from all accounts to which it was assigned.
* (labels.delete)
*
* @param string $name Required. The name of the label to delete. Format:
* accounts/{account}/labels/{label}
* @param array $optParams Optional parameters.
* @return CssEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], CssEmpty::class);
}
/**
* Lists the labels owned by an account. (labels.listAccountsLabels)
*
* @param string $parent Required. The parent account. Format:
* accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of labels to return. The service
* may return fewer than this value. If unspecified, at most 50 labels will be
* returned. The maximum value is 1000; values above 1000 will be coerced to
* 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListAccountLabels` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListAccountLabels` must match
* the call that provided the page token.
* @return ListAccountLabelsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsLabels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAccountLabelsResponse::class);
}
/**
* Updates a label. (labels.patch)
*
* @param string $name Identifier. The resource name of the label. Format:
* accounts/{account}/labels/{label}
* @param AccountLabel $postBody
* @param array $optParams Optional parameters.
* @return AccountLabel
* @throws \Google\Service\Exception
*/
public function patch($name, AccountLabel $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AccountLabel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsLabels::class, 'Google_Service_Css_Resource_AccountsLabels');
@@ -0,0 +1,59 @@
<?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\Css\Resource;
use Google\Service\Css\ListQuotaGroupsResponse;
/**
* The "quotas" collection of methods.
* Typical usage is:
* <code>
* $cssService = new Google\Service\Css(...);
* $quotas = $cssService->accounts_quotas;
* </code>
*/
class AccountsQuotas extends \Google\Service\Resource
{
/**
* Lists the daily call quota and usage per group for your CSS Center account.
* (quotas.listAccountsQuotas)
*
* @param string $parent Required. The CSS account that owns the collection of
* method quotas and resources. In most cases, this is the CSS domain. Format:
* accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of quotas to return in
* the response, used for paging. Defaults to 500; values above 1000 will be
* coerced to 1000.
* @opt_param string pageToken Optional. Token (if provided) to retrieve the
* subsequent page. All other parameters must match the original call that
* provided the page token.
* @return ListQuotaGroupsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsQuotas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListQuotaGroupsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsQuotas::class, 'Google_Service_Css_Resource_AccountsQuotas');
@@ -0,0 +1,75 @@
<?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\Css;
class UpdateAccountLabelsRequest extends \Google\Collection
{
protected $collection_key = 'labelIds';
/**
* The list of label IDs to overwrite the existing account label IDs. If the
* list is empty, all currently assigned label IDs will be deleted.
*
* @var string[]
*/
public $labelIds;
/**
* Optional. Only required when updating MC account labels. The CSS domain
* that is the parent resource of the MC account. Format: accounts/{account}
*
* @var string
*/
public $parent;
/**
* The list of label IDs to overwrite the existing account label IDs. If the
* list is empty, all currently assigned label IDs will be deleted.
*
* @param string[] $labelIds
*/
public function setLabelIds($labelIds)
{
$this->labelIds = $labelIds;
}
/**
* @return string[]
*/
public function getLabelIds()
{
return $this->labelIds;
}
/**
* Optional. Only required when updating MC account labels. The CSS domain
* that is the parent resource of the MC account. Format: accounts/{account}
*
* @param string $parent
*/
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(UpdateAccountLabelsRequest::class, 'Google_Service_Css_UpdateAccountLabelsRequest');