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
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2BadgeColors extends \Google\Model
{
protected $backgroundColorType = GoogleTypeColor::class;
protected $backgroundColorDataType = '';
protected $foregroundColorType = GoogleTypeColor::class;
protected $foregroundColorDataType = '';
protected $soloColorType = GoogleTypeColor::class;
protected $soloColorDataType = '';
/**
* Output only. Badge background that pairs with the foreground.
*
* @param GoogleTypeColor $backgroundColor
*/
public function setBackgroundColor(GoogleTypeColor $backgroundColor)
{
$this->backgroundColor = $backgroundColor;
}
/**
* @return GoogleTypeColor
*/
public function getBackgroundColor()
{
return $this->backgroundColor;
}
/**
* Output only. Badge foreground that pairs with the background.
*
* @param GoogleTypeColor $foregroundColor
*/
public function setForegroundColor(GoogleTypeColor $foregroundColor)
{
$this->foregroundColor = $foregroundColor;
}
/**
* @return GoogleTypeColor
*/
public function getForegroundColor()
{
return $this->foregroundColor;
}
/**
* Output only. Color that can be used for text without a background.
*
* @param GoogleTypeColor $soloColor
*/
public function setSoloColor(GoogleTypeColor $soloColor)
{
$this->soloColor = $soloColor;
}
/**
* @return GoogleTypeColor
*/
public function getSoloColor()
{
return $this->soloColor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2BadgeColors::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2BadgeColors');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2BadgeConfig extends \Google\Model
{
protected $colorType = GoogleTypeColor::class;
protected $colorDataType = '';
/**
* Override the default global priority of this badge. When set to 0, the
* default priority heuristic is used.
*
* @var string
*/
public $priorityOverride;
/**
* The color of the badge. When not specified, no badge is rendered. The
* background, foreground, and solo (light and dark mode) colors set here are
* changed in the Drive UI into the closest recommended supported color.
*
* @param GoogleTypeColor $color
*/
public function setColor(GoogleTypeColor $color)
{
$this->color = $color;
}
/**
* @return GoogleTypeColor
*/
public function getColor()
{
return $this->color;
}
/**
* Override the default global priority of this badge. When set to 0, the
* default priority heuristic is used.
*
* @param string $priorityOverride
*/
public function setPriorityOverride($priorityOverride)
{
$this->priorityOverride = $priorityOverride;
}
/**
* @return string
*/
public function getPriorityOverride()
{
return $this->priorityOverride;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2BadgeConfig::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2BadgeConfig');
@@ -0,0 +1,73 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest::class;
protected $requestsDataType = 'array';
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access. If this
* is set, the `use_admin_access` field in the `DeleteLabelPermissionRequest`
* messages must either be empty or match this field.
*
* @var bool
*/
public $useAdminAccess;
/**
* Required. The request message specifying the resources to update.
*
* @param GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest[]
*/
public function getRequests()
{
return $this->requests;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access. If this
* is set, the `use_admin_access` field in the `DeleteLabelPermissionRequest`
* messages must either be empty or match this field.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest');
@@ -0,0 +1,73 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest::class;
protected $requestsDataType = 'array';
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access. If this
* is set, the `use_admin_access` field in the `UpdateLabelPermissionRequest`
* messages must either be empty or match this field.
*
* @var bool
*/
public $useAdminAccess;
/**
* Required. The request message specifying the resources to update.
*
* @param GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest[]
*/
public function getRequests()
{
return $this->requests;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access. If this
* is set, the `use_admin_access` field in the `UpdateLabelPermissionRequest`
* messages must either be empty or match this field.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest');
@@ -0,0 +1,45 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
protected $permissionsType = GoogleAppsDriveLabelsV2LabelPermission::class;
protected $permissionsDataType = 'array';
/**
* Required. Permissions updated.
*
* @param GoogleAppsDriveLabelsV2LabelPermission[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return GoogleAppsDriveLabelsV2LabelPermission[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DateLimits extends \Google\Model
{
protected $maxValueType = GoogleTypeDate::class;
protected $maxValueDataType = '';
protected $minValueType = GoogleTypeDate::class;
protected $minValueDataType = '';
/**
* Maximum value for the date field type.
*
* @param GoogleTypeDate $maxValue
*/
public function setMaxValue(GoogleTypeDate $maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return GoogleTypeDate
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* Minimum value for the date field type.
*
* @param GoogleTypeDate $minValue
*/
public function setMinValue(GoogleTypeDate $minValue)
{
$this->minValue = $minValue;
}
/**
* @return GoogleTypeDate
*/
public function getMinValue()
{
return $this->minValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DateLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DateLimits');
@@ -0,0 +1,72 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest extends \Google\Model
{
/**
* Required. Label permission resource name.
*
* @var string
*/
public $name;
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @var bool
*/
public $useAdminAccess;
/**
* Required. Label permission resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest');
@@ -0,0 +1,146 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest extends \Google\Collection
{
/**
* Implies the field mask: `name,id,revision_id,label_type,properties.*`
*/
public const VIEW_LABEL_VIEW_BASIC = 'LABEL_VIEW_BASIC';
/**
* All possible fields.
*/
public const VIEW_LABEL_VIEW_FULL = 'LABEL_VIEW_FULL';
protected $collection_key = 'requests';
/**
* The BCP-47 language code to use for evaluating localized field labels when
* `include_label_in_response` is `true`.
*
* @var string
*/
public $languageCode;
protected $requestsType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest::class;
protected $requestsDataType = 'array';
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @var bool
*/
public $useAdminAccess;
/**
* When specified, only certain fields belonging to the indicated view will be
* returned.
*
* @var string
*/
public $view;
protected $writeControlType = GoogleAppsDriveLabelsV2WriteControl::class;
protected $writeControlDataType = '';
/**
* The BCP-47 language code to use for evaluating localized field labels when
* `include_label_in_response` is `true`.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* A list of updates to apply to the label. Requests will be applied in the
* order they are specified.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest[]
*/
public function getRequests()
{
return $this->requests;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
/**
* When specified, only certain fields belonging to the indicated view will be
* returned.
*
* Accepted values: LABEL_VIEW_BASIC, LABEL_VIEW_FULL
*
* @param self::VIEW_* $view
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return self::VIEW_*
*/
public function getView()
{
return $this->view;
}
/**
* Provides control over how write requests are executed.
*
* @param GoogleAppsDriveLabelsV2WriteControl $writeControl
*/
public function setWriteControl(GoogleAppsDriveLabelsV2WriteControl $writeControl)
{
$this->writeControl = $writeControl;
}
/**
* @return GoogleAppsDriveLabelsV2WriteControl
*/
public function getWriteControl()
{
return $this->writeControl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest');
@@ -0,0 +1,44 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest extends \Google\Model
{
protected $fieldType = GoogleAppsDriveLabelsV2Field::class;
protected $fieldDataType = '';
/**
* Required. Field to create.
*
* @param GoogleAppsDriveLabelsV2Field $field
*/
public function setField(GoogleAppsDriveLabelsV2Field $field)
{
$this->field = $field;
}
/**
* @return GoogleAppsDriveLabelsV2Field
*/
public function getField()
{
return $this->field;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest extends \Google\Model
{
protected $choiceType = GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice::class;
protected $choiceDataType = '';
/**
* Required. The selection field in which a choice will be created.
*
* @var string
*/
public $fieldId;
/**
* Required. The choice to create.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice $choice
*/
public function setChoice(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice $choice)
{
$this->choice = $choice;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice
*/
public function getChoice()
{
return $this->choice;
}
/**
* Required. The selection field in which a choice will be created.
*
* @param string $fieldId
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest');
@@ -0,0 +1,48 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest extends \Google\Model
{
/**
* Required. ID of the field to delete.
*
* @var string
*/
public $id;
/**
* Required. ID of the field to delete.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest extends \Google\Model
{
/**
* Required. The selection field from which a choice will be deleted.
*
* @var string
*/
public $fieldId;
/**
* Required. Choice to delete.
*
* @var string
*/
public $id;
/**
* Required. The selection field from which a choice will be deleted.
*
* @param string $fieldId
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
/**
* Required. Choice to delete.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest extends \Google\Model
{
protected $disabledPolicyType = GoogleAppsDriveLabelsV2LifecycleDisabledPolicy::class;
protected $disabledPolicyDataType = '';
/**
* Required. Key of the field to disable.
*
* @var string
*/
public $id;
/**
* The fields that should be updated. At least one field must be specified.
* The root `disabled_policy` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @var string
*/
public $updateMask;
/**
* Required. Field disabled policy.
*
* @param GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy
*/
public function setDisabledPolicy(GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy)
{
$this->disabledPolicy = $disabledPolicy;
}
/**
* @return GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
*/
public function getDisabledPolicy()
{
return $this->disabledPolicy;
}
/**
* Required. Key of the field to disable.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The fields that should be updated. At least one field must be specified.
* The root `disabled_policy` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest');
@@ -0,0 +1,114 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest extends \Google\Model
{
protected $disabledPolicyType = GoogleAppsDriveLabelsV2LifecycleDisabledPolicy::class;
protected $disabledPolicyDataType = '';
/**
* Required. The selection field in which a choice will be disabled.
*
* @var string
*/
public $fieldId;
/**
* Required. Choice to disable.
*
* @var string
*/
public $id;
/**
* The fields that should be updated. At least one field must be specified.
* The root `disabled_policy` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @var string
*/
public $updateMask;
/**
* Required. The disabled policy to update.
*
* @param GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy
*/
public function setDisabledPolicy(GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy)
{
$this->disabledPolicy = $disabledPolicy;
}
/**
* @return GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
*/
public function getDisabledPolicy()
{
return $this->disabledPolicy;
}
/**
* Required. The selection field in which a choice will be disabled.
*
* @param string $fieldId
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
/**
* Required. Choice to disable.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The fields that should be updated. At least one field must be specified.
* The root `disabled_policy` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest');
@@ -0,0 +1,48 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest extends \Google\Model
{
/**
* Required. ID of the field to enable.
*
* @var string
*/
public $id;
/**
* Required. ID of the field to enable.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest extends \Google\Model
{
/**
* Required. The selection field in which a choice will be enabled.
*
* @var string
*/
public $fieldId;
/**
* Required. Choice to enable.
*
* @var string
*/
public $id;
/**
* Required. The selection field in which a choice will be enabled.
*
* @param string $fieldId
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
/**
* Required. Choice to enable.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest');
@@ -0,0 +1,241 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest extends \Google\Model
{
protected $createFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest::class;
protected $createFieldDataType = '';
protected $createSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest::class;
protected $createSelectionChoiceDataType = '';
protected $deleteFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest::class;
protected $deleteFieldDataType = '';
protected $deleteSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest::class;
protected $deleteSelectionChoiceDataType = '';
protected $disableFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest::class;
protected $disableFieldDataType = '';
protected $disableSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest::class;
protected $disableSelectionChoiceDataType = '';
protected $enableFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest::class;
protected $enableFieldDataType = '';
protected $enableSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest::class;
protected $enableSelectionChoiceDataType = '';
protected $updateFieldDataType = '';
protected $updateFieldTypeType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest::class;
protected $updateFieldTypeDataType = '';
protected $updateLabelType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest::class;
protected $updateLabelDataType = '';
protected $updateSelectionChoicePropertiesType = GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest::class;
protected $updateSelectionChoicePropertiesDataType = '';
/**
* Creates a field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest $createField
*/
public function setCreateField(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest $createField)
{
$this->createField = $createField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest
*/
public function getCreateField()
{
return $this->createField;
}
/**
* Create a choice within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest $createSelectionChoice
*/
public function setCreateSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest $createSelectionChoice)
{
$this->createSelectionChoice = $createSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest
*/
public function getCreateSelectionChoice()
{
return $this->createSelectionChoice;
}
/**
* Deletes a field from the label.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest $deleteField
*/
public function setDeleteField(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest $deleteField)
{
$this->deleteField = $deleteField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest
*/
public function getDeleteField()
{
return $this->deleteField;
}
/**
* Delete a choice within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest $deleteSelectionChoice
*/
public function setDeleteSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest $deleteSelectionChoice)
{
$this->deleteSelectionChoice = $deleteSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest
*/
public function getDeleteSelectionChoice()
{
return $this->deleteSelectionChoice;
}
/**
* Disables the field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest $disableField
*/
public function setDisableField(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest $disableField)
{
$this->disableField = $disableField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest
*/
public function getDisableField()
{
return $this->disableField;
}
/**
* Disable a choice within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest $disableSelectionChoice
*/
public function setDisableSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest $disableSelectionChoice)
{
$this->disableSelectionChoice = $disableSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest
*/
public function getDisableSelectionChoice()
{
return $this->disableSelectionChoice;
}
/**
* Enables the field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest $enableField
*/
public function setEnableField(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest $enableField)
{
$this->enableField = $enableField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest
*/
public function getEnableField()
{
return $this->enableField;
}
/**
* Enable a choice within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest $enableSelectionChoice
*/
public function setEnableSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest $enableSelectionChoice)
{
$this->enableSelectionChoice = $enableSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest
*/
public function getEnableSelectionChoice()
{
return $this->enableSelectionChoice;
}
/**
* Updates basic properties of a field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest $updateField
*/
public function setUpdateField(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest $updateField)
{
$this->updateField = $updateField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest
*/
public function getUpdateField()
{
return $this->updateField;
}
/**
* Update field type and/or type options.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest $updateFieldType
*/
public function setUpdateFieldType(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest $updateFieldType)
{
$this->updateFieldType = $updateFieldType;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest
*/
public function getUpdateFieldType()
{
return $this->updateFieldType;
}
/**
* Updates the label properties.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest $updateLabel
*/
public function setUpdateLabel(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest $updateLabel)
{
$this->updateLabel = $updateLabel;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest
*/
public function getUpdateLabel()
{
return $this->updateLabel;
}
/**
* Update a choice property within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest $updateSelectionChoiceProperties
*/
public function setUpdateSelectionChoiceProperties(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest $updateSelectionChoiceProperties)
{
$this->updateSelectionChoiceProperties = $updateSelectionChoiceProperties;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest
*/
public function getUpdateSelectionChoiceProperties()
{
return $this->updateSelectionChoiceProperties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest extends \Google\Model
{
/**
* Required. The field to update.
*
* @var string
*/
public $id;
protected $propertiesType = GoogleAppsDriveLabelsV2FieldProperties::class;
protected $propertiesDataType = '';
/**
* The fields that should be updated. At least one field must be specified.
* The root `properties` is implied and should not be specified. A single `*`
* can be used as a short-hand for updating every field.
*
* @var string
*/
public $updateMask;
/**
* Required. The field to update.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required. Basic field properties.
*
* @param GoogleAppsDriveLabelsV2FieldProperties $properties
*/
public function setProperties(GoogleAppsDriveLabelsV2FieldProperties $properties)
{
$this->properties = $properties;
}
/**
* @return GoogleAppsDriveLabelsV2FieldProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* The fields that should be updated. At least one field must be specified.
* The root `properties` is implied and should not be specified. A single `*`
* can be used as a short-hand for updating every field.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest');
@@ -0,0 +1,164 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest extends \Google\Model
{
protected $dateOptionsType = GoogleAppsDriveLabelsV2FieldDateOptions::class;
protected $dateOptionsDataType = '';
/**
* Required. The field to update.
*
* @var string
*/
public $id;
protected $integerOptionsType = GoogleAppsDriveLabelsV2FieldIntegerOptions::class;
protected $integerOptionsDataType = '';
protected $selectionOptionsType = GoogleAppsDriveLabelsV2FieldSelectionOptions::class;
protected $selectionOptionsDataType = '';
protected $textOptionsType = GoogleAppsDriveLabelsV2FieldTextOptions::class;
protected $textOptionsDataType = '';
/**
* The fields that should be updated. At least one field must be specified.
* The root of `type_options` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @var string
*/
public $updateMask;
protected $userOptionsType = GoogleAppsDriveLabelsV2FieldUserOptions::class;
protected $userOptionsDataType = '';
/**
* Update field to Date.
*
* @param GoogleAppsDriveLabelsV2FieldDateOptions $dateOptions
*/
public function setDateOptions(GoogleAppsDriveLabelsV2FieldDateOptions $dateOptions)
{
$this->dateOptions = $dateOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldDateOptions
*/
public function getDateOptions()
{
return $this->dateOptions;
}
/**
* Required. The field to update.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Update field to Integer.
*
* @param GoogleAppsDriveLabelsV2FieldIntegerOptions $integerOptions
*/
public function setIntegerOptions(GoogleAppsDriveLabelsV2FieldIntegerOptions $integerOptions)
{
$this->integerOptions = $integerOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldIntegerOptions
*/
public function getIntegerOptions()
{
return $this->integerOptions;
}
/**
* Update field to Selection.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptions $selectionOptions
*/
public function setSelectionOptions(GoogleAppsDriveLabelsV2FieldSelectionOptions $selectionOptions)
{
$this->selectionOptions = $selectionOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptions
*/
public function getSelectionOptions()
{
return $this->selectionOptions;
}
/**
* Update field to Text.
*
* @param GoogleAppsDriveLabelsV2FieldTextOptions $textOptions
*/
public function setTextOptions(GoogleAppsDriveLabelsV2FieldTextOptions $textOptions)
{
$this->textOptions = $textOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldTextOptions
*/
public function getTextOptions()
{
return $this->textOptions;
}
/**
* The fields that should be updated. At least one field must be specified.
* The root of `type_options` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
/**
* Update field to User.
*
* @param GoogleAppsDriveLabelsV2FieldUserOptions $userOptions
*/
public function setUserOptions(GoogleAppsDriveLabelsV2FieldUserOptions $userOptions)
{
$this->userOptions = $userOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldUserOptions
*/
public function getUserOptions()
{
return $this->userOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest extends \Google\Model
{
protected $propertiesType = GoogleAppsDriveLabelsV2LabelProperties::class;
protected $propertiesDataType = '';
/**
* The fields that should be updated. At least one field must be specified.
* The root `label_properties` is implied and should not be specified. A
* single `*` can be used as a short-hand for updating every field.
*
* @var string
*/
public $updateMask;
/**
* Required. Label properties to update.
*
* @param GoogleAppsDriveLabelsV2LabelProperties $properties
*/
public function setProperties(GoogleAppsDriveLabelsV2LabelProperties $properties)
{
$this->properties = $properties;
}
/**
* @return GoogleAppsDriveLabelsV2LabelProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* The fields that should be updated. At least one field must be specified.
* The root `label_properties` is implied and should not be specified. A
* single `*` can be used as a short-hand for updating every field.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest');
@@ -0,0 +1,114 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest extends \Google\Model
{
/**
* Required. The selection field to update.
*
* @var string
*/
public $fieldId;
/**
* Required. The choice to update.
*
* @var string
*/
public $id;
protected $propertiesType = GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties::class;
protected $propertiesDataType = '';
/**
* The fields that should be updated. At least one field must be specified.
* The root `properties` is implied and should not be specified. A single `*`
* can be used as a short-hand for updating every field.
*
* @var string
*/
public $updateMask;
/**
* Required. The selection field to update.
*
* @param string $fieldId
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
/**
* Required. The choice to update.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required. The choice properties to update.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties $properties
*/
public function setProperties(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties $properties)
{
$this->properties = $properties;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* The fields that should be updated. At least one field must be specified.
* The root `properties` is implied and should not be specified. A single `*`
* can be used as a short-hand for updating every field.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse::class;
protected $responsesDataType = 'array';
protected $updatedLabelType = GoogleAppsDriveLabelsV2Label::class;
protected $updatedLabelDataType = '';
/**
* The reply of the updates. This maps 1:1 with the updates, although
* responses to some requests may be empty.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse[]
*/
public function getResponses()
{
return $this->responses;
}
/**
* The label after updates were applied. This is only set if
* `include_label_in_response` is `true` and there were no errors.
*
* @param GoogleAppsDriveLabelsV2Label $updatedLabel
*/
public function setUpdatedLabel(GoogleAppsDriveLabelsV2Label $updatedLabel)
{
$this->updatedLabel = $updatedLabel;
}
/**
* @return GoogleAppsDriveLabelsV2Label
*/
public function getUpdatedLabel()
{
return $this->updatedLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse extends \Google\Model
{
/**
* The field of the created field. When left blank in a create request, a key
* will be autogenerated and can be identified here.
*
* @var string
*/
public $id;
/**
* The priority of the created field. The priority may change from what was
* specified to assure contiguous priorities between fields (1-n).
*
* @var int
*/
public $priority;
/**
* The field of the created field. When left blank in a create request, a key
* will be autogenerated and can be identified here.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The priority of the created field. The priority may change from what was
* specified to assure contiguous priorities between fields (1-n).
*
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse extends \Google\Model
{
/**
* The server-generated ID of the field.
*
* @var string
*/
public $fieldId;
/**
* The server-generated ID of the created choice within the field.
*
* @var string
*/
public $id;
/**
* The server-generated ID of the field.
*
* @param string $fieldId
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
/**
* The server-generated ID of the created choice within the field.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse');
@@ -0,0 +1,241 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse extends \Google\Model
{
protected $createFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse::class;
protected $createFieldDataType = '';
protected $createSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse::class;
protected $createSelectionChoiceDataType = '';
protected $deleteFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse::class;
protected $deleteFieldDataType = '';
protected $deleteSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse::class;
protected $deleteSelectionChoiceDataType = '';
protected $disableFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse::class;
protected $disableFieldDataType = '';
protected $disableSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse::class;
protected $disableSelectionChoiceDataType = '';
protected $enableFieldType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse::class;
protected $enableFieldDataType = '';
protected $enableSelectionChoiceType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse::class;
protected $enableSelectionChoiceDataType = '';
protected $updateFieldDataType = '';
protected $updateFieldTypeType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse::class;
protected $updateFieldTypeDataType = '';
protected $updateLabelType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse::class;
protected $updateLabelDataType = '';
protected $updateSelectionChoicePropertiesType = GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse::class;
protected $updateSelectionChoicePropertiesDataType = '';
/**
* Creates a field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse $createField
*/
public function setCreateField(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse $createField)
{
$this->createField = $createField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse
*/
public function getCreateField()
{
return $this->createField;
}
/**
* Creates a selection list option to add to a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse $createSelectionChoice
*/
public function setCreateSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse $createSelectionChoice)
{
$this->createSelectionChoice = $createSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse
*/
public function getCreateSelectionChoice()
{
return $this->createSelectionChoice;
}
/**
* Deletes a field from the label.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse $deleteField
*/
public function setDeleteField(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse $deleteField)
{
$this->deleteField = $deleteField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse
*/
public function getDeleteField()
{
return $this->deleteField;
}
/**
* Deletes a choice from a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse $deleteSelectionChoice
*/
public function setDeleteSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse $deleteSelectionChoice)
{
$this->deleteSelectionChoice = $deleteSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse
*/
public function getDeleteSelectionChoice()
{
return $this->deleteSelectionChoice;
}
/**
* Disables field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse $disableField
*/
public function setDisableField(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse $disableField)
{
$this->disableField = $disableField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse
*/
public function getDisableField()
{
return $this->disableField;
}
/**
* Disables a choice within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse $disableSelectionChoice
*/
public function setDisableSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse $disableSelectionChoice)
{
$this->disableSelectionChoice = $disableSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse
*/
public function getDisableSelectionChoice()
{
return $this->disableSelectionChoice;
}
/**
* Enables field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse $enableField
*/
public function setEnableField(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse $enableField)
{
$this->enableField = $enableField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse
*/
public function getEnableField()
{
return $this->enableField;
}
/**
* Enables a choice within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse $enableSelectionChoice
*/
public function setEnableSelectionChoice(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse $enableSelectionChoice)
{
$this->enableSelectionChoice = $enableSelectionChoice;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse
*/
public function getEnableSelectionChoice()
{
return $this->enableSelectionChoice;
}
/**
* Updates basic properties of a field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse $updateField
*/
public function setUpdateField(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse $updateField)
{
$this->updateField = $updateField;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse
*/
public function getUpdateField()
{
return $this->updateField;
}
/**
* Updates field type and/or type options.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse $updateFieldType
*/
public function setUpdateFieldType(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse $updateFieldType)
{
$this->updateFieldType = $updateFieldType;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse
*/
public function getUpdateFieldType()
{
return $this->updateFieldType;
}
/**
* Updates basic properties of a label.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse $updateLabel
*/
public function setUpdateLabel(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse $updateLabel)
{
$this->updateLabel = $updateLabel;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse
*/
public function getUpdateLabel()
{
return $this->updateLabel;
}
/**
* Updates a choice within a selection field.
*
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse $updateSelectionChoiceProperties
*/
public function setUpdateSelectionChoiceProperties(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse $updateSelectionChoiceProperties)
{
$this->updateSelectionChoiceProperties = $updateSelectionChoiceProperties;
}
/**
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse
*/
public function getUpdateSelectionChoiceProperties()
{
return $this->updateSelectionChoiceProperties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse');
@@ -0,0 +1,50 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse extends \Google\Model
{
/**
* The priority of the updated field. The priority may change from what was
* specified to assure contiguous priorities between fields (1-n).
*
* @var int
*/
public $priority;
/**
* The priority of the updated field. The priority may change from what was
* specified to assure contiguous priorities between fields (1-n).
*
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse');
@@ -0,0 +1,50 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse extends \Google\Model
{
/**
* The priority of the updated choice. The priority may change from what was
* specified to assure contiguous priorities between choices (1-n).
*
* @var int
*/
public $priority;
/**
* The priority of the updated choice. The priority may change from what was
* specified to assure contiguous priorities between choices (1-n).
*
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse');
@@ -0,0 +1,137 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2DisableLabelRequest extends \Google\Model
{
protected $disabledPolicyType = GoogleAppsDriveLabelsV2LifecycleDisabledPolicy::class;
protected $disabledPolicyDataType = '';
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @var string
*/
public $languageCode;
/**
* The fields that should be updated. At least one field must be specified.
* The root `disabled_policy` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @var string
*/
public $updateMask;
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @var bool
*/
public $useAdminAccess;
protected $writeControlType = GoogleAppsDriveLabelsV2WriteControl::class;
protected $writeControlDataType = '';
/**
* Disabled policy to use.
*
* @param GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy
*/
public function setDisabledPolicy(GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy)
{
$this->disabledPolicy = $disabledPolicy;
}
/**
* @return GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
*/
public function getDisabledPolicy()
{
return $this->disabledPolicy;
}
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* The fields that should be updated. At least one field must be specified.
* The root `disabled_policy` is implied and should not be specified. A single
* `*` can be used as a short-hand for updating every field.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
/**
* Provides control over how write requests are executed. Defaults to unset,
* which means the last write wins.
*
* @param GoogleAppsDriveLabelsV2WriteControl $writeControl
*/
public function setWriteControl(GoogleAppsDriveLabelsV2WriteControl $writeControl)
{
$this->writeControl = $writeControl;
}
/**
* @return GoogleAppsDriveLabelsV2WriteControl
*/
public function getWriteControl()
{
return $this->writeControl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2DisableLabelRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2DisableLabelRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2EnableLabelRequest extends \Google\Model
{
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @var string
*/
public $languageCode;
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @var bool
*/
public $useAdminAccess;
protected $writeControlType = GoogleAppsDriveLabelsV2WriteControl::class;
protected $writeControlDataType = '';
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
/**
* Provides control over how write requests are executed. Defaults to unset,
* which means the last write wins.
*
* @param GoogleAppsDriveLabelsV2WriteControl $writeControl
*/
public function setWriteControl(GoogleAppsDriveLabelsV2WriteControl $writeControl)
{
$this->writeControl = $writeControl;
}
/**
* @return GoogleAppsDriveLabelsV2WriteControl
*/
public function getWriteControl()
{
return $this->writeControl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2EnableLabelRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2EnableLabelRequest');
@@ -0,0 +1,417 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2Field extends \Google\Model
{
protected $appliedCapabilitiesType = GoogleAppsDriveLabelsV2FieldAppliedCapabilities::class;
protected $appliedCapabilitiesDataType = '';
/**
* Output only. The time this field was created.
*
* @var string
*/
public $createTime;
protected $creatorType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $creatorDataType = '';
protected $dateOptionsType = GoogleAppsDriveLabelsV2FieldDateOptions::class;
protected $dateOptionsDataType = '';
/**
* Output only. The time this field was disabled. This value has no meaning
* when the field is not disabled.
*
* @var string
*/
public $disableTime;
protected $disablerType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $disablerDataType = '';
protected $displayHintsType = GoogleAppsDriveLabelsV2FieldDisplayHints::class;
protected $displayHintsDataType = '';
/**
* Output only. The key of a field, unique within a label or library. This
* value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`.
*
* @var string
*/
public $id;
protected $integerOptionsType = GoogleAppsDriveLabelsV2FieldIntegerOptions::class;
protected $integerOptionsDataType = '';
protected $lifecycleType = GoogleAppsDriveLabelsV2Lifecycle::class;
protected $lifecycleDataType = '';
protected $lockStatusType = GoogleAppsDriveLabelsV2LockStatus::class;
protected $lockStatusDataType = '';
protected $propertiesType = GoogleAppsDriveLabelsV2FieldProperties::class;
protected $propertiesDataType = '';
protected $publisherType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $publisherDataType = '';
/**
* Output only. The key to use when constructing Drive search queries to find
* files based on values defined for this field on files. For example,
* "`{query_key}` > 2001-01-01".
*
* @var string
*/
public $queryKey;
protected $schemaCapabilitiesType = GoogleAppsDriveLabelsV2FieldSchemaCapabilities::class;
protected $schemaCapabilitiesDataType = '';
protected $selectionOptionsType = GoogleAppsDriveLabelsV2FieldSelectionOptions::class;
protected $selectionOptionsDataType = '';
protected $textOptionsType = GoogleAppsDriveLabelsV2FieldTextOptions::class;
protected $textOptionsDataType = '';
/**
* Output only. The time this field was updated.
*
* @var string
*/
public $updateTime;
protected $updaterType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $updaterDataType = '';
protected $userOptionsType = GoogleAppsDriveLabelsV2FieldUserOptions::class;
protected $userOptionsDataType = '';
/**
* Output only. The capabilities this user has on this field and its value
* when the label is applied on Drive items.
*
* @param GoogleAppsDriveLabelsV2FieldAppliedCapabilities $appliedCapabilities
*/
public function setAppliedCapabilities(GoogleAppsDriveLabelsV2FieldAppliedCapabilities $appliedCapabilities)
{
$this->appliedCapabilities = $appliedCapabilities;
}
/**
* @return GoogleAppsDriveLabelsV2FieldAppliedCapabilities
*/
public function getAppliedCapabilities()
{
return $this->appliedCapabilities;
}
/**
* Output only. The time this field was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The user who created this field.
*
* @param GoogleAppsDriveLabelsV2UserInfo $creator
*/
public function setCreator(GoogleAppsDriveLabelsV2UserInfo $creator)
{
$this->creator = $creator;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getCreator()
{
return $this->creator;
}
/**
* Date field options.
*
* @param GoogleAppsDriveLabelsV2FieldDateOptions $dateOptions
*/
public function setDateOptions(GoogleAppsDriveLabelsV2FieldDateOptions $dateOptions)
{
$this->dateOptions = $dateOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldDateOptions
*/
public function getDateOptions()
{
return $this->dateOptions;
}
/**
* Output only. The time this field was disabled. This value has no meaning
* when the field is not disabled.
*
* @param string $disableTime
*/
public function setDisableTime($disableTime)
{
$this->disableTime = $disableTime;
}
/**
* @return string
*/
public function getDisableTime()
{
return $this->disableTime;
}
/**
* Output only. The user who disabled this field. This value has no meaning
* when the field is not disabled.
*
* @param GoogleAppsDriveLabelsV2UserInfo $disabler
*/
public function setDisabler(GoogleAppsDriveLabelsV2UserInfo $disabler)
{
$this->disabler = $disabler;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getDisabler()
{
return $this->disabler;
}
/**
* Output only. UI display hints for rendering a field.
*
* @param GoogleAppsDriveLabelsV2FieldDisplayHints $displayHints
*/
public function setDisplayHints(GoogleAppsDriveLabelsV2FieldDisplayHints $displayHints)
{
$this->displayHints = $displayHints;
}
/**
* @return GoogleAppsDriveLabelsV2FieldDisplayHints
*/
public function getDisplayHints()
{
return $this->displayHints;
}
/**
* Output only. The key of a field, unique within a label or library. This
* value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Integer field options.
*
* @param GoogleAppsDriveLabelsV2FieldIntegerOptions $integerOptions
*/
public function setIntegerOptions(GoogleAppsDriveLabelsV2FieldIntegerOptions $integerOptions)
{
$this->integerOptions = $integerOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldIntegerOptions
*/
public function getIntegerOptions()
{
return $this->integerOptions;
}
/**
* Output only. The lifecycle of this field.
*
* @param GoogleAppsDriveLabelsV2Lifecycle $lifecycle
*/
public function setLifecycle(GoogleAppsDriveLabelsV2Lifecycle $lifecycle)
{
$this->lifecycle = $lifecycle;
}
/**
* @return GoogleAppsDriveLabelsV2Lifecycle
*/
public function getLifecycle()
{
return $this->lifecycle;
}
/**
* Output only. The `LockStatus` of this field.
*
* @param GoogleAppsDriveLabelsV2LockStatus $lockStatus
*/
public function setLockStatus(GoogleAppsDriveLabelsV2LockStatus $lockStatus)
{
$this->lockStatus = $lockStatus;
}
/**
* @return GoogleAppsDriveLabelsV2LockStatus
*/
public function getLockStatus()
{
return $this->lockStatus;
}
/**
* The basic properties of the field.
*
* @param GoogleAppsDriveLabelsV2FieldProperties $properties
*/
public function setProperties(GoogleAppsDriveLabelsV2FieldProperties $properties)
{
$this->properties = $properties;
}
/**
* @return GoogleAppsDriveLabelsV2FieldProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* Output only. The user who published this field. This value has no meaning
* when the field is not published.
*
* @param GoogleAppsDriveLabelsV2UserInfo $publisher
*/
public function setPublisher(GoogleAppsDriveLabelsV2UserInfo $publisher)
{
$this->publisher = $publisher;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getPublisher()
{
return $this->publisher;
}
/**
* Output only. The key to use when constructing Drive search queries to find
* files based on values defined for this field on files. For example,
* "`{query_key}` > 2001-01-01".
*
* @param string $queryKey
*/
public function setQueryKey($queryKey)
{
$this->queryKey = $queryKey;
}
/**
* @return string
*/
public function getQueryKey()
{
return $this->queryKey;
}
/**
* Output only. The capabilities this user has when editing this field.
*
* @param GoogleAppsDriveLabelsV2FieldSchemaCapabilities $schemaCapabilities
*/
public function setSchemaCapabilities(GoogleAppsDriveLabelsV2FieldSchemaCapabilities $schemaCapabilities)
{
$this->schemaCapabilities = $schemaCapabilities;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSchemaCapabilities
*/
public function getSchemaCapabilities()
{
return $this->schemaCapabilities;
}
/**
* Selection field options.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptions $selectionOptions
*/
public function setSelectionOptions(GoogleAppsDriveLabelsV2FieldSelectionOptions $selectionOptions)
{
$this->selectionOptions = $selectionOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptions
*/
public function getSelectionOptions()
{
return $this->selectionOptions;
}
/**
* Text field options.
*
* @param GoogleAppsDriveLabelsV2FieldTextOptions $textOptions
*/
public function setTextOptions(GoogleAppsDriveLabelsV2FieldTextOptions $textOptions)
{
$this->textOptions = $textOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldTextOptions
*/
public function getTextOptions()
{
return $this->textOptions;
}
/**
* Output only. The time this field was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The user who modified this field.
*
* @param GoogleAppsDriveLabelsV2UserInfo $updater
*/
public function setUpdater(GoogleAppsDriveLabelsV2UserInfo $updater)
{
$this->updater = $updater;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getUpdater()
{
return $this->updater;
}
/**
* User field options.
*
* @param GoogleAppsDriveLabelsV2FieldUserOptions $userOptions
*/
public function setUserOptions(GoogleAppsDriveLabelsV2FieldUserOptions $userOptions)
{
$this->userOptions = $userOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldUserOptions
*/
public function getUserOptions()
{
return $this->userOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2Field::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2Field');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldAppliedCapabilities extends \Google\Model
{
/**
* Whether the user can read related applied metadata on items.
*
* @var bool
*/
public $canRead;
/**
* Whether the user can search for Drive items referencing this field.
*
* @var bool
*/
public $canSearch;
/**
* Whether the user can set this field on Drive items.
*
* @var bool
*/
public $canWrite;
/**
* Whether the user can read related applied metadata on items.
*
* @param bool $canRead
*/
public function setCanRead($canRead)
{
$this->canRead = $canRead;
}
/**
* @return bool
*/
public function getCanRead()
{
return $this->canRead;
}
/**
* Whether the user can search for Drive items referencing this field.
*
* @param bool $canSearch
*/
public function setCanSearch($canSearch)
{
$this->canSearch = $canSearch;
}
/**
* @return bool
*/
public function getCanSearch()
{
return $this->canSearch;
}
/**
* Whether the user can set this field on Drive items.
*
* @param bool $canWrite
*/
public function setCanWrite($canWrite)
{
$this->canWrite = $canWrite;
}
/**
* @return bool
*/
public function getCanWrite()
{
return $this->canWrite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldAppliedCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldAppliedCapabilities');
@@ -0,0 +1,122 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldDateOptions extends \Google\Model
{
/**
* Date format unspecified.
*/
public const DATE_FORMAT_TYPE_DATE_FORMAT_UNSPECIFIED = 'DATE_FORMAT_UNSPECIFIED';
/**
* Includes full month name. For example, January 12, 1999 (MMMM d, y)
*/
public const DATE_FORMAT_TYPE_LONG_DATE = 'LONG_DATE';
/**
* Short, numeric, representation. For example, 12/13/99 (M/d/yy)
*/
public const DATE_FORMAT_TYPE_SHORT_DATE = 'SHORT_DATE';
/**
* Output only. ICU date format.
*
* @var string
*/
public $dateFormat;
/**
* Localized date formatting option. Field values are rendered in this format
* according to their locale.
*
* @var string
*/
public $dateFormatType;
protected $maxValueType = GoogleTypeDate::class;
protected $maxValueDataType = '';
protected $minValueType = GoogleTypeDate::class;
protected $minValueDataType = '';
/**
* Output only. ICU date format.
*
* @param string $dateFormat
*/
public function setDateFormat($dateFormat)
{
$this->dateFormat = $dateFormat;
}
/**
* @return string
*/
public function getDateFormat()
{
return $this->dateFormat;
}
/**
* Localized date formatting option. Field values are rendered in this format
* according to their locale.
*
* Accepted values: DATE_FORMAT_UNSPECIFIED, LONG_DATE, SHORT_DATE
*
* @param self::DATE_FORMAT_TYPE_* $dateFormatType
*/
public function setDateFormatType($dateFormatType)
{
$this->dateFormatType = $dateFormatType;
}
/**
* @return self::DATE_FORMAT_TYPE_*
*/
public function getDateFormatType()
{
return $this->dateFormatType;
}
/**
* Output only. Maximum valid value (year, month, day).
*
* @param GoogleTypeDate $maxValue
*/
public function setMaxValue(GoogleTypeDate $maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return GoogleTypeDate
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* Output only. Minimum valid value (year, month, day).
*
* @param GoogleTypeDate $minValue
*/
public function setMinValue(GoogleTypeDate $minValue)
{
$this->minValue = $minValue;
}
/**
* @return GoogleTypeDate
*/
public function getMinValue()
{
return $this->minValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldDateOptions::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldDateOptions');
@@ -0,0 +1,118 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldDisplayHints extends \Google\Model
{
/**
* Whether the field should be shown in the UI as disabled.
*
* @var bool
*/
public $disabled;
/**
* This field should be hidden in the search menu when searching for Drive
* items.
*
* @var bool
*/
public $hiddenInSearch;
/**
* Whether the field should be shown as required in the UI.
*
* @var bool
*/
public $required;
/**
* This field should be shown in the apply menu when applying values to a
* Drive item.
*
* @var bool
*/
public $shownInApply;
/**
* Whether the field should be shown in the UI as disabled.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* This field should be hidden in the search menu when searching for Drive
* items.
*
* @param bool $hiddenInSearch
*/
public function setHiddenInSearch($hiddenInSearch)
{
$this->hiddenInSearch = $hiddenInSearch;
}
/**
* @return bool
*/
public function getHiddenInSearch()
{
return $this->hiddenInSearch;
}
/**
* Whether the field should be shown as required in the UI.
*
* @param bool $required
*/
public function setRequired($required)
{
$this->required = $required;
}
/**
* @return bool
*/
public function getRequired()
{
return $this->required;
}
/**
* This field should be shown in the apply menu when applying values to a
* Drive item.
*
* @param bool $shownInApply
*/
public function setShownInApply($shownInApply)
{
$this->shownInApply = $shownInApply;
}
/**
* @return bool
*/
public function getShownInApply()
{
return $this->shownInApply;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldDisplayHints::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldDisplayHints');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldIntegerOptions extends \Google\Model
{
/**
* Output only. The maximum valid value for the integer field.
*
* @var string
*/
public $maxValue;
/**
* Output only. The minimum valid value for the integer field.
*
* @var string
*/
public $minValue;
/**
* Output only. The maximum valid value for the integer field.
*
* @param string $maxValue
*/
public function setMaxValue($maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return string
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* Output only. The minimum valid value for the integer field.
*
* @param string $minValue
*/
public function setMinValue($minValue)
{
$this->minValue = $minValue;
}
/**
* @return string
*/
public function getMinValue()
{
return $this->minValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldIntegerOptions::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldIntegerOptions');
@@ -0,0 +1,200 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldLimits extends \Google\Model
{
protected $dateLimitsType = GoogleAppsDriveLabelsV2DateLimits::class;
protected $dateLimitsDataType = '';
protected $integerLimitsType = GoogleAppsDriveLabelsV2IntegerLimits::class;
protected $integerLimitsDataType = '';
protected $longTextLimitsType = GoogleAppsDriveLabelsV2LongTextLimits::class;
protected $longTextLimitsDataType = '';
/**
* Limits for field description, also called help text.
*
* @var int
*/
public $maxDescriptionLength;
/**
* Limits for field title.
*
* @var int
*/
public $maxDisplayNameLength;
/**
* Maximum length for the id.
*
* @var int
*/
public $maxIdLength;
protected $selectionLimitsType = GoogleAppsDriveLabelsV2SelectionLimits::class;
protected $selectionLimitsDataType = '';
protected $textLimitsType = GoogleAppsDriveLabelsV2TextLimits::class;
protected $textLimitsDataType = '';
protected $userLimitsType = GoogleAppsDriveLabelsV2UserLimits::class;
protected $userLimitsDataType = '';
/**
* Date field limits.
*
* @param GoogleAppsDriveLabelsV2DateLimits $dateLimits
*/
public function setDateLimits(GoogleAppsDriveLabelsV2DateLimits $dateLimits)
{
$this->dateLimits = $dateLimits;
}
/**
* @return GoogleAppsDriveLabelsV2DateLimits
*/
public function getDateLimits()
{
return $this->dateLimits;
}
/**
* Integer field limits.
*
* @param GoogleAppsDriveLabelsV2IntegerLimits $integerLimits
*/
public function setIntegerLimits(GoogleAppsDriveLabelsV2IntegerLimits $integerLimits)
{
$this->integerLimits = $integerLimits;
}
/**
* @return GoogleAppsDriveLabelsV2IntegerLimits
*/
public function getIntegerLimits()
{
return $this->integerLimits;
}
/**
* Long text field limits.
*
* @param GoogleAppsDriveLabelsV2LongTextLimits $longTextLimits
*/
public function setLongTextLimits(GoogleAppsDriveLabelsV2LongTextLimits $longTextLimits)
{
$this->longTextLimits = $longTextLimits;
}
/**
* @return GoogleAppsDriveLabelsV2LongTextLimits
*/
public function getLongTextLimits()
{
return $this->longTextLimits;
}
/**
* Limits for field description, also called help text.
*
* @param int $maxDescriptionLength
*/
public function setMaxDescriptionLength($maxDescriptionLength)
{
$this->maxDescriptionLength = $maxDescriptionLength;
}
/**
* @return int
*/
public function getMaxDescriptionLength()
{
return $this->maxDescriptionLength;
}
/**
* Limits for field title.
*
* @param int $maxDisplayNameLength
*/
public function setMaxDisplayNameLength($maxDisplayNameLength)
{
$this->maxDisplayNameLength = $maxDisplayNameLength;
}
/**
* @return int
*/
public function getMaxDisplayNameLength()
{
return $this->maxDisplayNameLength;
}
/**
* Maximum length for the id.
*
* @param int $maxIdLength
*/
public function setMaxIdLength($maxIdLength)
{
$this->maxIdLength = $maxIdLength;
}
/**
* @return int
*/
public function getMaxIdLength()
{
return $this->maxIdLength;
}
/**
* Selection field limits.
*
* @param GoogleAppsDriveLabelsV2SelectionLimits $selectionLimits
*/
public function setSelectionLimits(GoogleAppsDriveLabelsV2SelectionLimits $selectionLimits)
{
$this->selectionLimits = $selectionLimits;
}
/**
* @return GoogleAppsDriveLabelsV2SelectionLimits
*/
public function getSelectionLimits()
{
return $this->selectionLimits;
}
/**
* The relevant limits for the specified Field.Type. Text field limits.
*
* @param GoogleAppsDriveLabelsV2TextLimits $textLimits
*/
public function setTextLimits(GoogleAppsDriveLabelsV2TextLimits $textLimits)
{
$this->textLimits = $textLimits;
}
/**
* @return GoogleAppsDriveLabelsV2TextLimits
*/
public function getTextLimits()
{
return $this->textLimits;
}
/**
* User field limits.
*
* @param GoogleAppsDriveLabelsV2UserLimits $userLimits
*/
public function setUserLimits(GoogleAppsDriveLabelsV2UserLimits $userLimits)
{
$this->userLimits = $userLimits;
}
/**
* @return GoogleAppsDriveLabelsV2UserLimits
*/
public function getUserLimits()
{
return $this->userLimits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldLimits');
@@ -0,0 +1,48 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldListOptions extends \Google\Model
{
/**
* Maximum number of entries permitted.
*
* @var int
*/
public $maxEntries;
/**
* Maximum number of entries permitted.
*
* @param int $maxEntries
*/
public function setMaxEntries($maxEntries)
{
$this->maxEntries = $maxEntries;
}
/**
* @return int
*/
public function getMaxEntries()
{
return $this->maxEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldListOptions::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldListOptions');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldLongTextOptions extends \Google\Model
{
/**
* @var int
*/
public $maxLength;
/**
* @var int
*/
public $minLength;
/**
* @param int
*/
public function setMaxLength($maxLength)
{
$this->maxLength = $maxLength;
}
/**
* @return int
*/
public function getMaxLength()
{
return $this->maxLength;
}
/**
* @param int
*/
public function setMinLength($minLength)
{
$this->minLength = $minLength;
}
/**
* @return int
*/
public function getMinLength()
{
return $this->minLength;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldLongTextOptions::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldLongTextOptions');
@@ -0,0 +1,94 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldProperties extends \Google\Model
{
/**
* Required. The display text to show in the UI identifying this field.
*
* @var string
*/
public $displayName;
/**
* Input only. Insert or move this field before the indicated field. If empty,
* the field is placed at the end of the list.
*
* @var string
*/
public $insertBeforeField;
/**
* Whether the field should be marked as required.
*
* @var bool
*/
public $required;
/**
* Required. The display text to show in the UI identifying this field.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Input only. Insert or move this field before the indicated field. If empty,
* the field is placed at the end of the list.
*
* @param string $insertBeforeField
*/
public function setInsertBeforeField($insertBeforeField)
{
$this->insertBeforeField = $insertBeforeField;
}
/**
* @return string
*/
public function getInsertBeforeField()
{
return $this->insertBeforeField;
}
/**
* Whether the field should be marked as required.
*
* @param bool $required
*/
public function setRequired($required)
{
$this->required = $required;
}
/**
* @return bool
*/
public function getRequired()
{
return $this->required;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldProperties::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldProperties');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldSchemaCapabilities extends \Google\Model
{
/**
* Whether the user can delete this field. The user must have permission and
* the field must be deprecated.
*
* @var bool
*/
public $canDelete;
/**
* Whether the user can disable this field. The user must have permission and
* this field must not already be disabled.
*
* @var bool
*/
public $canDisable;
/**
* Whether the user can enable this field. The user must have permission and
* this field must be disabled.
*
* @var bool
*/
public $canEnable;
/**
* Whether the user can change this field.
*
* @var bool
*/
public $canUpdate;
/**
* Whether the user can delete this field. The user must have permission and
* the field must be deprecated.
*
* @param bool $canDelete
*/
public function setCanDelete($canDelete)
{
$this->canDelete = $canDelete;
}
/**
* @return bool
*/
public function getCanDelete()
{
return $this->canDelete;
}
/**
* Whether the user can disable this field. The user must have permission and
* this field must not already be disabled.
*
* @param bool $canDisable
*/
public function setCanDisable($canDisable)
{
$this->canDisable = $canDisable;
}
/**
* @return bool
*/
public function getCanDisable()
{
return $this->canDisable;
}
/**
* Whether the user can enable this field. The user must have permission and
* this field must be disabled.
*
* @param bool $canEnable
*/
public function setCanEnable($canEnable)
{
$this->canEnable = $canEnable;
}
/**
* @return bool
*/
public function getCanEnable()
{
return $this->canEnable;
}
/**
* Whether the user can change this field.
*
* @param bool $canUpdate
*/
public function setCanUpdate($canUpdate)
{
$this->canUpdate = $canUpdate;
}
/**
* @return bool
*/
public function getCanUpdate()
{
return $this->canUpdate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldSchemaCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldSchemaCapabilities');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldSelectionOptions extends \Google\Collection
{
protected $collection_key = 'choices';
protected $choicesType = GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice::class;
protected $choicesDataType = 'array';
protected $listOptionsType = GoogleAppsDriveLabelsV2FieldListOptions::class;
protected $listOptionsDataType = '';
/**
* The options available for this selection field. The list order is
* consistent, and modified with `insert_before_choice`.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice[] $choices
*/
public function setChoices($choices)
{
$this->choices = $choices;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice[]
*/
public function getChoices()
{
return $this->choices;
}
/**
* When specified, indicates this field supports a list of values. Once the
* field is published, this cannot be changed.
*
* @param GoogleAppsDriveLabelsV2FieldListOptions $listOptions
*/
public function setListOptions(GoogleAppsDriveLabelsV2FieldListOptions $listOptions)
{
$this->listOptions = $listOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldListOptions
*/
public function getListOptions()
{
return $this->listOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldSelectionOptions::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldSelectionOptions');
@@ -0,0 +1,325 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice extends \Google\Model
{
protected $appliedCapabilitiesType = GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities::class;
protected $appliedCapabilitiesDataType = '';
/**
* Output only. The time this choice was created.
*
* @var string
*/
public $createTime;
protected $creatorType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $creatorDataType = '';
/**
* Output only. The time this choice was disabled. This value has no meaning
* when the choice is not disabled.
*
* @var string
*/
public $disableTime;
protected $disablerType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $disablerDataType = '';
protected $displayHintsType = GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints::class;
protected $displayHintsDataType = '';
/**
* The unique value of the choice. This ID is autogenerated. Matches the
* regex: `([a-zA-Z0-9_])+`.
*
* @var string
*/
public $id;
protected $lifecycleType = GoogleAppsDriveLabelsV2Lifecycle::class;
protected $lifecycleDataType = '';
protected $lockStatusType = GoogleAppsDriveLabelsV2LockStatus::class;
protected $lockStatusDataType = '';
protected $propertiesType = GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties::class;
protected $propertiesDataType = '';
/**
* Output only. The time this choice was published. This value has no meaning
* when the choice is not published.
*
* @var string
*/
public $publishTime;
protected $publisherType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $publisherDataType = '';
protected $schemaCapabilitiesType = GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities::class;
protected $schemaCapabilitiesDataType = '';
/**
* Output only. The time this choice was updated last.
*
* @var string
*/
public $updateTime;
protected $updaterType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $updaterDataType = '';
/**
* Output only. The capabilities related to this choice on applied metadata.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities $appliedCapabilities
*/
public function setAppliedCapabilities(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities $appliedCapabilities)
{
$this->appliedCapabilities = $appliedCapabilities;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities
*/
public function getAppliedCapabilities()
{
return $this->appliedCapabilities;
}
/**
* Output only. The time this choice was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The user who created this choice.
*
* @param GoogleAppsDriveLabelsV2UserInfo $creator
*/
public function setCreator(GoogleAppsDriveLabelsV2UserInfo $creator)
{
$this->creator = $creator;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getCreator()
{
return $this->creator;
}
/**
* Output only. The time this choice was disabled. This value has no meaning
* when the choice is not disabled.
*
* @param string $disableTime
*/
public function setDisableTime($disableTime)
{
$this->disableTime = $disableTime;
}
/**
* @return string
*/
public function getDisableTime()
{
return $this->disableTime;
}
/**
* Output only. The user who disabled this choice. This value has no meaning
* when the option is not disabled.
*
* @param GoogleAppsDriveLabelsV2UserInfo $disabler
*/
public function setDisabler(GoogleAppsDriveLabelsV2UserInfo $disabler)
{
$this->disabler = $disabler;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getDisabler()
{
return $this->disabler;
}
/**
* Output only. UI display hints for rendering a choice.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints $displayHints
*/
public function setDisplayHints(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints $displayHints)
{
$this->displayHints = $displayHints;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints
*/
public function getDisplayHints()
{
return $this->displayHints;
}
/**
* The unique value of the choice. This ID is autogenerated. Matches the
* regex: `([a-zA-Z0-9_])+`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Lifecycle of the choice.
*
* @param GoogleAppsDriveLabelsV2Lifecycle $lifecycle
*/
public function setLifecycle(GoogleAppsDriveLabelsV2Lifecycle $lifecycle)
{
$this->lifecycle = $lifecycle;
}
/**
* @return GoogleAppsDriveLabelsV2Lifecycle
*/
public function getLifecycle()
{
return $this->lifecycle;
}
/**
* Output only. The `LockStatus` of this choice.
*
* @param GoogleAppsDriveLabelsV2LockStatus $lockStatus
*/
public function setLockStatus(GoogleAppsDriveLabelsV2LockStatus $lockStatus)
{
$this->lockStatus = $lockStatus;
}
/**
* @return GoogleAppsDriveLabelsV2LockStatus
*/
public function getLockStatus()
{
return $this->lockStatus;
}
/**
* Basic properties of the choice.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties $properties
*/
public function setProperties(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties $properties)
{
$this->properties = $properties;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* Output only. The time this choice was published. This value has no meaning
* when the choice is not published.
*
* @param string $publishTime
*/
public function setPublishTime($publishTime)
{
$this->publishTime = $publishTime;
}
/**
* @return string
*/
public function getPublishTime()
{
return $this->publishTime;
}
/**
* Output only. The user who published this choice. This value has no meaning
* when the choice is not published.
*
* @param GoogleAppsDriveLabelsV2UserInfo $publisher
*/
public function setPublisher(GoogleAppsDriveLabelsV2UserInfo $publisher)
{
$this->publisher = $publisher;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getPublisher()
{
return $this->publisher;
}
/**
* Output only. The capabilities related to this option when editing the
* option.
*
* @param GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities $schemaCapabilities
*/
public function setSchemaCapabilities(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities $schemaCapabilities)
{
$this->schemaCapabilities = $schemaCapabilities;
}
/**
* @return GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities
*/
public function getSchemaCapabilities()
{
return $this->schemaCapabilities;
}
/**
* Output only. The time this choice was updated last.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The user who updated this choice last.
*
* @param GoogleAppsDriveLabelsV2UserInfo $updater
*/
public function setUpdater(GoogleAppsDriveLabelsV2UserInfo $updater)
{
$this->updater = $updater;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getUpdater()
{
return $this->updater;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities extends \Google\Model
{
/**
* Whether the user can read related applied metadata on items.
*
* @var bool
*/
public $canRead;
/**
* Whether the user can use this choice in search queries.
*
* @var bool
*/
public $canSearch;
/**
* Whether the user can select this choice on an item.
*
* @var bool
*/
public $canSelect;
/**
* Whether the user can read related applied metadata on items.
*
* @param bool $canRead
*/
public function setCanRead($canRead)
{
$this->canRead = $canRead;
}
/**
* @return bool
*/
public function getCanRead()
{
return $this->canRead;
}
/**
* Whether the user can use this choice in search queries.
*
* @param bool $canSearch
*/
public function setCanSearch($canSearch)
{
$this->canSearch = $canSearch;
}
/**
* @return bool
*/
public function getCanSearch()
{
return $this->canSearch;
}
/**
* Whether the user can select this choice on an item.
*
* @param bool $canSelect
*/
public function setCanSelect($canSelect)
{
$this->canSelect = $canSelect;
}
/**
* @return bool
*/
public function getCanSelect()
{
return $this->canSelect;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities');
@@ -0,0 +1,164 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints extends \Google\Model
{
protected $badgeColorsType = GoogleAppsDriveLabelsV2BadgeColors::class;
protected $badgeColorsDataType = '';
/**
* The priority of this badge. Used to compare and sort between multiple
* badges. A lower number means the badge should be shown first. When a
* badging configuration is not present, this will be 0. Otherwise, this will
* be set to `BadgeConfig.priority_override` or the default heuristic which
* prefers creation date of the label, and field and option priority.
*
* @var string
*/
public $badgePriority;
protected $darkBadgeColorsType = GoogleAppsDriveLabelsV2BadgeColors::class;
protected $darkBadgeColorsDataType = '';
/**
* Whether the option should be shown in the UI as disabled.
*
* @var bool
*/
public $disabled;
/**
* This option should be hidden in the search menu when searching for Drive
* items.
*
* @var bool
*/
public $hiddenInSearch;
/**
* This option should be shown in the apply menu when applying values to a
* Drive item.
*
* @var bool
*/
public $shownInApply;
/**
* The colors to use for the badge. Changed to Google Material colors based on
* the chosen `properties.badge_config.color`.
*
* @param GoogleAppsDriveLabelsV2BadgeColors $badgeColors
*/
public function setBadgeColors(GoogleAppsDriveLabelsV2BadgeColors $badgeColors)
{
$this->badgeColors = $badgeColors;
}
/**
* @return GoogleAppsDriveLabelsV2BadgeColors
*/
public function getBadgeColors()
{
return $this->badgeColors;
}
/**
* The priority of this badge. Used to compare and sort between multiple
* badges. A lower number means the badge should be shown first. When a
* badging configuration is not present, this will be 0. Otherwise, this will
* be set to `BadgeConfig.priority_override` or the default heuristic which
* prefers creation date of the label, and field and option priority.
*
* @param string $badgePriority
*/
public function setBadgePriority($badgePriority)
{
$this->badgePriority = $badgePriority;
}
/**
* @return string
*/
public function getBadgePriority()
{
return $this->badgePriority;
}
/**
* The dark-mode color to use for the badge. Changed to Google Material colors
* based on the chosen `properties.badge_config.color`.
*
* @param GoogleAppsDriveLabelsV2BadgeColors $darkBadgeColors
*/
public function setDarkBadgeColors(GoogleAppsDriveLabelsV2BadgeColors $darkBadgeColors)
{
$this->darkBadgeColors = $darkBadgeColors;
}
/**
* @return GoogleAppsDriveLabelsV2BadgeColors
*/
public function getDarkBadgeColors()
{
return $this->darkBadgeColors;
}
/**
* Whether the option should be shown in the UI as disabled.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* This option should be hidden in the search menu when searching for Drive
* items.
*
* @param bool $hiddenInSearch
*/
public function setHiddenInSearch($hiddenInSearch)
{
$this->hiddenInSearch = $hiddenInSearch;
}
/**
* @return bool
*/
public function getHiddenInSearch()
{
return $this->hiddenInSearch;
}
/**
* This option should be shown in the apply menu when applying values to a
* Drive item.
*
* @param bool $shownInApply
*/
public function setShownInApply($shownInApply)
{
$this->shownInApply = $shownInApply;
}
/**
* @return bool
*/
public function getShownInApply()
{
return $this->shownInApply;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints');
@@ -0,0 +1,113 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties extends \Google\Model
{
protected $badgeConfigType = GoogleAppsDriveLabelsV2BadgeConfig::class;
protected $badgeConfigDataType = '';
/**
* The description of this label.
*
* @var string
*/
public $description;
/**
* Required. The display text to show in the UI identifying this field.
*
* @var string
*/
public $displayName;
/**
* Input only. Insert or move this choice before the indicated choice. If
* empty, the choice is placed at the end of the list.
*
* @var string
*/
public $insertBeforeChoice;
/**
* The badge configuration for this choice. When set, the label that owns this
* choice is considered a "badged label".
*
* @param GoogleAppsDriveLabelsV2BadgeConfig $badgeConfig
*/
public function setBadgeConfig(GoogleAppsDriveLabelsV2BadgeConfig $badgeConfig)
{
$this->badgeConfig = $badgeConfig;
}
/**
* @return GoogleAppsDriveLabelsV2BadgeConfig
*/
public function getBadgeConfig()
{
return $this->badgeConfig;
}
/**
* The description of this label.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. The display text to show in the UI identifying this field.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Input only. Insert or move this choice before the indicated choice. If
* empty, the choice is placed at the end of the list.
*
* @param string $insertBeforeChoice
*/
public function setInsertBeforeChoice($insertBeforeChoice)
{
$this->insertBeforeChoice = $insertBeforeChoice;
}
/**
* @return string
*/
public function getInsertBeforeChoice()
{
return $this->insertBeforeChoice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties');
@@ -0,0 +1,114 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities extends \Google\Model
{
/**
* Whether the user can delete this choice.
*
* @var bool
*/
public $canDelete;
/**
* Whether the user can disable this choice.
*
* @var bool
*/
public $canDisable;
/**
* Whether the user can enable this choice.
*
* @var bool
*/
public $canEnable;
/**
* Whether the user can update this choice.
*
* @var bool
*/
public $canUpdate;
/**
* Whether the user can delete this choice.
*
* @param bool $canDelete
*/
public function setCanDelete($canDelete)
{
$this->canDelete = $canDelete;
}
/**
* @return bool
*/
public function getCanDelete()
{
return $this->canDelete;
}
/**
* Whether the user can disable this choice.
*
* @param bool $canDisable
*/
public function setCanDisable($canDisable)
{
$this->canDisable = $canDisable;
}
/**
* @return bool
*/
public function getCanDisable()
{
return $this->canDisable;
}
/**
* Whether the user can enable this choice.
*
* @param bool $canEnable
*/
public function setCanEnable($canEnable)
{
$this->canEnable = $canEnable;
}
/**
* @return bool
*/
public function getCanEnable()
{
return $this->canEnable;
}
/**
* Whether the user can update this choice.
*
* @param bool $canUpdate
*/
public function setCanUpdate($canUpdate)
{
$this->canUpdate = $canUpdate;
}
/**
* @return bool
*/
public function getCanUpdate()
{
return $this->canUpdate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldTextOptions extends \Google\Model
{
/**
* Output only. The maximum valid length of values for the text field.
*
* @var int
*/
public $maxLength;
/**
* Output only. The minimum valid length of values for the text field.
*
* @var int
*/
public $minLength;
/**
* Output only. The maximum valid length of values for the text field.
*
* @param int $maxLength
*/
public function setMaxLength($maxLength)
{
$this->maxLength = $maxLength;
}
/**
* @return int
*/
public function getMaxLength()
{
return $this->maxLength;
}
/**
* Output only. The minimum valid length of values for the text field.
*
* @param int $minLength
*/
public function setMinLength($minLength)
{
$this->minLength = $minLength;
}
/**
* @return int
*/
public function getMinLength()
{
return $this->minLength;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldTextOptions::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldTextOptions');
@@ -0,0 +1,45 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2FieldUserOptions extends \Google\Model
{
protected $listOptionsType = GoogleAppsDriveLabelsV2FieldListOptions::class;
protected $listOptionsDataType = '';
/**
* When specified, indicates that this field supports a list of values. Once
* the field is published, this cannot be changed.
*
* @param GoogleAppsDriveLabelsV2FieldListOptions $listOptions
*/
public function setListOptions(GoogleAppsDriveLabelsV2FieldListOptions $listOptions)
{
$this->listOptions = $listOptions;
}
/**
* @return GoogleAppsDriveLabelsV2FieldListOptions
*/
public function getListOptions()
{
return $this->listOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2FieldUserOptions::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2FieldUserOptions');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2IntegerLimits extends \Google\Model
{
/**
* Maximum value for an integer field type.
*
* @var string
*/
public $maxValue;
/**
* Minimum value for an integer field type.
*
* @var string
*/
public $minValue;
/**
* Maximum value for an integer field type.
*
* @param string $maxValue
*/
public function setMaxValue($maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return string
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* Minimum value for an integer field type.
*
* @param string $minValue
*/
public function setMinValue($minValue)
{
$this->minValue = $minValue;
}
/**
* @return string
*/
public function getMinValue()
{
return $this->minValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2IntegerLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2IntegerLimits');
@@ -0,0 +1,526 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2Label extends \Google\Collection
{
/**
* Unknown label type.
*/
public const LABEL_TYPE_LABEL_TYPE_UNSPECIFIED = 'LABEL_TYPE_UNSPECIFIED';
/**
* Shared labels may be shared with users to apply to Drive items.
*/
public const LABEL_TYPE_SHARED = 'SHARED';
/**
* Admin-owned label. Only creatable and editable by admins. Supports some
* additional admin-only features.
*/
public const LABEL_TYPE_ADMIN = 'ADMIN';
/**
* A label owned by an internal Google application rather than a customer.
* These labels are read-only.
*/
public const LABEL_TYPE_GOOGLE_APP = 'GOOGLE_APP';
protected $collection_key = 'fields';
protected $appliedCapabilitiesType = GoogleAppsDriveLabelsV2LabelAppliedCapabilities::class;
protected $appliedCapabilitiesDataType = '';
protected $appliedLabelPolicyType = GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy::class;
protected $appliedLabelPolicyDataType = '';
/**
* Output only. The time this label was created.
*
* @var string
*/
public $createTime;
protected $creatorType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $creatorDataType = '';
/**
* Output only. The customer this label belongs to. For example:
* `customers/123abc789`.
*
* @var string
*/
public $customer;
/**
* Output only. The time this label was disabled. This value has no meaning
* when the label isn't disabled.
*
* @var string
*/
public $disableTime;
protected $disablerType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $disablerDataType = '';
protected $displayHintsType = GoogleAppsDriveLabelsV2LabelDisplayHints::class;
protected $displayHintsDataType = '';
protected $enabledAppSettingsType = GoogleAppsDriveLabelsV2LabelEnabledAppSettings::class;
protected $enabledAppSettingsDataType = '';
protected $fieldsType = GoogleAppsDriveLabelsV2Field::class;
protected $fieldsDataType = 'array';
/**
* Output only. Globally unique identifier of this label. ID makes up part of
* the label `name`, but unlike `name`, ID is consistent between revisions.
* Matches the regex: `([a-zA-Z0-9])+`.
*
* @var string
*/
public $id;
/**
* Required. The type of label.
*
* @var string
*/
public $labelType;
/**
* Custom URL to present to users to allow them to learn more about this label
* and how it should be used.
*
* @var string
*/
public $learnMoreUri;
protected $lifecycleType = GoogleAppsDriveLabelsV2Lifecycle::class;
protected $lifecycleDataType = '';
protected $lockStatusType = GoogleAppsDriveLabelsV2LockStatus::class;
protected $lockStatusDataType = '';
/**
* Output only. Resource name of the label. Will be in the form of either:
* `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See
* `id` and `revision_id` below.
*
* @var string
*/
public $name;
protected $propertiesType = GoogleAppsDriveLabelsV2LabelProperties::class;
protected $propertiesDataType = '';
/**
* Output only. The time this label was published. This value has no meaning
* when the label isn't published.
*
* @var string
*/
public $publishTime;
protected $publisherType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $publisherDataType = '';
/**
* Output only. The time this label revision was created.
*
* @var string
*/
public $revisionCreateTime;
protected $revisionCreatorType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $revisionCreatorDataType = '';
/**
* Output only. Revision ID of the label. Revision ID might be part of the
* label `name` depending on the request issued. A new revision is created
* whenever revisioned properties of a label are changed. Matches the regex:
* `([a-zA-Z0-9])+`.
*
* @var string
*/
public $revisionId;
protected $schemaCapabilitiesType = GoogleAppsDriveLabelsV2LabelSchemaCapabilities::class;
protected $schemaCapabilitiesDataType = '';
/**
* Output only. The capabilities related to this label on applied metadata.
*
* @param GoogleAppsDriveLabelsV2LabelAppliedCapabilities $appliedCapabilities
*/
public function setAppliedCapabilities(GoogleAppsDriveLabelsV2LabelAppliedCapabilities $appliedCapabilities)
{
$this->appliedCapabilities = $appliedCapabilities;
}
/**
* @return GoogleAppsDriveLabelsV2LabelAppliedCapabilities
*/
public function getAppliedCapabilities()
{
return $this->appliedCapabilities;
}
/**
* Output only. Behavior of this label when it's applied to Drive items.
*
* @param GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy $appliedLabelPolicy
*/
public function setAppliedLabelPolicy(GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy $appliedLabelPolicy)
{
$this->appliedLabelPolicy = $appliedLabelPolicy;
}
/**
* @return GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy
*/
public function getAppliedLabelPolicy()
{
return $this->appliedLabelPolicy;
}
/**
* Output only. The time this label was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The user who created this label.
*
* @param GoogleAppsDriveLabelsV2UserInfo $creator
*/
public function setCreator(GoogleAppsDriveLabelsV2UserInfo $creator)
{
$this->creator = $creator;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getCreator()
{
return $this->creator;
}
/**
* Output only. The customer this label belongs to. For example:
* `customers/123abc789`.
*
* @param string $customer
*/
public function setCustomer($customer)
{
$this->customer = $customer;
}
/**
* @return string
*/
public function getCustomer()
{
return $this->customer;
}
/**
* Output only. The time this label was disabled. This value has no meaning
* when the label isn't disabled.
*
* @param string $disableTime
*/
public function setDisableTime($disableTime)
{
$this->disableTime = $disableTime;
}
/**
* @return string
*/
public function getDisableTime()
{
return $this->disableTime;
}
/**
* Output only. The user who disabled this label. This value has no meaning
* when the label isn't disabled.
*
* @param GoogleAppsDriveLabelsV2UserInfo $disabler
*/
public function setDisabler(GoogleAppsDriveLabelsV2UserInfo $disabler)
{
$this->disabler = $disabler;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getDisabler()
{
return $this->disabler;
}
/**
* Output only. UI display hints for rendering the label.
*
* @param GoogleAppsDriveLabelsV2LabelDisplayHints $displayHints
*/
public function setDisplayHints(GoogleAppsDriveLabelsV2LabelDisplayHints $displayHints)
{
$this->displayHints = $displayHints;
}
/**
* @return GoogleAppsDriveLabelsV2LabelDisplayHints
*/
public function getDisplayHints()
{
return $this->displayHints;
}
/**
* Optional. The `EnabledAppSettings` for this Label.
*
* @param GoogleAppsDriveLabelsV2LabelEnabledAppSettings $enabledAppSettings
*/
public function setEnabledAppSettings(GoogleAppsDriveLabelsV2LabelEnabledAppSettings $enabledAppSettings)
{
$this->enabledAppSettings = $enabledAppSettings;
}
/**
* @return GoogleAppsDriveLabelsV2LabelEnabledAppSettings
*/
public function getEnabledAppSettings()
{
return $this->enabledAppSettings;
}
/**
* List of fields in descending priority order.
*
* @param GoogleAppsDriveLabelsV2Field[] $fields
*/
public function setFields($fields)
{
$this->fields = $fields;
}
/**
* @return GoogleAppsDriveLabelsV2Field[]
*/
public function getFields()
{
return $this->fields;
}
/**
* Output only. Globally unique identifier of this label. ID makes up part of
* the label `name`, but unlike `name`, ID is consistent between revisions.
* Matches the regex: `([a-zA-Z0-9])+`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required. The type of label.
*
* Accepted values: LABEL_TYPE_UNSPECIFIED, SHARED, ADMIN, GOOGLE_APP
*
* @param self::LABEL_TYPE_* $labelType
*/
public function setLabelType($labelType)
{
$this->labelType = $labelType;
}
/**
* @return self::LABEL_TYPE_*
*/
public function getLabelType()
{
return $this->labelType;
}
/**
* Custom URL to present to users to allow them to learn more about this label
* and how it should be used.
*
* @param string $learnMoreUri
*/
public function setLearnMoreUri($learnMoreUri)
{
$this->learnMoreUri = $learnMoreUri;
}
/**
* @return string
*/
public function getLearnMoreUri()
{
return $this->learnMoreUri;
}
/**
* Output only. The lifecycle state of the label including whether it's
* published, deprecated, and has draft changes.
*
* @param GoogleAppsDriveLabelsV2Lifecycle $lifecycle
*/
public function setLifecycle(GoogleAppsDriveLabelsV2Lifecycle $lifecycle)
{
$this->lifecycle = $lifecycle;
}
/**
* @return GoogleAppsDriveLabelsV2Lifecycle
*/
public function getLifecycle()
{
return $this->lifecycle;
}
/**
* Output only. The `LockStatus` of this label.
*
* @param GoogleAppsDriveLabelsV2LockStatus $lockStatus
*/
public function setLockStatus(GoogleAppsDriveLabelsV2LockStatus $lockStatus)
{
$this->lockStatus = $lockStatus;
}
/**
* @return GoogleAppsDriveLabelsV2LockStatus
*/
public function getLockStatus()
{
return $this->lockStatus;
}
/**
* Output only. Resource name of the label. Will be in the form of either:
* `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. See
* `id` and `revision_id` below.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The basic properties of the label.
*
* @param GoogleAppsDriveLabelsV2LabelProperties $properties
*/
public function setProperties(GoogleAppsDriveLabelsV2LabelProperties $properties)
{
$this->properties = $properties;
}
/**
* @return GoogleAppsDriveLabelsV2LabelProperties
*/
public function getProperties()
{
return $this->properties;
}
/**
* Output only. The time this label was published. This value has no meaning
* when the label isn't published.
*
* @param string $publishTime
*/
public function setPublishTime($publishTime)
{
$this->publishTime = $publishTime;
}
/**
* @return string
*/
public function getPublishTime()
{
return $this->publishTime;
}
/**
* Output only. The user who published this label. This value has no meaning
* when the label isn't published.>>
*
* @param GoogleAppsDriveLabelsV2UserInfo $publisher
*/
public function setPublisher(GoogleAppsDriveLabelsV2UserInfo $publisher)
{
$this->publisher = $publisher;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getPublisher()
{
return $this->publisher;
}
/**
* Output only. The time this label revision was created.
*
* @param string $revisionCreateTime
*/
public function setRevisionCreateTime($revisionCreateTime)
{
$this->revisionCreateTime = $revisionCreateTime;
}
/**
* @return string
*/
public function getRevisionCreateTime()
{
return $this->revisionCreateTime;
}
/**
* Output only. The user who created this label revision.
*
* @param GoogleAppsDriveLabelsV2UserInfo $revisionCreator
*/
public function setRevisionCreator(GoogleAppsDriveLabelsV2UserInfo $revisionCreator)
{
$this->revisionCreator = $revisionCreator;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getRevisionCreator()
{
return $this->revisionCreator;
}
/**
* Output only. Revision ID of the label. Revision ID might be part of the
* label `name` depending on the request issued. A new revision is created
* whenever revisioned properties of a label are changed. Matches the regex:
* `([a-zA-Z0-9])+`.
*
* @param string $revisionId
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* Output only. The capabilities the user has on this label.
*
* @param GoogleAppsDriveLabelsV2LabelSchemaCapabilities $schemaCapabilities
*/
public function setSchemaCapabilities(GoogleAppsDriveLabelsV2LabelSchemaCapabilities $schemaCapabilities)
{
$this->schemaCapabilities = $schemaCapabilities;
}
/**
* @return GoogleAppsDriveLabelsV2LabelSchemaCapabilities
*/
public function getSchemaCapabilities()
{
return $this->schemaCapabilities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2Label::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2Label');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelAppliedCapabilities extends \Google\Model
{
/**
* Whether the user can apply this label to items.
*
* @var bool
*/
public $canApply;
/**
* Whether the user can read applied metadata related to this label.
*
* @var bool
*/
public $canRead;
/**
* Whether the user can remove this label from items.
*
* @var bool
*/
public $canRemove;
/**
* Whether the user can apply this label to items.
*
* @param bool $canApply
*/
public function setCanApply($canApply)
{
$this->canApply = $canApply;
}
/**
* @return bool
*/
public function getCanApply()
{
return $this->canApply;
}
/**
* Whether the user can read applied metadata related to this label.
*
* @param bool $canRead
*/
public function setCanRead($canRead)
{
$this->canRead = $canRead;
}
/**
* @return bool
*/
public function getCanRead()
{
return $this->canRead;
}
/**
* Whether the user can remove this label from items.
*
* @param bool $canRemove
*/
public function setCanRemove($canRemove)
{
$this->canRemove = $canRemove;
}
/**
* @return bool
*/
public function getCanRemove()
{
return $this->canRemove;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelAppliedCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelAppliedCapabilities');
@@ -0,0 +1,72 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy extends \Google\Model
{
/**
* Copy mode unspecified.
*/
public const COPY_MODE_COPY_MODE_UNSPECIFIED = 'COPY_MODE_UNSPECIFIED';
/**
* The applied label and field values aren't copied by default when the Drive
* item it's applied to is copied.
*/
public const COPY_MODE_DO_NOT_COPY = 'DO_NOT_COPY';
/**
* The applied label and field values are always copied when the Drive item
* it's applied to is copied. Only admins can use this mode.
*/
public const COPY_MODE_ALWAYS_COPY = 'ALWAYS_COPY';
/**
* The applied label and field values are copied if the label is appliable by
* the user making the copy.
*/
public const COPY_MODE_COPY_APPLIABLE = 'COPY_APPLIABLE';
/**
* Indicates how the applied label and field values should be copied when a
* Drive item is copied.
*
* @var string
*/
public $copyMode;
/**
* Indicates how the applied label and field values should be copied when a
* Drive item is copied.
*
* Accepted values: COPY_MODE_UNSPECIFIED, DO_NOT_COPY, ALWAYS_COPY,
* COPY_APPLIABLE
*
* @param self::COPY_MODE_* $copyMode
*/
public function setCopyMode($copyMode)
{
$this->copyMode = $copyMode;
}
/**
* @return self::COPY_MODE_*
*/
public function getCopyMode()
{
return $this->copyMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy');
@@ -0,0 +1,118 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelDisplayHints extends \Google\Model
{
/**
* Whether the label should be shown in the UI as disabled.
*
* @var bool
*/
public $disabled;
/**
* This label should be hidden in the search menu when searching for Drive
* items.
*
* @var bool
*/
public $hiddenInSearch;
/**
* The order to display labels in a list.
*
* @var string
*/
public $priority;
/**
* This label should be shown in the apply menu when applying values to a
* Drive item.
*
* @var bool
*/
public $shownInApply;
/**
* Whether the label should be shown in the UI as disabled.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* This label should be hidden in the search menu when searching for Drive
* items.
*
* @param bool $hiddenInSearch
*/
public function setHiddenInSearch($hiddenInSearch)
{
$this->hiddenInSearch = $hiddenInSearch;
}
/**
* @return bool
*/
public function getHiddenInSearch()
{
return $this->hiddenInSearch;
}
/**
* The order to display labels in a list.
*
* @param string $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return string
*/
public function getPriority()
{
return $this->priority;
}
/**
* This label should be shown in the apply menu when applying values to a
* Drive item.
*
* @param bool $shownInApply
*/
public function setShownInApply($shownInApply)
{
$this->shownInApply = $shownInApply;
}
/**
* @return bool
*/
public function getShownInApply()
{
return $this->shownInApply;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelDisplayHints::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelDisplayHints');
@@ -0,0 +1,45 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelEnabledAppSettings extends \Google\Collection
{
protected $collection_key = 'enabledApps';
protected $enabledAppsType = GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp::class;
protected $enabledAppsDataType = 'array';
/**
* Optional. The list of apps where the label can be used.
*
* @param GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp[] $enabledApps
*/
public function setEnabledApps($enabledApps)
{
$this->enabledApps = $enabledApps;
}
/**
* @return GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp[]
*/
public function getEnabledApps()
{
return $this->enabledApps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelEnabledAppSettings::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelEnabledAppSettings');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp extends \Google\Model
{
/**
* Unspecified
*/
public const APP_APP_UNSPECIFIED = 'APP_UNSPECIFIED';
/**
* Drive
*/
public const APP_DRIVE = 'DRIVE';
/**
* Gmail
*/
public const APP_GMAIL = 'GMAIL';
/**
* Optional. The name of the app.
*
* @var string
*/
public $app;
/**
* Optional. The name of the app.
*
* Accepted values: APP_UNSPECIFIED, DRIVE, GMAIL
*
* @param self::APP_* $app
*/
public function setApp($app)
{
$this->app = $app;
}
/**
* @return self::APP_*
*/
public function getApp()
{
return $this->app;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp');
@@ -0,0 +1,178 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelLimits extends \Google\Model
{
protected $fieldLimitsType = GoogleAppsDriveLabelsV2FieldLimits::class;
protected $fieldLimitsDataType = '';
/**
* The maximum number of published fields that can be deleted.
*
* @var int
*/
public $maxDeletedFields;
/**
* The maximum number of characters allowed for the description.
*
* @var int
*/
public $maxDescriptionLength;
/**
* The maximum number of draft revisions that will be kept before deleting old
* drafts.
*
* @var int
*/
public $maxDraftRevisions;
/**
* The maximum number of fields allowed within the label.
*
* @var int
*/
public $maxFields;
/**
* The maximum number of characters allowed for the title.
*
* @var int
*/
public $maxTitleLength;
/**
* Resource name.
*
* @var string
*/
public $name;
/**
* The limits for fields.
*
* @param GoogleAppsDriveLabelsV2FieldLimits $fieldLimits
*/
public function setFieldLimits(GoogleAppsDriveLabelsV2FieldLimits $fieldLimits)
{
$this->fieldLimits = $fieldLimits;
}
/**
* @return GoogleAppsDriveLabelsV2FieldLimits
*/
public function getFieldLimits()
{
return $this->fieldLimits;
}
/**
* The maximum number of published fields that can be deleted.
*
* @param int $maxDeletedFields
*/
public function setMaxDeletedFields($maxDeletedFields)
{
$this->maxDeletedFields = $maxDeletedFields;
}
/**
* @return int
*/
public function getMaxDeletedFields()
{
return $this->maxDeletedFields;
}
/**
* The maximum number of characters allowed for the description.
*
* @param int $maxDescriptionLength
*/
public function setMaxDescriptionLength($maxDescriptionLength)
{
$this->maxDescriptionLength = $maxDescriptionLength;
}
/**
* @return int
*/
public function getMaxDescriptionLength()
{
return $this->maxDescriptionLength;
}
/**
* The maximum number of draft revisions that will be kept before deleting old
* drafts.
*
* @param int $maxDraftRevisions
*/
public function setMaxDraftRevisions($maxDraftRevisions)
{
$this->maxDraftRevisions = $maxDraftRevisions;
}
/**
* @return int
*/
public function getMaxDraftRevisions()
{
return $this->maxDraftRevisions;
}
/**
* The maximum number of fields allowed within the label.
*
* @param int $maxFields
*/
public function setMaxFields($maxFields)
{
$this->maxFields = $maxFields;
}
/**
* @return int
*/
public function getMaxFields()
{
return $this->maxFields;
}
/**
* The maximum number of characters allowed for the title.
*
* @param int $maxTitleLength
*/
public function setMaxTitleLength($maxTitleLength)
{
$this->maxTitleLength = $maxTitleLength;
}
/**
* @return int
*/
public function getMaxTitleLength()
{
return $this->maxTitleLength;
}
/**
* Resource name.
*
* @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(GoogleAppsDriveLabelsV2LabelLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelLimits');
@@ -0,0 +1,216 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelLock extends \Google\Model
{
/**
* Unknown state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The label lock is active and is being enforced by the server.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The label lock is being deleted. The label lock will continue to be
* enforced by the server until it has been fully removed.
*/
public const STATE_DELETING = 'DELETING';
protected $capabilitiesType = GoogleAppsDriveLabelsV2LabelLockCapabilities::class;
protected $capabilitiesDataType = '';
/**
* The ID of the selection field choice that should be locked. If present,
* `field_id` must also be present.
*
* @var string
*/
public $choiceId;
/**
* Output only. The time this label lock was created.
*
* @var string
*/
public $createTime;
protected $creatorType = GoogleAppsDriveLabelsV2UserInfo::class;
protected $creatorDataType = '';
/**
* Output only. A timestamp indicating when this label lock was scheduled for
* deletion. Present only if this label lock is in the `DELETING` state.
*
* @var string
*/
public $deleteTime;
/**
* The ID of the field that should be locked. Empty if the whole label should
* be locked.
*
* @var string
*/
public $fieldId;
/**
* Output only. Resource name of this label lock.
*
* @var string
*/
public $name;
/**
* Output only. This label lock's state.
*
* @var string
*/
public $state;
/**
* Output only. The user's capabilities on this label lock.
*
* @param GoogleAppsDriveLabelsV2LabelLockCapabilities $capabilities
*/
public function setCapabilities(GoogleAppsDriveLabelsV2LabelLockCapabilities $capabilities)
{
$this->capabilities = $capabilities;
}
/**
* @return GoogleAppsDriveLabelsV2LabelLockCapabilities
*/
public function getCapabilities()
{
return $this->capabilities;
}
/**
* The ID of the selection field choice that should be locked. If present,
* `field_id` must also be present.
*
* @param string $choiceId
*/
public function setChoiceId($choiceId)
{
$this->choiceId = $choiceId;
}
/**
* @return string
*/
public function getChoiceId()
{
return $this->choiceId;
}
/**
* Output only. The time this label lock was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The user whose credentials were used to create the label lock.
* Not present if no user was responsible for creating the label lock.
*
* @param GoogleAppsDriveLabelsV2UserInfo $creator
*/
public function setCreator(GoogleAppsDriveLabelsV2UserInfo $creator)
{
$this->creator = $creator;
}
/**
* @return GoogleAppsDriveLabelsV2UserInfo
*/
public function getCreator()
{
return $this->creator;
}
/**
* Output only. A timestamp indicating when this label lock was scheduled for
* deletion. Present only if this label lock is in the `DELETING` state.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* The ID of the field that should be locked. Empty if the whole label should
* be locked.
*
* @param string $fieldId
*/
public function setFieldId($fieldId)
{
$this->fieldId = $fieldId;
}
/**
* @return string
*/
public function getFieldId()
{
return $this->fieldId;
}
/**
* Output only. Resource name of this label lock.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. This label lock's state.
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelLock::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelLock');
@@ -0,0 +1,48 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelLockCapabilities extends \Google\Model
{
/**
* True if the user is authorized to view the policy.
*
* @var bool
*/
public $canViewPolicy;
/**
* True if the user is authorized to view the policy.
*
* @param bool $canViewPolicy
*/
public function setCanViewPolicy($canViewPolicy)
{
$this->canViewPolicy = $canViewPolicy;
}
/**
* @return bool
*/
public function getCanViewPolicy()
{
return $this->canViewPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelLockCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelLockCapabilities');
@@ -0,0 +1,193 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelPermission extends \Google\Model
{
/**
* Unknown role.
*/
public const ROLE_LABEL_ROLE_UNSPECIFIED = 'LABEL_ROLE_UNSPECIFIED';
/**
* A reader can read the label and associated metadata applied to Drive items.
*/
public const ROLE_READER = 'READER';
/**
* An applier can write associated metadata on Drive items in which they also
* have write access to. Implies `READER`.
*/
public const ROLE_APPLIER = 'APPLIER';
/**
* An organizer can pin this label in shared drives they manage and add new
* appliers to the label.
*/
public const ROLE_ORGANIZER = 'ORGANIZER';
/**
* Editors can make any update including deleting the label which also deletes
* the associated Drive item metadata. Implies `APPLIER`.
*/
public const ROLE_EDITOR = 'EDITOR';
/**
* Audience to grant a role to. The magic value of `audiences/default` may be
* used to apply the role to the default audience in the context of the
* organization that owns the label.
*
* @var string
*/
public $audience;
/**
* Specifies the email address for a user or group principal. Not populated
* for audience principals. User and group permissions may only be inserted
* using an email address. On update requests, if email address is specified,
* no principal should be specified.
*
* @var string
*/
public $email;
/**
* Group resource name.
*
* @var string
*/
public $group;
/**
* Resource name of this permission.
*
* @var string
*/
public $name;
/**
* Person resource name.
*
* @var string
*/
public $person;
/**
* The role the principal should have.
*
* @var string
*/
public $role;
/**
* Audience to grant a role to. The magic value of `audiences/default` may be
* used to apply the role to the default audience in the context of the
* organization that owns the label.
*
* @param string $audience
*/
public function setAudience($audience)
{
$this->audience = $audience;
}
/**
* @return string
*/
public function getAudience()
{
return $this->audience;
}
/**
* Specifies the email address for a user or group principal. Not populated
* for audience principals. User and group permissions may only be inserted
* using an email address. On update requests, if email address is specified,
* no principal should be specified.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Group resource name.
*
* @param string $group
*/
public function setGroup($group)
{
$this->group = $group;
}
/**
* @return string
*/
public function getGroup()
{
return $this->group;
}
/**
* Resource name of this permission.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Person resource name.
*
* @param string $person
*/
public function setPerson($person)
{
$this->person = $person;
}
/**
* @return string
*/
public function getPerson()
{
return $this->person;
}
/**
* The role the principal should have.
*
* Accepted values: LABEL_ROLE_UNSPECIFIED, READER, APPLIER, ORGANIZER, EDITOR
*
* @param self::ROLE_* $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return self::ROLE_*
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelPermission::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelPermission');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelProperties extends \Google\Model
{
/**
* The description of the label.
*
* @var string
*/
public $description;
/**
* Required. Title of the label.
*
* @var string
*/
public $title;
/**
* The description of the label.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Title of the label.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelProperties::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelProperties');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2LabelSchemaCapabilities extends \Google\Model
{
/**
* Whether the user can delete this label. The user must have permission and
* the label must be disabled.
*
* @var bool
*/
public $canDelete;
/**
* Whether the user can disable this label. The user must have permission and
* this label must not already be disabled.
*
* @var bool
*/
public $canDisable;
/**
* Whether the user can enable this label. The user must have permission and
* this label must be disabled.
*
* @var bool
*/
public $canEnable;
/**
* Whether the user can change this label.
*
* @var bool
*/
public $canUpdate;
/**
* Whether the user can delete this label. The user must have permission and
* the label must be disabled.
*
* @param bool $canDelete
*/
public function setCanDelete($canDelete)
{
$this->canDelete = $canDelete;
}
/**
* @return bool
*/
public function getCanDelete()
{
return $this->canDelete;
}
/**
* Whether the user can disable this label. The user must have permission and
* this label must not already be disabled.
*
* @param bool $canDisable
*/
public function setCanDisable($canDisable)
{
$this->canDisable = $canDisable;
}
/**
* @return bool
*/
public function getCanDisable()
{
return $this->canDisable;
}
/**
* Whether the user can enable this label. The user must have permission and
* this label must be disabled.
*
* @param bool $canEnable
*/
public function setCanEnable($canEnable)
{
$this->canEnable = $canEnable;
}
/**
* @return bool
*/
public function getCanEnable()
{
return $this->canEnable;
}
/**
* Whether the user can change this label.
*
* @param bool $canUpdate
*/
public function setCanUpdate($canUpdate)
{
$this->canUpdate = $canUpdate;
}
/**
* @return bool
*/
public function getCanUpdate()
{
return $this->canUpdate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LabelSchemaCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelSchemaCapabilities');
@@ -0,0 +1,118 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2Lifecycle extends \Google\Model
{
/**
* Unknown State.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The initial state of an object. Once published, the object can never return
* to this state. Once an object is published, certain kinds of changes are no
* longer permitted.
*/
public const STATE_UNPUBLISHED_DRAFT = 'UNPUBLISHED_DRAFT';
/**
* The object has been published. The object might have unpublished draft
* changes as indicated by `has_unpublished_changes`.
*/
public const STATE_PUBLISHED = 'PUBLISHED';
/**
* The object has been published and has since been disabled. The object might
* have unpublished draft changes as indicated by `has_unpublished_changes`.
*/
public const STATE_DISABLED = 'DISABLED';
/**
* The object has been deleted.
*/
public const STATE_DELETED = 'DELETED';
protected $disabledPolicyType = GoogleAppsDriveLabelsV2LifecycleDisabledPolicy::class;
protected $disabledPolicyDataType = '';
/**
* Output only. Whether the object associated with this lifecycle has
* unpublished changes.
*
* @var bool
*/
public $hasUnpublishedChanges;
/**
* Output only. The state of the object associated with this lifecycle.
*
* @var string
*/
public $state;
/**
* The policy that governs how to show a disabled label, field, or selection
* choice.
*
* @param GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy
*/
public function setDisabledPolicy(GoogleAppsDriveLabelsV2LifecycleDisabledPolicy $disabledPolicy)
{
$this->disabledPolicy = $disabledPolicy;
}
/**
* @return GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
*/
public function getDisabledPolicy()
{
return $this->disabledPolicy;
}
/**
* Output only. Whether the object associated with this lifecycle has
* unpublished changes.
*
* @param bool $hasUnpublishedChanges
*/
public function setHasUnpublishedChanges($hasUnpublishedChanges)
{
$this->hasUnpublishedChanges = $hasUnpublishedChanges;
}
/**
* @return bool
*/
public function getHasUnpublishedChanges()
{
return $this->hasUnpublishedChanges;
}
/**
* Output only. The state of the object associated with this lifecycle.
*
* Accepted values: STATE_UNSPECIFIED, UNPUBLISHED_DRAFT, PUBLISHED, DISABLED,
* DELETED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2Lifecycle::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2Lifecycle');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2LifecycleDisabledPolicy extends \Google\Model
{
/**
* Whether to hide this disabled object in the search menu for Drive items. *
* When `false`, the object is generally shown in the UI as disabled but it
* appears in the search results when searching for Drive items. * When
* `true`, the object is generally hidden in the UI when searching for Drive
* items.
*
* @var bool
*/
public $hideInSearch;
/**
* Whether to show this disabled object in the apply menu on Drive items. *
* When `true`, the object is generally shown in the UI as disabled and is
* unselectable. * When `false`, the object is generally hidden in the UI.
*
* @var bool
*/
public $showInApply;
/**
* Whether to hide this disabled object in the search menu for Drive items. *
* When `false`, the object is generally shown in the UI as disabled but it
* appears in the search results when searching for Drive items. * When
* `true`, the object is generally hidden in the UI when searching for Drive
* items.
*
* @param bool $hideInSearch
*/
public function setHideInSearch($hideInSearch)
{
$this->hideInSearch = $hideInSearch;
}
/**
* @return bool
*/
public function getHideInSearch()
{
return $this->hideInSearch;
}
/**
* Whether to show this disabled object in the apply menu on Drive items. *
* When `true`, the object is generally shown in the UI as disabled and is
* unselectable. * When `false`, the object is generally hidden in the UI.
*
* @param bool $showInApply
*/
public function setShowInApply($showInApply)
{
$this->showInApply = $showInApply;
}
/**
* @return bool
*/
public function getShowInApply()
{
return $this->showInApply;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LifecycleDisabledPolicy::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LifecycleDisabledPolicy');
@@ -0,0 +1,67 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2ListLabelLocksResponse extends \Google\Collection
{
protected $collection_key = 'labelLocks';
protected $labelLocksType = GoogleAppsDriveLabelsV2LabelLock::class;
protected $labelLocksDataType = 'array';
/**
* The token of the next page in the response.
*
* @var string
*/
public $nextPageToken;
/**
* Label locks.
*
* @param GoogleAppsDriveLabelsV2LabelLock[] $labelLocks
*/
public function setLabelLocks($labelLocks)
{
$this->labelLocks = $labelLocks;
}
/**
* @return GoogleAppsDriveLabelsV2LabelLock[]
*/
public function getLabelLocks()
{
return $this->labelLocks;
}
/**
* The token of the next page in the response.
*
* @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(GoogleAppsDriveLabelsV2ListLabelLocksResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2ListLabelLocksResponse');
@@ -0,0 +1,67 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2ListLabelPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'labelPermissions';
protected $labelPermissionsType = GoogleAppsDriveLabelsV2LabelPermission::class;
protected $labelPermissionsDataType = 'array';
/**
* The token of the next page in the response.
*
* @var string
*/
public $nextPageToken;
/**
* Label permissions.
*
* @param GoogleAppsDriveLabelsV2LabelPermission[] $labelPermissions
*/
public function setLabelPermissions($labelPermissions)
{
$this->labelPermissions = $labelPermissions;
}
/**
* @return GoogleAppsDriveLabelsV2LabelPermission[]
*/
public function getLabelPermissions()
{
return $this->labelPermissions;
}
/**
* The token of the next page in the response.
*
* @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(GoogleAppsDriveLabelsV2ListLabelPermissionsResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2ListLabelPermissionsResponse');
@@ -0,0 +1,67 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2ListLabelsResponse extends \Google\Collection
{
protected $collection_key = 'labels';
protected $labelsType = GoogleAppsDriveLabelsV2Label::class;
protected $labelsDataType = 'array';
/**
* The token of the next page in the response.
*
* @var string
*/
public $nextPageToken;
/**
* Labels.
*
* @param GoogleAppsDriveLabelsV2Label[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return GoogleAppsDriveLabelsV2Label[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The token of the next page in the response.
*
* @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(GoogleAppsDriveLabelsV2ListLabelsResponse::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2ListLabelsResponse');
@@ -0,0 +1,48 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2ListLimits extends \Google\Model
{
/**
* Maximum number of values allowed for the field type.
*
* @var int
*/
public $maxEntries;
/**
* Maximum number of values allowed for the field type.
*
* @param int $maxEntries
*/
public function setMaxEntries($maxEntries)
{
$this->maxEntries = $maxEntries;
}
/**
* @return int
*/
public function getMaxEntries()
{
return $this->maxEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2ListLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2ListLimits');
@@ -0,0 +1,54 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2LockStatus extends \Google\Model
{
/**
* Output only. Indicates whether this label component is the (direct) target
* of a label lock. A label component can be implicitly locked even if it's
* not the direct target of a label lock, in which case this field is set to
* false.
*
* @var bool
*/
public $locked;
/**
* Output only. Indicates whether this label component is the (direct) target
* of a label lock. A label component can be implicitly locked even if it's
* not the direct target of a label lock, in which case this field is set to
* false.
*
* @param bool $locked
*/
public function setLocked($locked)
{
$this->locked = $locked;
}
/**
* @return bool
*/
public function getLocked()
{
return $this->locked;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LockStatus::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LockStatus');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2LongTextLimits extends \Google\Model
{
/**
* Maximum length allowed for a long text field type.
*
* @var int
*/
public $maxLength;
/**
* Minimum length allowed for a long text field type.
*
* @var int
*/
public $minLength;
/**
* Maximum length allowed for a long text field type.
*
* @param int $maxLength
*/
public function setMaxLength($maxLength)
{
$this->maxLength = $maxLength;
}
/**
* @return int
*/
public function getMaxLength()
{
return $this->maxLength;
}
/**
* Minimum length allowed for a long text field type.
*
* @param int $minLength
*/
public function setMinLength($minLength)
{
$this->minLength = $minLength;
}
/**
* @return int
*/
public function getMinLength()
{
return $this->minLength;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2LongTextLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LongTextLimits');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2PublishLabelRequest extends \Google\Model
{
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @var string
*/
public $languageCode;
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @var bool
*/
public $useAdminAccess;
protected $writeControlType = GoogleAppsDriveLabelsV2WriteControl::class;
protected $writeControlDataType = '';
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
/**
* Provides control over how write requests are executed. Defaults to unset,
* which means the last write wins.
*
* @param GoogleAppsDriveLabelsV2WriteControl $writeControl
*/
public function setWriteControl(GoogleAppsDriveLabelsV2WriteControl $writeControl)
{
$this->writeControl = $writeControl;
}
/**
* @return GoogleAppsDriveLabelsV2WriteControl
*/
public function getWriteControl()
{
return $this->writeControl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2PublishLabelRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2PublishLabelRequest');
@@ -0,0 +1,132 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2SelectionLimits extends \Google\Model
{
protected $listLimitsType = GoogleAppsDriveLabelsV2ListLimits::class;
protected $listLimitsDataType = '';
/**
* Maximum number of choices.
*
* @var int
*/
public $maxChoices;
/**
* Maximum number of deleted choices.
*
* @var int
*/
public $maxDeletedChoices;
/**
* Maximum length for display name.
*
* @var int
*/
public $maxDisplayNameLength;
/**
* Maximum ID length for a selection option.
*
* @var int
*/
public $maxIdLength;
/**
* Limits for list-variant of a field type.
*
* @param GoogleAppsDriveLabelsV2ListLimits $listLimits
*/
public function setListLimits(GoogleAppsDriveLabelsV2ListLimits $listLimits)
{
$this->listLimits = $listLimits;
}
/**
* @return GoogleAppsDriveLabelsV2ListLimits
*/
public function getListLimits()
{
return $this->listLimits;
}
/**
* Maximum number of choices.
*
* @param int $maxChoices
*/
public function setMaxChoices($maxChoices)
{
$this->maxChoices = $maxChoices;
}
/**
* @return int
*/
public function getMaxChoices()
{
return $this->maxChoices;
}
/**
* Maximum number of deleted choices.
*
* @param int $maxDeletedChoices
*/
public function setMaxDeletedChoices($maxDeletedChoices)
{
$this->maxDeletedChoices = $maxDeletedChoices;
}
/**
* @return int
*/
public function getMaxDeletedChoices()
{
return $this->maxDeletedChoices;
}
/**
* Maximum length for display name.
*
* @param int $maxDisplayNameLength
*/
public function setMaxDisplayNameLength($maxDisplayNameLength)
{
$this->maxDisplayNameLength = $maxDisplayNameLength;
}
/**
* @return int
*/
public function getMaxDisplayNameLength()
{
return $this->maxDisplayNameLength;
}
/**
* Maximum ID length for a selection option.
*
* @param int $maxIdLength
*/
public function setMaxIdLength($maxIdLength)
{
$this->maxIdLength = $maxIdLength;
}
/**
* @return int
*/
public function getMaxIdLength()
{
return $this->maxIdLength;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2SelectionLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2SelectionLimits');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2TextLimits extends \Google\Model
{
/**
* Maximum length allowed for a text field type.
*
* @var int
*/
public $maxLength;
/**
* Minimum length allowed for a text field type.
*
* @var int
*/
public $minLength;
/**
* Maximum length allowed for a text field type.
*
* @param int $maxLength
*/
public function setMaxLength($maxLength)
{
$this->maxLength = $maxLength;
}
/**
* @return int
*/
public function getMaxLength()
{
return $this->maxLength;
}
/**
* Minimum length allowed for a text field type.
*
* @param int $minLength
*/
public function setMinLength($minLength)
{
$this->minLength = $minLength;
}
/**
* @return int
*/
public function getMinLength()
{
return $this->minLength;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2TextLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2TextLimits');
@@ -0,0 +1,154 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest extends \Google\Model
{
/**
* Copy mode unspecified.
*/
public const COPY_MODE_COPY_MODE_UNSPECIFIED = 'COPY_MODE_UNSPECIFIED';
/**
* The applied label and field values aren't copied by default when the Drive
* item it's applied to is copied.
*/
public const COPY_MODE_DO_NOT_COPY = 'DO_NOT_COPY';
/**
* The applied label and field values are always copied when the Drive item
* it's applied to is copied. Only admins can use this mode.
*/
public const COPY_MODE_ALWAYS_COPY = 'ALWAYS_COPY';
/**
* The applied label and field values are copied if the label is appliable by
* the user making the copy.
*/
public const COPY_MODE_COPY_APPLIABLE = 'COPY_APPLIABLE';
/**
* Implies the field mask: `name,id,revision_id,label_type,properties.*`
*/
public const VIEW_LABEL_VIEW_BASIC = 'LABEL_VIEW_BASIC';
/**
* All possible fields.
*/
public const VIEW_LABEL_VIEW_FULL = 'LABEL_VIEW_FULL';
/**
* Required. Indicates how the applied label and field values should be copied
* when a Drive item is copied.
*
* @var string
*/
public $copyMode;
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @var string
*/
public $languageCode;
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @var bool
*/
public $useAdminAccess;
/**
* When specified, only certain fields belonging to the indicated view will be
* returned.
*
* @var string
*/
public $view;
/**
* Required. Indicates how the applied label and field values should be copied
* when a Drive item is copied.
*
* Accepted values: COPY_MODE_UNSPECIFIED, DO_NOT_COPY, ALWAYS_COPY,
* COPY_APPLIABLE
*
* @param self::COPY_MODE_* $copyMode
*/
public function setCopyMode($copyMode)
{
$this->copyMode = $copyMode;
}
/**
* @return self::COPY_MODE_*
*/
public function getCopyMode()
{
return $this->copyMode;
}
/**
* The BCP-47 language code to use for evaluating localized field labels. When
* not specified, values in the default configured language will be used.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
/**
* When specified, only certain fields belonging to the indicated view will be
* returned.
*
* Accepted values: LABEL_VIEW_BASIC, LABEL_VIEW_FULL
*
* @param self::VIEW_* $view
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return self::VIEW_*
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest');
@@ -0,0 +1,130 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest extends \Google\Model
{
/**
* Implies the field mask: `name,id,revision_id,label_type,properties.*`
*/
public const VIEW_LABEL_VIEW_BASIC = 'LABEL_VIEW_BASIC';
/**
* All possible fields.
*/
public const VIEW_LABEL_VIEW_FULL = 'LABEL_VIEW_FULL';
protected $enabledAppSettingsType = GoogleAppsDriveLabelsV2LabelEnabledAppSettings::class;
protected $enabledAppSettingsDataType = '';
/**
* Optional. The BCP-47 language code to use for evaluating localized field
* labels. When not specified, values in the default configured language will
* be used.
*
* @var string
*/
public $languageCode;
/**
* Optional. Set to `true` in order to use the user's admin credentials. The
* server will verify the user is an admin for the label before allowing
* access.
*
* @var bool
*/
public $useAdminAccess;
/**
* Optional. When specified, only certain fields belonging to the indicated
* view will be returned.
*
* @var string
*/
public $view;
/**
* Required. The new `EnabledAppSettings` value for the label.
*
* @param GoogleAppsDriveLabelsV2LabelEnabledAppSettings $enabledAppSettings
*/
public function setEnabledAppSettings(GoogleAppsDriveLabelsV2LabelEnabledAppSettings $enabledAppSettings)
{
$this->enabledAppSettings = $enabledAppSettings;
}
/**
* @return GoogleAppsDriveLabelsV2LabelEnabledAppSettings
*/
public function getEnabledAppSettings()
{
return $this->enabledAppSettings;
}
/**
* Optional. The BCP-47 language code to use for evaluating localized field
* labels. When not specified, values in the default configured language will
* be used.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. Set to `true` in order to use the user's admin credentials. The
* server will verify the user is an admin for the label before allowing
* access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
/**
* Optional. When specified, only certain fields belonging to the indicated
* view will be returned.
*
* Accepted values: LABEL_VIEW_BASIC, LABEL_VIEW_FULL
*
* @param self::VIEW_* $view
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return self::VIEW_*
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest');
@@ -0,0 +1,90 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest extends \Google\Model
{
protected $labelPermissionType = GoogleAppsDriveLabelsV2LabelPermission::class;
protected $labelPermissionDataType = '';
/**
* Required. The parent label resource name.
*
* @var string
*/
public $parent;
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @var bool
*/
public $useAdminAccess;
/**
* Required. The permission to create or update on the label.
*
* @param GoogleAppsDriveLabelsV2LabelPermission $labelPermission
*/
public function setLabelPermission(GoogleAppsDriveLabelsV2LabelPermission $labelPermission)
{
$this->labelPermission = $labelPermission;
}
/**
* @return GoogleAppsDriveLabelsV2LabelPermission
*/
public function getLabelPermission()
{
return $this->labelPermission;
}
/**
* Required. The parent label resource name.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Set to `true` in order to use the user's admin credentials. The server will
* verify the user is an admin for the label before allowing access.
*
* @param bool $useAdminAccess
*/
public function setUseAdminAccess($useAdminAccess)
{
$this->useAdminAccess = $useAdminAccess;
}
/**
* @return bool
*/
public function getUseAdminAccess()
{
return $this->useAdminAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest');
@@ -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\DriveLabels;
class GoogleAppsDriveLabelsV2UserCapabilities extends \Google\Model
{
/**
* Output only. Whether the user is allowed access to the label manager.
*
* @var bool
*/
public $canAccessLabelManager;
/**
* Output only. Whether the user is an administrator for the shared labels
* feature.
*
* @var bool
*/
public $canAdministrateLabels;
/**
* Output only. Whether the user is allowed to create admin labels.
*
* @var bool
*/
public $canCreateAdminLabels;
/**
* Output only. Whether the user is allowed to create shared labels.
*
* @var bool
*/
public $canCreateSharedLabels;
/**
* Output only. Resource name for the user capabilities.
*
* @var string
*/
public $name;
/**
* Output only. Whether the user is allowed access to the label manager.
*
* @param bool $canAccessLabelManager
*/
public function setCanAccessLabelManager($canAccessLabelManager)
{
$this->canAccessLabelManager = $canAccessLabelManager;
}
/**
* @return bool
*/
public function getCanAccessLabelManager()
{
return $this->canAccessLabelManager;
}
/**
* Output only. Whether the user is an administrator for the shared labels
* feature.
*
* @param bool $canAdministrateLabels
*/
public function setCanAdministrateLabels($canAdministrateLabels)
{
$this->canAdministrateLabels = $canAdministrateLabels;
}
/**
* @return bool
*/
public function getCanAdministrateLabels()
{
return $this->canAdministrateLabels;
}
/**
* Output only. Whether the user is allowed to create admin labels.
*
* @param bool $canCreateAdminLabels
*/
public function setCanCreateAdminLabels($canCreateAdminLabels)
{
$this->canCreateAdminLabels = $canCreateAdminLabels;
}
/**
* @return bool
*/
public function getCanCreateAdminLabels()
{
return $this->canCreateAdminLabels;
}
/**
* Output only. Whether the user is allowed to create shared labels.
*
* @param bool $canCreateSharedLabels
*/
public function setCanCreateSharedLabels($canCreateSharedLabels)
{
$this->canCreateSharedLabels = $canCreateSharedLabels;
}
/**
* @return bool
*/
public function getCanCreateSharedLabels()
{
return $this->canCreateSharedLabels;
}
/**
* Output only. Resource name for the user capabilities.
*
* @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(GoogleAppsDriveLabelsV2UserCapabilities::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2UserCapabilities');
@@ -0,0 +1,52 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2UserInfo extends \Google\Model
{
/**
* The identifier for this user that can be used with the [People
* API](https://developers.google.com/people) to get more information. For
* example, `people/12345678`.
*
* @var string
*/
public $person;
/**
* The identifier for this user that can be used with the [People
* API](https://developers.google.com/people) to get more information. For
* example, `people/12345678`.
*
* @param string $person
*/
public function setPerson($person)
{
$this->person = $person;
}
/**
* @return string
*/
public function getPerson()
{
return $this->person;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2UserInfo::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2UserInfo');
@@ -0,0 +1,44 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2UserLimits extends \Google\Model
{
protected $listLimitsType = GoogleAppsDriveLabelsV2ListLimits::class;
protected $listLimitsDataType = '';
/**
* Limits for list-variant of a field type.
*
* @param GoogleAppsDriveLabelsV2ListLimits $listLimits
*/
public function setListLimits(GoogleAppsDriveLabelsV2ListLimits $listLimits)
{
$this->listLimits = $listLimits;
}
/**
* @return GoogleAppsDriveLabelsV2ListLimits
*/
public function getListLimits()
{
return $this->listLimits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2UserLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2UserLimits');
@@ -0,0 +1,52 @@
<?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\DriveLabels;
class GoogleAppsDriveLabelsV2WriteControl extends \Google\Model
{
/**
* The revision ID of the label that the write request will be applied to. If
* this isn't the latest revision of the label, the request will not be
* processed and will return a 400 Bad Request error.
*
* @var string
*/
public $requiredRevisionId;
/**
* The revision ID of the label that the write request will be applied to. If
* this isn't the latest revision of the label, the request will not be
* processed and will return a 400 Bad Request error.
*
* @param string $requiredRevisionId
*/
public function setRequiredRevisionId($requiredRevisionId)
{
$this->requiredRevisionId = $requiredRevisionId;
}
/**
* @return string
*/
public function getRequiredRevisionId()
{
return $this->requiredRevisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsDriveLabelsV2WriteControl::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2WriteControl');
@@ -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\DriveLabels;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_DriveLabels_GoogleProtobufEmpty');
@@ -0,0 +1,130 @@
<?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\DriveLabels;
class GoogleTypeColor extends \Google\Model
{
/**
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation: `pixel color = alpha *
* (this color) + (1.0 - alpha) * (background color)` This means that a value
* of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to
* a completely transparent color. This uses a wrapper message rather than a
* simple float scalar so that it is possible to distinguish between a default
* value and the value being unset. If omitted, this color object is rendered
* as a solid color (as if the alpha value had been explicitly given a value
* of 1.0).
*
* @var float
*/
public $alpha;
/**
* The amount of blue in the color as a value in the interval [0, 1].
*
* @var float
*/
public $blue;
/**
* The amount of green in the color as a value in the interval [0, 1].
*
* @var float
*/
public $green;
/**
* The amount of red in the color as a value in the interval [0, 1].
*
* @var float
*/
public $red;
/**
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation: `pixel color = alpha *
* (this color) + (1.0 - alpha) * (background color)` This means that a value
* of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to
* a completely transparent color. This uses a wrapper message rather than a
* simple float scalar so that it is possible to distinguish between a default
* value and the value being unset. If omitted, this color object is rendered
* as a solid color (as if the alpha value had been explicitly given a value
* of 1.0).
*
* @param float $alpha
*/
public function setAlpha($alpha)
{
$this->alpha = $alpha;
}
/**
* @return float
*/
public function getAlpha()
{
return $this->alpha;
}
/**
* The amount of blue in the color as a value in the interval [0, 1].
*
* @param float $blue
*/
public function setBlue($blue)
{
$this->blue = $blue;
}
/**
* @return float
*/
public function getBlue()
{
return $this->blue;
}
/**
* The amount of green in the color as a value in the interval [0, 1].
*
* @param float $green
*/
public function setGreen($green)
{
$this->green = $green;
}
/**
* @return float
*/
public function getGreen()
{
return $this->green;
}
/**
* The amount of red in the color as a value in the interval [0, 1].
*
* @param float $red
*/
public function setRed($red)
{
$this->red = $red;
}
/**
* @return float
*/
public function getRed()
{
return $this->red;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeColor::class, 'Google_Service_DriveLabels_GoogleTypeColor');
@@ -0,0 +1,100 @@
<?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\DriveLabels;
class GoogleTypeDate extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
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(GoogleTypeDate::class, 'Google_Service_DriveLabels_GoogleTypeDate');
@@ -0,0 +1,315 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2DisableLabelRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2EnableLabelRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2Label;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2LabelPermission;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2ListLabelsResponse;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2PublishLabelRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest;
use Google\Service\DriveLabels\GoogleProtobufEmpty;
/**
* The "labels" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $labels = $drivelabelsService->labels;
* </code>
*/
class Labels extends \Google\Service\Resource
{
/**
* Creates a label. For more information, see [Create and publish a
* label](https://developers.google.com/workspace/drive/labels/guides/create-
* label). (labels.create)
*
* @param GoogleAppsDriveLabelsV2Label $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode The BCP-47 language code to use for evaluating
* localized field labels in response. When not specified, values in the default
* configured language will be used.
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* privileges. The server will verify the user is an admin before allowing
* access.
* @return GoogleAppsDriveLabelsV2Label
* @throws \Google\Service\Exception
*/
public function create(GoogleAppsDriveLabelsV2Label $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleAppsDriveLabelsV2Label::class);
}
/**
* Permanently deletes a label and related metadata on Drive items. For more
* information, see [Disable, enable, and delete a
* label](https://developers.google.com/workspace/drive/labels/guides/disable-
* delete-label). Once deleted, the label and related Drive item metadata will
* be deleted. Only draft labels and disabled labels may be deleted.
* (labels.delete)
*
* @param string $name Required. Label resource name.
* @param array $optParams Optional parameters.
*
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @opt_param string writeControl.requiredRevisionId The revision ID of the
* label that the write request will be applied to. If this isn't the latest
* revision of the label, the request will not be processed and will return a
* 400 Bad Request error.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Updates a single label by applying a set of update requests resulting in a
* new draft revision. For more information, see [Update a
* label](https://developers.google.com/workspace/drive/labels/guides/update-
* label). The batch update is all-or-nothing: If any of the update requests are
* invalid, no changes are applied. The resulting draft revision must be
* published before the changes may be used with Drive items. (labels.delta)
*
* @param string $name Required. The resource name of the label to update.
* @param GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse
* @throws \Google\Service\Exception
*/
public function delta($name, GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('delta', [$params], GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse::class);
}
/**
* Disable a published label. For more information, see [Disable, enable, and
* delete a
* label](https://developers.google.com/workspace/drive/labels/guides/disable-
* delete-label). Disabling a label will result in a new disabled published
* revision based on the current published revision. If there's a draft
* revision, a new disabled draft revision will be created based on the latest
* draft revision. Older draft revisions will be deleted. Once disabled, a label
* may be deleted with `DeleteLabel`. (labels.disable)
*
* @param string $name Required. Label resource name.
* @param GoogleAppsDriveLabelsV2DisableLabelRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2Label
* @throws \Google\Service\Exception
*/
public function disable($name, GoogleAppsDriveLabelsV2DisableLabelRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('disable', [$params], GoogleAppsDriveLabelsV2Label::class);
}
/**
* Enable a disabled label and restore it to its published state. For more
* information, see [Disable, enable, and delete a
* label](https://developers.google.com/workspace/drive/labels/guides/disable-
* delete-label). This will result in a new published revision based on the
* current disabled published revision. If there's an existing disabled draft
* revision, a new revision will be created based on that draft and will be
* enabled. (labels.enable)
*
* @param string $name Required. Label resource name.
* @param GoogleAppsDriveLabelsV2EnableLabelRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2Label
* @throws \Google\Service\Exception
*/
public function enable($name, GoogleAppsDriveLabelsV2EnableLabelRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enable', [$params], GoogleAppsDriveLabelsV2Label::class);
}
/**
* Get a label by its resource name. For more information, see [Search for
* labels](https://developers.google.com/workspace/drive/labels/guides/search-
* label). Resource name may be any of: * `labels/{id}` - See
* `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the
* label. * `labels/{id}@published` - Gets the current published revision of the
* label. * `labels/{id}@{revision_id}` - Gets the label at the specified
* revision ID. (labels.get)
*
* @param string $name Required. Label resource name. May be any of: *
* `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` *
* `labels/{id}@published` * `labels/{id}@{revision_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode The BCP-47 language code to use for evaluating
* localized field labels. When not specified, values in the default configured
* language are used.
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server verifies that the user is an admin for the label
* before allowing access.
* @opt_param string view When specified, only certain fields belonging to the
* indicated view are returned.
* @return GoogleAppsDriveLabelsV2Label
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleAppsDriveLabelsV2Label::class);
}
/**
* List labels. For more information, see [Search for
* labels](https://developers.google.com/workspace/drive/labels/guides/search-
* label). (labels.listLabels)
*
* @param array $optParams Optional parameters.
*
* @opt_param string customer The customer to scope this list request to. For
* example: `customers/abcd1234`. If unset, will return all labels within the
* current customer.
* @opt_param string languageCode The BCP-47 language code to use for evaluating
* localized field labels. When not specified, values in the default configured
* language are used.
* @opt_param string minimumRole Specifies the level of access the user must
* have on the returned labels. The minimum role a user must have on a label.
* Defaults to `READER`.
* @opt_param int pageSize Maximum number of labels to return per page. Default:
* 50. Max: 200.
* @opt_param string pageToken The token of the page to return.
* @opt_param bool publishedOnly Whether to include only published labels in the
* results. * When `true`, only the current published label revisions are
* returned. Disabled labels are included. Returned label resource names
* reference the published revision (`labels/{id}/{revision_id}`). * When
* `false`, the current label revisions are returned, which might not be
* published. Returned label resource names don't reference a specific revision
* (`labels/{id}`).
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. This will return all labels within the customer.
* @opt_param string view When specified, only certain fields belonging to the
* indicated view are returned.
* @return GoogleAppsDriveLabelsV2ListLabelsResponse
* @throws \Google\Service\Exception
*/
public function listLabels($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsDriveLabelsV2ListLabelsResponse::class);
}
/**
* Publish all draft changes to the label. Once published, the label may not
* return to its draft state. For more information, see [Create and publish a
* label](https://developers.google.com/workspace/drive/labels/guides/create-
* label). Publishing a label will result in a new published revision. All
* previous draft revisions will be deleted. Previous published revisions will
* be kept but are subject to automated deletion as needed. For more
* information, see [Label
* lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-
* lifecycle). Once published, some changes are no longer permitted. Generally,
* any change that would invalidate or cause new restrictions on existing
* metadata related to the label will be rejected. For example, the following
* changes to a label will be rejected after the label is published: * The label
* cannot be directly deleted. It must be disabled first, then deleted. *
* `Field.FieldType` cannot be changed. * Changes to field validation options
* cannot reject something that was previously accepted. * Reducing the maximum
* entries. (labels.publish)
*
* @param string $name Required. Label resource name.
* @param GoogleAppsDriveLabelsV2PublishLabelRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2Label
* @throws \Google\Service\Exception
*/
public function publish($name, GoogleAppsDriveLabelsV2PublishLabelRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], GoogleAppsDriveLabelsV2Label::class);
}
/**
* Updates a label's `CopyMode`. Changes to this policy aren't revisioned, don't
* require publishing, and take effect immediately. (labels.updateLabelCopyMode)
*
* @param string $name Required. The resource name of the label to update.
* @param GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2Label
* @throws \Google\Service\Exception
*/
public function updateLabelCopyMode($name, GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateLabelCopyMode', [$params], GoogleAppsDriveLabelsV2Label::class);
}
/**
* Updates a label's `EnabledAppSettings`. Enabling a label in a Google
* Workspace app allows it to be used in that app. This change isn't revisioned,
* doesn't require publishing, and takes effect immediately.
* (labels.updateLabelEnabledAppSettings)
*
* @param string $name Required. The resource name of the label to update. The
* resource name of the label to update.
* @param GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2Label
* @throws \Google\Service\Exception
*/
public function updateLabelEnabledAppSettings($name, GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateLabelEnabledAppSettings', [$params], GoogleAppsDriveLabelsV2Label::class);
}
/**
* Updates a label's permissions. If a permission for the indicated principal
* doesn't exist, a label permission is created, otherwise the existing
* permission is updated. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing. (labels.updatePermissions)
*
* @param string $parent Required. The parent label resource name.
* @param GoogleAppsDriveLabelsV2LabelPermission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleAppsDriveLabelsV2LabelPermission
* @throws \Google\Service\Exception
*/
public function updatePermissions($parent, GoogleAppsDriveLabelsV2LabelPermission $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updatePermissions', [$params], GoogleAppsDriveLabelsV2LabelPermission::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Labels::class, 'Google_Service_DriveLabels_Resource_Labels');
@@ -0,0 +1,54 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2ListLabelLocksResponse;
/**
* The "locks" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $locks = $drivelabelsService->labels_locks;
* </code>
*/
class LabelsLocks extends \Google\Service\Resource
{
/**
* Lists the label locks on a label. (locks.listLabelsLocks)
*
* @param string $parent Required. Label on which locks are applied. Format:
* `labels/{label}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of locks to return per page. Default:
* 100. Max: 200.
* @opt_param string pageToken The token of the page to return.
* @return GoogleAppsDriveLabelsV2ListLabelLocksResponse
* @throws \Google\Service\Exception
*/
public function listLabelsLocks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsDriveLabelsV2ListLabelLocksResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelsLocks::class, 'Google_Service_DriveLabels_Resource_LabelsLocks');
@@ -0,0 +1,144 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2LabelPermission;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2ListLabelPermissionsResponse;
use Google\Service\DriveLabels\GoogleProtobufEmpty;
/**
* The "permissions" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $permissions = $drivelabelsService->labels_permissions;
* </code>
*/
class LabelsPermissions extends \Google\Service\Resource
{
/**
* Deletes label permissions. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing. (permissions.batchDelete)
*
* @param string $parent Required. The parent label resource name shared by all
* permissions being deleted. Format: `labels/{label}`. If this is set, the
* parent field in the `UpdateLabelPermissionRequest` messages must either be
* empty or match this field.
* @param GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchDelete($parent, GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], GoogleProtobufEmpty::class);
}
/**
* Updates label permissions. If a permission for the indicated principal
* doesn't exist, a label permission is created, otherwise the existing
* permission is updated. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing. (permissions.batchUpdate)
*
* @param string $parent Required. The parent label resource name shared by all
* permissions being updated. Format: `labels/{label}`. If this is set, the
* parent field in the `UpdateLabelPermissionRequest` messages must either be
* empty or match this field.
* @param GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse
* @throws \Google\Service\Exception
*/
public function batchUpdate($parent, GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUpdate', [$params], GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse::class);
}
/**
* Updates a label's permissions. If a permission for the indicated principal
* doesn't exist, a label permission is created, otherwise the existing
* permission is updated. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing. (permissions.create)
*
* @param string $parent Required. The parent label resource name on the label
* permission is created. Format: `labels/{label}`.
* @param GoogleAppsDriveLabelsV2LabelPermission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleAppsDriveLabelsV2LabelPermission
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleAppsDriveLabelsV2LabelPermission $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleAppsDriveLabelsV2LabelPermission::class);
}
/**
* Deletes a label's permission. Permissions affect the label resource as a
* whole, aren't revisioned, and don't require publishing. (permissions.delete)
*
* @param string $name Required. Label permission resource name.
* @param array $optParams Optional parameters.
*
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Lists a label's permissions. (permissions.listLabelsPermissions)
*
* @param string $parent Required. The parent label resource name on which label
* permissions are listed. Format: `labels/{label}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of permissions to return per page.
* Default: 50. Max: 200.
* @opt_param string pageToken The token of the page to return.
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleAppsDriveLabelsV2ListLabelPermissionsResponse
* @throws \Google\Service\Exception
*/
public function listLabelsPermissions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsDriveLabelsV2ListLabelPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelsPermissions::class, 'Google_Service_DriveLabels_Resource_LabelsPermissions');
@@ -0,0 +1,58 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2LabelPermission;
/**
* The "revisions" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $revisions = $drivelabelsService->labels_revisions;
* </code>
*/
class LabelsRevisions extends \Google\Service\Resource
{
/**
* Updates a label's permissions. If a permission for the indicated principal
* doesn't exist, a label permission is created, otherwise the existing
* permission is updated. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing.
* (revisions.updatePermissions)
*
* @param string $parent Required. The parent label resource name.
* @param GoogleAppsDriveLabelsV2LabelPermission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleAppsDriveLabelsV2LabelPermission
* @throws \Google\Service\Exception
*/
public function updatePermissions($parent, GoogleAppsDriveLabelsV2LabelPermission $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updatePermissions', [$params], GoogleAppsDriveLabelsV2LabelPermission::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelsRevisions::class, 'Google_Service_DriveLabels_Resource_LabelsRevisions');
@@ -0,0 +1,54 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2ListLabelLocksResponse;
/**
* The "locks" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $locks = $drivelabelsService->labels_revisions_locks;
* </code>
*/
class LabelsRevisionsLocks extends \Google\Service\Resource
{
/**
* Lists the label locks on a label. (locks.listLabelsRevisionsLocks)
*
* @param string $parent Required. Label on which locks are applied. Format:
* `labels/{label}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of locks to return per page. Default:
* 100. Max: 200.
* @opt_param string pageToken The token of the page to return.
* @return GoogleAppsDriveLabelsV2ListLabelLocksResponse
* @throws \Google\Service\Exception
*/
public function listLabelsRevisionsLocks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsDriveLabelsV2ListLabelLocksResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelsRevisionsLocks::class, 'Google_Service_DriveLabels_Resource_LabelsRevisionsLocks');
@@ -0,0 +1,144 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2LabelPermission;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2ListLabelPermissionsResponse;
use Google\Service\DriveLabels\GoogleProtobufEmpty;
/**
* The "permissions" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $permissions = $drivelabelsService->labels_revisions_permissions;
* </code>
*/
class LabelsRevisionsPermissions extends \Google\Service\Resource
{
/**
* Deletes label permissions. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing. (permissions.batchDelete)
*
* @param string $parent Required. The parent label resource name shared by all
* permissions being deleted. Format: `labels/{label}`. If this is set, the
* parent field in the `UpdateLabelPermissionRequest` messages must either be
* empty or match this field.
* @param GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchDelete($parent, GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], GoogleProtobufEmpty::class);
}
/**
* Updates label permissions. If a permission for the indicated principal
* doesn't exist, a label permission is created, otherwise the existing
* permission is updated. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing. (permissions.batchUpdate)
*
* @param string $parent Required. The parent label resource name shared by all
* permissions being updated. Format: `labels/{label}`. If this is set, the
* parent field in the `UpdateLabelPermissionRequest` messages must either be
* empty or match this field.
* @param GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse
* @throws \Google\Service\Exception
*/
public function batchUpdate($parent, GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUpdate', [$params], GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse::class);
}
/**
* Updates a label's permissions. If a permission for the indicated principal
* doesn't exist, a label permission is created, otherwise the existing
* permission is updated. Permissions affect the label resource as a whole,
* aren't revisioned, and don't require publishing. (permissions.create)
*
* @param string $parent Required. The parent label resource name on the label
* permission is created. Format: `labels/{label}`.
* @param GoogleAppsDriveLabelsV2LabelPermission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleAppsDriveLabelsV2LabelPermission
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleAppsDriveLabelsV2LabelPermission $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleAppsDriveLabelsV2LabelPermission::class);
}
/**
* Deletes a label's permission. Permissions affect the label resource as a
* whole, aren't revisioned, and don't require publishing. (permissions.delete)
*
* @param string $name Required. Label permission resource name.
* @param array $optParams Optional parameters.
*
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Lists a label's permissions. (permissions.listLabelsRevisionsPermissions)
*
* @param string $parent Required. The parent label resource name on which label
* permissions are listed. Format: `labels/{label}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of permissions to return per page.
* Default: 50. Max: 200.
* @opt_param string pageToken The token of the page to return.
* @opt_param bool useAdminAccess Set to `true` in order to use the user's admin
* credentials. The server will verify the user is an admin for the label before
* allowing access.
* @return GoogleAppsDriveLabelsV2ListLabelPermissionsResponse
* @throws \Google\Service\Exception
*/
public function listLabelsRevisionsPermissions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleAppsDriveLabelsV2ListLabelPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelsRevisionsPermissions::class, 'Google_Service_DriveLabels_Resource_LabelsRevisionsPermissions');
@@ -0,0 +1,52 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2LabelLimits;
/**
* The "limits" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $limits = $drivelabelsService->limits;
* </code>
*/
class Limits extends \Google\Service\Resource
{
/**
* Get the constraints on the structure of a label; such as, the maximum number
* of fields allowed and maximum length of the label title. (limits.getLabel)
*
* @param array $optParams Optional parameters.
*
* @opt_param string name Required. Label revision resource name must be:
* "limits/label".
* @return GoogleAppsDriveLabelsV2LabelLimits
* @throws \Google\Service\Exception
*/
public function getLabel($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getLabel', [$params], GoogleAppsDriveLabelsV2LabelLimits::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Limits::class, 'Google_Service_DriveLabels_Resource_Limits');
@@ -0,0 +1,54 @@
<?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\DriveLabels\Resource;
use Google\Service\DriveLabels\GoogleAppsDriveLabelsV2UserCapabilities;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $drivelabelsService = new Google\Service\DriveLabels(...);
* $users = $drivelabelsService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
/**
* Gets the user capabilities. (users.getCapabilities)
*
* @param string $name Required. The resource name of the user. Only
* "users/me/capabilities" is supported.
* @param array $optParams Optional parameters.
*
* @opt_param string customer The customer to scope this request to. For
* example: `customers/abcd1234`. If unset, it will return settings within the
* current customer.
* @return GoogleAppsDriveLabelsV2UserCapabilities
* @throws \Google\Service\Exception
*/
public function getCapabilities($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getCapabilities', [$params], GoogleAppsDriveLabelsV2UserCapabilities::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_DriveLabels_Resource_Users');