* $baremetalsolutionService = new Google\Service\Baremetalsolution(...); * $provisioningConfigs = $baremetalsolutionService->projects_locations_provisioningConfigs; * */ class ProjectsLocationsProvisioningConfigs extends \Google\Service\Resource { /** * Create new ProvisioningConfig. (provisioningConfigs.create) * * @param string $parent Required. The parent project and location containing * the ProvisioningConfig. * @param ProvisioningConfig $postBody * @param array $optParams Optional parameters. * * @opt_param string email Optional. Email provided to send a confirmation with * provisioning config to. * @return ProvisioningConfig * @throws \Google\Service\Exception */ public function create($parent, ProvisioningConfig $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], ProvisioningConfig::class); } /** * Get ProvisioningConfig by name. (provisioningConfigs.get) * * @param string $name Required. Name of the ProvisioningConfig. * @param array $optParams Optional parameters. * @return ProvisioningConfig * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], ProvisioningConfig::class); } /** * Update existing ProvisioningConfig. (provisioningConfigs.patch) * * @param string $name Output only. The system-generated name of the * provisioning config. This follows the UUID format. * @param ProvisioningConfig $postBody * @param array $optParams Optional parameters. * * @opt_param string email Optional. Email provided to send a confirmation with * provisioning config to. * @opt_param string updateMask Required. The list of fields to update. * @return ProvisioningConfig * @throws \Google\Service\Exception */ public function patch($name, ProvisioningConfig $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], ProvisioningConfig::class); } /** * Submit a provisiong configuration for a given project. * (provisioningConfigs.submit) * * @param string $parent Required. The parent project and location containing * the ProvisioningConfig. * @param SubmitProvisioningConfigRequest $postBody * @param array $optParams Optional parameters. * @return SubmitProvisioningConfigResponse * @throws \Google\Service\Exception */ public function submit($parent, SubmitProvisioningConfigRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('submit', [$params], SubmitProvisioningConfigResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsProvisioningConfigs::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsProvisioningConfigs');