* $apigeeService = new Google\Service\Apigee(...); * $canaryevaluations = $apigeeService->canaryevaluations; * */ class OrganizationsInstancesCanaryevaluations extends \Google\Service\Resource { /** * Creates a new canary evaluation for an organization. * (canaryevaluations.create) * * @param string $parent Required. Name of the organization. Use the following * structure in your request: `organizations/{org}/instances/{instance}`. * @param GoogleCloudApigeeV1CanaryEvaluation $postBody * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation */ public function create($parent, GoogleCloudApigeeV1CanaryEvaluation $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], GoogleLongrunningOperation::class); } /** * Gets a CanaryEvaluation for an organization. (canaryevaluations.get) * * @param string $name Required. Name of the CanaryEvaluation. Use the following * structure in your request: * `organizations/{org}/instances/canaryevaluations/{evaluation}` * @param array $optParams Optional parameters. * @return GoogleCloudApigeeV1CanaryEvaluation */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleCloudApigeeV1CanaryEvaluation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(OrganizationsInstancesCanaryevaluations::class, 'Google_Service_Apigee_Resource_OrganizationsInstancesCanaryevaluations');