* $gkeonpremService = new Google\Service\GKEOnPrem(...); * $bareMetalStandaloneNodePools = $gkeonpremService->projects_locations_bareMetalStandaloneClusters_bareMetalStandaloneNodePools; * */ class ProjectsLocationsBareMetalStandaloneClustersBareMetalStandaloneNodePools extends \Google\Service\Resource { /** * Enrolls an existing bare metal standalone node pool to the Anthos On-Prem API * within a given project and location. Through enrollment, an existing * standalone node pool will become Anthos On-Prem API managed. The * corresponding GCP resources will be created. * (bareMetalStandaloneNodePools.enroll) * * @param string $parent Required. The parent resource where this node pool will * be created. * projects/{project}/locations/{location}/bareMetalStandaloneClusters/{cluster} * @param EnrollBareMetalStandaloneNodePoolRequest $postBody * @param array $optParams Optional parameters. * @return Operation */ public function enroll($parent, EnrollBareMetalStandaloneNodePoolRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('enroll', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsBareMetalStandaloneClustersBareMetalStandaloneNodePools::class, 'Google_Service_GKEOnPrem_Resource_ProjectsLocationsBareMetalStandaloneClustersBareMetalStandaloneNodePools');