<?php

namespace Beehive;

/*
 * 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.
 */
/**
 * The "filters" collection of methods.
 * Typical usage is:
 *  <code>
 *   $analyticsService = new Google_Service_Analytics(...);
 *   $filters = $analyticsService->filters;
 *  </code>
 */
class Google_Service_Analytics_Resource_ManagementFilters extends \Beehive\Google_Service_Resource
{
    /**
     * Delete a filter. (filters.delete)
     *
     * @param string $accountId Account ID to delete the filter for.
     * @param string $filterId ID of the filter to be deleted.
     * @param array $optParams Optional parameters.
     * @return Google_Service_Analytics_Filter
     */
    public function delete($accountId, $filterId, $optParams = array())
    {
        $params = array('accountId' => $accountId, 'filterId' => $filterId);
        $params = \array_merge($params, $optParams);
        return $this->call('delete', array($params), "Google_Service_Analytics_Filter");
    }
    /**
     * Returns filters to which the user has access. (filters.get)
     *
     * @param string $accountId Account ID to retrieve filters for.
     * @param string $filterId Filter ID to retrieve filters for.
     * @param array $optParams Optional parameters.
     * @return Google_Service_Analytics_Filter
     */
    public function get($accountId, $filterId, $optParams = array())
    {
        $params = array('accountId' => $accountId, 'filterId' => $filterId);
        $params = \array_merge($params, $optParams);
        return $this->call('get', array($params), "Google_Service_Analytics_Filter");
    }
    /**
     * Create a new filter. (filters.insert)
     *
     * @param string $accountId Account ID to create filter for.
     * @param Google_Service_Analytics_Filter $postBody
     * @param array $optParams Optional parameters.
     * @return Google_Service_Analytics_Filter
     */
    public function insert($accountId, \Beehive\Google_Service_Analytics_Filter $postBody, $optParams = array())
    {
        $params = array('accountId' => $accountId, 'postBody' => $postBody);
        $params = \array_merge($params, $optParams);
        return $this->call('insert', array($params), "Google_Service_Analytics_Filter");
    }
    /**
     * Lists all filters for an account (filters.listManagementFilters)
     *
     * @param string $accountId Account ID to retrieve filters for.
     * @param array $optParams Optional parameters.
     *
     * @opt_param int max-results The maximum number of filters to include in this
     * response.
     * @opt_param int start-index An index of the first entity to retrieve. Use this
     * parameter as a pagination mechanism along with the max-results parameter.
     * @return Google_Service_Analytics_Filters
     */
    public function listManagementFilters($accountId, $optParams = array())
    {
        $params = array('accountId' => $accountId);
        $params = \array_merge($params, $optParams);
        return $this->call('list', array($params), "Google_Service_Analytics_Filters");
    }
    /**
     * Updates an existing filter. This method supports patch semantics.
     * (filters.patch)
     *
     * @param string $accountId Account ID to which the filter belongs.
     * @param string $filterId ID of the filter to be updated.
     * @param Google_Service_Analytics_Filter $postBody
     * @param array $optParams Optional parameters.
     * @return Google_Service_Analytics_Filter
     */
    public function patch($accountId, $filterId, \Beehive\Google_Service_Analytics_Filter $postBody, $optParams = array())
    {
        $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody);
        $params = \array_merge($params, $optParams);
        return $this->call('patch', array($params), "Google_Service_Analytics_Filter");
    }
    /**
     * Updates an existing filter. (filters.update)
     *
     * @param string $accountId Account ID to which the filter belongs.
     * @param string $filterId ID of the filter to be updated.
     * @param Google_Service_Analytics_Filter $postBody
     * @param array $optParams Optional parameters.
     * @return Google_Service_Analytics_Filter
     */
    public function update($accountId, $filterId, \Beehive\Google_Service_Analytics_Filter $postBody, $optParams = array())
    {
        $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody);
        $params = \array_merge($params, $optParams);
        return $this->call('update', array($params), "Google_Service_Analytics_Filter");
    }
}
/*
 * 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.
 */
/**
 * The "filters" collection of methods.
 * Typical usage is:
 *  <code>
 *   $analyticsService = new Google_Service_Analytics(...);
 *   $filters = $analyticsService->filters;
 *  </code>
 */
\class_alias('Beehive\\Google_Service_Analytics_Resource_ManagementFilters', 'Google_Service_Analytics_Resource_ManagementFilters', \false);