Initial commit

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

View File

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

View File

@@ -0,0 +1,110 @@
<?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\ResourceSettings;
class GoogleCloudResourcesettingsV1Setting extends \Google\Model
{
protected $effectiveValueType = GoogleCloudResourcesettingsV1Value::class;
protected $effectiveValueDataType = '';
/**
* @var string
*/
public $etag;
protected $localValueType = GoogleCloudResourcesettingsV1Value::class;
protected $localValueDataType = '';
protected $metadataType = GoogleCloudResourcesettingsV1SettingMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $name;
/**
* @param GoogleCloudResourcesettingsV1Value
*/
public function setEffectiveValue(GoogleCloudResourcesettingsV1Value $effectiveValue)
{
$this->effectiveValue = $effectiveValue;
}
/**
* @return GoogleCloudResourcesettingsV1Value
*/
public function getEffectiveValue()
{
return $this->effectiveValue;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param GoogleCloudResourcesettingsV1Value
*/
public function setLocalValue(GoogleCloudResourcesettingsV1Value $localValue)
{
$this->localValue = $localValue;
}
/**
* @return GoogleCloudResourcesettingsV1Value
*/
public function getLocalValue()
{
return $this->localValue;
}
/**
* @param GoogleCloudResourcesettingsV1SettingMetadata
*/
public function setMetadata(GoogleCloudResourcesettingsV1SettingMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return GoogleCloudResourcesettingsV1SettingMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudResourcesettingsV1Setting::class, 'Google_Service_ResourceSettings_GoogleCloudResourcesettingsV1Setting');

View File

@@ -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\ResourceSettings;
class GoogleCloudResourcesettingsV1SettingMetadata extends \Google\Model
{
/**
* @var string
*/
public $dataType;
protected $defaultValueType = GoogleCloudResourcesettingsV1Value::class;
protected $defaultValueDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
/**
* @var bool
*/
public $readOnly;
/**
* @param string
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return string
*/
public function getDataType()
{
return $this->dataType;
}
/**
* @param GoogleCloudResourcesettingsV1Value
*/
public function setDefaultValue(GoogleCloudResourcesettingsV1Value $defaultValue)
{
$this->defaultValue = $defaultValue;
}
/**
* @return GoogleCloudResourcesettingsV1Value
*/
public function getDefaultValue()
{
return $this->defaultValue;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param bool
*/
public function setReadOnly($readOnly)
{
$this->readOnly = $readOnly;
}
/**
* @return bool
*/
public function getReadOnly()
{
return $this->readOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudResourcesettingsV1SettingMetadata::class, 'Google_Service_ResourceSettings_GoogleCloudResourcesettingsV1SettingMetadata');

View File

@@ -0,0 +1,128 @@
<?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\ResourceSettings;
class GoogleCloudResourcesettingsV1Value extends \Google\Model
{
/**
* @var bool
*/
public $booleanValue;
/**
* @var string
*/
public $durationValue;
protected $enumValueType = GoogleCloudResourcesettingsV1ValueEnumValue::class;
protected $enumValueDataType = '';
protected $stringMapValueType = GoogleCloudResourcesettingsV1ValueStringMap::class;
protected $stringMapValueDataType = '';
protected $stringSetValueType = GoogleCloudResourcesettingsV1ValueStringSet::class;
protected $stringSetValueDataType = '';
/**
* @var string
*/
public $stringValue;
/**
* @param bool
*/
public function setBooleanValue($booleanValue)
{
$this->booleanValue = $booleanValue;
}
/**
* @return bool
*/
public function getBooleanValue()
{
return $this->booleanValue;
}
/**
* @param string
*/
public function setDurationValue($durationValue)
{
$this->durationValue = $durationValue;
}
/**
* @return string
*/
public function getDurationValue()
{
return $this->durationValue;
}
/**
* @param GoogleCloudResourcesettingsV1ValueEnumValue
*/
public function setEnumValue(GoogleCloudResourcesettingsV1ValueEnumValue $enumValue)
{
$this->enumValue = $enumValue;
}
/**
* @return GoogleCloudResourcesettingsV1ValueEnumValue
*/
public function getEnumValue()
{
return $this->enumValue;
}
/**
* @param GoogleCloudResourcesettingsV1ValueStringMap
*/
public function setStringMapValue(GoogleCloudResourcesettingsV1ValueStringMap $stringMapValue)
{
$this->stringMapValue = $stringMapValue;
}
/**
* @return GoogleCloudResourcesettingsV1ValueStringMap
*/
public function getStringMapValue()
{
return $this->stringMapValue;
}
/**
* @param GoogleCloudResourcesettingsV1ValueStringSet
*/
public function setStringSetValue(GoogleCloudResourcesettingsV1ValueStringSet $stringSetValue)
{
$this->stringSetValue = $stringSetValue;
}
/**
* @return GoogleCloudResourcesettingsV1ValueStringSet
*/
public function getStringSetValue()
{
return $this->stringSetValue;
}
/**
* @param string
*/
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return string
*/
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudResourcesettingsV1Value::class, 'Google_Service_ResourceSettings_GoogleCloudResourcesettingsV1Value');

View File

@@ -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\ResourceSettings;
class GoogleCloudResourcesettingsV1ValueEnumValue extends \Google\Model
{
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudResourcesettingsV1ValueEnumValue::class, 'Google_Service_ResourceSettings_GoogleCloudResourcesettingsV1ValueEnumValue');

View File

@@ -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\ResourceSettings;
class GoogleCloudResourcesettingsV1ValueStringMap extends \Google\Model
{
/**
* @var string[]
*/
public $mappings;
/**
* @param string[]
*/
public function setMappings($mappings)
{
$this->mappings = $mappings;
}
/**
* @return string[]
*/
public function getMappings()
{
return $this->mappings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudResourcesettingsV1ValueStringMap::class, 'Google_Service_ResourceSettings_GoogleCloudResourcesettingsV1ValueStringMap');

View File

@@ -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\ResourceSettings;
class GoogleCloudResourcesettingsV1ValueStringSet extends \Google\Collection
{
protected $collection_key = 'values';
/**
* @var string[]
*/
public $values;
/**
* @param string[]
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudResourcesettingsV1ValueStringSet::class, 'Google_Service_ResourceSettings_GoogleCloudResourcesettingsV1ValueStringSet');

View File

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

View File

@@ -0,0 +1,105 @@
<?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\ResourceSettings\Resource;
use Google\Service\ResourceSettings\GoogleCloudResourcesettingsV1ListSettingsResponse;
use Google\Service\ResourceSettings\GoogleCloudResourcesettingsV1Setting;
/**
* The "settings" collection of methods.
* Typical usage is:
* <code>
* $resourcesettingsService = new Google\Service\ResourceSettings(...);
* $settings = $resourcesettingsService->folders_settings;
* </code>
*/
class FoldersSettings extends \Google\Service\Resource
{
/**
* Returns a specified setting. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the setting does not exist. (settings.get)
*
* @param string $name Required. The name of the setting to get. See Setting for
* naming requirements.
* @param array $optParams Optional parameters.
*
* @opt_param string view The SettingView for this request.
* @return GoogleCloudResourcesettingsV1Setting
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudResourcesettingsV1Setting::class);
}
/**
* Lists all the settings that are available on the Cloud resource `parent`.
* (settings.listFoldersSettings)
*
* @param string $parent Required. The project, folder, or organization that is
* the parent resource for this setting. Must be in one of the following forms:
* * `projects/{project_number}` * `projects/{project_id}` *
* `folders/{folder_id}` * `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Unused. The size of the page to be returned.
* @opt_param string pageToken Unused. A page token used to retrieve the next
* page.
* @opt_param string view The SettingView for this request.
* @return GoogleCloudResourcesettingsV1ListSettingsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersSettings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudResourcesettingsV1ListSettingsResponse::class);
}
/**
* Updates a specified setting. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the setting does not exist. Returns a
* `google.rpc.Status` with `google.rpc.Code.FAILED_PRECONDITION` if the setting
* is flagged as read only. Returns a `google.rpc.Status` with
* `google.rpc.Code.ABORTED` if the etag supplied in the request does not match
* the persisted etag of the setting value. On success, the response will
* contain only `name`, `local_value` and `etag`. The `metadata` and
* `effective_value` cannot be updated through this API. Note: the supplied
* setting will perform a full overwrite of the `local_value` field.
* (settings.patch)
*
* @param string $name The resource name of the setting. Must be in one of the
* following forms: * `projects/{project_number}/settings/{setting_name}` *
* `folders/{folder_id}/settings/{setting_name}` *
* `organizations/{organization_id}/settings/{setting_name}` For example,
* "/projects/123/settings/gcp-enableMyFeature"
* @param GoogleCloudResourcesettingsV1Setting $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudResourcesettingsV1Setting
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudResourcesettingsV1Setting $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudResourcesettingsV1Setting::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersSettings::class, 'Google_Service_ResourceSettings_Resource_FoldersSettings');

View File

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

View File

@@ -0,0 +1,105 @@
<?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\ResourceSettings\Resource;
use Google\Service\ResourceSettings\GoogleCloudResourcesettingsV1ListSettingsResponse;
use Google\Service\ResourceSettings\GoogleCloudResourcesettingsV1Setting;
/**
* The "settings" collection of methods.
* Typical usage is:
* <code>
* $resourcesettingsService = new Google\Service\ResourceSettings(...);
* $settings = $resourcesettingsService->organizations_settings;
* </code>
*/
class OrganizationsSettings extends \Google\Service\Resource
{
/**
* Returns a specified setting. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the setting does not exist. (settings.get)
*
* @param string $name Required. The name of the setting to get. See Setting for
* naming requirements.
* @param array $optParams Optional parameters.
*
* @opt_param string view The SettingView for this request.
* @return GoogleCloudResourcesettingsV1Setting
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudResourcesettingsV1Setting::class);
}
/**
* Lists all the settings that are available on the Cloud resource `parent`.
* (settings.listOrganizationsSettings)
*
* @param string $parent Required. The project, folder, or organization that is
* the parent resource for this setting. Must be in one of the following forms:
* * `projects/{project_number}` * `projects/{project_id}` *
* `folders/{folder_id}` * `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Unused. The size of the page to be returned.
* @opt_param string pageToken Unused. A page token used to retrieve the next
* page.
* @opt_param string view The SettingView for this request.
* @return GoogleCloudResourcesettingsV1ListSettingsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsSettings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudResourcesettingsV1ListSettingsResponse::class);
}
/**
* Updates a specified setting. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the setting does not exist. Returns a
* `google.rpc.Status` with `google.rpc.Code.FAILED_PRECONDITION` if the setting
* is flagged as read only. Returns a `google.rpc.Status` with
* `google.rpc.Code.ABORTED` if the etag supplied in the request does not match
* the persisted etag of the setting value. On success, the response will
* contain only `name`, `local_value` and `etag`. The `metadata` and
* `effective_value` cannot be updated through this API. Note: the supplied
* setting will perform a full overwrite of the `local_value` field.
* (settings.patch)
*
* @param string $name The resource name of the setting. Must be in one of the
* following forms: * `projects/{project_number}/settings/{setting_name}` *
* `folders/{folder_id}/settings/{setting_name}` *
* `organizations/{organization_id}/settings/{setting_name}` For example,
* "/projects/123/settings/gcp-enableMyFeature"
* @param GoogleCloudResourcesettingsV1Setting $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudResourcesettingsV1Setting
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudResourcesettingsV1Setting $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudResourcesettingsV1Setting::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsSettings::class, 'Google_Service_ResourceSettings_Resource_OrganizationsSettings');

View File

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

View File

@@ -0,0 +1,105 @@
<?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\ResourceSettings\Resource;
use Google\Service\ResourceSettings\GoogleCloudResourcesettingsV1ListSettingsResponse;
use Google\Service\ResourceSettings\GoogleCloudResourcesettingsV1Setting;
/**
* The "settings" collection of methods.
* Typical usage is:
* <code>
* $resourcesettingsService = new Google\Service\ResourceSettings(...);
* $settings = $resourcesettingsService->projects_settings;
* </code>
*/
class ProjectsSettings extends \Google\Service\Resource
{
/**
* Returns a specified setting. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the setting does not exist. (settings.get)
*
* @param string $name Required. The name of the setting to get. See Setting for
* naming requirements.
* @param array $optParams Optional parameters.
*
* @opt_param string view The SettingView for this request.
* @return GoogleCloudResourcesettingsV1Setting
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudResourcesettingsV1Setting::class);
}
/**
* Lists all the settings that are available on the Cloud resource `parent`.
* (settings.listProjectsSettings)
*
* @param string $parent Required. The project, folder, or organization that is
* the parent resource for this setting. Must be in one of the following forms:
* * `projects/{project_number}` * `projects/{project_id}` *
* `folders/{folder_id}` * `organizations/{organization_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Unused. The size of the page to be returned.
* @opt_param string pageToken Unused. A page token used to retrieve the next
* page.
* @opt_param string view The SettingView for this request.
* @return GoogleCloudResourcesettingsV1ListSettingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsSettings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudResourcesettingsV1ListSettingsResponse::class);
}
/**
* Updates a specified setting. Returns a `google.rpc.Status` with
* `google.rpc.Code.NOT_FOUND` if the setting does not exist. Returns a
* `google.rpc.Status` with `google.rpc.Code.FAILED_PRECONDITION` if the setting
* is flagged as read only. Returns a `google.rpc.Status` with
* `google.rpc.Code.ABORTED` if the etag supplied in the request does not match
* the persisted etag of the setting value. On success, the response will
* contain only `name`, `local_value` and `etag`. The `metadata` and
* `effective_value` cannot be updated through this API. Note: the supplied
* setting will perform a full overwrite of the `local_value` field.
* (settings.patch)
*
* @param string $name The resource name of the setting. Must be in one of the
* following forms: * `projects/{project_number}/settings/{setting_name}` *
* `folders/{folder_id}/settings/{setting_name}` *
* `organizations/{organization_id}/settings/{setting_name}` For example,
* "/projects/123/settings/gcp-enableMyFeature"
* @param GoogleCloudResourcesettingsV1Setting $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudResourcesettingsV1Setting
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudResourcesettingsV1Setting $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudResourcesettingsV1Setting::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSettings::class, 'Google_Service_ResourceSettings_Resource_ProjectsSettings');