<?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\Site_Kit_Dependencies\Google\Service\Ideahub\Resource;

use Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaListIdeasResponse;
/**
 * The "ideas" collection of methods.
 * Typical usage is:
 *  <code>
 *   $ideahubService = new Google\Service\Ideahub(...);
 *   $ideas = $ideahubService->ideas;
 *  </code>
 */
class PlatformsPropertiesIdeas extends \Google\Site_Kit_Dependencies\Google\Service\Resource
{
    /**
     * List ideas for a given Creator and filter and sort options.
     * (ideas.listPlatformsPropertiesIdeas)
     *
     * @param string $parent If defined, specifies the creator for which to filter
     * by. Format: publishers/{publisher}/properties/{property}
     * @param array $optParams Optional parameters.
     *
     * @opt_param string creator.platform Identifies the platform from which this
     * user is accessing Idea Hub.
     * @opt_param string creator.platformId Identifies the platform account
     * (blog/site/etc.) for which to fetch Ideas.
     * @opt_param string filter Filter semantics described below.
     * @opt_param string orderBy Order semantics described below.
     * @opt_param int pageSize The maximum number of ideas per page. If unspecified,
     * at most 10 ideas will be returned. The maximum value is 2000; values above
     * 2000 will be coerced to 2000.
     * @opt_param string pageToken Used to fetch next page.
     * @return GoogleSearchIdeahubV1alphaListIdeasResponse
     */
    public function listPlatformsPropertiesIdeas($parent, $optParams = [])
    {
        $params = ['parent' => $parent];
        $params = \array_merge($params, $optParams);
        return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaListIdeasResponse::class);
    }
}
// Adding a class alias for backwards compatibility with the previous class name.
\class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesIdeas::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_PlatformsPropertiesIdeas');
